diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT index 28af9c8..c43c567 100644 --- a/kubernetes/.openapi-generator/COMMIT +++ b/kubernetes/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ Requested Commit: master -Actual Commit: ac7ebf67dd67e4a347fa142aa6a95ab12f0198de +Actual Commit: b527f3b8163fce828b7ce4aadbf9bf672cdf90f9 diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index 6735e1d..526f572 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -5,6 +5,8 @@ api/AdmissionregistrationAPI.c api/AdmissionregistrationAPI.h api/AdmissionregistrationV1API.c api/AdmissionregistrationV1API.h +api/AdmissionregistrationV1alpha1API.c +api/AdmissionregistrationV1alpha1API.h api/ApiextensionsAPI.c api/ApiextensionsAPI.h api/ApiextensionsV1API.c @@ -23,6 +25,8 @@ api/AuthenticationAPI.c api/AuthenticationAPI.h api/AuthenticationV1API.c api/AuthenticationV1API.h +api/AuthenticationV1alpha1API.c +api/AuthenticationV1alpha1API.h api/AuthorizationAPI.c api/AuthorizationAPI.h api/AuthorizationV1API.c @@ -33,8 +37,6 @@ api/AutoscalingV1API.c api/AutoscalingV1API.h api/AutoscalingV2API.c api/AutoscalingV2API.h -api/AutoscalingV2beta2API.c -api/AutoscalingV2beta2API.h api/BatchAPI.c api/BatchAPI.h api/BatchV1API.c @@ -63,10 +65,10 @@ api/EventsV1API.c api/EventsV1API.h api/FlowcontrolApiserverAPI.c api/FlowcontrolApiserverAPI.h -api/FlowcontrolApiserverV1beta1API.c -api/FlowcontrolApiserverV1beta1API.h api/FlowcontrolApiserverV1beta2API.c api/FlowcontrolApiserverV1beta2API.h +api/FlowcontrolApiserverV1beta3API.c +api/FlowcontrolApiserverV1beta3API.h api/InternalApiserverAPI.c api/InternalApiserverAPI.h api/InternalApiserverV1alpha1API.c @@ -93,6 +95,10 @@ api/RbacAuthorizationAPI.c api/RbacAuthorizationAPI.h api/RbacAuthorizationV1API.c api/RbacAuthorizationV1API.h +api/ResourceAPI.c +api/ResourceAPI.h +api/ResourceV1alpha1API.c +api/ResourceV1alpha1API.h api/SchedulingAPI.c api/SchedulingAPI.h api/SchedulingV1API.c @@ -109,6 +115,7 @@ api/WellKnownAPI.c api/WellKnownAPI.h docs/AdmissionregistrationAPI.md docs/AdmissionregistrationV1API.md +docs/AdmissionregistrationV1alpha1API.md docs/ApiextensionsAPI.md docs/ApiextensionsV1API.md docs/ApiregistrationAPI.md @@ -118,12 +125,12 @@ docs/AppsAPI.md docs/AppsV1API.md docs/AuthenticationAPI.md docs/AuthenticationV1API.md +docs/AuthenticationV1alpha1API.md docs/AuthorizationAPI.md docs/AuthorizationV1API.md docs/AutoscalingAPI.md docs/AutoscalingV1API.md docs/AutoscalingV2API.md -docs/AutoscalingV2beta2API.md docs/BatchAPI.md docs/BatchV1API.md docs/CertificatesAPI.md @@ -138,8 +145,8 @@ docs/DiscoveryV1API.md docs/EventsAPI.md docs/EventsV1API.md docs/FlowcontrolApiserverAPI.md -docs/FlowcontrolApiserverV1beta1API.md docs/FlowcontrolApiserverV1beta2API.md +docs/FlowcontrolApiserverV1beta3API.md docs/InternalApiserverAPI.md docs/InternalApiserverV1alpha1API.md docs/LogsAPI.md @@ -153,6 +160,8 @@ docs/PolicyAPI.md docs/PolicyV1API.md docs/RbacAuthorizationAPI.md docs/RbacAuthorizationV1API.md +docs/ResourceAPI.md +docs/ResourceV1alpha1API.md docs/SchedulingAPI.md docs/SchedulingV1API.md docs/StorageAPI.md @@ -204,6 +213,7 @@ docs/v1_certificate_signing_request_spec.md docs/v1_certificate_signing_request_status.md docs/v1_cinder_persistent_volume_source.md docs/v1_cinder_volume_source.md +docs/v1_claim_source.md docs/v1_client_ip_config.md docs/v1_cluster_role.md docs/v1_cluster_role_binding.md @@ -322,6 +332,9 @@ docs/v1_ingress_class_list.md docs/v1_ingress_class_parameters_reference.md docs/v1_ingress_class_spec.md docs/v1_ingress_list.md +docs/v1_ingress_load_balancer_ingress.md +docs/v1_ingress_load_balancer_status.md +docs/v1_ingress_port_status.md docs/v1_ingress_rule.md docs/v1_ingress_service_backend.md docs/v1_ingress_spec.md @@ -425,6 +438,8 @@ docs/v1_pod_ip.md docs/v1_pod_list.md docs/v1_pod_os.md docs/v1_pod_readiness_gate.md +docs/v1_pod_resource_claim.md +docs/v1_pod_scheduling_gate.md docs/v1_pod_security_context.md docs/v1_pod_spec.md docs/v1_pod_status.md @@ -454,6 +469,7 @@ docs/v1_replication_controller_list.md docs/v1_replication_controller_spec.md docs/v1_replication_controller_status.md docs/v1_resource_attributes.md +docs/v1_resource_claim.md docs/v1_resource_field_selector.md docs/v1_resource_quota.md docs/v1_resource_quota_list.md @@ -508,6 +524,7 @@ docs/v1_session_affinity_config.md docs/v1_stateful_set.md docs/v1_stateful_set_condition.md docs/v1_stateful_set_list.md +docs/v1_stateful_set_ordinals.md docs/v1_stateful_set_persistent_volume_claim_retention_policy.md docs/v1_stateful_set_spec.md docs/v1_stateful_set_status.md @@ -537,6 +554,7 @@ docs/v1_topology_selector_label_requirement.md docs/v1_topology_selector_term.md docs/v1_topology_spread_constraint.md docs/v1_typed_local_object_reference.md +docs/v1_typed_object_reference.md docs/v1_uncounted_terminated_pods.md docs/v1_user_info.md docs/v1_validating_webhook.md @@ -560,38 +578,47 @@ docs/v1_watch_event.md docs/v1_webhook_conversion.md docs/v1_weighted_pod_affinity_term.md docs/v1_windows_security_context_options.md +docs/v1alpha1_allocation_result.md docs/v1alpha1_cluster_cidr.md docs/v1alpha1_cluster_cidr_list.md docs/v1alpha1_cluster_cidr_spec.md +docs/v1alpha1_match_resources.md +docs/v1alpha1_named_rule_with_operations.md +docs/v1alpha1_param_kind.md +docs/v1alpha1_param_ref.md +docs/v1alpha1_pod_scheduling.md +docs/v1alpha1_pod_scheduling_list.md +docs/v1alpha1_pod_scheduling_spec.md +docs/v1alpha1_pod_scheduling_status.md +docs/v1alpha1_resource_claim.md +docs/v1alpha1_resource_claim_consumer_reference.md +docs/v1alpha1_resource_claim_list.md +docs/v1alpha1_resource_claim_parameters_reference.md +docs/v1alpha1_resource_claim_scheduling_status.md +docs/v1alpha1_resource_claim_spec.md +docs/v1alpha1_resource_claim_status.md +docs/v1alpha1_resource_claim_template.md +docs/v1alpha1_resource_claim_template_list.md +docs/v1alpha1_resource_claim_template_spec.md +docs/v1alpha1_resource_class.md +docs/v1alpha1_resource_class_list.md +docs/v1alpha1_resource_class_parameters_reference.md +docs/v1alpha1_self_subject_review.md +docs/v1alpha1_self_subject_review_status.md docs/v1alpha1_server_storage_version.md docs/v1alpha1_storage_version.md docs/v1alpha1_storage_version_condition.md docs/v1alpha1_storage_version_list.md docs/v1alpha1_storage_version_status.md +docs/v1alpha1_validating_admission_policy.md +docs/v1alpha1_validating_admission_policy_binding.md +docs/v1alpha1_validating_admission_policy_binding_list.md +docs/v1alpha1_validating_admission_policy_binding_spec.md +docs/v1alpha1_validating_admission_policy_list.md +docs/v1alpha1_validating_admission_policy_spec.md +docs/v1alpha1_validation.md docs/v1beta1_csi_storage_capacity.md docs/v1beta1_csi_storage_capacity_list.md -docs/v1beta1_flow_distinguisher_method.md -docs/v1beta1_flow_schema.md -docs/v1beta1_flow_schema_condition.md -docs/v1beta1_flow_schema_list.md -docs/v1beta1_flow_schema_spec.md -docs/v1beta1_flow_schema_status.md -docs/v1beta1_group_subject.md -docs/v1beta1_limit_response.md -docs/v1beta1_limited_priority_level_configuration.md -docs/v1beta1_non_resource_policy_rule.md -docs/v1beta1_policy_rules_with_subjects.md -docs/v1beta1_priority_level_configuration.md -docs/v1beta1_priority_level_configuration_condition.md -docs/v1beta1_priority_level_configuration_list.md -docs/v1beta1_priority_level_configuration_reference.md -docs/v1beta1_priority_level_configuration_spec.md -docs/v1beta1_priority_level_configuration_status.md -docs/v1beta1_queuing_configuration.md -docs/v1beta1_resource_policy_rule.md -docs/v1beta1_service_account_subject.md -docs/v1beta1_subject.md -docs/v1beta1_user_subject.md docs/v1beta2_flow_distinguisher_method.md docs/v1beta2_flow_schema.md docs/v1beta2_flow_schema_condition.md @@ -614,6 +641,28 @@ docs/v1beta2_resource_policy_rule.md docs/v1beta2_service_account_subject.md docs/v1beta2_subject.md docs/v1beta2_user_subject.md +docs/v1beta3_flow_distinguisher_method.md +docs/v1beta3_flow_schema.md +docs/v1beta3_flow_schema_condition.md +docs/v1beta3_flow_schema_list.md +docs/v1beta3_flow_schema_spec.md +docs/v1beta3_flow_schema_status.md +docs/v1beta3_group_subject.md +docs/v1beta3_limit_response.md +docs/v1beta3_limited_priority_level_configuration.md +docs/v1beta3_non_resource_policy_rule.md +docs/v1beta3_policy_rules_with_subjects.md +docs/v1beta3_priority_level_configuration.md +docs/v1beta3_priority_level_configuration_condition.md +docs/v1beta3_priority_level_configuration_list.md +docs/v1beta3_priority_level_configuration_reference.md +docs/v1beta3_priority_level_configuration_spec.md +docs/v1beta3_priority_level_configuration_status.md +docs/v1beta3_queuing_configuration.md +docs/v1beta3_resource_policy_rule.md +docs/v1beta3_service_account_subject.md +docs/v1beta3_subject.md +docs/v1beta3_user_subject.md docs/v2_container_resource_metric_source.md docs/v2_container_resource_metric_status.md docs/v2_cross_version_object_reference.md @@ -638,30 +687,6 @@ docs/v2_pods_metric_source.md docs/v2_pods_metric_status.md docs/v2_resource_metric_source.md docs/v2_resource_metric_status.md -docs/v2beta2_container_resource_metric_source.md -docs/v2beta2_container_resource_metric_status.md -docs/v2beta2_cross_version_object_reference.md -docs/v2beta2_external_metric_source.md -docs/v2beta2_external_metric_status.md -docs/v2beta2_horizontal_pod_autoscaler.md -docs/v2beta2_horizontal_pod_autoscaler_behavior.md -docs/v2beta2_horizontal_pod_autoscaler_condition.md -docs/v2beta2_horizontal_pod_autoscaler_list.md -docs/v2beta2_horizontal_pod_autoscaler_spec.md -docs/v2beta2_horizontal_pod_autoscaler_status.md -docs/v2beta2_hpa_scaling_policy.md -docs/v2beta2_hpa_scaling_rules.md -docs/v2beta2_metric_identifier.md -docs/v2beta2_metric_spec.md -docs/v2beta2_metric_status.md -docs/v2beta2_metric_target.md -docs/v2beta2_metric_value_status.md -docs/v2beta2_object_metric_source.md -docs/v2beta2_object_metric_status.md -docs/v2beta2_pods_metric_source.md -docs/v2beta2_pods_metric_status.md -docs/v2beta2_resource_metric_source.md -docs/v2beta2_resource_metric_status.md docs/version_info.md external/cJSON.c external/cJSON.h @@ -761,6 +786,8 @@ model/v1_cinder_persistent_volume_source.c model/v1_cinder_persistent_volume_source.h model/v1_cinder_volume_source.c model/v1_cinder_volume_source.h +model/v1_claim_source.c +model/v1_claim_source.h model/v1_client_ip_config.c model/v1_client_ip_config.h model/v1_cluster_role.c @@ -997,6 +1024,12 @@ model/v1_ingress_class_spec.c model/v1_ingress_class_spec.h model/v1_ingress_list.c model/v1_ingress_list.h +model/v1_ingress_load_balancer_ingress.c +model/v1_ingress_load_balancer_ingress.h +model/v1_ingress_load_balancer_status.c +model/v1_ingress_load_balancer_status.h +model/v1_ingress_port_status.c +model/v1_ingress_port_status.h model/v1_ingress_rule.c model/v1_ingress_rule.h model/v1_ingress_service_backend.c @@ -1203,6 +1236,10 @@ model/v1_pod_os.c model/v1_pod_os.h model/v1_pod_readiness_gate.c model/v1_pod_readiness_gate.h +model/v1_pod_resource_claim.c +model/v1_pod_resource_claim.h +model/v1_pod_scheduling_gate.c +model/v1_pod_scheduling_gate.h model/v1_pod_security_context.c model/v1_pod_security_context.h model/v1_pod_spec.c @@ -1261,6 +1298,8 @@ model/v1_replication_controller_status.c model/v1_replication_controller_status.h model/v1_resource_attributes.c model/v1_resource_attributes.h +model/v1_resource_claim.c +model/v1_resource_claim.h model/v1_resource_field_selector.c model/v1_resource_field_selector.h model/v1_resource_quota.c @@ -1369,6 +1408,8 @@ model/v1_stateful_set_condition.c model/v1_stateful_set_condition.h model/v1_stateful_set_list.c model/v1_stateful_set_list.h +model/v1_stateful_set_ordinals.c +model/v1_stateful_set_ordinals.h model/v1_stateful_set_persistent_volume_claim_retention_policy.c model/v1_stateful_set_persistent_volume_claim_retention_policy.h model/v1_stateful_set_spec.c @@ -1427,6 +1468,8 @@ model/v1_topology_spread_constraint.c model/v1_topology_spread_constraint.h model/v1_typed_local_object_reference.c model/v1_typed_local_object_reference.h +model/v1_typed_object_reference.c +model/v1_typed_object_reference.h model/v1_uncounted_terminated_pods.c model/v1_uncounted_terminated_pods.h model/v1_user_info.c @@ -1473,12 +1516,60 @@ model/v1_weighted_pod_affinity_term.c model/v1_weighted_pod_affinity_term.h model/v1_windows_security_context_options.c model/v1_windows_security_context_options.h +model/v1alpha1_allocation_result.c +model/v1alpha1_allocation_result.h model/v1alpha1_cluster_cidr.c model/v1alpha1_cluster_cidr.h model/v1alpha1_cluster_cidr_list.c model/v1alpha1_cluster_cidr_list.h model/v1alpha1_cluster_cidr_spec.c model/v1alpha1_cluster_cidr_spec.h +model/v1alpha1_match_resources.c +model/v1alpha1_match_resources.h +model/v1alpha1_named_rule_with_operations.c +model/v1alpha1_named_rule_with_operations.h +model/v1alpha1_param_kind.c +model/v1alpha1_param_kind.h +model/v1alpha1_param_ref.c +model/v1alpha1_param_ref.h +model/v1alpha1_pod_scheduling.c +model/v1alpha1_pod_scheduling.h +model/v1alpha1_pod_scheduling_list.c +model/v1alpha1_pod_scheduling_list.h +model/v1alpha1_pod_scheduling_spec.c +model/v1alpha1_pod_scheduling_spec.h +model/v1alpha1_pod_scheduling_status.c +model/v1alpha1_pod_scheduling_status.h +model/v1alpha1_resource_claim.c +model/v1alpha1_resource_claim.h +model/v1alpha1_resource_claim_consumer_reference.c +model/v1alpha1_resource_claim_consumer_reference.h +model/v1alpha1_resource_claim_list.c +model/v1alpha1_resource_claim_list.h +model/v1alpha1_resource_claim_parameters_reference.c +model/v1alpha1_resource_claim_parameters_reference.h +model/v1alpha1_resource_claim_scheduling_status.c +model/v1alpha1_resource_claim_scheduling_status.h +model/v1alpha1_resource_claim_spec.c +model/v1alpha1_resource_claim_spec.h +model/v1alpha1_resource_claim_status.c +model/v1alpha1_resource_claim_status.h +model/v1alpha1_resource_claim_template.c +model/v1alpha1_resource_claim_template.h +model/v1alpha1_resource_claim_template_list.c +model/v1alpha1_resource_claim_template_list.h +model/v1alpha1_resource_claim_template_spec.c +model/v1alpha1_resource_claim_template_spec.h +model/v1alpha1_resource_class.c +model/v1alpha1_resource_class.h +model/v1alpha1_resource_class_list.c +model/v1alpha1_resource_class_list.h +model/v1alpha1_resource_class_parameters_reference.c +model/v1alpha1_resource_class_parameters_reference.h +model/v1alpha1_self_subject_review.c +model/v1alpha1_self_subject_review.h +model/v1alpha1_self_subject_review_status.c +model/v1alpha1_self_subject_review_status.h model/v1alpha1_server_storage_version.c model/v1alpha1_server_storage_version.h model/v1alpha1_storage_version.c @@ -1489,54 +1580,24 @@ model/v1alpha1_storage_version_list.c model/v1alpha1_storage_version_list.h model/v1alpha1_storage_version_status.c model/v1alpha1_storage_version_status.h +model/v1alpha1_validating_admission_policy.c +model/v1alpha1_validating_admission_policy.h +model/v1alpha1_validating_admission_policy_binding.c +model/v1alpha1_validating_admission_policy_binding.h +model/v1alpha1_validating_admission_policy_binding_list.c +model/v1alpha1_validating_admission_policy_binding_list.h +model/v1alpha1_validating_admission_policy_binding_spec.c +model/v1alpha1_validating_admission_policy_binding_spec.h +model/v1alpha1_validating_admission_policy_list.c +model/v1alpha1_validating_admission_policy_list.h +model/v1alpha1_validating_admission_policy_spec.c +model/v1alpha1_validating_admission_policy_spec.h +model/v1alpha1_validation.c +model/v1alpha1_validation.h model/v1beta1_csi_storage_capacity.c model/v1beta1_csi_storage_capacity.h model/v1beta1_csi_storage_capacity_list.c model/v1beta1_csi_storage_capacity_list.h -model/v1beta1_flow_distinguisher_method.c -model/v1beta1_flow_distinguisher_method.h -model/v1beta1_flow_schema.c -model/v1beta1_flow_schema.h -model/v1beta1_flow_schema_condition.c -model/v1beta1_flow_schema_condition.h -model/v1beta1_flow_schema_list.c -model/v1beta1_flow_schema_list.h -model/v1beta1_flow_schema_spec.c -model/v1beta1_flow_schema_spec.h -model/v1beta1_flow_schema_status.c -model/v1beta1_flow_schema_status.h -model/v1beta1_group_subject.c -model/v1beta1_group_subject.h -model/v1beta1_limit_response.c -model/v1beta1_limit_response.h -model/v1beta1_limited_priority_level_configuration.c -model/v1beta1_limited_priority_level_configuration.h -model/v1beta1_non_resource_policy_rule.c -model/v1beta1_non_resource_policy_rule.h -model/v1beta1_policy_rules_with_subjects.c -model/v1beta1_policy_rules_with_subjects.h -model/v1beta1_priority_level_configuration.c -model/v1beta1_priority_level_configuration.h -model/v1beta1_priority_level_configuration_condition.c -model/v1beta1_priority_level_configuration_condition.h -model/v1beta1_priority_level_configuration_list.c -model/v1beta1_priority_level_configuration_list.h -model/v1beta1_priority_level_configuration_reference.c -model/v1beta1_priority_level_configuration_reference.h -model/v1beta1_priority_level_configuration_spec.c -model/v1beta1_priority_level_configuration_spec.h -model/v1beta1_priority_level_configuration_status.c -model/v1beta1_priority_level_configuration_status.h -model/v1beta1_queuing_configuration.c -model/v1beta1_queuing_configuration.h -model/v1beta1_resource_policy_rule.c -model/v1beta1_resource_policy_rule.h -model/v1beta1_service_account_subject.c -model/v1beta1_service_account_subject.h -model/v1beta1_subject.c -model/v1beta1_subject.h -model/v1beta1_user_subject.c -model/v1beta1_user_subject.h model/v1beta2_flow_distinguisher_method.c model/v1beta2_flow_distinguisher_method.h model/v1beta2_flow_schema.c @@ -1581,6 +1642,50 @@ model/v1beta2_subject.c model/v1beta2_subject.h model/v1beta2_user_subject.c model/v1beta2_user_subject.h +model/v1beta3_flow_distinguisher_method.c +model/v1beta3_flow_distinguisher_method.h +model/v1beta3_flow_schema.c +model/v1beta3_flow_schema.h +model/v1beta3_flow_schema_condition.c +model/v1beta3_flow_schema_condition.h +model/v1beta3_flow_schema_list.c +model/v1beta3_flow_schema_list.h +model/v1beta3_flow_schema_spec.c +model/v1beta3_flow_schema_spec.h +model/v1beta3_flow_schema_status.c +model/v1beta3_flow_schema_status.h +model/v1beta3_group_subject.c +model/v1beta3_group_subject.h +model/v1beta3_limit_response.c +model/v1beta3_limit_response.h +model/v1beta3_limited_priority_level_configuration.c +model/v1beta3_limited_priority_level_configuration.h +model/v1beta3_non_resource_policy_rule.c +model/v1beta3_non_resource_policy_rule.h +model/v1beta3_policy_rules_with_subjects.c +model/v1beta3_policy_rules_with_subjects.h +model/v1beta3_priority_level_configuration.c +model/v1beta3_priority_level_configuration.h +model/v1beta3_priority_level_configuration_condition.c +model/v1beta3_priority_level_configuration_condition.h +model/v1beta3_priority_level_configuration_list.c +model/v1beta3_priority_level_configuration_list.h +model/v1beta3_priority_level_configuration_reference.c +model/v1beta3_priority_level_configuration_reference.h +model/v1beta3_priority_level_configuration_spec.c +model/v1beta3_priority_level_configuration_spec.h +model/v1beta3_priority_level_configuration_status.c +model/v1beta3_priority_level_configuration_status.h +model/v1beta3_queuing_configuration.c +model/v1beta3_queuing_configuration.h +model/v1beta3_resource_policy_rule.c +model/v1beta3_resource_policy_rule.h +model/v1beta3_service_account_subject.c +model/v1beta3_service_account_subject.h +model/v1beta3_subject.c +model/v1beta3_subject.h +model/v1beta3_user_subject.c +model/v1beta3_user_subject.h model/v2_container_resource_metric_source.c model/v2_container_resource_metric_source.h model/v2_container_resource_metric_status.c @@ -1629,54 +1734,6 @@ model/v2_resource_metric_source.c model/v2_resource_metric_source.h model/v2_resource_metric_status.c model/v2_resource_metric_status.h -model/v2beta2_container_resource_metric_source.c -model/v2beta2_container_resource_metric_source.h -model/v2beta2_container_resource_metric_status.c -model/v2beta2_container_resource_metric_status.h -model/v2beta2_cross_version_object_reference.c -model/v2beta2_cross_version_object_reference.h -model/v2beta2_external_metric_source.c -model/v2beta2_external_metric_source.h -model/v2beta2_external_metric_status.c -model/v2beta2_external_metric_status.h -model/v2beta2_horizontal_pod_autoscaler.c -model/v2beta2_horizontal_pod_autoscaler.h -model/v2beta2_horizontal_pod_autoscaler_behavior.c -model/v2beta2_horizontal_pod_autoscaler_behavior.h -model/v2beta2_horizontal_pod_autoscaler_condition.c -model/v2beta2_horizontal_pod_autoscaler_condition.h -model/v2beta2_horizontal_pod_autoscaler_list.c -model/v2beta2_horizontal_pod_autoscaler_list.h -model/v2beta2_horizontal_pod_autoscaler_spec.c -model/v2beta2_horizontal_pod_autoscaler_spec.h -model/v2beta2_horizontal_pod_autoscaler_status.c -model/v2beta2_horizontal_pod_autoscaler_status.h -model/v2beta2_hpa_scaling_policy.c -model/v2beta2_hpa_scaling_policy.h -model/v2beta2_hpa_scaling_rules.c -model/v2beta2_hpa_scaling_rules.h -model/v2beta2_metric_identifier.c -model/v2beta2_metric_identifier.h -model/v2beta2_metric_spec.c -model/v2beta2_metric_spec.h -model/v2beta2_metric_status.c -model/v2beta2_metric_status.h -model/v2beta2_metric_target.c -model/v2beta2_metric_target.h -model/v2beta2_metric_value_status.c -model/v2beta2_metric_value_status.h -model/v2beta2_object_metric_source.c -model/v2beta2_object_metric_source.h -model/v2beta2_object_metric_status.c -model/v2beta2_object_metric_status.h -model/v2beta2_pods_metric_source.c -model/v2beta2_pods_metric_source.h -model/v2beta2_pods_metric_status.c -model/v2beta2_pods_metric_status.h -model/v2beta2_resource_metric_source.c -model/v2beta2_resource_metric_source.h -model/v2beta2_resource_metric_status.c -model/v2beta2_resource_metric_status.h model/version_info.c model/version_info.h src/apiClient.c @@ -1728,6 +1785,7 @@ unit-test/test_v1_certificate_signing_request_spec.c unit-test/test_v1_certificate_signing_request_status.c unit-test/test_v1_cinder_persistent_volume_source.c unit-test/test_v1_cinder_volume_source.c +unit-test/test_v1_claim_source.c unit-test/test_v1_client_ip_config.c unit-test/test_v1_cluster_role.c unit-test/test_v1_cluster_role_binding.c @@ -1846,6 +1904,9 @@ unit-test/test_v1_ingress_class_list.c unit-test/test_v1_ingress_class_parameters_reference.c unit-test/test_v1_ingress_class_spec.c unit-test/test_v1_ingress_list.c +unit-test/test_v1_ingress_load_balancer_ingress.c +unit-test/test_v1_ingress_load_balancer_status.c +unit-test/test_v1_ingress_port_status.c unit-test/test_v1_ingress_rule.c unit-test/test_v1_ingress_service_backend.c unit-test/test_v1_ingress_spec.c @@ -1949,6 +2010,8 @@ unit-test/test_v1_pod_ip.c unit-test/test_v1_pod_list.c unit-test/test_v1_pod_os.c unit-test/test_v1_pod_readiness_gate.c +unit-test/test_v1_pod_resource_claim.c +unit-test/test_v1_pod_scheduling_gate.c unit-test/test_v1_pod_security_context.c unit-test/test_v1_pod_spec.c unit-test/test_v1_pod_status.c @@ -1978,6 +2041,7 @@ unit-test/test_v1_replication_controller_list.c unit-test/test_v1_replication_controller_spec.c unit-test/test_v1_replication_controller_status.c unit-test/test_v1_resource_attributes.c +unit-test/test_v1_resource_claim.c unit-test/test_v1_resource_field_selector.c unit-test/test_v1_resource_quota.c unit-test/test_v1_resource_quota_list.c @@ -2032,6 +2096,7 @@ unit-test/test_v1_session_affinity_config.c unit-test/test_v1_stateful_set.c unit-test/test_v1_stateful_set_condition.c unit-test/test_v1_stateful_set_list.c +unit-test/test_v1_stateful_set_ordinals.c unit-test/test_v1_stateful_set_persistent_volume_claim_retention_policy.c unit-test/test_v1_stateful_set_spec.c unit-test/test_v1_stateful_set_status.c @@ -2061,6 +2126,7 @@ unit-test/test_v1_topology_selector_label_requirement.c unit-test/test_v1_topology_selector_term.c unit-test/test_v1_topology_spread_constraint.c unit-test/test_v1_typed_local_object_reference.c +unit-test/test_v1_typed_object_reference.c unit-test/test_v1_uncounted_terminated_pods.c unit-test/test_v1_user_info.c unit-test/test_v1_validating_webhook.c @@ -2084,38 +2150,47 @@ unit-test/test_v1_watch_event.c unit-test/test_v1_webhook_conversion.c unit-test/test_v1_weighted_pod_affinity_term.c unit-test/test_v1_windows_security_context_options.c +unit-test/test_v1alpha1_allocation_result.c unit-test/test_v1alpha1_cluster_cidr.c unit-test/test_v1alpha1_cluster_cidr_list.c unit-test/test_v1alpha1_cluster_cidr_spec.c +unit-test/test_v1alpha1_match_resources.c +unit-test/test_v1alpha1_named_rule_with_operations.c +unit-test/test_v1alpha1_param_kind.c +unit-test/test_v1alpha1_param_ref.c +unit-test/test_v1alpha1_pod_scheduling.c +unit-test/test_v1alpha1_pod_scheduling_list.c +unit-test/test_v1alpha1_pod_scheduling_spec.c +unit-test/test_v1alpha1_pod_scheduling_status.c +unit-test/test_v1alpha1_resource_claim.c +unit-test/test_v1alpha1_resource_claim_consumer_reference.c +unit-test/test_v1alpha1_resource_claim_list.c +unit-test/test_v1alpha1_resource_claim_parameters_reference.c +unit-test/test_v1alpha1_resource_claim_scheduling_status.c +unit-test/test_v1alpha1_resource_claim_spec.c +unit-test/test_v1alpha1_resource_claim_status.c +unit-test/test_v1alpha1_resource_claim_template.c +unit-test/test_v1alpha1_resource_claim_template_list.c +unit-test/test_v1alpha1_resource_claim_template_spec.c +unit-test/test_v1alpha1_resource_class.c +unit-test/test_v1alpha1_resource_class_list.c +unit-test/test_v1alpha1_resource_class_parameters_reference.c +unit-test/test_v1alpha1_self_subject_review.c +unit-test/test_v1alpha1_self_subject_review_status.c unit-test/test_v1alpha1_server_storage_version.c unit-test/test_v1alpha1_storage_version.c unit-test/test_v1alpha1_storage_version_condition.c unit-test/test_v1alpha1_storage_version_list.c unit-test/test_v1alpha1_storage_version_status.c +unit-test/test_v1alpha1_validating_admission_policy.c +unit-test/test_v1alpha1_validating_admission_policy_binding.c +unit-test/test_v1alpha1_validating_admission_policy_binding_list.c +unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c +unit-test/test_v1alpha1_validating_admission_policy_list.c +unit-test/test_v1alpha1_validating_admission_policy_spec.c +unit-test/test_v1alpha1_validation.c unit-test/test_v1beta1_csi_storage_capacity.c unit-test/test_v1beta1_csi_storage_capacity_list.c -unit-test/test_v1beta1_flow_distinguisher_method.c -unit-test/test_v1beta1_flow_schema.c -unit-test/test_v1beta1_flow_schema_condition.c -unit-test/test_v1beta1_flow_schema_list.c -unit-test/test_v1beta1_flow_schema_spec.c -unit-test/test_v1beta1_flow_schema_status.c -unit-test/test_v1beta1_group_subject.c -unit-test/test_v1beta1_limit_response.c -unit-test/test_v1beta1_limited_priority_level_configuration.c -unit-test/test_v1beta1_non_resource_policy_rule.c -unit-test/test_v1beta1_policy_rules_with_subjects.c -unit-test/test_v1beta1_priority_level_configuration.c -unit-test/test_v1beta1_priority_level_configuration_condition.c -unit-test/test_v1beta1_priority_level_configuration_list.c -unit-test/test_v1beta1_priority_level_configuration_reference.c -unit-test/test_v1beta1_priority_level_configuration_spec.c -unit-test/test_v1beta1_priority_level_configuration_status.c -unit-test/test_v1beta1_queuing_configuration.c -unit-test/test_v1beta1_resource_policy_rule.c -unit-test/test_v1beta1_service_account_subject.c -unit-test/test_v1beta1_subject.c -unit-test/test_v1beta1_user_subject.c unit-test/test_v1beta2_flow_distinguisher_method.c unit-test/test_v1beta2_flow_schema.c unit-test/test_v1beta2_flow_schema_condition.c @@ -2138,6 +2213,28 @@ unit-test/test_v1beta2_resource_policy_rule.c unit-test/test_v1beta2_service_account_subject.c unit-test/test_v1beta2_subject.c unit-test/test_v1beta2_user_subject.c +unit-test/test_v1beta3_flow_distinguisher_method.c +unit-test/test_v1beta3_flow_schema.c +unit-test/test_v1beta3_flow_schema_condition.c +unit-test/test_v1beta3_flow_schema_list.c +unit-test/test_v1beta3_flow_schema_spec.c +unit-test/test_v1beta3_flow_schema_status.c +unit-test/test_v1beta3_group_subject.c +unit-test/test_v1beta3_limit_response.c +unit-test/test_v1beta3_limited_priority_level_configuration.c +unit-test/test_v1beta3_non_resource_policy_rule.c +unit-test/test_v1beta3_policy_rules_with_subjects.c +unit-test/test_v1beta3_priority_level_configuration.c +unit-test/test_v1beta3_priority_level_configuration_condition.c +unit-test/test_v1beta3_priority_level_configuration_list.c +unit-test/test_v1beta3_priority_level_configuration_reference.c +unit-test/test_v1beta3_priority_level_configuration_spec.c +unit-test/test_v1beta3_priority_level_configuration_status.c +unit-test/test_v1beta3_queuing_configuration.c +unit-test/test_v1beta3_resource_policy_rule.c +unit-test/test_v1beta3_service_account_subject.c +unit-test/test_v1beta3_subject.c +unit-test/test_v1beta3_user_subject.c unit-test/test_v2_container_resource_metric_source.c unit-test/test_v2_container_resource_metric_status.c unit-test/test_v2_cross_version_object_reference.c @@ -2162,28 +2259,4 @@ unit-test/test_v2_pods_metric_source.c unit-test/test_v2_pods_metric_status.c unit-test/test_v2_resource_metric_source.c unit-test/test_v2_resource_metric_status.c -unit-test/test_v2beta2_container_resource_metric_source.c -unit-test/test_v2beta2_container_resource_metric_status.c -unit-test/test_v2beta2_cross_version_object_reference.c -unit-test/test_v2beta2_external_metric_source.c -unit-test/test_v2beta2_external_metric_status.c -unit-test/test_v2beta2_horizontal_pod_autoscaler.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c -unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c -unit-test/test_v2beta2_hpa_scaling_policy.c -unit-test/test_v2beta2_hpa_scaling_rules.c -unit-test/test_v2beta2_metric_identifier.c -unit-test/test_v2beta2_metric_spec.c -unit-test/test_v2beta2_metric_status.c -unit-test/test_v2beta2_metric_target.c -unit-test/test_v2beta2_metric_value_status.c -unit-test/test_v2beta2_object_metric_source.c -unit-test/test_v2beta2_object_metric_status.c -unit-test/test_v2beta2_pods_metric_source.c -unit-test/test_v2beta2_pods_metric_status.c -unit-test/test_v2beta2_resource_metric_source.c -unit-test/test_v2beta2_resource_metric_status.c unit-test/test_version_info.c diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index ed829db..7f4d792 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -6.2.1-SNAPSHOT \ No newline at end of file +6.5.0-SNAPSHOT \ No newline at end of file diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index f09b14a..a3be654 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -0404d4c8137d5e4978c0fa45c88b0433e62ce7a449af4c76f2fcbc8b64aabd3f \ No newline at end of file +bfed191ace6a6ad0a8cf42c91e4dfe5ecac1ab54329f9d482e661b6340d426a4 \ No newline at end of file diff --git a/kubernetes/CMakeLists.txt b/kubernetes/CMakeLists.txt index 12ff572..6fd1662 100644 --- a/kubernetes/CMakeLists.txt +++ b/kubernetes/CMakeLists.txt @@ -98,6 +98,7 @@ set(SRCS model/v1_certificate_signing_request_status.c model/v1_cinder_persistent_volume_source.c model/v1_cinder_volume_source.c + model/v1_claim_source.c model/v1_client_ip_config.c model/v1_cluster_role.c model/v1_cluster_role_binding.c @@ -216,6 +217,9 @@ set(SRCS model/v1_ingress_class_parameters_reference.c model/v1_ingress_class_spec.c model/v1_ingress_list.c + model/v1_ingress_load_balancer_ingress.c + model/v1_ingress_load_balancer_status.c + model/v1_ingress_port_status.c model/v1_ingress_rule.c model/v1_ingress_service_backend.c model/v1_ingress_spec.c @@ -319,6 +323,8 @@ set(SRCS model/v1_pod_list.c model/v1_pod_os.c model/v1_pod_readiness_gate.c + model/v1_pod_resource_claim.c + model/v1_pod_scheduling_gate.c model/v1_pod_security_context.c model/v1_pod_spec.c model/v1_pod_status.c @@ -348,6 +354,7 @@ set(SRCS model/v1_replication_controller_spec.c model/v1_replication_controller_status.c model/v1_resource_attributes.c + model/v1_resource_claim.c model/v1_resource_field_selector.c model/v1_resource_quota.c model/v1_resource_quota_list.c @@ -402,6 +409,7 @@ set(SRCS model/v1_stateful_set.c model/v1_stateful_set_condition.c model/v1_stateful_set_list.c + model/v1_stateful_set_ordinals.c model/v1_stateful_set_persistent_volume_claim_retention_policy.c model/v1_stateful_set_spec.c model/v1_stateful_set_status.c @@ -431,6 +439,7 @@ set(SRCS model/v1_topology_selector_term.c model/v1_topology_spread_constraint.c model/v1_typed_local_object_reference.c + model/v1_typed_object_reference.c model/v1_uncounted_terminated_pods.c model/v1_user_info.c model/v1_validating_webhook.c @@ -454,38 +463,47 @@ set(SRCS model/v1_webhook_conversion.c model/v1_weighted_pod_affinity_term.c model/v1_windows_security_context_options.c + model/v1alpha1_allocation_result.c model/v1alpha1_cluster_cidr.c model/v1alpha1_cluster_cidr_list.c model/v1alpha1_cluster_cidr_spec.c + model/v1alpha1_match_resources.c + model/v1alpha1_named_rule_with_operations.c + model/v1alpha1_param_kind.c + model/v1alpha1_param_ref.c + model/v1alpha1_pod_scheduling.c + model/v1alpha1_pod_scheduling_list.c + model/v1alpha1_pod_scheduling_spec.c + model/v1alpha1_pod_scheduling_status.c + model/v1alpha1_resource_claim.c + model/v1alpha1_resource_claim_consumer_reference.c + model/v1alpha1_resource_claim_list.c + model/v1alpha1_resource_claim_parameters_reference.c + model/v1alpha1_resource_claim_scheduling_status.c + model/v1alpha1_resource_claim_spec.c + model/v1alpha1_resource_claim_status.c + model/v1alpha1_resource_claim_template.c + model/v1alpha1_resource_claim_template_list.c + model/v1alpha1_resource_claim_template_spec.c + model/v1alpha1_resource_class.c + model/v1alpha1_resource_class_list.c + model/v1alpha1_resource_class_parameters_reference.c + model/v1alpha1_self_subject_review.c + model/v1alpha1_self_subject_review_status.c model/v1alpha1_server_storage_version.c model/v1alpha1_storage_version.c model/v1alpha1_storage_version_condition.c model/v1alpha1_storage_version_list.c model/v1alpha1_storage_version_status.c + model/v1alpha1_validating_admission_policy.c + model/v1alpha1_validating_admission_policy_binding.c + model/v1alpha1_validating_admission_policy_binding_list.c + model/v1alpha1_validating_admission_policy_binding_spec.c + model/v1alpha1_validating_admission_policy_list.c + model/v1alpha1_validating_admission_policy_spec.c + model/v1alpha1_validation.c model/v1beta1_csi_storage_capacity.c model/v1beta1_csi_storage_capacity_list.c - model/v1beta1_flow_distinguisher_method.c - model/v1beta1_flow_schema.c - model/v1beta1_flow_schema_condition.c - model/v1beta1_flow_schema_list.c - model/v1beta1_flow_schema_spec.c - model/v1beta1_flow_schema_status.c - model/v1beta1_group_subject.c - model/v1beta1_limit_response.c - model/v1beta1_limited_priority_level_configuration.c - model/v1beta1_non_resource_policy_rule.c - model/v1beta1_policy_rules_with_subjects.c - model/v1beta1_priority_level_configuration.c - model/v1beta1_priority_level_configuration_condition.c - model/v1beta1_priority_level_configuration_list.c - model/v1beta1_priority_level_configuration_reference.c - model/v1beta1_priority_level_configuration_spec.c - model/v1beta1_priority_level_configuration_status.c - model/v1beta1_queuing_configuration.c - model/v1beta1_resource_policy_rule.c - model/v1beta1_service_account_subject.c - model/v1beta1_subject.c - model/v1beta1_user_subject.c model/v1beta2_flow_distinguisher_method.c model/v1beta2_flow_schema.c model/v1beta2_flow_schema_condition.c @@ -508,6 +526,28 @@ set(SRCS model/v1beta2_service_account_subject.c model/v1beta2_subject.c model/v1beta2_user_subject.c + model/v1beta3_flow_distinguisher_method.c + model/v1beta3_flow_schema.c + model/v1beta3_flow_schema_condition.c + model/v1beta3_flow_schema_list.c + model/v1beta3_flow_schema_spec.c + model/v1beta3_flow_schema_status.c + model/v1beta3_group_subject.c + model/v1beta3_limit_response.c + model/v1beta3_limited_priority_level_configuration.c + model/v1beta3_non_resource_policy_rule.c + model/v1beta3_policy_rules_with_subjects.c + model/v1beta3_priority_level_configuration.c + model/v1beta3_priority_level_configuration_condition.c + model/v1beta3_priority_level_configuration_list.c + model/v1beta3_priority_level_configuration_reference.c + model/v1beta3_priority_level_configuration_spec.c + model/v1beta3_priority_level_configuration_status.c + model/v1beta3_queuing_configuration.c + model/v1beta3_resource_policy_rule.c + model/v1beta3_service_account_subject.c + model/v1beta3_subject.c + model/v1beta3_user_subject.c model/v2_container_resource_metric_source.c model/v2_container_resource_metric_status.c model/v2_cross_version_object_reference.c @@ -532,33 +572,10 @@ set(SRCS model/v2_pods_metric_status.c model/v2_resource_metric_source.c model/v2_resource_metric_status.c - model/v2beta2_container_resource_metric_source.c - model/v2beta2_container_resource_metric_status.c - model/v2beta2_cross_version_object_reference.c - model/v2beta2_external_metric_source.c - model/v2beta2_external_metric_status.c - model/v2beta2_horizontal_pod_autoscaler.c - model/v2beta2_horizontal_pod_autoscaler_behavior.c - model/v2beta2_horizontal_pod_autoscaler_condition.c - model/v2beta2_horizontal_pod_autoscaler_list.c - model/v2beta2_horizontal_pod_autoscaler_spec.c - model/v2beta2_horizontal_pod_autoscaler_status.c - model/v2beta2_hpa_scaling_policy.c - model/v2beta2_hpa_scaling_rules.c - model/v2beta2_metric_identifier.c - model/v2beta2_metric_spec.c - model/v2beta2_metric_status.c - model/v2beta2_metric_target.c - model/v2beta2_metric_value_status.c - model/v2beta2_object_metric_source.c - model/v2beta2_object_metric_status.c - model/v2beta2_pods_metric_source.c - model/v2beta2_pods_metric_status.c - model/v2beta2_resource_metric_source.c - model/v2beta2_resource_metric_status.c model/version_info.c api/AdmissionregistrationAPI.c api/AdmissionregistrationV1API.c + api/AdmissionregistrationV1alpha1API.c api/ApiextensionsAPI.c api/ApiextensionsV1API.c api/ApiregistrationAPI.c @@ -568,12 +585,12 @@ set(SRCS api/AppsV1API.c api/AuthenticationAPI.c api/AuthenticationV1API.c + api/AuthenticationV1alpha1API.c api/AuthorizationAPI.c api/AuthorizationV1API.c api/AutoscalingAPI.c api/AutoscalingV1API.c api/AutoscalingV2API.c - api/AutoscalingV2beta2API.c api/BatchAPI.c api/BatchV1API.c api/CertificatesAPI.c @@ -588,8 +605,8 @@ set(SRCS api/EventsAPI.c api/EventsV1API.c api/FlowcontrolApiserverAPI.c - api/FlowcontrolApiserverV1beta1API.c api/FlowcontrolApiserverV1beta2API.c + api/FlowcontrolApiserverV1beta3API.c api/InternalApiserverAPI.c api/InternalApiserverV1alpha1API.c api/LogsAPI.c @@ -603,6 +620,8 @@ set(SRCS api/PolicyV1API.c api/RbacAuthorizationAPI.c api/RbacAuthorizationV1API.c + api/ResourceAPI.c + api/ResourceV1alpha1API.c api/SchedulingAPI.c api/SchedulingV1API.c api/StorageAPI.c @@ -664,6 +683,7 @@ set(HDRS model/v1_certificate_signing_request_status.h model/v1_cinder_persistent_volume_source.h model/v1_cinder_volume_source.h + model/v1_claim_source.h model/v1_client_ip_config.h model/v1_cluster_role.h model/v1_cluster_role_binding.h @@ -782,6 +802,9 @@ set(HDRS model/v1_ingress_class_parameters_reference.h model/v1_ingress_class_spec.h model/v1_ingress_list.h + model/v1_ingress_load_balancer_ingress.h + model/v1_ingress_load_balancer_status.h + model/v1_ingress_port_status.h model/v1_ingress_rule.h model/v1_ingress_service_backend.h model/v1_ingress_spec.h @@ -885,6 +908,8 @@ set(HDRS model/v1_pod_list.h model/v1_pod_os.h model/v1_pod_readiness_gate.h + model/v1_pod_resource_claim.h + model/v1_pod_scheduling_gate.h model/v1_pod_security_context.h model/v1_pod_spec.h model/v1_pod_status.h @@ -914,6 +939,7 @@ set(HDRS model/v1_replication_controller_spec.h model/v1_replication_controller_status.h model/v1_resource_attributes.h + model/v1_resource_claim.h model/v1_resource_field_selector.h model/v1_resource_quota.h model/v1_resource_quota_list.h @@ -968,6 +994,7 @@ set(HDRS model/v1_stateful_set.h model/v1_stateful_set_condition.h model/v1_stateful_set_list.h + model/v1_stateful_set_ordinals.h model/v1_stateful_set_persistent_volume_claim_retention_policy.h model/v1_stateful_set_spec.h model/v1_stateful_set_status.h @@ -997,6 +1024,7 @@ set(HDRS model/v1_topology_selector_term.h model/v1_topology_spread_constraint.h model/v1_typed_local_object_reference.h + model/v1_typed_object_reference.h model/v1_uncounted_terminated_pods.h model/v1_user_info.h model/v1_validating_webhook.h @@ -1020,38 +1048,47 @@ set(HDRS model/v1_webhook_conversion.h model/v1_weighted_pod_affinity_term.h model/v1_windows_security_context_options.h + model/v1alpha1_allocation_result.h model/v1alpha1_cluster_cidr.h model/v1alpha1_cluster_cidr_list.h model/v1alpha1_cluster_cidr_spec.h + model/v1alpha1_match_resources.h + model/v1alpha1_named_rule_with_operations.h + model/v1alpha1_param_kind.h + model/v1alpha1_param_ref.h + model/v1alpha1_pod_scheduling.h + model/v1alpha1_pod_scheduling_list.h + model/v1alpha1_pod_scheduling_spec.h + model/v1alpha1_pod_scheduling_status.h + model/v1alpha1_resource_claim.h + model/v1alpha1_resource_claim_consumer_reference.h + model/v1alpha1_resource_claim_list.h + model/v1alpha1_resource_claim_parameters_reference.h + model/v1alpha1_resource_claim_scheduling_status.h + model/v1alpha1_resource_claim_spec.h + model/v1alpha1_resource_claim_status.h + model/v1alpha1_resource_claim_template.h + model/v1alpha1_resource_claim_template_list.h + model/v1alpha1_resource_claim_template_spec.h + model/v1alpha1_resource_class.h + model/v1alpha1_resource_class_list.h + model/v1alpha1_resource_class_parameters_reference.h + model/v1alpha1_self_subject_review.h + model/v1alpha1_self_subject_review_status.h model/v1alpha1_server_storage_version.h model/v1alpha1_storage_version.h model/v1alpha1_storage_version_condition.h model/v1alpha1_storage_version_list.h model/v1alpha1_storage_version_status.h + model/v1alpha1_validating_admission_policy.h + model/v1alpha1_validating_admission_policy_binding.h + model/v1alpha1_validating_admission_policy_binding_list.h + model/v1alpha1_validating_admission_policy_binding_spec.h + model/v1alpha1_validating_admission_policy_list.h + model/v1alpha1_validating_admission_policy_spec.h + model/v1alpha1_validation.h model/v1beta1_csi_storage_capacity.h model/v1beta1_csi_storage_capacity_list.h - model/v1beta1_flow_distinguisher_method.h - model/v1beta1_flow_schema.h - model/v1beta1_flow_schema_condition.h - model/v1beta1_flow_schema_list.h - model/v1beta1_flow_schema_spec.h - model/v1beta1_flow_schema_status.h - model/v1beta1_group_subject.h - model/v1beta1_limit_response.h - model/v1beta1_limited_priority_level_configuration.h - model/v1beta1_non_resource_policy_rule.h - model/v1beta1_policy_rules_with_subjects.h - model/v1beta1_priority_level_configuration.h - model/v1beta1_priority_level_configuration_condition.h - model/v1beta1_priority_level_configuration_list.h - model/v1beta1_priority_level_configuration_reference.h - model/v1beta1_priority_level_configuration_spec.h - model/v1beta1_priority_level_configuration_status.h - model/v1beta1_queuing_configuration.h - model/v1beta1_resource_policy_rule.h - model/v1beta1_service_account_subject.h - model/v1beta1_subject.h - model/v1beta1_user_subject.h model/v1beta2_flow_distinguisher_method.h model/v1beta2_flow_schema.h model/v1beta2_flow_schema_condition.h @@ -1074,6 +1111,28 @@ set(HDRS model/v1beta2_service_account_subject.h model/v1beta2_subject.h model/v1beta2_user_subject.h + model/v1beta3_flow_distinguisher_method.h + model/v1beta3_flow_schema.h + model/v1beta3_flow_schema_condition.h + model/v1beta3_flow_schema_list.h + model/v1beta3_flow_schema_spec.h + model/v1beta3_flow_schema_status.h + model/v1beta3_group_subject.h + model/v1beta3_limit_response.h + model/v1beta3_limited_priority_level_configuration.h + model/v1beta3_non_resource_policy_rule.h + model/v1beta3_policy_rules_with_subjects.h + model/v1beta3_priority_level_configuration.h + model/v1beta3_priority_level_configuration_condition.h + model/v1beta3_priority_level_configuration_list.h + model/v1beta3_priority_level_configuration_reference.h + model/v1beta3_priority_level_configuration_spec.h + model/v1beta3_priority_level_configuration_status.h + model/v1beta3_queuing_configuration.h + model/v1beta3_resource_policy_rule.h + model/v1beta3_service_account_subject.h + model/v1beta3_subject.h + model/v1beta3_user_subject.h model/v2_container_resource_metric_source.h model/v2_container_resource_metric_status.h model/v2_cross_version_object_reference.h @@ -1098,33 +1157,10 @@ set(HDRS model/v2_pods_metric_status.h model/v2_resource_metric_source.h model/v2_resource_metric_status.h - model/v2beta2_container_resource_metric_source.h - model/v2beta2_container_resource_metric_status.h - model/v2beta2_cross_version_object_reference.h - model/v2beta2_external_metric_source.h - model/v2beta2_external_metric_status.h - model/v2beta2_horizontal_pod_autoscaler.h - model/v2beta2_horizontal_pod_autoscaler_behavior.h - model/v2beta2_horizontal_pod_autoscaler_condition.h - model/v2beta2_horizontal_pod_autoscaler_list.h - model/v2beta2_horizontal_pod_autoscaler_spec.h - model/v2beta2_horizontal_pod_autoscaler_status.h - model/v2beta2_hpa_scaling_policy.h - model/v2beta2_hpa_scaling_rules.h - model/v2beta2_metric_identifier.h - model/v2beta2_metric_spec.h - model/v2beta2_metric_status.h - model/v2beta2_metric_target.h - model/v2beta2_metric_value_status.h - model/v2beta2_object_metric_source.h - model/v2beta2_object_metric_status.h - model/v2beta2_pods_metric_source.h - model/v2beta2_pods_metric_status.h - model/v2beta2_resource_metric_source.h - model/v2beta2_resource_metric_status.h model/version_info.h api/AdmissionregistrationAPI.h api/AdmissionregistrationV1API.h + api/AdmissionregistrationV1alpha1API.h api/ApiextensionsAPI.h api/ApiextensionsV1API.h api/ApiregistrationAPI.h @@ -1134,12 +1170,12 @@ set(HDRS api/AppsV1API.h api/AuthenticationAPI.h api/AuthenticationV1API.h + api/AuthenticationV1alpha1API.h api/AuthorizationAPI.h api/AuthorizationV1API.h api/AutoscalingAPI.h api/AutoscalingV1API.h api/AutoscalingV2API.h - api/AutoscalingV2beta2API.h api/BatchAPI.h api/BatchV1API.h api/CertificatesAPI.h @@ -1154,8 +1190,8 @@ set(HDRS api/EventsAPI.h api/EventsV1API.h api/FlowcontrolApiserverAPI.h - api/FlowcontrolApiserverV1beta1API.h api/FlowcontrolApiserverV1beta2API.h + api/FlowcontrolApiserverV1beta3API.h api/InternalApiserverAPI.h api/InternalApiserverV1alpha1API.h api/LogsAPI.h @@ -1169,6 +1205,8 @@ set(HDRS api/PolicyV1API.h api/RbacAuthorizationAPI.h api/RbacAuthorizationV1API.h + api/ResourceAPI.h + api/ResourceV1alpha1API.h api/SchedulingAPI.h api/SchedulingV1API.h api/StorageAPI.h @@ -1259,6 +1297,7 @@ set(HDRS "") #set(SRCS # unit-tests/manual-AdmissionregistrationAPI.c # unit-tests/manual-AdmissionregistrationV1API.c +# unit-tests/manual-AdmissionregistrationV1alpha1API.c # unit-tests/manual-ApiextensionsAPI.c # unit-tests/manual-ApiextensionsV1API.c # unit-tests/manual-ApiregistrationAPI.c @@ -1268,12 +1307,12 @@ set(HDRS "") # unit-tests/manual-AppsV1API.c # unit-tests/manual-AuthenticationAPI.c # unit-tests/manual-AuthenticationV1API.c +# unit-tests/manual-AuthenticationV1alpha1API.c # unit-tests/manual-AuthorizationAPI.c # unit-tests/manual-AuthorizationV1API.c # unit-tests/manual-AutoscalingAPI.c # unit-tests/manual-AutoscalingV1API.c # unit-tests/manual-AutoscalingV2API.c -# unit-tests/manual-AutoscalingV2beta2API.c # unit-tests/manual-BatchAPI.c # unit-tests/manual-BatchV1API.c # unit-tests/manual-CertificatesAPI.c @@ -1288,8 +1327,8 @@ set(HDRS "") # unit-tests/manual-EventsAPI.c # unit-tests/manual-EventsV1API.c # unit-tests/manual-FlowcontrolApiserverAPI.c -# unit-tests/manual-FlowcontrolApiserverV1beta1API.c # unit-tests/manual-FlowcontrolApiserverV1beta2API.c +# unit-tests/manual-FlowcontrolApiserverV1beta3API.c # unit-tests/manual-InternalApiserverAPI.c # unit-tests/manual-InternalApiserverV1alpha1API.c # unit-tests/manual-LogsAPI.c @@ -1303,6 +1342,8 @@ set(HDRS "") # unit-tests/manual-PolicyV1API.c # unit-tests/manual-RbacAuthorizationAPI.c # unit-tests/manual-RbacAuthorizationV1API.c +# unit-tests/manual-ResourceAPI.c +# unit-tests/manual-ResourceV1alpha1API.c # unit-tests/manual-SchedulingAPI.c # unit-tests/manual-SchedulingV1API.c # unit-tests/manual-StorageAPI.c diff --git a/kubernetes/PreTarget.cmake b/kubernetes/PreTarget.cmake index 4bd4d6c..320d842 100644 --- a/kubernetes/PreTarget.cmake +++ b/kubernetes/PreTarget.cmake @@ -1,5 +1,5 @@ set(PROJECT_VERSION_MAJOR 0) -set(PROJECT_VERSION_MINOR 5) +set(PROJECT_VERSION_MINOR 6) set(PROJECT_VERSION_PATCH 0) set(PROJECT_PACKAGE_DESCRIPTION_SUMMARY "The Kubernetes client library for the C programming language.") diff --git a/kubernetes/README.md b/kubernetes/README.md index 631493c..661141a 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -3,7 +3,7 @@ ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI spec](https://openapis.org) from a remote server, you can easily generate an API client. -- API version: release-1.25 +- API version: release-1.26 - Package version: - Build package: org.openapitools.codegen.languages.CLibcurlClientCodegen @@ -80,6 +80,21 @@ Category | Method | HTTP request | Description *AdmissionregistrationV1API* | [**AdmissionregistrationV1API_readValidatingWebhookConfiguration**](docs/AdmissionregistrationV1API.md#AdmissionregistrationV1API_readValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | *AdmissionregistrationV1API* | [**AdmissionregistrationV1API_replaceMutatingWebhookConfiguration**](docs/AdmissionregistrationV1API.md#AdmissionregistrationV1API_replaceMutatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | *AdmissionregistrationV1API* | [**AdmissionregistrationV1API_replaceValidatingWebhookConfiguration**](docs/AdmissionregistrationV1API.md#AdmissionregistrationV1API_replaceValidatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_getAPIResources**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/ | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +*AdmissionregistrationV1alpha1API* | [**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding**](docs/AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | *ApiextensionsAPI* | [**ApiextensionsAPI_getAPIGroup**](docs/ApiextensionsAPI.md#ApiextensionsAPI_getAPIGroup) | **GET** /apis/apiextensions.k8s.io/ | *ApiextensionsV1API* | [**ApiextensionsV1API_createCustomResourceDefinition**](docs/ApiextensionsV1API.md#ApiextensionsV1API_createCustomResourceDefinition) | **POST** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | *ApiextensionsV1API* | [**ApiextensionsV1API_deleteCollectionCustomResourceDefinition**](docs/ApiextensionsV1API.md#ApiextensionsV1API_deleteCollectionCustomResourceDefinition) | **DELETE** /apis/apiextensions.k8s.io/v1/customresourcedefinitions | @@ -171,6 +186,8 @@ Category | Method | HTTP request | Description *AuthenticationAPI* | [**AuthenticationAPI_getAPIGroup**](docs/AuthenticationAPI.md#AuthenticationAPI_getAPIGroup) | **GET** /apis/authentication.k8s.io/ | *AuthenticationV1API* | [**AuthenticationV1API_createTokenReview**](docs/AuthenticationV1API.md#AuthenticationV1API_createTokenReview) | **POST** /apis/authentication.k8s.io/v1/tokenreviews | *AuthenticationV1API* | [**AuthenticationV1API_getAPIResources**](docs/AuthenticationV1API.md#AuthenticationV1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1/ | +*AuthenticationV1alpha1API* | [**AuthenticationV1alpha1API_createSelfSubjectReview**](docs/AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews | +*AuthenticationV1alpha1API* | [**AuthenticationV1alpha1API_getAPIResources**](docs/AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1alpha1/ | *AuthorizationAPI* | [**AuthorizationAPI_getAPIGroup**](docs/AuthorizationAPI.md#AuthorizationAPI_getAPIGroup) | **GET** /apis/authorization.k8s.io/ | *AuthorizationV1API* | [**AuthorizationV1API_createNamespacedLocalSubjectAccessReview**](docs/AuthorizationV1API.md#AuthorizationV1API_createNamespacedLocalSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews | *AuthorizationV1API* | [**AuthorizationV1API_createSelfSubjectAccessReview**](docs/AuthorizationV1API.md#AuthorizationV1API_createSelfSubjectAccessReview) | **POST** /apis/authorization.k8s.io/v1/selfsubjectaccessreviews | @@ -202,18 +219,6 @@ Category | Method | HTTP request | Description *AutoscalingV2API* | [**AutoscalingV2API_readNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2API.md#AutoscalingV2API_readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *AutoscalingV2API* | [**AutoscalingV2API_replaceNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2API.md#AutoscalingV2API_replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name} | *AutoscalingV2API* | [**AutoscalingV2API_replaceNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2API.md#AutoscalingV2API_replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler) | **POST** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler) | **DELETE** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_getAPIResources**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_getAPIResources) | **GET** /apis/autoscaling/v2beta2/ | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces) | **GET** /apis/autoscaling/v2beta2/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler) | **PATCH** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus) | **PATCH** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler) | **GET** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus) | **GET** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler) | **PUT** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name} | -*AutoscalingV2beta2API* | [**AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus**](docs/AutoscalingV2beta2API.md#AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus) | **PUT** /apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status | *BatchAPI* | [**BatchAPI_getAPIGroup**](docs/BatchAPI.md#BatchAPI_getAPIGroup) | **GET** /apis/batch/ | *BatchV1API* | [**BatchV1API_createNamespacedCronJob**](docs/BatchV1API.md#BatchV1API_createNamespacedCronJob) | **POST** /apis/batch/v1/namespaces/{namespace}/cronjobs | *BatchV1API* | [**BatchV1API_createNamespacedJob**](docs/BatchV1API.md#BatchV1API_createNamespacedJob) | **POST** /apis/batch/v1/namespaces/{namespace}/jobs | @@ -473,6 +478,7 @@ Category | Method | HTTP request | Description *CustomObjectsAPI* | [**CustomObjectsAPI_deleteCollectionClusterCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural} | *CustomObjectsAPI* | [**CustomObjectsAPI_deleteCollectionNamespacedCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | *CustomObjectsAPI* | [**CustomObjectsAPI_deleteNamespacedCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_deleteNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +*CustomObjectsAPI* | [**CustomObjectsAPI_getAPIResources**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getAPIResources) | **GET** /apis/{group}/{version} | *CustomObjectsAPI* | [**CustomObjectsAPI_getClusterCustomObject**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObject) | **GET** /apis/{group}/{version}/{plural}/{name} | *CustomObjectsAPI* | [**CustomObjectsAPI_getClusterCustomObjectScale**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectScale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | *CustomObjectsAPI* | [**CustomObjectsAPI_getClusterCustomObjectStatus**](docs/CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectStatus) | **GET** /apis/{group}/{version}/{plural}/{name}/status | @@ -514,27 +520,6 @@ Category | Method | HTTP request | Description *EventsV1API* | [**EventsV1API_readNamespacedEvent**](docs/EventsV1API.md#EventsV1API_readNamespacedEvent) | **GET** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | *EventsV1API* | [**EventsV1API_replaceNamespacedEvent**](docs/EventsV1API.md#EventsV1API_replaceNamespacedEvent) | **PUT** /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name} | *FlowcontrolApiserverAPI* | [**FlowcontrolApiserverAPI_getAPIGroup**](docs/FlowcontrolApiserverAPI.md#FlowcontrolApiserverAPI_getAPIGroup) | **GET** /apis/flowcontrol.apiserver.k8s.io/ | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_createFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deleteFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_getAPIResources**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/ | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_listFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replaceFlowSchema**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name} | -*FlowcontrolApiserverV1beta1API* | [**FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta1API.md#FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_createFlowSchema**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_createPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas | @@ -556,6 +541,27 @@ Category | Method | HTTP request | Description *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_replaceFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_replacePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name} | *FlowcontrolApiserverV1beta2API* | [**FlowcontrolApiserverV1beta2API_replacePriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta2API.md#FlowcontrolApiserverV1beta2API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_createFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deleteFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_getAPIResources**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/ | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_listFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replaceFlowSchema**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +*FlowcontrolApiserverV1beta3API* | [**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus**](docs/FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | *InternalApiserverAPI* | [**InternalApiserverAPI_getAPIGroup**](docs/InternalApiserverAPI.md#InternalApiserverAPI_getAPIGroup) | **GET** /apis/internal.apiserver.k8s.io/ | *InternalApiserverV1alpha1API* | [**InternalApiserverV1alpha1API_createStorageVersion**](docs/InternalApiserverV1alpha1API.md#InternalApiserverV1alpha1API_createStorageVersion) | **POST** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | *InternalApiserverV1alpha1API* | [**InternalApiserverV1alpha1API_deleteCollectionStorageVersion**](docs/InternalApiserverV1alpha1API.md#InternalApiserverV1alpha1API_deleteCollectionStorageVersion) | **DELETE** /apis/internal.apiserver.k8s.io/v1alpha1/storageversions | @@ -664,6 +670,45 @@ Category | Method | HTTP request | Description *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_replaceClusterRoleBinding**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_replaceClusterRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name} | *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_replaceNamespacedRole**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_replaceNamespacedRole) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name} | *RbacAuthorizationV1API* | [**RbacAuthorizationV1API_replaceNamespacedRoleBinding**](docs/RbacAuthorizationV1API.md#RbacAuthorizationV1API_replaceNamespacedRoleBinding) | **PUT** /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name} | +*ResourceAPI* | [**ResourceAPI_getAPIGroup**](docs/ResourceAPI.md#ResourceAPI_getAPIGroup) | **GET** /apis/resource.k8s.io/ | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedPodScheduling) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_createResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha1/resourceclasses | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteCollectionResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_deleteResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_getAPIResources**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha1/ | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listPodSchedulingForAllNamespaces**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listPodSchedulingForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/podschedulings | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listResourceClaimForAllNamespaces**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaims | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaimtemplates | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_listResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodScheduling) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedPodSchedulingStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodSchedulingStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedResourceClaimStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_patchResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedPodSchedulingStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodSchedulingStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedResourceClaimStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_readResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedPodScheduling**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodScheduling) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedResourceClaim**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedResourceClaimStatus**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +*ResourceV1alpha1API* | [**ResourceV1alpha1API_replaceResourceClass**](docs/ResourceV1alpha1API.md#ResourceV1alpha1API_replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | *SchedulingAPI* | [**SchedulingAPI_getAPIGroup**](docs/SchedulingAPI.md#SchedulingAPI_getAPIGroup) | **GET** /apis/scheduling.k8s.io/ | *SchedulingV1API* | [**SchedulingV1API_createPriorityClass**](docs/SchedulingV1API.md#SchedulingV1API_createPriorityClass) | **POST** /apis/scheduling.k8s.io/v1/priorityclasses | *SchedulingV1API* | [**SchedulingV1API_deleteCollectionPriorityClass**](docs/SchedulingV1API.md#SchedulingV1API_deleteCollectionPriorityClass) | **DELETE** /apis/scheduling.k8s.io/v1/priorityclasses | @@ -773,6 +818,7 @@ Category | Method | HTTP request | Description - [v1_certificate_signing_request_status_t](docs/v1_certificate_signing_request_status.md) - [v1_cinder_persistent_volume_source_t](docs/v1_cinder_persistent_volume_source.md) - [v1_cinder_volume_source_t](docs/v1_cinder_volume_source.md) + - [v1_claim_source_t](docs/v1_claim_source.md) - [v1_client_ip_config_t](docs/v1_client_ip_config.md) - [v1_cluster_role_t](docs/v1_cluster_role.md) - [v1_cluster_role_binding_t](docs/v1_cluster_role_binding.md) @@ -891,6 +937,9 @@ Category | Method | HTTP request | Description - [v1_ingress_class_parameters_reference_t](docs/v1_ingress_class_parameters_reference.md) - [v1_ingress_class_spec_t](docs/v1_ingress_class_spec.md) - [v1_ingress_list_t](docs/v1_ingress_list.md) + - [v1_ingress_load_balancer_ingress_t](docs/v1_ingress_load_balancer_ingress.md) + - [v1_ingress_load_balancer_status_t](docs/v1_ingress_load_balancer_status.md) + - [v1_ingress_port_status_t](docs/v1_ingress_port_status.md) - [v1_ingress_rule_t](docs/v1_ingress_rule.md) - [v1_ingress_service_backend_t](docs/v1_ingress_service_backend.md) - [v1_ingress_spec_t](docs/v1_ingress_spec.md) @@ -994,6 +1043,8 @@ Category | Method | HTTP request | Description - [v1_pod_list_t](docs/v1_pod_list.md) - [v1_pod_os_t](docs/v1_pod_os.md) - [v1_pod_readiness_gate_t](docs/v1_pod_readiness_gate.md) + - [v1_pod_resource_claim_t](docs/v1_pod_resource_claim.md) + - [v1_pod_scheduling_gate_t](docs/v1_pod_scheduling_gate.md) - [v1_pod_security_context_t](docs/v1_pod_security_context.md) - [v1_pod_spec_t](docs/v1_pod_spec.md) - [v1_pod_status_t](docs/v1_pod_status.md) @@ -1023,6 +1074,7 @@ Category | Method | HTTP request | Description - [v1_replication_controller_spec_t](docs/v1_replication_controller_spec.md) - [v1_replication_controller_status_t](docs/v1_replication_controller_status.md) - [v1_resource_attributes_t](docs/v1_resource_attributes.md) + - [v1_resource_claim_t](docs/v1_resource_claim.md) - [v1_resource_field_selector_t](docs/v1_resource_field_selector.md) - [v1_resource_quota_t](docs/v1_resource_quota.md) - [v1_resource_quota_list_t](docs/v1_resource_quota_list.md) @@ -1077,6 +1129,7 @@ Category | Method | HTTP request | Description - [v1_stateful_set_t](docs/v1_stateful_set.md) - [v1_stateful_set_condition_t](docs/v1_stateful_set_condition.md) - [v1_stateful_set_list_t](docs/v1_stateful_set_list.md) + - [v1_stateful_set_ordinals_t](docs/v1_stateful_set_ordinals.md) - [v1_stateful_set_persistent_volume_claim_retention_policy_t](docs/v1_stateful_set_persistent_volume_claim_retention_policy.md) - [v1_stateful_set_spec_t](docs/v1_stateful_set_spec.md) - [v1_stateful_set_status_t](docs/v1_stateful_set_status.md) @@ -1106,6 +1159,7 @@ Category | Method | HTTP request | Description - [v1_topology_selector_term_t](docs/v1_topology_selector_term.md) - [v1_topology_spread_constraint_t](docs/v1_topology_spread_constraint.md) - [v1_typed_local_object_reference_t](docs/v1_typed_local_object_reference.md) + - [v1_typed_object_reference_t](docs/v1_typed_object_reference.md) - [v1_uncounted_terminated_pods_t](docs/v1_uncounted_terminated_pods.md) - [v1_user_info_t](docs/v1_user_info.md) - [v1_validating_webhook_t](docs/v1_validating_webhook.md) @@ -1129,38 +1183,47 @@ Category | Method | HTTP request | Description - [v1_webhook_conversion_t](docs/v1_webhook_conversion.md) - [v1_weighted_pod_affinity_term_t](docs/v1_weighted_pod_affinity_term.md) - [v1_windows_security_context_options_t](docs/v1_windows_security_context_options.md) + - [v1alpha1_allocation_result_t](docs/v1alpha1_allocation_result.md) - [v1alpha1_cluster_cidr_t](docs/v1alpha1_cluster_cidr.md) - [v1alpha1_cluster_cidr_list_t](docs/v1alpha1_cluster_cidr_list.md) - [v1alpha1_cluster_cidr_spec_t](docs/v1alpha1_cluster_cidr_spec.md) + - [v1alpha1_match_resources_t](docs/v1alpha1_match_resources.md) + - [v1alpha1_named_rule_with_operations_t](docs/v1alpha1_named_rule_with_operations.md) + - [v1alpha1_param_kind_t](docs/v1alpha1_param_kind.md) + - [v1alpha1_param_ref_t](docs/v1alpha1_param_ref.md) + - [v1alpha1_pod_scheduling_t](docs/v1alpha1_pod_scheduling.md) + - [v1alpha1_pod_scheduling_list_t](docs/v1alpha1_pod_scheduling_list.md) + - [v1alpha1_pod_scheduling_spec_t](docs/v1alpha1_pod_scheduling_spec.md) + - [v1alpha1_pod_scheduling_status_t](docs/v1alpha1_pod_scheduling_status.md) + - [v1alpha1_resource_claim_t](docs/v1alpha1_resource_claim.md) + - [v1alpha1_resource_claim_consumer_reference_t](docs/v1alpha1_resource_claim_consumer_reference.md) + - [v1alpha1_resource_claim_list_t](docs/v1alpha1_resource_claim_list.md) + - [v1alpha1_resource_claim_parameters_reference_t](docs/v1alpha1_resource_claim_parameters_reference.md) + - [v1alpha1_resource_claim_scheduling_status_t](docs/v1alpha1_resource_claim_scheduling_status.md) + - [v1alpha1_resource_claim_spec_t](docs/v1alpha1_resource_claim_spec.md) + - [v1alpha1_resource_claim_status_t](docs/v1alpha1_resource_claim_status.md) + - [v1alpha1_resource_claim_template_t](docs/v1alpha1_resource_claim_template.md) + - [v1alpha1_resource_claim_template_list_t](docs/v1alpha1_resource_claim_template_list.md) + - [v1alpha1_resource_claim_template_spec_t](docs/v1alpha1_resource_claim_template_spec.md) + - [v1alpha1_resource_class_t](docs/v1alpha1_resource_class.md) + - [v1alpha1_resource_class_list_t](docs/v1alpha1_resource_class_list.md) + - [v1alpha1_resource_class_parameters_reference_t](docs/v1alpha1_resource_class_parameters_reference.md) + - [v1alpha1_self_subject_review_t](docs/v1alpha1_self_subject_review.md) + - [v1alpha1_self_subject_review_status_t](docs/v1alpha1_self_subject_review_status.md) - [v1alpha1_server_storage_version_t](docs/v1alpha1_server_storage_version.md) - [v1alpha1_storage_version_t](docs/v1alpha1_storage_version.md) - [v1alpha1_storage_version_condition_t](docs/v1alpha1_storage_version_condition.md) - [v1alpha1_storage_version_list_t](docs/v1alpha1_storage_version_list.md) - [v1alpha1_storage_version_status_t](docs/v1alpha1_storage_version_status.md) + - [v1alpha1_validating_admission_policy_t](docs/v1alpha1_validating_admission_policy.md) + - [v1alpha1_validating_admission_policy_binding_t](docs/v1alpha1_validating_admission_policy_binding.md) + - [v1alpha1_validating_admission_policy_binding_list_t](docs/v1alpha1_validating_admission_policy_binding_list.md) + - [v1alpha1_validating_admission_policy_binding_spec_t](docs/v1alpha1_validating_admission_policy_binding_spec.md) + - [v1alpha1_validating_admission_policy_list_t](docs/v1alpha1_validating_admission_policy_list.md) + - [v1alpha1_validating_admission_policy_spec_t](docs/v1alpha1_validating_admission_policy_spec.md) + - [v1alpha1_validation_t](docs/v1alpha1_validation.md) - [v1beta1_csi_storage_capacity_t](docs/v1beta1_csi_storage_capacity.md) - [v1beta1_csi_storage_capacity_list_t](docs/v1beta1_csi_storage_capacity_list.md) - - [v1beta1_flow_distinguisher_method_t](docs/v1beta1_flow_distinguisher_method.md) - - [v1beta1_flow_schema_t](docs/v1beta1_flow_schema.md) - - [v1beta1_flow_schema_condition_t](docs/v1beta1_flow_schema_condition.md) - - [v1beta1_flow_schema_list_t](docs/v1beta1_flow_schema_list.md) - - [v1beta1_flow_schema_spec_t](docs/v1beta1_flow_schema_spec.md) - - [v1beta1_flow_schema_status_t](docs/v1beta1_flow_schema_status.md) - - [v1beta1_group_subject_t](docs/v1beta1_group_subject.md) - - [v1beta1_limit_response_t](docs/v1beta1_limit_response.md) - - [v1beta1_limited_priority_level_configuration_t](docs/v1beta1_limited_priority_level_configuration.md) - - [v1beta1_non_resource_policy_rule_t](docs/v1beta1_non_resource_policy_rule.md) - - [v1beta1_policy_rules_with_subjects_t](docs/v1beta1_policy_rules_with_subjects.md) - - [v1beta1_priority_level_configuration_t](docs/v1beta1_priority_level_configuration.md) - - [v1beta1_priority_level_configuration_condition_t](docs/v1beta1_priority_level_configuration_condition.md) - - [v1beta1_priority_level_configuration_list_t](docs/v1beta1_priority_level_configuration_list.md) - - [v1beta1_priority_level_configuration_reference_t](docs/v1beta1_priority_level_configuration_reference.md) - - [v1beta1_priority_level_configuration_spec_t](docs/v1beta1_priority_level_configuration_spec.md) - - [v1beta1_priority_level_configuration_status_t](docs/v1beta1_priority_level_configuration_status.md) - - [v1beta1_queuing_configuration_t](docs/v1beta1_queuing_configuration.md) - - [v1beta1_resource_policy_rule_t](docs/v1beta1_resource_policy_rule.md) - - [v1beta1_service_account_subject_t](docs/v1beta1_service_account_subject.md) - - [v1beta1_subject_t](docs/v1beta1_subject.md) - - [v1beta1_user_subject_t](docs/v1beta1_user_subject.md) - [v1beta2_flow_distinguisher_method_t](docs/v1beta2_flow_distinguisher_method.md) - [v1beta2_flow_schema_t](docs/v1beta2_flow_schema.md) - [v1beta2_flow_schema_condition_t](docs/v1beta2_flow_schema_condition.md) @@ -1183,6 +1246,28 @@ Category | Method | HTTP request | Description - [v1beta2_service_account_subject_t](docs/v1beta2_service_account_subject.md) - [v1beta2_subject_t](docs/v1beta2_subject.md) - [v1beta2_user_subject_t](docs/v1beta2_user_subject.md) + - [v1beta3_flow_distinguisher_method_t](docs/v1beta3_flow_distinguisher_method.md) + - [v1beta3_flow_schema_t](docs/v1beta3_flow_schema.md) + - [v1beta3_flow_schema_condition_t](docs/v1beta3_flow_schema_condition.md) + - [v1beta3_flow_schema_list_t](docs/v1beta3_flow_schema_list.md) + - [v1beta3_flow_schema_spec_t](docs/v1beta3_flow_schema_spec.md) + - [v1beta3_flow_schema_status_t](docs/v1beta3_flow_schema_status.md) + - [v1beta3_group_subject_t](docs/v1beta3_group_subject.md) + - [v1beta3_limit_response_t](docs/v1beta3_limit_response.md) + - [v1beta3_limited_priority_level_configuration_t](docs/v1beta3_limited_priority_level_configuration.md) + - [v1beta3_non_resource_policy_rule_t](docs/v1beta3_non_resource_policy_rule.md) + - [v1beta3_policy_rules_with_subjects_t](docs/v1beta3_policy_rules_with_subjects.md) + - [v1beta3_priority_level_configuration_t](docs/v1beta3_priority_level_configuration.md) + - [v1beta3_priority_level_configuration_condition_t](docs/v1beta3_priority_level_configuration_condition.md) + - [v1beta3_priority_level_configuration_list_t](docs/v1beta3_priority_level_configuration_list.md) + - [v1beta3_priority_level_configuration_reference_t](docs/v1beta3_priority_level_configuration_reference.md) + - [v1beta3_priority_level_configuration_spec_t](docs/v1beta3_priority_level_configuration_spec.md) + - [v1beta3_priority_level_configuration_status_t](docs/v1beta3_priority_level_configuration_status.md) + - [v1beta3_queuing_configuration_t](docs/v1beta3_queuing_configuration.md) + - [v1beta3_resource_policy_rule_t](docs/v1beta3_resource_policy_rule.md) + - [v1beta3_service_account_subject_t](docs/v1beta3_service_account_subject.md) + - [v1beta3_subject_t](docs/v1beta3_subject.md) + - [v1beta3_user_subject_t](docs/v1beta3_user_subject.md) - [v2_container_resource_metric_source_t](docs/v2_container_resource_metric_source.md) - [v2_container_resource_metric_status_t](docs/v2_container_resource_metric_status.md) - [v2_cross_version_object_reference_t](docs/v2_cross_version_object_reference.md) @@ -1207,30 +1292,6 @@ Category | Method | HTTP request | Description - [v2_pods_metric_status_t](docs/v2_pods_metric_status.md) - [v2_resource_metric_source_t](docs/v2_resource_metric_source.md) - [v2_resource_metric_status_t](docs/v2_resource_metric_status.md) - - [v2beta2_container_resource_metric_source_t](docs/v2beta2_container_resource_metric_source.md) - - [v2beta2_container_resource_metric_status_t](docs/v2beta2_container_resource_metric_status.md) - - [v2beta2_cross_version_object_reference_t](docs/v2beta2_cross_version_object_reference.md) - - [v2beta2_external_metric_source_t](docs/v2beta2_external_metric_source.md) - - [v2beta2_external_metric_status_t](docs/v2beta2_external_metric_status.md) - - [v2beta2_horizontal_pod_autoscaler_t](docs/v2beta2_horizontal_pod_autoscaler.md) - - [v2beta2_horizontal_pod_autoscaler_behavior_t](docs/v2beta2_horizontal_pod_autoscaler_behavior.md) - - [v2beta2_horizontal_pod_autoscaler_condition_t](docs/v2beta2_horizontal_pod_autoscaler_condition.md) - - [v2beta2_horizontal_pod_autoscaler_list_t](docs/v2beta2_horizontal_pod_autoscaler_list.md) - - [v2beta2_horizontal_pod_autoscaler_spec_t](docs/v2beta2_horizontal_pod_autoscaler_spec.md) - - [v2beta2_horizontal_pod_autoscaler_status_t](docs/v2beta2_horizontal_pod_autoscaler_status.md) - - [v2beta2_hpa_scaling_policy_t](docs/v2beta2_hpa_scaling_policy.md) - - [v2beta2_hpa_scaling_rules_t](docs/v2beta2_hpa_scaling_rules.md) - - [v2beta2_metric_identifier_t](docs/v2beta2_metric_identifier.md) - - [v2beta2_metric_spec_t](docs/v2beta2_metric_spec.md) - - [v2beta2_metric_status_t](docs/v2beta2_metric_status.md) - - [v2beta2_metric_target_t](docs/v2beta2_metric_target.md) - - [v2beta2_metric_value_status_t](docs/v2beta2_metric_value_status.md) - - [v2beta2_object_metric_source_t](docs/v2beta2_object_metric_source.md) - - [v2beta2_object_metric_status_t](docs/v2beta2_object_metric_status.md) - - [v2beta2_pods_metric_source_t](docs/v2beta2_pods_metric_source.md) - - [v2beta2_pods_metric_status_t](docs/v2beta2_pods_metric_status.md) - - [v2beta2_resource_metric_source_t](docs/v2beta2_resource_metric_source.md) - - [v2beta2_resource_metric_status_t](docs/v2beta2_resource_metric_status.md) - [version_info_t](docs/version_info.md) diff --git a/kubernetes/api/AutoscalingV2beta2API.c b/kubernetes/api/AdmissionregistrationV1alpha1API.c similarity index 67% rename from kubernetes/api/AutoscalingV2beta2API.c rename to kubernetes/api/AdmissionregistrationV1alpha1API.c index ffae948..74bb35a 100644 --- a/kubernetes/api/AutoscalingV2beta2API.c +++ b/kubernetes/api/AdmissionregistrationV1alpha1API.c @@ -1,7 +1,7 @@ #include #include #include -#include "AutoscalingV2beta2API.h" +#include "AdmissionregistrationV1alpha1API.h" #define MAX_NUMBER_LENGTH 16 #define MAX_BUFFER_LENGTH 4096 @@ -12,10 +12,10 @@ }while(0) -// create a HorizontalPodAutoscaler +// create a ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -25,21 +25,11 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"); - // Path Params - long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -95,7 +85,7 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl if (body != NULL) { //string - localVarSingleItemJSON_body = v2beta2_horizontal_pod_autoscaler_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -128,9 +118,9 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -147,7 +137,6 @@ AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl list_freeList(localVarHeaderType); free(localVarPath); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -208,10 +197,10 @@ end: } -// delete collection of HorizontalPodAutoscaler +// create a ValidatingAdmissionPolicyBinding // -v1_status_t* -AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -221,20 +210,195 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"); - // Path Params - long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_binding_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ValidatingAdmissionPolicy +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"); + @@ -416,9 +580,9 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -435,7 +599,6 @@ AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClien list_freeList(localVarHeaderType); free(localVarPath); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -592,10 +755,10 @@ end: } -// delete a HorizontalPodAutoscaler +// delete collection of ValidatingAdmissionPolicyBinding // v1_status_t* -AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -605,13 +768,386 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ValidatingAdmissionPolicy +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -620,16 +1156,6 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -728,9 +1254,227 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //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 a ValidatingAdmissionPolicyBinding +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -748,7 +1492,6 @@ AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiCl free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -824,7 +1567,7 @@ end: // get available resources // v1_api_resource_list_t* -AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient) +AdmissionregistrationV1alpha1API_getAPIResources(apiClient_t *apiClient) { list_t *localVarQueryParameters = NULL; list_t *localVarHeaderParameters = NULL; @@ -834,9 +1577,9 @@ AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient) char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/"); @@ -862,9 +1605,9 @@ AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient) // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -888,10 +1631,10 @@ end: } -// list or watch objects of kind HorizontalPodAutoscaler +// list or watch objects of kind ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1alpha1_validating_admission_policy_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -901,336 +1644,13 @@ AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *a char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/horizontalpodautoscalers")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/horizontalpodautoscalers"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies"); - // query parameters - char *keyQuery_allowWatchBookmarks = NULL; - char * valueQuery_allowWatchBookmarks = NULL; - keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; - if (1) // Always send boolean parameters to the API server - { - keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); - valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); - snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); - keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); - list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); - } - - // query parameters - char *keyQuery__continue = NULL; - char * valueQuery__continue = NULL; - keyValuePair_t *keyPairQuery__continue = 0; - if (_continue) - { - keyQuery__continue = strdup("continue"); - valueQuery__continue = strdup((_continue)); - keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); - list_addElement(localVarQueryParameters,keyPairQuery__continue); - } - - // query parameters - char *keyQuery_fieldSelector = NULL; - char * valueQuery_fieldSelector = NULL; - keyValuePair_t *keyPairQuery_fieldSelector = 0; - if (fieldSelector) - { - keyQuery_fieldSelector = strdup("fieldSelector"); - valueQuery_fieldSelector = strdup((fieldSelector)); - keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); - list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); - } - - // query parameters - char *keyQuery_labelSelector = NULL; - char * valueQuery_labelSelector = NULL; - keyValuePair_t *keyPairQuery_labelSelector = 0; - if (labelSelector) - { - keyQuery_labelSelector = strdup("labelSelector"); - valueQuery_labelSelector = strdup((labelSelector)); - keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); - list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); - } - - // query parameters - char *keyQuery_limit = NULL; - char * valueQuery_limit = NULL; - keyValuePair_t *keyPairQuery_limit = 0; - if (1) // Always send integer parameters to the API server - { - keyQuery_limit = strdup("limit"); - valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); - snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); - keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); - list_addElement(localVarQueryParameters,keyPairQuery_limit); - } - - // query parameters - char *keyQuery_pretty = NULL; - char * valueQuery_pretty = NULL; - keyValuePair_t *keyPairQuery_pretty = 0; - if (pretty) - { - keyQuery_pretty = strdup("pretty"); - valueQuery_pretty = strdup((pretty)); - keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); - list_addElement(localVarQueryParameters,keyPairQuery_pretty); - } - - // query parameters - char *keyQuery_resourceVersion = NULL; - char * valueQuery_resourceVersion = NULL; - keyValuePair_t *keyPairQuery_resourceVersion = 0; - if (resourceVersion) - { - keyQuery_resourceVersion = strdup("resourceVersion"); - valueQuery_resourceVersion = strdup((resourceVersion)); - keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); - list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); - } - - // query parameters - char *keyQuery_resourceVersionMatch = NULL; - char * valueQuery_resourceVersionMatch = NULL; - keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; - if (resourceVersionMatch) - { - keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); - valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); - keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); - list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); - } - - // query parameters - char *keyQuery_timeoutSeconds = NULL; - char * valueQuery_timeoutSeconds = NULL; - keyValuePair_t *keyPairQuery_timeoutSeconds = 0; - if (1) // Always send integer parameters to the API server - { - keyQuery_timeoutSeconds = strdup("timeoutSeconds"); - valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); - snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); - keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); - list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); - } - - // query parameters - char *keyQuery_watch = NULL; - char * valueQuery_watch = NULL; - keyValuePair_t *keyPairQuery_watch = 0; - if (1) // Always send boolean parameters to the API server - { - keyQuery_watch = strdup("watch"); - valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); - snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); - keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); - list_addElement(localVarQueryParameters,keyPairQuery_watch); - } - list_addElement(localVarHeaderType,"application/json"); //produces - list_addElement(localVarHeaderType,"application/yaml"); //produces - list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces - list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces - list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces - apiClient_invoke(apiClient, - localVarPath, - localVarQueryParameters, - localVarHeaderParameters, - localVarFormParameters, - localVarHeaderType, - localVarContentType, - localVarBodyParameters, - "GET"); - - // uncomment below to debug the error response - //if (apiClient->response_code == 200) { - // printf("%s\n","OK"); - //} - // uncomment below to debug the error response - //if (apiClient->response_code == 401) { - // printf("%s\n","Unauthorized"); - //} - //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_list_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); - if(elementToReturn == NULL) { - // return 0; - } - - //return type - if (apiClient->dataReceived) { - free(apiClient->dataReceived); - apiClient->dataReceived = NULL; - apiClient->dataReceivedLen = 0; - } - list_freeList(localVarQueryParameters); - - - list_freeList(localVarHeaderType); - - free(localVarPath); - if(keyQuery_allowWatchBookmarks){ - free(keyQuery_allowWatchBookmarks); - keyQuery_allowWatchBookmarks = NULL; - } - if(valueQuery_allowWatchBookmarks){ - free(valueQuery_allowWatchBookmarks); - valueQuery_allowWatchBookmarks = NULL; - } - if(keyPairQuery_allowWatchBookmarks){ - keyValuePair_free(keyPairQuery_allowWatchBookmarks); - keyPairQuery_allowWatchBookmarks = NULL; - } - if(keyQuery__continue){ - free(keyQuery__continue); - keyQuery__continue = NULL; - } - if(valueQuery__continue){ - free(valueQuery__continue); - valueQuery__continue = NULL; - } - if(keyPairQuery__continue){ - keyValuePair_free(keyPairQuery__continue); - keyPairQuery__continue = NULL; - } - if(keyQuery_fieldSelector){ - free(keyQuery_fieldSelector); - keyQuery_fieldSelector = NULL; - } - if(valueQuery_fieldSelector){ - free(valueQuery_fieldSelector); - valueQuery_fieldSelector = NULL; - } - if(keyPairQuery_fieldSelector){ - keyValuePair_free(keyPairQuery_fieldSelector); - keyPairQuery_fieldSelector = NULL; - } - if(keyQuery_labelSelector){ - free(keyQuery_labelSelector); - keyQuery_labelSelector = NULL; - } - if(valueQuery_labelSelector){ - free(valueQuery_labelSelector); - valueQuery_labelSelector = NULL; - } - if(keyPairQuery_labelSelector){ - keyValuePair_free(keyPairQuery_labelSelector); - keyPairQuery_labelSelector = NULL; - } - if(keyQuery_limit){ - free(keyQuery_limit); - keyQuery_limit = NULL; - } - if(valueQuery_limit){ - free(valueQuery_limit); - valueQuery_limit = NULL; - } - if(keyPairQuery_limit){ - keyValuePair_free(keyPairQuery_limit); - keyPairQuery_limit = NULL; - } - if(keyQuery_pretty){ - free(keyQuery_pretty); - keyQuery_pretty = NULL; - } - if(valueQuery_pretty){ - free(valueQuery_pretty); - valueQuery_pretty = NULL; - } - if(keyPairQuery_pretty){ - keyValuePair_free(keyPairQuery_pretty); - keyPairQuery_pretty = NULL; - } - if(keyQuery_resourceVersion){ - free(keyQuery_resourceVersion); - keyQuery_resourceVersion = NULL; - } - if(valueQuery_resourceVersion){ - free(valueQuery_resourceVersion); - valueQuery_resourceVersion = NULL; - } - if(keyPairQuery_resourceVersion){ - keyValuePair_free(keyPairQuery_resourceVersion); - keyPairQuery_resourceVersion = NULL; - } - if(keyQuery_resourceVersionMatch){ - free(keyQuery_resourceVersionMatch); - keyQuery_resourceVersionMatch = NULL; - } - if(valueQuery_resourceVersionMatch){ - free(valueQuery_resourceVersionMatch); - valueQuery_resourceVersionMatch = NULL; - } - if(keyPairQuery_resourceVersionMatch){ - keyValuePair_free(keyPairQuery_resourceVersionMatch); - keyPairQuery_resourceVersionMatch = NULL; - } - if(keyQuery_timeoutSeconds){ - free(keyQuery_timeoutSeconds); - keyQuery_timeoutSeconds = NULL; - } - if(valueQuery_timeoutSeconds){ - free(valueQuery_timeoutSeconds); - valueQuery_timeoutSeconds = NULL; - } - if(keyPairQuery_timeoutSeconds){ - keyValuePair_free(keyPairQuery_timeoutSeconds); - keyPairQuery_timeoutSeconds = NULL; - } - if(keyQuery_watch){ - free(keyQuery_watch); - keyQuery_watch = NULL; - } - if(valueQuery_watch){ - free(valueQuery_watch); - valueQuery_watch = NULL; - } - if(keyPairQuery_watch){ - keyValuePair_free(keyPairQuery_watch); - keyPairQuery_watch = NULL; - } - return elementToReturn; -end: - free(localVarPath); - return NULL; - -} - -// list or watch objects of kind HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) -{ - list_t *localVarQueryParameters = list_createList(); - list_t *localVarHeaderParameters = NULL; - list_t *localVarFormParameters = NULL; - list_t *localVarHeaderType = list_createList(); - list_t *localVarContentType = NULL; - char *localVarBodyParameters = NULL; - - // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers")+1; - char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers"); - - - // Path Params - long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - - - // query parameters char *keyQuery_pretty = NULL; char * valueQuery_pretty = NULL; @@ -1378,9 +1798,9 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_list_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_list_t *elementToReturn = v1alpha1_validating_admission_policy_list_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1397,7 +1817,6 @@ AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie list_freeList(localVarHeaderType); free(localVarPath); - free(localVarToReplace__namespace); if(keyQuery_pretty){ free(keyQuery_pretty); keyQuery_pretty = NULL; @@ -1525,10 +1944,323 @@ end: } -// partially update the specified HorizontalPodAutoscaler +// list or watch objects of kind ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1alpha1_validating_admission_policy_binding_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_list_t *elementToReturn = v1alpha1_validating_admission_policy_binding_list_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1538,13 +2270,13 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -1553,16 +2285,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -1664,9 +2386,9 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1684,7 +2406,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiCli list_freeList(localVarContentType); free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -1757,10 +2478,10 @@ end: } -// partially update status of the specified HorizontalPodAutoscaler +// partially update the specified ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1770,13 +2491,13 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -1785,16 +2506,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -1896,9 +2607,9 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1916,7 +2627,6 @@ AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t * list_freeList(localVarContentType); free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -1989,10 +2699,10 @@ end: } -// read the specified HorizontalPodAutoscaler +// read the specified ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2002,13 +2712,13 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2017,16 +2727,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2062,9 +2762,9 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2082,7 +2782,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClie free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if(keyQuery_pretty){ free(keyQuery_pretty); keyQuery_pretty = NULL; @@ -2102,10 +2801,10 @@ end: } -// read status of the specified HorizontalPodAutoscaler +// read the specified ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2115,13 +2814,13 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2130,16 +2829,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2175,9 +2864,9 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2195,7 +2884,6 @@ AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *a free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if(keyQuery_pretty){ free(keyQuery_pretty); keyQuery_pretty = NULL; @@ -2215,10 +2903,10 @@ end: } -// replace the specified HorizontalPodAutoscaler +// replace the specified ValidatingAdmissionPolicy // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2228,13 +2916,13 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2243,16 +2931,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2308,7 +2986,7 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC if (body != NULL) { //string - localVarSingleItemJSON_body = v2beta2_horizontal_pod_autoscaler_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -2337,9 +3015,9 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_t *elementToReturn = v1alpha1_validating_admission_policy_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2357,7 +3035,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiC free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; @@ -2418,10 +3095,10 @@ end: } -// replace status of the specified HorizontalPodAutoscaler +// replace the specified ValidatingAdmissionPolicyBinding // -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2431,13 +3108,13 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status")+1; + long sizeOfPath = strlen("/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}"); // Path Params - long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); if(name == NULL) { goto end; } @@ -2446,16 +3123,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t localVarPath = strReplace(localVarPath, localVarToReplace_name, name); - // Path Params - long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); - if(_namespace == NULL) { - goto end; - } - char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); - sprintf(localVarToReplace__namespace, "{%s}", "namespace"); - - localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); - // query parameters @@ -2511,7 +3178,7 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t if (body != NULL) { //string - localVarSingleItemJSON_body = v2beta2_horizontal_pod_autoscaler_convertToJSON(body); + localVarSingleItemJSON_body = v1alpha1_validating_admission_policy_binding_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -2540,9 +3207,9 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *AutoscalingV2beta2APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v2beta2_horizontal_pod_autoscaler_t *elementToReturn = v2beta2_horizontal_pod_autoscaler_parseFromJSON(AutoscalingV2beta2APIlocalVarJSON); - cJSON_Delete(AutoscalingV2beta2APIlocalVarJSON); + cJSON *AdmissionregistrationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_validating_admission_policy_binding_t *elementToReturn = v1alpha1_validating_admission_policy_binding_parseFromJSON(AdmissionregistrationV1alpha1APIlocalVarJSON); + cJSON_Delete(AdmissionregistrationV1alpha1APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2560,7 +3227,6 @@ AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t free(localVarPath); free(localVarToReplace_name); - free(localVarToReplace__namespace); if (localVarSingleItemJSON_body) { cJSON_Delete(localVarSingleItemJSON_body); localVarSingleItemJSON_body = NULL; diff --git a/kubernetes/api/AdmissionregistrationV1alpha1API.h b/kubernetes/api/AdmissionregistrationV1alpha1API.h new file mode 100644 index 0000000..38cfa97 --- /dev/null +++ b/kubernetes/api/AdmissionregistrationV1alpha1API.h @@ -0,0 +1,107 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/object.h" +#include "../model/v1_api_resource_list.h" +#include "../model/v1_delete_options.h" +#include "../model/v1_status.h" +#include "../model/v1alpha1_validating_admission_policy.h" +#include "../model/v1alpha1_validating_admission_policy_binding.h" +#include "../model/v1alpha1_validating_admission_policy_binding_list.h" +#include "../model/v1alpha1_validating_admission_policy_list.h" + + +// create a ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// delete collection of ValidatingAdmissionPolicy +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ValidatingAdmissionPolicyBinding +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete a ValidatingAdmissionPolicy +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ValidatingAdmissionPolicyBinding +// +v1_status_t* +AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// get available resources +// +v1_api_resource_list_t* +AdmissionregistrationV1alpha1API_getAPIResources(apiClient_t *apiClient); + + +// list or watch objects of kind ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_list_t* +AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// partially update the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// read the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , char * pretty ); + + +// read the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , char * pretty ); + + +// replace the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* +AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name , v1alpha1_validating_admission_policy_binding_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + diff --git a/kubernetes/api/AuthenticationV1alpha1API.c b/kubernetes/api/AuthenticationV1alpha1API.c new file mode 100644 index 0000000..aaf8ef9 --- /dev/null +++ b/kubernetes/api/AuthenticationV1alpha1API.c @@ -0,0 +1,266 @@ +#include +#include +#include +#include "AuthenticationV1alpha1API.h" + +#define MAX_NUMBER_LENGTH 16 +#define MAX_BUFFER_LENGTH 4096 +#define intToStr(dst, src) \ + do {\ + char dst[256];\ + snprintf(dst, 256, "%ld", (long int)(src));\ +}while(0) + + +// create a SelfSubjectReview +// +v1alpha1_self_subject_review_t* +AuthenticationV1alpha1API_createSelfSubjectReview(apiClient_t *apiClient, v1alpha1_self_subject_review_t * body , char * dryRun , char * fieldManager , char * fieldValidation , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews"); + + + + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_self_subject_review_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AuthenticationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_self_subject_review_t *elementToReturn = v1alpha1_self_subject_review_parseFromJSON(AuthenticationV1alpha1APIlocalVarJSON); + cJSON_Delete(AuthenticationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// get available resources +// +v1_api_resource_list_t* +AuthenticationV1alpha1API_getAPIResources(apiClient_t *apiClient) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/authentication.k8s.io/v1alpha1/")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/authentication.k8s.io/v1alpha1/"); + + + + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *AuthenticationV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(AuthenticationV1alpha1APIlocalVarJSON); + cJSON_Delete(AuthenticationV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + diff --git a/kubernetes/api/AuthenticationV1alpha1API.h b/kubernetes/api/AuthenticationV1alpha1API.h new file mode 100644 index 0000000..acdfda7 --- /dev/null +++ b/kubernetes/api/AuthenticationV1alpha1API.h @@ -0,0 +1,23 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/v1_api_resource_list.h" +#include "../model/v1alpha1_self_subject_review.h" + + +// create a SelfSubjectReview +// +v1alpha1_self_subject_review_t* +AuthenticationV1alpha1API_createSelfSubjectReview(apiClient_t *apiClient, v1alpha1_self_subject_review_t * body , char * dryRun , char * fieldManager , char * fieldValidation , char * pretty ); + + +// get available resources +// +v1_api_resource_list_t* +AuthenticationV1alpha1API_getAPIResources(apiClient_t *apiClient); + + diff --git a/kubernetes/api/AutoscalingV2beta2API.h b/kubernetes/api/AutoscalingV2beta2API.h deleted file mode 100644 index f3f23fb..0000000 --- a/kubernetes/api/AutoscalingV2beta2API.h +++ /dev/null @@ -1,87 +0,0 @@ -#include -#include -#include "../include/apiClient.h" -#include "../include/list.h" -#include "../external/cJSON.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" -#include "../model/object.h" -#include "../model/v1_api_resource_list.h" -#include "../model/v1_delete_options.h" -#include "../model/v1_status.h" -#include "../model/v2beta2_horizontal_pod_autoscaler.h" -#include "../model/v2beta2_horizontal_pod_autoscaler_list.h" - - -// create a HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_createNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// delete collection of HorizontalPodAutoscaler -// -v1_status_t* -AutoscalingV2beta2API_deleteCollectionNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); - - -// delete a HorizontalPodAutoscaler -// -v1_status_t* -AutoscalingV2beta2API_deleteNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); - - -// get available resources -// -v1_api_resource_list_t* -AutoscalingV2beta2API_getAPIResources(apiClient_t *apiClient); - - -// list or watch objects of kind HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listHorizontalPodAutoscalerForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); - - -// list or watch objects of kind HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_list_t* -AutoscalingV2beta2API_listNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); - - -// partially update the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// partially update status of the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_patchNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); - - -// read the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// read status of the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_readNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); - - -// replace the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscaler(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - -// replace status of the specified HorizontalPodAutoscaler -// -v2beta2_horizontal_pod_autoscaler_t* -AutoscalingV2beta2API_replaceNamespacedHorizontalPodAutoscalerStatus(apiClient_t *apiClient, char * name , char * _namespace , v2beta2_horizontal_pod_autoscaler_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); - - diff --git a/kubernetes/api/CustomObjectsAPI.c b/kubernetes/api/CustomObjectsAPI.c index 33c7315..35409f4 100644 --- a/kubernetes/api/CustomObjectsAPI.c +++ b/kubernetes/api/CustomObjectsAPI.c @@ -1323,6 +1323,93 @@ end: } +// get available resources +// +v1_api_resource_list_t* +CustomObjectsAPI_getAPIResources(apiClient_t *apiClient, char * group , char * version ) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/{group}/{version}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/{group}/{version}"); + + + // Path Params + long sizeOfPathParams_group = strlen(group)+3 + strlen(version)+3 + strlen("{ group }"); + if(group == NULL) { + goto end; + } + char* localVarToReplace_group = malloc(sizeOfPathParams_group); + sprintf(localVarToReplace_group, "{%s}", "group"); + + localVarPath = strReplace(localVarPath, localVarToReplace_group, group); + + // Path Params + long sizeOfPathParams_version = strlen(group)+3 + strlen(version)+3 + strlen("{ version }"); + if(version == NULL) { + goto end; + } + char* localVarToReplace_version = malloc(sizeOfPathParams_version); + sprintf(localVarToReplace_version, "{%s}", "version"); + + localVarPath = strReplace(localVarPath, localVarToReplace_version, version); + + + list_addElement(localVarHeaderType,"application/json"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *CustomObjectsAPIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(CustomObjectsAPIlocalVarJSON); + cJSON_Delete(CustomObjectsAPIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_group); + free(localVarToReplace_version); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + // Returns a cluster scoped custom object // object_t* diff --git a/kubernetes/api/CustomObjectsAPI.h b/kubernetes/api/CustomObjectsAPI.h index 0fb453c..ce46870 100644 --- a/kubernetes/api/CustomObjectsAPI.h +++ b/kubernetes/api/CustomObjectsAPI.h @@ -6,6 +6,7 @@ #include "../include/keyValuePair.h" #include "../include/binary.h" #include "../model/object.h" +#include "../model/v1_api_resource_list.h" #include "../model/v1_delete_options.h" @@ -45,6 +46,12 @@ object_t* CustomObjectsAPI_deleteNamespacedCustomObject(apiClient_t *apiClient, char * group , char * version , char * _namespace , char * plural , char * name , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , char * dryRun , v1_delete_options_t * body ); +// get available resources +// +v1_api_resource_list_t* +CustomObjectsAPI_getAPIResources(apiClient_t *apiClient, char * group , char * version ); + + // Returns a cluster scoped custom object // object_t* diff --git a/kubernetes/api/FlowcontrolApiserverV1beta1API.c b/kubernetes/api/FlowcontrolApiserverV1beta3API.c similarity index 93% rename from kubernetes/api/FlowcontrolApiserverV1beta1API.c rename to kubernetes/api/FlowcontrolApiserverV1beta3API.c index ab53186..48b6f17 100644 --- a/kubernetes/api/FlowcontrolApiserverV1beta1API.c +++ b/kubernetes/api/FlowcontrolApiserverV1beta3API.c @@ -1,7 +1,7 @@ #include #include #include -#include "FlowcontrolApiserverV1beta1API.h" +#include "FlowcontrolApiserverV1beta3API.h" #define MAX_NUMBER_LENGTH 16 #define MAX_BUFFER_LENGTH 4096 @@ -14,8 +14,8 @@ // create a FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_createFlowSchema(apiClient_t *apiClient, v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -25,9 +25,9 @@ FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_ char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"); @@ -85,7 +85,7 @@ FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_ if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_flow_schema_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_flow_schema_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -118,9 +118,9 @@ FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_ // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -199,8 +199,8 @@ end: // create a PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -210,9 +210,9 @@ FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *api char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"); @@ -270,7 +270,7 @@ FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *api if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_priority_level_configuration_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_priority_level_configuration_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -303,9 +303,9 @@ FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *api // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -385,7 +385,7 @@ end: // delete collection of FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -395,9 +395,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"); @@ -580,9 +580,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -758,7 +758,7 @@ end: // delete collection of PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -768,9 +768,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"); @@ -953,9 +953,9 @@ FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiCli // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1131,7 +1131,7 @@ end: // delete a FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1141,9 +1141,9 @@ FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * n char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -1254,9 +1254,9 @@ FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * n // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1349,7 +1349,7 @@ end: // delete a PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1359,9 +1359,9 @@ FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *api char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -1472,9 +1472,9 @@ FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *api // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1567,7 +1567,7 @@ end: // get available resources // v1_api_resource_list_t* -FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient) +FlowcontrolApiserverV1beta3API_getAPIResources(apiClient_t *apiClient) { list_t *localVarQueryParameters = NULL; list_t *localVarHeaderParameters = NULL; @@ -1577,9 +1577,9 @@ FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient) char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/"); @@ -1605,9 +1605,9 @@ FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient) // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1633,8 +1633,8 @@ end: // list or watch objects of kind FlowSchema // -v1beta1_flow_schema_list_t* -FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1beta3_flow_schema_list_t* +FlowcontrolApiserverV1beta3API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1644,9 +1644,9 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas"); @@ -1798,9 +1798,9 @@ FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pre // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_list_t *elementToReturn = v1beta1_flow_schema_list_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_list_t *elementToReturn = v1beta3_flow_schema_list_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -1946,8 +1946,8 @@ end: // list or watch objects of kind PriorityLevelConfiguration // -v1beta1_priority_level_configuration_list_t* -FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +v1beta3_priority_level_configuration_list_t* +FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -1957,9 +1957,9 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations"); @@ -2111,9 +2111,9 @@ FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_list_t *elementToReturn = v1beta1_priority_level_configuration_list_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_list_t *elementToReturn = v1beta3_priority_level_configuration_list_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2259,8 +2259,8 @@ end: // partially update the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2270,9 +2270,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * na char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -2386,9 +2386,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * na // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2480,8 +2480,8 @@ end: // partially update status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2491,9 +2491,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, cha char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status"); // Path Params @@ -2607,9 +2607,9 @@ FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, cha // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2701,8 +2701,8 @@ end: // partially update the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2712,9 +2712,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiC char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -2828,9 +2828,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiC // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -2922,8 +2922,8 @@ end: // partially update status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -2933,9 +2933,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status"); // Path Params @@ -3049,9 +3049,9 @@ FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3143,8 +3143,8 @@ end: // read the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3154,9 +3154,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * nam char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -3204,9 +3204,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * nam // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3245,8 +3245,8 @@ end: // read status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3256,9 +3256,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status"); // Path Params @@ -3306,9 +3306,9 @@ FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3347,8 +3347,8 @@ end: // read the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3358,9 +3358,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiCl char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -3408,9 +3408,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiCl // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3449,8 +3449,8 @@ end: // read status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3460,9 +3460,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status"); // Path Params @@ -3510,9 +3510,9 @@ FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3551,8 +3551,8 @@ end: // replace the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3562,9 +3562,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}"); // Path Params @@ -3632,7 +3632,7 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_flow_schema_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_flow_schema_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -3661,9 +3661,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3743,8 +3743,8 @@ end: // replace status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3754,9 +3754,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, c char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status"); // Path Params @@ -3824,7 +3824,7 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, c if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_flow_schema_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_flow_schema_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -3853,9 +3853,9 @@ FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, c // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_flow_schema_t *elementToReturn = v1beta1_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_flow_schema_t *elementToReturn = v1beta3_flow_schema_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -3935,8 +3935,8 @@ end: // replace the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -3946,9 +3946,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *ap char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}"); // Path Params @@ -4016,7 +4016,7 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *ap if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_priority_level_configuration_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_priority_level_configuration_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -4045,9 +4045,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *ap // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } @@ -4127,8 +4127,8 @@ end: // replace status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) { list_t *localVarQueryParameters = list_createList(); list_t *localVarHeaderParameters = NULL; @@ -4138,9 +4138,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient char *localVarBodyParameters = NULL; // create the path - long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status")+1; + long sizeOfPath = strlen("/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status")+1; char *localVarPath = malloc(sizeOfPath); - snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status"); + snprintf(localVarPath, sizeOfPath, "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status"); // Path Params @@ -4208,7 +4208,7 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient if (body != NULL) { //string - localVarSingleItemJSON_body = v1beta1_priority_level_configuration_convertToJSON(body); + localVarSingleItemJSON_body = v1beta3_priority_level_configuration_convertToJSON(body); localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); } list_addElement(localVarHeaderType,"application/json"); //produces @@ -4237,9 +4237,9 @@ FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient // printf("%s\n","Unauthorized"); //} //nonprimitive not container - cJSON *FlowcontrolApiserverV1beta1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); - v1beta1_priority_level_configuration_t *elementToReturn = v1beta1_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta1APIlocalVarJSON); - cJSON_Delete(FlowcontrolApiserverV1beta1APIlocalVarJSON); + cJSON *FlowcontrolApiserverV1beta3APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1beta3_priority_level_configuration_t *elementToReturn = v1beta3_priority_level_configuration_parseFromJSON(FlowcontrolApiserverV1beta3APIlocalVarJSON); + cJSON_Delete(FlowcontrolApiserverV1beta3APIlocalVarJSON); if(elementToReturn == NULL) { // return 0; } diff --git a/kubernetes/api/FlowcontrolApiserverV1beta1API.h b/kubernetes/api/FlowcontrolApiserverV1beta3API.h similarity index 62% rename from kubernetes/api/FlowcontrolApiserverV1beta1API.h rename to kubernetes/api/FlowcontrolApiserverV1beta3API.h index 25bc614..85acd3f 100644 --- a/kubernetes/api/FlowcontrolApiserverV1beta1API.h +++ b/kubernetes/api/FlowcontrolApiserverV1beta3API.h @@ -9,135 +9,135 @@ #include "../model/v1_api_resource_list.h" #include "../model/v1_delete_options.h" #include "../model/v1_status.h" -#include "../model/v1beta1_flow_schema.h" -#include "../model/v1beta1_flow_schema_list.h" -#include "../model/v1beta1_priority_level_configuration.h" -#include "../model/v1beta1_priority_level_configuration_list.h" +#include "../model/v1beta3_flow_schema.h" +#include "../model/v1beta3_flow_schema_list.h" +#include "../model/v1beta3_priority_level_configuration.h" +#include "../model/v1beta3_priority_level_configuration_list.h" // create a FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_createFlowSchema(apiClient_t *apiClient, v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_createFlowSchema(apiClient_t *apiClient, v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // create a PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // delete collection of FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); // delete collection of PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); // delete a FlowSchema // v1_status_t* -FlowcontrolApiserverV1beta1API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deleteFlowSchema(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); // delete a PriorityLevelConfiguration // v1_status_t* -FlowcontrolApiserverV1beta1API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); +FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); // get available resources // v1_api_resource_list_t* -FlowcontrolApiserverV1beta1API_getAPIResources(apiClient_t *apiClient); +FlowcontrolApiserverV1beta3API_getAPIResources(apiClient_t *apiClient); // list or watch objects of kind FlowSchema // -v1beta1_flow_schema_list_t* -FlowcontrolApiserverV1beta1API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); +v1beta3_flow_schema_list_t* +FlowcontrolApiserverV1beta3API_listFlowSchema(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); // list or watch objects of kind PriorityLevelConfiguration // -v1beta1_priority_level_configuration_list_t* -FlowcontrolApiserverV1beta1API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); +v1beta3_priority_level_configuration_list_t* +FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); // partially update the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchema(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // partially update status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // partially update the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // partially update status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); // read the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchema(apiClient_t *apiClient, char * name , char * pretty ); // read status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_readFlowSchemaStatus(apiClient_t *apiClient, char * name , char * pretty ); // read the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name , char * pretty ); // read status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , char * pretty ); // replace the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchema(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // replace status of the specified FlowSchema // -v1beta1_flow_schema_t* -FlowcontrolApiserverV1beta1API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta1_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_flow_schema_t* +FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name , v1beta3_flow_schema_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // replace the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); // replace status of the specified PriorityLevelConfiguration // -v1beta1_priority_level_configuration_t* -FlowcontrolApiserverV1beta1API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta1_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); +v1beta3_priority_level_configuration_t* +FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name , v1beta3_priority_level_configuration_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); diff --git a/kubernetes/api/ResourceAPI.c b/kubernetes/api/ResourceAPI.c new file mode 100644 index 0000000..dd4ed7e --- /dev/null +++ b/kubernetes/api/ResourceAPI.c @@ -0,0 +1,81 @@ +#include +#include +#include +#include "ResourceAPI.h" + +#define MAX_NUMBER_LENGTH 16 +#define MAX_BUFFER_LENGTH 4096 +#define intToStr(dst, src) \ + do {\ + char dst[256];\ + snprintf(dst, 256, "%ld", (long int)(src));\ +}while(0) + + +// get information of a group +// +v1_api_group_t* +ResourceAPI_getAPIGroup(apiClient_t *apiClient) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/"); + + + + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceAPIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_group_t *elementToReturn = v1_api_group_parseFromJSON(ResourceAPIlocalVarJSON); + cJSON_Delete(ResourceAPIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + diff --git a/kubernetes/api/ResourceAPI.h b/kubernetes/api/ResourceAPI.h new file mode 100644 index 0000000..5abd1a4 --- /dev/null +++ b/kubernetes/api/ResourceAPI.h @@ -0,0 +1,16 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/v1_api_group.h" + + +// get information of a group +// +v1_api_group_t* +ResourceAPI_getAPIGroup(apiClient_t *apiClient); + + diff --git a/kubernetes/api/ResourceV1alpha1API.c b/kubernetes/api/ResourceV1alpha1API.c new file mode 100644 index 0000000..a26f993 --- /dev/null +++ b/kubernetes/api/ResourceV1alpha1API.c @@ -0,0 +1,8763 @@ +#include +#include +#include +#include "ResourceV1alpha1API.h" + +#define MAX_NUMBER_LENGTH 16 +#define MAX_BUFFER_LENGTH 4096 +#define intToStr(dst, src) \ + do {\ + char dst[256];\ + snprintf(dst, 256, "%ld", (long int)(src));\ +}while(0) + + +// create a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_createNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_pod_scheduling_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// create a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_createNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// create a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_createNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_template_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// create a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_createResourceClass(apiClient_t *apiClient, v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_class_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "POST"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of PodScheduling +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ResourceClaim +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ResourceClaimTemplate +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete collection of ResourceClass +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionResourceClass(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_status_t *elementToReturn = v1_status_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_deleteNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_deleteNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// delete a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_deleteResourceClass(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_gracePeriodSeconds = NULL; + char * valueQuery_gracePeriodSeconds = NULL; + keyValuePair_t *keyPairQuery_gracePeriodSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_gracePeriodSeconds = strdup("gracePeriodSeconds"); + valueQuery_gracePeriodSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_gracePeriodSeconds, MAX_NUMBER_LENGTH, "%d", gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = keyValuePair_create(keyQuery_gracePeriodSeconds, valueQuery_gracePeriodSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_gracePeriodSeconds); + } + + // query parameters + char *keyQuery_orphanDependents = NULL; + char * valueQuery_orphanDependents = NULL; + keyValuePair_t *keyPairQuery_orphanDependents = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_orphanDependents = strdup("orphanDependents"); + valueQuery_orphanDependents = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_orphanDependents, MAX_NUMBER_LENGTH, "%d", orphanDependents); + keyPairQuery_orphanDependents = keyValuePair_create(keyQuery_orphanDependents, valueQuery_orphanDependents); + list_addElement(localVarQueryParameters,keyPairQuery_orphanDependents); + } + + // query parameters + char *keyQuery_propagationPolicy = NULL; + char * valueQuery_propagationPolicy = NULL; + keyValuePair_t *keyPairQuery_propagationPolicy = 0; + if (propagationPolicy) + { + keyQuery_propagationPolicy = strdup("propagationPolicy"); + valueQuery_propagationPolicy = strdup((propagationPolicy)); + keyPairQuery_propagationPolicy = keyValuePair_create(keyQuery_propagationPolicy, valueQuery_propagationPolicy); + list_addElement(localVarQueryParameters,keyPairQuery_propagationPolicy); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1_delete_options_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "DELETE"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 202) { + // printf("%s\n","Accepted"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_gracePeriodSeconds){ + free(keyQuery_gracePeriodSeconds); + keyQuery_gracePeriodSeconds = NULL; + } + if(valueQuery_gracePeriodSeconds){ + free(valueQuery_gracePeriodSeconds); + valueQuery_gracePeriodSeconds = NULL; + } + if(keyPairQuery_gracePeriodSeconds){ + keyValuePair_free(keyPairQuery_gracePeriodSeconds); + keyPairQuery_gracePeriodSeconds = NULL; + } + if(keyQuery_orphanDependents){ + free(keyQuery_orphanDependents); + keyQuery_orphanDependents = NULL; + } + if(valueQuery_orphanDependents){ + free(valueQuery_orphanDependents); + valueQuery_orphanDependents = NULL; + } + if(keyPairQuery_orphanDependents){ + keyValuePair_free(keyPairQuery_orphanDependents); + keyPairQuery_orphanDependents = NULL; + } + if(keyQuery_propagationPolicy){ + free(keyQuery_propagationPolicy); + keyQuery_propagationPolicy = NULL; + } + if(valueQuery_propagationPolicy){ + free(valueQuery_propagationPolicy); + valueQuery_propagationPolicy = NULL; + } + if(keyPairQuery_propagationPolicy){ + keyValuePair_free(keyPairQuery_propagationPolicy); + keyPairQuery_propagationPolicy = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// get available resources +// +v1_api_resource_list_t* +ResourceV1alpha1API_getAPIResources(apiClient_t *apiClient) +{ + list_t *localVarQueryParameters = NULL; + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/"); + + + + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1_api_resource_list_t *elementToReturn = v1_api_resource_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + + + + list_freeList(localVarHeaderType); + + free(localVarPath); + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_list_t *elementToReturn = v1alpha1_pod_scheduling_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_list_t *elementToReturn = v1alpha1_resource_claim_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates"); + + + // Path Params + long sizeOfPathParams__namespace = strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_list_t *elementToReturn = v1alpha1_resource_claim_template_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listPodSchedulingForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/podschedulings")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/podschedulings"); + + + + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_list_t *elementToReturn = v1alpha1_pod_scheduling_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listResourceClaimForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclaims")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclaims"); + + + + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_list_t *elementToReturn = v1alpha1_resource_claim_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates"); + + + + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_list_t *elementToReturn = v1alpha1_resource_claim_template_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// list or watch objects of kind ResourceClass +// +v1alpha1_resource_class_list_t* +ResourceV1alpha1API_listResourceClass(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses"); + + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_allowWatchBookmarks = NULL; + char * valueQuery_allowWatchBookmarks = NULL; + keyValuePair_t *keyPairQuery_allowWatchBookmarks = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_allowWatchBookmarks = strdup("allowWatchBookmarks"); + valueQuery_allowWatchBookmarks = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_allowWatchBookmarks, MAX_NUMBER_LENGTH, "%d", allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = keyValuePair_create(keyQuery_allowWatchBookmarks, valueQuery_allowWatchBookmarks); + list_addElement(localVarQueryParameters,keyPairQuery_allowWatchBookmarks); + } + + // query parameters + char *keyQuery__continue = NULL; + char * valueQuery__continue = NULL; + keyValuePair_t *keyPairQuery__continue = 0; + if (_continue) + { + keyQuery__continue = strdup("continue"); + valueQuery__continue = strdup((_continue)); + keyPairQuery__continue = keyValuePair_create(keyQuery__continue, valueQuery__continue); + list_addElement(localVarQueryParameters,keyPairQuery__continue); + } + + // query parameters + char *keyQuery_fieldSelector = NULL; + char * valueQuery_fieldSelector = NULL; + keyValuePair_t *keyPairQuery_fieldSelector = 0; + if (fieldSelector) + { + keyQuery_fieldSelector = strdup("fieldSelector"); + valueQuery_fieldSelector = strdup((fieldSelector)); + keyPairQuery_fieldSelector = keyValuePair_create(keyQuery_fieldSelector, valueQuery_fieldSelector); + list_addElement(localVarQueryParameters,keyPairQuery_fieldSelector); + } + + // query parameters + char *keyQuery_labelSelector = NULL; + char * valueQuery_labelSelector = NULL; + keyValuePair_t *keyPairQuery_labelSelector = 0; + if (labelSelector) + { + keyQuery_labelSelector = strdup("labelSelector"); + valueQuery_labelSelector = strdup((labelSelector)); + keyPairQuery_labelSelector = keyValuePair_create(keyQuery_labelSelector, valueQuery_labelSelector); + list_addElement(localVarQueryParameters,keyPairQuery_labelSelector); + } + + // query parameters + char *keyQuery_limit = NULL; + char * valueQuery_limit = NULL; + keyValuePair_t *keyPairQuery_limit = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_limit = strdup("limit"); + valueQuery_limit = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_limit, MAX_NUMBER_LENGTH, "%d", limit); + keyPairQuery_limit = keyValuePair_create(keyQuery_limit, valueQuery_limit); + list_addElement(localVarQueryParameters,keyPairQuery_limit); + } + + // query parameters + char *keyQuery_resourceVersion = NULL; + char * valueQuery_resourceVersion = NULL; + keyValuePair_t *keyPairQuery_resourceVersion = 0; + if (resourceVersion) + { + keyQuery_resourceVersion = strdup("resourceVersion"); + valueQuery_resourceVersion = strdup((resourceVersion)); + keyPairQuery_resourceVersion = keyValuePair_create(keyQuery_resourceVersion, valueQuery_resourceVersion); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersion); + } + + // query parameters + char *keyQuery_resourceVersionMatch = NULL; + char * valueQuery_resourceVersionMatch = NULL; + keyValuePair_t *keyPairQuery_resourceVersionMatch = 0; + if (resourceVersionMatch) + { + keyQuery_resourceVersionMatch = strdup("resourceVersionMatch"); + valueQuery_resourceVersionMatch = strdup((resourceVersionMatch)); + keyPairQuery_resourceVersionMatch = keyValuePair_create(keyQuery_resourceVersionMatch, valueQuery_resourceVersionMatch); + list_addElement(localVarQueryParameters,keyPairQuery_resourceVersionMatch); + } + + // query parameters + char *keyQuery_timeoutSeconds = NULL; + char * valueQuery_timeoutSeconds = NULL; + keyValuePair_t *keyPairQuery_timeoutSeconds = 0; + if (1) // Always send integer parameters to the API server + { + keyQuery_timeoutSeconds = strdup("timeoutSeconds"); + valueQuery_timeoutSeconds = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_timeoutSeconds, MAX_NUMBER_LENGTH, "%d", timeoutSeconds); + keyPairQuery_timeoutSeconds = keyValuePair_create(keyQuery_timeoutSeconds, valueQuery_timeoutSeconds); + list_addElement(localVarQueryParameters,keyPairQuery_timeoutSeconds); + } + + // query parameters + char *keyQuery_watch = NULL; + char * valueQuery_watch = NULL; + keyValuePair_t *keyPairQuery_watch = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_watch = strdup("watch"); + valueQuery_watch = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_watch, MAX_NUMBER_LENGTH, "%d", watch); + keyPairQuery_watch = keyValuePair_create(keyQuery_watch, valueQuery_watch); + list_addElement(localVarQueryParameters,keyPairQuery_watch); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarHeaderType,"application/json;stream=watch"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf;stream=watch"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_list_t *elementToReturn = v1alpha1_resource_class_list_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_allowWatchBookmarks){ + free(keyQuery_allowWatchBookmarks); + keyQuery_allowWatchBookmarks = NULL; + } + if(valueQuery_allowWatchBookmarks){ + free(valueQuery_allowWatchBookmarks); + valueQuery_allowWatchBookmarks = NULL; + } + if(keyPairQuery_allowWatchBookmarks){ + keyValuePair_free(keyPairQuery_allowWatchBookmarks); + keyPairQuery_allowWatchBookmarks = NULL; + } + if(keyQuery__continue){ + free(keyQuery__continue); + keyQuery__continue = NULL; + } + if(valueQuery__continue){ + free(valueQuery__continue); + valueQuery__continue = NULL; + } + if(keyPairQuery__continue){ + keyValuePair_free(keyPairQuery__continue); + keyPairQuery__continue = NULL; + } + if(keyQuery_fieldSelector){ + free(keyQuery_fieldSelector); + keyQuery_fieldSelector = NULL; + } + if(valueQuery_fieldSelector){ + free(valueQuery_fieldSelector); + valueQuery_fieldSelector = NULL; + } + if(keyPairQuery_fieldSelector){ + keyValuePair_free(keyPairQuery_fieldSelector); + keyPairQuery_fieldSelector = NULL; + } + if(keyQuery_labelSelector){ + free(keyQuery_labelSelector); + keyQuery_labelSelector = NULL; + } + if(valueQuery_labelSelector){ + free(valueQuery_labelSelector); + valueQuery_labelSelector = NULL; + } + if(keyPairQuery_labelSelector){ + keyValuePair_free(keyPairQuery_labelSelector); + keyPairQuery_labelSelector = NULL; + } + if(keyQuery_limit){ + free(keyQuery_limit); + keyQuery_limit = NULL; + } + if(valueQuery_limit){ + free(valueQuery_limit); + valueQuery_limit = NULL; + } + if(keyPairQuery_limit){ + keyValuePair_free(keyPairQuery_limit); + keyPairQuery_limit = NULL; + } + if(keyQuery_resourceVersion){ + free(keyQuery_resourceVersion); + keyQuery_resourceVersion = NULL; + } + if(valueQuery_resourceVersion){ + free(valueQuery_resourceVersion); + valueQuery_resourceVersion = NULL; + } + if(keyPairQuery_resourceVersion){ + keyValuePair_free(keyPairQuery_resourceVersion); + keyPairQuery_resourceVersion = NULL; + } + if(keyQuery_resourceVersionMatch){ + free(keyQuery_resourceVersionMatch); + keyQuery_resourceVersionMatch = NULL; + } + if(valueQuery_resourceVersionMatch){ + free(valueQuery_resourceVersionMatch); + valueQuery_resourceVersionMatch = NULL; + } + if(keyPairQuery_resourceVersionMatch){ + keyValuePair_free(keyPairQuery_resourceVersionMatch); + keyPairQuery_resourceVersionMatch = NULL; + } + if(keyQuery_timeoutSeconds){ + free(keyQuery_timeoutSeconds); + keyQuery_timeoutSeconds = NULL; + } + if(valueQuery_timeoutSeconds){ + free(valueQuery_timeoutSeconds); + valueQuery_timeoutSeconds = NULL; + } + if(keyPairQuery_timeoutSeconds){ + keyValuePair_free(keyPairQuery_timeoutSeconds); + keyPairQuery_timeoutSeconds = NULL; + } + if(keyQuery_watch){ + free(keyQuery_watch); + keyQuery_watch = NULL; + } + if(valueQuery_watch){ + free(valueQuery_watch); + valueQuery_watch = NULL; + } + if(keyPairQuery_watch){ + keyValuePair_free(keyPairQuery_watch); + keyPairQuery_watch = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_patchNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// partially update the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_patchResourceClass(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = list_createList(); + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // query parameters + char *keyQuery_force = NULL; + char * valueQuery_force = NULL; + keyValuePair_t *keyPairQuery_force = 0; + if (1) // Always send boolean parameters to the API server + { + keyQuery_force = strdup("force"); + valueQuery_force = calloc(1,MAX_NUMBER_LENGTH); + snprintf(valueQuery_force, MAX_NUMBER_LENGTH, "%d", force); + keyPairQuery_force = keyValuePair_create(keyQuery_force, valueQuery_force); + list_addElement(localVarQueryParameters,keyPairQuery_force); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = object_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + list_addElement(localVarContentType,"application/json-patch+json"); //consumes + list_addElement(localVarContentType,"application/merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/strategic-merge-patch+json"); //consumes + list_addElement(localVarContentType,"application/apply-patch+yaml"); //consumes + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PATCH"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + list_freeList(localVarContentType); + free(localVarPath); + free(localVarToReplace_name); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + if(keyQuery_force){ + free(keyQuery_force); + keyQuery_force = NULL; + } + if(valueQuery_force){ + free(valueQuery_force); + valueQuery_force = NULL; + } + if(keyPairQuery_force){ + keyValuePair_free(keyPairQuery_force); + keyPairQuery_force = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_readNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// read the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_readResourceClass(apiClient_t *apiClient, char * name , char * pretty ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "GET"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_pod_scheduling_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_pod_scheduling_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_pod_scheduling_t *elementToReturn = v1alpha1_pod_scheduling_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_t *elementToReturn = v1alpha1_resource_claim_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + // Path Params + long sizeOfPathParams__namespace = strlen(name)+3 + strlen(_namespace)+3 + strlen("{ namespace }"); + if(_namespace == NULL) { + goto end; + } + char* localVarToReplace__namespace = malloc(sizeOfPathParams__namespace); + sprintf(localVarToReplace__namespace, "{%s}", "namespace"); + + localVarPath = strReplace(localVarPath, localVarToReplace__namespace, _namespace); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_claim_template_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_claim_template_t *elementToReturn = v1alpha1_resource_claim_template_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + free(localVarToReplace__namespace); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + +// replace the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_replaceResourceClass(apiClient_t *apiClient, char * name , v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ) +{ + list_t *localVarQueryParameters = list_createList(); + list_t *localVarHeaderParameters = NULL; + list_t *localVarFormParameters = NULL; + list_t *localVarHeaderType = list_createList(); + list_t *localVarContentType = NULL; + char *localVarBodyParameters = NULL; + + // create the path + long sizeOfPath = strlen("/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}")+1; + char *localVarPath = malloc(sizeOfPath); + snprintf(localVarPath, sizeOfPath, "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}"); + + + // Path Params + long sizeOfPathParams_name = strlen(name)+3 + strlen("{ name }"); + if(name == NULL) { + goto end; + } + char* localVarToReplace_name = malloc(sizeOfPathParams_name); + sprintf(localVarToReplace_name, "{%s}", "name"); + + localVarPath = strReplace(localVarPath, localVarToReplace_name, name); + + + + // query parameters + char *keyQuery_pretty = NULL; + char * valueQuery_pretty = NULL; + keyValuePair_t *keyPairQuery_pretty = 0; + if (pretty) + { + keyQuery_pretty = strdup("pretty"); + valueQuery_pretty = strdup((pretty)); + keyPairQuery_pretty = keyValuePair_create(keyQuery_pretty, valueQuery_pretty); + list_addElement(localVarQueryParameters,keyPairQuery_pretty); + } + + // query parameters + char *keyQuery_dryRun = NULL; + char * valueQuery_dryRun = NULL; + keyValuePair_t *keyPairQuery_dryRun = 0; + if (dryRun) + { + keyQuery_dryRun = strdup("dryRun"); + valueQuery_dryRun = strdup((dryRun)); + keyPairQuery_dryRun = keyValuePair_create(keyQuery_dryRun, valueQuery_dryRun); + list_addElement(localVarQueryParameters,keyPairQuery_dryRun); + } + + // query parameters + char *keyQuery_fieldManager = NULL; + char * valueQuery_fieldManager = NULL; + keyValuePair_t *keyPairQuery_fieldManager = 0; + if (fieldManager) + { + keyQuery_fieldManager = strdup("fieldManager"); + valueQuery_fieldManager = strdup((fieldManager)); + keyPairQuery_fieldManager = keyValuePair_create(keyQuery_fieldManager, valueQuery_fieldManager); + list_addElement(localVarQueryParameters,keyPairQuery_fieldManager); + } + + // query parameters + char *keyQuery_fieldValidation = NULL; + char * valueQuery_fieldValidation = NULL; + keyValuePair_t *keyPairQuery_fieldValidation = 0; + if (fieldValidation) + { + keyQuery_fieldValidation = strdup("fieldValidation"); + valueQuery_fieldValidation = strdup((fieldValidation)); + keyPairQuery_fieldValidation = keyValuePair_create(keyQuery_fieldValidation, valueQuery_fieldValidation); + list_addElement(localVarQueryParameters,keyPairQuery_fieldValidation); + } + + // Body Param + cJSON *localVarSingleItemJSON_body = NULL; + if (body != NULL) + { + //string + localVarSingleItemJSON_body = v1alpha1_resource_class_convertToJSON(body); + localVarBodyParameters = cJSON_Print(localVarSingleItemJSON_body); + } + list_addElement(localVarHeaderType,"application/json"); //produces + list_addElement(localVarHeaderType,"application/yaml"); //produces + list_addElement(localVarHeaderType,"application/vnd.kubernetes.protobuf"); //produces + apiClient_invoke(apiClient, + localVarPath, + localVarQueryParameters, + localVarHeaderParameters, + localVarFormParameters, + localVarHeaderType, + localVarContentType, + localVarBodyParameters, + "PUT"); + + // uncomment below to debug the error response + //if (apiClient->response_code == 200) { + // printf("%s\n","OK"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 201) { + // printf("%s\n","Created"); + //} + // uncomment below to debug the error response + //if (apiClient->response_code == 401) { + // printf("%s\n","Unauthorized"); + //} + //nonprimitive not container + cJSON *ResourceV1alpha1APIlocalVarJSON = cJSON_Parse(apiClient->dataReceived); + v1alpha1_resource_class_t *elementToReturn = v1alpha1_resource_class_parseFromJSON(ResourceV1alpha1APIlocalVarJSON); + cJSON_Delete(ResourceV1alpha1APIlocalVarJSON); + if(elementToReturn == NULL) { + // return 0; + } + + //return type + if (apiClient->dataReceived) { + free(apiClient->dataReceived); + apiClient->dataReceived = NULL; + apiClient->dataReceivedLen = 0; + } + list_freeList(localVarQueryParameters); + + + list_freeList(localVarHeaderType); + + free(localVarPath); + free(localVarToReplace_name); + if (localVarSingleItemJSON_body) { + cJSON_Delete(localVarSingleItemJSON_body); + localVarSingleItemJSON_body = NULL; + } + free(localVarBodyParameters); + if(keyQuery_pretty){ + free(keyQuery_pretty); + keyQuery_pretty = NULL; + } + if(valueQuery_pretty){ + free(valueQuery_pretty); + valueQuery_pretty = NULL; + } + if(keyPairQuery_pretty){ + keyValuePair_free(keyPairQuery_pretty); + keyPairQuery_pretty = NULL; + } + if(keyQuery_dryRun){ + free(keyQuery_dryRun); + keyQuery_dryRun = NULL; + } + if(valueQuery_dryRun){ + free(valueQuery_dryRun); + valueQuery_dryRun = NULL; + } + if(keyPairQuery_dryRun){ + keyValuePair_free(keyPairQuery_dryRun); + keyPairQuery_dryRun = NULL; + } + if(keyQuery_fieldManager){ + free(keyQuery_fieldManager); + keyQuery_fieldManager = NULL; + } + if(valueQuery_fieldManager){ + free(valueQuery_fieldManager); + valueQuery_fieldManager = NULL; + } + if(keyPairQuery_fieldManager){ + keyValuePair_free(keyPairQuery_fieldManager); + keyPairQuery_fieldManager = NULL; + } + if(keyQuery_fieldValidation){ + free(keyQuery_fieldValidation); + keyQuery_fieldValidation = NULL; + } + if(valueQuery_fieldValidation){ + free(valueQuery_fieldValidation); + valueQuery_fieldValidation = NULL; + } + if(keyPairQuery_fieldValidation){ + keyValuePair_free(keyPairQuery_fieldValidation); + keyPairQuery_fieldValidation = NULL; + } + return elementToReturn; +end: + free(localVarPath); + return NULL; + +} + diff --git a/kubernetes/api/ResourceV1alpha1API.h b/kubernetes/api/ResourceV1alpha1API.h new file mode 100644 index 0000000..dcdac17 --- /dev/null +++ b/kubernetes/api/ResourceV1alpha1API.h @@ -0,0 +1,249 @@ +#include +#include +#include "../include/apiClient.h" +#include "../include/list.h" +#include "../external/cJSON.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" +#include "../model/object.h" +#include "../model/v1_api_resource_list.h" +#include "../model/v1_delete_options.h" +#include "../model/v1_status.h" +#include "../model/v1alpha1_pod_scheduling.h" +#include "../model/v1alpha1_pod_scheduling_list.h" +#include "../model/v1alpha1_resource_claim.h" +#include "../model/v1alpha1_resource_claim_list.h" +#include "../model/v1alpha1_resource_claim_template.h" +#include "../model/v1alpha1_resource_claim_template_list.h" +#include "../model/v1alpha1_resource_class.h" +#include "../model/v1alpha1_resource_class_list.h" + + +// create a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_createNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_createNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_createNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// create a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_createResourceClass(apiClient_t *apiClient, v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// delete collection of PodScheduling +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ResourceClaim +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ResourceClaimTemplate +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete collection of ResourceClass +// +v1_status_t* +ResourceV1alpha1API_deleteCollectionResourceClass(apiClient_t *apiClient, char * pretty , char * _continue , char * dryRun , char * fieldSelector , int gracePeriodSeconds , char * labelSelector , int limit , int orphanDependents , char * propagationPolicy , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , v1_delete_options_t * body ); + + +// delete a PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_deleteNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_deleteNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// delete a ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_deleteResourceClass(apiClient_t *apiClient, char * name , char * pretty , char * dryRun , int gracePeriodSeconds , int orphanDependents , char * propagationPolicy , v1_delete_options_t * body ); + + +// get available resources +// +v1_api_resource_list_t* +ResourceV1alpha1API_getAPIResources(apiClient_t *apiClient); + + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace , char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* +ResourceV1alpha1API_listPodSchedulingForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* +ResourceV1alpha1API_listResourceClaimForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* +ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * pretty , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// list or watch objects of kind ResourceClass +// +v1alpha1_resource_class_list_t* +ResourceV1alpha1API_listResourceClass(apiClient_t *apiClient, char * pretty , int allowWatchBookmarks , char * _continue , char * fieldSelector , char * labelSelector , int limit , char * resourceVersion , char * resourceVersionMatch , int timeoutSeconds , int watch ); + + +// partially update the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_patchNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_patchNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_patchNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// partially update the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_patchResourceClass(apiClient_t *apiClient, char * name , object_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation , int force ); + + +// read the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_readNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_readNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_readNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , char * pretty ); + + +// read the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_readResourceClass(apiClient_t *apiClient, char * name , char * pretty ); + + +// replace the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodScheduling(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* +ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_pod_scheduling_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaim(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* +ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name , char * _namespace , v1alpha1_resource_claim_template_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + +// replace the specified ResourceClass +// +v1alpha1_resource_class_t* +ResourceV1alpha1API_replaceResourceClass(apiClient_t *apiClient, char * name , v1alpha1_resource_class_t * body , char * pretty , char * dryRun , char * fieldManager , char * fieldValidation ); + + diff --git a/kubernetes/docs/AdmissionregistrationV1alpha1API.md b/kubernetes/docs/AdmissionregistrationV1alpha1API.md new file mode 100644 index 0000000..2f17fbd --- /dev/null +++ b/kubernetes/docs/AdmissionregistrationV1alpha1API.md @@ -0,0 +1,543 @@ +# AdmissionregistrationV1alpha1API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +[**AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +[**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +[**AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +[**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +[**AdmissionregistrationV1alpha1API_getAPIResources**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/ | +[**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies | +[**AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings | +[**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +[**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | +[**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name} | +[**AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1alpha1API.md#AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name} | + + +# **AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy** +```c +// create a ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicy(apiClient_t *apiClient, v1alpha1_validating_admission_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding** +```c +// create a ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_createValidatingAdmissionPolicyBinding(apiClient_t *apiClient, v1alpha1_validating_admission_policy_binding_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy** +```c +// delete collection of ValidatingAdmissionPolicy +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding** +```c +// delete collection of ValidatingAdmissionPolicyBinding +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteCollectionValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy** +```c +// delete a ValidatingAdmissionPolicy +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding** +```c +// delete a ValidatingAdmissionPolicyBinding +// +v1_status_t* AdmissionregistrationV1alpha1API_deleteValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* AdmissionregistrationV1alpha1API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy** +```c +// list or watch objects of kind ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_list_t* AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicy(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_list_t](v1alpha1_validating_admission_policy_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding** +```c +// list or watch objects of kind ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_list_t* AdmissionregistrationV1alpha1API_listValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_list_t](v1alpha1_validating_admission_policy_binding_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy** +```c +// partially update the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding** +```c +// partially update the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_patchValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy** +```c +// read the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding** +```c +// read the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_readValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy** +```c +// replace the specified ValidatingAdmissionPolicy +// +v1alpha1_validating_admission_policy_t* AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicy(apiClient_t *apiClient, char * name, v1alpha1_validating_admission_policy_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicy | +**body** | **[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_t](v1alpha1_validating_admission_policy.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding** +```c +// replace the specified ValidatingAdmissionPolicyBinding +// +v1alpha1_validating_admission_policy_binding_t* AdmissionregistrationV1alpha1API_replaceValidatingAdmissionPolicyBinding(apiClient_t *apiClient, char * name, v1alpha1_validating_admission_policy_binding_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ValidatingAdmissionPolicyBinding | +**body** | **[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_validating_admission_policy_binding_t](v1alpha1_validating_admission_policy_binding.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/AuthenticationV1alpha1API.md b/kubernetes/docs/AuthenticationV1alpha1API.md new file mode 100644 index 0000000..58d4bda --- /dev/null +++ b/kubernetes/docs/AuthenticationV1alpha1API.md @@ -0,0 +1,71 @@ +# AuthenticationV1alpha1API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AuthenticationV1alpha1API_createSelfSubjectReview**](AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_createSelfSubjectReview) | **POST** /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews | +[**AuthenticationV1alpha1API_getAPIResources**](AuthenticationV1alpha1API.md#AuthenticationV1alpha1API_getAPIResources) | **GET** /apis/authentication.k8s.io/v1alpha1/ | + + +# **AuthenticationV1alpha1API_createSelfSubjectReview** +```c +// create a SelfSubjectReview +// +v1alpha1_self_subject_review_t* AuthenticationV1alpha1API_createSelfSubjectReview(apiClient_t *apiClient, v1alpha1_self_subject_review_t * body, char * dryRun, char * fieldManager, char * fieldValidation, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_self_subject_review_t](v1alpha1_self_subject_review.md) \*** | | +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_self_subject_review_t](v1alpha1_self_subject_review.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **AuthenticationV1alpha1API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* AuthenticationV1alpha1API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/CustomObjectsAPI.md b/kubernetes/docs/CustomObjectsAPI.md index 5ad7717..2969172 100644 --- a/kubernetes/docs/CustomObjectsAPI.md +++ b/kubernetes/docs/CustomObjectsAPI.md @@ -10,6 +10,7 @@ Method | HTTP request | Description [**CustomObjectsAPI_deleteCollectionClusterCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionClusterCustomObject) | **DELETE** /apis/{group}/{version}/{plural} | [**CustomObjectsAPI_deleteCollectionNamespacedCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_deleteCollectionNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | [**CustomObjectsAPI_deleteNamespacedCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_deleteNamespacedCustomObject) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**CustomObjectsAPI_getAPIResources**](CustomObjectsAPI.md#CustomObjectsAPI_getAPIResources) | **GET** /apis/{group}/{version} | [**CustomObjectsAPI_getClusterCustomObject**](CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObject) | **GET** /apis/{group}/{version}/{plural}/{name} | [**CustomObjectsAPI_getClusterCustomObjectScale**](CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectScale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | [**CustomObjectsAPI_getClusterCustomObjectStatus**](CustomObjectsAPI.md#CustomObjectsAPI_getClusterCustomObjectStatus) | **GET** /apis/{group}/{version}/{plural}/{name}/status | @@ -242,6 +243,36 @@ Name | Type | Description | Notes [object_t](object.md) * +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **CustomObjectsAPI_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* CustomObjectsAPI_getAPIResources(apiClient_t *apiClient, char * group, char * version); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**group** | **char \*** | The custom resource's group name | +**version** | **char \*** | The custom resource's version | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + ### Authorization [BearerToken](../README.md#BearerToken) diff --git a/kubernetes/docs/FlowcontrolApiserverV1beta3API.md b/kubernetes/docs/FlowcontrolApiserverV1beta3API.md new file mode 100644 index 0000000..5610cdc --- /dev/null +++ b/kubernetes/docs/FlowcontrolApiserverV1beta3API.md @@ -0,0 +1,747 @@ +# FlowcontrolApiserverV1beta3API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FlowcontrolApiserverV1beta3API_createFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createFlowSchema) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +[**FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration) | **POST** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +[**FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +[**FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +[**FlowcontrolApiserverV1beta3API_deleteFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deleteFlowSchema) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration) | **DELETE** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_getAPIResources**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_getAPIResources) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/ | +[**FlowcontrolApiserverV1beta3API_listFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas | +[**FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations | +[**FlowcontrolApiserverV1beta3API_patchFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchema) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +[**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus) | **PATCH** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +[**FlowcontrolApiserverV1beta3API_readFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchema) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_readFlowSchemaStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readFlowSchemaStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +[**FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus) | **GET** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | +[**FlowcontrolApiserverV1beta3API_replaceFlowSchema**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchema) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name} | +[**FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status | +[**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name} | +[**FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus**](FlowcontrolApiserverV1beta3API.md#FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus) | **PUT** /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status | + + +# **FlowcontrolApiserverV1beta3API_createFlowSchema** +```c +// create a FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_createFlowSchema(apiClient_t *apiClient, v1beta3_flow_schema_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1beta3_flow_schema_t](v1beta3_flow_schema.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration** +```c +// create a PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_createPriorityLevelConfiguration(apiClient_t *apiClient, v1beta3_priority_level_configuration_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema** +```c +// delete collection of FlowSchema +// +v1_status_t* FlowcontrolApiserverV1beta3API_deleteCollectionFlowSchema(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration** +```c +// delete collection of PriorityLevelConfiguration +// +v1_status_t* FlowcontrolApiserverV1beta3API_deleteCollectionPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deleteFlowSchema** +```c +// delete a FlowSchema +// +v1_status_t* FlowcontrolApiserverV1beta3API_deleteFlowSchema(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration** +```c +// delete a PriorityLevelConfiguration +// +v1_status_t* FlowcontrolApiserverV1beta3API_deletePriorityLevelConfiguration(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* FlowcontrolApiserverV1beta3API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_listFlowSchema** +```c +// list or watch objects of kind FlowSchema +// +v1beta3_flow_schema_list_t* FlowcontrolApiserverV1beta3API_listFlowSchema(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1beta3_flow_schema_list_t](v1beta3_flow_schema_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration** +```c +// list or watch objects of kind PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_list_t* FlowcontrolApiserverV1beta3API_listPriorityLevelConfiguration(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_list_t](v1beta3_priority_level_configuration_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchFlowSchema** +```c +// partially update the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_patchFlowSchema(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus** +```c +// partially update status of the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_patchFlowSchemaStatus(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration** +```c +// partially update the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_patchPriorityLevelConfiguration(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus** +```c +// partially update status of the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_patchPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readFlowSchema** +```c +// read the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_readFlowSchema(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readFlowSchemaStatus** +```c +// read status of the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_readFlowSchemaStatus(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration** +```c +// read the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_readPriorityLevelConfiguration(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus** +```c +// read status of the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_readPriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replaceFlowSchema** +```c +// replace the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_replaceFlowSchema(apiClient_t *apiClient, char * name, v1beta3_flow_schema_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[v1beta3_flow_schema_t](v1beta3_flow_schema.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus** +```c +// replace status of the specified FlowSchema +// +v1beta3_flow_schema_t* FlowcontrolApiserverV1beta3API_replaceFlowSchemaStatus(apiClient_t *apiClient, char * name, v1beta3_flow_schema_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the FlowSchema | +**body** | **[v1beta3_flow_schema_t](v1beta3_flow_schema.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_flow_schema_t](v1beta3_flow_schema.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration** +```c +// replace the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_replacePriorityLevelConfiguration(apiClient_t *apiClient, char * name, v1beta3_priority_level_configuration_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus** +```c +// replace status of the specified PriorityLevelConfiguration +// +v1beta3_priority_level_configuration_t* FlowcontrolApiserverV1beta3API_replacePriorityLevelConfigurationStatus(apiClient_t *apiClient, char * name, v1beta3_priority_level_configuration_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PriorityLevelConfiguration | +**body** | **[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1beta3_priority_level_configuration_t](v1beta3_priority_level_configuration.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/ResourceAPI.md b/kubernetes/docs/ResourceAPI.md new file mode 100644 index 0000000..17335b9 --- /dev/null +++ b/kubernetes/docs/ResourceAPI.md @@ -0,0 +1,37 @@ +# ResourceAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ResourceAPI_getAPIGroup**](ResourceAPI.md#ResourceAPI_getAPIGroup) | **GET** /apis/resource.k8s.io/ | + + +# **ResourceAPI_getAPIGroup** +```c +// get information of a group +// +v1_api_group_t* ResourceAPI_getAPIGroup(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_group_t](v1_api_group.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/ResourceV1alpha1API.md b/kubernetes/docs/ResourceV1alpha1API.md new file mode 100644 index 0000000..0251349 --- /dev/null +++ b/kubernetes/docs/ResourceV1alpha1API.md @@ -0,0 +1,1397 @@ +# ResourceV1alpha1API + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ResourceV1alpha1API_createNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedPodScheduling) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +[**ResourceV1alpha1API_createNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +[**ResourceV1alpha1API_createNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +[**ResourceV1alpha1API_createResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha1/resourceclasses | +[**ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +[**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +[**ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +[**ResourceV1alpha1API_deleteCollectionResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses | +[**ResourceV1alpha1API_deleteNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedPodScheduling) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_deleteNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_deleteResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +[**ResourceV1alpha1API_getAPIResources**](ResourceV1alpha1API.md#ResourceV1alpha1API_getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha1/ | +[**ResourceV1alpha1API_listNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings | +[**ResourceV1alpha1API_listNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims | +[**ResourceV1alpha1API_listNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates | +[**ResourceV1alpha1API_listPodSchedulingForAllNamespaces**](ResourceV1alpha1API.md#ResourceV1alpha1API_listPodSchedulingForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/podschedulings | +[**ResourceV1alpha1API_listResourceClaimForAllNamespaces**](ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaims | +[**ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclaimtemplates | +[**ResourceV1alpha1API_listResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses | +[**ResourceV1alpha1API_patchNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodScheduling) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_patchNamespacedPodSchedulingStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedPodSchedulingStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +[**ResourceV1alpha1API_patchNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_patchNamespacedResourceClaimStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +[**ResourceV1alpha1API_patchNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_patchResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +[**ResourceV1alpha1API_readNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodScheduling) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_readNamespacedPodSchedulingStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedPodSchedulingStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +[**ResourceV1alpha1API_readNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_readNamespacedResourceClaimStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +[**ResourceV1alpha1API_readNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_readResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | +[**ResourceV1alpha1API_replaceNamespacedPodScheduling**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodScheduling) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name} | +[**ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status | +[**ResourceV1alpha1API_replaceNamespacedResourceClaim**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name} | +[**ResourceV1alpha1API_replaceNamespacedResourceClaimStatus**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status | +[**ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name} | +[**ResourceV1alpha1API_replaceResourceClass**](ResourceV1alpha1API.md#ResourceV1alpha1API_replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha1/resourceclasses/{name} | + + +# **ResourceV1alpha1API_createNamespacedPodScheduling** +```c +// create a PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_createNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace, v1alpha1_pod_scheduling_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_createNamespacedResourceClaim** +```c +// create a ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_createNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace, v1alpha1_resource_claim_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_createNamespacedResourceClaimTemplate** +```c +// create a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_createNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace, v1alpha1_resource_claim_template_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_createResourceClass** +```c +// create a ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_createResourceClass(apiClient_t *apiClient, v1alpha1_resource_class_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**body** | **[v1alpha1_resource_class_t](v1alpha1_resource_class.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling** +```c +// delete collection of PodScheduling +// +v1_status_t* ResourceV1alpha1API_deleteCollectionNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim** +```c +// delete collection of ResourceClaim +// +v1_status_t* ResourceV1alpha1API_deleteCollectionNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate** +```c +// delete collection of ResourceClaimTemplate +// +v1_status_t* ResourceV1alpha1API_deleteCollectionNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteCollectionResourceClass** +```c +// delete collection of ResourceClass +// +v1_status_t* ResourceV1alpha1API_deleteCollectionResourceClass(apiClient_t *apiClient, char * pretty, char * _continue, char * dryRun, char * fieldSelector, int gracePeriodSeconds, char * labelSelector, int limit, int orphanDependents, char * propagationPolicy, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1_status_t](v1_status.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteNamespacedPodScheduling** +```c +// delete a PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_deleteNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteNamespacedResourceClaim** +```c +// delete a ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_deleteNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate** +```c +// delete a ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_deleteNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_deleteResourceClass** +```c +// delete a ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_deleteResourceClass(apiClient_t *apiClient, char * name, char * pretty, char * dryRun, int gracePeriodSeconds, int orphanDependents, char * propagationPolicy, v1_delete_options_t * body); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**gracePeriodSeconds** | **int** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] +**orphanDependents** | **int** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] +**propagationPolicy** | **char \*** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] +**body** | **[v1_delete_options_t](v1_delete_options.md) \*** | | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_getAPIResources** +```c +// get available resources +// +v1_api_resource_list_t* ResourceV1alpha1API_getAPIResources(apiClient_t *apiClient); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | + +### Return type + +[v1_api_resource_list_t](v1_api_resource_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listNamespacedPodScheduling** +```c +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* ResourceV1alpha1API_listNamespacedPodScheduling(apiClient_t *apiClient, char * _namespace, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_list_t](v1alpha1_pod_scheduling_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listNamespacedResourceClaim** +```c +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* ResourceV1alpha1API_listNamespacedResourceClaim(apiClient_t *apiClient, char * _namespace, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_list_t](v1alpha1_resource_claim_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listNamespacedResourceClaimTemplate** +```c +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* ResourceV1alpha1API_listNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * _namespace, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_list_t](v1alpha1_resource_claim_template_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listPodSchedulingForAllNamespaces** +```c +// list or watch objects of kind PodScheduling +// +v1alpha1_pod_scheduling_list_t* ResourceV1alpha1API_listPodSchedulingForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * pretty, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_list_t](v1alpha1_pod_scheduling_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listResourceClaimForAllNamespaces** +```c +// list or watch objects of kind ResourceClaim +// +v1alpha1_resource_claim_list_t* ResourceV1alpha1API_listResourceClaimForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * pretty, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_list_t](v1alpha1_resource_claim_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces** +```c +// list or watch objects of kind ResourceClaimTemplate +// +v1alpha1_resource_claim_template_list_t* ResourceV1alpha1API_listResourceClaimTemplateForAllNamespaces(apiClient_t *apiClient, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * pretty, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_list_t](v1alpha1_resource_claim_template_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_listResourceClass** +```c +// list or watch objects of kind ResourceClass +// +v1alpha1_resource_class_list_t* ResourceV1alpha1API_listResourceClass(apiClient_t *apiClient, char * pretty, int allowWatchBookmarks, char * _continue, char * fieldSelector, char * labelSelector, int limit, char * resourceVersion, char * resourceVersionMatch, int timeoutSeconds, int watch); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**allowWatchBookmarks** | **int** | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. | [optional] +**_continue** | **char \*** | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] +**fieldSelector** | **char \*** | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] +**labelSelector** | **char \*** | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] +**limit** | **int** | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] +**resourceVersion** | **char \*** | resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**resourceVersionMatch** | **char \*** | resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset | [optional] +**timeoutSeconds** | **int** | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] +**watch** | **int** | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[v1alpha1_resource_class_list_t](v1alpha1_resource_class_list.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedPodScheduling** +```c +// partially update the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_patchNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedPodSchedulingStatus** +```c +// partially update status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_patchNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedResourceClaim** +```c +// partially update the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_patchNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedResourceClaimStatus** +```c +// partially update status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_patchNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchNamespacedResourceClaimTemplate** +```c +// partially update the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_patchNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_patchResourceClass** +```c +// partially update the specified ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_patchResourceClass(apiClient_t *apiClient, char * name, object_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation, int force); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**body** | **[object_t](object.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] +**force** | **int** | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedPodScheduling** +```c +// read the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_readNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedPodSchedulingStatus** +```c +// read status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_readNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedResourceClaim** +```c +// read the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_readNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedResourceClaimStatus** +```c +// read status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_readNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readNamespacedResourceClaimTemplate** +```c +// read the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_readNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_readResourceClass** +```c +// read the specified ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_readResourceClass(apiClient_t *apiClient, char * name, char * pretty); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedPodScheduling** +```c +// replace the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_replaceNamespacedPodScheduling(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_pod_scheduling_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus** +```c +// replace status of the specified PodScheduling +// +v1alpha1_pod_scheduling_t* ResourceV1alpha1API_replaceNamespacedPodSchedulingStatus(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_pod_scheduling_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the PodScheduling | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_pod_scheduling_t](v1alpha1_pod_scheduling.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedResourceClaim** +```c +// replace the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_replaceNamespacedResourceClaim(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_resource_claim_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedResourceClaimStatus** +```c +// replace status of the specified ResourceClaim +// +v1alpha1_resource_claim_t* ResourceV1alpha1API_replaceNamespacedResourceClaimStatus(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_resource_claim_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaim | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_t](v1alpha1_resource_claim.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate** +```c +// replace the specified ResourceClaimTemplate +// +v1alpha1_resource_claim_template_t* ResourceV1alpha1API_replaceNamespacedResourceClaimTemplate(apiClient_t *apiClient, char * name, char * _namespace, v1alpha1_resource_claim_template_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClaimTemplate | +**_namespace** | **char \*** | object name and auth scope, such as for teams and projects | +**body** | **[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_claim_template_t](v1alpha1_resource_claim_template.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ResourceV1alpha1API_replaceResourceClass** +```c +// replace the specified ResourceClass +// +v1alpha1_resource_class_t* ResourceV1alpha1API_replaceResourceClass(apiClient_t *apiClient, char * name, v1alpha1_resource_class_t * body, char * pretty, char * dryRun, char * fieldManager, char * fieldValidation); +``` + +### Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**apiClient** | **apiClient_t \*** | context containing the client configuration | +**name** | **char \*** | name of the ResourceClass | +**body** | **[v1alpha1_resource_class_t](v1alpha1_resource_class.md) \*** | | +**pretty** | **char \*** | If 'true', then the output is pretty printed. | [optional] +**dryRun** | **char \*** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] +**fieldManager** | **char \*** | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] +**fieldValidation** | **char \*** | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] + +### Return type + +[v1alpha1_resource_class_t](v1alpha1_resource_class.md) * + + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/kubernetes/docs/v1_claim_source.md b/kubernetes/docs/v1_claim_source.md new file mode 100644 index 0000000..aad2161 --- /dev/null +++ b/kubernetes/docs/v1_claim_source.md @@ -0,0 +1,11 @@ +# v1_claim_source_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_claim_name** | **char \*** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. | [optional] +**resource_claim_template_name** | **char \*** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be <pod name>-<resource name>, where <resource name> is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long). An existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_cross_version_object_reference.md b/kubernetes/docs/v1_cross_version_object_reference.md index 78668b1..933c56e 100644 --- a/kubernetes/docs/v1_cross_version_object_reference.md +++ b/kubernetes/docs/v1_cross_version_object_reference.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **char \*** | API version of the referent | [optional] -**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | +**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | **name** | **char \*** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_custom_resource_definition_spec.md b/kubernetes/docs/v1_custom_resource_definition_spec.md index 7576223..48a7484 100644 --- a/kubernetes/docs/v1_custom_resource_definition_spec.md +++ b/kubernetes/docs/v1_custom_resource_definition_spec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **conversion** | [**v1_custom_resource_conversion_t**](v1_custom_resource_conversion.md) \* | | [optional] **group** | **char \*** | group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). | **names** | [**v1_custom_resource_definition_names_t**](v1_custom_resource_definition_names.md) \* | | -**preserve_unknown_fields** | **int** | preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details. | [optional] +**preserve_unknown_fields** | **int** | preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details. | [optional] **scope** | **char \*** | scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. | **versions** | [**list_t**](v1_custom_resource_definition_version.md) \* | versions is the list of all API versions of the defined custom resource. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | diff --git a/kubernetes/docs/v1_endpoint_conditions.md b/kubernetes/docs/v1_endpoint_conditions.md index c762088..9e121f4 100644 --- a/kubernetes/docs/v1_endpoint_conditions.md +++ b/kubernetes/docs/v1_endpoint_conditions.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ready** | **int** | ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be \"true\" for terminating endpoints. | [optional] -**serving** | **int** | serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. | [optional] -**terminating** | **int** | terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate. | [optional] +**serving** | **int** | serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. | [optional] +**terminating** | **int** | terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_ingress_load_balancer_ingress.md b/kubernetes/docs/v1_ingress_load_balancer_ingress.md new file mode 100644 index 0000000..e51d6b6 --- /dev/null +++ b/kubernetes/docs/v1_ingress_load_balancer_ingress.md @@ -0,0 +1,12 @@ +# v1_ingress_load_balancer_ingress_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **char \*** | Hostname is set for load-balancer ingress points that are DNS based. | [optional] +**ip** | **char \*** | IP is set for load-balancer ingress points that are IP based. | [optional] +**ports** | [**list_t**](v1_ingress_port_status.md) \* | Ports provides information about the ports exposed by this LoadBalancer. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_ingress_load_balancer_status.md b/kubernetes/docs/v1_ingress_load_balancer_status.md new file mode 100644 index 0000000..d887fd2 --- /dev/null +++ b/kubernetes/docs/v1_ingress_load_balancer_status.md @@ -0,0 +1,10 @@ +# v1_ingress_load_balancer_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ingress** | [**list_t**](v1_ingress_load_balancer_ingress.md) \* | Ingress is a list containing ingress points for the load-balancer. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_ingress_port_status.md b/kubernetes/docs/v1_ingress_port_status.md new file mode 100644 index 0000000..59e4a47 --- /dev/null +++ b/kubernetes/docs/v1_ingress_port_status.md @@ -0,0 +1,12 @@ +# v1_ingress_port_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **char \*** | Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use CamelCase names - cloud provider specific error values must have names that comply with the format foo.example.com/CamelCase. | [optional] +**port** | **int** | Port is the port number of the ingress port. | +**protocol** | **char \*** | Protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\" | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_ingress_status.md b/kubernetes/docs/v1_ingress_status.md index 85363bf..f8aa193 100644 --- a/kubernetes/docs/v1_ingress_status.md +++ b/kubernetes/docs/v1_ingress_status.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**load_balancer** | [**v1_load_balancer_status_t**](v1_load_balancer_status.md) \* | | [optional] +**load_balancer** | [**v1_ingress_load_balancer_status_t**](v1_ingress_load_balancer_status.md) \* | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_ip_block.md b/kubernetes/docs/v1_ip_block.md index c85d198..9dea516 100644 --- a/kubernetes/docs/v1_ip_block.md +++ b/kubernetes/docs/v1_ip_block.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cidr** | **char \*** | CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" | -**except** | **list_t \*** | Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range | [optional] +**cidr** | **char \*** | CIDR is a string representing the IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" | +**except** | **list_t \*** | Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the CIDR range | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_node_status.md b/kubernetes/docs/v1_node_status.md index 5002dc5..c3ed6f5 100644 --- a/kubernetes/docs/v1_node_status.md +++ b/kubernetes/docs/v1_node_status.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addresses** | [**list_t**](v1_node_address.md) \* | List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. | [optional] +**addresses** | [**list_t**](v1_node_address.md) \* | List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. | [optional] **allocatable** | **list_t*** | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] **capacity** | **list_t*** | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] **conditions** | [**list_t**](v1_node_condition.md) \* | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition | [optional] diff --git a/kubernetes/docs/v1_persistent_volume_claim_spec.md b/kubernetes/docs/v1_persistent_volume_claim_spec.md index f2d2563..1746e26 100644 --- a/kubernetes/docs/v1_persistent_volume_claim_spec.md +++ b/kubernetes/docs/v1_persistent_volume_claim_spec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list_t \*** | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] **data_source** | [**v1_typed_local_object_reference_t**](v1_typed_local_object_reference.md) \* | | [optional] -**data_source_ref** | [**v1_typed_local_object_reference_t**](v1_typed_local_object_reference.md) \* | | [optional] +**data_source_ref** | [**v1_typed_object_reference_t**](v1_typed_object_reference.md) \* | | [optional] **resources** | [**v1_resource_requirements_t**](v1_resource_requirements.md) \* | | [optional] **selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] **storage_class_name** | **char \*** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] diff --git a/kubernetes/docs/v1_pod_disruption_budget_spec.md b/kubernetes/docs/v1_pod_disruption_budget_spec.md index bff45dc..55b6cf1 100644 --- a/kubernetes/docs/v1_pod_disruption_budget_spec.md +++ b/kubernetes/docs/v1_pod_disruption_budget_spec.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **max_unavailable** | **int_or_string_t \*** | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] **min_available** | **int_or_string_t \*** | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] **selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] +**unhealthy_pod_eviction_policy** | **char \*** | UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\". Valid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy. IfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction. AlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction. Additional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field. This field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_pod_resource_claim.md b/kubernetes/docs/v1_pod_resource_claim.md new file mode 100644 index 0000000..39d389f --- /dev/null +++ b/kubernetes/docs/v1_pod_resource_claim.md @@ -0,0 +1,11 @@ +# v1_pod_resource_claim_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | +**source** | [**v1_claim_source_t**](v1_claim_source.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_pod_scheduling_gate.md b/kubernetes/docs/v1_pod_scheduling_gate.md new file mode 100644 index 0000000..77500bf --- /dev/null +++ b/kubernetes/docs/v1_pod_scheduling_gate.md @@ -0,0 +1,10 @@ +# v1_pod_scheduling_gate_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name of the scheduling gate. Each scheduling gate must have a unique name field. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_pod_security_context.md b/kubernetes/docs/v1_pod_security_context.md index 3449b2a..67b6c2d 100644 --- a/kubernetes/docs/v1_pod_security_context.md +++ b/kubernetes/docs/v1_pod_security_context.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **run_as_user** | **long** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. | [optional] **se_linux_options** | [**v1_se_linux_options_t**](v1_se_linux_options.md) \* | | [optional] **seccomp_profile** | [**v1_seccomp_profile_t**](v1_seccomp_profile.md) \* | | [optional] -**supplemental_groups** | **list_t \*** | A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows. | [optional] +**supplemental_groups** | **list_t \*** | A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. | [optional] **sysctls** | [**list_t**](v1_sysctl.md) \* | Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. | [optional] **windows_options** | [**v1_windows_security_context_options_t**](v1_windows_security_context_options.md) \* | | [optional] diff --git a/kubernetes/docs/v1_pod_spec.md b/kubernetes/docs/v1_pod_spec.md index a154a0f..d35b299 100644 --- a/kubernetes/docs/v1_pod_spec.md +++ b/kubernetes/docs/v1_pod_spec.md @@ -27,9 +27,11 @@ Name | Type | Description | Notes **priority** | **int** | The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. | [optional] **priority_class_name** | **char \*** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readiness_gates** | [**list_t**](v1_pod_readiness_gate.md) \* | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates | [optional] +**resource_claims** | [**list_t**](v1_pod_resource_claim.md) \* | ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. | [optional] **restart_policy** | **char \*** | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy | [optional] **runtime_class_name** | **char \*** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class | [optional] **scheduler_name** | **char \*** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] +**scheduling_gates** | [**list_t**](v1_pod_scheduling_gate.md) \* | SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness. This is an alpha-level feature enabled by PodSchedulingReadiness feature gate. | [optional] **security_context** | [**v1_pod_security_context_t**](v1_pod_security_context.md) \* | | [optional] **service_account** | **char \*** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] **service_account_name** | **char \*** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] diff --git a/kubernetes/docs/v1_replica_set_status.md b/kubernetes/docs/v1_replica_set_status.md index 4b9151c..4b56f1d 100644 --- a/kubernetes/docs/v1_replica_set_status.md +++ b/kubernetes/docs/v1_replica_set_status.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **fully_labeled_replicas** | **int** | The number of pods that have labels matching the labels of the pod template of the replicaset. | [optional] **observed_generation** | **long** | ObservedGeneration reflects the generation of the most recently observed ReplicaSet. | [optional] **ready_replicas** | **int** | readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. | [optional] -**replicas** | **int** | Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | +**replicas** | **int** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_replication_controller_status.md b/kubernetes/docs/v1_replication_controller_status.md index 2ef2141..a9c794e 100644 --- a/kubernetes/docs/v1_replication_controller_status.md +++ b/kubernetes/docs/v1_replication_controller_status.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **fully_labeled_replicas** | **int** | The number of pods that have labels matching the labels of the pod template of the replication controller. | [optional] **observed_generation** | **long** | ObservedGeneration reflects the generation of the most recently observed replication controller. | [optional] **ready_replicas** | **int** | The number of ready replicas for this replication controller. | [optional] -**replicas** | **int** | Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | +**replicas** | **int** | Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1_resource_claim.md b/kubernetes/docs/v1_resource_claim.md new file mode 100644 index 0000000..26284bc --- /dev/null +++ b/kubernetes/docs/v1_resource_claim.md @@ -0,0 +1,10 @@ +# v1_resource_claim_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_resource_requirements.md b/kubernetes/docs/v1_resource_requirements.md index b07742a..b58920b 100644 --- a/kubernetes/docs/v1_resource_requirements.md +++ b/kubernetes/docs/v1_resource_requirements.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**claims** | [**list_t**](v1_resource_claim.md) \* | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. | [optional] **limits** | **list_t*** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] **requests** | **list_t*** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] diff --git a/kubernetes/docs/v1_stateful_set_ordinals.md b/kubernetes/docs/v1_stateful_set_ordinals.md new file mode 100644 index 0000000..ecdd368 --- /dev/null +++ b/kubernetes/docs/v1_stateful_set_ordinals.md @@ -0,0 +1,10 @@ +# v1_stateful_set_ordinals_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start** | **int** | start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). If unset, defaults to 0. Replica indices will be in the range: [0, .spec.replicas). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1_stateful_set_spec.md b/kubernetes/docs/v1_stateful_set_spec.md index bad7a1f..e6a80e4 100644 --- a/kubernetes/docs/v1_stateful_set_spec.md +++ b/kubernetes/docs/v1_stateful_set_spec.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] +**ordinals** | [**v1_stateful_set_ordinals_t**](v1_stateful_set_ordinals.md) \* | | [optional] **persistent_volume_claim_retention_policy** | [**v1_stateful_set_persistent_volume_claim_retention_policy_t**](v1_stateful_set_persistent_volume_claim_retention_policy.md) \* | | [optional] **pod_management_policy** | **char \*** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **int** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] diff --git a/kubernetes/docs/v1_topology_spread_constraint.md b/kubernetes/docs/v1_topology_spread_constraint.md index e4f2283..1e3ba7e 100644 --- a/kubernetes/docs/v1_topology_spread_constraint.md +++ b/kubernetes/docs/v1_topology_spread_constraint.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **match_label_keys** | **list_t \*** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. | [optional] **max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | **min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] -**node_affinity_policy** | **char \*** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] -**node_taints_policy** | **char \*** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] +**node_affinity_policy** | **char \*** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] +**node_taints_policy** | **char \*** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. | [optional] **topology_key** | **char \*** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | **when_unsatisfiable** | **char \*** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. | diff --git a/kubernetes/docs/v1_typed_object_reference.md b/kubernetes/docs/v1_typed_object_reference.md new file mode 100644 index 0000000..38b1e98 --- /dev/null +++ b/kubernetes/docs/v1_typed_object_reference.md @@ -0,0 +1,13 @@ +# v1_typed_object_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | [optional] +**kind** | **char \*** | Kind is the type of resource being referenced | +**name** | **char \*** | Name is the name of resource being referenced | +**_namespace** | **char \*** | Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_allocation_result.md b/kubernetes/docs/v1alpha1_allocation_result.md new file mode 100644 index 0000000..2a42026 --- /dev/null +++ b/kubernetes/docs/v1alpha1_allocation_result.md @@ -0,0 +1,12 @@ +# v1alpha1_allocation_result_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_on_nodes** | [**v1_node_selector_t**](v1_node_selector.md) \* | | [optional] +**resource_handle** | **char \*** | ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed. The maximum size of this field is 16KiB. This may get increased in the future, but not reduced. | [optional] +**shareable** | **int** | Shareable determines whether the resource supports more than one consumer at a time. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_cluster_cidr_spec.md b/kubernetes/docs/v1alpha1_cluster_cidr_spec.md index 45ac003..ae0d40c 100644 --- a/kubernetes/docs/v1alpha1_cluster_cidr_spec.md +++ b/kubernetes/docs/v1alpha1_cluster_cidr_spec.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ipv4** | **char \*** | IPv4 defines an IPv4 IP block in CIDR notation(e.g. \"10.0.0.0/8\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] -**ipv6** | **char \*** | IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] +**ipv6** | **char \*** | IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable. | [optional] **node_selector** | [**v1_node_selector_t**](v1_node_selector.md) \* | | [optional] **per_node_host_bits** | **int** | PerNodeHostBits defines the number of host bits to be configured per node. A subnet mask determines how much of the address is used for network bits and host bits. For example an IPv4 address of 192.168.0.0/24, splits the address into 24 bits for the network portion and 8 bits for the host portion. To allocate 256 IPs, set this field to 8 (a /24 mask for IPv4 or a /120 for IPv6). Minimum value is 4 (16 IPs). This field is immutable. | diff --git a/kubernetes/docs/v1alpha1_match_resources.md b/kubernetes/docs/v1alpha1_match_resources.md new file mode 100644 index 0000000..2f7f30e --- /dev/null +++ b/kubernetes/docs/v1alpha1_match_resources.md @@ -0,0 +1,14 @@ +# v1alpha1_match_resources_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exclude_resource_rules** | [**list_t**](v1alpha1_named_rule_with_operations.md) \* | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] +**match_policy** | **char \*** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional] +**namespace_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] +**object_selector** | [**v1_label_selector_t**](v1_label_selector.md) \* | | [optional] +**resource_rules** | [**list_t**](v1alpha1_named_rule_with_operations.md) \* | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_named_rule_with_operations.md b/kubernetes/docs/v1alpha1_named_rule_with_operations.md new file mode 100644 index 0000000..c8b8436 --- /dev/null +++ b/kubernetes/docs/v1alpha1_named_rule_with_operations.md @@ -0,0 +1,15 @@ +# v1alpha1_named_rule_with_operations_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_groups** | **list_t \*** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] +**api_versions** | **list_t \*** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] +**operations** | **list_t \*** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] +**resource_names** | **list_t \*** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] +**resources** | **list_t \*** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] +**scope** | **char \*** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_param_kind.md b/kubernetes/docs/v1alpha1_param_kind.md new file mode 100644 index 0000000..afb1710 --- /dev/null +++ b/kubernetes/docs/v1alpha1_param_kind.md @@ -0,0 +1,11 @@ +# v1alpha1_param_kind_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] +**kind** | **char \*** | Kind is the API kind the resources belong to. Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_param_ref.md b/kubernetes/docs/v1alpha1_param_ref.md new file mode 100644 index 0000000..1934159 --- /dev/null +++ b/kubernetes/docs/v1alpha1_param_ref.md @@ -0,0 +1,11 @@ +# v1alpha1_param_ref_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name of the resource being referenced. | [optional] +**_namespace** | **char \*** | Namespace of the referenced resource. Should be empty for the cluster-scoped resources | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling.md b/kubernetes/docs/v1alpha1_pod_scheduling.md new file mode 100644 index 0000000..015e881 --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling.md @@ -0,0 +1,14 @@ +# v1alpha1_pod_scheduling_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_pod_scheduling_spec_t**](v1alpha1_pod_scheduling_spec.md) \* | | +**status** | [**v1alpha1_pod_scheduling_status_t**](v1alpha1_pod_scheduling_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling_list.md b/kubernetes/docs/v1alpha1_pod_scheduling_list.md new file mode 100644 index 0000000..b7d29c7 --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling_list.md @@ -0,0 +1,13 @@ +# v1alpha1_pod_scheduling_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_pod_scheduling.md) \* | Items is the list of PodScheduling objects. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling_spec.md b/kubernetes/docs/v1alpha1_pod_scheduling_spec.md new file mode 100644 index 0000000..0e2ff3b --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling_spec.md @@ -0,0 +1,11 @@ +# v1alpha1_pod_scheduling_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**potential_nodes** | **list_t \*** | PotentialNodes lists nodes where the Pod might be able to run. The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced. | [optional] +**selected_node** | **char \*** | SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_pod_scheduling_status.md b/kubernetes/docs/v1alpha1_pod_scheduling_status.md new file mode 100644 index 0000000..ebddd9b --- /dev/null +++ b/kubernetes/docs/v1alpha1_pod_scheduling_status.md @@ -0,0 +1,10 @@ +# v1alpha1_pod_scheduling_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_claims** | [**list_t**](v1alpha1_resource_claim_scheduling_status.md) \* | ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim.md b/kubernetes/docs/v1alpha1_resource_claim.md new file mode 100644 index 0000000..1f37e2f --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim.md @@ -0,0 +1,14 @@ +# v1alpha1_resource_claim_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_resource_claim_spec_t**](v1alpha1_resource_claim_spec.md) \* | | +**status** | [**v1alpha1_resource_claim_status_t**](v1alpha1_resource_claim_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_consumer_reference.md b/kubernetes/docs/v1alpha1_resource_claim_consumer_reference.md new file mode 100644 index 0000000..e1a9fdd --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_consumer_reference.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_consumer_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] +**name** | **char \*** | Name is the name of resource being referenced. | +**resource** | **char \*** | Resource is the type of resource being referenced, for example \"pods\". | +**uid** | **char \*** | UID identifies exactly one incarnation of the resource. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_list.md b/kubernetes/docs/v1alpha1_resource_claim_list.md new file mode 100644 index 0000000..4bc2dfa --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_list.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_resource_claim.md) \* | Items is the list of resource claims. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_parameters_reference.md b/kubernetes/docs/v1alpha1_resource_claim_parameters_reference.md new file mode 100644 index 0000000..7076254 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_parameters_reference.md @@ -0,0 +1,12 @@ +# v1alpha1_resource_claim_parameters_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] +**kind** | **char \*** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\". | +**name** | **char \*** | Name is the name of resource being referenced. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_scheduling_status.md b/kubernetes/docs/v1alpha1_resource_claim_scheduling_status.md new file mode 100644 index 0000000..df1844a --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_scheduling_status.md @@ -0,0 +1,11 @@ +# v1alpha1_resource_claim_scheduling_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | Name matches the pod.spec.resourceClaims[*].Name field. | [optional] +**unsuitable_nodes** | **list_t \*** | UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for. The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_spec.md b/kubernetes/docs/v1alpha1_resource_claim_spec.md new file mode 100644 index 0000000..b7e4ad9 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_spec.md @@ -0,0 +1,12 @@ +# v1alpha1_resource_claim_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocation_mode** | **char \*** | Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default. | [optional] +**parameters_ref** | [**v1alpha1_resource_claim_parameters_reference_t**](v1alpha1_resource_claim_parameters_reference.md) \* | | [optional] +**resource_class_name** | **char \*** | ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_status.md b/kubernetes/docs/v1alpha1_resource_claim_status.md new file mode 100644 index 0000000..778118c --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_status.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allocation** | [**v1alpha1_allocation_result_t**](v1alpha1_allocation_result.md) \* | | [optional] +**deallocation_requested** | **int** | DeallocationRequested indicates that a ResourceClaim is to be deallocated. The driver then must deallocate this claim and reset the field together with clearing the Allocation field. While DeallocationRequested is set, no new consumers may be added to ReservedFor. | [optional] +**driver_name** | **char \*** | DriverName is a copy of the driver name from the ResourceClass at the time when allocation started. | [optional] +**reserved_for** | [**list_t**](v1alpha1_resource_claim_consumer_reference.md) \* | ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. There can be at most 32 such reservations. This may get increased in the future, but not reduced. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_template.md b/kubernetes/docs/v1alpha1_resource_claim_template.md new file mode 100644 index 0000000..0aabf56 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_template.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_template_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_resource_claim_template_spec_t**](v1alpha1_resource_claim_template_spec.md) \* | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_template_list.md b/kubernetes/docs/v1alpha1_resource_claim_template_list.md new file mode 100644 index 0000000..0172472 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_template_list.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_claim_template_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_resource_claim_template.md) \* | Items is the list of resource claim templates. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_claim_template_spec.md b/kubernetes/docs/v1alpha1_resource_claim_template_spec.md new file mode 100644 index 0000000..abd5b40 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_claim_template_spec.md @@ -0,0 +1,11 @@ +# v1alpha1_resource_claim_template_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_resource_claim_spec_t**](v1alpha1_resource_claim_spec.md) \* | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_class.md b/kubernetes/docs/v1alpha1_resource_class.md new file mode 100644 index 0000000..f6b0fc5 --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_class.md @@ -0,0 +1,15 @@ +# v1alpha1_resource_class_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**driver_name** | **char \*** | DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. Resource drivers have a unique name in forward domain order (acme.example.com). | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**parameters_ref** | [**v1alpha1_resource_class_parameters_reference_t**](v1alpha1_resource_class_parameters_reference.md) \* | | [optional] +**suitable_nodes** | [**v1_node_selector_t**](v1_node_selector.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_class_list.md b/kubernetes/docs/v1alpha1_resource_class_list.md new file mode 100644 index 0000000..038166c --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_class_list.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_class_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_resource_class.md) \* | Items is the list of resource classes. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_resource_class_parameters_reference.md b/kubernetes/docs/v1alpha1_resource_class_parameters_reference.md new file mode 100644 index 0000000..0e141ee --- /dev/null +++ b/kubernetes/docs/v1alpha1_resource_class_parameters_reference.md @@ -0,0 +1,13 @@ +# v1alpha1_resource_class_parameters_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **char \*** | APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. | [optional] +**kind** | **char \*** | Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata. | +**name** | **char \*** | Name is the name of resource being referenced. | +**_namespace** | **char \*** | Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_self_subject_review.md b/kubernetes/docs/v1alpha1_self_subject_review.md new file mode 100644 index 0000000..d5f0616 --- /dev/null +++ b/kubernetes/docs/v1alpha1_self_subject_review.md @@ -0,0 +1,13 @@ +# v1alpha1_self_subject_review_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**status** | [**v1alpha1_self_subject_review_status_t**](v1alpha1_self_subject_review_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_self_subject_review_status.md b/kubernetes/docs/v1alpha1_self_subject_review_status.md new file mode 100644 index 0000000..453ff12 --- /dev/null +++ b/kubernetes/docs/v1alpha1_self_subject_review_status.md @@ -0,0 +1,10 @@ +# v1alpha1_self_subject_review_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_info** | [**v1_user_info_t**](v1_user_info.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy.md b/kubernetes/docs/v1alpha1_validating_admission_policy.md new file mode 100644 index 0000000..27f68d8 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_validating_admission_policy_spec_t**](v1alpha1_validating_admission_policy_spec.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_binding.md b/kubernetes/docs/v1alpha1_validating_admission_policy_binding.md new file mode 100644 index 0000000..752b5a0 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_binding.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_binding_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1alpha1_validating_admission_policy_binding_spec_t**](v1alpha1_validating_admission_policy_binding_spec.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_binding_list.md b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_list.md new file mode 100644 index 0000000..d35cdee --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_list.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_binding_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_validating_admission_policy_binding.md) \* | List of PolicyBinding. | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_binding_spec.md b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_spec.md new file mode 100644 index 0000000..cd8f7e4 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_binding_spec.md @@ -0,0 +1,12 @@ +# v1alpha1_validating_admission_policy_binding_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_resources** | [**v1alpha1_match_resources_t**](v1alpha1_match_resources.md) \* | | [optional] +**param_ref** | [**v1alpha1_param_ref_t**](v1alpha1_param_ref.md) \* | | [optional] +**policy_name** | **char \*** | PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_list.md b/kubernetes/docs/v1alpha1_validating_admission_policy_list.md new file mode 100644 index 0000000..c6dbe44 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_list.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1alpha1_validating_admission_policy.md) \* | List of ValidatingAdmissionPolicy. | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validating_admission_policy_spec.md b/kubernetes/docs/v1alpha1_validating_admission_policy_spec.md new file mode 100644 index 0000000..62d22c0 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validating_admission_policy_spec.md @@ -0,0 +1,13 @@ +# v1alpha1_validating_admission_policy_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failure_policy** | **char \*** | FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. Allowed values are Ignore or Fail. Defaults to Fail. | [optional] +**match_constraints** | [**v1alpha1_match_resources_t**](v1alpha1_match_resources.md) \* | | [optional] +**param_kind** | [**v1alpha1_param_kind_t**](v1alpha1_param_kind.md) \* | | [optional] +**validations** | [**list_t**](v1alpha1_validation.md) \* | Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1alpha1_validation.md b/kubernetes/docs/v1alpha1_validation.md new file mode 100644 index 0000000..cc20904 --- /dev/null +++ b/kubernetes/docs/v1alpha1_validation.md @@ -0,0 +1,12 @@ +# v1alpha1_validation_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expression** | **char \*** | Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the Admission request/response, organized into CEL variables as well as some other useful variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. | +**message** | **char \*** | Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". | [optional] +**reason** | **char \*** | Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta2_limited_priority_level_configuration.md b/kubernetes/docs/v1beta2_limited_priority_level_configuration.md index 357d120..cb924c2 100644 --- a/kubernetes/docs/v1beta2_limited_priority_level_configuration.md +++ b/kubernetes/docs/v1beta2_limited_priority_level_configuration.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **assured_concurrency_shares** | **int** | `assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level: ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) ) bigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30. | [optional] +**borrowing_limit_percent** | **int** | `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. | [optional] +**lendable_percent** | **int** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional] **limit_response** | [**v1beta2_limit_response_t**](v1beta2_limit_response.md) \* | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/v1beta3_flow_distinguisher_method.md b/kubernetes/docs/v1beta3_flow_distinguisher_method.md new file mode 100644 index 0000000..e39091f --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_distinguisher_method.md @@ -0,0 +1,10 @@ +# v1beta3_flow_distinguisher_method_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **char \*** | `type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema.md b/kubernetes/docs/v1beta3_flow_schema.md new file mode 100644 index 0000000..4b4ef84 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema.md @@ -0,0 +1,14 @@ +# v1beta3_flow_schema_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1beta3_flow_schema_spec_t**](v1beta3_flow_schema_spec.md) \* | | [optional] +**status** | [**v1beta3_flow_schema_status_t**](v1beta3_flow_schema_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_condition.md b/kubernetes/docs/v1beta3_flow_schema_condition.md new file mode 100644 index 0000000..a6c75ff --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_condition.md @@ -0,0 +1,14 @@ +# v1beta3_flow_schema_condition_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | **char \*** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**message** | **char \*** | `message` is a human-readable message indicating details about last transition. | [optional] +**reason** | **char \*** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] +**status** | **char \*** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] +**type** | **char \*** | `type` is the type of the condition. Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_list.md b/kubernetes/docs/v1beta3_flow_schema_list.md new file mode 100644 index 0000000..1f90f61 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_list.md @@ -0,0 +1,13 @@ +# v1beta3_flow_schema_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1beta3_flow_schema.md) \* | `items` is a list of FlowSchemas. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_spec.md b/kubernetes/docs/v1beta3_flow_schema_spec.md new file mode 100644 index 0000000..aa5a191 --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_spec.md @@ -0,0 +1,13 @@ +# v1beta3_flow_schema_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**distinguisher_method** | [**v1beta3_flow_distinguisher_method_t**](v1beta3_flow_distinguisher_method.md) \* | | [optional] +**matching_precedence** | **int** | `matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default. | [optional] +**priority_level_configuration** | [**v1beta3_priority_level_configuration_reference_t**](v1beta3_priority_level_configuration_reference.md) \* | | +**rules** | [**list_t**](v1beta3_policy_rules_with_subjects.md) \* | `rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_flow_schema_status.md b/kubernetes/docs/v1beta3_flow_schema_status.md new file mode 100644 index 0000000..9d3126a --- /dev/null +++ b/kubernetes/docs/v1beta3_flow_schema_status.md @@ -0,0 +1,10 @@ +# v1beta3_flow_schema_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list_t**](v1beta3_flow_schema_condition.md) \* | `conditions` is a list of the current states of FlowSchema. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_group_subject.md b/kubernetes/docs/v1beta3_group_subject.md new file mode 100644 index 0000000..194939f --- /dev/null +++ b/kubernetes/docs/v1beta3_group_subject.md @@ -0,0 +1,10 @@ +# v1beta3_group_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_limit_response.md b/kubernetes/docs/v1beta3_limit_response.md new file mode 100644 index 0000000..1691b73 --- /dev/null +++ b/kubernetes/docs/v1beta3_limit_response.md @@ -0,0 +1,11 @@ +# v1beta3_limit_response_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**queuing** | [**v1beta3_queuing_configuration_t**](v1beta3_queuing_configuration.md) \* | | [optional] +**type** | **char \*** | `type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_limited_priority_level_configuration.md b/kubernetes/docs/v1beta3_limited_priority_level_configuration.md new file mode 100644 index 0000000..253af9a --- /dev/null +++ b/kubernetes/docs/v1beta3_limited_priority_level_configuration.md @@ -0,0 +1,13 @@ +# v1beta3_limited_priority_level_configuration_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**borrowing_limit_percent** | **int** | `borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows. BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) The value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite. | [optional] +**lendable_percent** | **int** | `lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows. LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) | [optional] +**limit_response** | [**v1beta3_limit_response_t**](v1beta3_limit_response.md) \* | | [optional] +**nominal_concurrency_shares** | **int** | `nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values: NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k) Bigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_non_resource_policy_rule.md b/kubernetes/docs/v1beta3_non_resource_policy_rule.md new file mode 100644 index 0000000..c0547b6 --- /dev/null +++ b/kubernetes/docs/v1beta3_non_resource_policy_rule.md @@ -0,0 +1,11 @@ +# v1beta3_non_resource_policy_rule_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**non_resource_urls** | **list_t \*** | `nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/*\" also matches nothing - \"/healthz/*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required. | +**verbs** | **list_t \*** | `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_policy_rules_with_subjects.md b/kubernetes/docs/v1beta3_policy_rules_with_subjects.md new file mode 100644 index 0000000..34137d2 --- /dev/null +++ b/kubernetes/docs/v1beta3_policy_rules_with_subjects.md @@ -0,0 +1,12 @@ +# v1beta3_policy_rules_with_subjects_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**non_resource_rules** | [**list_t**](v1beta3_non_resource_policy_rule.md) \* | `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. | [optional] +**resource_rules** | [**list_t**](v1beta3_resource_policy_rule.md) \* | `resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty. | [optional] +**subjects** | [**list_t**](v1beta3_subject.md) \* | subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration.md b/kubernetes/docs/v1beta3_priority_level_configuration.md new file mode 100644 index 0000000..7fc4ac6 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration.md @@ -0,0 +1,14 @@ +# v1beta3_priority_level_configuration_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_object_meta_t**](v1_object_meta.md) \* | | [optional] +**spec** | [**v1beta3_priority_level_configuration_spec_t**](v1beta3_priority_level_configuration_spec.md) \* | | [optional] +**status** | [**v1beta3_priority_level_configuration_status_t**](v1beta3_priority_level_configuration_status.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_condition.md b/kubernetes/docs/v1beta3_priority_level_configuration_condition.md new file mode 100644 index 0000000..f9c6349 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_condition.md @@ -0,0 +1,14 @@ +# v1beta3_priority_level_configuration_condition_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_transition_time** | **char \*** | `lastTransitionTime` is the last time the condition transitioned from one status to another. | [optional] +**message** | **char \*** | `message` is a human-readable message indicating details about last transition. | [optional] +**reason** | **char \*** | `reason` is a unique, one-word, CamelCase reason for the condition's last transition. | [optional] +**status** | **char \*** | `status` is the status of the condition. Can be True, False, Unknown. Required. | [optional] +**type** | **char \*** | `type` is the type of the condition. Required. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_list.md b/kubernetes/docs/v1beta3_priority_level_configuration_list.md new file mode 100644 index 0000000..fd9bb9c --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_list.md @@ -0,0 +1,13 @@ +# v1beta3_priority_level_configuration_list_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_version** | **char \*** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] +**items** | [**list_t**](v1beta3_priority_level_configuration.md) \* | `items` is a list of request-priorities. | +**kind** | **char \*** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**v1_list_meta_t**](v1_list_meta.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_reference.md b/kubernetes/docs/v1beta3_priority_level_configuration_reference.md new file mode 100644 index 0000000..9c2c31c --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_reference.md @@ -0,0 +1,10 @@ +# v1beta3_priority_level_configuration_reference_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | `name` is the name of the priority level configuration being referenced Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_spec.md b/kubernetes/docs/v1beta3_priority_level_configuration_spec.md new file mode 100644 index 0000000..87d83f4 --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_spec.md @@ -0,0 +1,11 @@ +# v1beta3_priority_level_configuration_spec_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limited** | [**v1beta3_limited_priority_level_configuration_t**](v1beta3_limited_priority_level_configuration.md) \* | | [optional] +**type** | **char \*** | `type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_priority_level_configuration_status.md b/kubernetes/docs/v1beta3_priority_level_configuration_status.md new file mode 100644 index 0000000..098826b --- /dev/null +++ b/kubernetes/docs/v1beta3_priority_level_configuration_status.md @@ -0,0 +1,10 @@ +# v1beta3_priority_level_configuration_status_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list_t**](v1beta3_priority_level_configuration_condition.md) \* | `conditions` is the current state of \"request-priority\". | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_queuing_configuration.md b/kubernetes/docs/v1beta3_queuing_configuration.md new file mode 100644 index 0000000..e300ea5 --- /dev/null +++ b/kubernetes/docs/v1beta3_queuing_configuration.md @@ -0,0 +1,12 @@ +# v1beta3_queuing_configuration_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hand_size** | **int** | `handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8. | [optional] +**queue_length_limit** | **int** | `queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50. | [optional] +**queues** | **int** | `queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_resource_policy_rule.md b/kubernetes/docs/v1beta3_resource_policy_rule.md new file mode 100644 index 0000000..cbeb230 --- /dev/null +++ b/kubernetes/docs/v1beta3_resource_policy_rule.md @@ -0,0 +1,14 @@ +# v1beta3_resource_policy_rule_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_groups** | **list_t \*** | `apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required. | +**cluster_scope** | **int** | `clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list. | [optional] +**namespaces** | **list_t \*** | `namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true. | [optional] +**resources** | **list_t \*** | `resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required. | +**verbs** | **list_t \*** | `verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_service_account_subject.md b/kubernetes/docs/v1beta3_service_account_subject.md new file mode 100644 index 0000000..6521bba --- /dev/null +++ b/kubernetes/docs/v1beta3_service_account_subject.md @@ -0,0 +1,11 @@ +# v1beta3_service_account_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | `name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required. | +**_namespace** | **char \*** | `namespace` is the namespace of matching ServiceAccount objects. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_subject.md b/kubernetes/docs/v1beta3_subject.md new file mode 100644 index 0000000..384ede7 --- /dev/null +++ b/kubernetes/docs/v1beta3_subject.md @@ -0,0 +1,13 @@ +# v1beta3_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**group** | [**v1beta3_group_subject_t**](v1beta3_group_subject.md) \* | | [optional] +**kind** | **char \*** | `kind` indicates which one of the other fields is non-empty. Required | +**service_account** | [**v1beta3_service_account_subject_t**](v1beta3_service_account_subject.md) \* | | [optional] +**user** | [**v1beta3_user_subject_t**](v1beta3_user_subject.md) \* | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v1beta3_user_subject.md b/kubernetes/docs/v1beta3_user_subject.md new file mode 100644 index 0000000..0a7b9b8 --- /dev/null +++ b/kubernetes/docs/v1beta3_user_subject.md @@ -0,0 +1,10 @@ +# v1beta3_user_subject_t + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **char \*** | `name` is the username that matches, or \"*\" to match all usernames. Required. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/kubernetes/docs/v2_cross_version_object_reference.md b/kubernetes/docs/v2_cross_version_object_reference.md index 31ba188..2465739 100644 --- a/kubernetes/docs/v2_cross_version_object_reference.md +++ b/kubernetes/docs/v2_cross_version_object_reference.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **char \*** | API version of the referent | [optional] -**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | +**kind** | **char \*** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | **name** | **char \*** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/model/v1_claim_source.c b/kubernetes/model/v1_claim_source.c new file mode 100644 index 0000000..8453692 --- /dev/null +++ b/kubernetes/model/v1_claim_source.c @@ -0,0 +1,97 @@ +#include +#include +#include +#include "v1_claim_source.h" + + + +v1_claim_source_t *v1_claim_source_create( + char *resource_claim_name, + char *resource_claim_template_name + ) { + v1_claim_source_t *v1_claim_source_local_var = malloc(sizeof(v1_claim_source_t)); + if (!v1_claim_source_local_var) { + return NULL; + } + v1_claim_source_local_var->resource_claim_name = resource_claim_name; + v1_claim_source_local_var->resource_claim_template_name = resource_claim_template_name; + + return v1_claim_source_local_var; +} + + +void v1_claim_source_free(v1_claim_source_t *v1_claim_source) { + if(NULL == v1_claim_source){ + return ; + } + listEntry_t *listEntry; + if (v1_claim_source->resource_claim_name) { + free(v1_claim_source->resource_claim_name); + v1_claim_source->resource_claim_name = NULL; + } + if (v1_claim_source->resource_claim_template_name) { + free(v1_claim_source->resource_claim_template_name); + v1_claim_source->resource_claim_template_name = NULL; + } + free(v1_claim_source); +} + +cJSON *v1_claim_source_convertToJSON(v1_claim_source_t *v1_claim_source) { + cJSON *item = cJSON_CreateObject(); + + // v1_claim_source->resource_claim_name + if(v1_claim_source->resource_claim_name) { + if(cJSON_AddStringToObject(item, "resourceClaimName", v1_claim_source->resource_claim_name) == NULL) { + goto fail; //String + } + } + + + // v1_claim_source->resource_claim_template_name + if(v1_claim_source->resource_claim_template_name) { + if(cJSON_AddStringToObject(item, "resourceClaimTemplateName", v1_claim_source->resource_claim_template_name) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_claim_source_t *v1_claim_source_parseFromJSON(cJSON *v1_claim_sourceJSON){ + + v1_claim_source_t *v1_claim_source_local_var = NULL; + + // v1_claim_source->resource_claim_name + cJSON *resource_claim_name = cJSON_GetObjectItemCaseSensitive(v1_claim_sourceJSON, "resourceClaimName"); + if (resource_claim_name) { + if(!cJSON_IsString(resource_claim_name) && !cJSON_IsNull(resource_claim_name)) + { + goto end; //String + } + } + + // v1_claim_source->resource_claim_template_name + cJSON *resource_claim_template_name = cJSON_GetObjectItemCaseSensitive(v1_claim_sourceJSON, "resourceClaimTemplateName"); + if (resource_claim_template_name) { + if(!cJSON_IsString(resource_claim_template_name) && !cJSON_IsNull(resource_claim_template_name)) + { + goto end; //String + } + } + + + v1_claim_source_local_var = v1_claim_source_create ( + resource_claim_name && !cJSON_IsNull(resource_claim_name) ? strdup(resource_claim_name->valuestring) : NULL, + resource_claim_template_name && !cJSON_IsNull(resource_claim_template_name) ? strdup(resource_claim_template_name->valuestring) : NULL + ); + + return v1_claim_source_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_claim_source.h b/kubernetes/model/v1_claim_source.h new file mode 100644 index 0000000..3d99dcf --- /dev/null +++ b/kubernetes/model/v1_claim_source.h @@ -0,0 +1,39 @@ +/* + * v1_claim_source.h + * + * ClaimSource describes a reference to a ResourceClaim. Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. + */ + +#ifndef _v1_claim_source_H_ +#define _v1_claim_source_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_claim_source_t v1_claim_source_t; + + + + +typedef struct v1_claim_source_t { + char *resource_claim_name; // string + char *resource_claim_template_name; // string + +} v1_claim_source_t; + +v1_claim_source_t *v1_claim_source_create( + char *resource_claim_name, + char *resource_claim_template_name +); + +void v1_claim_source_free(v1_claim_source_t *v1_claim_source); + +v1_claim_source_t *v1_claim_source_parseFromJSON(cJSON *v1_claim_sourceJSON); + +cJSON *v1_claim_source_convertToJSON(v1_claim_source_t *v1_claim_source); + +#endif /* _v1_claim_source_H_ */ + diff --git a/kubernetes/model/v1_ingress_load_balancer_ingress.c b/kubernetes/model/v1_ingress_load_balancer_ingress.c new file mode 100644 index 0000000..f04ea4e --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_ingress.c @@ -0,0 +1,160 @@ +#include +#include +#include +#include "v1_ingress_load_balancer_ingress.h" + + + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_create( + char *hostname, + char *ip, + list_t *ports + ) { + v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_local_var = malloc(sizeof(v1_ingress_load_balancer_ingress_t)); + if (!v1_ingress_load_balancer_ingress_local_var) { + return NULL; + } + v1_ingress_load_balancer_ingress_local_var->hostname = hostname; + v1_ingress_load_balancer_ingress_local_var->ip = ip; + v1_ingress_load_balancer_ingress_local_var->ports = ports; + + return v1_ingress_load_balancer_ingress_local_var; +} + + +void v1_ingress_load_balancer_ingress_free(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress) { + if(NULL == v1_ingress_load_balancer_ingress){ + return ; + } + listEntry_t *listEntry; + if (v1_ingress_load_balancer_ingress->hostname) { + free(v1_ingress_load_balancer_ingress->hostname); + v1_ingress_load_balancer_ingress->hostname = NULL; + } + if (v1_ingress_load_balancer_ingress->ip) { + free(v1_ingress_load_balancer_ingress->ip); + v1_ingress_load_balancer_ingress->ip = NULL; + } + if (v1_ingress_load_balancer_ingress->ports) { + list_ForEach(listEntry, v1_ingress_load_balancer_ingress->ports) { + v1_ingress_port_status_free(listEntry->data); + } + list_freeList(v1_ingress_load_balancer_ingress->ports); + v1_ingress_load_balancer_ingress->ports = NULL; + } + free(v1_ingress_load_balancer_ingress); +} + +cJSON *v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress) { + cJSON *item = cJSON_CreateObject(); + + // v1_ingress_load_balancer_ingress->hostname + if(v1_ingress_load_balancer_ingress->hostname) { + if(cJSON_AddStringToObject(item, "hostname", v1_ingress_load_balancer_ingress->hostname) == NULL) { + goto fail; //String + } + } + + + // v1_ingress_load_balancer_ingress->ip + if(v1_ingress_load_balancer_ingress->ip) { + if(cJSON_AddStringToObject(item, "ip", v1_ingress_load_balancer_ingress->ip) == NULL) { + goto fail; //String + } + } + + + // v1_ingress_load_balancer_ingress->ports + if(v1_ingress_load_balancer_ingress->ports) { + cJSON *ports = cJSON_AddArrayToObject(item, "ports"); + if(ports == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *portsListEntry; + if (v1_ingress_load_balancer_ingress->ports) { + list_ForEach(portsListEntry, v1_ingress_load_balancer_ingress->ports) { + cJSON *itemLocal = v1_ingress_port_status_convertToJSON(portsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(ports, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_parseFromJSON(cJSON *v1_ingress_load_balancer_ingressJSON){ + + v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_local_var = NULL; + + // define the local list for v1_ingress_load_balancer_ingress->ports + list_t *portsList = NULL; + + // v1_ingress_load_balancer_ingress->hostname + cJSON *hostname = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_ingressJSON, "hostname"); + if (hostname) { + if(!cJSON_IsString(hostname) && !cJSON_IsNull(hostname)) + { + goto end; //String + } + } + + // v1_ingress_load_balancer_ingress->ip + cJSON *ip = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_ingressJSON, "ip"); + if (ip) { + if(!cJSON_IsString(ip) && !cJSON_IsNull(ip)) + { + goto end; //String + } + } + + // v1_ingress_load_balancer_ingress->ports + cJSON *ports = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_ingressJSON, "ports"); + if (ports) { + cJSON *ports_local_nonprimitive = NULL; + if(!cJSON_IsArray(ports)){ + goto end; //nonprimitive container + } + + portsList = list_createList(); + + cJSON_ArrayForEach(ports_local_nonprimitive,ports ) + { + if(!cJSON_IsObject(ports_local_nonprimitive)){ + goto end; + } + v1_ingress_port_status_t *portsItem = v1_ingress_port_status_parseFromJSON(ports_local_nonprimitive); + + list_addElement(portsList, portsItem); + } + } + + + v1_ingress_load_balancer_ingress_local_var = v1_ingress_load_balancer_ingress_create ( + hostname && !cJSON_IsNull(hostname) ? strdup(hostname->valuestring) : NULL, + ip && !cJSON_IsNull(ip) ? strdup(ip->valuestring) : NULL, + ports ? portsList : NULL + ); + + return v1_ingress_load_balancer_ingress_local_var; +end: + if (portsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, portsList) { + v1_ingress_port_status_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(portsList); + portsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_ingress_load_balancer_ingress.h b/kubernetes/model/v1_ingress_load_balancer_ingress.h new file mode 100644 index 0000000..b12c830 --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_ingress.h @@ -0,0 +1,42 @@ +/* + * v1_ingress_load_balancer_ingress.h + * + * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. + */ + +#ifndef _v1_ingress_load_balancer_ingress_H_ +#define _v1_ingress_load_balancer_ingress_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_ingress_load_balancer_ingress_t v1_ingress_load_balancer_ingress_t; + +#include "v1_ingress_port_status.h" + + + +typedef struct v1_ingress_load_balancer_ingress_t { + char *hostname; // string + char *ip; // string + list_t *ports; //nonprimitive container + +} v1_ingress_load_balancer_ingress_t; + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_create( + char *hostname, + char *ip, + list_t *ports +); + +void v1_ingress_load_balancer_ingress_free(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress); + +v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress_parseFromJSON(cJSON *v1_ingress_load_balancer_ingressJSON); + +cJSON *v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_t *v1_ingress_load_balancer_ingress); + +#endif /* _v1_ingress_load_balancer_ingress_H_ */ + diff --git a/kubernetes/model/v1_ingress_load_balancer_status.c b/kubernetes/model/v1_ingress_load_balancer_status.c new file mode 100644 index 0000000..d0c4d8f --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1_ingress_load_balancer_status.h" + + + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_create( + list_t *ingress + ) { + v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_local_var = malloc(sizeof(v1_ingress_load_balancer_status_t)); + if (!v1_ingress_load_balancer_status_local_var) { + return NULL; + } + v1_ingress_load_balancer_status_local_var->ingress = ingress; + + return v1_ingress_load_balancer_status_local_var; +} + + +void v1_ingress_load_balancer_status_free(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status) { + if(NULL == v1_ingress_load_balancer_status){ + return ; + } + listEntry_t *listEntry; + if (v1_ingress_load_balancer_status->ingress) { + list_ForEach(listEntry, v1_ingress_load_balancer_status->ingress) { + v1_ingress_load_balancer_ingress_free(listEntry->data); + } + list_freeList(v1_ingress_load_balancer_status->ingress); + v1_ingress_load_balancer_status->ingress = NULL; + } + free(v1_ingress_load_balancer_status); +} + +cJSON *v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status) { + cJSON *item = cJSON_CreateObject(); + + // v1_ingress_load_balancer_status->ingress + if(v1_ingress_load_balancer_status->ingress) { + cJSON *ingress = cJSON_AddArrayToObject(item, "ingress"); + if(ingress == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *ingressListEntry; + if (v1_ingress_load_balancer_status->ingress) { + list_ForEach(ingressListEntry, v1_ingress_load_balancer_status->ingress) { + cJSON *itemLocal = v1_ingress_load_balancer_ingress_convertToJSON(ingressListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(ingress, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_parseFromJSON(cJSON *v1_ingress_load_balancer_statusJSON){ + + v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_local_var = NULL; + + // define the local list for v1_ingress_load_balancer_status->ingress + list_t *ingressList = NULL; + + // v1_ingress_load_balancer_status->ingress + cJSON *ingress = cJSON_GetObjectItemCaseSensitive(v1_ingress_load_balancer_statusJSON, "ingress"); + if (ingress) { + cJSON *ingress_local_nonprimitive = NULL; + if(!cJSON_IsArray(ingress)){ + goto end; //nonprimitive container + } + + ingressList = list_createList(); + + cJSON_ArrayForEach(ingress_local_nonprimitive,ingress ) + { + if(!cJSON_IsObject(ingress_local_nonprimitive)){ + goto end; + } + v1_ingress_load_balancer_ingress_t *ingressItem = v1_ingress_load_balancer_ingress_parseFromJSON(ingress_local_nonprimitive); + + list_addElement(ingressList, ingressItem); + } + } + + + v1_ingress_load_balancer_status_local_var = v1_ingress_load_balancer_status_create ( + ingress ? ingressList : NULL + ); + + return v1_ingress_load_balancer_status_local_var; +end: + if (ingressList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, ingressList) { + v1_ingress_load_balancer_ingress_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(ingressList); + ingressList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_ingress_load_balancer_status.h b/kubernetes/model/v1_ingress_load_balancer_status.h new file mode 100644 index 0000000..6efdc3d --- /dev/null +++ b/kubernetes/model/v1_ingress_load_balancer_status.h @@ -0,0 +1,38 @@ +/* + * v1_ingress_load_balancer_status.h + * + * IngressLoadBalancerStatus represents the status of a load-balancer. + */ + +#ifndef _v1_ingress_load_balancer_status_H_ +#define _v1_ingress_load_balancer_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_ingress_load_balancer_status_t v1_ingress_load_balancer_status_t; + +#include "v1_ingress_load_balancer_ingress.h" + + + +typedef struct v1_ingress_load_balancer_status_t { + list_t *ingress; //nonprimitive container + +} v1_ingress_load_balancer_status_t; + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_create( + list_t *ingress +); + +void v1_ingress_load_balancer_status_free(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status); + +v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status_parseFromJSON(cJSON *v1_ingress_load_balancer_statusJSON); + +cJSON *v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_t *v1_ingress_load_balancer_status); + +#endif /* _v1_ingress_load_balancer_status_H_ */ + diff --git a/kubernetes/model/v1_ingress_port_status.c b/kubernetes/model/v1_ingress_port_status.c new file mode 100644 index 0000000..d665b4e --- /dev/null +++ b/kubernetes/model/v1_ingress_port_status.c @@ -0,0 +1,125 @@ +#include +#include +#include +#include "v1_ingress_port_status.h" + + + +v1_ingress_port_status_t *v1_ingress_port_status_create( + char *error, + int port, + char *protocol + ) { + v1_ingress_port_status_t *v1_ingress_port_status_local_var = malloc(sizeof(v1_ingress_port_status_t)); + if (!v1_ingress_port_status_local_var) { + return NULL; + } + v1_ingress_port_status_local_var->error = error; + v1_ingress_port_status_local_var->port = port; + v1_ingress_port_status_local_var->protocol = protocol; + + return v1_ingress_port_status_local_var; +} + + +void v1_ingress_port_status_free(v1_ingress_port_status_t *v1_ingress_port_status) { + if(NULL == v1_ingress_port_status){ + return ; + } + listEntry_t *listEntry; + if (v1_ingress_port_status->error) { + free(v1_ingress_port_status->error); + v1_ingress_port_status->error = NULL; + } + if (v1_ingress_port_status->protocol) { + free(v1_ingress_port_status->protocol); + v1_ingress_port_status->protocol = NULL; + } + free(v1_ingress_port_status); +} + +cJSON *v1_ingress_port_status_convertToJSON(v1_ingress_port_status_t *v1_ingress_port_status) { + cJSON *item = cJSON_CreateObject(); + + // v1_ingress_port_status->error + if(v1_ingress_port_status->error) { + if(cJSON_AddStringToObject(item, "error", v1_ingress_port_status->error) == NULL) { + goto fail; //String + } + } + + + // v1_ingress_port_status->port + if (!v1_ingress_port_status->port) { + goto fail; + } + if(cJSON_AddNumberToObject(item, "port", v1_ingress_port_status->port) == NULL) { + goto fail; //Numeric + } + + + // v1_ingress_port_status->protocol + if (!v1_ingress_port_status->protocol) { + goto fail; + } + if(cJSON_AddStringToObject(item, "protocol", v1_ingress_port_status->protocol) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_ingress_port_status_t *v1_ingress_port_status_parseFromJSON(cJSON *v1_ingress_port_statusJSON){ + + v1_ingress_port_status_t *v1_ingress_port_status_local_var = NULL; + + // v1_ingress_port_status->error + cJSON *error = cJSON_GetObjectItemCaseSensitive(v1_ingress_port_statusJSON, "error"); + if (error) { + if(!cJSON_IsString(error) && !cJSON_IsNull(error)) + { + goto end; //String + } + } + + // v1_ingress_port_status->port + cJSON *port = cJSON_GetObjectItemCaseSensitive(v1_ingress_port_statusJSON, "port"); + if (!port) { + goto end; + } + + + if(!cJSON_IsNumber(port)) + { + goto end; //Numeric + } + + // v1_ingress_port_status->protocol + cJSON *protocol = cJSON_GetObjectItemCaseSensitive(v1_ingress_port_statusJSON, "protocol"); + if (!protocol) { + goto end; + } + + + if(!cJSON_IsString(protocol)) + { + goto end; //String + } + + + v1_ingress_port_status_local_var = v1_ingress_port_status_create ( + error && !cJSON_IsNull(error) ? strdup(error->valuestring) : NULL, + port->valuedouble, + strdup(protocol->valuestring) + ); + + return v1_ingress_port_status_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_ingress_port_status.h b/kubernetes/model/v1_ingress_port_status.h new file mode 100644 index 0000000..a6016a0 --- /dev/null +++ b/kubernetes/model/v1_ingress_port_status.h @@ -0,0 +1,41 @@ +/* + * v1_ingress_port_status.h + * + * IngressPortStatus represents the error condition of a service port + */ + +#ifndef _v1_ingress_port_status_H_ +#define _v1_ingress_port_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_ingress_port_status_t v1_ingress_port_status_t; + + + + +typedef struct v1_ingress_port_status_t { + char *error; // string + int port; //numeric + char *protocol; // string + +} v1_ingress_port_status_t; + +v1_ingress_port_status_t *v1_ingress_port_status_create( + char *error, + int port, + char *protocol +); + +void v1_ingress_port_status_free(v1_ingress_port_status_t *v1_ingress_port_status); + +v1_ingress_port_status_t *v1_ingress_port_status_parseFromJSON(cJSON *v1_ingress_port_statusJSON); + +cJSON *v1_ingress_port_status_convertToJSON(v1_ingress_port_status_t *v1_ingress_port_status); + +#endif /* _v1_ingress_port_status_H_ */ + diff --git a/kubernetes/model/v1_ingress_status.c b/kubernetes/model/v1_ingress_status.c index 78d7952..9f31b4c 100644 --- a/kubernetes/model/v1_ingress_status.c +++ b/kubernetes/model/v1_ingress_status.c @@ -6,7 +6,7 @@ v1_ingress_status_t *v1_ingress_status_create( - v1_load_balancer_status_t *load_balancer + v1_ingress_load_balancer_status_t *load_balancer ) { v1_ingress_status_t *v1_ingress_status_local_var = malloc(sizeof(v1_ingress_status_t)); if (!v1_ingress_status_local_var) { @@ -24,7 +24,7 @@ void v1_ingress_status_free(v1_ingress_status_t *v1_ingress_status) { } listEntry_t *listEntry; if (v1_ingress_status->load_balancer) { - v1_load_balancer_status_free(v1_ingress_status->load_balancer); + v1_ingress_load_balancer_status_free(v1_ingress_status->load_balancer); v1_ingress_status->load_balancer = NULL; } free(v1_ingress_status); @@ -35,7 +35,7 @@ cJSON *v1_ingress_status_convertToJSON(v1_ingress_status_t *v1_ingress_status) { // v1_ingress_status->load_balancer if(v1_ingress_status->load_balancer) { - cJSON *load_balancer_local_JSON = v1_load_balancer_status_convertToJSON(v1_ingress_status->load_balancer); + cJSON *load_balancer_local_JSON = v1_ingress_load_balancer_status_convertToJSON(v1_ingress_status->load_balancer); if(load_balancer_local_JSON == NULL) { goto fail; //model } @@ -58,12 +58,12 @@ v1_ingress_status_t *v1_ingress_status_parseFromJSON(cJSON *v1_ingress_statusJSO v1_ingress_status_t *v1_ingress_status_local_var = NULL; // define the local variable for v1_ingress_status->load_balancer - v1_load_balancer_status_t *load_balancer_local_nonprim = NULL; + v1_ingress_load_balancer_status_t *load_balancer_local_nonprim = NULL; // v1_ingress_status->load_balancer cJSON *load_balancer = cJSON_GetObjectItemCaseSensitive(v1_ingress_statusJSON, "loadBalancer"); if (load_balancer) { - load_balancer_local_nonprim = v1_load_balancer_status_parseFromJSON(load_balancer); //nonprimitive + load_balancer_local_nonprim = v1_ingress_load_balancer_status_parseFromJSON(load_balancer); //nonprimitive } @@ -74,7 +74,7 @@ v1_ingress_status_t *v1_ingress_status_parseFromJSON(cJSON *v1_ingress_statusJSO return v1_ingress_status_local_var; end: if (load_balancer_local_nonprim) { - v1_load_balancer_status_free(load_balancer_local_nonprim); + v1_ingress_load_balancer_status_free(load_balancer_local_nonprim); load_balancer_local_nonprim = NULL; } return NULL; diff --git a/kubernetes/model/v1_ingress_status.h b/kubernetes/model/v1_ingress_status.h index 44a3efd..cb13ea8 100644 --- a/kubernetes/model/v1_ingress_status.h +++ b/kubernetes/model/v1_ingress_status.h @@ -15,17 +15,17 @@ typedef struct v1_ingress_status_t v1_ingress_status_t; -#include "v1_load_balancer_status.h" +#include "v1_ingress_load_balancer_status.h" typedef struct v1_ingress_status_t { - struct v1_load_balancer_status_t *load_balancer; //model + struct v1_ingress_load_balancer_status_t *load_balancer; //model } v1_ingress_status_t; v1_ingress_status_t *v1_ingress_status_create( - v1_load_balancer_status_t *load_balancer + v1_ingress_load_balancer_status_t *load_balancer ); void v1_ingress_status_free(v1_ingress_status_t *v1_ingress_status); diff --git a/kubernetes/model/v1_ip_block.h b/kubernetes/model/v1_ip_block.h index d265c85..6ac9ee7 100644 --- a/kubernetes/model/v1_ip_block.h +++ b/kubernetes/model/v1_ip_block.h @@ -1,7 +1,7 @@ /* * v1_ip_block.h * - * IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. + * IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. */ #ifndef _v1_ip_block_H_ diff --git a/kubernetes/model/v1_persistent_volume_claim_spec.c b/kubernetes/model/v1_persistent_volume_claim_spec.c index a462594..7c37153 100644 --- a/kubernetes/model/v1_persistent_volume_claim_spec.c +++ b/kubernetes/model/v1_persistent_volume_claim_spec.c @@ -8,7 +8,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_create( list_t *access_modes, v1_typed_local_object_reference_t *data_source, - v1_typed_local_object_reference_t *data_source_ref, + v1_typed_object_reference_t *data_source_ref, v1_resource_requirements_t *resources, v1_label_selector_t *selector, char *storage_class_name, @@ -49,7 +49,7 @@ void v1_persistent_volume_claim_spec_free(v1_persistent_volume_claim_spec_t *v1_ v1_persistent_volume_claim_spec->data_source = NULL; } if (v1_persistent_volume_claim_spec->data_source_ref) { - v1_typed_local_object_reference_free(v1_persistent_volume_claim_spec->data_source_ref); + v1_typed_object_reference_free(v1_persistent_volume_claim_spec->data_source_ref); v1_persistent_volume_claim_spec->data_source_ref = NULL; } if (v1_persistent_volume_claim_spec->resources) { @@ -110,7 +110,7 @@ cJSON *v1_persistent_volume_claim_spec_convertToJSON(v1_persistent_volume_claim_ // v1_persistent_volume_claim_spec->data_source_ref if(v1_persistent_volume_claim_spec->data_source_ref) { - cJSON *data_source_ref_local_JSON = v1_typed_local_object_reference_convertToJSON(v1_persistent_volume_claim_spec->data_source_ref); + cJSON *data_source_ref_local_JSON = v1_typed_object_reference_convertToJSON(v1_persistent_volume_claim_spec->data_source_ref); if(data_source_ref_local_JSON == NULL) { goto fail; //model } @@ -189,7 +189,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON v1_typed_local_object_reference_t *data_source_local_nonprim = NULL; // define the local variable for v1_persistent_volume_claim_spec->data_source_ref - v1_typed_local_object_reference_t *data_source_ref_local_nonprim = NULL; + v1_typed_object_reference_t *data_source_ref_local_nonprim = NULL; // define the local variable for v1_persistent_volume_claim_spec->resources v1_resource_requirements_t *resources_local_nonprim = NULL; @@ -225,7 +225,7 @@ v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_parseFromJSON // v1_persistent_volume_claim_spec->data_source_ref cJSON *data_source_ref = cJSON_GetObjectItemCaseSensitive(v1_persistent_volume_claim_specJSON, "dataSourceRef"); if (data_source_ref) { - data_source_ref_local_nonprim = v1_typed_local_object_reference_parseFromJSON(data_source_ref); //nonprimitive + data_source_ref_local_nonprim = v1_typed_object_reference_parseFromJSON(data_source_ref); //nonprimitive } // v1_persistent_volume_claim_spec->resources @@ -295,7 +295,7 @@ end: data_source_local_nonprim = NULL; } if (data_source_ref_local_nonprim) { - v1_typed_local_object_reference_free(data_source_ref_local_nonprim); + v1_typed_object_reference_free(data_source_ref_local_nonprim); data_source_ref_local_nonprim = NULL; } if (resources_local_nonprim) { diff --git a/kubernetes/model/v1_persistent_volume_claim_spec.h b/kubernetes/model/v1_persistent_volume_claim_spec.h index d3009f6..6c7d21b 100644 --- a/kubernetes/model/v1_persistent_volume_claim_spec.h +++ b/kubernetes/model/v1_persistent_volume_claim_spec.h @@ -18,13 +18,14 @@ typedef struct v1_persistent_volume_claim_spec_t v1_persistent_volume_claim_spec #include "v1_label_selector.h" #include "v1_resource_requirements.h" #include "v1_typed_local_object_reference.h" +#include "v1_typed_object_reference.h" typedef struct v1_persistent_volume_claim_spec_t { list_t *access_modes; //primitive container struct v1_typed_local_object_reference_t *data_source; //model - struct v1_typed_local_object_reference_t *data_source_ref; //model + struct v1_typed_object_reference_t *data_source_ref; //model struct v1_resource_requirements_t *resources; //model struct v1_label_selector_t *selector; //model char *storage_class_name; // string @@ -36,7 +37,7 @@ typedef struct v1_persistent_volume_claim_spec_t { v1_persistent_volume_claim_spec_t *v1_persistent_volume_claim_spec_create( list_t *access_modes, v1_typed_local_object_reference_t *data_source, - v1_typed_local_object_reference_t *data_source_ref, + v1_typed_object_reference_t *data_source_ref, v1_resource_requirements_t *resources, v1_label_selector_t *selector, char *storage_class_name, diff --git a/kubernetes/model/v1_pod_disruption_budget_spec.c b/kubernetes/model/v1_pod_disruption_budget_spec.c index eae8198..3074768 100644 --- a/kubernetes/model/v1_pod_disruption_budget_spec.c +++ b/kubernetes/model/v1_pod_disruption_budget_spec.c @@ -8,7 +8,8 @@ v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_create( int_or_string_t *max_unavailable, int_or_string_t *min_available, - v1_label_selector_t *selector + v1_label_selector_t *selector, + char *unhealthy_pod_eviction_policy ) { v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_local_var = malloc(sizeof(v1_pod_disruption_budget_spec_t)); if (!v1_pod_disruption_budget_spec_local_var) { @@ -17,6 +18,7 @@ v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_create( v1_pod_disruption_budget_spec_local_var->max_unavailable = max_unavailable; v1_pod_disruption_budget_spec_local_var->min_available = min_available; v1_pod_disruption_budget_spec_local_var->selector = selector; + v1_pod_disruption_budget_spec_local_var->unhealthy_pod_eviction_policy = unhealthy_pod_eviction_policy; return v1_pod_disruption_budget_spec_local_var; } @@ -39,6 +41,10 @@ void v1_pod_disruption_budget_spec_free(v1_pod_disruption_budget_spec_t *v1_pod_ v1_label_selector_free(v1_pod_disruption_budget_spec->selector); v1_pod_disruption_budget_spec->selector = NULL; } + if (v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy) { + free(v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy); + v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy = NULL; + } free(v1_pod_disruption_budget_spec); } @@ -83,6 +89,14 @@ cJSON *v1_pod_disruption_budget_spec_convertToJSON(v1_pod_disruption_budget_spec } } + + // v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy + if(v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy) { + if(cJSON_AddStringToObject(item, "unhealthyPodEvictionPolicy", v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy) == NULL) { + goto fail; //String + } + } + return item; fail: if (item) { @@ -122,11 +136,21 @@ v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_parseFromJSON(cJS selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive } + // v1_pod_disruption_budget_spec->unhealthy_pod_eviction_policy + cJSON *unhealthy_pod_eviction_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_disruption_budget_specJSON, "unhealthyPodEvictionPolicy"); + if (unhealthy_pod_eviction_policy) { + if(!cJSON_IsString(unhealthy_pod_eviction_policy) && !cJSON_IsNull(unhealthy_pod_eviction_policy)) + { + goto end; //String + } + } + v1_pod_disruption_budget_spec_local_var = v1_pod_disruption_budget_spec_create ( max_unavailable ? max_unavailable_local_nonprim : NULL, min_available ? min_available_local_nonprim : NULL, - selector ? selector_local_nonprim : NULL + selector ? selector_local_nonprim : NULL, + unhealthy_pod_eviction_policy && !cJSON_IsNull(unhealthy_pod_eviction_policy) ? strdup(unhealthy_pod_eviction_policy->valuestring) : NULL ); return v1_pod_disruption_budget_spec_local_var; diff --git a/kubernetes/model/v1_pod_disruption_budget_spec.h b/kubernetes/model/v1_pod_disruption_budget_spec.h index 7480a05..d751e8e 100644 --- a/kubernetes/model/v1_pod_disruption_budget_spec.h +++ b/kubernetes/model/v1_pod_disruption_budget_spec.h @@ -24,13 +24,15 @@ typedef struct v1_pod_disruption_budget_spec_t { int_or_string_t *max_unavailable; // custom int_or_string_t *min_available; // custom struct v1_label_selector_t *selector; //model + char *unhealthy_pod_eviction_policy; // string } v1_pod_disruption_budget_spec_t; v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec_create( int_or_string_t *max_unavailable, int_or_string_t *min_available, - v1_label_selector_t *selector + v1_label_selector_t *selector, + char *unhealthy_pod_eviction_policy ); void v1_pod_disruption_budget_spec_free(v1_pod_disruption_budget_spec_t *v1_pod_disruption_budget_spec); diff --git a/kubernetes/model/v1_pod_resource_claim.c b/kubernetes/model/v1_pod_resource_claim.c new file mode 100644 index 0000000..9411339 --- /dev/null +++ b/kubernetes/model/v1_pod_resource_claim.c @@ -0,0 +1,110 @@ +#include +#include +#include +#include "v1_pod_resource_claim.h" + + + +v1_pod_resource_claim_t *v1_pod_resource_claim_create( + char *name, + v1_claim_source_t *source + ) { + v1_pod_resource_claim_t *v1_pod_resource_claim_local_var = malloc(sizeof(v1_pod_resource_claim_t)); + if (!v1_pod_resource_claim_local_var) { + return NULL; + } + v1_pod_resource_claim_local_var->name = name; + v1_pod_resource_claim_local_var->source = source; + + return v1_pod_resource_claim_local_var; +} + + +void v1_pod_resource_claim_free(v1_pod_resource_claim_t *v1_pod_resource_claim) { + if(NULL == v1_pod_resource_claim){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_resource_claim->name) { + free(v1_pod_resource_claim->name); + v1_pod_resource_claim->name = NULL; + } + if (v1_pod_resource_claim->source) { + v1_claim_source_free(v1_pod_resource_claim->source); + v1_pod_resource_claim->source = NULL; + } + free(v1_pod_resource_claim); +} + +cJSON *v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_t *v1_pod_resource_claim) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_resource_claim->name + if (!v1_pod_resource_claim->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_pod_resource_claim->name) == NULL) { + goto fail; //String + } + + + // v1_pod_resource_claim->source + if(v1_pod_resource_claim->source) { + cJSON *source_local_JSON = v1_claim_source_convertToJSON(v1_pod_resource_claim->source); + if(source_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "source", source_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_resource_claim_t *v1_pod_resource_claim_parseFromJSON(cJSON *v1_pod_resource_claimJSON){ + + v1_pod_resource_claim_t *v1_pod_resource_claim_local_var = NULL; + + // define the local variable for v1_pod_resource_claim->source + v1_claim_source_t *source_local_nonprim = NULL; + + // v1_pod_resource_claim->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_pod_resource_claimJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1_pod_resource_claim->source + cJSON *source = cJSON_GetObjectItemCaseSensitive(v1_pod_resource_claimJSON, "source"); + if (source) { + source_local_nonprim = v1_claim_source_parseFromJSON(source); //nonprimitive + } + + + v1_pod_resource_claim_local_var = v1_pod_resource_claim_create ( + strdup(name->valuestring), + source ? source_local_nonprim : NULL + ); + + return v1_pod_resource_claim_local_var; +end: + if (source_local_nonprim) { + v1_claim_source_free(source_local_nonprim); + source_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1_pod_resource_claim.h b/kubernetes/model/v1_pod_resource_claim.h new file mode 100644 index 0000000..6c1b0cb --- /dev/null +++ b/kubernetes/model/v1_pod_resource_claim.h @@ -0,0 +1,40 @@ +/* + * v1_pod_resource_claim.h + * + * PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. + */ + +#ifndef _v1_pod_resource_claim_H_ +#define _v1_pod_resource_claim_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_resource_claim_t v1_pod_resource_claim_t; + +#include "v1_claim_source.h" + + + +typedef struct v1_pod_resource_claim_t { + char *name; // string + struct v1_claim_source_t *source; //model + +} v1_pod_resource_claim_t; + +v1_pod_resource_claim_t *v1_pod_resource_claim_create( + char *name, + v1_claim_source_t *source +); + +void v1_pod_resource_claim_free(v1_pod_resource_claim_t *v1_pod_resource_claim); + +v1_pod_resource_claim_t *v1_pod_resource_claim_parseFromJSON(cJSON *v1_pod_resource_claimJSON); + +cJSON *v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_t *v1_pod_resource_claim); + +#endif /* _v1_pod_resource_claim_H_ */ + diff --git a/kubernetes/model/v1_pod_scheduling_gate.c b/kubernetes/model/v1_pod_scheduling_gate.c new file mode 100644 index 0000000..e851a8f --- /dev/null +++ b/kubernetes/model/v1_pod_scheduling_gate.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1_pod_scheduling_gate.h" + + + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_create( + char *name + ) { + v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_local_var = malloc(sizeof(v1_pod_scheduling_gate_t)); + if (!v1_pod_scheduling_gate_local_var) { + return NULL; + } + v1_pod_scheduling_gate_local_var->name = name; + + return v1_pod_scheduling_gate_local_var; +} + + +void v1_pod_scheduling_gate_free(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate) { + if(NULL == v1_pod_scheduling_gate){ + return ; + } + listEntry_t *listEntry; + if (v1_pod_scheduling_gate->name) { + free(v1_pod_scheduling_gate->name); + v1_pod_scheduling_gate->name = NULL; + } + free(v1_pod_scheduling_gate); +} + +cJSON *v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate) { + cJSON *item = cJSON_CreateObject(); + + // v1_pod_scheduling_gate->name + if (!v1_pod_scheduling_gate->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_pod_scheduling_gate->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_parseFromJSON(cJSON *v1_pod_scheduling_gateJSON){ + + v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_local_var = NULL; + + // v1_pod_scheduling_gate->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_pod_scheduling_gateJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1_pod_scheduling_gate_local_var = v1_pod_scheduling_gate_create ( + strdup(name->valuestring) + ); + + return v1_pod_scheduling_gate_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_pod_scheduling_gate.h b/kubernetes/model/v1_pod_scheduling_gate.h new file mode 100644 index 0000000..d46b953 --- /dev/null +++ b/kubernetes/model/v1_pod_scheduling_gate.h @@ -0,0 +1,37 @@ +/* + * v1_pod_scheduling_gate.h + * + * PodSchedulingGate is associated to a Pod to guard its scheduling. + */ + +#ifndef _v1_pod_scheduling_gate_H_ +#define _v1_pod_scheduling_gate_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_pod_scheduling_gate_t v1_pod_scheduling_gate_t; + + + + +typedef struct v1_pod_scheduling_gate_t { + char *name; // string + +} v1_pod_scheduling_gate_t; + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_create( + char *name +); + +void v1_pod_scheduling_gate_free(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate); + +v1_pod_scheduling_gate_t *v1_pod_scheduling_gate_parseFromJSON(cJSON *v1_pod_scheduling_gateJSON); + +cJSON *v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_t *v1_pod_scheduling_gate); + +#endif /* _v1_pod_scheduling_gate_H_ */ + diff --git a/kubernetes/model/v1_pod_spec.c b/kubernetes/model/v1_pod_spec.c index 8d6f3b7..6fc38b7 100644 --- a/kubernetes/model/v1_pod_spec.c +++ b/kubernetes/model/v1_pod_spec.c @@ -30,9 +30,11 @@ v1_pod_spec_t *v1_pod_spec_create( int priority, char *priority_class_name, list_t *readiness_gates, + list_t *resource_claims, char *restart_policy, char *runtime_class_name, char *scheduler_name, + list_t *scheduling_gates, v1_pod_security_context_t *security_context, char *service_account, char *service_account_name, @@ -72,9 +74,11 @@ v1_pod_spec_t *v1_pod_spec_create( v1_pod_spec_local_var->priority = priority; v1_pod_spec_local_var->priority_class_name = priority_class_name; v1_pod_spec_local_var->readiness_gates = readiness_gates; + v1_pod_spec_local_var->resource_claims = resource_claims; v1_pod_spec_local_var->restart_policy = restart_policy; v1_pod_spec_local_var->runtime_class_name = runtime_class_name; v1_pod_spec_local_var->scheduler_name = scheduler_name; + v1_pod_spec_local_var->scheduling_gates = scheduling_gates; v1_pod_spec_local_var->security_context = security_context; v1_pod_spec_local_var->service_account = service_account; v1_pod_spec_local_var->service_account_name = service_account_name; @@ -189,6 +193,13 @@ void v1_pod_spec_free(v1_pod_spec_t *v1_pod_spec) { list_freeList(v1_pod_spec->readiness_gates); v1_pod_spec->readiness_gates = NULL; } + if (v1_pod_spec->resource_claims) { + list_ForEach(listEntry, v1_pod_spec->resource_claims) { + v1_pod_resource_claim_free(listEntry->data); + } + list_freeList(v1_pod_spec->resource_claims); + v1_pod_spec->resource_claims = NULL; + } if (v1_pod_spec->restart_policy) { free(v1_pod_spec->restart_policy); v1_pod_spec->restart_policy = NULL; @@ -201,6 +212,13 @@ void v1_pod_spec_free(v1_pod_spec_t *v1_pod_spec) { free(v1_pod_spec->scheduler_name); v1_pod_spec->scheduler_name = NULL; } + if (v1_pod_spec->scheduling_gates) { + list_ForEach(listEntry, v1_pod_spec->scheduling_gates) { + v1_pod_scheduling_gate_free(listEntry->data); + } + list_freeList(v1_pod_spec->scheduling_gates); + v1_pod_spec->scheduling_gates = NULL; + } if (v1_pod_spec->security_context) { v1_pod_security_context_free(v1_pod_spec->security_context); v1_pod_spec->security_context = NULL; @@ -548,6 +566,26 @@ cJSON *v1_pod_spec_convertToJSON(v1_pod_spec_t *v1_pod_spec) { } + // v1_pod_spec->resource_claims + if(v1_pod_spec->resource_claims) { + cJSON *resource_claims = cJSON_AddArrayToObject(item, "resourceClaims"); + if(resource_claims == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *resource_claimsListEntry; + if (v1_pod_spec->resource_claims) { + list_ForEach(resource_claimsListEntry, v1_pod_spec->resource_claims) { + cJSON *itemLocal = v1_pod_resource_claim_convertToJSON(resource_claimsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(resource_claims, itemLocal); + } + } + } + + // v1_pod_spec->restart_policy if(v1_pod_spec->restart_policy) { if(cJSON_AddStringToObject(item, "restartPolicy", v1_pod_spec->restart_policy) == NULL) { @@ -572,6 +610,26 @@ cJSON *v1_pod_spec_convertToJSON(v1_pod_spec_t *v1_pod_spec) { } + // v1_pod_spec->scheduling_gates + if(v1_pod_spec->scheduling_gates) { + cJSON *scheduling_gates = cJSON_AddArrayToObject(item, "schedulingGates"); + if(scheduling_gates == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *scheduling_gatesListEntry; + if (v1_pod_spec->scheduling_gates) { + list_ForEach(scheduling_gatesListEntry, v1_pod_spec->scheduling_gates) { + cJSON *itemLocal = v1_pod_scheduling_gate_convertToJSON(scheduling_gatesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(scheduling_gates, itemLocal); + } + } + } + + // v1_pod_spec->security_context if(v1_pod_spec->security_context) { cJSON *security_context_local_JSON = v1_pod_security_context_convertToJSON(v1_pod_spec->security_context); @@ -737,6 +795,12 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ // define the local list for v1_pod_spec->readiness_gates list_t *readiness_gatesList = NULL; + // define the local list for v1_pod_spec->resource_claims + list_t *resource_claimsList = NULL; + + // define the local list for v1_pod_spec->scheduling_gates + list_t *scheduling_gatesList = NULL; + // define the local variable for v1_pod_spec->security_context v1_pod_security_context_t *security_context_local_nonprim = NULL; @@ -1063,6 +1127,27 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ } } + // v1_pod_spec->resource_claims + cJSON *resource_claims = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "resourceClaims"); + if (resource_claims) { + cJSON *resource_claims_local_nonprimitive = NULL; + if(!cJSON_IsArray(resource_claims)){ + goto end; //nonprimitive container + } + + resource_claimsList = list_createList(); + + cJSON_ArrayForEach(resource_claims_local_nonprimitive,resource_claims ) + { + if(!cJSON_IsObject(resource_claims_local_nonprimitive)){ + goto end; + } + v1_pod_resource_claim_t *resource_claimsItem = v1_pod_resource_claim_parseFromJSON(resource_claims_local_nonprimitive); + + list_addElement(resource_claimsList, resource_claimsItem); + } + } + // v1_pod_spec->restart_policy cJSON *restart_policy = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "restartPolicy"); if (restart_policy) { @@ -1090,6 +1175,27 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ } } + // v1_pod_spec->scheduling_gates + cJSON *scheduling_gates = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "schedulingGates"); + if (scheduling_gates) { + cJSON *scheduling_gates_local_nonprimitive = NULL; + if(!cJSON_IsArray(scheduling_gates)){ + goto end; //nonprimitive container + } + + scheduling_gatesList = list_createList(); + + cJSON_ArrayForEach(scheduling_gates_local_nonprimitive,scheduling_gates ) + { + if(!cJSON_IsObject(scheduling_gates_local_nonprimitive)){ + goto end; + } + v1_pod_scheduling_gate_t *scheduling_gatesItem = v1_pod_scheduling_gate_parseFromJSON(scheduling_gates_local_nonprimitive); + + list_addElement(scheduling_gatesList, scheduling_gatesItem); + } + } + // v1_pod_spec->security_context cJSON *security_context = cJSON_GetObjectItemCaseSensitive(v1_pod_specJSON, "securityContext"); if (security_context) { @@ -1239,9 +1345,11 @@ v1_pod_spec_t *v1_pod_spec_parseFromJSON(cJSON *v1_pod_specJSON){ priority ? priority->valuedouble : 0, priority_class_name && !cJSON_IsNull(priority_class_name) ? strdup(priority_class_name->valuestring) : NULL, readiness_gates ? readiness_gatesList : NULL, + resource_claims ? resource_claimsList : NULL, restart_policy && !cJSON_IsNull(restart_policy) ? strdup(restart_policy->valuestring) : NULL, runtime_class_name && !cJSON_IsNull(runtime_class_name) ? strdup(runtime_class_name->valuestring) : NULL, scheduler_name && !cJSON_IsNull(scheduler_name) ? strdup(scheduler_name->valuestring) : NULL, + scheduling_gates ? scheduling_gatesList : NULL, security_context ? security_context_local_nonprim : NULL, service_account && !cJSON_IsNull(service_account) ? strdup(service_account->valuestring) : NULL, service_account_name && !cJSON_IsNull(service_account_name) ? strdup(service_account_name->valuestring) : NULL, @@ -1350,6 +1458,24 @@ end: list_freeList(readiness_gatesList); readiness_gatesList = NULL; } + if (resource_claimsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_claimsList) { + v1_pod_resource_claim_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_claimsList); + resource_claimsList = NULL; + } + if (scheduling_gatesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, scheduling_gatesList) { + v1_pod_scheduling_gate_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(scheduling_gatesList); + scheduling_gatesList = NULL; + } if (security_context_local_nonprim) { v1_pod_security_context_free(security_context_local_nonprim); security_context_local_nonprim = NULL; diff --git a/kubernetes/model/v1_pod_spec.h b/kubernetes/model/v1_pod_spec.h index a101993..7b9ea57 100644 --- a/kubernetes/model/v1_pod_spec.h +++ b/kubernetes/model/v1_pod_spec.h @@ -23,6 +23,8 @@ typedef struct v1_pod_spec_t v1_pod_spec_t; #include "v1_pod_dns_config.h" #include "v1_pod_os.h" #include "v1_pod_readiness_gate.h" +#include "v1_pod_resource_claim.h" +#include "v1_pod_scheduling_gate.h" #include "v1_pod_security_context.h" #include "v1_toleration.h" #include "v1_topology_spread_constraint.h" @@ -55,9 +57,11 @@ typedef struct v1_pod_spec_t { int priority; //numeric char *priority_class_name; // string list_t *readiness_gates; //nonprimitive container + list_t *resource_claims; //nonprimitive container char *restart_policy; // string char *runtime_class_name; // string char *scheduler_name; // string + list_t *scheduling_gates; //nonprimitive container struct v1_pod_security_context_t *security_context; //model char *service_account; // string char *service_account_name; // string @@ -96,9 +100,11 @@ v1_pod_spec_t *v1_pod_spec_create( int priority, char *priority_class_name, list_t *readiness_gates, + list_t *resource_claims, char *restart_policy, char *runtime_class_name, char *scheduler_name, + list_t *scheduling_gates, v1_pod_security_context_t *security_context, char *service_account, char *service_account_name, diff --git a/kubernetes/model/v1_resource_claim.c b/kubernetes/model/v1_resource_claim.c new file mode 100644 index 0000000..e37ca3f --- /dev/null +++ b/kubernetes/model/v1_resource_claim.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1_resource_claim.h" + + + +v1_resource_claim_t *v1_resource_claim_create( + char *name + ) { + v1_resource_claim_t *v1_resource_claim_local_var = malloc(sizeof(v1_resource_claim_t)); + if (!v1_resource_claim_local_var) { + return NULL; + } + v1_resource_claim_local_var->name = name; + + return v1_resource_claim_local_var; +} + + +void v1_resource_claim_free(v1_resource_claim_t *v1_resource_claim) { + if(NULL == v1_resource_claim){ + return ; + } + listEntry_t *listEntry; + if (v1_resource_claim->name) { + free(v1_resource_claim->name); + v1_resource_claim->name = NULL; + } + free(v1_resource_claim); +} + +cJSON *v1_resource_claim_convertToJSON(v1_resource_claim_t *v1_resource_claim) { + cJSON *item = cJSON_CreateObject(); + + // v1_resource_claim->name + if (!v1_resource_claim->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_resource_claim->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_resource_claim_t *v1_resource_claim_parseFromJSON(cJSON *v1_resource_claimJSON){ + + v1_resource_claim_t *v1_resource_claim_local_var = NULL; + + // v1_resource_claim->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_resource_claimJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1_resource_claim_local_var = v1_resource_claim_create ( + strdup(name->valuestring) + ); + + return v1_resource_claim_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_resource_claim.h b/kubernetes/model/v1_resource_claim.h new file mode 100644 index 0000000..b68f7ac --- /dev/null +++ b/kubernetes/model/v1_resource_claim.h @@ -0,0 +1,37 @@ +/* + * v1_resource_claim.h + * + * ResourceClaim references one entry in PodSpec.ResourceClaims. + */ + +#ifndef _v1_resource_claim_H_ +#define _v1_resource_claim_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_resource_claim_t v1_resource_claim_t; + + + + +typedef struct v1_resource_claim_t { + char *name; // string + +} v1_resource_claim_t; + +v1_resource_claim_t *v1_resource_claim_create( + char *name +); + +void v1_resource_claim_free(v1_resource_claim_t *v1_resource_claim); + +v1_resource_claim_t *v1_resource_claim_parseFromJSON(cJSON *v1_resource_claimJSON); + +cJSON *v1_resource_claim_convertToJSON(v1_resource_claim_t *v1_resource_claim); + +#endif /* _v1_resource_claim_H_ */ + diff --git a/kubernetes/model/v1_resource_requirements.c b/kubernetes/model/v1_resource_requirements.c index 0368678..f02893e 100644 --- a/kubernetes/model/v1_resource_requirements.c +++ b/kubernetes/model/v1_resource_requirements.c @@ -6,6 +6,7 @@ v1_resource_requirements_t *v1_resource_requirements_create( + list_t *claims, list_t* limits, list_t* requests ) { @@ -13,6 +14,7 @@ v1_resource_requirements_t *v1_resource_requirements_create( if (!v1_resource_requirements_local_var) { return NULL; } + v1_resource_requirements_local_var->claims = claims; v1_resource_requirements_local_var->limits = limits; v1_resource_requirements_local_var->requests = requests; @@ -25,6 +27,13 @@ void v1_resource_requirements_free(v1_resource_requirements_t *v1_resource_requi return ; } listEntry_t *listEntry; + if (v1_resource_requirements->claims) { + list_ForEach(listEntry, v1_resource_requirements->claims) { + v1_resource_claim_free(listEntry->data); + } + list_freeList(v1_resource_requirements->claims); + v1_resource_requirements->claims = NULL; + } if (v1_resource_requirements->limits) { list_ForEach(listEntry, v1_resource_requirements->limits) { keyValuePair_t *localKeyValue = (keyValuePair_t*) listEntry->data; @@ -51,6 +60,26 @@ void v1_resource_requirements_free(v1_resource_requirements_t *v1_resource_requi cJSON *v1_resource_requirements_convertToJSON(v1_resource_requirements_t *v1_resource_requirements) { cJSON *item = cJSON_CreateObject(); + // v1_resource_requirements->claims + if(v1_resource_requirements->claims) { + cJSON *claims = cJSON_AddArrayToObject(item, "claims"); + if(claims == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *claimsListEntry; + if (v1_resource_requirements->claims) { + list_ForEach(claimsListEntry, v1_resource_requirements->claims) { + cJSON *itemLocal = v1_resource_claim_convertToJSON(claimsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(claims, itemLocal); + } + } + } + + // v1_resource_requirements->limits if(v1_resource_requirements->limits) { cJSON *limits = cJSON_AddObjectToObject(item, "limits"); @@ -102,12 +131,36 @@ v1_resource_requirements_t *v1_resource_requirements_parseFromJSON(cJSON *v1_res v1_resource_requirements_t *v1_resource_requirements_local_var = NULL; + // define the local list for v1_resource_requirements->claims + list_t *claimsList = NULL; + // define the local map for v1_resource_requirements->limits list_t *limitsList = NULL; // define the local map for v1_resource_requirements->requests list_t *requestsList = NULL; + // v1_resource_requirements->claims + cJSON *claims = cJSON_GetObjectItemCaseSensitive(v1_resource_requirementsJSON, "claims"); + if (claims) { + cJSON *claims_local_nonprimitive = NULL; + if(!cJSON_IsArray(claims)){ + goto end; //nonprimitive container + } + + claimsList = list_createList(); + + cJSON_ArrayForEach(claims_local_nonprimitive,claims ) + { + if(!cJSON_IsObject(claims_local_nonprimitive)){ + goto end; + } + v1_resource_claim_t *claimsItem = v1_resource_claim_parseFromJSON(claims_local_nonprimitive); + + list_addElement(claimsList, claimsItem); + } + } + // v1_resource_requirements->limits cJSON *limits = cJSON_GetObjectItemCaseSensitive(v1_resource_requirementsJSON, "limits"); if (limits) { @@ -160,12 +213,22 @@ v1_resource_requirements_t *v1_resource_requirements_parseFromJSON(cJSON *v1_res v1_resource_requirements_local_var = v1_resource_requirements_create ( + claims ? claimsList : NULL, limits ? limitsList : NULL, requests ? requestsList : NULL ); return v1_resource_requirements_local_var; end: + if (claimsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, claimsList) { + v1_resource_claim_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(claimsList); + claimsList = NULL; + } if (limitsList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, limitsList) { diff --git a/kubernetes/model/v1_resource_requirements.h b/kubernetes/model/v1_resource_requirements.h index e085ce9..eeb17bf 100644 --- a/kubernetes/model/v1_resource_requirements.h +++ b/kubernetes/model/v1_resource_requirements.h @@ -15,16 +15,19 @@ typedef struct v1_resource_requirements_t v1_resource_requirements_t; +#include "v1_resource_claim.h" typedef struct v1_resource_requirements_t { + list_t *claims; //nonprimitive container list_t* limits; //map list_t* requests; //map } v1_resource_requirements_t; v1_resource_requirements_t *v1_resource_requirements_create( + list_t *claims, list_t* limits, list_t* requests ); diff --git a/kubernetes/model/v1_stateful_set_ordinals.c b/kubernetes/model/v1_stateful_set_ordinals.c new file mode 100644 index 0000000..aecece6 --- /dev/null +++ b/kubernetes/model/v1_stateful_set_ordinals.c @@ -0,0 +1,69 @@ +#include +#include +#include +#include "v1_stateful_set_ordinals.h" + + + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_create( + int start + ) { + v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_local_var = malloc(sizeof(v1_stateful_set_ordinals_t)); + if (!v1_stateful_set_ordinals_local_var) { + return NULL; + } + v1_stateful_set_ordinals_local_var->start = start; + + return v1_stateful_set_ordinals_local_var; +} + + +void v1_stateful_set_ordinals_free(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals) { + if(NULL == v1_stateful_set_ordinals){ + return ; + } + listEntry_t *listEntry; + free(v1_stateful_set_ordinals); +} + +cJSON *v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals) { + cJSON *item = cJSON_CreateObject(); + + // v1_stateful_set_ordinals->start + if(v1_stateful_set_ordinals->start) { + if(cJSON_AddNumberToObject(item, "start", v1_stateful_set_ordinals->start) == NULL) { + goto fail; //Numeric + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_parseFromJSON(cJSON *v1_stateful_set_ordinalsJSON){ + + v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_local_var = NULL; + + // v1_stateful_set_ordinals->start + cJSON *start = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_ordinalsJSON, "start"); + if (start) { + if(!cJSON_IsNumber(start)) + { + goto end; //Numeric + } + } + + + v1_stateful_set_ordinals_local_var = v1_stateful_set_ordinals_create ( + start ? start->valuedouble : 0 + ); + + return v1_stateful_set_ordinals_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_stateful_set_ordinals.h b/kubernetes/model/v1_stateful_set_ordinals.h new file mode 100644 index 0000000..65ef569 --- /dev/null +++ b/kubernetes/model/v1_stateful_set_ordinals.h @@ -0,0 +1,37 @@ +/* + * v1_stateful_set_ordinals.h + * + * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. + */ + +#ifndef _v1_stateful_set_ordinals_H_ +#define _v1_stateful_set_ordinals_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_stateful_set_ordinals_t v1_stateful_set_ordinals_t; + + + + +typedef struct v1_stateful_set_ordinals_t { + int start; //numeric + +} v1_stateful_set_ordinals_t; + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_create( + int start +); + +void v1_stateful_set_ordinals_free(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals); + +v1_stateful_set_ordinals_t *v1_stateful_set_ordinals_parseFromJSON(cJSON *v1_stateful_set_ordinalsJSON); + +cJSON *v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_t *v1_stateful_set_ordinals); + +#endif /* _v1_stateful_set_ordinals_H_ */ + diff --git a/kubernetes/model/v1_stateful_set_spec.c b/kubernetes/model/v1_stateful_set_spec.c index fbf916e..ea9b65f 100644 --- a/kubernetes/model/v1_stateful_set_spec.c +++ b/kubernetes/model/v1_stateful_set_spec.c @@ -7,6 +7,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_create( int min_ready_seconds, + v1_stateful_set_ordinals_t *ordinals, v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy, char *pod_management_policy, int replicas, @@ -22,6 +23,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_create( return NULL; } v1_stateful_set_spec_local_var->min_ready_seconds = min_ready_seconds; + v1_stateful_set_spec_local_var->ordinals = ordinals; v1_stateful_set_spec_local_var->persistent_volume_claim_retention_policy = persistent_volume_claim_retention_policy; v1_stateful_set_spec_local_var->pod_management_policy = pod_management_policy; v1_stateful_set_spec_local_var->replicas = replicas; @@ -41,6 +43,10 @@ void v1_stateful_set_spec_free(v1_stateful_set_spec_t *v1_stateful_set_spec) { return ; } listEntry_t *listEntry; + if (v1_stateful_set_spec->ordinals) { + v1_stateful_set_ordinals_free(v1_stateful_set_spec->ordinals); + v1_stateful_set_spec->ordinals = NULL; + } if (v1_stateful_set_spec->persistent_volume_claim_retention_policy) { v1_stateful_set_persistent_volume_claim_retention_policy_free(v1_stateful_set_spec->persistent_volume_claim_retention_policy); v1_stateful_set_spec->persistent_volume_claim_retention_policy = NULL; @@ -86,6 +92,19 @@ cJSON *v1_stateful_set_spec_convertToJSON(v1_stateful_set_spec_t *v1_stateful_se } + // v1_stateful_set_spec->ordinals + if(v1_stateful_set_spec->ordinals) { + cJSON *ordinals_local_JSON = v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_spec->ordinals); + if(ordinals_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "ordinals", ordinals_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + // v1_stateful_set_spec->persistent_volume_claim_retention_policy if(v1_stateful_set_spec->persistent_volume_claim_retention_policy) { cJSON *persistent_volume_claim_retention_policy_local_JSON = v1_stateful_set_persistent_volume_claim_retention_policy_convertToJSON(v1_stateful_set_spec->persistent_volume_claim_retention_policy); @@ -204,6 +223,9 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se v1_stateful_set_spec_t *v1_stateful_set_spec_local_var = NULL; + // define the local variable for v1_stateful_set_spec->ordinals + v1_stateful_set_ordinals_t *ordinals_local_nonprim = NULL; + // define the local variable for v1_stateful_set_spec->persistent_volume_claim_retention_policy v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy_local_nonprim = NULL; @@ -228,6 +250,12 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se } } + // v1_stateful_set_spec->ordinals + cJSON *ordinals = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_specJSON, "ordinals"); + if (ordinals) { + ordinals_local_nonprim = v1_stateful_set_ordinals_parseFromJSON(ordinals); //nonprimitive + } + // v1_stateful_set_spec->persistent_volume_claim_retention_policy cJSON *persistent_volume_claim_retention_policy = cJSON_GetObjectItemCaseSensitive(v1_stateful_set_specJSON, "persistentVolumeClaimRetentionPolicy"); if (persistent_volume_claim_retention_policy) { @@ -321,6 +349,7 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se v1_stateful_set_spec_local_var = v1_stateful_set_spec_create ( min_ready_seconds ? min_ready_seconds->valuedouble : 0, + ordinals ? ordinals_local_nonprim : NULL, persistent_volume_claim_retention_policy ? persistent_volume_claim_retention_policy_local_nonprim : NULL, pod_management_policy && !cJSON_IsNull(pod_management_policy) ? strdup(pod_management_policy->valuestring) : NULL, replicas ? replicas->valuedouble : 0, @@ -334,6 +363,10 @@ v1_stateful_set_spec_t *v1_stateful_set_spec_parseFromJSON(cJSON *v1_stateful_se return v1_stateful_set_spec_local_var; end: + if (ordinals_local_nonprim) { + v1_stateful_set_ordinals_free(ordinals_local_nonprim); + ordinals_local_nonprim = NULL; + } if (persistent_volume_claim_retention_policy_local_nonprim) { v1_stateful_set_persistent_volume_claim_retention_policy_free(persistent_volume_claim_retention_policy_local_nonprim); persistent_volume_claim_retention_policy_local_nonprim = NULL; diff --git a/kubernetes/model/v1_stateful_set_spec.h b/kubernetes/model/v1_stateful_set_spec.h index 0c1bb64..2019bec 100644 --- a/kubernetes/model/v1_stateful_set_spec.h +++ b/kubernetes/model/v1_stateful_set_spec.h @@ -18,6 +18,7 @@ typedef struct v1_stateful_set_spec_t v1_stateful_set_spec_t; #include "v1_label_selector.h" #include "v1_persistent_volume_claim.h" #include "v1_pod_template_spec.h" +#include "v1_stateful_set_ordinals.h" #include "v1_stateful_set_persistent_volume_claim_retention_policy.h" #include "v1_stateful_set_update_strategy.h" @@ -25,6 +26,7 @@ typedef struct v1_stateful_set_spec_t v1_stateful_set_spec_t; typedef struct v1_stateful_set_spec_t { int min_ready_seconds; //numeric + struct v1_stateful_set_ordinals_t *ordinals; //model struct v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy; //model char *pod_management_policy; // string int replicas; //numeric @@ -39,6 +41,7 @@ typedef struct v1_stateful_set_spec_t { v1_stateful_set_spec_t *v1_stateful_set_spec_create( int min_ready_seconds, + v1_stateful_set_ordinals_t *ordinals, v1_stateful_set_persistent_volume_claim_retention_policy_t *persistent_volume_claim_retention_policy, char *pod_management_policy, int replicas, diff --git a/kubernetes/model/v1_typed_object_reference.c b/kubernetes/model/v1_typed_object_reference.c new file mode 100644 index 0000000..ec98bdb --- /dev/null +++ b/kubernetes/model/v1_typed_object_reference.c @@ -0,0 +1,153 @@ +#include +#include +#include +#include "v1_typed_object_reference.h" + + + +v1_typed_object_reference_t *v1_typed_object_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace + ) { + v1_typed_object_reference_t *v1_typed_object_reference_local_var = malloc(sizeof(v1_typed_object_reference_t)); + if (!v1_typed_object_reference_local_var) { + return NULL; + } + v1_typed_object_reference_local_var->api_group = api_group; + v1_typed_object_reference_local_var->kind = kind; + v1_typed_object_reference_local_var->name = name; + v1_typed_object_reference_local_var->_namespace = _namespace; + + return v1_typed_object_reference_local_var; +} + + +void v1_typed_object_reference_free(v1_typed_object_reference_t *v1_typed_object_reference) { + if(NULL == v1_typed_object_reference){ + return ; + } + listEntry_t *listEntry; + if (v1_typed_object_reference->api_group) { + free(v1_typed_object_reference->api_group); + v1_typed_object_reference->api_group = NULL; + } + if (v1_typed_object_reference->kind) { + free(v1_typed_object_reference->kind); + v1_typed_object_reference->kind = NULL; + } + if (v1_typed_object_reference->name) { + free(v1_typed_object_reference->name); + v1_typed_object_reference->name = NULL; + } + if (v1_typed_object_reference->_namespace) { + free(v1_typed_object_reference->_namespace); + v1_typed_object_reference->_namespace = NULL; + } + free(v1_typed_object_reference); +} + +cJSON *v1_typed_object_reference_convertToJSON(v1_typed_object_reference_t *v1_typed_object_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1_typed_object_reference->api_group + if(v1_typed_object_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1_typed_object_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1_typed_object_reference->kind + if (!v1_typed_object_reference->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1_typed_object_reference->kind) == NULL) { + goto fail; //String + } + + + // v1_typed_object_reference->name + if (!v1_typed_object_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1_typed_object_reference->name) == NULL) { + goto fail; //String + } + + + // v1_typed_object_reference->_namespace + if(v1_typed_object_reference->_namespace) { + if(cJSON_AddStringToObject(item, "namespace", v1_typed_object_reference->_namespace) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1_typed_object_reference_t *v1_typed_object_reference_parseFromJSON(cJSON *v1_typed_object_referenceJSON){ + + v1_typed_object_reference_t *v1_typed_object_reference_local_var = NULL; + + // v1_typed_object_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1_typed_object_reference->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1_typed_object_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1_typed_object_reference->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1_typed_object_referenceJSON, "namespace"); + if (_namespace) { + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) + { + goto end; //String + } + } + + + v1_typed_object_reference_local_var = v1_typed_object_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(kind->valuestring), + strdup(name->valuestring), + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL + ); + + return v1_typed_object_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1_typed_object_reference.h b/kubernetes/model/v1_typed_object_reference.h new file mode 100644 index 0000000..0536d07 --- /dev/null +++ b/kubernetes/model/v1_typed_object_reference.h @@ -0,0 +1,43 @@ +/* + * v1_typed_object_reference.h + * + * + */ + +#ifndef _v1_typed_object_reference_H_ +#define _v1_typed_object_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1_typed_object_reference_t v1_typed_object_reference_t; + + + + +typedef struct v1_typed_object_reference_t { + char *api_group; // string + char *kind; // string + char *name; // string + char *_namespace; // string + +} v1_typed_object_reference_t; + +v1_typed_object_reference_t *v1_typed_object_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace +); + +void v1_typed_object_reference_free(v1_typed_object_reference_t *v1_typed_object_reference); + +v1_typed_object_reference_t *v1_typed_object_reference_parseFromJSON(cJSON *v1_typed_object_referenceJSON); + +cJSON *v1_typed_object_reference_convertToJSON(v1_typed_object_reference_t *v1_typed_object_reference); + +#endif /* _v1_typed_object_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_allocation_result.c b/kubernetes/model/v1alpha1_allocation_result.c new file mode 100644 index 0000000..be83362 --- /dev/null +++ b/kubernetes/model/v1alpha1_allocation_result.c @@ -0,0 +1,126 @@ +#include +#include +#include +#include "v1alpha1_allocation_result.h" + + + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_create( + v1_node_selector_t *available_on_nodes, + char *resource_handle, + int shareable + ) { + v1alpha1_allocation_result_t *v1alpha1_allocation_result_local_var = malloc(sizeof(v1alpha1_allocation_result_t)); + if (!v1alpha1_allocation_result_local_var) { + return NULL; + } + v1alpha1_allocation_result_local_var->available_on_nodes = available_on_nodes; + v1alpha1_allocation_result_local_var->resource_handle = resource_handle; + v1alpha1_allocation_result_local_var->shareable = shareable; + + return v1alpha1_allocation_result_local_var; +} + + +void v1alpha1_allocation_result_free(v1alpha1_allocation_result_t *v1alpha1_allocation_result) { + if(NULL == v1alpha1_allocation_result){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_allocation_result->available_on_nodes) { + v1_node_selector_free(v1alpha1_allocation_result->available_on_nodes); + v1alpha1_allocation_result->available_on_nodes = NULL; + } + if (v1alpha1_allocation_result->resource_handle) { + free(v1alpha1_allocation_result->resource_handle); + v1alpha1_allocation_result->resource_handle = NULL; + } + free(v1alpha1_allocation_result); +} + +cJSON *v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_t *v1alpha1_allocation_result) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_allocation_result->available_on_nodes + if(v1alpha1_allocation_result->available_on_nodes) { + cJSON *available_on_nodes_local_JSON = v1_node_selector_convertToJSON(v1alpha1_allocation_result->available_on_nodes); + if(available_on_nodes_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "availableOnNodes", available_on_nodes_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_allocation_result->resource_handle + if(v1alpha1_allocation_result->resource_handle) { + if(cJSON_AddStringToObject(item, "resourceHandle", v1alpha1_allocation_result->resource_handle) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_allocation_result->shareable + if(v1alpha1_allocation_result->shareable) { + if(cJSON_AddBoolToObject(item, "shareable", v1alpha1_allocation_result->shareable) == NULL) { + goto fail; //Bool + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_parseFromJSON(cJSON *v1alpha1_allocation_resultJSON){ + + v1alpha1_allocation_result_t *v1alpha1_allocation_result_local_var = NULL; + + // define the local variable for v1alpha1_allocation_result->available_on_nodes + v1_node_selector_t *available_on_nodes_local_nonprim = NULL; + + // v1alpha1_allocation_result->available_on_nodes + cJSON *available_on_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_allocation_resultJSON, "availableOnNodes"); + if (available_on_nodes) { + available_on_nodes_local_nonprim = v1_node_selector_parseFromJSON(available_on_nodes); //nonprimitive + } + + // v1alpha1_allocation_result->resource_handle + cJSON *resource_handle = cJSON_GetObjectItemCaseSensitive(v1alpha1_allocation_resultJSON, "resourceHandle"); + if (resource_handle) { + if(!cJSON_IsString(resource_handle) && !cJSON_IsNull(resource_handle)) + { + goto end; //String + } + } + + // v1alpha1_allocation_result->shareable + cJSON *shareable = cJSON_GetObjectItemCaseSensitive(v1alpha1_allocation_resultJSON, "shareable"); + if (shareable) { + if(!cJSON_IsBool(shareable)) + { + goto end; //Bool + } + } + + + v1alpha1_allocation_result_local_var = v1alpha1_allocation_result_create ( + available_on_nodes ? available_on_nodes_local_nonprim : NULL, + resource_handle && !cJSON_IsNull(resource_handle) ? strdup(resource_handle->valuestring) : NULL, + shareable ? shareable->valueint : 0 + ); + + return v1alpha1_allocation_result_local_var; +end: + if (available_on_nodes_local_nonprim) { + v1_node_selector_free(available_on_nodes_local_nonprim); + available_on_nodes_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_allocation_result.h b/kubernetes/model/v1alpha1_allocation_result.h new file mode 100644 index 0000000..d5addb9 --- /dev/null +++ b/kubernetes/model/v1alpha1_allocation_result.h @@ -0,0 +1,42 @@ +/* + * v1alpha1_allocation_result.h + * + * AllocationResult contains attributed of an allocated resource. + */ + +#ifndef _v1alpha1_allocation_result_H_ +#define _v1alpha1_allocation_result_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_allocation_result_t v1alpha1_allocation_result_t; + +#include "v1_node_selector.h" + + + +typedef struct v1alpha1_allocation_result_t { + struct v1_node_selector_t *available_on_nodes; //model + char *resource_handle; // string + int shareable; //boolean + +} v1alpha1_allocation_result_t; + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_create( + v1_node_selector_t *available_on_nodes, + char *resource_handle, + int shareable +); + +void v1alpha1_allocation_result_free(v1alpha1_allocation_result_t *v1alpha1_allocation_result); + +v1alpha1_allocation_result_t *v1alpha1_allocation_result_parseFromJSON(cJSON *v1alpha1_allocation_resultJSON); + +cJSON *v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_t *v1alpha1_allocation_result); + +#endif /* _v1alpha1_allocation_result_H_ */ + diff --git a/kubernetes/model/v1alpha1_match_resources.c b/kubernetes/model/v1alpha1_match_resources.c new file mode 100644 index 0000000..e363d23 --- /dev/null +++ b/kubernetes/model/v1alpha1_match_resources.c @@ -0,0 +1,265 @@ +#include +#include +#include +#include "v1alpha1_match_resources.h" + + + +v1alpha1_match_resources_t *v1alpha1_match_resources_create( + list_t *exclude_resource_rules, + char *match_policy, + v1_label_selector_t *namespace_selector, + v1_label_selector_t *object_selector, + list_t *resource_rules + ) { + v1alpha1_match_resources_t *v1alpha1_match_resources_local_var = malloc(sizeof(v1alpha1_match_resources_t)); + if (!v1alpha1_match_resources_local_var) { + return NULL; + } + v1alpha1_match_resources_local_var->exclude_resource_rules = exclude_resource_rules; + v1alpha1_match_resources_local_var->match_policy = match_policy; + v1alpha1_match_resources_local_var->namespace_selector = namespace_selector; + v1alpha1_match_resources_local_var->object_selector = object_selector; + v1alpha1_match_resources_local_var->resource_rules = resource_rules; + + return v1alpha1_match_resources_local_var; +} + + +void v1alpha1_match_resources_free(v1alpha1_match_resources_t *v1alpha1_match_resources) { + if(NULL == v1alpha1_match_resources){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_match_resources->exclude_resource_rules) { + list_ForEach(listEntry, v1alpha1_match_resources->exclude_resource_rules) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + } + list_freeList(v1alpha1_match_resources->exclude_resource_rules); + v1alpha1_match_resources->exclude_resource_rules = NULL; + } + if (v1alpha1_match_resources->match_policy) { + free(v1alpha1_match_resources->match_policy); + v1alpha1_match_resources->match_policy = NULL; + } + if (v1alpha1_match_resources->namespace_selector) { + v1_label_selector_free(v1alpha1_match_resources->namespace_selector); + v1alpha1_match_resources->namespace_selector = NULL; + } + if (v1alpha1_match_resources->object_selector) { + v1_label_selector_free(v1alpha1_match_resources->object_selector); + v1alpha1_match_resources->object_selector = NULL; + } + if (v1alpha1_match_resources->resource_rules) { + list_ForEach(listEntry, v1alpha1_match_resources->resource_rules) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + } + list_freeList(v1alpha1_match_resources->resource_rules); + v1alpha1_match_resources->resource_rules = NULL; + } + free(v1alpha1_match_resources); +} + +cJSON *v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_t *v1alpha1_match_resources) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_match_resources->exclude_resource_rules + if(v1alpha1_match_resources->exclude_resource_rules) { + cJSON *exclude_resource_rules = cJSON_AddArrayToObject(item, "excludeResourceRules"); + if(exclude_resource_rules == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *exclude_resource_rulesListEntry; + if (v1alpha1_match_resources->exclude_resource_rules) { + list_ForEach(exclude_resource_rulesListEntry, v1alpha1_match_resources->exclude_resource_rules) { + cJSON *itemLocal = v1alpha1_named_rule_with_operations_convertToJSON(exclude_resource_rulesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(exclude_resource_rules, itemLocal); + } + } + } + + + // v1alpha1_match_resources->match_policy + if(v1alpha1_match_resources->match_policy) { + if(cJSON_AddStringToObject(item, "matchPolicy", v1alpha1_match_resources->match_policy) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_match_resources->namespace_selector + if(v1alpha1_match_resources->namespace_selector) { + cJSON *namespace_selector_local_JSON = v1_label_selector_convertToJSON(v1alpha1_match_resources->namespace_selector); + if(namespace_selector_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "namespaceSelector", namespace_selector_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_match_resources->object_selector + if(v1alpha1_match_resources->object_selector) { + cJSON *object_selector_local_JSON = v1_label_selector_convertToJSON(v1alpha1_match_resources->object_selector); + if(object_selector_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "objectSelector", object_selector_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_match_resources->resource_rules + if(v1alpha1_match_resources->resource_rules) { + cJSON *resource_rules = cJSON_AddArrayToObject(item, "resourceRules"); + if(resource_rules == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *resource_rulesListEntry; + if (v1alpha1_match_resources->resource_rules) { + list_ForEach(resource_rulesListEntry, v1alpha1_match_resources->resource_rules) { + cJSON *itemLocal = v1alpha1_named_rule_with_operations_convertToJSON(resource_rulesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(resource_rules, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_match_resources_t *v1alpha1_match_resources_parseFromJSON(cJSON *v1alpha1_match_resourcesJSON){ + + v1alpha1_match_resources_t *v1alpha1_match_resources_local_var = NULL; + + // define the local list for v1alpha1_match_resources->exclude_resource_rules + list_t *exclude_resource_rulesList = NULL; + + // define the local variable for v1alpha1_match_resources->namespace_selector + v1_label_selector_t *namespace_selector_local_nonprim = NULL; + + // define the local variable for v1alpha1_match_resources->object_selector + v1_label_selector_t *object_selector_local_nonprim = NULL; + + // define the local list for v1alpha1_match_resources->resource_rules + list_t *resource_rulesList = NULL; + + // v1alpha1_match_resources->exclude_resource_rules + cJSON *exclude_resource_rules = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "excludeResourceRules"); + if (exclude_resource_rules) { + cJSON *exclude_resource_rules_local_nonprimitive = NULL; + if(!cJSON_IsArray(exclude_resource_rules)){ + goto end; //nonprimitive container + } + + exclude_resource_rulesList = list_createList(); + + cJSON_ArrayForEach(exclude_resource_rules_local_nonprimitive,exclude_resource_rules ) + { + if(!cJSON_IsObject(exclude_resource_rules_local_nonprimitive)){ + goto end; + } + v1alpha1_named_rule_with_operations_t *exclude_resource_rulesItem = v1alpha1_named_rule_with_operations_parseFromJSON(exclude_resource_rules_local_nonprimitive); + + list_addElement(exclude_resource_rulesList, exclude_resource_rulesItem); + } + } + + // v1alpha1_match_resources->match_policy + cJSON *match_policy = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "matchPolicy"); + if (match_policy) { + if(!cJSON_IsString(match_policy) && !cJSON_IsNull(match_policy)) + { + goto end; //String + } + } + + // v1alpha1_match_resources->namespace_selector + cJSON *namespace_selector = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "namespaceSelector"); + if (namespace_selector) { + namespace_selector_local_nonprim = v1_label_selector_parseFromJSON(namespace_selector); //nonprimitive + } + + // v1alpha1_match_resources->object_selector + cJSON *object_selector = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "objectSelector"); + if (object_selector) { + object_selector_local_nonprim = v1_label_selector_parseFromJSON(object_selector); //nonprimitive + } + + // v1alpha1_match_resources->resource_rules + cJSON *resource_rules = cJSON_GetObjectItemCaseSensitive(v1alpha1_match_resourcesJSON, "resourceRules"); + if (resource_rules) { + cJSON *resource_rules_local_nonprimitive = NULL; + if(!cJSON_IsArray(resource_rules)){ + goto end; //nonprimitive container + } + + resource_rulesList = list_createList(); + + cJSON_ArrayForEach(resource_rules_local_nonprimitive,resource_rules ) + { + if(!cJSON_IsObject(resource_rules_local_nonprimitive)){ + goto end; + } + v1alpha1_named_rule_with_operations_t *resource_rulesItem = v1alpha1_named_rule_with_operations_parseFromJSON(resource_rules_local_nonprimitive); + + list_addElement(resource_rulesList, resource_rulesItem); + } + } + + + v1alpha1_match_resources_local_var = v1alpha1_match_resources_create ( + exclude_resource_rules ? exclude_resource_rulesList : NULL, + match_policy && !cJSON_IsNull(match_policy) ? strdup(match_policy->valuestring) : NULL, + namespace_selector ? namespace_selector_local_nonprim : NULL, + object_selector ? object_selector_local_nonprim : NULL, + resource_rules ? resource_rulesList : NULL + ); + + return v1alpha1_match_resources_local_var; +end: + if (exclude_resource_rulesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, exclude_resource_rulesList) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(exclude_resource_rulesList); + exclude_resource_rulesList = NULL; + } + if (namespace_selector_local_nonprim) { + v1_label_selector_free(namespace_selector_local_nonprim); + namespace_selector_local_nonprim = NULL; + } + if (object_selector_local_nonprim) { + v1_label_selector_free(object_selector_local_nonprim); + object_selector_local_nonprim = NULL; + } + if (resource_rulesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_rulesList) { + v1alpha1_named_rule_with_operations_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_rulesList); + resource_rulesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_match_resources.h b/kubernetes/model/v1alpha1_match_resources.h new file mode 100644 index 0000000..168c70d --- /dev/null +++ b/kubernetes/model/v1alpha1_match_resources.h @@ -0,0 +1,47 @@ +/* + * v1alpha1_match_resources.h + * + * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + */ + +#ifndef _v1alpha1_match_resources_H_ +#define _v1alpha1_match_resources_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_match_resources_t v1alpha1_match_resources_t; + +#include "v1_label_selector.h" +#include "v1alpha1_named_rule_with_operations.h" + + + +typedef struct v1alpha1_match_resources_t { + list_t *exclude_resource_rules; //nonprimitive container + char *match_policy; // string + struct v1_label_selector_t *namespace_selector; //model + struct v1_label_selector_t *object_selector; //model + list_t *resource_rules; //nonprimitive container + +} v1alpha1_match_resources_t; + +v1alpha1_match_resources_t *v1alpha1_match_resources_create( + list_t *exclude_resource_rules, + char *match_policy, + v1_label_selector_t *namespace_selector, + v1_label_selector_t *object_selector, + list_t *resource_rules +); + +void v1alpha1_match_resources_free(v1alpha1_match_resources_t *v1alpha1_match_resources); + +v1alpha1_match_resources_t *v1alpha1_match_resources_parseFromJSON(cJSON *v1alpha1_match_resourcesJSON); + +cJSON *v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_t *v1alpha1_match_resources); + +#endif /* _v1alpha1_match_resources_H_ */ + diff --git a/kubernetes/model/v1alpha1_named_rule_with_operations.c b/kubernetes/model/v1alpha1_named_rule_with_operations.c new file mode 100644 index 0000000..014667b --- /dev/null +++ b/kubernetes/model/v1alpha1_named_rule_with_operations.c @@ -0,0 +1,363 @@ +#include +#include +#include +#include "v1alpha1_named_rule_with_operations.h" + + + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_create( + list_t *api_groups, + list_t *api_versions, + list_t *operations, + list_t *resource_names, + list_t *resources, + char *scope + ) { + v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_local_var = malloc(sizeof(v1alpha1_named_rule_with_operations_t)); + if (!v1alpha1_named_rule_with_operations_local_var) { + return NULL; + } + v1alpha1_named_rule_with_operations_local_var->api_groups = api_groups; + v1alpha1_named_rule_with_operations_local_var->api_versions = api_versions; + v1alpha1_named_rule_with_operations_local_var->operations = operations; + v1alpha1_named_rule_with_operations_local_var->resource_names = resource_names; + v1alpha1_named_rule_with_operations_local_var->resources = resources; + v1alpha1_named_rule_with_operations_local_var->scope = scope; + + return v1alpha1_named_rule_with_operations_local_var; +} + + +void v1alpha1_named_rule_with_operations_free(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations) { + if(NULL == v1alpha1_named_rule_with_operations){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_named_rule_with_operations->api_groups) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->api_groups) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->api_groups); + v1alpha1_named_rule_with_operations->api_groups = NULL; + } + if (v1alpha1_named_rule_with_operations->api_versions) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->api_versions) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->api_versions); + v1alpha1_named_rule_with_operations->api_versions = NULL; + } + if (v1alpha1_named_rule_with_operations->operations) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->operations) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->operations); + v1alpha1_named_rule_with_operations->operations = NULL; + } + if (v1alpha1_named_rule_with_operations->resource_names) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->resource_names) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->resource_names); + v1alpha1_named_rule_with_operations->resource_names = NULL; + } + if (v1alpha1_named_rule_with_operations->resources) { + list_ForEach(listEntry, v1alpha1_named_rule_with_operations->resources) { + free(listEntry->data); + } + list_freeList(v1alpha1_named_rule_with_operations->resources); + v1alpha1_named_rule_with_operations->resources = NULL; + } + if (v1alpha1_named_rule_with_operations->scope) { + free(v1alpha1_named_rule_with_operations->scope); + v1alpha1_named_rule_with_operations->scope = NULL; + } + free(v1alpha1_named_rule_with_operations); +} + +cJSON *v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_named_rule_with_operations->api_groups + if(v1alpha1_named_rule_with_operations->api_groups) { + cJSON *api_groups = cJSON_AddArrayToObject(item, "apiGroups"); + if(api_groups == NULL) { + goto fail; //primitive container + } + + listEntry_t *api_groupsListEntry; + list_ForEach(api_groupsListEntry, v1alpha1_named_rule_with_operations->api_groups) { + if(cJSON_AddStringToObject(api_groups, "", (char*)api_groupsListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->api_versions + if(v1alpha1_named_rule_with_operations->api_versions) { + cJSON *api_versions = cJSON_AddArrayToObject(item, "apiVersions"); + if(api_versions == NULL) { + goto fail; //primitive container + } + + listEntry_t *api_versionsListEntry; + list_ForEach(api_versionsListEntry, v1alpha1_named_rule_with_operations->api_versions) { + if(cJSON_AddStringToObject(api_versions, "", (char*)api_versionsListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->operations + if(v1alpha1_named_rule_with_operations->operations) { + cJSON *operations = cJSON_AddArrayToObject(item, "operations"); + if(operations == NULL) { + goto fail; //primitive container + } + + listEntry_t *operationsListEntry; + list_ForEach(operationsListEntry, v1alpha1_named_rule_with_operations->operations) { + if(cJSON_AddStringToObject(operations, "", (char*)operationsListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->resource_names + if(v1alpha1_named_rule_with_operations->resource_names) { + cJSON *resource_names = cJSON_AddArrayToObject(item, "resourceNames"); + if(resource_names == NULL) { + goto fail; //primitive container + } + + listEntry_t *resource_namesListEntry; + list_ForEach(resource_namesListEntry, v1alpha1_named_rule_with_operations->resource_names) { + if(cJSON_AddStringToObject(resource_names, "", (char*)resource_namesListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->resources + if(v1alpha1_named_rule_with_operations->resources) { + cJSON *resources = cJSON_AddArrayToObject(item, "resources"); + if(resources == NULL) { + goto fail; //primitive container + } + + listEntry_t *resourcesListEntry; + list_ForEach(resourcesListEntry, v1alpha1_named_rule_with_operations->resources) { + if(cJSON_AddStringToObject(resources, "", (char*)resourcesListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_named_rule_with_operations->scope + if(v1alpha1_named_rule_with_operations->scope) { + if(cJSON_AddStringToObject(item, "scope", v1alpha1_named_rule_with_operations->scope) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_parseFromJSON(cJSON *v1alpha1_named_rule_with_operationsJSON){ + + v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_local_var = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->api_groups + list_t *api_groupsList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->api_versions + list_t *api_versionsList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->operations + list_t *operationsList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->resource_names + list_t *resource_namesList = NULL; + + // define the local list for v1alpha1_named_rule_with_operations->resources + list_t *resourcesList = NULL; + + // v1alpha1_named_rule_with_operations->api_groups + cJSON *api_groups = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "apiGroups"); + if (api_groups) { + cJSON *api_groups_local = NULL; + if(!cJSON_IsArray(api_groups)) { + goto end;//primitive container + } + api_groupsList = list_createList(); + + cJSON_ArrayForEach(api_groups_local, api_groups) + { + if(!cJSON_IsString(api_groups_local)) + { + goto end; + } + list_addElement(api_groupsList , strdup(api_groups_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->api_versions + cJSON *api_versions = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "apiVersions"); + if (api_versions) { + cJSON *api_versions_local = NULL; + if(!cJSON_IsArray(api_versions)) { + goto end;//primitive container + } + api_versionsList = list_createList(); + + cJSON_ArrayForEach(api_versions_local, api_versions) + { + if(!cJSON_IsString(api_versions_local)) + { + goto end; + } + list_addElement(api_versionsList , strdup(api_versions_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->operations + cJSON *operations = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "operations"); + if (operations) { + cJSON *operations_local = NULL; + if(!cJSON_IsArray(operations)) { + goto end;//primitive container + } + operationsList = list_createList(); + + cJSON_ArrayForEach(operations_local, operations) + { + if(!cJSON_IsString(operations_local)) + { + goto end; + } + list_addElement(operationsList , strdup(operations_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->resource_names + cJSON *resource_names = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "resourceNames"); + if (resource_names) { + cJSON *resource_names_local = NULL; + if(!cJSON_IsArray(resource_names)) { + goto end;//primitive container + } + resource_namesList = list_createList(); + + cJSON_ArrayForEach(resource_names_local, resource_names) + { + if(!cJSON_IsString(resource_names_local)) + { + goto end; + } + list_addElement(resource_namesList , strdup(resource_names_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->resources + cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "resources"); + if (resources) { + cJSON *resources_local = NULL; + if(!cJSON_IsArray(resources)) { + goto end;//primitive container + } + resourcesList = list_createList(); + + cJSON_ArrayForEach(resources_local, resources) + { + if(!cJSON_IsString(resources_local)) + { + goto end; + } + list_addElement(resourcesList , strdup(resources_local->valuestring)); + } + } + + // v1alpha1_named_rule_with_operations->scope + cJSON *scope = cJSON_GetObjectItemCaseSensitive(v1alpha1_named_rule_with_operationsJSON, "scope"); + if (scope) { + if(!cJSON_IsString(scope) && !cJSON_IsNull(scope)) + { + goto end; //String + } + } + + + v1alpha1_named_rule_with_operations_local_var = v1alpha1_named_rule_with_operations_create ( + api_groups ? api_groupsList : NULL, + api_versions ? api_versionsList : NULL, + operations ? operationsList : NULL, + resource_names ? resource_namesList : NULL, + resources ? resourcesList : NULL, + scope && !cJSON_IsNull(scope) ? strdup(scope->valuestring) : NULL + ); + + return v1alpha1_named_rule_with_operations_local_var; +end: + if (api_groupsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, api_groupsList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(api_groupsList); + api_groupsList = NULL; + } + if (api_versionsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, api_versionsList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(api_versionsList); + api_versionsList = NULL; + } + if (operationsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, operationsList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(operationsList); + operationsList = NULL; + } + if (resource_namesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_namesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_namesList); + resource_namesList = NULL; + } + if (resourcesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resourcesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resourcesList); + resourcesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_named_rule_with_operations.h b/kubernetes/model/v1alpha1_named_rule_with_operations.h new file mode 100644 index 0000000..8138d79 --- /dev/null +++ b/kubernetes/model/v1alpha1_named_rule_with_operations.h @@ -0,0 +1,47 @@ +/* + * v1alpha1_named_rule_with_operations.h + * + * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. + */ + +#ifndef _v1alpha1_named_rule_with_operations_H_ +#define _v1alpha1_named_rule_with_operations_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_named_rule_with_operations_t v1alpha1_named_rule_with_operations_t; + + + + +typedef struct v1alpha1_named_rule_with_operations_t { + list_t *api_groups; //primitive container + list_t *api_versions; //primitive container + list_t *operations; //primitive container + list_t *resource_names; //primitive container + list_t *resources; //primitive container + char *scope; // string + +} v1alpha1_named_rule_with_operations_t; + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_create( + list_t *api_groups, + list_t *api_versions, + list_t *operations, + list_t *resource_names, + list_t *resources, + char *scope +); + +void v1alpha1_named_rule_with_operations_free(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations); + +v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations_parseFromJSON(cJSON *v1alpha1_named_rule_with_operationsJSON); + +cJSON *v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_t *v1alpha1_named_rule_with_operations); + +#endif /* _v1alpha1_named_rule_with_operations_H_ */ + diff --git a/kubernetes/model/v1alpha1_param_kind.c b/kubernetes/model/v1alpha1_param_kind.c new file mode 100644 index 0000000..a25f8eb --- /dev/null +++ b/kubernetes/model/v1alpha1_param_kind.c @@ -0,0 +1,97 @@ +#include +#include +#include +#include "v1alpha1_param_kind.h" + + + +v1alpha1_param_kind_t *v1alpha1_param_kind_create( + char *api_version, + char *kind + ) { + v1alpha1_param_kind_t *v1alpha1_param_kind_local_var = malloc(sizeof(v1alpha1_param_kind_t)); + if (!v1alpha1_param_kind_local_var) { + return NULL; + } + v1alpha1_param_kind_local_var->api_version = api_version; + v1alpha1_param_kind_local_var->kind = kind; + + return v1alpha1_param_kind_local_var; +} + + +void v1alpha1_param_kind_free(v1alpha1_param_kind_t *v1alpha1_param_kind) { + if(NULL == v1alpha1_param_kind){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_param_kind->api_version) { + free(v1alpha1_param_kind->api_version); + v1alpha1_param_kind->api_version = NULL; + } + if (v1alpha1_param_kind->kind) { + free(v1alpha1_param_kind->kind); + v1alpha1_param_kind->kind = NULL; + } + free(v1alpha1_param_kind); +} + +cJSON *v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_t *v1alpha1_param_kind) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_param_kind->api_version + if(v1alpha1_param_kind->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_param_kind->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_param_kind->kind + if(v1alpha1_param_kind->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_param_kind->kind) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_param_kind_t *v1alpha1_param_kind_parseFromJSON(cJSON *v1alpha1_param_kindJSON){ + + v1alpha1_param_kind_t *v1alpha1_param_kind_local_var = NULL; + + // v1alpha1_param_kind->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_kindJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_param_kind->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_kindJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + + v1alpha1_param_kind_local_var = v1alpha1_param_kind_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL + ); + + return v1alpha1_param_kind_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_param_kind.h b/kubernetes/model/v1alpha1_param_kind.h new file mode 100644 index 0000000..4fb04f4 --- /dev/null +++ b/kubernetes/model/v1alpha1_param_kind.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_param_kind.h + * + * ParamKind is a tuple of Group Kind and Version. + */ + +#ifndef _v1alpha1_param_kind_H_ +#define _v1alpha1_param_kind_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_param_kind_t v1alpha1_param_kind_t; + + + + +typedef struct v1alpha1_param_kind_t { + char *api_version; // string + char *kind; // string + +} v1alpha1_param_kind_t; + +v1alpha1_param_kind_t *v1alpha1_param_kind_create( + char *api_version, + char *kind +); + +void v1alpha1_param_kind_free(v1alpha1_param_kind_t *v1alpha1_param_kind); + +v1alpha1_param_kind_t *v1alpha1_param_kind_parseFromJSON(cJSON *v1alpha1_param_kindJSON); + +cJSON *v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_t *v1alpha1_param_kind); + +#endif /* _v1alpha1_param_kind_H_ */ + diff --git a/kubernetes/model/v1alpha1_param_ref.c b/kubernetes/model/v1alpha1_param_ref.c new file mode 100644 index 0000000..a78b583 --- /dev/null +++ b/kubernetes/model/v1alpha1_param_ref.c @@ -0,0 +1,97 @@ +#include +#include +#include +#include "v1alpha1_param_ref.h" + + + +v1alpha1_param_ref_t *v1alpha1_param_ref_create( + char *name, + char *_namespace + ) { + v1alpha1_param_ref_t *v1alpha1_param_ref_local_var = malloc(sizeof(v1alpha1_param_ref_t)); + if (!v1alpha1_param_ref_local_var) { + return NULL; + } + v1alpha1_param_ref_local_var->name = name; + v1alpha1_param_ref_local_var->_namespace = _namespace; + + return v1alpha1_param_ref_local_var; +} + + +void v1alpha1_param_ref_free(v1alpha1_param_ref_t *v1alpha1_param_ref) { + if(NULL == v1alpha1_param_ref){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_param_ref->name) { + free(v1alpha1_param_ref->name); + v1alpha1_param_ref->name = NULL; + } + if (v1alpha1_param_ref->_namespace) { + free(v1alpha1_param_ref->_namespace); + v1alpha1_param_ref->_namespace = NULL; + } + free(v1alpha1_param_ref); +} + +cJSON *v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_t *v1alpha1_param_ref) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_param_ref->name + if(v1alpha1_param_ref->name) { + if(cJSON_AddStringToObject(item, "name", v1alpha1_param_ref->name) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_param_ref->_namespace + if(v1alpha1_param_ref->_namespace) { + if(cJSON_AddStringToObject(item, "namespace", v1alpha1_param_ref->_namespace) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_param_ref_t *v1alpha1_param_ref_parseFromJSON(cJSON *v1alpha1_param_refJSON){ + + v1alpha1_param_ref_t *v1alpha1_param_ref_local_var = NULL; + + // v1alpha1_param_ref->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_refJSON, "name"); + if (name) { + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) + { + goto end; //String + } + } + + // v1alpha1_param_ref->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1alpha1_param_refJSON, "namespace"); + if (_namespace) { + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) + { + goto end; //String + } + } + + + v1alpha1_param_ref_local_var = v1alpha1_param_ref_create ( + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL + ); + + return v1alpha1_param_ref_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_param_ref.h b/kubernetes/model/v1alpha1_param_ref.h new file mode 100644 index 0000000..18614dd --- /dev/null +++ b/kubernetes/model/v1alpha1_param_ref.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_param_ref.h + * + * ParamRef references a parameter resource + */ + +#ifndef _v1alpha1_param_ref_H_ +#define _v1alpha1_param_ref_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_param_ref_t v1alpha1_param_ref_t; + + + + +typedef struct v1alpha1_param_ref_t { + char *name; // string + char *_namespace; // string + +} v1alpha1_param_ref_t; + +v1alpha1_param_ref_t *v1alpha1_param_ref_create( + char *name, + char *_namespace +); + +void v1alpha1_param_ref_free(v1alpha1_param_ref_t *v1alpha1_param_ref); + +v1alpha1_param_ref_t *v1alpha1_param_ref_parseFromJSON(cJSON *v1alpha1_param_refJSON); + +cJSON *v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_t *v1alpha1_param_ref); + +#endif /* _v1alpha1_param_ref_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling.c b/kubernetes/model/v1alpha1_pod_scheduling.c new file mode 100644 index 0000000..afbd21c --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling.c @@ -0,0 +1,200 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling.h" + + + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_pod_scheduling_spec_t *spec, + v1alpha1_pod_scheduling_status_t *status + ) { + v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_local_var = malloc(sizeof(v1alpha1_pod_scheduling_t)); + if (!v1alpha1_pod_scheduling_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_local_var->api_version = api_version; + v1alpha1_pod_scheduling_local_var->kind = kind; + v1alpha1_pod_scheduling_local_var->metadata = metadata; + v1alpha1_pod_scheduling_local_var->spec = spec; + v1alpha1_pod_scheduling_local_var->status = status; + + return v1alpha1_pod_scheduling_local_var; +} + + +void v1alpha1_pod_scheduling_free(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling) { + if(NULL == v1alpha1_pod_scheduling){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling->api_version) { + free(v1alpha1_pod_scheduling->api_version); + v1alpha1_pod_scheduling->api_version = NULL; + } + if (v1alpha1_pod_scheduling->kind) { + free(v1alpha1_pod_scheduling->kind); + v1alpha1_pod_scheduling->kind = NULL; + } + if (v1alpha1_pod_scheduling->metadata) { + v1_object_meta_free(v1alpha1_pod_scheduling->metadata); + v1alpha1_pod_scheduling->metadata = NULL; + } + if (v1alpha1_pod_scheduling->spec) { + v1alpha1_pod_scheduling_spec_free(v1alpha1_pod_scheduling->spec); + v1alpha1_pod_scheduling->spec = NULL; + } + if (v1alpha1_pod_scheduling->status) { + v1alpha1_pod_scheduling_status_free(v1alpha1_pod_scheduling->status); + v1alpha1_pod_scheduling->status = NULL; + } + free(v1alpha1_pod_scheduling); +} + +cJSON *v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling->api_version + if(v1alpha1_pod_scheduling->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_pod_scheduling->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling->kind + if(v1alpha1_pod_scheduling->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_pod_scheduling->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling->metadata + if(v1alpha1_pod_scheduling->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_pod_scheduling->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_pod_scheduling->spec + if (!v1alpha1_pod_scheduling->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + + // v1alpha1_pod_scheduling->status + if(v1alpha1_pod_scheduling->status) { + cJSON *status_local_JSON = v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_parseFromJSON(cJSON *v1alpha1_pod_schedulingJSON){ + + v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_local_var = NULL; + + // define the local variable for v1alpha1_pod_scheduling->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_pod_scheduling->spec + v1alpha1_pod_scheduling_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1alpha1_pod_scheduling->status + v1alpha1_pod_scheduling_status_t *status_local_nonprim = NULL; + + // v1alpha1_pod_scheduling->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_pod_scheduling->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_pod_scheduling_spec_parseFromJSON(spec); //nonprimitive + + // v1alpha1_pod_scheduling->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_schedulingJSON, "status"); + if (status) { + status_local_nonprim = v1alpha1_pod_scheduling_status_parseFromJSON(status); //nonprimitive + } + + + v1alpha1_pod_scheduling_local_var = v1alpha1_pod_scheduling_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim, + status ? status_local_nonprim : NULL + ); + + return v1alpha1_pod_scheduling_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_pod_scheduling_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1alpha1_pod_scheduling_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling.h b/kubernetes/model/v1alpha1_pod_scheduling.h new file mode 100644 index 0000000..866688c --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling.h @@ -0,0 +1,48 @@ +/* + * v1alpha1_pod_scheduling.h + * + * PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + */ + +#ifndef _v1alpha1_pod_scheduling_H_ +#define _v1alpha1_pod_scheduling_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_t v1alpha1_pod_scheduling_t; + +#include "v1_object_meta.h" +#include "v1alpha1_pod_scheduling_spec.h" +#include "v1alpha1_pod_scheduling_status.h" + + + +typedef struct v1alpha1_pod_scheduling_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_pod_scheduling_spec_t *spec; //model + struct v1alpha1_pod_scheduling_status_t *status; //model + +} v1alpha1_pod_scheduling_t; + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_pod_scheduling_spec_t *spec, + v1alpha1_pod_scheduling_status_t *status +); + +void v1alpha1_pod_scheduling_free(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling); + +v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling_parseFromJSON(cJSON *v1alpha1_pod_schedulingJSON); + +cJSON *v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_t *v1alpha1_pod_scheduling); + +#endif /* _v1alpha1_pod_scheduling_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling_list.c b/kubernetes/model/v1alpha1_pod_scheduling_list.c new file mode 100644 index 0000000..02c2835 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling_list.h" + + + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_local_var = malloc(sizeof(v1alpha1_pod_scheduling_list_t)); + if (!v1alpha1_pod_scheduling_list_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_list_local_var->api_version = api_version; + v1alpha1_pod_scheduling_list_local_var->items = items; + v1alpha1_pod_scheduling_list_local_var->kind = kind; + v1alpha1_pod_scheduling_list_local_var->metadata = metadata; + + return v1alpha1_pod_scheduling_list_local_var; +} + + +void v1alpha1_pod_scheduling_list_free(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list) { + if(NULL == v1alpha1_pod_scheduling_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling_list->api_version) { + free(v1alpha1_pod_scheduling_list->api_version); + v1alpha1_pod_scheduling_list->api_version = NULL; + } + if (v1alpha1_pod_scheduling_list->items) { + list_ForEach(listEntry, v1alpha1_pod_scheduling_list->items) { + v1alpha1_pod_scheduling_free(listEntry->data); + } + list_freeList(v1alpha1_pod_scheduling_list->items); + v1alpha1_pod_scheduling_list->items = NULL; + } + if (v1alpha1_pod_scheduling_list->kind) { + free(v1alpha1_pod_scheduling_list->kind); + v1alpha1_pod_scheduling_list->kind = NULL; + } + if (v1alpha1_pod_scheduling_list->metadata) { + v1_list_meta_free(v1alpha1_pod_scheduling_list->metadata); + v1alpha1_pod_scheduling_list->metadata = NULL; + } + free(v1alpha1_pod_scheduling_list); +} + +cJSON *v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling_list->api_version + if(v1alpha1_pod_scheduling_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_pod_scheduling_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling_list->items + if (!v1alpha1_pod_scheduling_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_pod_scheduling_list->items) { + list_ForEach(itemsListEntry, v1alpha1_pod_scheduling_list->items) { + cJSON *itemLocal = v1alpha1_pod_scheduling_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_pod_scheduling_list->kind + if(v1alpha1_pod_scheduling_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_pod_scheduling_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_pod_scheduling_list->metadata + if(v1alpha1_pod_scheduling_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_pod_scheduling_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_parseFromJSON(cJSON *v1alpha1_pod_scheduling_listJSON){ + + v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_local_var = NULL; + + // define the local list for v1alpha1_pod_scheduling_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_pod_scheduling_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_pod_scheduling_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_pod_scheduling_t *itemsItem = v1alpha1_pod_scheduling_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_pod_scheduling_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_pod_scheduling_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_pod_scheduling_list_local_var = v1alpha1_pod_scheduling_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_pod_scheduling_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_pod_scheduling_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling_list.h b/kubernetes/model/v1alpha1_pod_scheduling_list.h new file mode 100644 index 0000000..975188e --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_pod_scheduling_list.h + * + * PodSchedulingList is a collection of Pod scheduling objects. + */ + +#ifndef _v1alpha1_pod_scheduling_list_H_ +#define _v1alpha1_pod_scheduling_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_list_t v1alpha1_pod_scheduling_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_pod_scheduling.h" + + + +typedef struct v1alpha1_pod_scheduling_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_pod_scheduling_list_t; + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_pod_scheduling_list_free(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list); + +v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list_parseFromJSON(cJSON *v1alpha1_pod_scheduling_listJSON); + +cJSON *v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_t *v1alpha1_pod_scheduling_list); + +#endif /* _v1alpha1_pod_scheduling_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling_spec.c b/kubernetes/model/v1alpha1_pod_scheduling_spec.c new file mode 100644 index 0000000..057786d --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_spec.c @@ -0,0 +1,131 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling_spec.h" + + + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_create( + list_t *potential_nodes, + char *selected_node + ) { + v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_local_var = malloc(sizeof(v1alpha1_pod_scheduling_spec_t)); + if (!v1alpha1_pod_scheduling_spec_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_spec_local_var->potential_nodes = potential_nodes; + v1alpha1_pod_scheduling_spec_local_var->selected_node = selected_node; + + return v1alpha1_pod_scheduling_spec_local_var; +} + + +void v1alpha1_pod_scheduling_spec_free(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec) { + if(NULL == v1alpha1_pod_scheduling_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling_spec->potential_nodes) { + list_ForEach(listEntry, v1alpha1_pod_scheduling_spec->potential_nodes) { + free(listEntry->data); + } + list_freeList(v1alpha1_pod_scheduling_spec->potential_nodes); + v1alpha1_pod_scheduling_spec->potential_nodes = NULL; + } + if (v1alpha1_pod_scheduling_spec->selected_node) { + free(v1alpha1_pod_scheduling_spec->selected_node); + v1alpha1_pod_scheduling_spec->selected_node = NULL; + } + free(v1alpha1_pod_scheduling_spec); +} + +cJSON *v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling_spec->potential_nodes + if(v1alpha1_pod_scheduling_spec->potential_nodes) { + cJSON *potential_nodes = cJSON_AddArrayToObject(item, "potentialNodes"); + if(potential_nodes == NULL) { + goto fail; //primitive container + } + + listEntry_t *potential_nodesListEntry; + list_ForEach(potential_nodesListEntry, v1alpha1_pod_scheduling_spec->potential_nodes) { + if(cJSON_AddStringToObject(potential_nodes, "", (char*)potential_nodesListEntry->data) == NULL) + { + goto fail; + } + } + } + + + // v1alpha1_pod_scheduling_spec->selected_node + if(v1alpha1_pod_scheduling_spec->selected_node) { + if(cJSON_AddStringToObject(item, "selectedNode", v1alpha1_pod_scheduling_spec->selected_node) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_parseFromJSON(cJSON *v1alpha1_pod_scheduling_specJSON){ + + v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_local_var = NULL; + + // define the local list for v1alpha1_pod_scheduling_spec->potential_nodes + list_t *potential_nodesList = NULL; + + // v1alpha1_pod_scheduling_spec->potential_nodes + cJSON *potential_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_specJSON, "potentialNodes"); + if (potential_nodes) { + cJSON *potential_nodes_local = NULL; + if(!cJSON_IsArray(potential_nodes)) { + goto end;//primitive container + } + potential_nodesList = list_createList(); + + cJSON_ArrayForEach(potential_nodes_local, potential_nodes) + { + if(!cJSON_IsString(potential_nodes_local)) + { + goto end; + } + list_addElement(potential_nodesList , strdup(potential_nodes_local->valuestring)); + } + } + + // v1alpha1_pod_scheduling_spec->selected_node + cJSON *selected_node = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_specJSON, "selectedNode"); + if (selected_node) { + if(!cJSON_IsString(selected_node) && !cJSON_IsNull(selected_node)) + { + goto end; //String + } + } + + + v1alpha1_pod_scheduling_spec_local_var = v1alpha1_pod_scheduling_spec_create ( + potential_nodes ? potential_nodesList : NULL, + selected_node && !cJSON_IsNull(selected_node) ? strdup(selected_node->valuestring) : NULL + ); + + return v1alpha1_pod_scheduling_spec_local_var; +end: + if (potential_nodesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, potential_nodesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(potential_nodesList); + potential_nodesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling_spec.h b/kubernetes/model/v1alpha1_pod_scheduling_spec.h new file mode 100644 index 0000000..3dcd02e --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_spec.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_pod_scheduling_spec.h + * + * PodSchedulingSpec describes where resources for the Pod are needed. + */ + +#ifndef _v1alpha1_pod_scheduling_spec_H_ +#define _v1alpha1_pod_scheduling_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_spec_t v1alpha1_pod_scheduling_spec_t; + + + + +typedef struct v1alpha1_pod_scheduling_spec_t { + list_t *potential_nodes; //primitive container + char *selected_node; // string + +} v1alpha1_pod_scheduling_spec_t; + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_create( + list_t *potential_nodes, + char *selected_node +); + +void v1alpha1_pod_scheduling_spec_free(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec); + +v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec_parseFromJSON(cJSON *v1alpha1_pod_scheduling_specJSON); + +cJSON *v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_t *v1alpha1_pod_scheduling_spec); + +#endif /* _v1alpha1_pod_scheduling_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_pod_scheduling_status.c b/kubernetes/model/v1alpha1_pod_scheduling_status.c new file mode 100644 index 0000000..ca459e5 --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1alpha1_pod_scheduling_status.h" + + + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_create( + list_t *resource_claims + ) { + v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_local_var = malloc(sizeof(v1alpha1_pod_scheduling_status_t)); + if (!v1alpha1_pod_scheduling_status_local_var) { + return NULL; + } + v1alpha1_pod_scheduling_status_local_var->resource_claims = resource_claims; + + return v1alpha1_pod_scheduling_status_local_var; +} + + +void v1alpha1_pod_scheduling_status_free(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status) { + if(NULL == v1alpha1_pod_scheduling_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_pod_scheduling_status->resource_claims) { + list_ForEach(listEntry, v1alpha1_pod_scheduling_status->resource_claims) { + v1alpha1_resource_claim_scheduling_status_free(listEntry->data); + } + list_freeList(v1alpha1_pod_scheduling_status->resource_claims); + v1alpha1_pod_scheduling_status->resource_claims = NULL; + } + free(v1alpha1_pod_scheduling_status); +} + +cJSON *v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_pod_scheduling_status->resource_claims + if(v1alpha1_pod_scheduling_status->resource_claims) { + cJSON *resource_claims = cJSON_AddArrayToObject(item, "resourceClaims"); + if(resource_claims == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *resource_claimsListEntry; + if (v1alpha1_pod_scheduling_status->resource_claims) { + list_ForEach(resource_claimsListEntry, v1alpha1_pod_scheduling_status->resource_claims) { + cJSON *itemLocal = v1alpha1_resource_claim_scheduling_status_convertToJSON(resource_claimsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(resource_claims, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_parseFromJSON(cJSON *v1alpha1_pod_scheduling_statusJSON){ + + v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_local_var = NULL; + + // define the local list for v1alpha1_pod_scheduling_status->resource_claims + list_t *resource_claimsList = NULL; + + // v1alpha1_pod_scheduling_status->resource_claims + cJSON *resource_claims = cJSON_GetObjectItemCaseSensitive(v1alpha1_pod_scheduling_statusJSON, "resourceClaims"); + if (resource_claims) { + cJSON *resource_claims_local_nonprimitive = NULL; + if(!cJSON_IsArray(resource_claims)){ + goto end; //nonprimitive container + } + + resource_claimsList = list_createList(); + + cJSON_ArrayForEach(resource_claims_local_nonprimitive,resource_claims ) + { + if(!cJSON_IsObject(resource_claims_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_scheduling_status_t *resource_claimsItem = v1alpha1_resource_claim_scheduling_status_parseFromJSON(resource_claims_local_nonprimitive); + + list_addElement(resource_claimsList, resource_claimsItem); + } + } + + + v1alpha1_pod_scheduling_status_local_var = v1alpha1_pod_scheduling_status_create ( + resource_claims ? resource_claimsList : NULL + ); + + return v1alpha1_pod_scheduling_status_local_var; +end: + if (resource_claimsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, resource_claimsList) { + v1alpha1_resource_claim_scheduling_status_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(resource_claimsList); + resource_claimsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_pod_scheduling_status.h b/kubernetes/model/v1alpha1_pod_scheduling_status.h new file mode 100644 index 0000000..d94e39c --- /dev/null +++ b/kubernetes/model/v1alpha1_pod_scheduling_status.h @@ -0,0 +1,38 @@ +/* + * v1alpha1_pod_scheduling_status.h + * + * PodSchedulingStatus describes where resources for the Pod can be allocated. + */ + +#ifndef _v1alpha1_pod_scheduling_status_H_ +#define _v1alpha1_pod_scheduling_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_pod_scheduling_status_t v1alpha1_pod_scheduling_status_t; + +#include "v1alpha1_resource_claim_scheduling_status.h" + + + +typedef struct v1alpha1_pod_scheduling_status_t { + list_t *resource_claims; //nonprimitive container + +} v1alpha1_pod_scheduling_status_t; + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_create( + list_t *resource_claims +); + +void v1alpha1_pod_scheduling_status_free(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status); + +v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status_parseFromJSON(cJSON *v1alpha1_pod_scheduling_statusJSON); + +cJSON *v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_t *v1alpha1_pod_scheduling_status); + +#endif /* _v1alpha1_pod_scheduling_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim.c b/kubernetes/model/v1alpha1_resource_claim.c new file mode 100644 index 0000000..c29bf7d --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim.c @@ -0,0 +1,200 @@ +#include +#include +#include +#include "v1alpha1_resource_claim.h" + + + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec, + v1alpha1_resource_claim_status_t *status + ) { + v1alpha1_resource_claim_t *v1alpha1_resource_claim_local_var = malloc(sizeof(v1alpha1_resource_claim_t)); + if (!v1alpha1_resource_claim_local_var) { + return NULL; + } + v1alpha1_resource_claim_local_var->api_version = api_version; + v1alpha1_resource_claim_local_var->kind = kind; + v1alpha1_resource_claim_local_var->metadata = metadata; + v1alpha1_resource_claim_local_var->spec = spec; + v1alpha1_resource_claim_local_var->status = status; + + return v1alpha1_resource_claim_local_var; +} + + +void v1alpha1_resource_claim_free(v1alpha1_resource_claim_t *v1alpha1_resource_claim) { + if(NULL == v1alpha1_resource_claim){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim->api_version) { + free(v1alpha1_resource_claim->api_version); + v1alpha1_resource_claim->api_version = NULL; + } + if (v1alpha1_resource_claim->kind) { + free(v1alpha1_resource_claim->kind); + v1alpha1_resource_claim->kind = NULL; + } + if (v1alpha1_resource_claim->metadata) { + v1_object_meta_free(v1alpha1_resource_claim->metadata); + v1alpha1_resource_claim->metadata = NULL; + } + if (v1alpha1_resource_claim->spec) { + v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim->spec); + v1alpha1_resource_claim->spec = NULL; + } + if (v1alpha1_resource_claim->status) { + v1alpha1_resource_claim_status_free(v1alpha1_resource_claim->status); + v1alpha1_resource_claim->status = NULL; + } + free(v1alpha1_resource_claim); +} + +cJSON *v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_t *v1alpha1_resource_claim) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim->api_version + if(v1alpha1_resource_claim->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim->kind + if(v1alpha1_resource_claim->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim->metadata + if(v1alpha1_resource_claim->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_claim->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim->spec + if (!v1alpha1_resource_claim->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + + // v1alpha1_resource_claim->status + if(v1alpha1_resource_claim->status) { + cJSON *status_local_JSON = v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_parseFromJSON(cJSON *v1alpha1_resource_claimJSON){ + + v1alpha1_resource_claim_t *v1alpha1_resource_claim_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim->spec + v1alpha1_resource_claim_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim->status + v1alpha1_resource_claim_status_t *status_local_nonprim = NULL; + + // v1alpha1_resource_claim->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_claim->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_resource_claim_spec_parseFromJSON(spec); //nonprimitive + + // v1alpha1_resource_claim->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claimJSON, "status"); + if (status) { + status_local_nonprim = v1alpha1_resource_claim_status_parseFromJSON(status); //nonprimitive + } + + + v1alpha1_resource_claim_local_var = v1alpha1_resource_claim_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim, + status ? status_local_nonprim : NULL + ); + + return v1alpha1_resource_claim_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_resource_claim_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1alpha1_resource_claim_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim.h b/kubernetes/model/v1alpha1_resource_claim.h new file mode 100644 index 0000000..99c0e0b --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim.h @@ -0,0 +1,48 @@ +/* + * v1alpha1_resource_claim.h + * + * ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + */ + +#ifndef _v1alpha1_resource_claim_H_ +#define _v1alpha1_resource_claim_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_t v1alpha1_resource_claim_t; + +#include "v1_object_meta.h" +#include "v1alpha1_resource_claim_spec.h" +#include "v1alpha1_resource_claim_status.h" + + + +typedef struct v1alpha1_resource_claim_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_claim_spec_t *spec; //model + struct v1alpha1_resource_claim_status_t *status; //model + +} v1alpha1_resource_claim_t; + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec, + v1alpha1_resource_claim_status_t *status +); + +void v1alpha1_resource_claim_free(v1alpha1_resource_claim_t *v1alpha1_resource_claim); + +v1alpha1_resource_claim_t *v1alpha1_resource_claim_parseFromJSON(cJSON *v1alpha1_resource_claimJSON); + +cJSON *v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_t *v1alpha1_resource_claim); + +#endif /* _v1alpha1_resource_claim_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_consumer_reference.c b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.c new file mode 100644 index 0000000..a8db1b9 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.c @@ -0,0 +1,157 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_consumer_reference.h" + + + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_create( + char *api_group, + char *name, + char *resource, + char *uid + ) { + v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_local_var = malloc(sizeof(v1alpha1_resource_claim_consumer_reference_t)); + if (!v1alpha1_resource_claim_consumer_reference_local_var) { + return NULL; + } + v1alpha1_resource_claim_consumer_reference_local_var->api_group = api_group; + v1alpha1_resource_claim_consumer_reference_local_var->name = name; + v1alpha1_resource_claim_consumer_reference_local_var->resource = resource; + v1alpha1_resource_claim_consumer_reference_local_var->uid = uid; + + return v1alpha1_resource_claim_consumer_reference_local_var; +} + + +void v1alpha1_resource_claim_consumer_reference_free(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference) { + if(NULL == v1alpha1_resource_claim_consumer_reference){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_consumer_reference->api_group) { + free(v1alpha1_resource_claim_consumer_reference->api_group); + v1alpha1_resource_claim_consumer_reference->api_group = NULL; + } + if (v1alpha1_resource_claim_consumer_reference->name) { + free(v1alpha1_resource_claim_consumer_reference->name); + v1alpha1_resource_claim_consumer_reference->name = NULL; + } + if (v1alpha1_resource_claim_consumer_reference->resource) { + free(v1alpha1_resource_claim_consumer_reference->resource); + v1alpha1_resource_claim_consumer_reference->resource = NULL; + } + if (v1alpha1_resource_claim_consumer_reference->uid) { + free(v1alpha1_resource_claim_consumer_reference->uid); + v1alpha1_resource_claim_consumer_reference->uid = NULL; + } + free(v1alpha1_resource_claim_consumer_reference); +} + +cJSON *v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_consumer_reference->api_group + if(v1alpha1_resource_claim_consumer_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1alpha1_resource_claim_consumer_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_consumer_reference->name + if (!v1alpha1_resource_claim_consumer_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_claim_consumer_reference->name) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_claim_consumer_reference->resource + if (!v1alpha1_resource_claim_consumer_reference->resource) { + goto fail; + } + if(cJSON_AddStringToObject(item, "resource", v1alpha1_resource_claim_consumer_reference->resource) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_claim_consumer_reference->uid + if (!v1alpha1_resource_claim_consumer_reference->uid) { + goto fail; + } + if(cJSON_AddStringToObject(item, "uid", v1alpha1_resource_claim_consumer_reference->uid) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_consumer_referenceJSON){ + + v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_local_var = NULL; + + // v1alpha1_resource_claim_consumer_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_consumer_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1alpha1_resource_claim_consumer_reference->resource + cJSON *resource = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "resource"); + if (!resource) { + goto end; + } + + + if(!cJSON_IsString(resource)) + { + goto end; //String + } + + // v1alpha1_resource_claim_consumer_reference->uid + cJSON *uid = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_consumer_referenceJSON, "uid"); + if (!uid) { + goto end; + } + + + if(!cJSON_IsString(uid)) + { + goto end; //String + } + + + v1alpha1_resource_claim_consumer_reference_local_var = v1alpha1_resource_claim_consumer_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(name->valuestring), + strdup(resource->valuestring), + strdup(uid->valuestring) + ); + + return v1alpha1_resource_claim_consumer_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_consumer_reference.h b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.h new file mode 100644 index 0000000..4a666c9 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_consumer_reference.h @@ -0,0 +1,43 @@ +/* + * v1alpha1_resource_claim_consumer_reference.h + * + * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. + */ + +#ifndef _v1alpha1_resource_claim_consumer_reference_H_ +#define _v1alpha1_resource_claim_consumer_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_consumer_reference_t v1alpha1_resource_claim_consumer_reference_t; + + + + +typedef struct v1alpha1_resource_claim_consumer_reference_t { + char *api_group; // string + char *name; // string + char *resource; // string + char *uid; // string + +} v1alpha1_resource_claim_consumer_reference_t; + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_create( + char *api_group, + char *name, + char *resource, + char *uid +); + +void v1alpha1_resource_claim_consumer_reference_free(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference); + +v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_consumer_referenceJSON); + +cJSON *v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_t *v1alpha1_resource_claim_consumer_reference); + +#endif /* _v1alpha1_resource_claim_consumer_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_list.c b/kubernetes/model/v1alpha1_resource_claim_list.c new file mode 100644 index 0000000..e20ccbb --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_list.h" + + + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_local_var = malloc(sizeof(v1alpha1_resource_claim_list_t)); + if (!v1alpha1_resource_claim_list_local_var) { + return NULL; + } + v1alpha1_resource_claim_list_local_var->api_version = api_version; + v1alpha1_resource_claim_list_local_var->items = items; + v1alpha1_resource_claim_list_local_var->kind = kind; + v1alpha1_resource_claim_list_local_var->metadata = metadata; + + return v1alpha1_resource_claim_list_local_var; +} + + +void v1alpha1_resource_claim_list_free(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list) { + if(NULL == v1alpha1_resource_claim_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_list->api_version) { + free(v1alpha1_resource_claim_list->api_version); + v1alpha1_resource_claim_list->api_version = NULL; + } + if (v1alpha1_resource_claim_list->items) { + list_ForEach(listEntry, v1alpha1_resource_claim_list->items) { + v1alpha1_resource_claim_free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_list->items); + v1alpha1_resource_claim_list->items = NULL; + } + if (v1alpha1_resource_claim_list->kind) { + free(v1alpha1_resource_claim_list->kind); + v1alpha1_resource_claim_list->kind = NULL; + } + if (v1alpha1_resource_claim_list->metadata) { + v1_list_meta_free(v1alpha1_resource_claim_list->metadata); + v1alpha1_resource_claim_list->metadata = NULL; + } + free(v1alpha1_resource_claim_list); +} + +cJSON *v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_list->api_version + if(v1alpha1_resource_claim_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_list->items + if (!v1alpha1_resource_claim_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_resource_claim_list->items) { + list_ForEach(itemsListEntry, v1alpha1_resource_claim_list->items) { + cJSON *itemLocal = v1alpha1_resource_claim_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_resource_claim_list->kind + if(v1alpha1_resource_claim_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_list->metadata + if(v1alpha1_resource_claim_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_resource_claim_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_parseFromJSON(cJSON *v1alpha1_resource_claim_listJSON){ + + v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_local_var = NULL; + + // define the local list for v1alpha1_resource_claim_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_resource_claim_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_resource_claim_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_t *itemsItem = v1alpha1_resource_claim_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_resource_claim_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_resource_claim_list_local_var = v1alpha1_resource_claim_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_resource_claim_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_resource_claim_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_list.h b/kubernetes/model/v1alpha1_resource_claim_list.h new file mode 100644 index 0000000..eda85e4 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_list.h + * + * ResourceClaimList is a collection of claims. + */ + +#ifndef _v1alpha1_resource_claim_list_H_ +#define _v1alpha1_resource_claim_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_list_t v1alpha1_resource_claim_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_resource_claim.h" + + + +typedef struct v1alpha1_resource_claim_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_resource_claim_list_t; + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_resource_claim_list_free(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list); + +v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list_parseFromJSON(cJSON *v1alpha1_resource_claim_listJSON); + +cJSON *v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_t *v1alpha1_resource_claim_list); + +#endif /* _v1alpha1_resource_claim_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_parameters_reference.c b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.c new file mode 100644 index 0000000..a769310 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.c @@ -0,0 +1,129 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_parameters_reference.h" + + + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_create( + char *api_group, + char *kind, + char *name + ) { + v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_local_var = malloc(sizeof(v1alpha1_resource_claim_parameters_reference_t)); + if (!v1alpha1_resource_claim_parameters_reference_local_var) { + return NULL; + } + v1alpha1_resource_claim_parameters_reference_local_var->api_group = api_group; + v1alpha1_resource_claim_parameters_reference_local_var->kind = kind; + v1alpha1_resource_claim_parameters_reference_local_var->name = name; + + return v1alpha1_resource_claim_parameters_reference_local_var; +} + + +void v1alpha1_resource_claim_parameters_reference_free(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference) { + if(NULL == v1alpha1_resource_claim_parameters_reference){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_parameters_reference->api_group) { + free(v1alpha1_resource_claim_parameters_reference->api_group); + v1alpha1_resource_claim_parameters_reference->api_group = NULL; + } + if (v1alpha1_resource_claim_parameters_reference->kind) { + free(v1alpha1_resource_claim_parameters_reference->kind); + v1alpha1_resource_claim_parameters_reference->kind = NULL; + } + if (v1alpha1_resource_claim_parameters_reference->name) { + free(v1alpha1_resource_claim_parameters_reference->name); + v1alpha1_resource_claim_parameters_reference->name = NULL; + } + free(v1alpha1_resource_claim_parameters_reference); +} + +cJSON *v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_parameters_reference->api_group + if(v1alpha1_resource_claim_parameters_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1alpha1_resource_claim_parameters_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_parameters_reference->kind + if (!v1alpha1_resource_claim_parameters_reference->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_parameters_reference->kind) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_claim_parameters_reference->name + if (!v1alpha1_resource_claim_parameters_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_claim_parameters_reference->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_parameters_referenceJSON){ + + v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_local_var = NULL; + + // v1alpha1_resource_claim_parameters_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_parameters_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_parameters_reference->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_parameters_referenceJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1alpha1_resource_claim_parameters_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_parameters_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1alpha1_resource_claim_parameters_reference_local_var = v1alpha1_resource_claim_parameters_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(kind->valuestring), + strdup(name->valuestring) + ); + + return v1alpha1_resource_claim_parameters_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_parameters_reference.h b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.h new file mode 100644 index 0000000..3c9b4d5 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_parameters_reference.h @@ -0,0 +1,41 @@ +/* + * v1alpha1_resource_claim_parameters_reference.h + * + * ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim. + */ + +#ifndef _v1alpha1_resource_claim_parameters_reference_H_ +#define _v1alpha1_resource_claim_parameters_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_parameters_reference_t v1alpha1_resource_claim_parameters_reference_t; + + + + +typedef struct v1alpha1_resource_claim_parameters_reference_t { + char *api_group; // string + char *kind; // string + char *name; // string + +} v1alpha1_resource_claim_parameters_reference_t; + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_create( + char *api_group, + char *kind, + char *name +); + +void v1alpha1_resource_claim_parameters_reference_free(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference); + +v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_claim_parameters_referenceJSON); + +cJSON *v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_t *v1alpha1_resource_claim_parameters_reference); + +#endif /* _v1alpha1_resource_claim_parameters_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_scheduling_status.c b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.c new file mode 100644 index 0000000..c8bcf4e --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.c @@ -0,0 +1,131 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_scheduling_status.h" + + + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_create( + char *name, + list_t *unsuitable_nodes + ) { + v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_local_var = malloc(sizeof(v1alpha1_resource_claim_scheduling_status_t)); + if (!v1alpha1_resource_claim_scheduling_status_local_var) { + return NULL; + } + v1alpha1_resource_claim_scheduling_status_local_var->name = name; + v1alpha1_resource_claim_scheduling_status_local_var->unsuitable_nodes = unsuitable_nodes; + + return v1alpha1_resource_claim_scheduling_status_local_var; +} + + +void v1alpha1_resource_claim_scheduling_status_free(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status) { + if(NULL == v1alpha1_resource_claim_scheduling_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_scheduling_status->name) { + free(v1alpha1_resource_claim_scheduling_status->name); + v1alpha1_resource_claim_scheduling_status->name = NULL; + } + if (v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + list_ForEach(listEntry, v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_scheduling_status->unsuitable_nodes); + v1alpha1_resource_claim_scheduling_status->unsuitable_nodes = NULL; + } + free(v1alpha1_resource_claim_scheduling_status); +} + +cJSON *v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_scheduling_status->name + if(v1alpha1_resource_claim_scheduling_status->name) { + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_claim_scheduling_status->name) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_scheduling_status->unsuitable_nodes + if(v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + cJSON *unsuitable_nodes = cJSON_AddArrayToObject(item, "unsuitableNodes"); + if(unsuitable_nodes == NULL) { + goto fail; //primitive container + } + + listEntry_t *unsuitable_nodesListEntry; + list_ForEach(unsuitable_nodesListEntry, v1alpha1_resource_claim_scheduling_status->unsuitable_nodes) { + if(cJSON_AddStringToObject(unsuitable_nodes, "", (char*)unsuitable_nodesListEntry->data) == NULL) + { + goto fail; + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_parseFromJSON(cJSON *v1alpha1_resource_claim_scheduling_statusJSON){ + + v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_local_var = NULL; + + // define the local list for v1alpha1_resource_claim_scheduling_status->unsuitable_nodes + list_t *unsuitable_nodesList = NULL; + + // v1alpha1_resource_claim_scheduling_status->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_scheduling_statusJSON, "name"); + if (name) { + if(!cJSON_IsString(name) && !cJSON_IsNull(name)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_scheduling_status->unsuitable_nodes + cJSON *unsuitable_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_scheduling_statusJSON, "unsuitableNodes"); + if (unsuitable_nodes) { + cJSON *unsuitable_nodes_local = NULL; + if(!cJSON_IsArray(unsuitable_nodes)) { + goto end;//primitive container + } + unsuitable_nodesList = list_createList(); + + cJSON_ArrayForEach(unsuitable_nodes_local, unsuitable_nodes) + { + if(!cJSON_IsString(unsuitable_nodes_local)) + { + goto end; + } + list_addElement(unsuitable_nodesList , strdup(unsuitable_nodes_local->valuestring)); + } + } + + + v1alpha1_resource_claim_scheduling_status_local_var = v1alpha1_resource_claim_scheduling_status_create ( + name && !cJSON_IsNull(name) ? strdup(name->valuestring) : NULL, + unsuitable_nodes ? unsuitable_nodesList : NULL + ); + + return v1alpha1_resource_claim_scheduling_status_local_var; +end: + if (unsuitable_nodesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, unsuitable_nodesList) { + free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(unsuitable_nodesList); + unsuitable_nodesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_scheduling_status.h b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.h new file mode 100644 index 0000000..e8b5ac9 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_scheduling_status.h @@ -0,0 +1,39 @@ +/* + * v1alpha1_resource_claim_scheduling_status.h + * + * ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode. + */ + +#ifndef _v1alpha1_resource_claim_scheduling_status_H_ +#define _v1alpha1_resource_claim_scheduling_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_scheduling_status_t v1alpha1_resource_claim_scheduling_status_t; + + + + +typedef struct v1alpha1_resource_claim_scheduling_status_t { + char *name; // string + list_t *unsuitable_nodes; //primitive container + +} v1alpha1_resource_claim_scheduling_status_t; + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_create( + char *name, + list_t *unsuitable_nodes +); + +void v1alpha1_resource_claim_scheduling_status_free(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status); + +v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status_parseFromJSON(cJSON *v1alpha1_resource_claim_scheduling_statusJSON); + +cJSON *v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_t *v1alpha1_resource_claim_scheduling_status); + +#endif /* _v1alpha1_resource_claim_scheduling_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_spec.c b/kubernetes/model/v1alpha1_resource_claim_spec.c new file mode 100644 index 0000000..8bf8e3f --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_spec.c @@ -0,0 +1,134 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_spec.h" + + + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_create( + char *allocation_mode, + v1alpha1_resource_claim_parameters_reference_t *parameters_ref, + char *resource_class_name + ) { + v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_local_var = malloc(sizeof(v1alpha1_resource_claim_spec_t)); + if (!v1alpha1_resource_claim_spec_local_var) { + return NULL; + } + v1alpha1_resource_claim_spec_local_var->allocation_mode = allocation_mode; + v1alpha1_resource_claim_spec_local_var->parameters_ref = parameters_ref; + v1alpha1_resource_claim_spec_local_var->resource_class_name = resource_class_name; + + return v1alpha1_resource_claim_spec_local_var; +} + + +void v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec) { + if(NULL == v1alpha1_resource_claim_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_spec->allocation_mode) { + free(v1alpha1_resource_claim_spec->allocation_mode); + v1alpha1_resource_claim_spec->allocation_mode = NULL; + } + if (v1alpha1_resource_claim_spec->parameters_ref) { + v1alpha1_resource_claim_parameters_reference_free(v1alpha1_resource_claim_spec->parameters_ref); + v1alpha1_resource_claim_spec->parameters_ref = NULL; + } + if (v1alpha1_resource_claim_spec->resource_class_name) { + free(v1alpha1_resource_claim_spec->resource_class_name); + v1alpha1_resource_claim_spec->resource_class_name = NULL; + } + free(v1alpha1_resource_claim_spec); +} + +cJSON *v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_spec->allocation_mode + if(v1alpha1_resource_claim_spec->allocation_mode) { + if(cJSON_AddStringToObject(item, "allocationMode", v1alpha1_resource_claim_spec->allocation_mode) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_spec->parameters_ref + if(v1alpha1_resource_claim_spec->parameters_ref) { + cJSON *parameters_ref_local_JSON = v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_spec->parameters_ref); + if(parameters_ref_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "parametersRef", parameters_ref_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_spec->resource_class_name + if (!v1alpha1_resource_claim_spec->resource_class_name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "resourceClassName", v1alpha1_resource_claim_spec->resource_class_name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_specJSON){ + + v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_spec->parameters_ref + v1alpha1_resource_claim_parameters_reference_t *parameters_ref_local_nonprim = NULL; + + // v1alpha1_resource_claim_spec->allocation_mode + cJSON *allocation_mode = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_specJSON, "allocationMode"); + if (allocation_mode) { + if(!cJSON_IsString(allocation_mode) && !cJSON_IsNull(allocation_mode)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_spec->parameters_ref + cJSON *parameters_ref = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_specJSON, "parametersRef"); + if (parameters_ref) { + parameters_ref_local_nonprim = v1alpha1_resource_claim_parameters_reference_parseFromJSON(parameters_ref); //nonprimitive + } + + // v1alpha1_resource_claim_spec->resource_class_name + cJSON *resource_class_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_specJSON, "resourceClassName"); + if (!resource_class_name) { + goto end; + } + + + if(!cJSON_IsString(resource_class_name)) + { + goto end; //String + } + + + v1alpha1_resource_claim_spec_local_var = v1alpha1_resource_claim_spec_create ( + allocation_mode && !cJSON_IsNull(allocation_mode) ? strdup(allocation_mode->valuestring) : NULL, + parameters_ref ? parameters_ref_local_nonprim : NULL, + strdup(resource_class_name->valuestring) + ); + + return v1alpha1_resource_claim_spec_local_var; +end: + if (parameters_ref_local_nonprim) { + v1alpha1_resource_claim_parameters_reference_free(parameters_ref_local_nonprim); + parameters_ref_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_spec.h b/kubernetes/model/v1alpha1_resource_claim_spec.h new file mode 100644 index 0000000..e02699d --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_spec.h @@ -0,0 +1,42 @@ +/* + * v1alpha1_resource_claim_spec.h + * + * ResourceClaimSpec defines how a resource is to be allocated. + */ + +#ifndef _v1alpha1_resource_claim_spec_H_ +#define _v1alpha1_resource_claim_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_spec_t v1alpha1_resource_claim_spec_t; + +#include "v1alpha1_resource_claim_parameters_reference.h" + + + +typedef struct v1alpha1_resource_claim_spec_t { + char *allocation_mode; // string + struct v1alpha1_resource_claim_parameters_reference_t *parameters_ref; //model + char *resource_class_name; // string + +} v1alpha1_resource_claim_spec_t; + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_create( + char *allocation_mode, + v1alpha1_resource_claim_parameters_reference_t *parameters_ref, + char *resource_class_name +); + +void v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec); + +v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_specJSON); + +cJSON *v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_t *v1alpha1_resource_claim_spec); + +#endif /* _v1alpha1_resource_claim_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_status.c b/kubernetes/model/v1alpha1_resource_claim_status.c new file mode 100644 index 0000000..2f8f23e --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_status.c @@ -0,0 +1,189 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_status.h" + + + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_create( + v1alpha1_allocation_result_t *allocation, + int deallocation_requested, + char *driver_name, + list_t *reserved_for + ) { + v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_local_var = malloc(sizeof(v1alpha1_resource_claim_status_t)); + if (!v1alpha1_resource_claim_status_local_var) { + return NULL; + } + v1alpha1_resource_claim_status_local_var->allocation = allocation; + v1alpha1_resource_claim_status_local_var->deallocation_requested = deallocation_requested; + v1alpha1_resource_claim_status_local_var->driver_name = driver_name; + v1alpha1_resource_claim_status_local_var->reserved_for = reserved_for; + + return v1alpha1_resource_claim_status_local_var; +} + + +void v1alpha1_resource_claim_status_free(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status) { + if(NULL == v1alpha1_resource_claim_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_status->allocation) { + v1alpha1_allocation_result_free(v1alpha1_resource_claim_status->allocation); + v1alpha1_resource_claim_status->allocation = NULL; + } + if (v1alpha1_resource_claim_status->driver_name) { + free(v1alpha1_resource_claim_status->driver_name); + v1alpha1_resource_claim_status->driver_name = NULL; + } + if (v1alpha1_resource_claim_status->reserved_for) { + list_ForEach(listEntry, v1alpha1_resource_claim_status->reserved_for) { + v1alpha1_resource_claim_consumer_reference_free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_status->reserved_for); + v1alpha1_resource_claim_status->reserved_for = NULL; + } + free(v1alpha1_resource_claim_status); +} + +cJSON *v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_status->allocation + if(v1alpha1_resource_claim_status->allocation) { + cJSON *allocation_local_JSON = v1alpha1_allocation_result_convertToJSON(v1alpha1_resource_claim_status->allocation); + if(allocation_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "allocation", allocation_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_status->deallocation_requested + if(v1alpha1_resource_claim_status->deallocation_requested) { + if(cJSON_AddBoolToObject(item, "deallocationRequested", v1alpha1_resource_claim_status->deallocation_requested) == NULL) { + goto fail; //Bool + } + } + + + // v1alpha1_resource_claim_status->driver_name + if(v1alpha1_resource_claim_status->driver_name) { + if(cJSON_AddStringToObject(item, "driverName", v1alpha1_resource_claim_status->driver_name) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_status->reserved_for + if(v1alpha1_resource_claim_status->reserved_for) { + cJSON *reserved_for = cJSON_AddArrayToObject(item, "reservedFor"); + if(reserved_for == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *reserved_forListEntry; + if (v1alpha1_resource_claim_status->reserved_for) { + list_ForEach(reserved_forListEntry, v1alpha1_resource_claim_status->reserved_for) { + cJSON *itemLocal = v1alpha1_resource_claim_consumer_reference_convertToJSON(reserved_forListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(reserved_for, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_parseFromJSON(cJSON *v1alpha1_resource_claim_statusJSON){ + + v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_status->allocation + v1alpha1_allocation_result_t *allocation_local_nonprim = NULL; + + // define the local list for v1alpha1_resource_claim_status->reserved_for + list_t *reserved_forList = NULL; + + // v1alpha1_resource_claim_status->allocation + cJSON *allocation = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "allocation"); + if (allocation) { + allocation_local_nonprim = v1alpha1_allocation_result_parseFromJSON(allocation); //nonprimitive + } + + // v1alpha1_resource_claim_status->deallocation_requested + cJSON *deallocation_requested = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "deallocationRequested"); + if (deallocation_requested) { + if(!cJSON_IsBool(deallocation_requested)) + { + goto end; //Bool + } + } + + // v1alpha1_resource_claim_status->driver_name + cJSON *driver_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "driverName"); + if (driver_name) { + if(!cJSON_IsString(driver_name) && !cJSON_IsNull(driver_name)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_status->reserved_for + cJSON *reserved_for = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_statusJSON, "reservedFor"); + if (reserved_for) { + cJSON *reserved_for_local_nonprimitive = NULL; + if(!cJSON_IsArray(reserved_for)){ + goto end; //nonprimitive container + } + + reserved_forList = list_createList(); + + cJSON_ArrayForEach(reserved_for_local_nonprimitive,reserved_for ) + { + if(!cJSON_IsObject(reserved_for_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_consumer_reference_t *reserved_forItem = v1alpha1_resource_claim_consumer_reference_parseFromJSON(reserved_for_local_nonprimitive); + + list_addElement(reserved_forList, reserved_forItem); + } + } + + + v1alpha1_resource_claim_status_local_var = v1alpha1_resource_claim_status_create ( + allocation ? allocation_local_nonprim : NULL, + deallocation_requested ? deallocation_requested->valueint : 0, + driver_name && !cJSON_IsNull(driver_name) ? strdup(driver_name->valuestring) : NULL, + reserved_for ? reserved_forList : NULL + ); + + return v1alpha1_resource_claim_status_local_var; +end: + if (allocation_local_nonprim) { + v1alpha1_allocation_result_free(allocation_local_nonprim); + allocation_local_nonprim = NULL; + } + if (reserved_forList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, reserved_forList) { + v1alpha1_resource_claim_consumer_reference_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(reserved_forList); + reserved_forList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_status.h b/kubernetes/model/v1alpha1_resource_claim_status.h new file mode 100644 index 0000000..00ab0b9 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_status.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_status.h + * + * ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are. + */ + +#ifndef _v1alpha1_resource_claim_status_H_ +#define _v1alpha1_resource_claim_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_status_t v1alpha1_resource_claim_status_t; + +#include "v1alpha1_allocation_result.h" +#include "v1alpha1_resource_claim_consumer_reference.h" + + + +typedef struct v1alpha1_resource_claim_status_t { + struct v1alpha1_allocation_result_t *allocation; //model + int deallocation_requested; //boolean + char *driver_name; // string + list_t *reserved_for; //nonprimitive container + +} v1alpha1_resource_claim_status_t; + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_create( + v1alpha1_allocation_result_t *allocation, + int deallocation_requested, + char *driver_name, + list_t *reserved_for +); + +void v1alpha1_resource_claim_status_free(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status); + +v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status_parseFromJSON(cJSON *v1alpha1_resource_claim_statusJSON); + +cJSON *v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_t *v1alpha1_resource_claim_status); + +#endif /* _v1alpha1_resource_claim_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_template.c b/kubernetes/model/v1alpha1_resource_claim_template.c new file mode 100644 index 0000000..545ec55 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template.c @@ -0,0 +1,167 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_template.h" + + + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_template_spec_t *spec + ) { + v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_local_var = malloc(sizeof(v1alpha1_resource_claim_template_t)); + if (!v1alpha1_resource_claim_template_local_var) { + return NULL; + } + v1alpha1_resource_claim_template_local_var->api_version = api_version; + v1alpha1_resource_claim_template_local_var->kind = kind; + v1alpha1_resource_claim_template_local_var->metadata = metadata; + v1alpha1_resource_claim_template_local_var->spec = spec; + + return v1alpha1_resource_claim_template_local_var; +} + + +void v1alpha1_resource_claim_template_free(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template) { + if(NULL == v1alpha1_resource_claim_template){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_template->api_version) { + free(v1alpha1_resource_claim_template->api_version); + v1alpha1_resource_claim_template->api_version = NULL; + } + if (v1alpha1_resource_claim_template->kind) { + free(v1alpha1_resource_claim_template->kind); + v1alpha1_resource_claim_template->kind = NULL; + } + if (v1alpha1_resource_claim_template->metadata) { + v1_object_meta_free(v1alpha1_resource_claim_template->metadata); + v1alpha1_resource_claim_template->metadata = NULL; + } + if (v1alpha1_resource_claim_template->spec) { + v1alpha1_resource_claim_template_spec_free(v1alpha1_resource_claim_template->spec); + v1alpha1_resource_claim_template->spec = NULL; + } + free(v1alpha1_resource_claim_template); +} + +cJSON *v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_template->api_version + if(v1alpha1_resource_claim_template->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim_template->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template->kind + if(v1alpha1_resource_claim_template->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_template->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template->metadata + if(v1alpha1_resource_claim_template->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_claim_template->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_template->spec + if (!v1alpha1_resource_claim_template->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_parseFromJSON(cJSON *v1alpha1_resource_claim_templateJSON){ + + v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_template->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim_template->spec + v1alpha1_resource_claim_template_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_resource_claim_template->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_claim_template->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_templateJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_resource_claim_template_spec_parseFromJSON(spec); //nonprimitive + + + v1alpha1_resource_claim_template_local_var = v1alpha1_resource_claim_template_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim + ); + + return v1alpha1_resource_claim_template_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_resource_claim_template_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_template.h b/kubernetes/model/v1alpha1_resource_claim_template.h new file mode 100644 index 0000000..1768193 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_template.h + * + * ResourceClaimTemplate is used to produce ResourceClaim objects. + */ + +#ifndef _v1alpha1_resource_claim_template_H_ +#define _v1alpha1_resource_claim_template_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_template_t v1alpha1_resource_claim_template_t; + +#include "v1_object_meta.h" +#include "v1alpha1_resource_claim_template_spec.h" + + + +typedef struct v1alpha1_resource_claim_template_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_claim_template_spec_t *spec; //model + +} v1alpha1_resource_claim_template_t; + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_claim_template_spec_t *spec +); + +void v1alpha1_resource_claim_template_free(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template); + +v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template_parseFromJSON(cJSON *v1alpha1_resource_claim_templateJSON); + +cJSON *v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_t *v1alpha1_resource_claim_template); + +#endif /* _v1alpha1_resource_claim_template_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_template_list.c b/kubernetes/model/v1alpha1_resource_claim_template_list.c new file mode 100644 index 0000000..9a91e5d --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_template_list.h" + + + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_local_var = malloc(sizeof(v1alpha1_resource_claim_template_list_t)); + if (!v1alpha1_resource_claim_template_list_local_var) { + return NULL; + } + v1alpha1_resource_claim_template_list_local_var->api_version = api_version; + v1alpha1_resource_claim_template_list_local_var->items = items; + v1alpha1_resource_claim_template_list_local_var->kind = kind; + v1alpha1_resource_claim_template_list_local_var->metadata = metadata; + + return v1alpha1_resource_claim_template_list_local_var; +} + + +void v1alpha1_resource_claim_template_list_free(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list) { + if(NULL == v1alpha1_resource_claim_template_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_template_list->api_version) { + free(v1alpha1_resource_claim_template_list->api_version); + v1alpha1_resource_claim_template_list->api_version = NULL; + } + if (v1alpha1_resource_claim_template_list->items) { + list_ForEach(listEntry, v1alpha1_resource_claim_template_list->items) { + v1alpha1_resource_claim_template_free(listEntry->data); + } + list_freeList(v1alpha1_resource_claim_template_list->items); + v1alpha1_resource_claim_template_list->items = NULL; + } + if (v1alpha1_resource_claim_template_list->kind) { + free(v1alpha1_resource_claim_template_list->kind); + v1alpha1_resource_claim_template_list->kind = NULL; + } + if (v1alpha1_resource_claim_template_list->metadata) { + v1_list_meta_free(v1alpha1_resource_claim_template_list->metadata); + v1alpha1_resource_claim_template_list->metadata = NULL; + } + free(v1alpha1_resource_claim_template_list); +} + +cJSON *v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_template_list->api_version + if(v1alpha1_resource_claim_template_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_claim_template_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template_list->items + if (!v1alpha1_resource_claim_template_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_resource_claim_template_list->items) { + list_ForEach(itemsListEntry, v1alpha1_resource_claim_template_list->items) { + cJSON *itemLocal = v1alpha1_resource_claim_template_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_resource_claim_template_list->kind + if(v1alpha1_resource_claim_template_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_claim_template_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_claim_template_list->metadata + if(v1alpha1_resource_claim_template_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_resource_claim_template_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_parseFromJSON(cJSON *v1alpha1_resource_claim_template_listJSON){ + + v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_local_var = NULL; + + // define the local list for v1alpha1_resource_claim_template_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_resource_claim_template_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_resource_claim_template_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_claim_template_t *itemsItem = v1alpha1_resource_claim_template_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_resource_claim_template_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_claim_template_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_resource_claim_template_list_local_var = v1alpha1_resource_claim_template_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_resource_claim_template_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_resource_claim_template_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_template_list.h b/kubernetes/model/v1alpha1_resource_claim_template_list.h new file mode 100644 index 0000000..2633fbb --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_claim_template_list.h + * + * ResourceClaimTemplateList is a collection of claim templates. + */ + +#ifndef _v1alpha1_resource_claim_template_list_H_ +#define _v1alpha1_resource_claim_template_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_template_list_t v1alpha1_resource_claim_template_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_resource_claim_template.h" + + + +typedef struct v1alpha1_resource_claim_template_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_resource_claim_template_list_t; + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_resource_claim_template_list_free(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list); + +v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list_parseFromJSON(cJSON *v1alpha1_resource_claim_template_listJSON); + +cJSON *v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_t *v1alpha1_resource_claim_template_list); + +#endif /* _v1alpha1_resource_claim_template_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_claim_template_spec.c b/kubernetes/model/v1alpha1_resource_claim_template_spec.c new file mode 100644 index 0000000..d36d9b3 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_spec.c @@ -0,0 +1,119 @@ +#include +#include +#include +#include "v1alpha1_resource_claim_template_spec.h" + + + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_create( + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec + ) { + v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_local_var = malloc(sizeof(v1alpha1_resource_claim_template_spec_t)); + if (!v1alpha1_resource_claim_template_spec_local_var) { + return NULL; + } + v1alpha1_resource_claim_template_spec_local_var->metadata = metadata; + v1alpha1_resource_claim_template_spec_local_var->spec = spec; + + return v1alpha1_resource_claim_template_spec_local_var; +} + + +void v1alpha1_resource_claim_template_spec_free(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec) { + if(NULL == v1alpha1_resource_claim_template_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_claim_template_spec->metadata) { + v1_object_meta_free(v1alpha1_resource_claim_template_spec->metadata); + v1alpha1_resource_claim_template_spec->metadata = NULL; + } + if (v1alpha1_resource_claim_template_spec->spec) { + v1alpha1_resource_claim_spec_free(v1alpha1_resource_claim_template_spec->spec); + v1alpha1_resource_claim_template_spec->spec = NULL; + } + free(v1alpha1_resource_claim_template_spec); +} + +cJSON *v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_claim_template_spec->metadata + if(v1alpha1_resource_claim_template_spec->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_claim_template_spec->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_claim_template_spec->spec + if (!v1alpha1_resource_claim_template_spec->spec) { + goto fail; + } + cJSON *spec_local_JSON = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_template_spec->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_template_specJSON){ + + v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_local_var = NULL; + + // define the local variable for v1alpha1_resource_claim_template_spec->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_claim_template_spec->spec + v1alpha1_resource_claim_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_resource_claim_template_spec->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_specJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_claim_template_spec->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_claim_template_specJSON, "spec"); + if (!spec) { + goto end; + } + + + spec_local_nonprim = v1alpha1_resource_claim_spec_parseFromJSON(spec); //nonprimitive + + + v1alpha1_resource_claim_template_spec_local_var = v1alpha1_resource_claim_template_spec_create ( + metadata ? metadata_local_nonprim : NULL, + spec_local_nonprim + ); + + return v1alpha1_resource_claim_template_spec_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_resource_claim_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_claim_template_spec.h b/kubernetes/model/v1alpha1_resource_claim_template_spec.h new file mode 100644 index 0000000..7e74098 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_claim_template_spec.h @@ -0,0 +1,41 @@ +/* + * v1alpha1_resource_claim_template_spec.h + * + * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. + */ + +#ifndef _v1alpha1_resource_claim_template_spec_H_ +#define _v1alpha1_resource_claim_template_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_claim_template_spec_t v1alpha1_resource_claim_template_spec_t; + +#include "v1_object_meta.h" +#include "v1alpha1_resource_claim_spec.h" + + + +typedef struct v1alpha1_resource_claim_template_spec_t { + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_claim_spec_t *spec; //model + +} v1alpha1_resource_claim_template_spec_t; + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_create( + v1_object_meta_t *metadata, + v1alpha1_resource_claim_spec_t *spec +); + +void v1alpha1_resource_claim_template_spec_free(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec); + +v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec_parseFromJSON(cJSON *v1alpha1_resource_claim_template_specJSON); + +cJSON *v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_t *v1alpha1_resource_claim_template_spec); + +#endif /* _v1alpha1_resource_claim_template_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_class.c b/kubernetes/model/v1alpha1_resource_class.c new file mode 100644 index 0000000..7a6e491 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class.c @@ -0,0 +1,224 @@ +#include +#include +#include +#include "v1alpha1_resource_class.h" + + + +v1alpha1_resource_class_t *v1alpha1_resource_class_create( + char *api_version, + char *driver_name, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_class_parameters_reference_t *parameters_ref, + v1_node_selector_t *suitable_nodes + ) { + v1alpha1_resource_class_t *v1alpha1_resource_class_local_var = malloc(sizeof(v1alpha1_resource_class_t)); + if (!v1alpha1_resource_class_local_var) { + return NULL; + } + v1alpha1_resource_class_local_var->api_version = api_version; + v1alpha1_resource_class_local_var->driver_name = driver_name; + v1alpha1_resource_class_local_var->kind = kind; + v1alpha1_resource_class_local_var->metadata = metadata; + v1alpha1_resource_class_local_var->parameters_ref = parameters_ref; + v1alpha1_resource_class_local_var->suitable_nodes = suitable_nodes; + + return v1alpha1_resource_class_local_var; +} + + +void v1alpha1_resource_class_free(v1alpha1_resource_class_t *v1alpha1_resource_class) { + if(NULL == v1alpha1_resource_class){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_class->api_version) { + free(v1alpha1_resource_class->api_version); + v1alpha1_resource_class->api_version = NULL; + } + if (v1alpha1_resource_class->driver_name) { + free(v1alpha1_resource_class->driver_name); + v1alpha1_resource_class->driver_name = NULL; + } + if (v1alpha1_resource_class->kind) { + free(v1alpha1_resource_class->kind); + v1alpha1_resource_class->kind = NULL; + } + if (v1alpha1_resource_class->metadata) { + v1_object_meta_free(v1alpha1_resource_class->metadata); + v1alpha1_resource_class->metadata = NULL; + } + if (v1alpha1_resource_class->parameters_ref) { + v1alpha1_resource_class_parameters_reference_free(v1alpha1_resource_class->parameters_ref); + v1alpha1_resource_class->parameters_ref = NULL; + } + if (v1alpha1_resource_class->suitable_nodes) { + v1_node_selector_free(v1alpha1_resource_class->suitable_nodes); + v1alpha1_resource_class->suitable_nodes = NULL; + } + free(v1alpha1_resource_class); +} + +cJSON *v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_t *v1alpha1_resource_class) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_class->api_version + if(v1alpha1_resource_class->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_class->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class->driver_name + if (!v1alpha1_resource_class->driver_name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "driverName", v1alpha1_resource_class->driver_name) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_class->kind + if(v1alpha1_resource_class->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_class->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class->metadata + if(v1alpha1_resource_class->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_resource_class->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_class->parameters_ref + if(v1alpha1_resource_class->parameters_ref) { + cJSON *parameters_ref_local_JSON = v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class->parameters_ref); + if(parameters_ref_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "parametersRef", parameters_ref_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_resource_class->suitable_nodes + if(v1alpha1_resource_class->suitable_nodes) { + cJSON *suitable_nodes_local_JSON = v1_node_selector_convertToJSON(v1alpha1_resource_class->suitable_nodes); + if(suitable_nodes_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "suitableNodes", suitable_nodes_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_class_t *v1alpha1_resource_class_parseFromJSON(cJSON *v1alpha1_resource_classJSON){ + + v1alpha1_resource_class_t *v1alpha1_resource_class_local_var = NULL; + + // define the local variable for v1alpha1_resource_class->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_class->parameters_ref + v1alpha1_resource_class_parameters_reference_t *parameters_ref_local_nonprim = NULL; + + // define the local variable for v1alpha1_resource_class->suitable_nodes + v1_node_selector_t *suitable_nodes_local_nonprim = NULL; + + // v1alpha1_resource_class->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_class->driver_name + cJSON *driver_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "driverName"); + if (!driver_name) { + goto end; + } + + + if(!cJSON_IsString(driver_name)) + { + goto end; //String + } + + // v1alpha1_resource_class->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_class->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_resource_class->parameters_ref + cJSON *parameters_ref = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "parametersRef"); + if (parameters_ref) { + parameters_ref_local_nonprim = v1alpha1_resource_class_parameters_reference_parseFromJSON(parameters_ref); //nonprimitive + } + + // v1alpha1_resource_class->suitable_nodes + cJSON *suitable_nodes = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_classJSON, "suitableNodes"); + if (suitable_nodes) { + suitable_nodes_local_nonprim = v1_node_selector_parseFromJSON(suitable_nodes); //nonprimitive + } + + + v1alpha1_resource_class_local_var = v1alpha1_resource_class_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + strdup(driver_name->valuestring), + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + parameters_ref ? parameters_ref_local_nonprim : NULL, + suitable_nodes ? suitable_nodes_local_nonprim : NULL + ); + + return v1alpha1_resource_class_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (parameters_ref_local_nonprim) { + v1alpha1_resource_class_parameters_reference_free(parameters_ref_local_nonprim); + parameters_ref_local_nonprim = NULL; + } + if (suitable_nodes_local_nonprim) { + v1_node_selector_free(suitable_nodes_local_nonprim); + suitable_nodes_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_class.h b/kubernetes/model/v1alpha1_resource_class.h new file mode 100644 index 0000000..58bed3a --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class.h @@ -0,0 +1,50 @@ +/* + * v1alpha1_resource_class.h + * + * ResourceClass is used by administrators to influence how resources are allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + */ + +#ifndef _v1alpha1_resource_class_H_ +#define _v1alpha1_resource_class_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_class_t v1alpha1_resource_class_t; + +#include "v1_node_selector.h" +#include "v1_object_meta.h" +#include "v1alpha1_resource_class_parameters_reference.h" + + + +typedef struct v1alpha1_resource_class_t { + char *api_version; // string + char *driver_name; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_resource_class_parameters_reference_t *parameters_ref; //model + struct v1_node_selector_t *suitable_nodes; //model + +} v1alpha1_resource_class_t; + +v1alpha1_resource_class_t *v1alpha1_resource_class_create( + char *api_version, + char *driver_name, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_resource_class_parameters_reference_t *parameters_ref, + v1_node_selector_t *suitable_nodes +); + +void v1alpha1_resource_class_free(v1alpha1_resource_class_t *v1alpha1_resource_class); + +v1alpha1_resource_class_t *v1alpha1_resource_class_parseFromJSON(cJSON *v1alpha1_resource_classJSON); + +cJSON *v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_t *v1alpha1_resource_class); + +#endif /* _v1alpha1_resource_class_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_class_list.c b/kubernetes/model/v1alpha1_resource_class_list.c new file mode 100644 index 0000000..99e84c6 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1alpha1_resource_class_list.h" + + + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_local_var = malloc(sizeof(v1alpha1_resource_class_list_t)); + if (!v1alpha1_resource_class_list_local_var) { + return NULL; + } + v1alpha1_resource_class_list_local_var->api_version = api_version; + v1alpha1_resource_class_list_local_var->items = items; + v1alpha1_resource_class_list_local_var->kind = kind; + v1alpha1_resource_class_list_local_var->metadata = metadata; + + return v1alpha1_resource_class_list_local_var; +} + + +void v1alpha1_resource_class_list_free(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list) { + if(NULL == v1alpha1_resource_class_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_class_list->api_version) { + free(v1alpha1_resource_class_list->api_version); + v1alpha1_resource_class_list->api_version = NULL; + } + if (v1alpha1_resource_class_list->items) { + list_ForEach(listEntry, v1alpha1_resource_class_list->items) { + v1alpha1_resource_class_free(listEntry->data); + } + list_freeList(v1alpha1_resource_class_list->items); + v1alpha1_resource_class_list->items = NULL; + } + if (v1alpha1_resource_class_list->kind) { + free(v1alpha1_resource_class_list->kind); + v1alpha1_resource_class_list->kind = NULL; + } + if (v1alpha1_resource_class_list->metadata) { + v1_list_meta_free(v1alpha1_resource_class_list->metadata); + v1alpha1_resource_class_list->metadata = NULL; + } + free(v1alpha1_resource_class_list); +} + +cJSON *v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_class_list->api_version + if(v1alpha1_resource_class_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_resource_class_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class_list->items + if (!v1alpha1_resource_class_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_resource_class_list->items) { + list_ForEach(itemsListEntry, v1alpha1_resource_class_list->items) { + cJSON *itemLocal = v1alpha1_resource_class_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1alpha1_resource_class_list->kind + if(v1alpha1_resource_class_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_class_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class_list->metadata + if(v1alpha1_resource_class_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_resource_class_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_parseFromJSON(cJSON *v1alpha1_resource_class_listJSON){ + + v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_local_var = NULL; + + // define the local list for v1alpha1_resource_class_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_resource_class_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_resource_class_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_resource_class_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_resource_class_t *itemsItem = v1alpha1_resource_class_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1alpha1_resource_class_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_resource_class_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_resource_class_list_local_var = v1alpha1_resource_class_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_resource_class_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_resource_class_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_class_list.h b/kubernetes/model/v1alpha1_resource_class_list.h new file mode 100644 index 0000000..e20944c --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_resource_class_list.h + * + * ResourceClassList is a collection of classes. + */ + +#ifndef _v1alpha1_resource_class_list_H_ +#define _v1alpha1_resource_class_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_class_list_t v1alpha1_resource_class_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_resource_class.h" + + + +typedef struct v1alpha1_resource_class_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_resource_class_list_t; + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_resource_class_list_free(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list); + +v1alpha1_resource_class_list_t *v1alpha1_resource_class_list_parseFromJSON(cJSON *v1alpha1_resource_class_listJSON); + +cJSON *v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_t *v1alpha1_resource_class_list); + +#endif /* _v1alpha1_resource_class_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_resource_class_parameters_reference.c b/kubernetes/model/v1alpha1_resource_class_parameters_reference.c new file mode 100644 index 0000000..4526887 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_parameters_reference.c @@ -0,0 +1,153 @@ +#include +#include +#include +#include "v1alpha1_resource_class_parameters_reference.h" + + + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace + ) { + v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_local_var = malloc(sizeof(v1alpha1_resource_class_parameters_reference_t)); + if (!v1alpha1_resource_class_parameters_reference_local_var) { + return NULL; + } + v1alpha1_resource_class_parameters_reference_local_var->api_group = api_group; + v1alpha1_resource_class_parameters_reference_local_var->kind = kind; + v1alpha1_resource_class_parameters_reference_local_var->name = name; + v1alpha1_resource_class_parameters_reference_local_var->_namespace = _namespace; + + return v1alpha1_resource_class_parameters_reference_local_var; +} + + +void v1alpha1_resource_class_parameters_reference_free(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference) { + if(NULL == v1alpha1_resource_class_parameters_reference){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_resource_class_parameters_reference->api_group) { + free(v1alpha1_resource_class_parameters_reference->api_group); + v1alpha1_resource_class_parameters_reference->api_group = NULL; + } + if (v1alpha1_resource_class_parameters_reference->kind) { + free(v1alpha1_resource_class_parameters_reference->kind); + v1alpha1_resource_class_parameters_reference->kind = NULL; + } + if (v1alpha1_resource_class_parameters_reference->name) { + free(v1alpha1_resource_class_parameters_reference->name); + v1alpha1_resource_class_parameters_reference->name = NULL; + } + if (v1alpha1_resource_class_parameters_reference->_namespace) { + free(v1alpha1_resource_class_parameters_reference->_namespace); + v1alpha1_resource_class_parameters_reference->_namespace = NULL; + } + free(v1alpha1_resource_class_parameters_reference); +} + +cJSON *v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_resource_class_parameters_reference->api_group + if(v1alpha1_resource_class_parameters_reference->api_group) { + if(cJSON_AddStringToObject(item, "apiGroup", v1alpha1_resource_class_parameters_reference->api_group) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_resource_class_parameters_reference->kind + if (!v1alpha1_resource_class_parameters_reference->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1alpha1_resource_class_parameters_reference->kind) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_class_parameters_reference->name + if (!v1alpha1_resource_class_parameters_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1alpha1_resource_class_parameters_reference->name) == NULL) { + goto fail; //String + } + + + // v1alpha1_resource_class_parameters_reference->_namespace + if(v1alpha1_resource_class_parameters_reference->_namespace) { + if(cJSON_AddStringToObject(item, "namespace", v1alpha1_resource_class_parameters_reference->_namespace) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_class_parameters_referenceJSON){ + + v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_local_var = NULL; + + // v1alpha1_resource_class_parameters_reference->api_group + cJSON *api_group = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "apiGroup"); + if (api_group) { + if(!cJSON_IsString(api_group) && !cJSON_IsNull(api_group)) + { + goto end; //String + } + } + + // v1alpha1_resource_class_parameters_reference->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1alpha1_resource_class_parameters_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1alpha1_resource_class_parameters_reference->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1alpha1_resource_class_parameters_referenceJSON, "namespace"); + if (_namespace) { + if(!cJSON_IsString(_namespace) && !cJSON_IsNull(_namespace)) + { + goto end; //String + } + } + + + v1alpha1_resource_class_parameters_reference_local_var = v1alpha1_resource_class_parameters_reference_create ( + api_group && !cJSON_IsNull(api_group) ? strdup(api_group->valuestring) : NULL, + strdup(kind->valuestring), + strdup(name->valuestring), + _namespace && !cJSON_IsNull(_namespace) ? strdup(_namespace->valuestring) : NULL + ); + + return v1alpha1_resource_class_parameters_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_resource_class_parameters_reference.h b/kubernetes/model/v1alpha1_resource_class_parameters_reference.h new file mode 100644 index 0000000..120b078 --- /dev/null +++ b/kubernetes/model/v1alpha1_resource_class_parameters_reference.h @@ -0,0 +1,43 @@ +/* + * v1alpha1_resource_class_parameters_reference.h + * + * ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass. + */ + +#ifndef _v1alpha1_resource_class_parameters_reference_H_ +#define _v1alpha1_resource_class_parameters_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_resource_class_parameters_reference_t v1alpha1_resource_class_parameters_reference_t; + + + + +typedef struct v1alpha1_resource_class_parameters_reference_t { + char *api_group; // string + char *kind; // string + char *name; // string + char *_namespace; // string + +} v1alpha1_resource_class_parameters_reference_t; + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_create( + char *api_group, + char *kind, + char *name, + char *_namespace +); + +void v1alpha1_resource_class_parameters_reference_free(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference); + +v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference_parseFromJSON(cJSON *v1alpha1_resource_class_parameters_referenceJSON); + +cJSON *v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_t *v1alpha1_resource_class_parameters_reference); + +#endif /* _v1alpha1_resource_class_parameters_reference_H_ */ + diff --git a/kubernetes/model/v1alpha1_self_subject_review.c b/kubernetes/model/v1alpha1_self_subject_review.c new file mode 100644 index 0000000..557ecc3 --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review.c @@ -0,0 +1,163 @@ +#include +#include +#include +#include "v1alpha1_self_subject_review.h" + + + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_self_subject_review_status_t *status + ) { + v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_local_var = malloc(sizeof(v1alpha1_self_subject_review_t)); + if (!v1alpha1_self_subject_review_local_var) { + return NULL; + } + v1alpha1_self_subject_review_local_var->api_version = api_version; + v1alpha1_self_subject_review_local_var->kind = kind; + v1alpha1_self_subject_review_local_var->metadata = metadata; + v1alpha1_self_subject_review_local_var->status = status; + + return v1alpha1_self_subject_review_local_var; +} + + +void v1alpha1_self_subject_review_free(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review) { + if(NULL == v1alpha1_self_subject_review){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_self_subject_review->api_version) { + free(v1alpha1_self_subject_review->api_version); + v1alpha1_self_subject_review->api_version = NULL; + } + if (v1alpha1_self_subject_review->kind) { + free(v1alpha1_self_subject_review->kind); + v1alpha1_self_subject_review->kind = NULL; + } + if (v1alpha1_self_subject_review->metadata) { + v1_object_meta_free(v1alpha1_self_subject_review->metadata); + v1alpha1_self_subject_review->metadata = NULL; + } + if (v1alpha1_self_subject_review->status) { + v1alpha1_self_subject_review_status_free(v1alpha1_self_subject_review->status); + v1alpha1_self_subject_review->status = NULL; + } + free(v1alpha1_self_subject_review); +} + +cJSON *v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_self_subject_review->api_version + if(v1alpha1_self_subject_review->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_self_subject_review->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_self_subject_review->kind + if(v1alpha1_self_subject_review->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_self_subject_review->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_self_subject_review->metadata + if(v1alpha1_self_subject_review->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_self_subject_review->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_self_subject_review->status + if(v1alpha1_self_subject_review->status) { + cJSON *status_local_JSON = v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_parseFromJSON(cJSON *v1alpha1_self_subject_reviewJSON){ + + v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_local_var = NULL; + + // define the local variable for v1alpha1_self_subject_review->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_self_subject_review->status + v1alpha1_self_subject_review_status_t *status_local_nonprim = NULL; + + // v1alpha1_self_subject_review->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_self_subject_review->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_self_subject_review->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_self_subject_review->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_reviewJSON, "status"); + if (status) { + status_local_nonprim = v1alpha1_self_subject_review_status_parseFromJSON(status); //nonprimitive + } + + + v1alpha1_self_subject_review_local_var = v1alpha1_self_subject_review_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + status ? status_local_nonprim : NULL + ); + + return v1alpha1_self_subject_review_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1alpha1_self_subject_review_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_self_subject_review.h b/kubernetes/model/v1alpha1_self_subject_review.h new file mode 100644 index 0000000..40dd31a --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_self_subject_review.h + * + * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. + */ + +#ifndef _v1alpha1_self_subject_review_H_ +#define _v1alpha1_self_subject_review_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_self_subject_review_t v1alpha1_self_subject_review_t; + +#include "v1_object_meta.h" +#include "v1alpha1_self_subject_review_status.h" + + + +typedef struct v1alpha1_self_subject_review_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_self_subject_review_status_t *status; //model + +} v1alpha1_self_subject_review_t; + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_self_subject_review_status_t *status +); + +void v1alpha1_self_subject_review_free(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review); + +v1alpha1_self_subject_review_t *v1alpha1_self_subject_review_parseFromJSON(cJSON *v1alpha1_self_subject_reviewJSON); + +cJSON *v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_t *v1alpha1_self_subject_review); + +#endif /* _v1alpha1_self_subject_review_H_ */ + diff --git a/kubernetes/model/v1alpha1_self_subject_review_status.c b/kubernetes/model/v1alpha1_self_subject_review_status.c new file mode 100644 index 0000000..b30367e --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review_status.c @@ -0,0 +1,82 @@ +#include +#include +#include +#include "v1alpha1_self_subject_review_status.h" + + + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_create( + v1_user_info_t *user_info + ) { + v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_local_var = malloc(sizeof(v1alpha1_self_subject_review_status_t)); + if (!v1alpha1_self_subject_review_status_local_var) { + return NULL; + } + v1alpha1_self_subject_review_status_local_var->user_info = user_info; + + return v1alpha1_self_subject_review_status_local_var; +} + + +void v1alpha1_self_subject_review_status_free(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status) { + if(NULL == v1alpha1_self_subject_review_status){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_self_subject_review_status->user_info) { + v1_user_info_free(v1alpha1_self_subject_review_status->user_info); + v1alpha1_self_subject_review_status->user_info = NULL; + } + free(v1alpha1_self_subject_review_status); +} + +cJSON *v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_self_subject_review_status->user_info + if(v1alpha1_self_subject_review_status->user_info) { + cJSON *user_info_local_JSON = v1_user_info_convertToJSON(v1alpha1_self_subject_review_status->user_info); + if(user_info_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "userInfo", user_info_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_parseFromJSON(cJSON *v1alpha1_self_subject_review_statusJSON){ + + v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_local_var = NULL; + + // define the local variable for v1alpha1_self_subject_review_status->user_info + v1_user_info_t *user_info_local_nonprim = NULL; + + // v1alpha1_self_subject_review_status->user_info + cJSON *user_info = cJSON_GetObjectItemCaseSensitive(v1alpha1_self_subject_review_statusJSON, "userInfo"); + if (user_info) { + user_info_local_nonprim = v1_user_info_parseFromJSON(user_info); //nonprimitive + } + + + v1alpha1_self_subject_review_status_local_var = v1alpha1_self_subject_review_status_create ( + user_info ? user_info_local_nonprim : NULL + ); + + return v1alpha1_self_subject_review_status_local_var; +end: + if (user_info_local_nonprim) { + v1_user_info_free(user_info_local_nonprim); + user_info_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_self_subject_review_status.h b/kubernetes/model/v1alpha1_self_subject_review_status.h new file mode 100644 index 0000000..8e2b3aa --- /dev/null +++ b/kubernetes/model/v1alpha1_self_subject_review_status.h @@ -0,0 +1,38 @@ +/* + * v1alpha1_self_subject_review_status.h + * + * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. + */ + +#ifndef _v1alpha1_self_subject_review_status_H_ +#define _v1alpha1_self_subject_review_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_self_subject_review_status_t v1alpha1_self_subject_review_status_t; + +#include "v1_user_info.h" + + + +typedef struct v1alpha1_self_subject_review_status_t { + struct v1_user_info_t *user_info; //model + +} v1alpha1_self_subject_review_status_t; + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_create( + v1_user_info_t *user_info +); + +void v1alpha1_self_subject_review_status_free(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status); + +v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status_parseFromJSON(cJSON *v1alpha1_self_subject_review_statusJSON); + +cJSON *v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_t *v1alpha1_self_subject_review_status); + +#endif /* _v1alpha1_self_subject_review_status_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy.c b/kubernetes/model/v1alpha1_validating_admission_policy.c new file mode 100644 index 0000000..c7d116c --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy.c @@ -0,0 +1,163 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy.h" + + + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_spec_t *spec + ) { + v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_t)); + if (!v1alpha1_validating_admission_policy_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_local_var->kind = kind; + v1alpha1_validating_admission_policy_local_var->metadata = metadata; + v1alpha1_validating_admission_policy_local_var->spec = spec; + + return v1alpha1_validating_admission_policy_local_var; +} + + +void v1alpha1_validating_admission_policy_free(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy) { + if(NULL == v1alpha1_validating_admission_policy){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy->api_version) { + free(v1alpha1_validating_admission_policy->api_version); + v1alpha1_validating_admission_policy->api_version = NULL; + } + if (v1alpha1_validating_admission_policy->kind) { + free(v1alpha1_validating_admission_policy->kind); + v1alpha1_validating_admission_policy->kind = NULL; + } + if (v1alpha1_validating_admission_policy->metadata) { + v1_object_meta_free(v1alpha1_validating_admission_policy->metadata); + v1alpha1_validating_admission_policy->metadata = NULL; + } + if (v1alpha1_validating_admission_policy->spec) { + v1alpha1_validating_admission_policy_spec_free(v1alpha1_validating_admission_policy->spec); + v1alpha1_validating_admission_policy->spec = NULL; + } + free(v1alpha1_validating_admission_policy); +} + +cJSON *v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy->api_version + if(v1alpha1_validating_admission_policy->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy->kind + if(v1alpha1_validating_admission_policy->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy->metadata + if(v1alpha1_validating_admission_policy->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_validating_admission_policy->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy->spec + if(v1alpha1_validating_admission_policy->spec) { + cJSON *spec_local_JSON = v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_parseFromJSON(cJSON *v1alpha1_validating_admission_policyJSON){ + + v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy->spec + v1alpha1_validating_admission_policy_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_validating_admission_policy->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policyJSON, "spec"); + if (spec) { + spec_local_nonprim = v1alpha1_validating_admission_policy_spec_parseFromJSON(spec); //nonprimitive + } + + + v1alpha1_validating_admission_policy_local_var = v1alpha1_validating_admission_policy_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_validating_admission_policy_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy.h b/kubernetes/model/v1alpha1_validating_admission_policy.h new file mode 100644 index 0000000..313823b --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy.h + * + * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. + */ + +#ifndef _v1alpha1_validating_admission_policy_H_ +#define _v1alpha1_validating_admission_policy_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_t v1alpha1_validating_admission_policy_t; + +#include "v1_object_meta.h" +#include "v1alpha1_validating_admission_policy_spec.h" + + + +typedef struct v1alpha1_validating_admission_policy_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_validating_admission_policy_spec_t *spec; //model + +} v1alpha1_validating_admission_policy_t; + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_spec_t *spec +); + +void v1alpha1_validating_admission_policy_free(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy); + +v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy_parseFromJSON(cJSON *v1alpha1_validating_admission_policyJSON); + +cJSON *v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_t *v1alpha1_validating_admission_policy); + +#endif /* _v1alpha1_validating_admission_policy_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding.c b/kubernetes/model/v1alpha1_validating_admission_policy_binding.c new file mode 100644 index 0000000..4d35e30 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding.c @@ -0,0 +1,163 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_binding.h" + + + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_binding_spec_t *spec + ) { + v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_binding_t)); + if (!v1alpha1_validating_admission_policy_binding_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_binding_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_binding_local_var->kind = kind; + v1alpha1_validating_admission_policy_binding_local_var->metadata = metadata; + v1alpha1_validating_admission_policy_binding_local_var->spec = spec; + + return v1alpha1_validating_admission_policy_binding_local_var; +} + + +void v1alpha1_validating_admission_policy_binding_free(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding) { + if(NULL == v1alpha1_validating_admission_policy_binding){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_binding->api_version) { + free(v1alpha1_validating_admission_policy_binding->api_version); + v1alpha1_validating_admission_policy_binding->api_version = NULL; + } + if (v1alpha1_validating_admission_policy_binding->kind) { + free(v1alpha1_validating_admission_policy_binding->kind); + v1alpha1_validating_admission_policy_binding->kind = NULL; + } + if (v1alpha1_validating_admission_policy_binding->metadata) { + v1_object_meta_free(v1alpha1_validating_admission_policy_binding->metadata); + v1alpha1_validating_admission_policy_binding->metadata = NULL; + } + if (v1alpha1_validating_admission_policy_binding->spec) { + v1alpha1_validating_admission_policy_binding_spec_free(v1alpha1_validating_admission_policy_binding->spec); + v1alpha1_validating_admission_policy_binding->spec = NULL; + } + free(v1alpha1_validating_admission_policy_binding); +} + +cJSON *v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_binding->api_version + if(v1alpha1_validating_admission_policy_binding->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy_binding->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding->kind + if(v1alpha1_validating_admission_policy_binding->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy_binding->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding->metadata + if(v1alpha1_validating_admission_policy_binding->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1alpha1_validating_admission_policy_binding->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_binding->spec + if(v1alpha1_validating_admission_policy_binding->spec) { + cJSON *spec_local_JSON = v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_bindingJSON){ + + v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding->spec + v1alpha1_validating_admission_policy_binding_spec_t *spec_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_binding->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1alpha1_validating_admission_policy_binding->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_bindingJSON, "spec"); + if (spec) { + spec_local_nonprim = v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(spec); //nonprimitive + } + + + v1alpha1_validating_admission_policy_binding_local_var = v1alpha1_validating_admission_policy_binding_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_binding_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1alpha1_validating_admission_policy_binding_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding.h b/kubernetes/model/v1alpha1_validating_admission_policy_binding.h new file mode 100644 index 0000000..4ac6050 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy_binding.h + * + * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. + */ + +#ifndef _v1alpha1_validating_admission_policy_binding_H_ +#define _v1alpha1_validating_admission_policy_binding_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_binding_t v1alpha1_validating_admission_policy_binding_t; + +#include "v1_object_meta.h" +#include "v1alpha1_validating_admission_policy_binding_spec.h" + + + +typedef struct v1alpha1_validating_admission_policy_binding_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1alpha1_validating_admission_policy_binding_spec_t *spec; //model + +} v1alpha1_validating_admission_policy_binding_t; + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1alpha1_validating_admission_policy_binding_spec_t *spec +); + +void v1alpha1_validating_admission_policy_binding_free(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding); + +v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_bindingJSON); + +cJSON *v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_t *v1alpha1_validating_admission_policy_binding); + +#endif /* _v1alpha1_validating_admission_policy_binding_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.c b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.c new file mode 100644 index 0000000..5a4dc11 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.c @@ -0,0 +1,193 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_binding_list.h" + + + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_binding_list_t)); + if (!v1alpha1_validating_admission_policy_binding_list_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_binding_list_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_binding_list_local_var->items = items; + v1alpha1_validating_admission_policy_binding_list_local_var->kind = kind; + v1alpha1_validating_admission_policy_binding_list_local_var->metadata = metadata; + + return v1alpha1_validating_admission_policy_binding_list_local_var; +} + + +void v1alpha1_validating_admission_policy_binding_list_free(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list) { + if(NULL == v1alpha1_validating_admission_policy_binding_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_binding_list->api_version) { + free(v1alpha1_validating_admission_policy_binding_list->api_version); + v1alpha1_validating_admission_policy_binding_list->api_version = NULL; + } + if (v1alpha1_validating_admission_policy_binding_list->items) { + list_ForEach(listEntry, v1alpha1_validating_admission_policy_binding_list->items) { + v1alpha1_validating_admission_policy_binding_free(listEntry->data); + } + list_freeList(v1alpha1_validating_admission_policy_binding_list->items); + v1alpha1_validating_admission_policy_binding_list->items = NULL; + } + if (v1alpha1_validating_admission_policy_binding_list->kind) { + free(v1alpha1_validating_admission_policy_binding_list->kind); + v1alpha1_validating_admission_policy_binding_list->kind = NULL; + } + if (v1alpha1_validating_admission_policy_binding_list->metadata) { + v1_list_meta_free(v1alpha1_validating_admission_policy_binding_list->metadata); + v1alpha1_validating_admission_policy_binding_list->metadata = NULL; + } + free(v1alpha1_validating_admission_policy_binding_list); +} + +cJSON *v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_binding_list->api_version + if(v1alpha1_validating_admission_policy_binding_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy_binding_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding_list->items + if(v1alpha1_validating_admission_policy_binding_list->items) { + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_validating_admission_policy_binding_list->items) { + list_ForEach(itemsListEntry, v1alpha1_validating_admission_policy_binding_list->items) { + cJSON *itemLocal = v1alpha1_validating_admission_policy_binding_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + } + + + // v1alpha1_validating_admission_policy_binding_list->kind + if(v1alpha1_validating_admission_policy_binding_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy_binding_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_binding_list->metadata + if(v1alpha1_validating_admission_policy_binding_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_validating_admission_policy_binding_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_listJSON){ + + v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_local_var = NULL; + + // define the local list for v1alpha1_validating_admission_policy_binding_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_binding_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "items"); + if (items) { + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_validating_admission_policy_binding_t *itemsItem = v1alpha1_validating_admission_policy_binding_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + } + + // v1alpha1_validating_admission_policy_binding_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_binding_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_validating_admission_policy_binding_list_local_var = v1alpha1_validating_admission_policy_binding_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + items ? itemsList : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_binding_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_validating_admission_policy_binding_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.h b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.h new file mode 100644 index 0000000..527aa2b --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy_binding_list.h + * + * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. + */ + +#ifndef _v1alpha1_validating_admission_policy_binding_list_H_ +#define _v1alpha1_validating_admission_policy_binding_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_binding_list_t v1alpha1_validating_admission_policy_binding_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_validating_admission_policy_binding.h" + + + +typedef struct v1alpha1_validating_admission_policy_binding_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_validating_admission_policy_binding_list_t; + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_validating_admission_policy_binding_list_free(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list); + +v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_listJSON); + +cJSON *v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_t *v1alpha1_validating_admission_policy_binding_list); + +#endif /* _v1alpha1_validating_admission_policy_binding_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.c b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.c new file mode 100644 index 0000000..144d028 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.c @@ -0,0 +1,139 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_binding_spec.h" + + + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_create( + v1alpha1_match_resources_t *match_resources, + v1alpha1_param_ref_t *param_ref, + char *policy_name + ) { + v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_binding_spec_t)); + if (!v1alpha1_validating_admission_policy_binding_spec_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_binding_spec_local_var->match_resources = match_resources; + v1alpha1_validating_admission_policy_binding_spec_local_var->param_ref = param_ref; + v1alpha1_validating_admission_policy_binding_spec_local_var->policy_name = policy_name; + + return v1alpha1_validating_admission_policy_binding_spec_local_var; +} + + +void v1alpha1_validating_admission_policy_binding_spec_free(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec) { + if(NULL == v1alpha1_validating_admission_policy_binding_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_binding_spec->match_resources) { + v1alpha1_match_resources_free(v1alpha1_validating_admission_policy_binding_spec->match_resources); + v1alpha1_validating_admission_policy_binding_spec->match_resources = NULL; + } + if (v1alpha1_validating_admission_policy_binding_spec->param_ref) { + v1alpha1_param_ref_free(v1alpha1_validating_admission_policy_binding_spec->param_ref); + v1alpha1_validating_admission_policy_binding_spec->param_ref = NULL; + } + if (v1alpha1_validating_admission_policy_binding_spec->policy_name) { + free(v1alpha1_validating_admission_policy_binding_spec->policy_name); + v1alpha1_validating_admission_policy_binding_spec->policy_name = NULL; + } + free(v1alpha1_validating_admission_policy_binding_spec); +} + +cJSON *v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_binding_spec->match_resources + if(v1alpha1_validating_admission_policy_binding_spec->match_resources) { + cJSON *match_resources_local_JSON = v1alpha1_match_resources_convertToJSON(v1alpha1_validating_admission_policy_binding_spec->match_resources); + if(match_resources_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "matchResources", match_resources_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_binding_spec->param_ref + if(v1alpha1_validating_admission_policy_binding_spec->param_ref) { + cJSON *param_ref_local_JSON = v1alpha1_param_ref_convertToJSON(v1alpha1_validating_admission_policy_binding_spec->param_ref); + if(param_ref_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "paramRef", param_ref_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_binding_spec->policy_name + if(v1alpha1_validating_admission_policy_binding_spec->policy_name) { + if(cJSON_AddStringToObject(item, "policyName", v1alpha1_validating_admission_policy_binding_spec->policy_name) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_specJSON){ + + v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding_spec->match_resources + v1alpha1_match_resources_t *match_resources_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_binding_spec->param_ref + v1alpha1_param_ref_t *param_ref_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_binding_spec->match_resources + cJSON *match_resources = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_specJSON, "matchResources"); + if (match_resources) { + match_resources_local_nonprim = v1alpha1_match_resources_parseFromJSON(match_resources); //nonprimitive + } + + // v1alpha1_validating_admission_policy_binding_spec->param_ref + cJSON *param_ref = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_specJSON, "paramRef"); + if (param_ref) { + param_ref_local_nonprim = v1alpha1_param_ref_parseFromJSON(param_ref); //nonprimitive + } + + // v1alpha1_validating_admission_policy_binding_spec->policy_name + cJSON *policy_name = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_binding_specJSON, "policyName"); + if (policy_name) { + if(!cJSON_IsString(policy_name) && !cJSON_IsNull(policy_name)) + { + goto end; //String + } + } + + + v1alpha1_validating_admission_policy_binding_spec_local_var = v1alpha1_validating_admission_policy_binding_spec_create ( + match_resources ? match_resources_local_nonprim : NULL, + param_ref ? param_ref_local_nonprim : NULL, + policy_name && !cJSON_IsNull(policy_name) ? strdup(policy_name->valuestring) : NULL + ); + + return v1alpha1_validating_admission_policy_binding_spec_local_var; +end: + if (match_resources_local_nonprim) { + v1alpha1_match_resources_free(match_resources_local_nonprim); + match_resources_local_nonprim = NULL; + } + if (param_ref_local_nonprim) { + v1alpha1_param_ref_free(param_ref_local_nonprim); + param_ref_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.h b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.h new file mode 100644 index 0000000..bbba7c9 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_binding_spec.h @@ -0,0 +1,43 @@ +/* + * v1alpha1_validating_admission_policy_binding_spec.h + * + * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. + */ + +#ifndef _v1alpha1_validating_admission_policy_binding_spec_H_ +#define _v1alpha1_validating_admission_policy_binding_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_binding_spec_t v1alpha1_validating_admission_policy_binding_spec_t; + +#include "v1alpha1_match_resources.h" +#include "v1alpha1_param_ref.h" + + + +typedef struct v1alpha1_validating_admission_policy_binding_spec_t { + struct v1alpha1_match_resources_t *match_resources; //model + struct v1alpha1_param_ref_t *param_ref; //model + char *policy_name; // string + +} v1alpha1_validating_admission_policy_binding_spec_t; + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_create( + v1alpha1_match_resources_t *match_resources, + v1alpha1_param_ref_t *param_ref, + char *policy_name +); + +void v1alpha1_validating_admission_policy_binding_spec_free(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec); + +v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_binding_specJSON); + +cJSON *v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_t *v1alpha1_validating_admission_policy_binding_spec); + +#endif /* _v1alpha1_validating_admission_policy_binding_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_list.c b/kubernetes/model/v1alpha1_validating_admission_policy_list.c new file mode 100644 index 0000000..27f584c --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_list.c @@ -0,0 +1,193 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_list.h" + + + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_list_t)); + if (!v1alpha1_validating_admission_policy_list_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_list_local_var->api_version = api_version; + v1alpha1_validating_admission_policy_list_local_var->items = items; + v1alpha1_validating_admission_policy_list_local_var->kind = kind; + v1alpha1_validating_admission_policy_list_local_var->metadata = metadata; + + return v1alpha1_validating_admission_policy_list_local_var; +} + + +void v1alpha1_validating_admission_policy_list_free(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list) { + if(NULL == v1alpha1_validating_admission_policy_list){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_list->api_version) { + free(v1alpha1_validating_admission_policy_list->api_version); + v1alpha1_validating_admission_policy_list->api_version = NULL; + } + if (v1alpha1_validating_admission_policy_list->items) { + list_ForEach(listEntry, v1alpha1_validating_admission_policy_list->items) { + v1alpha1_validating_admission_policy_free(listEntry->data); + } + list_freeList(v1alpha1_validating_admission_policy_list->items); + v1alpha1_validating_admission_policy_list->items = NULL; + } + if (v1alpha1_validating_admission_policy_list->kind) { + free(v1alpha1_validating_admission_policy_list->kind); + v1alpha1_validating_admission_policy_list->kind = NULL; + } + if (v1alpha1_validating_admission_policy_list->metadata) { + v1_list_meta_free(v1alpha1_validating_admission_policy_list->metadata); + v1alpha1_validating_admission_policy_list->metadata = NULL; + } + free(v1alpha1_validating_admission_policy_list); +} + +cJSON *v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_list->api_version + if(v1alpha1_validating_admission_policy_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1alpha1_validating_admission_policy_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_list->items + if(v1alpha1_validating_admission_policy_list->items) { + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1alpha1_validating_admission_policy_list->items) { + list_ForEach(itemsListEntry, v1alpha1_validating_admission_policy_list->items) { + cJSON *itemLocal = v1alpha1_validating_admission_policy_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + } + + + // v1alpha1_validating_admission_policy_list->kind + if(v1alpha1_validating_admission_policy_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1alpha1_validating_admission_policy_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_list->metadata + if(v1alpha1_validating_admission_policy_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1alpha1_validating_admission_policy_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_listJSON){ + + v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_local_var = NULL; + + // define the local list for v1alpha1_validating_admission_policy_list->items + list_t *itemsList = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1alpha1_validating_admission_policy_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "items"); + if (items) { + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1alpha1_validating_admission_policy_t *itemsItem = v1alpha1_validating_admission_policy_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + } + + // v1alpha1_validating_admission_policy_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1alpha1_validating_admission_policy_list_local_var = v1alpha1_validating_admission_policy_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + items ? itemsList : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1alpha1_validating_admission_policy_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1alpha1_validating_admission_policy_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_list.h b/kubernetes/model/v1alpha1_validating_admission_policy_list.h new file mode 100644 index 0000000..fef55fc --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_list.h @@ -0,0 +1,45 @@ +/* + * v1alpha1_validating_admission_policy_list.h + * + * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. + */ + +#ifndef _v1alpha1_validating_admission_policy_list_H_ +#define _v1alpha1_validating_admission_policy_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_list_t v1alpha1_validating_admission_policy_list_t; + +#include "v1_list_meta.h" +#include "v1alpha1_validating_admission_policy.h" + + + +typedef struct v1alpha1_validating_admission_policy_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1alpha1_validating_admission_policy_list_t; + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1alpha1_validating_admission_policy_list_free(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list); + +v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_listJSON); + +cJSON *v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_t *v1alpha1_validating_admission_policy_list); + +#endif /* _v1alpha1_validating_admission_policy_list_H_ */ + diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_spec.c b/kubernetes/model/v1alpha1_validating_admission_policy_spec.c new file mode 100644 index 0000000..11e0fe1 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_spec.c @@ -0,0 +1,206 @@ +#include +#include +#include +#include "v1alpha1_validating_admission_policy_spec.h" + + + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_create( + char *failure_policy, + v1alpha1_match_resources_t *match_constraints, + v1alpha1_param_kind_t *param_kind, + list_t *validations + ) { + v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_local_var = malloc(sizeof(v1alpha1_validating_admission_policy_spec_t)); + if (!v1alpha1_validating_admission_policy_spec_local_var) { + return NULL; + } + v1alpha1_validating_admission_policy_spec_local_var->failure_policy = failure_policy; + v1alpha1_validating_admission_policy_spec_local_var->match_constraints = match_constraints; + v1alpha1_validating_admission_policy_spec_local_var->param_kind = param_kind; + v1alpha1_validating_admission_policy_spec_local_var->validations = validations; + + return v1alpha1_validating_admission_policy_spec_local_var; +} + + +void v1alpha1_validating_admission_policy_spec_free(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec) { + if(NULL == v1alpha1_validating_admission_policy_spec){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validating_admission_policy_spec->failure_policy) { + free(v1alpha1_validating_admission_policy_spec->failure_policy); + v1alpha1_validating_admission_policy_spec->failure_policy = NULL; + } + if (v1alpha1_validating_admission_policy_spec->match_constraints) { + v1alpha1_match_resources_free(v1alpha1_validating_admission_policy_spec->match_constraints); + v1alpha1_validating_admission_policy_spec->match_constraints = NULL; + } + if (v1alpha1_validating_admission_policy_spec->param_kind) { + v1alpha1_param_kind_free(v1alpha1_validating_admission_policy_spec->param_kind); + v1alpha1_validating_admission_policy_spec->param_kind = NULL; + } + if (v1alpha1_validating_admission_policy_spec->validations) { + list_ForEach(listEntry, v1alpha1_validating_admission_policy_spec->validations) { + v1alpha1_validation_free(listEntry->data); + } + list_freeList(v1alpha1_validating_admission_policy_spec->validations); + v1alpha1_validating_admission_policy_spec->validations = NULL; + } + free(v1alpha1_validating_admission_policy_spec); +} + +cJSON *v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validating_admission_policy_spec->failure_policy + if(v1alpha1_validating_admission_policy_spec->failure_policy) { + if(cJSON_AddStringToObject(item, "failurePolicy", v1alpha1_validating_admission_policy_spec->failure_policy) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validating_admission_policy_spec->match_constraints + if(v1alpha1_validating_admission_policy_spec->match_constraints) { + cJSON *match_constraints_local_JSON = v1alpha1_match_resources_convertToJSON(v1alpha1_validating_admission_policy_spec->match_constraints); + if(match_constraints_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "matchConstraints", match_constraints_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_spec->param_kind + if(v1alpha1_validating_admission_policy_spec->param_kind) { + cJSON *param_kind_local_JSON = v1alpha1_param_kind_convertToJSON(v1alpha1_validating_admission_policy_spec->param_kind); + if(param_kind_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "paramKind", param_kind_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1alpha1_validating_admission_policy_spec->validations + if (!v1alpha1_validating_admission_policy_spec->validations) { + goto fail; + } + cJSON *validations = cJSON_AddArrayToObject(item, "validations"); + if(validations == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *validationsListEntry; + if (v1alpha1_validating_admission_policy_spec->validations) { + list_ForEach(validationsListEntry, v1alpha1_validating_admission_policy_spec->validations) { + cJSON *itemLocal = v1alpha1_validation_convertToJSON(validationsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(validations, itemLocal); + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_specJSON){ + + v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_local_var = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_spec->match_constraints + v1alpha1_match_resources_t *match_constraints_local_nonprim = NULL; + + // define the local variable for v1alpha1_validating_admission_policy_spec->param_kind + v1alpha1_param_kind_t *param_kind_local_nonprim = NULL; + + // define the local list for v1alpha1_validating_admission_policy_spec->validations + list_t *validationsList = NULL; + + // v1alpha1_validating_admission_policy_spec->failure_policy + cJSON *failure_policy = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "failurePolicy"); + if (failure_policy) { + if(!cJSON_IsString(failure_policy) && !cJSON_IsNull(failure_policy)) + { + goto end; //String + } + } + + // v1alpha1_validating_admission_policy_spec->match_constraints + cJSON *match_constraints = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "matchConstraints"); + if (match_constraints) { + match_constraints_local_nonprim = v1alpha1_match_resources_parseFromJSON(match_constraints); //nonprimitive + } + + // v1alpha1_validating_admission_policy_spec->param_kind + cJSON *param_kind = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "paramKind"); + if (param_kind) { + param_kind_local_nonprim = v1alpha1_param_kind_parseFromJSON(param_kind); //nonprimitive + } + + // v1alpha1_validating_admission_policy_spec->validations + cJSON *validations = cJSON_GetObjectItemCaseSensitive(v1alpha1_validating_admission_policy_specJSON, "validations"); + if (!validations) { + goto end; + } + + + cJSON *validations_local_nonprimitive = NULL; + if(!cJSON_IsArray(validations)){ + goto end; //nonprimitive container + } + + validationsList = list_createList(); + + cJSON_ArrayForEach(validations_local_nonprimitive,validations ) + { + if(!cJSON_IsObject(validations_local_nonprimitive)){ + goto end; + } + v1alpha1_validation_t *validationsItem = v1alpha1_validation_parseFromJSON(validations_local_nonprimitive); + + list_addElement(validationsList, validationsItem); + } + + + v1alpha1_validating_admission_policy_spec_local_var = v1alpha1_validating_admission_policy_spec_create ( + failure_policy && !cJSON_IsNull(failure_policy) ? strdup(failure_policy->valuestring) : NULL, + match_constraints ? match_constraints_local_nonprim : NULL, + param_kind ? param_kind_local_nonprim : NULL, + validationsList + ); + + return v1alpha1_validating_admission_policy_spec_local_var; +end: + if (match_constraints_local_nonprim) { + v1alpha1_match_resources_free(match_constraints_local_nonprim); + match_constraints_local_nonprim = NULL; + } + if (param_kind_local_nonprim) { + v1alpha1_param_kind_free(param_kind_local_nonprim); + param_kind_local_nonprim = NULL; + } + if (validationsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, validationsList) { + v1alpha1_validation_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(validationsList); + validationsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validating_admission_policy_spec.h b/kubernetes/model/v1alpha1_validating_admission_policy_spec.h new file mode 100644 index 0000000..9f64236 --- /dev/null +++ b/kubernetes/model/v1alpha1_validating_admission_policy_spec.h @@ -0,0 +1,46 @@ +/* + * v1alpha1_validating_admission_policy_spec.h + * + * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. + */ + +#ifndef _v1alpha1_validating_admission_policy_spec_H_ +#define _v1alpha1_validating_admission_policy_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validating_admission_policy_spec_t v1alpha1_validating_admission_policy_spec_t; + +#include "v1alpha1_match_resources.h" +#include "v1alpha1_param_kind.h" +#include "v1alpha1_validation.h" + + + +typedef struct v1alpha1_validating_admission_policy_spec_t { + char *failure_policy; // string + struct v1alpha1_match_resources_t *match_constraints; //model + struct v1alpha1_param_kind_t *param_kind; //model + list_t *validations; //nonprimitive container + +} v1alpha1_validating_admission_policy_spec_t; + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_create( + char *failure_policy, + v1alpha1_match_resources_t *match_constraints, + v1alpha1_param_kind_t *param_kind, + list_t *validations +); + +void v1alpha1_validating_admission_policy_spec_free(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec); + +v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec_parseFromJSON(cJSON *v1alpha1_validating_admission_policy_specJSON); + +cJSON *v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_t *v1alpha1_validating_admission_policy_spec); + +#endif /* _v1alpha1_validating_admission_policy_spec_H_ */ + diff --git a/kubernetes/model/v1alpha1_validation.c b/kubernetes/model/v1alpha1_validation.c new file mode 100644 index 0000000..7a72e8d --- /dev/null +++ b/kubernetes/model/v1alpha1_validation.c @@ -0,0 +1,125 @@ +#include +#include +#include +#include "v1alpha1_validation.h" + + + +v1alpha1_validation_t *v1alpha1_validation_create( + char *expression, + char *message, + char *reason + ) { + v1alpha1_validation_t *v1alpha1_validation_local_var = malloc(sizeof(v1alpha1_validation_t)); + if (!v1alpha1_validation_local_var) { + return NULL; + } + v1alpha1_validation_local_var->expression = expression; + v1alpha1_validation_local_var->message = message; + v1alpha1_validation_local_var->reason = reason; + + return v1alpha1_validation_local_var; +} + + +void v1alpha1_validation_free(v1alpha1_validation_t *v1alpha1_validation) { + if(NULL == v1alpha1_validation){ + return ; + } + listEntry_t *listEntry; + if (v1alpha1_validation->expression) { + free(v1alpha1_validation->expression); + v1alpha1_validation->expression = NULL; + } + if (v1alpha1_validation->message) { + free(v1alpha1_validation->message); + v1alpha1_validation->message = NULL; + } + if (v1alpha1_validation->reason) { + free(v1alpha1_validation->reason); + v1alpha1_validation->reason = NULL; + } + free(v1alpha1_validation); +} + +cJSON *v1alpha1_validation_convertToJSON(v1alpha1_validation_t *v1alpha1_validation) { + cJSON *item = cJSON_CreateObject(); + + // v1alpha1_validation->expression + if (!v1alpha1_validation->expression) { + goto fail; + } + if(cJSON_AddStringToObject(item, "expression", v1alpha1_validation->expression) == NULL) { + goto fail; //String + } + + + // v1alpha1_validation->message + if(v1alpha1_validation->message) { + if(cJSON_AddStringToObject(item, "message", v1alpha1_validation->message) == NULL) { + goto fail; //String + } + } + + + // v1alpha1_validation->reason + if(v1alpha1_validation->reason) { + if(cJSON_AddStringToObject(item, "reason", v1alpha1_validation->reason) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1alpha1_validation_t *v1alpha1_validation_parseFromJSON(cJSON *v1alpha1_validationJSON){ + + v1alpha1_validation_t *v1alpha1_validation_local_var = NULL; + + // v1alpha1_validation->expression + cJSON *expression = cJSON_GetObjectItemCaseSensitive(v1alpha1_validationJSON, "expression"); + if (!expression) { + goto end; + } + + + if(!cJSON_IsString(expression)) + { + goto end; //String + } + + // v1alpha1_validation->message + cJSON *message = cJSON_GetObjectItemCaseSensitive(v1alpha1_validationJSON, "message"); + if (message) { + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) + { + goto end; //String + } + } + + // v1alpha1_validation->reason + cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1alpha1_validationJSON, "reason"); + if (reason) { + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) + { + goto end; //String + } + } + + + v1alpha1_validation_local_var = v1alpha1_validation_create ( + strdup(expression->valuestring), + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL + ); + + return v1alpha1_validation_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1alpha1_validation.h b/kubernetes/model/v1alpha1_validation.h new file mode 100644 index 0000000..84ee74c --- /dev/null +++ b/kubernetes/model/v1alpha1_validation.h @@ -0,0 +1,41 @@ +/* + * v1alpha1_validation.h + * + * Validation specifies the CEL expression which is used to apply the validation. + */ + +#ifndef _v1alpha1_validation_H_ +#define _v1alpha1_validation_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1alpha1_validation_t v1alpha1_validation_t; + + + + +typedef struct v1alpha1_validation_t { + char *expression; // string + char *message; // string + char *reason; // string + +} v1alpha1_validation_t; + +v1alpha1_validation_t *v1alpha1_validation_create( + char *expression, + char *message, + char *reason +); + +void v1alpha1_validation_free(v1alpha1_validation_t *v1alpha1_validation); + +v1alpha1_validation_t *v1alpha1_validation_parseFromJSON(cJSON *v1alpha1_validationJSON); + +cJSON *v1alpha1_validation_convertToJSON(v1alpha1_validation_t *v1alpha1_validation); + +#endif /* _v1alpha1_validation_H_ */ + diff --git a/kubernetes/model/v1beta1_flow_distinguisher_method.c b/kubernetes/model/v1beta1_flow_distinguisher_method.c deleted file mode 100644 index c7023d2..0000000 --- a/kubernetes/model/v1beta1_flow_distinguisher_method.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_distinguisher_method.h" - - - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_create( - char *type - ) { - v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_local_var = malloc(sizeof(v1beta1_flow_distinguisher_method_t)); - if (!v1beta1_flow_distinguisher_method_local_var) { - return NULL; - } - v1beta1_flow_distinguisher_method_local_var->type = type; - - return v1beta1_flow_distinguisher_method_local_var; -} - - -void v1beta1_flow_distinguisher_method_free(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method) { - if(NULL == v1beta1_flow_distinguisher_method){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_distinguisher_method->type) { - free(v1beta1_flow_distinguisher_method->type); - v1beta1_flow_distinguisher_method->type = NULL; - } - free(v1beta1_flow_distinguisher_method); -} - -cJSON *v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_distinguisher_method->type - if (!v1beta1_flow_distinguisher_method->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v1beta1_flow_distinguisher_method->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_parseFromJSON(cJSON *v1beta1_flow_distinguisher_methodJSON){ - - v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_local_var = NULL; - - // v1beta1_flow_distinguisher_method->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_distinguisher_methodJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v1beta1_flow_distinguisher_method_local_var = v1beta1_flow_distinguisher_method_create ( - strdup(type->valuestring) - ); - - return v1beta1_flow_distinguisher_method_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_distinguisher_method.h b/kubernetes/model/v1beta1_flow_distinguisher_method.h deleted file mode 100644 index 79edcc9..0000000 --- a/kubernetes/model/v1beta1_flow_distinguisher_method.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_flow_distinguisher_method.h - * - * FlowDistinguisherMethod specifies the method of a flow distinguisher. - */ - -#ifndef _v1beta1_flow_distinguisher_method_H_ -#define _v1beta1_flow_distinguisher_method_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_distinguisher_method_t v1beta1_flow_distinguisher_method_t; - - - - -typedef struct v1beta1_flow_distinguisher_method_t { - char *type; // string - -} v1beta1_flow_distinguisher_method_t; - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_create( - char *type -); - -void v1beta1_flow_distinguisher_method_free(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method); - -v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method_parseFromJSON(cJSON *v1beta1_flow_distinguisher_methodJSON); - -cJSON *v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_t *v1beta1_flow_distinguisher_method); - -#endif /* _v1beta1_flow_distinguisher_method_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema.c b/kubernetes/model/v1beta1_flow_schema.c deleted file mode 100644 index de8c0d7..0000000 --- a/kubernetes/model/v1beta1_flow_schema.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema.h" - - - -v1beta1_flow_schema_t *v1beta1_flow_schema_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_flow_schema_spec_t *spec, - v1beta1_flow_schema_status_t *status - ) { - v1beta1_flow_schema_t *v1beta1_flow_schema_local_var = malloc(sizeof(v1beta1_flow_schema_t)); - if (!v1beta1_flow_schema_local_var) { - return NULL; - } - v1beta1_flow_schema_local_var->api_version = api_version; - v1beta1_flow_schema_local_var->kind = kind; - v1beta1_flow_schema_local_var->metadata = metadata; - v1beta1_flow_schema_local_var->spec = spec; - v1beta1_flow_schema_local_var->status = status; - - return v1beta1_flow_schema_local_var; -} - - -void v1beta1_flow_schema_free(v1beta1_flow_schema_t *v1beta1_flow_schema) { - if(NULL == v1beta1_flow_schema){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema->api_version) { - free(v1beta1_flow_schema->api_version); - v1beta1_flow_schema->api_version = NULL; - } - if (v1beta1_flow_schema->kind) { - free(v1beta1_flow_schema->kind); - v1beta1_flow_schema->kind = NULL; - } - if (v1beta1_flow_schema->metadata) { - v1_object_meta_free(v1beta1_flow_schema->metadata); - v1beta1_flow_schema->metadata = NULL; - } - if (v1beta1_flow_schema->spec) { - v1beta1_flow_schema_spec_free(v1beta1_flow_schema->spec); - v1beta1_flow_schema->spec = NULL; - } - if (v1beta1_flow_schema->status) { - v1beta1_flow_schema_status_free(v1beta1_flow_schema->status); - v1beta1_flow_schema->status = NULL; - } - free(v1beta1_flow_schema); -} - -cJSON *v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_t *v1beta1_flow_schema) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema->api_version - if(v1beta1_flow_schema->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_flow_schema->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema->kind - if(v1beta1_flow_schema->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_flow_schema->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema->metadata - if(v1beta1_flow_schema->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_flow_schema->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_flow_schema->spec - if(v1beta1_flow_schema->spec) { - cJSON *spec_local_JSON = v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_flow_schema->status - if(v1beta1_flow_schema->status) { - cJSON *status_local_JSON = v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema->status); - if(status_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "status", status_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_t *v1beta1_flow_schema_parseFromJSON(cJSON *v1beta1_flow_schemaJSON){ - - v1beta1_flow_schema_t *v1beta1_flow_schema_local_var = NULL; - - // define the local variable for v1beta1_flow_schema->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_flow_schema->spec - v1beta1_flow_schema_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v1beta1_flow_schema->status - v1beta1_flow_schema_status_t *status_local_nonprim = NULL; - - // v1beta1_flow_schema->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_flow_schema->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_flow_schema->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_flow_schema->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "spec"); - if (spec) { - spec_local_nonprim = v1beta1_flow_schema_spec_parseFromJSON(spec); //nonprimitive - } - - // v1beta1_flow_schema->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schemaJSON, "status"); - if (status) { - status_local_nonprim = v1beta1_flow_schema_status_parseFromJSON(status); //nonprimitive - } - - - v1beta1_flow_schema_local_var = v1beta1_flow_schema_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v1beta1_flow_schema_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1beta1_flow_schema_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v1beta1_flow_schema_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema.h b/kubernetes/model/v1beta1_flow_schema.h deleted file mode 100644 index 3035afc..0000000 --- a/kubernetes/model/v1beta1_flow_schema.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v1beta1_flow_schema.h - * - * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\". - */ - -#ifndef _v1beta1_flow_schema_H_ -#define _v1beta1_flow_schema_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_t v1beta1_flow_schema_t; - -#include "v1_object_meta.h" -#include "v1beta1_flow_schema_spec.h" -#include "v1beta1_flow_schema_status.h" - - - -typedef struct v1beta1_flow_schema_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_flow_schema_spec_t *spec; //model - struct v1beta1_flow_schema_status_t *status; //model - -} v1beta1_flow_schema_t; - -v1beta1_flow_schema_t *v1beta1_flow_schema_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_flow_schema_spec_t *spec, - v1beta1_flow_schema_status_t *status -); - -void v1beta1_flow_schema_free(v1beta1_flow_schema_t *v1beta1_flow_schema); - -v1beta1_flow_schema_t *v1beta1_flow_schema_parseFromJSON(cJSON *v1beta1_flow_schemaJSON); - -cJSON *v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_t *v1beta1_flow_schema); - -#endif /* _v1beta1_flow_schema_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_condition.c b/kubernetes/model/v1beta1_flow_schema_condition.c deleted file mode 100644 index ebe189b..0000000 --- a/kubernetes/model/v1beta1_flow_schema_condition.c +++ /dev/null @@ -1,169 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_condition.h" - - - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type - ) { - v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_local_var = malloc(sizeof(v1beta1_flow_schema_condition_t)); - if (!v1beta1_flow_schema_condition_local_var) { - return NULL; - } - v1beta1_flow_schema_condition_local_var->last_transition_time = last_transition_time; - v1beta1_flow_schema_condition_local_var->message = message; - v1beta1_flow_schema_condition_local_var->reason = reason; - v1beta1_flow_schema_condition_local_var->status = status; - v1beta1_flow_schema_condition_local_var->type = type; - - return v1beta1_flow_schema_condition_local_var; -} - - -void v1beta1_flow_schema_condition_free(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition) { - if(NULL == v1beta1_flow_schema_condition){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_condition->last_transition_time) { - free(v1beta1_flow_schema_condition->last_transition_time); - v1beta1_flow_schema_condition->last_transition_time = NULL; - } - if (v1beta1_flow_schema_condition->message) { - free(v1beta1_flow_schema_condition->message); - v1beta1_flow_schema_condition->message = NULL; - } - if (v1beta1_flow_schema_condition->reason) { - free(v1beta1_flow_schema_condition->reason); - v1beta1_flow_schema_condition->reason = NULL; - } - if (v1beta1_flow_schema_condition->status) { - free(v1beta1_flow_schema_condition->status); - v1beta1_flow_schema_condition->status = NULL; - } - if (v1beta1_flow_schema_condition->type) { - free(v1beta1_flow_schema_condition->type); - v1beta1_flow_schema_condition->type = NULL; - } - free(v1beta1_flow_schema_condition); -} - -cJSON *v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_condition->last_transition_time - if(v1beta1_flow_schema_condition->last_transition_time) { - if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta1_flow_schema_condition->last_transition_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v1beta1_flow_schema_condition->message - if(v1beta1_flow_schema_condition->message) { - if(cJSON_AddStringToObject(item, "message", v1beta1_flow_schema_condition->message) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_condition->reason - if(v1beta1_flow_schema_condition->reason) { - if(cJSON_AddStringToObject(item, "reason", v1beta1_flow_schema_condition->reason) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_condition->status - if(v1beta1_flow_schema_condition->status) { - if(cJSON_AddStringToObject(item, "status", v1beta1_flow_schema_condition->status) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_condition->type - if(v1beta1_flow_schema_condition->type) { - if(cJSON_AddStringToObject(item, "type", v1beta1_flow_schema_condition->type) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJSON *v1beta1_flow_schema_conditionJSON){ - - v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_local_var = NULL; - - // v1beta1_flow_schema_condition->last_transition_time - cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "lastTransitionTime"); - if (last_transition_time) { - if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) - { - goto end; //DateTime - } - } - - // v1beta1_flow_schema_condition->message - cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "message"); - if (message) { - if(!cJSON_IsString(message) && !cJSON_IsNull(message)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_condition->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_condition->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "status"); - if (status) { - if(!cJSON_IsString(status) && !cJSON_IsNull(status)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_condition->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_conditionJSON, "type"); - if (type) { - if(!cJSON_IsString(type) && !cJSON_IsNull(type)) - { - goto end; //String - } - } - - - v1beta1_flow_schema_condition_local_var = v1beta1_flow_schema_condition_create ( - last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, - reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, - status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, - type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL - ); - - return v1beta1_flow_schema_condition_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_condition.h b/kubernetes/model/v1beta1_flow_schema_condition.h deleted file mode 100644 index 58d66d2..0000000 --- a/kubernetes/model/v1beta1_flow_schema_condition.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_flow_schema_condition.h - * - * FlowSchemaCondition describes conditions for a FlowSchema. - */ - -#ifndef _v1beta1_flow_schema_condition_H_ -#define _v1beta1_flow_schema_condition_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_condition_t v1beta1_flow_schema_condition_t; - - - - -typedef struct v1beta1_flow_schema_condition_t { - char *last_transition_time; //date time - char *message; // string - char *reason; // string - char *status; // string - char *type; // string - -} v1beta1_flow_schema_condition_t; - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type -); - -void v1beta1_flow_schema_condition_free(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition); - -v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition_parseFromJSON(cJSON *v1beta1_flow_schema_conditionJSON); - -cJSON *v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_t *v1beta1_flow_schema_condition); - -#endif /* _v1beta1_flow_schema_condition_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_list.c b/kubernetes/model/v1beta1_flow_schema_list.c deleted file mode 100644 index 3ef6da2..0000000 --- a/kubernetes/model/v1beta1_flow_schema_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_list.h" - - - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_local_var = malloc(sizeof(v1beta1_flow_schema_list_t)); - if (!v1beta1_flow_schema_list_local_var) { - return NULL; - } - v1beta1_flow_schema_list_local_var->api_version = api_version; - v1beta1_flow_schema_list_local_var->items = items; - v1beta1_flow_schema_list_local_var->kind = kind; - v1beta1_flow_schema_list_local_var->metadata = metadata; - - return v1beta1_flow_schema_list_local_var; -} - - -void v1beta1_flow_schema_list_free(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list) { - if(NULL == v1beta1_flow_schema_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_list->api_version) { - free(v1beta1_flow_schema_list->api_version); - v1beta1_flow_schema_list->api_version = NULL; - } - if (v1beta1_flow_schema_list->items) { - list_ForEach(listEntry, v1beta1_flow_schema_list->items) { - v1beta1_flow_schema_free(listEntry->data); - } - list_freeList(v1beta1_flow_schema_list->items); - v1beta1_flow_schema_list->items = NULL; - } - if (v1beta1_flow_schema_list->kind) { - free(v1beta1_flow_schema_list->kind); - v1beta1_flow_schema_list->kind = NULL; - } - if (v1beta1_flow_schema_list->metadata) { - v1_list_meta_free(v1beta1_flow_schema_list->metadata); - v1beta1_flow_schema_list->metadata = NULL; - } - free(v1beta1_flow_schema_list); -} - -cJSON *v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_list->api_version - if(v1beta1_flow_schema_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_flow_schema_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_list->items - if (!v1beta1_flow_schema_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_flow_schema_list->items) { - list_ForEach(itemsListEntry, v1beta1_flow_schema_list->items) { - cJSON *itemLocal = v1beta1_flow_schema_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_flow_schema_list->kind - if(v1beta1_flow_schema_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_flow_schema_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_flow_schema_list->metadata - if(v1beta1_flow_schema_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_flow_schema_list->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_parseFromJSON(cJSON *v1beta1_flow_schema_listJSON){ - - v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_local_var = NULL; - - // define the local list for v1beta1_flow_schema_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_flow_schema_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_flow_schema_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "items"); - if (!items) { - goto end; - } - - - cJSON *items_local_nonprimitive = NULL; - if(!cJSON_IsArray(items)){ - goto end; //nonprimitive container - } - - itemsList = list_createList(); - - cJSON_ArrayForEach(items_local_nonprimitive,items ) - { - if(!cJSON_IsObject(items_local_nonprimitive)){ - goto end; - } - v1beta1_flow_schema_t *itemsItem = v1beta1_flow_schema_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_flow_schema_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_flow_schema_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_flow_schema_list_local_var = v1beta1_flow_schema_list_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - itemsList, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_flow_schema_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_flow_schema_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(itemsList); - itemsList = NULL; - } - if (metadata_local_nonprim) { - v1_list_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_list.h b/kubernetes/model/v1beta1_flow_schema_list.h deleted file mode 100644 index 0f35b8f..0000000 --- a/kubernetes/model/v1beta1_flow_schema_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_flow_schema_list.h - * - * FlowSchemaList is a list of FlowSchema objects. - */ - -#ifndef _v1beta1_flow_schema_list_H_ -#define _v1beta1_flow_schema_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_list_t v1beta1_flow_schema_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_flow_schema.h" - - - -typedef struct v1beta1_flow_schema_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_flow_schema_list_t; - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_flow_schema_list_free(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list); - -v1beta1_flow_schema_list_t *v1beta1_flow_schema_list_parseFromJSON(cJSON *v1beta1_flow_schema_listJSON); - -cJSON *v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_t *v1beta1_flow_schema_list); - -#endif /* _v1beta1_flow_schema_list_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_spec.c b/kubernetes/model/v1beta1_flow_schema_spec.c deleted file mode 100644 index 53eda00..0000000 --- a/kubernetes/model/v1beta1_flow_schema_spec.c +++ /dev/null @@ -1,202 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_spec.h" - - - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_create( - v1beta1_flow_distinguisher_method_t *distinguisher_method, - int matching_precedence, - v1beta1_priority_level_configuration_reference_t *priority_level_configuration, - list_t *rules - ) { - v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_local_var = malloc(sizeof(v1beta1_flow_schema_spec_t)); - if (!v1beta1_flow_schema_spec_local_var) { - return NULL; - } - v1beta1_flow_schema_spec_local_var->distinguisher_method = distinguisher_method; - v1beta1_flow_schema_spec_local_var->matching_precedence = matching_precedence; - v1beta1_flow_schema_spec_local_var->priority_level_configuration = priority_level_configuration; - v1beta1_flow_schema_spec_local_var->rules = rules; - - return v1beta1_flow_schema_spec_local_var; -} - - -void v1beta1_flow_schema_spec_free(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec) { - if(NULL == v1beta1_flow_schema_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_spec->distinguisher_method) { - v1beta1_flow_distinguisher_method_free(v1beta1_flow_schema_spec->distinguisher_method); - v1beta1_flow_schema_spec->distinguisher_method = NULL; - } - if (v1beta1_flow_schema_spec->priority_level_configuration) { - v1beta1_priority_level_configuration_reference_free(v1beta1_flow_schema_spec->priority_level_configuration); - v1beta1_flow_schema_spec->priority_level_configuration = NULL; - } - if (v1beta1_flow_schema_spec->rules) { - list_ForEach(listEntry, v1beta1_flow_schema_spec->rules) { - v1beta1_policy_rules_with_subjects_free(listEntry->data); - } - list_freeList(v1beta1_flow_schema_spec->rules); - v1beta1_flow_schema_spec->rules = NULL; - } - free(v1beta1_flow_schema_spec); -} - -cJSON *v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_spec->distinguisher_method - if(v1beta1_flow_schema_spec->distinguisher_method) { - cJSON *distinguisher_method_local_JSON = v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_schema_spec->distinguisher_method); - if(distinguisher_method_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "distinguisherMethod", distinguisher_method_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_flow_schema_spec->matching_precedence - if(v1beta1_flow_schema_spec->matching_precedence) { - if(cJSON_AddNumberToObject(item, "matchingPrecedence", v1beta1_flow_schema_spec->matching_precedence) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_flow_schema_spec->priority_level_configuration - if (!v1beta1_flow_schema_spec->priority_level_configuration) { - goto fail; - } - cJSON *priority_level_configuration_local_JSON = v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_flow_schema_spec->priority_level_configuration); - if(priority_level_configuration_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "priorityLevelConfiguration", priority_level_configuration_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v1beta1_flow_schema_spec->rules - if(v1beta1_flow_schema_spec->rules) { - cJSON *rules = cJSON_AddArrayToObject(item, "rules"); - if(rules == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *rulesListEntry; - if (v1beta1_flow_schema_spec->rules) { - list_ForEach(rulesListEntry, v1beta1_flow_schema_spec->rules) { - cJSON *itemLocal = v1beta1_policy_rules_with_subjects_convertToJSON(rulesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(rules, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_parseFromJSON(cJSON *v1beta1_flow_schema_specJSON){ - - v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_local_var = NULL; - - // define the local variable for v1beta1_flow_schema_spec->distinguisher_method - v1beta1_flow_distinguisher_method_t *distinguisher_method_local_nonprim = NULL; - - // define the local variable for v1beta1_flow_schema_spec->priority_level_configuration - v1beta1_priority_level_configuration_reference_t *priority_level_configuration_local_nonprim = NULL; - - // define the local list for v1beta1_flow_schema_spec->rules - list_t *rulesList = NULL; - - // v1beta1_flow_schema_spec->distinguisher_method - cJSON *distinguisher_method = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "distinguisherMethod"); - if (distinguisher_method) { - distinguisher_method_local_nonprim = v1beta1_flow_distinguisher_method_parseFromJSON(distinguisher_method); //nonprimitive - } - - // v1beta1_flow_schema_spec->matching_precedence - cJSON *matching_precedence = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "matchingPrecedence"); - if (matching_precedence) { - if(!cJSON_IsNumber(matching_precedence)) - { - goto end; //Numeric - } - } - - // v1beta1_flow_schema_spec->priority_level_configuration - cJSON *priority_level_configuration = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "priorityLevelConfiguration"); - if (!priority_level_configuration) { - goto end; - } - - - priority_level_configuration_local_nonprim = v1beta1_priority_level_configuration_reference_parseFromJSON(priority_level_configuration); //nonprimitive - - // v1beta1_flow_schema_spec->rules - cJSON *rules = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_specJSON, "rules"); - if (rules) { - cJSON *rules_local_nonprimitive = NULL; - if(!cJSON_IsArray(rules)){ - goto end; //nonprimitive container - } - - rulesList = list_createList(); - - cJSON_ArrayForEach(rules_local_nonprimitive,rules ) - { - if(!cJSON_IsObject(rules_local_nonprimitive)){ - goto end; - } - v1beta1_policy_rules_with_subjects_t *rulesItem = v1beta1_policy_rules_with_subjects_parseFromJSON(rules_local_nonprimitive); - - list_addElement(rulesList, rulesItem); - } - } - - - v1beta1_flow_schema_spec_local_var = v1beta1_flow_schema_spec_create ( - distinguisher_method ? distinguisher_method_local_nonprim : NULL, - matching_precedence ? matching_precedence->valuedouble : 0, - priority_level_configuration_local_nonprim, - rules ? rulesList : NULL - ); - - return v1beta1_flow_schema_spec_local_var; -end: - if (distinguisher_method_local_nonprim) { - v1beta1_flow_distinguisher_method_free(distinguisher_method_local_nonprim); - distinguisher_method_local_nonprim = NULL; - } - if (priority_level_configuration_local_nonprim) { - v1beta1_priority_level_configuration_reference_free(priority_level_configuration_local_nonprim); - priority_level_configuration_local_nonprim = NULL; - } - if (rulesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, rulesList) { - v1beta1_policy_rules_with_subjects_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(rulesList); - rulesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_spec.h b/kubernetes/model/v1beta1_flow_schema_spec.h deleted file mode 100644 index 967fbe8..0000000 --- a/kubernetes/model/v1beta1_flow_schema_spec.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * v1beta1_flow_schema_spec.h - * - * FlowSchemaSpec describes how the FlowSchema's specification looks like. - */ - -#ifndef _v1beta1_flow_schema_spec_H_ -#define _v1beta1_flow_schema_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_spec_t v1beta1_flow_schema_spec_t; - -#include "v1beta1_flow_distinguisher_method.h" -#include "v1beta1_policy_rules_with_subjects.h" -#include "v1beta1_priority_level_configuration_reference.h" - - - -typedef struct v1beta1_flow_schema_spec_t { - struct v1beta1_flow_distinguisher_method_t *distinguisher_method; //model - int matching_precedence; //numeric - struct v1beta1_priority_level_configuration_reference_t *priority_level_configuration; //model - list_t *rules; //nonprimitive container - -} v1beta1_flow_schema_spec_t; - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_create( - v1beta1_flow_distinguisher_method_t *distinguisher_method, - int matching_precedence, - v1beta1_priority_level_configuration_reference_t *priority_level_configuration, - list_t *rules -); - -void v1beta1_flow_schema_spec_free(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec); - -v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec_parseFromJSON(cJSON *v1beta1_flow_schema_specJSON); - -cJSON *v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_t *v1beta1_flow_schema_spec); - -#endif /* _v1beta1_flow_schema_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_flow_schema_status.c b/kubernetes/model/v1beta1_flow_schema_status.c deleted file mode 100644 index e4c6cd0..0000000 --- a/kubernetes/model/v1beta1_flow_schema_status.c +++ /dev/null @@ -1,112 +0,0 @@ -#include -#include -#include -#include "v1beta1_flow_schema_status.h" - - - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_create( - list_t *conditions - ) { - v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_local_var = malloc(sizeof(v1beta1_flow_schema_status_t)); - if (!v1beta1_flow_schema_status_local_var) { - return NULL; - } - v1beta1_flow_schema_status_local_var->conditions = conditions; - - return v1beta1_flow_schema_status_local_var; -} - - -void v1beta1_flow_schema_status_free(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status) { - if(NULL == v1beta1_flow_schema_status){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_flow_schema_status->conditions) { - list_ForEach(listEntry, v1beta1_flow_schema_status->conditions) { - v1beta1_flow_schema_condition_free(listEntry->data); - } - list_freeList(v1beta1_flow_schema_status->conditions); - v1beta1_flow_schema_status->conditions = NULL; - } - free(v1beta1_flow_schema_status); -} - -cJSON *v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_flow_schema_status->conditions - if(v1beta1_flow_schema_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v1beta1_flow_schema_status->conditions) { - list_ForEach(conditionsListEntry, v1beta1_flow_schema_status->conditions) { - cJSON *itemLocal = v1beta1_flow_schema_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_parseFromJSON(cJSON *v1beta1_flow_schema_statusJSON){ - - v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_local_var = NULL; - - // define the local list for v1beta1_flow_schema_status->conditions - list_t *conditionsList = NULL; - - // v1beta1_flow_schema_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta1_flow_schema_statusJSON, "conditions"); - if (conditions) { - cJSON *conditions_local_nonprimitive = NULL; - if(!cJSON_IsArray(conditions)){ - goto end; //nonprimitive container - } - - conditionsList = list_createList(); - - cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) - { - if(!cJSON_IsObject(conditions_local_nonprimitive)){ - goto end; - } - v1beta1_flow_schema_condition_t *conditionsItem = v1beta1_flow_schema_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - - v1beta1_flow_schema_status_local_var = v1beta1_flow_schema_status_create ( - conditions ? conditionsList : NULL - ); - - return v1beta1_flow_schema_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v1beta1_flow_schema_condition_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(conditionsList); - conditionsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_flow_schema_status.h b/kubernetes/model/v1beta1_flow_schema_status.h deleted file mode 100644 index c6725bd..0000000 --- a/kubernetes/model/v1beta1_flow_schema_status.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * v1beta1_flow_schema_status.h - * - * FlowSchemaStatus represents the current state of a FlowSchema. - */ - -#ifndef _v1beta1_flow_schema_status_H_ -#define _v1beta1_flow_schema_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_flow_schema_status_t v1beta1_flow_schema_status_t; - -#include "v1beta1_flow_schema_condition.h" - - - -typedef struct v1beta1_flow_schema_status_t { - list_t *conditions; //nonprimitive container - -} v1beta1_flow_schema_status_t; - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_create( - list_t *conditions -); - -void v1beta1_flow_schema_status_free(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status); - -v1beta1_flow_schema_status_t *v1beta1_flow_schema_status_parseFromJSON(cJSON *v1beta1_flow_schema_statusJSON); - -cJSON *v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_t *v1beta1_flow_schema_status); - -#endif /* _v1beta1_flow_schema_status_H_ */ - diff --git a/kubernetes/model/v1beta1_group_subject.c b/kubernetes/model/v1beta1_group_subject.c deleted file mode 100644 index deaf2f2..0000000 --- a/kubernetes/model/v1beta1_group_subject.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_group_subject.h" - - - -v1beta1_group_subject_t *v1beta1_group_subject_create( - char *name - ) { - v1beta1_group_subject_t *v1beta1_group_subject_local_var = malloc(sizeof(v1beta1_group_subject_t)); - if (!v1beta1_group_subject_local_var) { - return NULL; - } - v1beta1_group_subject_local_var->name = name; - - return v1beta1_group_subject_local_var; -} - - -void v1beta1_group_subject_free(v1beta1_group_subject_t *v1beta1_group_subject) { - if(NULL == v1beta1_group_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_group_subject->name) { - free(v1beta1_group_subject->name); - v1beta1_group_subject->name = NULL; - } - free(v1beta1_group_subject); -} - -cJSON *v1beta1_group_subject_convertToJSON(v1beta1_group_subject_t *v1beta1_group_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_group_subject->name - if (!v1beta1_group_subject->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_group_subject->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_group_subject_t *v1beta1_group_subject_parseFromJSON(cJSON *v1beta1_group_subjectJSON){ - - v1beta1_group_subject_t *v1beta1_group_subject_local_var = NULL; - - // v1beta1_group_subject->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_group_subjectJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_group_subject_local_var = v1beta1_group_subject_create ( - strdup(name->valuestring) - ); - - return v1beta1_group_subject_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_group_subject.h b/kubernetes/model/v1beta1_group_subject.h deleted file mode 100644 index 40738e1..0000000 --- a/kubernetes/model/v1beta1_group_subject.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_group_subject.h - * - * GroupSubject holds detailed information for group-kind subject. - */ - -#ifndef _v1beta1_group_subject_H_ -#define _v1beta1_group_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_group_subject_t v1beta1_group_subject_t; - - - - -typedef struct v1beta1_group_subject_t { - char *name; // string - -} v1beta1_group_subject_t; - -v1beta1_group_subject_t *v1beta1_group_subject_create( - char *name -); - -void v1beta1_group_subject_free(v1beta1_group_subject_t *v1beta1_group_subject); - -v1beta1_group_subject_t *v1beta1_group_subject_parseFromJSON(cJSON *v1beta1_group_subjectJSON); - -cJSON *v1beta1_group_subject_convertToJSON(v1beta1_group_subject_t *v1beta1_group_subject); - -#endif /* _v1beta1_group_subject_H_ */ - diff --git a/kubernetes/model/v1beta1_limit_response.c b/kubernetes/model/v1beta1_limit_response.c deleted file mode 100644 index e4356d6..0000000 --- a/kubernetes/model/v1beta1_limit_response.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include -#include -#include "v1beta1_limit_response.h" - - - -v1beta1_limit_response_t *v1beta1_limit_response_create( - v1beta1_queuing_configuration_t *queuing, - char *type - ) { - v1beta1_limit_response_t *v1beta1_limit_response_local_var = malloc(sizeof(v1beta1_limit_response_t)); - if (!v1beta1_limit_response_local_var) { - return NULL; - } - v1beta1_limit_response_local_var->queuing = queuing; - v1beta1_limit_response_local_var->type = type; - - return v1beta1_limit_response_local_var; -} - - -void v1beta1_limit_response_free(v1beta1_limit_response_t *v1beta1_limit_response) { - if(NULL == v1beta1_limit_response){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_limit_response->queuing) { - v1beta1_queuing_configuration_free(v1beta1_limit_response->queuing); - v1beta1_limit_response->queuing = NULL; - } - if (v1beta1_limit_response->type) { - free(v1beta1_limit_response->type); - v1beta1_limit_response->type = NULL; - } - free(v1beta1_limit_response); -} - -cJSON *v1beta1_limit_response_convertToJSON(v1beta1_limit_response_t *v1beta1_limit_response) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_limit_response->queuing - if(v1beta1_limit_response->queuing) { - cJSON *queuing_local_JSON = v1beta1_queuing_configuration_convertToJSON(v1beta1_limit_response->queuing); - if(queuing_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "queuing", queuing_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_limit_response->type - if (!v1beta1_limit_response->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v1beta1_limit_response->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_limit_response_t *v1beta1_limit_response_parseFromJSON(cJSON *v1beta1_limit_responseJSON){ - - v1beta1_limit_response_t *v1beta1_limit_response_local_var = NULL; - - // define the local variable for v1beta1_limit_response->queuing - v1beta1_queuing_configuration_t *queuing_local_nonprim = NULL; - - // v1beta1_limit_response->queuing - cJSON *queuing = cJSON_GetObjectItemCaseSensitive(v1beta1_limit_responseJSON, "queuing"); - if (queuing) { - queuing_local_nonprim = v1beta1_queuing_configuration_parseFromJSON(queuing); //nonprimitive - } - - // v1beta1_limit_response->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_limit_responseJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v1beta1_limit_response_local_var = v1beta1_limit_response_create ( - queuing ? queuing_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v1beta1_limit_response_local_var; -end: - if (queuing_local_nonprim) { - v1beta1_queuing_configuration_free(queuing_local_nonprim); - queuing_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_limit_response.h b/kubernetes/model/v1beta1_limit_response.h deleted file mode 100644 index 7c95fe4..0000000 --- a/kubernetes/model/v1beta1_limit_response.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_limit_response.h - * - * LimitResponse defines how to handle requests that can not be executed right now. - */ - -#ifndef _v1beta1_limit_response_H_ -#define _v1beta1_limit_response_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_limit_response_t v1beta1_limit_response_t; - -#include "v1beta1_queuing_configuration.h" - - - -typedef struct v1beta1_limit_response_t { - struct v1beta1_queuing_configuration_t *queuing; //model - char *type; // string - -} v1beta1_limit_response_t; - -v1beta1_limit_response_t *v1beta1_limit_response_create( - v1beta1_queuing_configuration_t *queuing, - char *type -); - -void v1beta1_limit_response_free(v1beta1_limit_response_t *v1beta1_limit_response); - -v1beta1_limit_response_t *v1beta1_limit_response_parseFromJSON(cJSON *v1beta1_limit_responseJSON); - -cJSON *v1beta1_limit_response_convertToJSON(v1beta1_limit_response_t *v1beta1_limit_response); - -#endif /* _v1beta1_limit_response_H_ */ - diff --git a/kubernetes/model/v1beta1_limited_priority_level_configuration.c b/kubernetes/model/v1beta1_limited_priority_level_configuration.c deleted file mode 100644 index c6f4e0f..0000000 --- a/kubernetes/model/v1beta1_limited_priority_level_configuration.c +++ /dev/null @@ -1,102 +0,0 @@ -#include -#include -#include -#include "v1beta1_limited_priority_level_configuration.h" - - - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_create( - int assured_concurrency_shares, - v1beta1_limit_response_t *limit_response - ) { - v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_local_var = malloc(sizeof(v1beta1_limited_priority_level_configuration_t)); - if (!v1beta1_limited_priority_level_configuration_local_var) { - return NULL; - } - v1beta1_limited_priority_level_configuration_local_var->assured_concurrency_shares = assured_concurrency_shares; - v1beta1_limited_priority_level_configuration_local_var->limit_response = limit_response; - - return v1beta1_limited_priority_level_configuration_local_var; -} - - -void v1beta1_limited_priority_level_configuration_free(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration) { - if(NULL == v1beta1_limited_priority_level_configuration){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_limited_priority_level_configuration->limit_response) { - v1beta1_limit_response_free(v1beta1_limited_priority_level_configuration->limit_response); - v1beta1_limited_priority_level_configuration->limit_response = NULL; - } - free(v1beta1_limited_priority_level_configuration); -} - -cJSON *v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_limited_priority_level_configuration->assured_concurrency_shares - if(v1beta1_limited_priority_level_configuration->assured_concurrency_shares) { - if(cJSON_AddNumberToObject(item, "assuredConcurrencyShares", v1beta1_limited_priority_level_configuration->assured_concurrency_shares) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_limited_priority_level_configuration->limit_response - if(v1beta1_limited_priority_level_configuration->limit_response) { - cJSON *limit_response_local_JSON = v1beta1_limit_response_convertToJSON(v1beta1_limited_priority_level_configuration->limit_response); - if(limit_response_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "limitResponse", limit_response_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta1_limited_priority_level_configurationJSON){ - - v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_local_var = NULL; - - // define the local variable for v1beta1_limited_priority_level_configuration->limit_response - v1beta1_limit_response_t *limit_response_local_nonprim = NULL; - - // v1beta1_limited_priority_level_configuration->assured_concurrency_shares - cJSON *assured_concurrency_shares = cJSON_GetObjectItemCaseSensitive(v1beta1_limited_priority_level_configurationJSON, "assuredConcurrencyShares"); - if (assured_concurrency_shares) { - if(!cJSON_IsNumber(assured_concurrency_shares)) - { - goto end; //Numeric - } - } - - // v1beta1_limited_priority_level_configuration->limit_response - cJSON *limit_response = cJSON_GetObjectItemCaseSensitive(v1beta1_limited_priority_level_configurationJSON, "limitResponse"); - if (limit_response) { - limit_response_local_nonprim = v1beta1_limit_response_parseFromJSON(limit_response); //nonprimitive - } - - - v1beta1_limited_priority_level_configuration_local_var = v1beta1_limited_priority_level_configuration_create ( - assured_concurrency_shares ? assured_concurrency_shares->valuedouble : 0, - limit_response ? limit_response_local_nonprim : NULL - ); - - return v1beta1_limited_priority_level_configuration_local_var; -end: - if (limit_response_local_nonprim) { - v1beta1_limit_response_free(limit_response_local_nonprim); - limit_response_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_limited_priority_level_configuration.h b/kubernetes/model/v1beta1_limited_priority_level_configuration.h deleted file mode 100644 index f5a4b59..0000000 --- a/kubernetes/model/v1beta1_limited_priority_level_configuration.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_limited_priority_level_configuration.h - * - * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit? - */ - -#ifndef _v1beta1_limited_priority_level_configuration_H_ -#define _v1beta1_limited_priority_level_configuration_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_limited_priority_level_configuration_t v1beta1_limited_priority_level_configuration_t; - -#include "v1beta1_limit_response.h" - - - -typedef struct v1beta1_limited_priority_level_configuration_t { - int assured_concurrency_shares; //numeric - struct v1beta1_limit_response_t *limit_response; //model - -} v1beta1_limited_priority_level_configuration_t; - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_create( - int assured_concurrency_shares, - v1beta1_limit_response_t *limit_response -); - -void v1beta1_limited_priority_level_configuration_free(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration); - -v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta1_limited_priority_level_configurationJSON); - -cJSON *v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_t *v1beta1_limited_priority_level_configuration); - -#endif /* _v1beta1_limited_priority_level_configuration_H_ */ - diff --git a/kubernetes/model/v1beta1_non_resource_policy_rule.h b/kubernetes/model/v1beta1_non_resource_policy_rule.h deleted file mode 100644 index bc3064f..0000000 --- a/kubernetes/model/v1beta1_non_resource_policy_rule.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_non_resource_policy_rule.h - * - * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. - */ - -#ifndef _v1beta1_non_resource_policy_rule_H_ -#define _v1beta1_non_resource_policy_rule_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_non_resource_policy_rule_t v1beta1_non_resource_policy_rule_t; - - - - -typedef struct v1beta1_non_resource_policy_rule_t { - list_t *non_resource_urls; //primitive container - list_t *verbs; //primitive container - -} v1beta1_non_resource_policy_rule_t; - -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_create( - list_t *non_resource_urls, - list_t *verbs -); - -void v1beta1_non_resource_policy_rule_free(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule); - -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJSON(cJSON *v1beta1_non_resource_policy_ruleJSON); - -cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule); - -#endif /* _v1beta1_non_resource_policy_rule_H_ */ - diff --git a/kubernetes/model/v1beta1_policy_rules_with_subjects.h b/kubernetes/model/v1beta1_policy_rules_with_subjects.h deleted file mode 100644 index 48f2ec1..0000000 --- a/kubernetes/model/v1beta1_policy_rules_with_subjects.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v1beta1_policy_rules_with_subjects.h - * - * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. - */ - -#ifndef _v1beta1_policy_rules_with_subjects_H_ -#define _v1beta1_policy_rules_with_subjects_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_policy_rules_with_subjects_t v1beta1_policy_rules_with_subjects_t; - -#include "v1beta1_non_resource_policy_rule.h" -#include "v1beta1_resource_policy_rule.h" -#include "v1beta1_subject.h" - - - -typedef struct v1beta1_policy_rules_with_subjects_t { - list_t *non_resource_rules; //nonprimitive container - list_t *resource_rules; //nonprimitive container - list_t *subjects; //nonprimitive container - -} v1beta1_policy_rules_with_subjects_t; - -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_create( - list_t *non_resource_rules, - list_t *resource_rules, - list_t *subjects -); - -void v1beta1_policy_rules_with_subjects_free(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects); - -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta1_policy_rules_with_subjectsJSON); - -cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects); - -#endif /* _v1beta1_policy_rules_with_subjects_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration.c b/kubernetes/model/v1beta1_priority_level_configuration.c deleted file mode 100644 index 2521e24..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration.h" - - - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_priority_level_configuration_spec_t *spec, - v1beta1_priority_level_configuration_status_t *status - ) { - v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_local_var = malloc(sizeof(v1beta1_priority_level_configuration_t)); - if (!v1beta1_priority_level_configuration_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_local_var->api_version = api_version; - v1beta1_priority_level_configuration_local_var->kind = kind; - v1beta1_priority_level_configuration_local_var->metadata = metadata; - v1beta1_priority_level_configuration_local_var->spec = spec; - v1beta1_priority_level_configuration_local_var->status = status; - - return v1beta1_priority_level_configuration_local_var; -} - - -void v1beta1_priority_level_configuration_free(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration) { - if(NULL == v1beta1_priority_level_configuration){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration->api_version) { - free(v1beta1_priority_level_configuration->api_version); - v1beta1_priority_level_configuration->api_version = NULL; - } - if (v1beta1_priority_level_configuration->kind) { - free(v1beta1_priority_level_configuration->kind); - v1beta1_priority_level_configuration->kind = NULL; - } - if (v1beta1_priority_level_configuration->metadata) { - v1_object_meta_free(v1beta1_priority_level_configuration->metadata); - v1beta1_priority_level_configuration->metadata = NULL; - } - if (v1beta1_priority_level_configuration->spec) { - v1beta1_priority_level_configuration_spec_free(v1beta1_priority_level_configuration->spec); - v1beta1_priority_level_configuration->spec = NULL; - } - if (v1beta1_priority_level_configuration->status) { - v1beta1_priority_level_configuration_status_free(v1beta1_priority_level_configuration->status); - v1beta1_priority_level_configuration->status = NULL; - } - free(v1beta1_priority_level_configuration); -} - -cJSON *v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration->api_version - if(v1beta1_priority_level_configuration->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_priority_level_configuration->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration->kind - if(v1beta1_priority_level_configuration->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_priority_level_configuration->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration->metadata - if(v1beta1_priority_level_configuration->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta1_priority_level_configuration->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_priority_level_configuration->spec - if(v1beta1_priority_level_configuration->spec) { - cJSON *spec_local_JSON = v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_priority_level_configuration->status - if(v1beta1_priority_level_configuration->status) { - cJSON *status_local_JSON = v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration->status); - if(status_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "status", status_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_parseFromJSON(cJSON *v1beta1_priority_level_configurationJSON){ - - v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_local_var = NULL; - - // define the local variable for v1beta1_priority_level_configuration->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v1beta1_priority_level_configuration->spec - v1beta1_priority_level_configuration_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v1beta1_priority_level_configuration->status - v1beta1_priority_level_configuration_status_t *status_local_nonprim = NULL; - - // v1beta1_priority_level_configuration->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v1beta1_priority_level_configuration->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "spec"); - if (spec) { - spec_local_nonprim = v1beta1_priority_level_configuration_spec_parseFromJSON(spec); //nonprimitive - } - - // v1beta1_priority_level_configuration->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configurationJSON, "status"); - if (status) { - status_local_nonprim = v1beta1_priority_level_configuration_status_parseFromJSON(status); //nonprimitive - } - - - v1beta1_priority_level_configuration_local_var = v1beta1_priority_level_configuration_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v1beta1_priority_level_configuration_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v1beta1_priority_level_configuration_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v1beta1_priority_level_configuration_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration.h b/kubernetes/model/v1beta1_priority_level_configuration.h deleted file mode 100644 index 7869674..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v1beta1_priority_level_configuration.h - * - * PriorityLevelConfiguration represents the configuration of a priority level. - */ - -#ifndef _v1beta1_priority_level_configuration_H_ -#define _v1beta1_priority_level_configuration_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_t v1beta1_priority_level_configuration_t; - -#include "v1_object_meta.h" -#include "v1beta1_priority_level_configuration_spec.h" -#include "v1beta1_priority_level_configuration_status.h" - - - -typedef struct v1beta1_priority_level_configuration_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v1beta1_priority_level_configuration_spec_t *spec; //model - struct v1beta1_priority_level_configuration_status_t *status; //model - -} v1beta1_priority_level_configuration_t; - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v1beta1_priority_level_configuration_spec_t *spec, - v1beta1_priority_level_configuration_status_t *status -); - -void v1beta1_priority_level_configuration_free(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration); - -v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration_parseFromJSON(cJSON *v1beta1_priority_level_configurationJSON); - -cJSON *v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_t *v1beta1_priority_level_configuration); - -#endif /* _v1beta1_priority_level_configuration_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_condition.c b/kubernetes/model/v1beta1_priority_level_configuration_condition.c deleted file mode 100644 index 150db5d..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_condition.c +++ /dev/null @@ -1,169 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_condition.h" - - - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type - ) { - v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_local_var = malloc(sizeof(v1beta1_priority_level_configuration_condition_t)); - if (!v1beta1_priority_level_configuration_condition_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_condition_local_var->last_transition_time = last_transition_time; - v1beta1_priority_level_configuration_condition_local_var->message = message; - v1beta1_priority_level_configuration_condition_local_var->reason = reason; - v1beta1_priority_level_configuration_condition_local_var->status = status; - v1beta1_priority_level_configuration_condition_local_var->type = type; - - return v1beta1_priority_level_configuration_condition_local_var; -} - - -void v1beta1_priority_level_configuration_condition_free(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition) { - if(NULL == v1beta1_priority_level_configuration_condition){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_condition->last_transition_time) { - free(v1beta1_priority_level_configuration_condition->last_transition_time); - v1beta1_priority_level_configuration_condition->last_transition_time = NULL; - } - if (v1beta1_priority_level_configuration_condition->message) { - free(v1beta1_priority_level_configuration_condition->message); - v1beta1_priority_level_configuration_condition->message = NULL; - } - if (v1beta1_priority_level_configuration_condition->reason) { - free(v1beta1_priority_level_configuration_condition->reason); - v1beta1_priority_level_configuration_condition->reason = NULL; - } - if (v1beta1_priority_level_configuration_condition->status) { - free(v1beta1_priority_level_configuration_condition->status); - v1beta1_priority_level_configuration_condition->status = NULL; - } - if (v1beta1_priority_level_configuration_condition->type) { - free(v1beta1_priority_level_configuration_condition->type); - v1beta1_priority_level_configuration_condition->type = NULL; - } - free(v1beta1_priority_level_configuration_condition); -} - -cJSON *v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_condition->last_transition_time - if(v1beta1_priority_level_configuration_condition->last_transition_time) { - if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta1_priority_level_configuration_condition->last_transition_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v1beta1_priority_level_configuration_condition->message - if(v1beta1_priority_level_configuration_condition->message) { - if(cJSON_AddStringToObject(item, "message", v1beta1_priority_level_configuration_condition->message) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_condition->reason - if(v1beta1_priority_level_configuration_condition->reason) { - if(cJSON_AddStringToObject(item, "reason", v1beta1_priority_level_configuration_condition->reason) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_condition->status - if(v1beta1_priority_level_configuration_condition->status) { - if(cJSON_AddStringToObject(item, "status", v1beta1_priority_level_configuration_condition->status) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_condition->type - if(v1beta1_priority_level_configuration_condition->type) { - if(cJSON_AddStringToObject(item, "type", v1beta1_priority_level_configuration_condition->type) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta1_priority_level_configuration_conditionJSON){ - - v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_local_var = NULL; - - // v1beta1_priority_level_configuration_condition->last_transition_time - cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "lastTransitionTime"); - if (last_transition_time) { - if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) - { - goto end; //DateTime - } - } - - // v1beta1_priority_level_configuration_condition->message - cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "message"); - if (message) { - if(!cJSON_IsString(message) && !cJSON_IsNull(message)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_condition->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_condition->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "status"); - if (status) { - if(!cJSON_IsString(status) && !cJSON_IsNull(status)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_condition->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_conditionJSON, "type"); - if (type) { - if(!cJSON_IsString(type) && !cJSON_IsNull(type)) - { - goto end; //String - } - } - - - v1beta1_priority_level_configuration_condition_local_var = v1beta1_priority_level_configuration_condition_create ( - last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, - reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, - status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, - type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL - ); - - return v1beta1_priority_level_configuration_condition_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_condition.h b/kubernetes/model/v1beta1_priority_level_configuration_condition.h deleted file mode 100644 index 67e5bc5..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_condition.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_priority_level_configuration_condition.h - * - * PriorityLevelConfigurationCondition defines the condition of priority level. - */ - -#ifndef _v1beta1_priority_level_configuration_condition_H_ -#define _v1beta1_priority_level_configuration_condition_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_condition_t v1beta1_priority_level_configuration_condition_t; - - - - -typedef struct v1beta1_priority_level_configuration_condition_t { - char *last_transition_time; //date time - char *message; // string - char *reason; // string - char *status; // string - char *type; // string - -} v1beta1_priority_level_configuration_condition_t; - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type -); - -void v1beta1_priority_level_configuration_condition_free(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition); - -v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta1_priority_level_configuration_conditionJSON); - -cJSON *v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_t *v1beta1_priority_level_configuration_condition); - -#endif /* _v1beta1_priority_level_configuration_condition_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_list.c b/kubernetes/model/v1beta1_priority_level_configuration_list.c deleted file mode 100644 index 1e36f95..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_list.h" - - - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_local_var = malloc(sizeof(v1beta1_priority_level_configuration_list_t)); - if (!v1beta1_priority_level_configuration_list_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_list_local_var->api_version = api_version; - v1beta1_priority_level_configuration_list_local_var->items = items; - v1beta1_priority_level_configuration_list_local_var->kind = kind; - v1beta1_priority_level_configuration_list_local_var->metadata = metadata; - - return v1beta1_priority_level_configuration_list_local_var; -} - - -void v1beta1_priority_level_configuration_list_free(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list) { - if(NULL == v1beta1_priority_level_configuration_list){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_list->api_version) { - free(v1beta1_priority_level_configuration_list->api_version); - v1beta1_priority_level_configuration_list->api_version = NULL; - } - if (v1beta1_priority_level_configuration_list->items) { - list_ForEach(listEntry, v1beta1_priority_level_configuration_list->items) { - v1beta1_priority_level_configuration_free(listEntry->data); - } - list_freeList(v1beta1_priority_level_configuration_list->items); - v1beta1_priority_level_configuration_list->items = NULL; - } - if (v1beta1_priority_level_configuration_list->kind) { - free(v1beta1_priority_level_configuration_list->kind); - v1beta1_priority_level_configuration_list->kind = NULL; - } - if (v1beta1_priority_level_configuration_list->metadata) { - v1_list_meta_free(v1beta1_priority_level_configuration_list->metadata); - v1beta1_priority_level_configuration_list->metadata = NULL; - } - free(v1beta1_priority_level_configuration_list); -} - -cJSON *v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_list->api_version - if(v1beta1_priority_level_configuration_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v1beta1_priority_level_configuration_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_list->items - if (!v1beta1_priority_level_configuration_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v1beta1_priority_level_configuration_list->items) { - list_ForEach(itemsListEntry, v1beta1_priority_level_configuration_list->items) { - cJSON *itemLocal = v1beta1_priority_level_configuration_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v1beta1_priority_level_configuration_list->kind - if(v1beta1_priority_level_configuration_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v1beta1_priority_level_configuration_list->kind) == NULL) { - goto fail; //String - } - } - - - // v1beta1_priority_level_configuration_list->metadata - if(v1beta1_priority_level_configuration_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta1_priority_level_configuration_list->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_parseFromJSON(cJSON *v1beta1_priority_level_configuration_listJSON){ - - v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_local_var = NULL; - - // define the local list for v1beta1_priority_level_configuration_list->items - list_t *itemsList = NULL; - - // define the local variable for v1beta1_priority_level_configuration_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v1beta1_priority_level_configuration_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "items"); - if (!items) { - goto end; - } - - - cJSON *items_local_nonprimitive = NULL; - if(!cJSON_IsArray(items)){ - goto end; //nonprimitive container - } - - itemsList = list_createList(); - - cJSON_ArrayForEach(items_local_nonprimitive,items ) - { - if(!cJSON_IsObject(items_local_nonprimitive)){ - goto end; - } - v1beta1_priority_level_configuration_t *itemsItem = v1beta1_priority_level_configuration_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v1beta1_priority_level_configuration_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v1beta1_priority_level_configuration_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v1beta1_priority_level_configuration_list_local_var = v1beta1_priority_level_configuration_list_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - itemsList, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v1beta1_priority_level_configuration_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v1beta1_priority_level_configuration_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(itemsList); - itemsList = NULL; - } - if (metadata_local_nonprim) { - v1_list_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_list.h b/kubernetes/model/v1beta1_priority_level_configuration_list.h deleted file mode 100644 index b0a6fe4..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v1beta1_priority_level_configuration_list.h - * - * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. - */ - -#ifndef _v1beta1_priority_level_configuration_list_H_ -#define _v1beta1_priority_level_configuration_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_list_t v1beta1_priority_level_configuration_list_t; - -#include "v1_list_meta.h" -#include "v1beta1_priority_level_configuration.h" - - - -typedef struct v1beta1_priority_level_configuration_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v1beta1_priority_level_configuration_list_t; - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v1beta1_priority_level_configuration_list_free(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list); - -v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list_parseFromJSON(cJSON *v1beta1_priority_level_configuration_listJSON); - -cJSON *v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_t *v1beta1_priority_level_configuration_list); - -#endif /* _v1beta1_priority_level_configuration_list_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_reference.c b/kubernetes/model/v1beta1_priority_level_configuration_reference.c deleted file mode 100644 index 966f5fe..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_reference.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_reference.h" - - - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_create( - char *name - ) { - v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_local_var = malloc(sizeof(v1beta1_priority_level_configuration_reference_t)); - if (!v1beta1_priority_level_configuration_reference_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_reference_local_var->name = name; - - return v1beta1_priority_level_configuration_reference_local_var; -} - - -void v1beta1_priority_level_configuration_reference_free(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference) { - if(NULL == v1beta1_priority_level_configuration_reference){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_reference->name) { - free(v1beta1_priority_level_configuration_reference->name); - v1beta1_priority_level_configuration_reference->name = NULL; - } - free(v1beta1_priority_level_configuration_reference); -} - -cJSON *v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_reference->name - if (!v1beta1_priority_level_configuration_reference->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_priority_level_configuration_reference->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta1_priority_level_configuration_referenceJSON){ - - v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_local_var = NULL; - - // v1beta1_priority_level_configuration_reference->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_referenceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_priority_level_configuration_reference_local_var = v1beta1_priority_level_configuration_reference_create ( - strdup(name->valuestring) - ); - - return v1beta1_priority_level_configuration_reference_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_reference.h b/kubernetes/model/v1beta1_priority_level_configuration_reference.h deleted file mode 100644 index 9af575d..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_reference.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_priority_level_configuration_reference.h - * - * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. - */ - -#ifndef _v1beta1_priority_level_configuration_reference_H_ -#define _v1beta1_priority_level_configuration_reference_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_reference_t v1beta1_priority_level_configuration_reference_t; - - - - -typedef struct v1beta1_priority_level_configuration_reference_t { - char *name; // string - -} v1beta1_priority_level_configuration_reference_t; - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_create( - char *name -); - -void v1beta1_priority_level_configuration_reference_free(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference); - -v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta1_priority_level_configuration_referenceJSON); - -cJSON *v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_t *v1beta1_priority_level_configuration_reference); - -#endif /* _v1beta1_priority_level_configuration_reference_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_spec.c b/kubernetes/model/v1beta1_priority_level_configuration_spec.c deleted file mode 100644 index fcaad56..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_spec.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_spec.h" - - - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_create( - v1beta1_limited_priority_level_configuration_t *limited, - char *type - ) { - v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_local_var = malloc(sizeof(v1beta1_priority_level_configuration_spec_t)); - if (!v1beta1_priority_level_configuration_spec_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_spec_local_var->limited = limited; - v1beta1_priority_level_configuration_spec_local_var->type = type; - - return v1beta1_priority_level_configuration_spec_local_var; -} - - -void v1beta1_priority_level_configuration_spec_free(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec) { - if(NULL == v1beta1_priority_level_configuration_spec){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_spec->limited) { - v1beta1_limited_priority_level_configuration_free(v1beta1_priority_level_configuration_spec->limited); - v1beta1_priority_level_configuration_spec->limited = NULL; - } - if (v1beta1_priority_level_configuration_spec->type) { - free(v1beta1_priority_level_configuration_spec->type); - v1beta1_priority_level_configuration_spec->type = NULL; - } - free(v1beta1_priority_level_configuration_spec); -} - -cJSON *v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_spec->limited - if(v1beta1_priority_level_configuration_spec->limited) { - cJSON *limited_local_JSON = v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_spec->limited); - if(limited_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "limited", limited_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_priority_level_configuration_spec->type - if (!v1beta1_priority_level_configuration_spec->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v1beta1_priority_level_configuration_spec->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta1_priority_level_configuration_specJSON){ - - v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_local_var = NULL; - - // define the local variable for v1beta1_priority_level_configuration_spec->limited - v1beta1_limited_priority_level_configuration_t *limited_local_nonprim = NULL; - - // v1beta1_priority_level_configuration_spec->limited - cJSON *limited = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_specJSON, "limited"); - if (limited) { - limited_local_nonprim = v1beta1_limited_priority_level_configuration_parseFromJSON(limited); //nonprimitive - } - - // v1beta1_priority_level_configuration_spec->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_specJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v1beta1_priority_level_configuration_spec_local_var = v1beta1_priority_level_configuration_spec_create ( - limited ? limited_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v1beta1_priority_level_configuration_spec_local_var; -end: - if (limited_local_nonprim) { - v1beta1_limited_priority_level_configuration_free(limited_local_nonprim); - limited_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_spec.h b/kubernetes/model/v1beta1_priority_level_configuration_spec.h deleted file mode 100644 index 9339bba..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_spec.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v1beta1_priority_level_configuration_spec.h - * - * PriorityLevelConfigurationSpec specifies the configuration of a priority level. - */ - -#ifndef _v1beta1_priority_level_configuration_spec_H_ -#define _v1beta1_priority_level_configuration_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_spec_t v1beta1_priority_level_configuration_spec_t; - -#include "v1beta1_limited_priority_level_configuration.h" - - - -typedef struct v1beta1_priority_level_configuration_spec_t { - struct v1beta1_limited_priority_level_configuration_t *limited; //model - char *type; // string - -} v1beta1_priority_level_configuration_spec_t; - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_create( - v1beta1_limited_priority_level_configuration_t *limited, - char *type -); - -void v1beta1_priority_level_configuration_spec_free(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec); - -v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta1_priority_level_configuration_specJSON); - -cJSON *v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_t *v1beta1_priority_level_configuration_spec); - -#endif /* _v1beta1_priority_level_configuration_spec_H_ */ - diff --git a/kubernetes/model/v1beta1_priority_level_configuration_status.c b/kubernetes/model/v1beta1_priority_level_configuration_status.c deleted file mode 100644 index b9cb34f..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_status.c +++ /dev/null @@ -1,112 +0,0 @@ -#include -#include -#include -#include "v1beta1_priority_level_configuration_status.h" - - - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_create( - list_t *conditions - ) { - v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_local_var = malloc(sizeof(v1beta1_priority_level_configuration_status_t)); - if (!v1beta1_priority_level_configuration_status_local_var) { - return NULL; - } - v1beta1_priority_level_configuration_status_local_var->conditions = conditions; - - return v1beta1_priority_level_configuration_status_local_var; -} - - -void v1beta1_priority_level_configuration_status_free(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status) { - if(NULL == v1beta1_priority_level_configuration_status){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_priority_level_configuration_status->conditions) { - list_ForEach(listEntry, v1beta1_priority_level_configuration_status->conditions) { - v1beta1_priority_level_configuration_condition_free(listEntry->data); - } - list_freeList(v1beta1_priority_level_configuration_status->conditions); - v1beta1_priority_level_configuration_status->conditions = NULL; - } - free(v1beta1_priority_level_configuration_status); -} - -cJSON *v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_priority_level_configuration_status->conditions - if(v1beta1_priority_level_configuration_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v1beta1_priority_level_configuration_status->conditions) { - list_ForEach(conditionsListEntry, v1beta1_priority_level_configuration_status->conditions) { - cJSON *itemLocal = v1beta1_priority_level_configuration_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_parseFromJSON(cJSON *v1beta1_priority_level_configuration_statusJSON){ - - v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_local_var = NULL; - - // define the local list for v1beta1_priority_level_configuration_status->conditions - list_t *conditionsList = NULL; - - // v1beta1_priority_level_configuration_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta1_priority_level_configuration_statusJSON, "conditions"); - if (conditions) { - cJSON *conditions_local_nonprimitive = NULL; - if(!cJSON_IsArray(conditions)){ - goto end; //nonprimitive container - } - - conditionsList = list_createList(); - - cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) - { - if(!cJSON_IsObject(conditions_local_nonprimitive)){ - goto end; - } - v1beta1_priority_level_configuration_condition_t *conditionsItem = v1beta1_priority_level_configuration_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - - v1beta1_priority_level_configuration_status_local_var = v1beta1_priority_level_configuration_status_create ( - conditions ? conditionsList : NULL - ); - - return v1beta1_priority_level_configuration_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v1beta1_priority_level_configuration_condition_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(conditionsList); - conditionsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_priority_level_configuration_status.h b/kubernetes/model/v1beta1_priority_level_configuration_status.h deleted file mode 100644 index 54aed88..0000000 --- a/kubernetes/model/v1beta1_priority_level_configuration_status.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * v1beta1_priority_level_configuration_status.h - * - * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". - */ - -#ifndef _v1beta1_priority_level_configuration_status_H_ -#define _v1beta1_priority_level_configuration_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_priority_level_configuration_status_t v1beta1_priority_level_configuration_status_t; - -#include "v1beta1_priority_level_configuration_condition.h" - - - -typedef struct v1beta1_priority_level_configuration_status_t { - list_t *conditions; //nonprimitive container - -} v1beta1_priority_level_configuration_status_t; - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_create( - list_t *conditions -); - -void v1beta1_priority_level_configuration_status_free(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status); - -v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status_parseFromJSON(cJSON *v1beta1_priority_level_configuration_statusJSON); - -cJSON *v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_t *v1beta1_priority_level_configuration_status); - -#endif /* _v1beta1_priority_level_configuration_status_H_ */ - diff --git a/kubernetes/model/v1beta1_queuing_configuration.c b/kubernetes/model/v1beta1_queuing_configuration.c deleted file mode 100644 index 46118d4..0000000 --- a/kubernetes/model/v1beta1_queuing_configuration.c +++ /dev/null @@ -1,109 +0,0 @@ -#include -#include -#include -#include "v1beta1_queuing_configuration.h" - - - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_create( - int hand_size, - int queue_length_limit, - int queues - ) { - v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_local_var = malloc(sizeof(v1beta1_queuing_configuration_t)); - if (!v1beta1_queuing_configuration_local_var) { - return NULL; - } - v1beta1_queuing_configuration_local_var->hand_size = hand_size; - v1beta1_queuing_configuration_local_var->queue_length_limit = queue_length_limit; - v1beta1_queuing_configuration_local_var->queues = queues; - - return v1beta1_queuing_configuration_local_var; -} - - -void v1beta1_queuing_configuration_free(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration) { - if(NULL == v1beta1_queuing_configuration){ - return ; - } - listEntry_t *listEntry; - free(v1beta1_queuing_configuration); -} - -cJSON *v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_queuing_configuration->hand_size - if(v1beta1_queuing_configuration->hand_size) { - if(cJSON_AddNumberToObject(item, "handSize", v1beta1_queuing_configuration->hand_size) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_queuing_configuration->queue_length_limit - if(v1beta1_queuing_configuration->queue_length_limit) { - if(cJSON_AddNumberToObject(item, "queueLengthLimit", v1beta1_queuing_configuration->queue_length_limit) == NULL) { - goto fail; //Numeric - } - } - - - // v1beta1_queuing_configuration->queues - if(v1beta1_queuing_configuration->queues) { - if(cJSON_AddNumberToObject(item, "queues", v1beta1_queuing_configuration->queues) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_parseFromJSON(cJSON *v1beta1_queuing_configurationJSON){ - - v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_local_var = NULL; - - // v1beta1_queuing_configuration->hand_size - cJSON *hand_size = cJSON_GetObjectItemCaseSensitive(v1beta1_queuing_configurationJSON, "handSize"); - if (hand_size) { - if(!cJSON_IsNumber(hand_size)) - { - goto end; //Numeric - } - } - - // v1beta1_queuing_configuration->queue_length_limit - cJSON *queue_length_limit = cJSON_GetObjectItemCaseSensitive(v1beta1_queuing_configurationJSON, "queueLengthLimit"); - if (queue_length_limit) { - if(!cJSON_IsNumber(queue_length_limit)) - { - goto end; //Numeric - } - } - - // v1beta1_queuing_configuration->queues - cJSON *queues = cJSON_GetObjectItemCaseSensitive(v1beta1_queuing_configurationJSON, "queues"); - if (queues) { - if(!cJSON_IsNumber(queues)) - { - goto end; //Numeric - } - } - - - v1beta1_queuing_configuration_local_var = v1beta1_queuing_configuration_create ( - hand_size ? hand_size->valuedouble : 0, - queue_length_limit ? queue_length_limit->valuedouble : 0, - queues ? queues->valuedouble : 0 - ); - - return v1beta1_queuing_configuration_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_queuing_configuration.h b/kubernetes/model/v1beta1_queuing_configuration.h deleted file mode 100644 index 5a994c4..0000000 --- a/kubernetes/model/v1beta1_queuing_configuration.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v1beta1_queuing_configuration.h - * - * QueuingConfiguration holds the configuration parameters for queuing - */ - -#ifndef _v1beta1_queuing_configuration_H_ -#define _v1beta1_queuing_configuration_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_queuing_configuration_t v1beta1_queuing_configuration_t; - - - - -typedef struct v1beta1_queuing_configuration_t { - int hand_size; //numeric - int queue_length_limit; //numeric - int queues; //numeric - -} v1beta1_queuing_configuration_t; - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_create( - int hand_size, - int queue_length_limit, - int queues -); - -void v1beta1_queuing_configuration_free(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration); - -v1beta1_queuing_configuration_t *v1beta1_queuing_configuration_parseFromJSON(cJSON *v1beta1_queuing_configurationJSON); - -cJSON *v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_t *v1beta1_queuing_configuration); - -#endif /* _v1beta1_queuing_configuration_H_ */ - diff --git a/kubernetes/model/v1beta1_service_account_subject.c b/kubernetes/model/v1beta1_service_account_subject.c deleted file mode 100644 index 669d93b..0000000 --- a/kubernetes/model/v1beta1_service_account_subject.c +++ /dev/null @@ -1,105 +0,0 @@ -#include -#include -#include -#include "v1beta1_service_account_subject.h" - - - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_create( - char *name, - char *_namespace - ) { - v1beta1_service_account_subject_t *v1beta1_service_account_subject_local_var = malloc(sizeof(v1beta1_service_account_subject_t)); - if (!v1beta1_service_account_subject_local_var) { - return NULL; - } - v1beta1_service_account_subject_local_var->name = name; - v1beta1_service_account_subject_local_var->_namespace = _namespace; - - return v1beta1_service_account_subject_local_var; -} - - -void v1beta1_service_account_subject_free(v1beta1_service_account_subject_t *v1beta1_service_account_subject) { - if(NULL == v1beta1_service_account_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_service_account_subject->name) { - free(v1beta1_service_account_subject->name); - v1beta1_service_account_subject->name = NULL; - } - if (v1beta1_service_account_subject->_namespace) { - free(v1beta1_service_account_subject->_namespace); - v1beta1_service_account_subject->_namespace = NULL; - } - free(v1beta1_service_account_subject); -} - -cJSON *v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_t *v1beta1_service_account_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_service_account_subject->name - if (!v1beta1_service_account_subject->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_service_account_subject->name) == NULL) { - goto fail; //String - } - - - // v1beta1_service_account_subject->_namespace - if (!v1beta1_service_account_subject->_namespace) { - goto fail; - } - if(cJSON_AddStringToObject(item, "namespace", v1beta1_service_account_subject->_namespace) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_parseFromJSON(cJSON *v1beta1_service_account_subjectJSON){ - - v1beta1_service_account_subject_t *v1beta1_service_account_subject_local_var = NULL; - - // v1beta1_service_account_subject->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_service_account_subjectJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v1beta1_service_account_subject->_namespace - cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1beta1_service_account_subjectJSON, "namespace"); - if (!_namespace) { - goto end; - } - - - if(!cJSON_IsString(_namespace)) - { - goto end; //String - } - - - v1beta1_service_account_subject_local_var = v1beta1_service_account_subject_create ( - strdup(name->valuestring), - strdup(_namespace->valuestring) - ); - - return v1beta1_service_account_subject_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_service_account_subject.h b/kubernetes/model/v1beta1_service_account_subject.h deleted file mode 100644 index f49755a..0000000 --- a/kubernetes/model/v1beta1_service_account_subject.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * v1beta1_service_account_subject.h - * - * ServiceAccountSubject holds detailed information for service-account-kind subject. - */ - -#ifndef _v1beta1_service_account_subject_H_ -#define _v1beta1_service_account_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_service_account_subject_t v1beta1_service_account_subject_t; - - - - -typedef struct v1beta1_service_account_subject_t { - char *name; // string - char *_namespace; // string - -} v1beta1_service_account_subject_t; - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_create( - char *name, - char *_namespace -); - -void v1beta1_service_account_subject_free(v1beta1_service_account_subject_t *v1beta1_service_account_subject); - -v1beta1_service_account_subject_t *v1beta1_service_account_subject_parseFromJSON(cJSON *v1beta1_service_account_subjectJSON); - -cJSON *v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_t *v1beta1_service_account_subject); - -#endif /* _v1beta1_service_account_subject_H_ */ - diff --git a/kubernetes/model/v1beta1_subject.c b/kubernetes/model/v1beta1_subject.c deleted file mode 100644 index ba62269..0000000 --- a/kubernetes/model/v1beta1_subject.c +++ /dev/null @@ -1,176 +0,0 @@ -#include -#include -#include -#include "v1beta1_subject.h" - - - -v1beta1_subject_t *v1beta1_subject_create( - v1beta1_group_subject_t *group, - char *kind, - v1beta1_service_account_subject_t *service_account, - v1beta1_user_subject_t *user - ) { - v1beta1_subject_t *v1beta1_subject_local_var = malloc(sizeof(v1beta1_subject_t)); - if (!v1beta1_subject_local_var) { - return NULL; - } - v1beta1_subject_local_var->group = group; - v1beta1_subject_local_var->kind = kind; - v1beta1_subject_local_var->service_account = service_account; - v1beta1_subject_local_var->user = user; - - return v1beta1_subject_local_var; -} - - -void v1beta1_subject_free(v1beta1_subject_t *v1beta1_subject) { - if(NULL == v1beta1_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_subject->group) { - v1beta1_group_subject_free(v1beta1_subject->group); - v1beta1_subject->group = NULL; - } - if (v1beta1_subject->kind) { - free(v1beta1_subject->kind); - v1beta1_subject->kind = NULL; - } - if (v1beta1_subject->service_account) { - v1beta1_service_account_subject_free(v1beta1_subject->service_account); - v1beta1_subject->service_account = NULL; - } - if (v1beta1_subject->user) { - v1beta1_user_subject_free(v1beta1_subject->user); - v1beta1_subject->user = NULL; - } - free(v1beta1_subject); -} - -cJSON *v1beta1_subject_convertToJSON(v1beta1_subject_t *v1beta1_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_subject->group - if(v1beta1_subject->group) { - cJSON *group_local_JSON = v1beta1_group_subject_convertToJSON(v1beta1_subject->group); - if(group_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "group", group_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_subject->kind - if (!v1beta1_subject->kind) { - goto fail; - } - if(cJSON_AddStringToObject(item, "kind", v1beta1_subject->kind) == NULL) { - goto fail; //String - } - - - // v1beta1_subject->service_account - if(v1beta1_subject->service_account) { - cJSON *service_account_local_JSON = v1beta1_service_account_subject_convertToJSON(v1beta1_subject->service_account); - if(service_account_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "serviceAccount", service_account_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v1beta1_subject->user - if(v1beta1_subject->user) { - cJSON *user_local_JSON = v1beta1_user_subject_convertToJSON(v1beta1_subject->user); - if(user_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "user", user_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_subject_t *v1beta1_subject_parseFromJSON(cJSON *v1beta1_subjectJSON){ - - v1beta1_subject_t *v1beta1_subject_local_var = NULL; - - // define the local variable for v1beta1_subject->group - v1beta1_group_subject_t *group_local_nonprim = NULL; - - // define the local variable for v1beta1_subject->service_account - v1beta1_service_account_subject_t *service_account_local_nonprim = NULL; - - // define the local variable for v1beta1_subject->user - v1beta1_user_subject_t *user_local_nonprim = NULL; - - // v1beta1_subject->group - cJSON *group = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "group"); - if (group) { - group_local_nonprim = v1beta1_group_subject_parseFromJSON(group); //nonprimitive - } - - // v1beta1_subject->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "kind"); - if (!kind) { - goto end; - } - - - if(!cJSON_IsString(kind)) - { - goto end; //String - } - - // v1beta1_subject->service_account - cJSON *service_account = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "serviceAccount"); - if (service_account) { - service_account_local_nonprim = v1beta1_service_account_subject_parseFromJSON(service_account); //nonprimitive - } - - // v1beta1_subject->user - cJSON *user = cJSON_GetObjectItemCaseSensitive(v1beta1_subjectJSON, "user"); - if (user) { - user_local_nonprim = v1beta1_user_subject_parseFromJSON(user); //nonprimitive - } - - - v1beta1_subject_local_var = v1beta1_subject_create ( - group ? group_local_nonprim : NULL, - strdup(kind->valuestring), - service_account ? service_account_local_nonprim : NULL, - user ? user_local_nonprim : NULL - ); - - return v1beta1_subject_local_var; -end: - if (group_local_nonprim) { - v1beta1_group_subject_free(group_local_nonprim); - group_local_nonprim = NULL; - } - if (service_account_local_nonprim) { - v1beta1_service_account_subject_free(service_account_local_nonprim); - service_account_local_nonprim = NULL; - } - if (user_local_nonprim) { - v1beta1_user_subject_free(user_local_nonprim); - user_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v1beta1_subject.h b/kubernetes/model/v1beta1_subject.h deleted file mode 100644 index b33271e..0000000 --- a/kubernetes/model/v1beta1_subject.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * v1beta1_subject.h - * - * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. - */ - -#ifndef _v1beta1_subject_H_ -#define _v1beta1_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_subject_t v1beta1_subject_t; - -#include "v1beta1_group_subject.h" -#include "v1beta1_service_account_subject.h" -#include "v1beta1_user_subject.h" - - - -typedef struct v1beta1_subject_t { - struct v1beta1_group_subject_t *group; //model - char *kind; // string - struct v1beta1_service_account_subject_t *service_account; //model - struct v1beta1_user_subject_t *user; //model - -} v1beta1_subject_t; - -v1beta1_subject_t *v1beta1_subject_create( - v1beta1_group_subject_t *group, - char *kind, - v1beta1_service_account_subject_t *service_account, - v1beta1_user_subject_t *user -); - -void v1beta1_subject_free(v1beta1_subject_t *v1beta1_subject); - -v1beta1_subject_t *v1beta1_subject_parseFromJSON(cJSON *v1beta1_subjectJSON); - -cJSON *v1beta1_subject_convertToJSON(v1beta1_subject_t *v1beta1_subject); - -#endif /* _v1beta1_subject_H_ */ - diff --git a/kubernetes/model/v1beta1_user_subject.c b/kubernetes/model/v1beta1_user_subject.c deleted file mode 100644 index 58fc26e..0000000 --- a/kubernetes/model/v1beta1_user_subject.c +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include -#include "v1beta1_user_subject.h" - - - -v1beta1_user_subject_t *v1beta1_user_subject_create( - char *name - ) { - v1beta1_user_subject_t *v1beta1_user_subject_local_var = malloc(sizeof(v1beta1_user_subject_t)); - if (!v1beta1_user_subject_local_var) { - return NULL; - } - v1beta1_user_subject_local_var->name = name; - - return v1beta1_user_subject_local_var; -} - - -void v1beta1_user_subject_free(v1beta1_user_subject_t *v1beta1_user_subject) { - if(NULL == v1beta1_user_subject){ - return ; - } - listEntry_t *listEntry; - if (v1beta1_user_subject->name) { - free(v1beta1_user_subject->name); - v1beta1_user_subject->name = NULL; - } - free(v1beta1_user_subject); -} - -cJSON *v1beta1_user_subject_convertToJSON(v1beta1_user_subject_t *v1beta1_user_subject) { - cJSON *item = cJSON_CreateObject(); - - // v1beta1_user_subject->name - if (!v1beta1_user_subject->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v1beta1_user_subject->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v1beta1_user_subject_t *v1beta1_user_subject_parseFromJSON(cJSON *v1beta1_user_subjectJSON){ - - v1beta1_user_subject_t *v1beta1_user_subject_local_var = NULL; - - // v1beta1_user_subject->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta1_user_subjectJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v1beta1_user_subject_local_var = v1beta1_user_subject_create ( - strdup(name->valuestring) - ); - - return v1beta1_user_subject_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v1beta1_user_subject.h b/kubernetes/model/v1beta1_user_subject.h deleted file mode 100644 index 02ba4af..0000000 --- a/kubernetes/model/v1beta1_user_subject.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * v1beta1_user_subject.h - * - * UserSubject holds detailed information for user-kind subject. - */ - -#ifndef _v1beta1_user_subject_H_ -#define _v1beta1_user_subject_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v1beta1_user_subject_t v1beta1_user_subject_t; - - - - -typedef struct v1beta1_user_subject_t { - char *name; // string - -} v1beta1_user_subject_t; - -v1beta1_user_subject_t *v1beta1_user_subject_create( - char *name -); - -void v1beta1_user_subject_free(v1beta1_user_subject_t *v1beta1_user_subject); - -v1beta1_user_subject_t *v1beta1_user_subject_parseFromJSON(cJSON *v1beta1_user_subjectJSON); - -cJSON *v1beta1_user_subject_convertToJSON(v1beta1_user_subject_t *v1beta1_user_subject); - -#endif /* _v1beta1_user_subject_H_ */ - diff --git a/kubernetes/model/v1beta2_limited_priority_level_configuration.c b/kubernetes/model/v1beta2_limited_priority_level_configuration.c index 22bdad3..1b8ccc8 100644 --- a/kubernetes/model/v1beta2_limited_priority_level_configuration.c +++ b/kubernetes/model/v1beta2_limited_priority_level_configuration.c @@ -7,6 +7,8 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_configuration_create( int assured_concurrency_shares, + int borrowing_limit_percent, + int lendable_percent, v1beta2_limit_response_t *limit_response ) { v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_configuration_local_var = malloc(sizeof(v1beta2_limited_priority_level_configuration_t)); @@ -14,6 +16,8 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_c return NULL; } v1beta2_limited_priority_level_configuration_local_var->assured_concurrency_shares = assured_concurrency_shares; + v1beta2_limited_priority_level_configuration_local_var->borrowing_limit_percent = borrowing_limit_percent; + v1beta2_limited_priority_level_configuration_local_var->lendable_percent = lendable_percent; v1beta2_limited_priority_level_configuration_local_var->limit_response = limit_response; return v1beta2_limited_priority_level_configuration_local_var; @@ -43,6 +47,22 @@ cJSON *v1beta2_limited_priority_level_configuration_convertToJSON(v1beta2_limite } + // v1beta2_limited_priority_level_configuration->borrowing_limit_percent + if(v1beta2_limited_priority_level_configuration->borrowing_limit_percent) { + if(cJSON_AddNumberToObject(item, "borrowingLimitPercent", v1beta2_limited_priority_level_configuration->borrowing_limit_percent) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta2_limited_priority_level_configuration->lendable_percent + if(v1beta2_limited_priority_level_configuration->lendable_percent) { + if(cJSON_AddNumberToObject(item, "lendablePercent", v1beta2_limited_priority_level_configuration->lendable_percent) == NULL) { + goto fail; //Numeric + } + } + + // v1beta2_limited_priority_level_configuration->limit_response if(v1beta2_limited_priority_level_configuration->limit_response) { cJSON *limit_response_local_JSON = v1beta2_limit_response_convertToJSON(v1beta2_limited_priority_level_configuration->limit_response); @@ -79,6 +99,24 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_c } } + // v1beta2_limited_priority_level_configuration->borrowing_limit_percent + cJSON *borrowing_limit_percent = cJSON_GetObjectItemCaseSensitive(v1beta2_limited_priority_level_configurationJSON, "borrowingLimitPercent"); + if (borrowing_limit_percent) { + if(!cJSON_IsNumber(borrowing_limit_percent)) + { + goto end; //Numeric + } + } + + // v1beta2_limited_priority_level_configuration->lendable_percent + cJSON *lendable_percent = cJSON_GetObjectItemCaseSensitive(v1beta2_limited_priority_level_configurationJSON, "lendablePercent"); + if (lendable_percent) { + if(!cJSON_IsNumber(lendable_percent)) + { + goto end; //Numeric + } + } + // v1beta2_limited_priority_level_configuration->limit_response cJSON *limit_response = cJSON_GetObjectItemCaseSensitive(v1beta2_limited_priority_level_configurationJSON, "limitResponse"); if (limit_response) { @@ -88,6 +126,8 @@ v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_c v1beta2_limited_priority_level_configuration_local_var = v1beta2_limited_priority_level_configuration_create ( assured_concurrency_shares ? assured_concurrency_shares->valuedouble : 0, + borrowing_limit_percent ? borrowing_limit_percent->valuedouble : 0, + lendable_percent ? lendable_percent->valuedouble : 0, limit_response ? limit_response_local_nonprim : NULL ); diff --git a/kubernetes/model/v1beta2_limited_priority_level_configuration.h b/kubernetes/model/v1beta2_limited_priority_level_configuration.h index 31d1bde..1ca91ba 100644 --- a/kubernetes/model/v1beta2_limited_priority_level_configuration.h +++ b/kubernetes/model/v1beta2_limited_priority_level_configuration.h @@ -21,12 +21,16 @@ typedef struct v1beta2_limited_priority_level_configuration_t v1beta2_limited_pr typedef struct v1beta2_limited_priority_level_configuration_t { int assured_concurrency_shares; //numeric + int borrowing_limit_percent; //numeric + int lendable_percent; //numeric struct v1beta2_limit_response_t *limit_response; //model } v1beta2_limited_priority_level_configuration_t; v1beta2_limited_priority_level_configuration_t *v1beta2_limited_priority_level_configuration_create( int assured_concurrency_shares, + int borrowing_limit_percent, + int lendable_percent, v1beta2_limit_response_t *limit_response ); diff --git a/kubernetes/model/v1beta3_flow_distinguisher_method.c b/kubernetes/model/v1beta3_flow_distinguisher_method.c new file mode 100644 index 0000000..f492371 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_distinguisher_method.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_flow_distinguisher_method.h" + + + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_create( + char *type + ) { + v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_local_var = malloc(sizeof(v1beta3_flow_distinguisher_method_t)); + if (!v1beta3_flow_distinguisher_method_local_var) { + return NULL; + } + v1beta3_flow_distinguisher_method_local_var->type = type; + + return v1beta3_flow_distinguisher_method_local_var; +} + + +void v1beta3_flow_distinguisher_method_free(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method) { + if(NULL == v1beta3_flow_distinguisher_method){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_distinguisher_method->type) { + free(v1beta3_flow_distinguisher_method->type); + v1beta3_flow_distinguisher_method->type = NULL; + } + free(v1beta3_flow_distinguisher_method); +} + +cJSON *v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_distinguisher_method->type + if (!v1beta3_flow_distinguisher_method->type) { + goto fail; + } + if(cJSON_AddStringToObject(item, "type", v1beta3_flow_distinguisher_method->type) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_parseFromJSON(cJSON *v1beta3_flow_distinguisher_methodJSON){ + + v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_local_var = NULL; + + // v1beta3_flow_distinguisher_method->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_distinguisher_methodJSON, "type"); + if (!type) { + goto end; + } + + + if(!cJSON_IsString(type)) + { + goto end; //String + } + + + v1beta3_flow_distinguisher_method_local_var = v1beta3_flow_distinguisher_method_create ( + strdup(type->valuestring) + ); + + return v1beta3_flow_distinguisher_method_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_distinguisher_method.h b/kubernetes/model/v1beta3_flow_distinguisher_method.h new file mode 100644 index 0000000..0abb026 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_distinguisher_method.h @@ -0,0 +1,37 @@ +/* + * v1beta3_flow_distinguisher_method.h + * + * FlowDistinguisherMethod specifies the method of a flow distinguisher. + */ + +#ifndef _v1beta3_flow_distinguisher_method_H_ +#define _v1beta3_flow_distinguisher_method_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_distinguisher_method_t v1beta3_flow_distinguisher_method_t; + + + + +typedef struct v1beta3_flow_distinguisher_method_t { + char *type; // string + +} v1beta3_flow_distinguisher_method_t; + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_create( + char *type +); + +void v1beta3_flow_distinguisher_method_free(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method); + +v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method_parseFromJSON(cJSON *v1beta3_flow_distinguisher_methodJSON); + +cJSON *v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_t *v1beta3_flow_distinguisher_method); + +#endif /* _v1beta3_flow_distinguisher_method_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema.c b/kubernetes/model/v1beta3_flow_schema.c new file mode 100644 index 0000000..4e00747 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema.c @@ -0,0 +1,196 @@ +#include +#include +#include +#include "v1beta3_flow_schema.h" + + + +v1beta3_flow_schema_t *v1beta3_flow_schema_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_flow_schema_spec_t *spec, + v1beta3_flow_schema_status_t *status + ) { + v1beta3_flow_schema_t *v1beta3_flow_schema_local_var = malloc(sizeof(v1beta3_flow_schema_t)); + if (!v1beta3_flow_schema_local_var) { + return NULL; + } + v1beta3_flow_schema_local_var->api_version = api_version; + v1beta3_flow_schema_local_var->kind = kind; + v1beta3_flow_schema_local_var->metadata = metadata; + v1beta3_flow_schema_local_var->spec = spec; + v1beta3_flow_schema_local_var->status = status; + + return v1beta3_flow_schema_local_var; +} + + +void v1beta3_flow_schema_free(v1beta3_flow_schema_t *v1beta3_flow_schema) { + if(NULL == v1beta3_flow_schema){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema->api_version) { + free(v1beta3_flow_schema->api_version); + v1beta3_flow_schema->api_version = NULL; + } + if (v1beta3_flow_schema->kind) { + free(v1beta3_flow_schema->kind); + v1beta3_flow_schema->kind = NULL; + } + if (v1beta3_flow_schema->metadata) { + v1_object_meta_free(v1beta3_flow_schema->metadata); + v1beta3_flow_schema->metadata = NULL; + } + if (v1beta3_flow_schema->spec) { + v1beta3_flow_schema_spec_free(v1beta3_flow_schema->spec); + v1beta3_flow_schema->spec = NULL; + } + if (v1beta3_flow_schema->status) { + v1beta3_flow_schema_status_free(v1beta3_flow_schema->status); + v1beta3_flow_schema->status = NULL; + } + free(v1beta3_flow_schema); +} + +cJSON *v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_t *v1beta3_flow_schema) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema->api_version + if(v1beta3_flow_schema->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_flow_schema->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema->kind + if(v1beta3_flow_schema->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_flow_schema->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema->metadata + if(v1beta3_flow_schema->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta3_flow_schema->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_flow_schema->spec + if(v1beta3_flow_schema->spec) { + cJSON *spec_local_JSON = v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_flow_schema->status + if(v1beta3_flow_schema->status) { + cJSON *status_local_JSON = v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_t *v1beta3_flow_schema_parseFromJSON(cJSON *v1beta3_flow_schemaJSON){ + + v1beta3_flow_schema_t *v1beta3_flow_schema_local_var = NULL; + + // define the local variable for v1beta3_flow_schema->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1beta3_flow_schema->spec + v1beta3_flow_schema_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1beta3_flow_schema->status + v1beta3_flow_schema_status_t *status_local_nonprim = NULL; + + // v1beta3_flow_schema->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_flow_schema->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_flow_schema->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1beta3_flow_schema->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "spec"); + if (spec) { + spec_local_nonprim = v1beta3_flow_schema_spec_parseFromJSON(spec); //nonprimitive + } + + // v1beta3_flow_schema->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schemaJSON, "status"); + if (status) { + status_local_nonprim = v1beta3_flow_schema_status_parseFromJSON(status); //nonprimitive + } + + + v1beta3_flow_schema_local_var = v1beta3_flow_schema_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL, + status ? status_local_nonprim : NULL + ); + + return v1beta3_flow_schema_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1beta3_flow_schema_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1beta3_flow_schema_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema.h b/kubernetes/model/v1beta3_flow_schema.h new file mode 100644 index 0000000..b820096 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema.h @@ -0,0 +1,48 @@ +/* + * v1beta3_flow_schema.h + * + * FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\". + */ + +#ifndef _v1beta3_flow_schema_H_ +#define _v1beta3_flow_schema_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_t v1beta3_flow_schema_t; + +#include "v1_object_meta.h" +#include "v1beta3_flow_schema_spec.h" +#include "v1beta3_flow_schema_status.h" + + + +typedef struct v1beta3_flow_schema_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1beta3_flow_schema_spec_t *spec; //model + struct v1beta3_flow_schema_status_t *status; //model + +} v1beta3_flow_schema_t; + +v1beta3_flow_schema_t *v1beta3_flow_schema_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_flow_schema_spec_t *spec, + v1beta3_flow_schema_status_t *status +); + +void v1beta3_flow_schema_free(v1beta3_flow_schema_t *v1beta3_flow_schema); + +v1beta3_flow_schema_t *v1beta3_flow_schema_parseFromJSON(cJSON *v1beta3_flow_schemaJSON); + +cJSON *v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_t *v1beta3_flow_schema); + +#endif /* _v1beta3_flow_schema_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_condition.c b/kubernetes/model/v1beta3_flow_schema_condition.c new file mode 100644 index 0000000..c42cb65 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_condition.c @@ -0,0 +1,169 @@ +#include +#include +#include +#include "v1beta3_flow_schema_condition.h" + + + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type + ) { + v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_local_var = malloc(sizeof(v1beta3_flow_schema_condition_t)); + if (!v1beta3_flow_schema_condition_local_var) { + return NULL; + } + v1beta3_flow_schema_condition_local_var->last_transition_time = last_transition_time; + v1beta3_flow_schema_condition_local_var->message = message; + v1beta3_flow_schema_condition_local_var->reason = reason; + v1beta3_flow_schema_condition_local_var->status = status; + v1beta3_flow_schema_condition_local_var->type = type; + + return v1beta3_flow_schema_condition_local_var; +} + + +void v1beta3_flow_schema_condition_free(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition) { + if(NULL == v1beta3_flow_schema_condition){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_condition->last_transition_time) { + free(v1beta3_flow_schema_condition->last_transition_time); + v1beta3_flow_schema_condition->last_transition_time = NULL; + } + if (v1beta3_flow_schema_condition->message) { + free(v1beta3_flow_schema_condition->message); + v1beta3_flow_schema_condition->message = NULL; + } + if (v1beta3_flow_schema_condition->reason) { + free(v1beta3_flow_schema_condition->reason); + v1beta3_flow_schema_condition->reason = NULL; + } + if (v1beta3_flow_schema_condition->status) { + free(v1beta3_flow_schema_condition->status); + v1beta3_flow_schema_condition->status = NULL; + } + if (v1beta3_flow_schema_condition->type) { + free(v1beta3_flow_schema_condition->type); + v1beta3_flow_schema_condition->type = NULL; + } + free(v1beta3_flow_schema_condition); +} + +cJSON *v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_condition->last_transition_time + if(v1beta3_flow_schema_condition->last_transition_time) { + if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta3_flow_schema_condition->last_transition_time) == NULL) { + goto fail; //Date-Time + } + } + + + // v1beta3_flow_schema_condition->message + if(v1beta3_flow_schema_condition->message) { + if(cJSON_AddStringToObject(item, "message", v1beta3_flow_schema_condition->message) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_condition->reason + if(v1beta3_flow_schema_condition->reason) { + if(cJSON_AddStringToObject(item, "reason", v1beta3_flow_schema_condition->reason) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_condition->status + if(v1beta3_flow_schema_condition->status) { + if(cJSON_AddStringToObject(item, "status", v1beta3_flow_schema_condition->status) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_condition->type + if(v1beta3_flow_schema_condition->type) { + if(cJSON_AddStringToObject(item, "type", v1beta3_flow_schema_condition->type) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_parseFromJSON(cJSON *v1beta3_flow_schema_conditionJSON){ + + v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_local_var = NULL; + + // v1beta3_flow_schema_condition->last_transition_time + cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "lastTransitionTime"); + if (last_transition_time) { + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) + { + goto end; //DateTime + } + } + + // v1beta3_flow_schema_condition->message + cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "message"); + if (message) { + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_condition->reason + cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "reason"); + if (reason) { + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_condition->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "status"); + if (status) { + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_condition->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_conditionJSON, "type"); + if (type) { + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) + { + goto end; //String + } + } + + + v1beta3_flow_schema_condition_local_var = v1beta3_flow_schema_condition_create ( + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL + ); + + return v1beta3_flow_schema_condition_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_condition.h b/kubernetes/model/v1beta3_flow_schema_condition.h new file mode 100644 index 0000000..35da31c --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_condition.h @@ -0,0 +1,45 @@ +/* + * v1beta3_flow_schema_condition.h + * + * FlowSchemaCondition describes conditions for a FlowSchema. + */ + +#ifndef _v1beta3_flow_schema_condition_H_ +#define _v1beta3_flow_schema_condition_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_condition_t v1beta3_flow_schema_condition_t; + + + + +typedef struct v1beta3_flow_schema_condition_t { + char *last_transition_time; //date time + char *message; // string + char *reason; // string + char *status; // string + char *type; // string + +} v1beta3_flow_schema_condition_t; + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type +); + +void v1beta3_flow_schema_condition_free(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition); + +v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition_parseFromJSON(cJSON *v1beta3_flow_schema_conditionJSON); + +cJSON *v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_t *v1beta3_flow_schema_condition); + +#endif /* _v1beta3_flow_schema_condition_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_list.c b/kubernetes/model/v1beta3_flow_schema_list.c new file mode 100644 index 0000000..70569ab --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1beta3_flow_schema_list.h" + + + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_local_var = malloc(sizeof(v1beta3_flow_schema_list_t)); + if (!v1beta3_flow_schema_list_local_var) { + return NULL; + } + v1beta3_flow_schema_list_local_var->api_version = api_version; + v1beta3_flow_schema_list_local_var->items = items; + v1beta3_flow_schema_list_local_var->kind = kind; + v1beta3_flow_schema_list_local_var->metadata = metadata; + + return v1beta3_flow_schema_list_local_var; +} + + +void v1beta3_flow_schema_list_free(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list) { + if(NULL == v1beta3_flow_schema_list){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_list->api_version) { + free(v1beta3_flow_schema_list->api_version); + v1beta3_flow_schema_list->api_version = NULL; + } + if (v1beta3_flow_schema_list->items) { + list_ForEach(listEntry, v1beta3_flow_schema_list->items) { + v1beta3_flow_schema_free(listEntry->data); + } + list_freeList(v1beta3_flow_schema_list->items); + v1beta3_flow_schema_list->items = NULL; + } + if (v1beta3_flow_schema_list->kind) { + free(v1beta3_flow_schema_list->kind); + v1beta3_flow_schema_list->kind = NULL; + } + if (v1beta3_flow_schema_list->metadata) { + v1_list_meta_free(v1beta3_flow_schema_list->metadata); + v1beta3_flow_schema_list->metadata = NULL; + } + free(v1beta3_flow_schema_list); +} + +cJSON *v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_list->api_version + if(v1beta3_flow_schema_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_flow_schema_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_list->items + if (!v1beta3_flow_schema_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1beta3_flow_schema_list->items) { + list_ForEach(itemsListEntry, v1beta3_flow_schema_list->items) { + cJSON *itemLocal = v1beta3_flow_schema_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1beta3_flow_schema_list->kind + if(v1beta3_flow_schema_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_flow_schema_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_flow_schema_list->metadata + if(v1beta3_flow_schema_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta3_flow_schema_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_parseFromJSON(cJSON *v1beta3_flow_schema_listJSON){ + + v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_local_var = NULL; + + // define the local list for v1beta3_flow_schema_list->items + list_t *itemsList = NULL; + + // define the local variable for v1beta3_flow_schema_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1beta3_flow_schema_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1beta3_flow_schema_t *itemsItem = v1beta3_flow_schema_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1beta3_flow_schema_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_flow_schema_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1beta3_flow_schema_list_local_var = v1beta3_flow_schema_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1beta3_flow_schema_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1beta3_flow_schema_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_list.h b/kubernetes/model/v1beta3_flow_schema_list.h new file mode 100644 index 0000000..4ecb0bb --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_list.h @@ -0,0 +1,45 @@ +/* + * v1beta3_flow_schema_list.h + * + * FlowSchemaList is a list of FlowSchema objects. + */ + +#ifndef _v1beta3_flow_schema_list_H_ +#define _v1beta3_flow_schema_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_list_t v1beta3_flow_schema_list_t; + +#include "v1_list_meta.h" +#include "v1beta3_flow_schema.h" + + + +typedef struct v1beta3_flow_schema_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1beta3_flow_schema_list_t; + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1beta3_flow_schema_list_free(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list); + +v1beta3_flow_schema_list_t *v1beta3_flow_schema_list_parseFromJSON(cJSON *v1beta3_flow_schema_listJSON); + +cJSON *v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_t *v1beta3_flow_schema_list); + +#endif /* _v1beta3_flow_schema_list_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_spec.c b/kubernetes/model/v1beta3_flow_schema_spec.c new file mode 100644 index 0000000..70e72d5 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_spec.c @@ -0,0 +1,202 @@ +#include +#include +#include +#include "v1beta3_flow_schema_spec.h" + + + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_create( + v1beta3_flow_distinguisher_method_t *distinguisher_method, + int matching_precedence, + v1beta3_priority_level_configuration_reference_t *priority_level_configuration, + list_t *rules + ) { + v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_local_var = malloc(sizeof(v1beta3_flow_schema_spec_t)); + if (!v1beta3_flow_schema_spec_local_var) { + return NULL; + } + v1beta3_flow_schema_spec_local_var->distinguisher_method = distinguisher_method; + v1beta3_flow_schema_spec_local_var->matching_precedence = matching_precedence; + v1beta3_flow_schema_spec_local_var->priority_level_configuration = priority_level_configuration; + v1beta3_flow_schema_spec_local_var->rules = rules; + + return v1beta3_flow_schema_spec_local_var; +} + + +void v1beta3_flow_schema_spec_free(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec) { + if(NULL == v1beta3_flow_schema_spec){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_spec->distinguisher_method) { + v1beta3_flow_distinguisher_method_free(v1beta3_flow_schema_spec->distinguisher_method); + v1beta3_flow_schema_spec->distinguisher_method = NULL; + } + if (v1beta3_flow_schema_spec->priority_level_configuration) { + v1beta3_priority_level_configuration_reference_free(v1beta3_flow_schema_spec->priority_level_configuration); + v1beta3_flow_schema_spec->priority_level_configuration = NULL; + } + if (v1beta3_flow_schema_spec->rules) { + list_ForEach(listEntry, v1beta3_flow_schema_spec->rules) { + v1beta3_policy_rules_with_subjects_free(listEntry->data); + } + list_freeList(v1beta3_flow_schema_spec->rules); + v1beta3_flow_schema_spec->rules = NULL; + } + free(v1beta3_flow_schema_spec); +} + +cJSON *v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_spec->distinguisher_method + if(v1beta3_flow_schema_spec->distinguisher_method) { + cJSON *distinguisher_method_local_JSON = v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_schema_spec->distinguisher_method); + if(distinguisher_method_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "distinguisherMethod", distinguisher_method_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_flow_schema_spec->matching_precedence + if(v1beta3_flow_schema_spec->matching_precedence) { + if(cJSON_AddNumberToObject(item, "matchingPrecedence", v1beta3_flow_schema_spec->matching_precedence) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_flow_schema_spec->priority_level_configuration + if (!v1beta3_flow_schema_spec->priority_level_configuration) { + goto fail; + } + cJSON *priority_level_configuration_local_JSON = v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_flow_schema_spec->priority_level_configuration); + if(priority_level_configuration_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "priorityLevelConfiguration", priority_level_configuration_local_JSON); + if(item->child == NULL) { + goto fail; + } + + + // v1beta3_flow_schema_spec->rules + if(v1beta3_flow_schema_spec->rules) { + cJSON *rules = cJSON_AddArrayToObject(item, "rules"); + if(rules == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *rulesListEntry; + if (v1beta3_flow_schema_spec->rules) { + list_ForEach(rulesListEntry, v1beta3_flow_schema_spec->rules) { + cJSON *itemLocal = v1beta3_policy_rules_with_subjects_convertToJSON(rulesListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(rules, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_parseFromJSON(cJSON *v1beta3_flow_schema_specJSON){ + + v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_local_var = NULL; + + // define the local variable for v1beta3_flow_schema_spec->distinguisher_method + v1beta3_flow_distinguisher_method_t *distinguisher_method_local_nonprim = NULL; + + // define the local variable for v1beta3_flow_schema_spec->priority_level_configuration + v1beta3_priority_level_configuration_reference_t *priority_level_configuration_local_nonprim = NULL; + + // define the local list for v1beta3_flow_schema_spec->rules + list_t *rulesList = NULL; + + // v1beta3_flow_schema_spec->distinguisher_method + cJSON *distinguisher_method = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "distinguisherMethod"); + if (distinguisher_method) { + distinguisher_method_local_nonprim = v1beta3_flow_distinguisher_method_parseFromJSON(distinguisher_method); //nonprimitive + } + + // v1beta3_flow_schema_spec->matching_precedence + cJSON *matching_precedence = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "matchingPrecedence"); + if (matching_precedence) { + if(!cJSON_IsNumber(matching_precedence)) + { + goto end; //Numeric + } + } + + // v1beta3_flow_schema_spec->priority_level_configuration + cJSON *priority_level_configuration = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "priorityLevelConfiguration"); + if (!priority_level_configuration) { + goto end; + } + + + priority_level_configuration_local_nonprim = v1beta3_priority_level_configuration_reference_parseFromJSON(priority_level_configuration); //nonprimitive + + // v1beta3_flow_schema_spec->rules + cJSON *rules = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_specJSON, "rules"); + if (rules) { + cJSON *rules_local_nonprimitive = NULL; + if(!cJSON_IsArray(rules)){ + goto end; //nonprimitive container + } + + rulesList = list_createList(); + + cJSON_ArrayForEach(rules_local_nonprimitive,rules ) + { + if(!cJSON_IsObject(rules_local_nonprimitive)){ + goto end; + } + v1beta3_policy_rules_with_subjects_t *rulesItem = v1beta3_policy_rules_with_subjects_parseFromJSON(rules_local_nonprimitive); + + list_addElement(rulesList, rulesItem); + } + } + + + v1beta3_flow_schema_spec_local_var = v1beta3_flow_schema_spec_create ( + distinguisher_method ? distinguisher_method_local_nonprim : NULL, + matching_precedence ? matching_precedence->valuedouble : 0, + priority_level_configuration_local_nonprim, + rules ? rulesList : NULL + ); + + return v1beta3_flow_schema_spec_local_var; +end: + if (distinguisher_method_local_nonprim) { + v1beta3_flow_distinguisher_method_free(distinguisher_method_local_nonprim); + distinguisher_method_local_nonprim = NULL; + } + if (priority_level_configuration_local_nonprim) { + v1beta3_priority_level_configuration_reference_free(priority_level_configuration_local_nonprim); + priority_level_configuration_local_nonprim = NULL; + } + if (rulesList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, rulesList) { + v1beta3_policy_rules_with_subjects_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(rulesList); + rulesList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_spec.h b/kubernetes/model/v1beta3_flow_schema_spec.h new file mode 100644 index 0000000..aa1d871 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_spec.h @@ -0,0 +1,46 @@ +/* + * v1beta3_flow_schema_spec.h + * + * FlowSchemaSpec describes how the FlowSchema's specification looks like. + */ + +#ifndef _v1beta3_flow_schema_spec_H_ +#define _v1beta3_flow_schema_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_spec_t v1beta3_flow_schema_spec_t; + +#include "v1beta3_flow_distinguisher_method.h" +#include "v1beta3_policy_rules_with_subjects.h" +#include "v1beta3_priority_level_configuration_reference.h" + + + +typedef struct v1beta3_flow_schema_spec_t { + struct v1beta3_flow_distinguisher_method_t *distinguisher_method; //model + int matching_precedence; //numeric + struct v1beta3_priority_level_configuration_reference_t *priority_level_configuration; //model + list_t *rules; //nonprimitive container + +} v1beta3_flow_schema_spec_t; + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_create( + v1beta3_flow_distinguisher_method_t *distinguisher_method, + int matching_precedence, + v1beta3_priority_level_configuration_reference_t *priority_level_configuration, + list_t *rules +); + +void v1beta3_flow_schema_spec_free(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec); + +v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec_parseFromJSON(cJSON *v1beta3_flow_schema_specJSON); + +cJSON *v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_t *v1beta3_flow_schema_spec); + +#endif /* _v1beta3_flow_schema_spec_H_ */ + diff --git a/kubernetes/model/v1beta3_flow_schema_status.c b/kubernetes/model/v1beta3_flow_schema_status.c new file mode 100644 index 0000000..0df5092 --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1beta3_flow_schema_status.h" + + + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_create( + list_t *conditions + ) { + v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_local_var = malloc(sizeof(v1beta3_flow_schema_status_t)); + if (!v1beta3_flow_schema_status_local_var) { + return NULL; + } + v1beta3_flow_schema_status_local_var->conditions = conditions; + + return v1beta3_flow_schema_status_local_var; +} + + +void v1beta3_flow_schema_status_free(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status) { + if(NULL == v1beta3_flow_schema_status){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_flow_schema_status->conditions) { + list_ForEach(listEntry, v1beta3_flow_schema_status->conditions) { + v1beta3_flow_schema_condition_free(listEntry->data); + } + list_freeList(v1beta3_flow_schema_status->conditions); + v1beta3_flow_schema_status->conditions = NULL; + } + free(v1beta3_flow_schema_status); +} + +cJSON *v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_flow_schema_status->conditions + if(v1beta3_flow_schema_status->conditions) { + cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); + if(conditions == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *conditionsListEntry; + if (v1beta3_flow_schema_status->conditions) { + list_ForEach(conditionsListEntry, v1beta3_flow_schema_status->conditions) { + cJSON *itemLocal = v1beta3_flow_schema_condition_convertToJSON(conditionsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(conditions, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_parseFromJSON(cJSON *v1beta3_flow_schema_statusJSON){ + + v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_local_var = NULL; + + // define the local list for v1beta3_flow_schema_status->conditions + list_t *conditionsList = NULL; + + // v1beta3_flow_schema_status->conditions + cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta3_flow_schema_statusJSON, "conditions"); + if (conditions) { + cJSON *conditions_local_nonprimitive = NULL; + if(!cJSON_IsArray(conditions)){ + goto end; //nonprimitive container + } + + conditionsList = list_createList(); + + cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) + { + if(!cJSON_IsObject(conditions_local_nonprimitive)){ + goto end; + } + v1beta3_flow_schema_condition_t *conditionsItem = v1beta3_flow_schema_condition_parseFromJSON(conditions_local_nonprimitive); + + list_addElement(conditionsList, conditionsItem); + } + } + + + v1beta3_flow_schema_status_local_var = v1beta3_flow_schema_status_create ( + conditions ? conditionsList : NULL + ); + + return v1beta3_flow_schema_status_local_var; +end: + if (conditionsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, conditionsList) { + v1beta3_flow_schema_condition_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(conditionsList); + conditionsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_flow_schema_status.h b/kubernetes/model/v1beta3_flow_schema_status.h new file mode 100644 index 0000000..3f6cd7a --- /dev/null +++ b/kubernetes/model/v1beta3_flow_schema_status.h @@ -0,0 +1,38 @@ +/* + * v1beta3_flow_schema_status.h + * + * FlowSchemaStatus represents the current state of a FlowSchema. + */ + +#ifndef _v1beta3_flow_schema_status_H_ +#define _v1beta3_flow_schema_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_flow_schema_status_t v1beta3_flow_schema_status_t; + +#include "v1beta3_flow_schema_condition.h" + + + +typedef struct v1beta3_flow_schema_status_t { + list_t *conditions; //nonprimitive container + +} v1beta3_flow_schema_status_t; + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_create( + list_t *conditions +); + +void v1beta3_flow_schema_status_free(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status); + +v1beta3_flow_schema_status_t *v1beta3_flow_schema_status_parseFromJSON(cJSON *v1beta3_flow_schema_statusJSON); + +cJSON *v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_t *v1beta3_flow_schema_status); + +#endif /* _v1beta3_flow_schema_status_H_ */ + diff --git a/kubernetes/model/v1beta3_group_subject.c b/kubernetes/model/v1beta3_group_subject.c new file mode 100644 index 0000000..a877be7 --- /dev/null +++ b/kubernetes/model/v1beta3_group_subject.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_group_subject.h" + + + +v1beta3_group_subject_t *v1beta3_group_subject_create( + char *name + ) { + v1beta3_group_subject_t *v1beta3_group_subject_local_var = malloc(sizeof(v1beta3_group_subject_t)); + if (!v1beta3_group_subject_local_var) { + return NULL; + } + v1beta3_group_subject_local_var->name = name; + + return v1beta3_group_subject_local_var; +} + + +void v1beta3_group_subject_free(v1beta3_group_subject_t *v1beta3_group_subject) { + if(NULL == v1beta3_group_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_group_subject->name) { + free(v1beta3_group_subject->name); + v1beta3_group_subject->name = NULL; + } + free(v1beta3_group_subject); +} + +cJSON *v1beta3_group_subject_convertToJSON(v1beta3_group_subject_t *v1beta3_group_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_group_subject->name + if (!v1beta3_group_subject->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_group_subject->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_group_subject_t *v1beta3_group_subject_parseFromJSON(cJSON *v1beta3_group_subjectJSON){ + + v1beta3_group_subject_t *v1beta3_group_subject_local_var = NULL; + + // v1beta3_group_subject->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_group_subjectJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1beta3_group_subject_local_var = v1beta3_group_subject_create ( + strdup(name->valuestring) + ); + + return v1beta3_group_subject_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_group_subject.h b/kubernetes/model/v1beta3_group_subject.h new file mode 100644 index 0000000..1fd87d1 --- /dev/null +++ b/kubernetes/model/v1beta3_group_subject.h @@ -0,0 +1,37 @@ +/* + * v1beta3_group_subject.h + * + * GroupSubject holds detailed information for group-kind subject. + */ + +#ifndef _v1beta3_group_subject_H_ +#define _v1beta3_group_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_group_subject_t v1beta3_group_subject_t; + + + + +typedef struct v1beta3_group_subject_t { + char *name; // string + +} v1beta3_group_subject_t; + +v1beta3_group_subject_t *v1beta3_group_subject_create( + char *name +); + +void v1beta3_group_subject_free(v1beta3_group_subject_t *v1beta3_group_subject); + +v1beta3_group_subject_t *v1beta3_group_subject_parseFromJSON(cJSON *v1beta3_group_subjectJSON); + +cJSON *v1beta3_group_subject_convertToJSON(v1beta3_group_subject_t *v1beta3_group_subject); + +#endif /* _v1beta3_group_subject_H_ */ + diff --git a/kubernetes/model/v1beta3_limit_response.c b/kubernetes/model/v1beta3_limit_response.c new file mode 100644 index 0000000..f202091 --- /dev/null +++ b/kubernetes/model/v1beta3_limit_response.c @@ -0,0 +1,110 @@ +#include +#include +#include +#include "v1beta3_limit_response.h" + + + +v1beta3_limit_response_t *v1beta3_limit_response_create( + v1beta3_queuing_configuration_t *queuing, + char *type + ) { + v1beta3_limit_response_t *v1beta3_limit_response_local_var = malloc(sizeof(v1beta3_limit_response_t)); + if (!v1beta3_limit_response_local_var) { + return NULL; + } + v1beta3_limit_response_local_var->queuing = queuing; + v1beta3_limit_response_local_var->type = type; + + return v1beta3_limit_response_local_var; +} + + +void v1beta3_limit_response_free(v1beta3_limit_response_t *v1beta3_limit_response) { + if(NULL == v1beta3_limit_response){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_limit_response->queuing) { + v1beta3_queuing_configuration_free(v1beta3_limit_response->queuing); + v1beta3_limit_response->queuing = NULL; + } + if (v1beta3_limit_response->type) { + free(v1beta3_limit_response->type); + v1beta3_limit_response->type = NULL; + } + free(v1beta3_limit_response); +} + +cJSON *v1beta3_limit_response_convertToJSON(v1beta3_limit_response_t *v1beta3_limit_response) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_limit_response->queuing + if(v1beta3_limit_response->queuing) { + cJSON *queuing_local_JSON = v1beta3_queuing_configuration_convertToJSON(v1beta3_limit_response->queuing); + if(queuing_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "queuing", queuing_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_limit_response->type + if (!v1beta3_limit_response->type) { + goto fail; + } + if(cJSON_AddStringToObject(item, "type", v1beta3_limit_response->type) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_limit_response_t *v1beta3_limit_response_parseFromJSON(cJSON *v1beta3_limit_responseJSON){ + + v1beta3_limit_response_t *v1beta3_limit_response_local_var = NULL; + + // define the local variable for v1beta3_limit_response->queuing + v1beta3_queuing_configuration_t *queuing_local_nonprim = NULL; + + // v1beta3_limit_response->queuing + cJSON *queuing = cJSON_GetObjectItemCaseSensitive(v1beta3_limit_responseJSON, "queuing"); + if (queuing) { + queuing_local_nonprim = v1beta3_queuing_configuration_parseFromJSON(queuing); //nonprimitive + } + + // v1beta3_limit_response->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_limit_responseJSON, "type"); + if (!type) { + goto end; + } + + + if(!cJSON_IsString(type)) + { + goto end; //String + } + + + v1beta3_limit_response_local_var = v1beta3_limit_response_create ( + queuing ? queuing_local_nonprim : NULL, + strdup(type->valuestring) + ); + + return v1beta3_limit_response_local_var; +end: + if (queuing_local_nonprim) { + v1beta3_queuing_configuration_free(queuing_local_nonprim); + queuing_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_limit_response.h b/kubernetes/model/v1beta3_limit_response.h new file mode 100644 index 0000000..6a3e3b8 --- /dev/null +++ b/kubernetes/model/v1beta3_limit_response.h @@ -0,0 +1,40 @@ +/* + * v1beta3_limit_response.h + * + * LimitResponse defines how to handle requests that can not be executed right now. + */ + +#ifndef _v1beta3_limit_response_H_ +#define _v1beta3_limit_response_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_limit_response_t v1beta3_limit_response_t; + +#include "v1beta3_queuing_configuration.h" + + + +typedef struct v1beta3_limit_response_t { + struct v1beta3_queuing_configuration_t *queuing; //model + char *type; // string + +} v1beta3_limit_response_t; + +v1beta3_limit_response_t *v1beta3_limit_response_create( + v1beta3_queuing_configuration_t *queuing, + char *type +); + +void v1beta3_limit_response_free(v1beta3_limit_response_t *v1beta3_limit_response); + +v1beta3_limit_response_t *v1beta3_limit_response_parseFromJSON(cJSON *v1beta3_limit_responseJSON); + +cJSON *v1beta3_limit_response_convertToJSON(v1beta3_limit_response_t *v1beta3_limit_response); + +#endif /* _v1beta3_limit_response_H_ */ + diff --git a/kubernetes/model/v1beta3_limited_priority_level_configuration.c b/kubernetes/model/v1beta3_limited_priority_level_configuration.c new file mode 100644 index 0000000..f1701c8 --- /dev/null +++ b/kubernetes/model/v1beta3_limited_priority_level_configuration.c @@ -0,0 +1,142 @@ +#include +#include +#include +#include "v1beta3_limited_priority_level_configuration.h" + + + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_create( + int borrowing_limit_percent, + int lendable_percent, + v1beta3_limit_response_t *limit_response, + int nominal_concurrency_shares + ) { + v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_local_var = malloc(sizeof(v1beta3_limited_priority_level_configuration_t)); + if (!v1beta3_limited_priority_level_configuration_local_var) { + return NULL; + } + v1beta3_limited_priority_level_configuration_local_var->borrowing_limit_percent = borrowing_limit_percent; + v1beta3_limited_priority_level_configuration_local_var->lendable_percent = lendable_percent; + v1beta3_limited_priority_level_configuration_local_var->limit_response = limit_response; + v1beta3_limited_priority_level_configuration_local_var->nominal_concurrency_shares = nominal_concurrency_shares; + + return v1beta3_limited_priority_level_configuration_local_var; +} + + +void v1beta3_limited_priority_level_configuration_free(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration) { + if(NULL == v1beta3_limited_priority_level_configuration){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_limited_priority_level_configuration->limit_response) { + v1beta3_limit_response_free(v1beta3_limited_priority_level_configuration->limit_response); + v1beta3_limited_priority_level_configuration->limit_response = NULL; + } + free(v1beta3_limited_priority_level_configuration); +} + +cJSON *v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_limited_priority_level_configuration->borrowing_limit_percent + if(v1beta3_limited_priority_level_configuration->borrowing_limit_percent) { + if(cJSON_AddNumberToObject(item, "borrowingLimitPercent", v1beta3_limited_priority_level_configuration->borrowing_limit_percent) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_limited_priority_level_configuration->lendable_percent + if(v1beta3_limited_priority_level_configuration->lendable_percent) { + if(cJSON_AddNumberToObject(item, "lendablePercent", v1beta3_limited_priority_level_configuration->lendable_percent) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_limited_priority_level_configuration->limit_response + if(v1beta3_limited_priority_level_configuration->limit_response) { + cJSON *limit_response_local_JSON = v1beta3_limit_response_convertToJSON(v1beta3_limited_priority_level_configuration->limit_response); + if(limit_response_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "limitResponse", limit_response_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_limited_priority_level_configuration->nominal_concurrency_shares + if(v1beta3_limited_priority_level_configuration->nominal_concurrency_shares) { + if(cJSON_AddNumberToObject(item, "nominalConcurrencyShares", v1beta3_limited_priority_level_configuration->nominal_concurrency_shares) == NULL) { + goto fail; //Numeric + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta3_limited_priority_level_configurationJSON){ + + v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_local_var = NULL; + + // define the local variable for v1beta3_limited_priority_level_configuration->limit_response + v1beta3_limit_response_t *limit_response_local_nonprim = NULL; + + // v1beta3_limited_priority_level_configuration->borrowing_limit_percent + cJSON *borrowing_limit_percent = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "borrowingLimitPercent"); + if (borrowing_limit_percent) { + if(!cJSON_IsNumber(borrowing_limit_percent)) + { + goto end; //Numeric + } + } + + // v1beta3_limited_priority_level_configuration->lendable_percent + cJSON *lendable_percent = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "lendablePercent"); + if (lendable_percent) { + if(!cJSON_IsNumber(lendable_percent)) + { + goto end; //Numeric + } + } + + // v1beta3_limited_priority_level_configuration->limit_response + cJSON *limit_response = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "limitResponse"); + if (limit_response) { + limit_response_local_nonprim = v1beta3_limit_response_parseFromJSON(limit_response); //nonprimitive + } + + // v1beta3_limited_priority_level_configuration->nominal_concurrency_shares + cJSON *nominal_concurrency_shares = cJSON_GetObjectItemCaseSensitive(v1beta3_limited_priority_level_configurationJSON, "nominalConcurrencyShares"); + if (nominal_concurrency_shares) { + if(!cJSON_IsNumber(nominal_concurrency_shares)) + { + goto end; //Numeric + } + } + + + v1beta3_limited_priority_level_configuration_local_var = v1beta3_limited_priority_level_configuration_create ( + borrowing_limit_percent ? borrowing_limit_percent->valuedouble : 0, + lendable_percent ? lendable_percent->valuedouble : 0, + limit_response ? limit_response_local_nonprim : NULL, + nominal_concurrency_shares ? nominal_concurrency_shares->valuedouble : 0 + ); + + return v1beta3_limited_priority_level_configuration_local_var; +end: + if (limit_response_local_nonprim) { + v1beta3_limit_response_free(limit_response_local_nonprim); + limit_response_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_limited_priority_level_configuration.h b/kubernetes/model/v1beta3_limited_priority_level_configuration.h new file mode 100644 index 0000000..5ae3f65 --- /dev/null +++ b/kubernetes/model/v1beta3_limited_priority_level_configuration.h @@ -0,0 +1,44 @@ +/* + * v1beta3_limited_priority_level_configuration.h + * + * LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues: - How are requests for this priority level limited? - What should be done with requests that exceed the limit? + */ + +#ifndef _v1beta3_limited_priority_level_configuration_H_ +#define _v1beta3_limited_priority_level_configuration_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_limited_priority_level_configuration_t v1beta3_limited_priority_level_configuration_t; + +#include "v1beta3_limit_response.h" + + + +typedef struct v1beta3_limited_priority_level_configuration_t { + int borrowing_limit_percent; //numeric + int lendable_percent; //numeric + struct v1beta3_limit_response_t *limit_response; //model + int nominal_concurrency_shares; //numeric + +} v1beta3_limited_priority_level_configuration_t; + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_create( + int borrowing_limit_percent, + int lendable_percent, + v1beta3_limit_response_t *limit_response, + int nominal_concurrency_shares +); + +void v1beta3_limited_priority_level_configuration_free(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration); + +v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration_parseFromJSON(cJSON *v1beta3_limited_priority_level_configurationJSON); + +cJSON *v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_t *v1beta3_limited_priority_level_configuration); + +#endif /* _v1beta3_limited_priority_level_configuration_H_ */ + diff --git a/kubernetes/model/v1beta1_non_resource_policy_rule.c b/kubernetes/model/v1beta3_non_resource_policy_rule.c similarity index 57% rename from kubernetes/model/v1beta1_non_resource_policy_rule.c rename to kubernetes/model/v1beta3_non_resource_policy_rule.c index 47ad395..5366f11 100644 --- a/kubernetes/model/v1beta1_non_resource_policy_rule.c +++ b/kubernetes/model/v1beta3_non_resource_policy_rule.c @@ -1,52 +1,52 @@ #include #include #include -#include "v1beta1_non_resource_policy_rule.h" +#include "v1beta3_non_resource_policy_rule.h" -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_create( +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_create( list_t *non_resource_urls, list_t *verbs ) { - v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_local_var = malloc(sizeof(v1beta1_non_resource_policy_rule_t)); - if (!v1beta1_non_resource_policy_rule_local_var) { + v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_local_var = malloc(sizeof(v1beta3_non_resource_policy_rule_t)); + if (!v1beta3_non_resource_policy_rule_local_var) { return NULL; } - v1beta1_non_resource_policy_rule_local_var->non_resource_urls = non_resource_urls; - v1beta1_non_resource_policy_rule_local_var->verbs = verbs; + v1beta3_non_resource_policy_rule_local_var->non_resource_urls = non_resource_urls; + v1beta3_non_resource_policy_rule_local_var->verbs = verbs; - return v1beta1_non_resource_policy_rule_local_var; + return v1beta3_non_resource_policy_rule_local_var; } -void v1beta1_non_resource_policy_rule_free(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule) { - if(NULL == v1beta1_non_resource_policy_rule){ +void v1beta3_non_resource_policy_rule_free(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule) { + if(NULL == v1beta3_non_resource_policy_rule){ return ; } listEntry_t *listEntry; - if (v1beta1_non_resource_policy_rule->non_resource_urls) { - list_ForEach(listEntry, v1beta1_non_resource_policy_rule->non_resource_urls) { + if (v1beta3_non_resource_policy_rule->non_resource_urls) { + list_ForEach(listEntry, v1beta3_non_resource_policy_rule->non_resource_urls) { free(listEntry->data); } - list_freeList(v1beta1_non_resource_policy_rule->non_resource_urls); - v1beta1_non_resource_policy_rule->non_resource_urls = NULL; + list_freeList(v1beta3_non_resource_policy_rule->non_resource_urls); + v1beta3_non_resource_policy_rule->non_resource_urls = NULL; } - if (v1beta1_non_resource_policy_rule->verbs) { - list_ForEach(listEntry, v1beta1_non_resource_policy_rule->verbs) { + if (v1beta3_non_resource_policy_rule->verbs) { + list_ForEach(listEntry, v1beta3_non_resource_policy_rule->verbs) { free(listEntry->data); } - list_freeList(v1beta1_non_resource_policy_rule->verbs); - v1beta1_non_resource_policy_rule->verbs = NULL; + list_freeList(v1beta3_non_resource_policy_rule->verbs); + v1beta3_non_resource_policy_rule->verbs = NULL; } - free(v1beta1_non_resource_policy_rule); + free(v1beta3_non_resource_policy_rule); } -cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule) { +cJSON *v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule) { cJSON *item = cJSON_CreateObject(); - // v1beta1_non_resource_policy_rule->non_resource_urls - if (!v1beta1_non_resource_policy_rule->non_resource_urls) { + // v1beta3_non_resource_policy_rule->non_resource_urls + if (!v1beta3_non_resource_policy_rule->non_resource_urls) { goto fail; } cJSON *non_resource_urls = cJSON_AddArrayToObject(item, "nonResourceURLs"); @@ -55,7 +55,7 @@ cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_polic } listEntry_t *non_resource_urlsListEntry; - list_ForEach(non_resource_urlsListEntry, v1beta1_non_resource_policy_rule->non_resource_urls) { + list_ForEach(non_resource_urlsListEntry, v1beta3_non_resource_policy_rule->non_resource_urls) { if(cJSON_AddStringToObject(non_resource_urls, "", (char*)non_resource_urlsListEntry->data) == NULL) { goto fail; @@ -63,8 +63,8 @@ cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_polic } - // v1beta1_non_resource_policy_rule->verbs - if (!v1beta1_non_resource_policy_rule->verbs) { + // v1beta3_non_resource_policy_rule->verbs + if (!v1beta3_non_resource_policy_rule->verbs) { goto fail; } cJSON *verbs = cJSON_AddArrayToObject(item, "verbs"); @@ -73,7 +73,7 @@ cJSON *v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_polic } listEntry_t *verbsListEntry; - list_ForEach(verbsListEntry, v1beta1_non_resource_policy_rule->verbs) { + list_ForEach(verbsListEntry, v1beta3_non_resource_policy_rule->verbs) { if(cJSON_AddStringToObject(verbs, "", (char*)verbsListEntry->data) == NULL) { goto fail; @@ -88,18 +88,18 @@ fail: return NULL; } -v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJSON(cJSON *v1beta1_non_resource_policy_ruleJSON){ +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_parseFromJSON(cJSON *v1beta3_non_resource_policy_ruleJSON){ - v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_local_var = NULL; + v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_local_var = NULL; - // define the local list for v1beta1_non_resource_policy_rule->non_resource_urls + // define the local list for v1beta3_non_resource_policy_rule->non_resource_urls list_t *non_resource_urlsList = NULL; - // define the local list for v1beta1_non_resource_policy_rule->verbs + // define the local list for v1beta3_non_resource_policy_rule->verbs list_t *verbsList = NULL; - // v1beta1_non_resource_policy_rule->non_resource_urls - cJSON *non_resource_urls = cJSON_GetObjectItemCaseSensitive(v1beta1_non_resource_policy_ruleJSON, "nonResourceURLs"); + // v1beta3_non_resource_policy_rule->non_resource_urls + cJSON *non_resource_urls = cJSON_GetObjectItemCaseSensitive(v1beta3_non_resource_policy_ruleJSON, "nonResourceURLs"); if (!non_resource_urls) { goto end; } @@ -120,8 +120,8 @@ v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJS list_addElement(non_resource_urlsList , strdup(non_resource_urls_local->valuestring)); } - // v1beta1_non_resource_policy_rule->verbs - cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta1_non_resource_policy_ruleJSON, "verbs"); + // v1beta3_non_resource_policy_rule->verbs + cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta3_non_resource_policy_ruleJSON, "verbs"); if (!verbs) { goto end; } @@ -143,12 +143,12 @@ v1beta1_non_resource_policy_rule_t *v1beta1_non_resource_policy_rule_parseFromJS } - v1beta1_non_resource_policy_rule_local_var = v1beta1_non_resource_policy_rule_create ( + v1beta3_non_resource_policy_rule_local_var = v1beta3_non_resource_policy_rule_create ( non_resource_urlsList, verbsList ); - return v1beta1_non_resource_policy_rule_local_var; + return v1beta3_non_resource_policy_rule_local_var; end: if (non_resource_urlsList) { listEntry_t *listEntry = NULL; diff --git a/kubernetes/model/v1beta3_non_resource_policy_rule.h b/kubernetes/model/v1beta3_non_resource_policy_rule.h new file mode 100644 index 0000000..7ed6327 --- /dev/null +++ b/kubernetes/model/v1beta3_non_resource_policy_rule.h @@ -0,0 +1,39 @@ +/* + * v1beta3_non_resource_policy_rule.h + * + * NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request. + */ + +#ifndef _v1beta3_non_resource_policy_rule_H_ +#define _v1beta3_non_resource_policy_rule_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_non_resource_policy_rule_t v1beta3_non_resource_policy_rule_t; + + + + +typedef struct v1beta3_non_resource_policy_rule_t { + list_t *non_resource_urls; //primitive container + list_t *verbs; //primitive container + +} v1beta3_non_resource_policy_rule_t; + +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_create( + list_t *non_resource_urls, + list_t *verbs +); + +void v1beta3_non_resource_policy_rule_free(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule); + +v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule_parseFromJSON(cJSON *v1beta3_non_resource_policy_ruleJSON); + +cJSON *v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_t *v1beta3_non_resource_policy_rule); + +#endif /* _v1beta3_non_resource_policy_rule_H_ */ + diff --git a/kubernetes/model/v1beta1_policy_rules_with_subjects.c b/kubernetes/model/v1beta3_policy_rules_with_subjects.c similarity index 52% rename from kubernetes/model/v1beta1_policy_rules_with_subjects.c rename to kubernetes/model/v1beta3_policy_rules_with_subjects.c index ad26ee2..dbd8b7a 100644 --- a/kubernetes/model/v1beta1_policy_rules_with_subjects.c +++ b/kubernetes/model/v1beta3_policy_rules_with_subjects.c @@ -1,70 +1,70 @@ #include #include #include -#include "v1beta1_policy_rules_with_subjects.h" +#include "v1beta3_policy_rules_with_subjects.h" -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_create( +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_create( list_t *non_resource_rules, list_t *resource_rules, list_t *subjects ) { - v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_local_var = malloc(sizeof(v1beta1_policy_rules_with_subjects_t)); - if (!v1beta1_policy_rules_with_subjects_local_var) { + v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_local_var = malloc(sizeof(v1beta3_policy_rules_with_subjects_t)); + if (!v1beta3_policy_rules_with_subjects_local_var) { return NULL; } - v1beta1_policy_rules_with_subjects_local_var->non_resource_rules = non_resource_rules; - v1beta1_policy_rules_with_subjects_local_var->resource_rules = resource_rules; - v1beta1_policy_rules_with_subjects_local_var->subjects = subjects; + v1beta3_policy_rules_with_subjects_local_var->non_resource_rules = non_resource_rules; + v1beta3_policy_rules_with_subjects_local_var->resource_rules = resource_rules; + v1beta3_policy_rules_with_subjects_local_var->subjects = subjects; - return v1beta1_policy_rules_with_subjects_local_var; + return v1beta3_policy_rules_with_subjects_local_var; } -void v1beta1_policy_rules_with_subjects_free(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects) { - if(NULL == v1beta1_policy_rules_with_subjects){ +void v1beta3_policy_rules_with_subjects_free(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects) { + if(NULL == v1beta3_policy_rules_with_subjects){ return ; } listEntry_t *listEntry; - if (v1beta1_policy_rules_with_subjects->non_resource_rules) { - list_ForEach(listEntry, v1beta1_policy_rules_with_subjects->non_resource_rules) { - v1beta1_non_resource_policy_rule_free(listEntry->data); + if (v1beta3_policy_rules_with_subjects->non_resource_rules) { + list_ForEach(listEntry, v1beta3_policy_rules_with_subjects->non_resource_rules) { + v1beta3_non_resource_policy_rule_free(listEntry->data); } - list_freeList(v1beta1_policy_rules_with_subjects->non_resource_rules); - v1beta1_policy_rules_with_subjects->non_resource_rules = NULL; + list_freeList(v1beta3_policy_rules_with_subjects->non_resource_rules); + v1beta3_policy_rules_with_subjects->non_resource_rules = NULL; } - if (v1beta1_policy_rules_with_subjects->resource_rules) { - list_ForEach(listEntry, v1beta1_policy_rules_with_subjects->resource_rules) { - v1beta1_resource_policy_rule_free(listEntry->data); + if (v1beta3_policy_rules_with_subjects->resource_rules) { + list_ForEach(listEntry, v1beta3_policy_rules_with_subjects->resource_rules) { + v1beta3_resource_policy_rule_free(listEntry->data); } - list_freeList(v1beta1_policy_rules_with_subjects->resource_rules); - v1beta1_policy_rules_with_subjects->resource_rules = NULL; + list_freeList(v1beta3_policy_rules_with_subjects->resource_rules); + v1beta3_policy_rules_with_subjects->resource_rules = NULL; } - if (v1beta1_policy_rules_with_subjects->subjects) { - list_ForEach(listEntry, v1beta1_policy_rules_with_subjects->subjects) { - v1beta1_subject_free(listEntry->data); + if (v1beta3_policy_rules_with_subjects->subjects) { + list_ForEach(listEntry, v1beta3_policy_rules_with_subjects->subjects) { + v1beta3_subject_free(listEntry->data); } - list_freeList(v1beta1_policy_rules_with_subjects->subjects); - v1beta1_policy_rules_with_subjects->subjects = NULL; + list_freeList(v1beta3_policy_rules_with_subjects->subjects); + v1beta3_policy_rules_with_subjects->subjects = NULL; } - free(v1beta1_policy_rules_with_subjects); + free(v1beta3_policy_rules_with_subjects); } -cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects) { +cJSON *v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects) { cJSON *item = cJSON_CreateObject(); - // v1beta1_policy_rules_with_subjects->non_resource_rules - if(v1beta1_policy_rules_with_subjects->non_resource_rules) { + // v1beta3_policy_rules_with_subjects->non_resource_rules + if(v1beta3_policy_rules_with_subjects->non_resource_rules) { cJSON *non_resource_rules = cJSON_AddArrayToObject(item, "nonResourceRules"); if(non_resource_rules == NULL) { goto fail; //nonprimitive container } listEntry_t *non_resource_rulesListEntry; - if (v1beta1_policy_rules_with_subjects->non_resource_rules) { - list_ForEach(non_resource_rulesListEntry, v1beta1_policy_rules_with_subjects->non_resource_rules) { - cJSON *itemLocal = v1beta1_non_resource_policy_rule_convertToJSON(non_resource_rulesListEntry->data); + if (v1beta3_policy_rules_with_subjects->non_resource_rules) { + list_ForEach(non_resource_rulesListEntry, v1beta3_policy_rules_with_subjects->non_resource_rules) { + cJSON *itemLocal = v1beta3_non_resource_policy_rule_convertToJSON(non_resource_rulesListEntry->data); if(itemLocal == NULL) { goto fail; } @@ -74,17 +74,17 @@ cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_wit } - // v1beta1_policy_rules_with_subjects->resource_rules - if(v1beta1_policy_rules_with_subjects->resource_rules) { + // v1beta3_policy_rules_with_subjects->resource_rules + if(v1beta3_policy_rules_with_subjects->resource_rules) { cJSON *resource_rules = cJSON_AddArrayToObject(item, "resourceRules"); if(resource_rules == NULL) { goto fail; //nonprimitive container } listEntry_t *resource_rulesListEntry; - if (v1beta1_policy_rules_with_subjects->resource_rules) { - list_ForEach(resource_rulesListEntry, v1beta1_policy_rules_with_subjects->resource_rules) { - cJSON *itemLocal = v1beta1_resource_policy_rule_convertToJSON(resource_rulesListEntry->data); + if (v1beta3_policy_rules_with_subjects->resource_rules) { + list_ForEach(resource_rulesListEntry, v1beta3_policy_rules_with_subjects->resource_rules) { + cJSON *itemLocal = v1beta3_resource_policy_rule_convertToJSON(resource_rulesListEntry->data); if(itemLocal == NULL) { goto fail; } @@ -94,8 +94,8 @@ cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_wit } - // v1beta1_policy_rules_with_subjects->subjects - if (!v1beta1_policy_rules_with_subjects->subjects) { + // v1beta3_policy_rules_with_subjects->subjects + if (!v1beta3_policy_rules_with_subjects->subjects) { goto fail; } cJSON *subjects = cJSON_AddArrayToObject(item, "subjects"); @@ -104,9 +104,9 @@ cJSON *v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_wit } listEntry_t *subjectsListEntry; - if (v1beta1_policy_rules_with_subjects->subjects) { - list_ForEach(subjectsListEntry, v1beta1_policy_rules_with_subjects->subjects) { - cJSON *itemLocal = v1beta1_subject_convertToJSON(subjectsListEntry->data); + if (v1beta3_policy_rules_with_subjects->subjects) { + list_ForEach(subjectsListEntry, v1beta3_policy_rules_with_subjects->subjects) { + cJSON *itemLocal = v1beta3_subject_convertToJSON(subjectsListEntry->data); if(itemLocal == NULL) { goto fail; } @@ -122,21 +122,21 @@ fail: return NULL; } -v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta1_policy_rules_with_subjectsJSON){ +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta3_policy_rules_with_subjectsJSON){ - v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_local_var = NULL; + v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_local_var = NULL; - // define the local list for v1beta1_policy_rules_with_subjects->non_resource_rules + // define the local list for v1beta3_policy_rules_with_subjects->non_resource_rules list_t *non_resource_rulesList = NULL; - // define the local list for v1beta1_policy_rules_with_subjects->resource_rules + // define the local list for v1beta3_policy_rules_with_subjects->resource_rules list_t *resource_rulesList = NULL; - // define the local list for v1beta1_policy_rules_with_subjects->subjects + // define the local list for v1beta3_policy_rules_with_subjects->subjects list_t *subjectsList = NULL; - // v1beta1_policy_rules_with_subjects->non_resource_rules - cJSON *non_resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta1_policy_rules_with_subjectsJSON, "nonResourceRules"); + // v1beta3_policy_rules_with_subjects->non_resource_rules + cJSON *non_resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta3_policy_rules_with_subjectsJSON, "nonResourceRules"); if (non_resource_rules) { cJSON *non_resource_rules_local_nonprimitive = NULL; if(!cJSON_IsArray(non_resource_rules)){ @@ -150,14 +150,14 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if(!cJSON_IsObject(non_resource_rules_local_nonprimitive)){ goto end; } - v1beta1_non_resource_policy_rule_t *non_resource_rulesItem = v1beta1_non_resource_policy_rule_parseFromJSON(non_resource_rules_local_nonprimitive); + v1beta3_non_resource_policy_rule_t *non_resource_rulesItem = v1beta3_non_resource_policy_rule_parseFromJSON(non_resource_rules_local_nonprimitive); list_addElement(non_resource_rulesList, non_resource_rulesItem); } } - // v1beta1_policy_rules_with_subjects->resource_rules - cJSON *resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta1_policy_rules_with_subjectsJSON, "resourceRules"); + // v1beta3_policy_rules_with_subjects->resource_rules + cJSON *resource_rules = cJSON_GetObjectItemCaseSensitive(v1beta3_policy_rules_with_subjectsJSON, "resourceRules"); if (resource_rules) { cJSON *resource_rules_local_nonprimitive = NULL; if(!cJSON_IsArray(resource_rules)){ @@ -171,14 +171,14 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if(!cJSON_IsObject(resource_rules_local_nonprimitive)){ goto end; } - v1beta1_resource_policy_rule_t *resource_rulesItem = v1beta1_resource_policy_rule_parseFromJSON(resource_rules_local_nonprimitive); + v1beta3_resource_policy_rule_t *resource_rulesItem = v1beta3_resource_policy_rule_parseFromJSON(resource_rules_local_nonprimitive); list_addElement(resource_rulesList, resource_rulesItem); } } - // v1beta1_policy_rules_with_subjects->subjects - cJSON *subjects = cJSON_GetObjectItemCaseSensitive(v1beta1_policy_rules_with_subjectsJSON, "subjects"); + // v1beta3_policy_rules_with_subjects->subjects + cJSON *subjects = cJSON_GetObjectItemCaseSensitive(v1beta3_policy_rules_with_subjectsJSON, "subjects"); if (!subjects) { goto end; } @@ -196,24 +196,24 @@ v1beta1_policy_rules_with_subjects_t *v1beta1_policy_rules_with_subjects_parseFr if(!cJSON_IsObject(subjects_local_nonprimitive)){ goto end; } - v1beta1_subject_t *subjectsItem = v1beta1_subject_parseFromJSON(subjects_local_nonprimitive); + v1beta3_subject_t *subjectsItem = v1beta3_subject_parseFromJSON(subjects_local_nonprimitive); list_addElement(subjectsList, subjectsItem); } - v1beta1_policy_rules_with_subjects_local_var = v1beta1_policy_rules_with_subjects_create ( + v1beta3_policy_rules_with_subjects_local_var = v1beta3_policy_rules_with_subjects_create ( non_resource_rules ? non_resource_rulesList : NULL, resource_rules ? resource_rulesList : NULL, subjectsList ); - return v1beta1_policy_rules_with_subjects_local_var; + return v1beta3_policy_rules_with_subjects_local_var; end: if (non_resource_rulesList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, non_resource_rulesList) { - v1beta1_non_resource_policy_rule_free(listEntry->data); + v1beta3_non_resource_policy_rule_free(listEntry->data); listEntry->data = NULL; } list_freeList(non_resource_rulesList); @@ -222,7 +222,7 @@ end: if (resource_rulesList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, resource_rulesList) { - v1beta1_resource_policy_rule_free(listEntry->data); + v1beta3_resource_policy_rule_free(listEntry->data); listEntry->data = NULL; } list_freeList(resource_rulesList); @@ -231,7 +231,7 @@ end: if (subjectsList) { listEntry_t *listEntry = NULL; list_ForEach(listEntry, subjectsList) { - v1beta1_subject_free(listEntry->data); + v1beta3_subject_free(listEntry->data); listEntry->data = NULL; } list_freeList(subjectsList); diff --git a/kubernetes/model/v1beta3_policy_rules_with_subjects.h b/kubernetes/model/v1beta3_policy_rules_with_subjects.h new file mode 100644 index 0000000..d9fd811 --- /dev/null +++ b/kubernetes/model/v1beta3_policy_rules_with_subjects.h @@ -0,0 +1,44 @@ +/* + * v1beta3_policy_rules_with_subjects.h + * + * PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request. + */ + +#ifndef _v1beta3_policy_rules_with_subjects_H_ +#define _v1beta3_policy_rules_with_subjects_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_policy_rules_with_subjects_t v1beta3_policy_rules_with_subjects_t; + +#include "v1beta3_non_resource_policy_rule.h" +#include "v1beta3_resource_policy_rule.h" +#include "v1beta3_subject.h" + + + +typedef struct v1beta3_policy_rules_with_subjects_t { + list_t *non_resource_rules; //nonprimitive container + list_t *resource_rules; //nonprimitive container + list_t *subjects; //nonprimitive container + +} v1beta3_policy_rules_with_subjects_t; + +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_create( + list_t *non_resource_rules, + list_t *resource_rules, + list_t *subjects +); + +void v1beta3_policy_rules_with_subjects_free(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects); + +v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects_parseFromJSON(cJSON *v1beta3_policy_rules_with_subjectsJSON); + +cJSON *v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_t *v1beta3_policy_rules_with_subjects); + +#endif /* _v1beta3_policy_rules_with_subjects_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration.c b/kubernetes/model/v1beta3_priority_level_configuration.c new file mode 100644 index 0000000..1429a86 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration.c @@ -0,0 +1,196 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration.h" + + + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_priority_level_configuration_spec_t *spec, + v1beta3_priority_level_configuration_status_t *status + ) { + v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_local_var = malloc(sizeof(v1beta3_priority_level_configuration_t)); + if (!v1beta3_priority_level_configuration_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_local_var->api_version = api_version; + v1beta3_priority_level_configuration_local_var->kind = kind; + v1beta3_priority_level_configuration_local_var->metadata = metadata; + v1beta3_priority_level_configuration_local_var->spec = spec; + v1beta3_priority_level_configuration_local_var->status = status; + + return v1beta3_priority_level_configuration_local_var; +} + + +void v1beta3_priority_level_configuration_free(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration) { + if(NULL == v1beta3_priority_level_configuration){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration->api_version) { + free(v1beta3_priority_level_configuration->api_version); + v1beta3_priority_level_configuration->api_version = NULL; + } + if (v1beta3_priority_level_configuration->kind) { + free(v1beta3_priority_level_configuration->kind); + v1beta3_priority_level_configuration->kind = NULL; + } + if (v1beta3_priority_level_configuration->metadata) { + v1_object_meta_free(v1beta3_priority_level_configuration->metadata); + v1beta3_priority_level_configuration->metadata = NULL; + } + if (v1beta3_priority_level_configuration->spec) { + v1beta3_priority_level_configuration_spec_free(v1beta3_priority_level_configuration->spec); + v1beta3_priority_level_configuration->spec = NULL; + } + if (v1beta3_priority_level_configuration->status) { + v1beta3_priority_level_configuration_status_free(v1beta3_priority_level_configuration->status); + v1beta3_priority_level_configuration->status = NULL; + } + free(v1beta3_priority_level_configuration); +} + +cJSON *v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration->api_version + if(v1beta3_priority_level_configuration->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_priority_level_configuration->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration->kind + if(v1beta3_priority_level_configuration->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_priority_level_configuration->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration->metadata + if(v1beta3_priority_level_configuration->metadata) { + cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v1beta3_priority_level_configuration->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_priority_level_configuration->spec + if(v1beta3_priority_level_configuration->spec) { + cJSON *spec_local_JSON = v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration->spec); + if(spec_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "spec", spec_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_priority_level_configuration->status + if(v1beta3_priority_level_configuration->status) { + cJSON *status_local_JSON = v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration->status); + if(status_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "status", status_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_parseFromJSON(cJSON *v1beta3_priority_level_configurationJSON){ + + v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_local_var = NULL; + + // define the local variable for v1beta3_priority_level_configuration->metadata + v1_object_meta_t *metadata_local_nonprim = NULL; + + // define the local variable for v1beta3_priority_level_configuration->spec + v1beta3_priority_level_configuration_spec_t *spec_local_nonprim = NULL; + + // define the local variable for v1beta3_priority_level_configuration->status + v1beta3_priority_level_configuration_status_t *status_local_nonprim = NULL; + + // v1beta3_priority_level_configuration->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive + } + + // v1beta3_priority_level_configuration->spec + cJSON *spec = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "spec"); + if (spec) { + spec_local_nonprim = v1beta3_priority_level_configuration_spec_parseFromJSON(spec); //nonprimitive + } + + // v1beta3_priority_level_configuration->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configurationJSON, "status"); + if (status) { + status_local_nonprim = v1beta3_priority_level_configuration_status_parseFromJSON(status); //nonprimitive + } + + + v1beta3_priority_level_configuration_local_var = v1beta3_priority_level_configuration_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL, + spec ? spec_local_nonprim : NULL, + status ? status_local_nonprim : NULL + ); + + return v1beta3_priority_level_configuration_local_var; +end: + if (metadata_local_nonprim) { + v1_object_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + if (spec_local_nonprim) { + v1beta3_priority_level_configuration_spec_free(spec_local_nonprim); + spec_local_nonprim = NULL; + } + if (status_local_nonprim) { + v1beta3_priority_level_configuration_status_free(status_local_nonprim); + status_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration.h b/kubernetes/model/v1beta3_priority_level_configuration.h new file mode 100644 index 0000000..6890420 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration.h @@ -0,0 +1,48 @@ +/* + * v1beta3_priority_level_configuration.h + * + * PriorityLevelConfiguration represents the configuration of a priority level. + */ + +#ifndef _v1beta3_priority_level_configuration_H_ +#define _v1beta3_priority_level_configuration_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_t v1beta3_priority_level_configuration_t; + +#include "v1_object_meta.h" +#include "v1beta3_priority_level_configuration_spec.h" +#include "v1beta3_priority_level_configuration_status.h" + + + +typedef struct v1beta3_priority_level_configuration_t { + char *api_version; // string + char *kind; // string + struct v1_object_meta_t *metadata; //model + struct v1beta3_priority_level_configuration_spec_t *spec; //model + struct v1beta3_priority_level_configuration_status_t *status; //model + +} v1beta3_priority_level_configuration_t; + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_create( + char *api_version, + char *kind, + v1_object_meta_t *metadata, + v1beta3_priority_level_configuration_spec_t *spec, + v1beta3_priority_level_configuration_status_t *status +); + +void v1beta3_priority_level_configuration_free(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration); + +v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration_parseFromJSON(cJSON *v1beta3_priority_level_configurationJSON); + +cJSON *v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_t *v1beta3_priority_level_configuration); + +#endif /* _v1beta3_priority_level_configuration_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_condition.c b/kubernetes/model/v1beta3_priority_level_configuration_condition.c new file mode 100644 index 0000000..1b2c62e --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_condition.c @@ -0,0 +1,169 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_condition.h" + + + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type + ) { + v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_local_var = malloc(sizeof(v1beta3_priority_level_configuration_condition_t)); + if (!v1beta3_priority_level_configuration_condition_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_condition_local_var->last_transition_time = last_transition_time; + v1beta3_priority_level_configuration_condition_local_var->message = message; + v1beta3_priority_level_configuration_condition_local_var->reason = reason; + v1beta3_priority_level_configuration_condition_local_var->status = status; + v1beta3_priority_level_configuration_condition_local_var->type = type; + + return v1beta3_priority_level_configuration_condition_local_var; +} + + +void v1beta3_priority_level_configuration_condition_free(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition) { + if(NULL == v1beta3_priority_level_configuration_condition){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_condition->last_transition_time) { + free(v1beta3_priority_level_configuration_condition->last_transition_time); + v1beta3_priority_level_configuration_condition->last_transition_time = NULL; + } + if (v1beta3_priority_level_configuration_condition->message) { + free(v1beta3_priority_level_configuration_condition->message); + v1beta3_priority_level_configuration_condition->message = NULL; + } + if (v1beta3_priority_level_configuration_condition->reason) { + free(v1beta3_priority_level_configuration_condition->reason); + v1beta3_priority_level_configuration_condition->reason = NULL; + } + if (v1beta3_priority_level_configuration_condition->status) { + free(v1beta3_priority_level_configuration_condition->status); + v1beta3_priority_level_configuration_condition->status = NULL; + } + if (v1beta3_priority_level_configuration_condition->type) { + free(v1beta3_priority_level_configuration_condition->type); + v1beta3_priority_level_configuration_condition->type = NULL; + } + free(v1beta3_priority_level_configuration_condition); +} + +cJSON *v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_condition->last_transition_time + if(v1beta3_priority_level_configuration_condition->last_transition_time) { + if(cJSON_AddStringToObject(item, "lastTransitionTime", v1beta3_priority_level_configuration_condition->last_transition_time) == NULL) { + goto fail; //Date-Time + } + } + + + // v1beta3_priority_level_configuration_condition->message + if(v1beta3_priority_level_configuration_condition->message) { + if(cJSON_AddStringToObject(item, "message", v1beta3_priority_level_configuration_condition->message) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_condition->reason + if(v1beta3_priority_level_configuration_condition->reason) { + if(cJSON_AddStringToObject(item, "reason", v1beta3_priority_level_configuration_condition->reason) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_condition->status + if(v1beta3_priority_level_configuration_condition->status) { + if(cJSON_AddStringToObject(item, "status", v1beta3_priority_level_configuration_condition->status) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_condition->type + if(v1beta3_priority_level_configuration_condition->type) { + if(cJSON_AddStringToObject(item, "type", v1beta3_priority_level_configuration_condition->type) == NULL) { + goto fail; //String + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta3_priority_level_configuration_conditionJSON){ + + v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_local_var = NULL; + + // v1beta3_priority_level_configuration_condition->last_transition_time + cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "lastTransitionTime"); + if (last_transition_time) { + if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) + { + goto end; //DateTime + } + } + + // v1beta3_priority_level_configuration_condition->message + cJSON *message = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "message"); + if (message) { + if(!cJSON_IsString(message) && !cJSON_IsNull(message)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_condition->reason + cJSON *reason = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "reason"); + if (reason) { + if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_condition->status + cJSON *status = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "status"); + if (status) { + if(!cJSON_IsString(status) && !cJSON_IsNull(status)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_condition->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_conditionJSON, "type"); + if (type) { + if(!cJSON_IsString(type) && !cJSON_IsNull(type)) + { + goto end; //String + } + } + + + v1beta3_priority_level_configuration_condition_local_var = v1beta3_priority_level_configuration_condition_create ( + last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, + message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, + reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, + status && !cJSON_IsNull(status) ? strdup(status->valuestring) : NULL, + type && !cJSON_IsNull(type) ? strdup(type->valuestring) : NULL + ); + + return v1beta3_priority_level_configuration_condition_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_condition.h b/kubernetes/model/v1beta3_priority_level_configuration_condition.h new file mode 100644 index 0000000..ae63f55 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_condition.h @@ -0,0 +1,45 @@ +/* + * v1beta3_priority_level_configuration_condition.h + * + * PriorityLevelConfigurationCondition defines the condition of priority level. + */ + +#ifndef _v1beta3_priority_level_configuration_condition_H_ +#define _v1beta3_priority_level_configuration_condition_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_condition_t v1beta3_priority_level_configuration_condition_t; + + + + +typedef struct v1beta3_priority_level_configuration_condition_t { + char *last_transition_time; //date time + char *message; // string + char *reason; // string + char *status; // string + char *type; // string + +} v1beta3_priority_level_configuration_condition_t; + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_create( + char *last_transition_time, + char *message, + char *reason, + char *status, + char *type +); + +void v1beta3_priority_level_configuration_condition_free(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition); + +v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition_parseFromJSON(cJSON *v1beta3_priority_level_configuration_conditionJSON); + +cJSON *v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_t *v1beta3_priority_level_configuration_condition); + +#endif /* _v1beta3_priority_level_configuration_condition_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_list.c b/kubernetes/model/v1beta3_priority_level_configuration_list.c new file mode 100644 index 0000000..4f4c86a --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_list.c @@ -0,0 +1,197 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_list.h" + + + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata + ) { + v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_local_var = malloc(sizeof(v1beta3_priority_level_configuration_list_t)); + if (!v1beta3_priority_level_configuration_list_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_list_local_var->api_version = api_version; + v1beta3_priority_level_configuration_list_local_var->items = items; + v1beta3_priority_level_configuration_list_local_var->kind = kind; + v1beta3_priority_level_configuration_list_local_var->metadata = metadata; + + return v1beta3_priority_level_configuration_list_local_var; +} + + +void v1beta3_priority_level_configuration_list_free(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list) { + if(NULL == v1beta3_priority_level_configuration_list){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_list->api_version) { + free(v1beta3_priority_level_configuration_list->api_version); + v1beta3_priority_level_configuration_list->api_version = NULL; + } + if (v1beta3_priority_level_configuration_list->items) { + list_ForEach(listEntry, v1beta3_priority_level_configuration_list->items) { + v1beta3_priority_level_configuration_free(listEntry->data); + } + list_freeList(v1beta3_priority_level_configuration_list->items); + v1beta3_priority_level_configuration_list->items = NULL; + } + if (v1beta3_priority_level_configuration_list->kind) { + free(v1beta3_priority_level_configuration_list->kind); + v1beta3_priority_level_configuration_list->kind = NULL; + } + if (v1beta3_priority_level_configuration_list->metadata) { + v1_list_meta_free(v1beta3_priority_level_configuration_list->metadata); + v1beta3_priority_level_configuration_list->metadata = NULL; + } + free(v1beta3_priority_level_configuration_list); +} + +cJSON *v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_list->api_version + if(v1beta3_priority_level_configuration_list->api_version) { + if(cJSON_AddStringToObject(item, "apiVersion", v1beta3_priority_level_configuration_list->api_version) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_list->items + if (!v1beta3_priority_level_configuration_list->items) { + goto fail; + } + cJSON *items = cJSON_AddArrayToObject(item, "items"); + if(items == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *itemsListEntry; + if (v1beta3_priority_level_configuration_list->items) { + list_ForEach(itemsListEntry, v1beta3_priority_level_configuration_list->items) { + cJSON *itemLocal = v1beta3_priority_level_configuration_convertToJSON(itemsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(items, itemLocal); + } + } + + + // v1beta3_priority_level_configuration_list->kind + if(v1beta3_priority_level_configuration_list->kind) { + if(cJSON_AddStringToObject(item, "kind", v1beta3_priority_level_configuration_list->kind) == NULL) { + goto fail; //String + } + } + + + // v1beta3_priority_level_configuration_list->metadata + if(v1beta3_priority_level_configuration_list->metadata) { + cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v1beta3_priority_level_configuration_list->metadata); + if(metadata_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_parseFromJSON(cJSON *v1beta3_priority_level_configuration_listJSON){ + + v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_local_var = NULL; + + // define the local list for v1beta3_priority_level_configuration_list->items + list_t *itemsList = NULL; + + // define the local variable for v1beta3_priority_level_configuration_list->metadata + v1_list_meta_t *metadata_local_nonprim = NULL; + + // v1beta3_priority_level_configuration_list->api_version + cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "apiVersion"); + if (api_version) { + if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_list->items + cJSON *items = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "items"); + if (!items) { + goto end; + } + + + cJSON *items_local_nonprimitive = NULL; + if(!cJSON_IsArray(items)){ + goto end; //nonprimitive container + } + + itemsList = list_createList(); + + cJSON_ArrayForEach(items_local_nonprimitive,items ) + { + if(!cJSON_IsObject(items_local_nonprimitive)){ + goto end; + } + v1beta3_priority_level_configuration_t *itemsItem = v1beta3_priority_level_configuration_parseFromJSON(items_local_nonprimitive); + + list_addElement(itemsList, itemsItem); + } + + // v1beta3_priority_level_configuration_list->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "kind"); + if (kind) { + if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) + { + goto end; //String + } + } + + // v1beta3_priority_level_configuration_list->metadata + cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_listJSON, "metadata"); + if (metadata) { + metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive + } + + + v1beta3_priority_level_configuration_list_local_var = v1beta3_priority_level_configuration_list_create ( + api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, + itemsList, + kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, + metadata ? metadata_local_nonprim : NULL + ); + + return v1beta3_priority_level_configuration_list_local_var; +end: + if (itemsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, itemsList) { + v1beta3_priority_level_configuration_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(itemsList); + itemsList = NULL; + } + if (metadata_local_nonprim) { + v1_list_meta_free(metadata_local_nonprim); + metadata_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_list.h b/kubernetes/model/v1beta3_priority_level_configuration_list.h new file mode 100644 index 0000000..4e3a28a --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_list.h @@ -0,0 +1,45 @@ +/* + * v1beta3_priority_level_configuration_list.h + * + * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. + */ + +#ifndef _v1beta3_priority_level_configuration_list_H_ +#define _v1beta3_priority_level_configuration_list_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_list_t v1beta3_priority_level_configuration_list_t; + +#include "v1_list_meta.h" +#include "v1beta3_priority_level_configuration.h" + + + +typedef struct v1beta3_priority_level_configuration_list_t { + char *api_version; // string + list_t *items; //nonprimitive container + char *kind; // string + struct v1_list_meta_t *metadata; //model + +} v1beta3_priority_level_configuration_list_t; + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_create( + char *api_version, + list_t *items, + char *kind, + v1_list_meta_t *metadata +); + +void v1beta3_priority_level_configuration_list_free(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list); + +v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list_parseFromJSON(cJSON *v1beta3_priority_level_configuration_listJSON); + +cJSON *v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_t *v1beta3_priority_level_configuration_list); + +#endif /* _v1beta3_priority_level_configuration_list_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_reference.c b/kubernetes/model/v1beta3_priority_level_configuration_reference.c new file mode 100644 index 0000000..6323ee8 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_reference.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_reference.h" + + + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_create( + char *name + ) { + v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_local_var = malloc(sizeof(v1beta3_priority_level_configuration_reference_t)); + if (!v1beta3_priority_level_configuration_reference_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_reference_local_var->name = name; + + return v1beta3_priority_level_configuration_reference_local_var; +} + + +void v1beta3_priority_level_configuration_reference_free(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference) { + if(NULL == v1beta3_priority_level_configuration_reference){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_reference->name) { + free(v1beta3_priority_level_configuration_reference->name); + v1beta3_priority_level_configuration_reference->name = NULL; + } + free(v1beta3_priority_level_configuration_reference); +} + +cJSON *v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_reference->name + if (!v1beta3_priority_level_configuration_reference->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_priority_level_configuration_reference->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta3_priority_level_configuration_referenceJSON){ + + v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_local_var = NULL; + + // v1beta3_priority_level_configuration_reference->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_referenceJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1beta3_priority_level_configuration_reference_local_var = v1beta3_priority_level_configuration_reference_create ( + strdup(name->valuestring) + ); + + return v1beta3_priority_level_configuration_reference_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_reference.h b/kubernetes/model/v1beta3_priority_level_configuration_reference.h new file mode 100644 index 0000000..599c95f --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_reference.h @@ -0,0 +1,37 @@ +/* + * v1beta3_priority_level_configuration_reference.h + * + * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. + */ + +#ifndef _v1beta3_priority_level_configuration_reference_H_ +#define _v1beta3_priority_level_configuration_reference_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_reference_t v1beta3_priority_level_configuration_reference_t; + + + + +typedef struct v1beta3_priority_level_configuration_reference_t { + char *name; // string + +} v1beta3_priority_level_configuration_reference_t; + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_create( + char *name +); + +void v1beta3_priority_level_configuration_reference_free(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference); + +v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference_parseFromJSON(cJSON *v1beta3_priority_level_configuration_referenceJSON); + +cJSON *v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_t *v1beta3_priority_level_configuration_reference); + +#endif /* _v1beta3_priority_level_configuration_reference_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_spec.c b/kubernetes/model/v1beta3_priority_level_configuration_spec.c new file mode 100644 index 0000000..86eb613 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_spec.c @@ -0,0 +1,110 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_spec.h" + + + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_create( + v1beta3_limited_priority_level_configuration_t *limited, + char *type + ) { + v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_local_var = malloc(sizeof(v1beta3_priority_level_configuration_spec_t)); + if (!v1beta3_priority_level_configuration_spec_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_spec_local_var->limited = limited; + v1beta3_priority_level_configuration_spec_local_var->type = type; + + return v1beta3_priority_level_configuration_spec_local_var; +} + + +void v1beta3_priority_level_configuration_spec_free(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec) { + if(NULL == v1beta3_priority_level_configuration_spec){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_spec->limited) { + v1beta3_limited_priority_level_configuration_free(v1beta3_priority_level_configuration_spec->limited); + v1beta3_priority_level_configuration_spec->limited = NULL; + } + if (v1beta3_priority_level_configuration_spec->type) { + free(v1beta3_priority_level_configuration_spec->type); + v1beta3_priority_level_configuration_spec->type = NULL; + } + free(v1beta3_priority_level_configuration_spec); +} + +cJSON *v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_spec->limited + if(v1beta3_priority_level_configuration_spec->limited) { + cJSON *limited_local_JSON = v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_spec->limited); + if(limited_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "limited", limited_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_priority_level_configuration_spec->type + if (!v1beta3_priority_level_configuration_spec->type) { + goto fail; + } + if(cJSON_AddStringToObject(item, "type", v1beta3_priority_level_configuration_spec->type) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta3_priority_level_configuration_specJSON){ + + v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_local_var = NULL; + + // define the local variable for v1beta3_priority_level_configuration_spec->limited + v1beta3_limited_priority_level_configuration_t *limited_local_nonprim = NULL; + + // v1beta3_priority_level_configuration_spec->limited + cJSON *limited = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_specJSON, "limited"); + if (limited) { + limited_local_nonprim = v1beta3_limited_priority_level_configuration_parseFromJSON(limited); //nonprimitive + } + + // v1beta3_priority_level_configuration_spec->type + cJSON *type = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_specJSON, "type"); + if (!type) { + goto end; + } + + + if(!cJSON_IsString(type)) + { + goto end; //String + } + + + v1beta3_priority_level_configuration_spec_local_var = v1beta3_priority_level_configuration_spec_create ( + limited ? limited_local_nonprim : NULL, + strdup(type->valuestring) + ); + + return v1beta3_priority_level_configuration_spec_local_var; +end: + if (limited_local_nonprim) { + v1beta3_limited_priority_level_configuration_free(limited_local_nonprim); + limited_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_spec.h b/kubernetes/model/v1beta3_priority_level_configuration_spec.h new file mode 100644 index 0000000..56f8915 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_spec.h @@ -0,0 +1,40 @@ +/* + * v1beta3_priority_level_configuration_spec.h + * + * PriorityLevelConfigurationSpec specifies the configuration of a priority level. + */ + +#ifndef _v1beta3_priority_level_configuration_spec_H_ +#define _v1beta3_priority_level_configuration_spec_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_spec_t v1beta3_priority_level_configuration_spec_t; + +#include "v1beta3_limited_priority_level_configuration.h" + + + +typedef struct v1beta3_priority_level_configuration_spec_t { + struct v1beta3_limited_priority_level_configuration_t *limited; //model + char *type; // string + +} v1beta3_priority_level_configuration_spec_t; + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_create( + v1beta3_limited_priority_level_configuration_t *limited, + char *type +); + +void v1beta3_priority_level_configuration_spec_free(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec); + +v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec_parseFromJSON(cJSON *v1beta3_priority_level_configuration_specJSON); + +cJSON *v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_t *v1beta3_priority_level_configuration_spec); + +#endif /* _v1beta3_priority_level_configuration_spec_H_ */ + diff --git a/kubernetes/model/v1beta3_priority_level_configuration_status.c b/kubernetes/model/v1beta3_priority_level_configuration_status.c new file mode 100644 index 0000000..9fe6a26 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_status.c @@ -0,0 +1,112 @@ +#include +#include +#include +#include "v1beta3_priority_level_configuration_status.h" + + + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_create( + list_t *conditions + ) { + v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_local_var = malloc(sizeof(v1beta3_priority_level_configuration_status_t)); + if (!v1beta3_priority_level_configuration_status_local_var) { + return NULL; + } + v1beta3_priority_level_configuration_status_local_var->conditions = conditions; + + return v1beta3_priority_level_configuration_status_local_var; +} + + +void v1beta3_priority_level_configuration_status_free(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status) { + if(NULL == v1beta3_priority_level_configuration_status){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_priority_level_configuration_status->conditions) { + list_ForEach(listEntry, v1beta3_priority_level_configuration_status->conditions) { + v1beta3_priority_level_configuration_condition_free(listEntry->data); + } + list_freeList(v1beta3_priority_level_configuration_status->conditions); + v1beta3_priority_level_configuration_status->conditions = NULL; + } + free(v1beta3_priority_level_configuration_status); +} + +cJSON *v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_priority_level_configuration_status->conditions + if(v1beta3_priority_level_configuration_status->conditions) { + cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); + if(conditions == NULL) { + goto fail; //nonprimitive container + } + + listEntry_t *conditionsListEntry; + if (v1beta3_priority_level_configuration_status->conditions) { + list_ForEach(conditionsListEntry, v1beta3_priority_level_configuration_status->conditions) { + cJSON *itemLocal = v1beta3_priority_level_configuration_condition_convertToJSON(conditionsListEntry->data); + if(itemLocal == NULL) { + goto fail; + } + cJSON_AddItemToArray(conditions, itemLocal); + } + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_parseFromJSON(cJSON *v1beta3_priority_level_configuration_statusJSON){ + + v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_local_var = NULL; + + // define the local list for v1beta3_priority_level_configuration_status->conditions + list_t *conditionsList = NULL; + + // v1beta3_priority_level_configuration_status->conditions + cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v1beta3_priority_level_configuration_statusJSON, "conditions"); + if (conditions) { + cJSON *conditions_local_nonprimitive = NULL; + if(!cJSON_IsArray(conditions)){ + goto end; //nonprimitive container + } + + conditionsList = list_createList(); + + cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) + { + if(!cJSON_IsObject(conditions_local_nonprimitive)){ + goto end; + } + v1beta3_priority_level_configuration_condition_t *conditionsItem = v1beta3_priority_level_configuration_condition_parseFromJSON(conditions_local_nonprimitive); + + list_addElement(conditionsList, conditionsItem); + } + } + + + v1beta3_priority_level_configuration_status_local_var = v1beta3_priority_level_configuration_status_create ( + conditions ? conditionsList : NULL + ); + + return v1beta3_priority_level_configuration_status_local_var; +end: + if (conditionsList) { + listEntry_t *listEntry = NULL; + list_ForEach(listEntry, conditionsList) { + v1beta3_priority_level_configuration_condition_free(listEntry->data); + listEntry->data = NULL; + } + list_freeList(conditionsList); + conditionsList = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_priority_level_configuration_status.h b/kubernetes/model/v1beta3_priority_level_configuration_status.h new file mode 100644 index 0000000..5e231e9 --- /dev/null +++ b/kubernetes/model/v1beta3_priority_level_configuration_status.h @@ -0,0 +1,38 @@ +/* + * v1beta3_priority_level_configuration_status.h + * + * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". + */ + +#ifndef _v1beta3_priority_level_configuration_status_H_ +#define _v1beta3_priority_level_configuration_status_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_priority_level_configuration_status_t v1beta3_priority_level_configuration_status_t; + +#include "v1beta3_priority_level_configuration_condition.h" + + + +typedef struct v1beta3_priority_level_configuration_status_t { + list_t *conditions; //nonprimitive container + +} v1beta3_priority_level_configuration_status_t; + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_create( + list_t *conditions +); + +void v1beta3_priority_level_configuration_status_free(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status); + +v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status_parseFromJSON(cJSON *v1beta3_priority_level_configuration_statusJSON); + +cJSON *v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_t *v1beta3_priority_level_configuration_status); + +#endif /* _v1beta3_priority_level_configuration_status_H_ */ + diff --git a/kubernetes/model/v1beta3_queuing_configuration.c b/kubernetes/model/v1beta3_queuing_configuration.c new file mode 100644 index 0000000..187835c --- /dev/null +++ b/kubernetes/model/v1beta3_queuing_configuration.c @@ -0,0 +1,109 @@ +#include +#include +#include +#include "v1beta3_queuing_configuration.h" + + + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_create( + int hand_size, + int queue_length_limit, + int queues + ) { + v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_local_var = malloc(sizeof(v1beta3_queuing_configuration_t)); + if (!v1beta3_queuing_configuration_local_var) { + return NULL; + } + v1beta3_queuing_configuration_local_var->hand_size = hand_size; + v1beta3_queuing_configuration_local_var->queue_length_limit = queue_length_limit; + v1beta3_queuing_configuration_local_var->queues = queues; + + return v1beta3_queuing_configuration_local_var; +} + + +void v1beta3_queuing_configuration_free(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration) { + if(NULL == v1beta3_queuing_configuration){ + return ; + } + listEntry_t *listEntry; + free(v1beta3_queuing_configuration); +} + +cJSON *v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_queuing_configuration->hand_size + if(v1beta3_queuing_configuration->hand_size) { + if(cJSON_AddNumberToObject(item, "handSize", v1beta3_queuing_configuration->hand_size) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_queuing_configuration->queue_length_limit + if(v1beta3_queuing_configuration->queue_length_limit) { + if(cJSON_AddNumberToObject(item, "queueLengthLimit", v1beta3_queuing_configuration->queue_length_limit) == NULL) { + goto fail; //Numeric + } + } + + + // v1beta3_queuing_configuration->queues + if(v1beta3_queuing_configuration->queues) { + if(cJSON_AddNumberToObject(item, "queues", v1beta3_queuing_configuration->queues) == NULL) { + goto fail; //Numeric + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_parseFromJSON(cJSON *v1beta3_queuing_configurationJSON){ + + v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_local_var = NULL; + + // v1beta3_queuing_configuration->hand_size + cJSON *hand_size = cJSON_GetObjectItemCaseSensitive(v1beta3_queuing_configurationJSON, "handSize"); + if (hand_size) { + if(!cJSON_IsNumber(hand_size)) + { + goto end; //Numeric + } + } + + // v1beta3_queuing_configuration->queue_length_limit + cJSON *queue_length_limit = cJSON_GetObjectItemCaseSensitive(v1beta3_queuing_configurationJSON, "queueLengthLimit"); + if (queue_length_limit) { + if(!cJSON_IsNumber(queue_length_limit)) + { + goto end; //Numeric + } + } + + // v1beta3_queuing_configuration->queues + cJSON *queues = cJSON_GetObjectItemCaseSensitive(v1beta3_queuing_configurationJSON, "queues"); + if (queues) { + if(!cJSON_IsNumber(queues)) + { + goto end; //Numeric + } + } + + + v1beta3_queuing_configuration_local_var = v1beta3_queuing_configuration_create ( + hand_size ? hand_size->valuedouble : 0, + queue_length_limit ? queue_length_limit->valuedouble : 0, + queues ? queues->valuedouble : 0 + ); + + return v1beta3_queuing_configuration_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_queuing_configuration.h b/kubernetes/model/v1beta3_queuing_configuration.h new file mode 100644 index 0000000..925146f --- /dev/null +++ b/kubernetes/model/v1beta3_queuing_configuration.h @@ -0,0 +1,41 @@ +/* + * v1beta3_queuing_configuration.h + * + * QueuingConfiguration holds the configuration parameters for queuing + */ + +#ifndef _v1beta3_queuing_configuration_H_ +#define _v1beta3_queuing_configuration_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_queuing_configuration_t v1beta3_queuing_configuration_t; + + + + +typedef struct v1beta3_queuing_configuration_t { + int hand_size; //numeric + int queue_length_limit; //numeric + int queues; //numeric + +} v1beta3_queuing_configuration_t; + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_create( + int hand_size, + int queue_length_limit, + int queues +); + +void v1beta3_queuing_configuration_free(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration); + +v1beta3_queuing_configuration_t *v1beta3_queuing_configuration_parseFromJSON(cJSON *v1beta3_queuing_configurationJSON); + +cJSON *v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_t *v1beta3_queuing_configuration); + +#endif /* _v1beta3_queuing_configuration_H_ */ + diff --git a/kubernetes/model/v1beta1_resource_policy_rule.c b/kubernetes/model/v1beta3_resource_policy_rule.c similarity index 59% rename from kubernetes/model/v1beta1_resource_policy_rule.c rename to kubernetes/model/v1beta3_resource_policy_rule.c index 681eb16..d1868dc 100644 --- a/kubernetes/model/v1beta1_resource_policy_rule.c +++ b/kubernetes/model/v1beta3_resource_policy_rule.c @@ -1,72 +1,72 @@ #include #include #include -#include "v1beta1_resource_policy_rule.h" +#include "v1beta3_resource_policy_rule.h" -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_create( +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_create( list_t *api_groups, int cluster_scope, list_t *namespaces, list_t *resources, list_t *verbs ) { - v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_local_var = malloc(sizeof(v1beta1_resource_policy_rule_t)); - if (!v1beta1_resource_policy_rule_local_var) { + v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_local_var = malloc(sizeof(v1beta3_resource_policy_rule_t)); + if (!v1beta3_resource_policy_rule_local_var) { return NULL; } - v1beta1_resource_policy_rule_local_var->api_groups = api_groups; - v1beta1_resource_policy_rule_local_var->cluster_scope = cluster_scope; - v1beta1_resource_policy_rule_local_var->namespaces = namespaces; - v1beta1_resource_policy_rule_local_var->resources = resources; - v1beta1_resource_policy_rule_local_var->verbs = verbs; + v1beta3_resource_policy_rule_local_var->api_groups = api_groups; + v1beta3_resource_policy_rule_local_var->cluster_scope = cluster_scope; + v1beta3_resource_policy_rule_local_var->namespaces = namespaces; + v1beta3_resource_policy_rule_local_var->resources = resources; + v1beta3_resource_policy_rule_local_var->verbs = verbs; - return v1beta1_resource_policy_rule_local_var; + return v1beta3_resource_policy_rule_local_var; } -void v1beta1_resource_policy_rule_free(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule) { - if(NULL == v1beta1_resource_policy_rule){ +void v1beta3_resource_policy_rule_free(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule) { + if(NULL == v1beta3_resource_policy_rule){ return ; } listEntry_t *listEntry; - if (v1beta1_resource_policy_rule->api_groups) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->api_groups) { + if (v1beta3_resource_policy_rule->api_groups) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->api_groups) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->api_groups); - v1beta1_resource_policy_rule->api_groups = NULL; + list_freeList(v1beta3_resource_policy_rule->api_groups); + v1beta3_resource_policy_rule->api_groups = NULL; } - if (v1beta1_resource_policy_rule->namespaces) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->namespaces) { + if (v1beta3_resource_policy_rule->namespaces) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->namespaces) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->namespaces); - v1beta1_resource_policy_rule->namespaces = NULL; + list_freeList(v1beta3_resource_policy_rule->namespaces); + v1beta3_resource_policy_rule->namespaces = NULL; } - if (v1beta1_resource_policy_rule->resources) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->resources) { + if (v1beta3_resource_policy_rule->resources) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->resources) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->resources); - v1beta1_resource_policy_rule->resources = NULL; + list_freeList(v1beta3_resource_policy_rule->resources); + v1beta3_resource_policy_rule->resources = NULL; } - if (v1beta1_resource_policy_rule->verbs) { - list_ForEach(listEntry, v1beta1_resource_policy_rule->verbs) { + if (v1beta3_resource_policy_rule->verbs) { + list_ForEach(listEntry, v1beta3_resource_policy_rule->verbs) { free(listEntry->data); } - list_freeList(v1beta1_resource_policy_rule->verbs); - v1beta1_resource_policy_rule->verbs = NULL; + list_freeList(v1beta3_resource_policy_rule->verbs); + v1beta3_resource_policy_rule->verbs = NULL; } - free(v1beta1_resource_policy_rule); + free(v1beta3_resource_policy_rule); } -cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule) { +cJSON *v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule) { cJSON *item = cJSON_CreateObject(); - // v1beta1_resource_policy_rule->api_groups - if (!v1beta1_resource_policy_rule->api_groups) { + // v1beta3_resource_policy_rule->api_groups + if (!v1beta3_resource_policy_rule->api_groups) { goto fail; } cJSON *api_groups = cJSON_AddArrayToObject(item, "apiGroups"); @@ -75,7 +75,7 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } listEntry_t *api_groupsListEntry; - list_ForEach(api_groupsListEntry, v1beta1_resource_policy_rule->api_groups) { + list_ForEach(api_groupsListEntry, v1beta3_resource_policy_rule->api_groups) { if(cJSON_AddStringToObject(api_groups, "", (char*)api_groupsListEntry->data) == NULL) { goto fail; @@ -83,23 +83,23 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } - // v1beta1_resource_policy_rule->cluster_scope - if(v1beta1_resource_policy_rule->cluster_scope) { - if(cJSON_AddBoolToObject(item, "clusterScope", v1beta1_resource_policy_rule->cluster_scope) == NULL) { + // v1beta3_resource_policy_rule->cluster_scope + if(v1beta3_resource_policy_rule->cluster_scope) { + if(cJSON_AddBoolToObject(item, "clusterScope", v1beta3_resource_policy_rule->cluster_scope) == NULL) { goto fail; //Bool } } - // v1beta1_resource_policy_rule->namespaces - if(v1beta1_resource_policy_rule->namespaces) { + // v1beta3_resource_policy_rule->namespaces + if(v1beta3_resource_policy_rule->namespaces) { cJSON *namespaces = cJSON_AddArrayToObject(item, "namespaces"); if(namespaces == NULL) { goto fail; //primitive container } listEntry_t *namespacesListEntry; - list_ForEach(namespacesListEntry, v1beta1_resource_policy_rule->namespaces) { + list_ForEach(namespacesListEntry, v1beta3_resource_policy_rule->namespaces) { if(cJSON_AddStringToObject(namespaces, "", (char*)namespacesListEntry->data) == NULL) { goto fail; @@ -108,8 +108,8 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } - // v1beta1_resource_policy_rule->resources - if (!v1beta1_resource_policy_rule->resources) { + // v1beta3_resource_policy_rule->resources + if (!v1beta3_resource_policy_rule->resources) { goto fail; } cJSON *resources = cJSON_AddArrayToObject(item, "resources"); @@ -118,7 +118,7 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } listEntry_t *resourcesListEntry; - list_ForEach(resourcesListEntry, v1beta1_resource_policy_rule->resources) { + list_ForEach(resourcesListEntry, v1beta3_resource_policy_rule->resources) { if(cJSON_AddStringToObject(resources, "", (char*)resourcesListEntry->data) == NULL) { goto fail; @@ -126,8 +126,8 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } - // v1beta1_resource_policy_rule->verbs - if (!v1beta1_resource_policy_rule->verbs) { + // v1beta3_resource_policy_rule->verbs + if (!v1beta3_resource_policy_rule->verbs) { goto fail; } cJSON *verbs = cJSON_AddArrayToObject(item, "verbs"); @@ -136,7 +136,7 @@ cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t } listEntry_t *verbsListEntry; - list_ForEach(verbsListEntry, v1beta1_resource_policy_rule->verbs) { + list_ForEach(verbsListEntry, v1beta3_resource_policy_rule->verbs) { if(cJSON_AddStringToObject(verbs, "", (char*)verbsListEntry->data) == NULL) { goto fail; @@ -151,24 +151,24 @@ fail: return NULL; } -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON *v1beta1_resource_policy_ruleJSON){ +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_parseFromJSON(cJSON *v1beta3_resource_policy_ruleJSON){ - v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_local_var = NULL; + v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_local_var = NULL; - // define the local list for v1beta1_resource_policy_rule->api_groups + // define the local list for v1beta3_resource_policy_rule->api_groups list_t *api_groupsList = NULL; - // define the local list for v1beta1_resource_policy_rule->namespaces + // define the local list for v1beta3_resource_policy_rule->namespaces list_t *namespacesList = NULL; - // define the local list for v1beta1_resource_policy_rule->resources + // define the local list for v1beta3_resource_policy_rule->resources list_t *resourcesList = NULL; - // define the local list for v1beta1_resource_policy_rule->verbs + // define the local list for v1beta3_resource_policy_rule->verbs list_t *verbsList = NULL; - // v1beta1_resource_policy_rule->api_groups - cJSON *api_groups = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "apiGroups"); + // v1beta3_resource_policy_rule->api_groups + cJSON *api_groups = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "apiGroups"); if (!api_groups) { goto end; } @@ -189,8 +189,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON list_addElement(api_groupsList , strdup(api_groups_local->valuestring)); } - // v1beta1_resource_policy_rule->cluster_scope - cJSON *cluster_scope = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "clusterScope"); + // v1beta3_resource_policy_rule->cluster_scope + cJSON *cluster_scope = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "clusterScope"); if (cluster_scope) { if(!cJSON_IsBool(cluster_scope)) { @@ -198,8 +198,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON } } - // v1beta1_resource_policy_rule->namespaces - cJSON *namespaces = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "namespaces"); + // v1beta3_resource_policy_rule->namespaces + cJSON *namespaces = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "namespaces"); if (namespaces) { cJSON *namespaces_local = NULL; if(!cJSON_IsArray(namespaces)) { @@ -217,8 +217,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON } } - // v1beta1_resource_policy_rule->resources - cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "resources"); + // v1beta3_resource_policy_rule->resources + cJSON *resources = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "resources"); if (!resources) { goto end; } @@ -239,8 +239,8 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON list_addElement(resourcesList , strdup(resources_local->valuestring)); } - // v1beta1_resource_policy_rule->verbs - cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta1_resource_policy_ruleJSON, "verbs"); + // v1beta3_resource_policy_rule->verbs + cJSON *verbs = cJSON_GetObjectItemCaseSensitive(v1beta3_resource_policy_ruleJSON, "verbs"); if (!verbs) { goto end; } @@ -262,7 +262,7 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON } - v1beta1_resource_policy_rule_local_var = v1beta1_resource_policy_rule_create ( + v1beta3_resource_policy_rule_local_var = v1beta3_resource_policy_rule_create ( api_groupsList, cluster_scope ? cluster_scope->valueint : 0, namespaces ? namespacesList : NULL, @@ -270,7 +270,7 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON verbsList ); - return v1beta1_resource_policy_rule_local_var; + return v1beta3_resource_policy_rule_local_var; end: if (api_groupsList) { listEntry_t *listEntry = NULL; diff --git a/kubernetes/model/v1beta1_resource_policy_rule.h b/kubernetes/model/v1beta3_resource_policy_rule.h similarity index 61% rename from kubernetes/model/v1beta1_resource_policy_rule.h rename to kubernetes/model/v1beta3_resource_policy_rule.h index 0ee2f77..926941f 100644 --- a/kubernetes/model/v1beta1_resource_policy_rule.h +++ b/kubernetes/model/v1beta3_resource_policy_rule.h @@ -1,11 +1,11 @@ /* - * v1beta1_resource_policy_rule.h + * v1beta3_resource_policy_rule.h * * ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. */ -#ifndef _v1beta1_resource_policy_rule_H_ -#define _v1beta1_resource_policy_rule_H_ +#ifndef _v1beta3_resource_policy_rule_H_ +#define _v1beta3_resource_policy_rule_H_ #include #include "../external/cJSON.h" @@ -13,21 +13,21 @@ #include "../include/keyValuePair.h" #include "../include/binary.h" -typedef struct v1beta1_resource_policy_rule_t v1beta1_resource_policy_rule_t; +typedef struct v1beta3_resource_policy_rule_t v1beta3_resource_policy_rule_t; -typedef struct v1beta1_resource_policy_rule_t { +typedef struct v1beta3_resource_policy_rule_t { list_t *api_groups; //primitive container int cluster_scope; //boolean list_t *namespaces; //primitive container list_t *resources; //primitive container list_t *verbs; //primitive container -} v1beta1_resource_policy_rule_t; +} v1beta3_resource_policy_rule_t; -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_create( +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_create( list_t *api_groups, int cluster_scope, list_t *namespaces, @@ -35,11 +35,11 @@ v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_create( list_t *verbs ); -void v1beta1_resource_policy_rule_free(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule); +void v1beta3_resource_policy_rule_free(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule); -v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule_parseFromJSON(cJSON *v1beta1_resource_policy_ruleJSON); +v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule_parseFromJSON(cJSON *v1beta3_resource_policy_ruleJSON); -cJSON *v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_t *v1beta1_resource_policy_rule); +cJSON *v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_t *v1beta3_resource_policy_rule); -#endif /* _v1beta1_resource_policy_rule_H_ */ +#endif /* _v1beta3_resource_policy_rule_H_ */ diff --git a/kubernetes/model/v1beta3_service_account_subject.c b/kubernetes/model/v1beta3_service_account_subject.c new file mode 100644 index 0000000..92b8318 --- /dev/null +++ b/kubernetes/model/v1beta3_service_account_subject.c @@ -0,0 +1,105 @@ +#include +#include +#include +#include "v1beta3_service_account_subject.h" + + + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_create( + char *name, + char *_namespace + ) { + v1beta3_service_account_subject_t *v1beta3_service_account_subject_local_var = malloc(sizeof(v1beta3_service_account_subject_t)); + if (!v1beta3_service_account_subject_local_var) { + return NULL; + } + v1beta3_service_account_subject_local_var->name = name; + v1beta3_service_account_subject_local_var->_namespace = _namespace; + + return v1beta3_service_account_subject_local_var; +} + + +void v1beta3_service_account_subject_free(v1beta3_service_account_subject_t *v1beta3_service_account_subject) { + if(NULL == v1beta3_service_account_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_service_account_subject->name) { + free(v1beta3_service_account_subject->name); + v1beta3_service_account_subject->name = NULL; + } + if (v1beta3_service_account_subject->_namespace) { + free(v1beta3_service_account_subject->_namespace); + v1beta3_service_account_subject->_namespace = NULL; + } + free(v1beta3_service_account_subject); +} + +cJSON *v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_t *v1beta3_service_account_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_service_account_subject->name + if (!v1beta3_service_account_subject->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_service_account_subject->name) == NULL) { + goto fail; //String + } + + + // v1beta3_service_account_subject->_namespace + if (!v1beta3_service_account_subject->_namespace) { + goto fail; + } + if(cJSON_AddStringToObject(item, "namespace", v1beta3_service_account_subject->_namespace) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_parseFromJSON(cJSON *v1beta3_service_account_subjectJSON){ + + v1beta3_service_account_subject_t *v1beta3_service_account_subject_local_var = NULL; + + // v1beta3_service_account_subject->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_service_account_subjectJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + // v1beta3_service_account_subject->_namespace + cJSON *_namespace = cJSON_GetObjectItemCaseSensitive(v1beta3_service_account_subjectJSON, "namespace"); + if (!_namespace) { + goto end; + } + + + if(!cJSON_IsString(_namespace)) + { + goto end; //String + } + + + v1beta3_service_account_subject_local_var = v1beta3_service_account_subject_create ( + strdup(name->valuestring), + strdup(_namespace->valuestring) + ); + + return v1beta3_service_account_subject_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_service_account_subject.h b/kubernetes/model/v1beta3_service_account_subject.h new file mode 100644 index 0000000..b080453 --- /dev/null +++ b/kubernetes/model/v1beta3_service_account_subject.h @@ -0,0 +1,39 @@ +/* + * v1beta3_service_account_subject.h + * + * ServiceAccountSubject holds detailed information for service-account-kind subject. + */ + +#ifndef _v1beta3_service_account_subject_H_ +#define _v1beta3_service_account_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_service_account_subject_t v1beta3_service_account_subject_t; + + + + +typedef struct v1beta3_service_account_subject_t { + char *name; // string + char *_namespace; // string + +} v1beta3_service_account_subject_t; + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_create( + char *name, + char *_namespace +); + +void v1beta3_service_account_subject_free(v1beta3_service_account_subject_t *v1beta3_service_account_subject); + +v1beta3_service_account_subject_t *v1beta3_service_account_subject_parseFromJSON(cJSON *v1beta3_service_account_subjectJSON); + +cJSON *v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_t *v1beta3_service_account_subject); + +#endif /* _v1beta3_service_account_subject_H_ */ + diff --git a/kubernetes/model/v1beta3_subject.c b/kubernetes/model/v1beta3_subject.c new file mode 100644 index 0000000..3fb2f91 --- /dev/null +++ b/kubernetes/model/v1beta3_subject.c @@ -0,0 +1,176 @@ +#include +#include +#include +#include "v1beta3_subject.h" + + + +v1beta3_subject_t *v1beta3_subject_create( + v1beta3_group_subject_t *group, + char *kind, + v1beta3_service_account_subject_t *service_account, + v1beta3_user_subject_t *user + ) { + v1beta3_subject_t *v1beta3_subject_local_var = malloc(sizeof(v1beta3_subject_t)); + if (!v1beta3_subject_local_var) { + return NULL; + } + v1beta3_subject_local_var->group = group; + v1beta3_subject_local_var->kind = kind; + v1beta3_subject_local_var->service_account = service_account; + v1beta3_subject_local_var->user = user; + + return v1beta3_subject_local_var; +} + + +void v1beta3_subject_free(v1beta3_subject_t *v1beta3_subject) { + if(NULL == v1beta3_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_subject->group) { + v1beta3_group_subject_free(v1beta3_subject->group); + v1beta3_subject->group = NULL; + } + if (v1beta3_subject->kind) { + free(v1beta3_subject->kind); + v1beta3_subject->kind = NULL; + } + if (v1beta3_subject->service_account) { + v1beta3_service_account_subject_free(v1beta3_subject->service_account); + v1beta3_subject->service_account = NULL; + } + if (v1beta3_subject->user) { + v1beta3_user_subject_free(v1beta3_subject->user); + v1beta3_subject->user = NULL; + } + free(v1beta3_subject); +} + +cJSON *v1beta3_subject_convertToJSON(v1beta3_subject_t *v1beta3_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_subject->group + if(v1beta3_subject->group) { + cJSON *group_local_JSON = v1beta3_group_subject_convertToJSON(v1beta3_subject->group); + if(group_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "group", group_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_subject->kind + if (!v1beta3_subject->kind) { + goto fail; + } + if(cJSON_AddStringToObject(item, "kind", v1beta3_subject->kind) == NULL) { + goto fail; //String + } + + + // v1beta3_subject->service_account + if(v1beta3_subject->service_account) { + cJSON *service_account_local_JSON = v1beta3_service_account_subject_convertToJSON(v1beta3_subject->service_account); + if(service_account_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "serviceAccount", service_account_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + + // v1beta3_subject->user + if(v1beta3_subject->user) { + cJSON *user_local_JSON = v1beta3_user_subject_convertToJSON(v1beta3_subject->user); + if(user_local_JSON == NULL) { + goto fail; //model + } + cJSON_AddItemToObject(item, "user", user_local_JSON); + if(item->child == NULL) { + goto fail; + } + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_subject_t *v1beta3_subject_parseFromJSON(cJSON *v1beta3_subjectJSON){ + + v1beta3_subject_t *v1beta3_subject_local_var = NULL; + + // define the local variable for v1beta3_subject->group + v1beta3_group_subject_t *group_local_nonprim = NULL; + + // define the local variable for v1beta3_subject->service_account + v1beta3_service_account_subject_t *service_account_local_nonprim = NULL; + + // define the local variable for v1beta3_subject->user + v1beta3_user_subject_t *user_local_nonprim = NULL; + + // v1beta3_subject->group + cJSON *group = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "group"); + if (group) { + group_local_nonprim = v1beta3_group_subject_parseFromJSON(group); //nonprimitive + } + + // v1beta3_subject->kind + cJSON *kind = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "kind"); + if (!kind) { + goto end; + } + + + if(!cJSON_IsString(kind)) + { + goto end; //String + } + + // v1beta3_subject->service_account + cJSON *service_account = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "serviceAccount"); + if (service_account) { + service_account_local_nonprim = v1beta3_service_account_subject_parseFromJSON(service_account); //nonprimitive + } + + // v1beta3_subject->user + cJSON *user = cJSON_GetObjectItemCaseSensitive(v1beta3_subjectJSON, "user"); + if (user) { + user_local_nonprim = v1beta3_user_subject_parseFromJSON(user); //nonprimitive + } + + + v1beta3_subject_local_var = v1beta3_subject_create ( + group ? group_local_nonprim : NULL, + strdup(kind->valuestring), + service_account ? service_account_local_nonprim : NULL, + user ? user_local_nonprim : NULL + ); + + return v1beta3_subject_local_var; +end: + if (group_local_nonprim) { + v1beta3_group_subject_free(group_local_nonprim); + group_local_nonprim = NULL; + } + if (service_account_local_nonprim) { + v1beta3_service_account_subject_free(service_account_local_nonprim); + service_account_local_nonprim = NULL; + } + if (user_local_nonprim) { + v1beta3_user_subject_free(user_local_nonprim); + user_local_nonprim = NULL; + } + return NULL; + +} diff --git a/kubernetes/model/v1beta3_subject.h b/kubernetes/model/v1beta3_subject.h new file mode 100644 index 0000000..dacf069 --- /dev/null +++ b/kubernetes/model/v1beta3_subject.h @@ -0,0 +1,46 @@ +/* + * v1beta3_subject.h + * + * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account. + */ + +#ifndef _v1beta3_subject_H_ +#define _v1beta3_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_subject_t v1beta3_subject_t; + +#include "v1beta3_group_subject.h" +#include "v1beta3_service_account_subject.h" +#include "v1beta3_user_subject.h" + + + +typedef struct v1beta3_subject_t { + struct v1beta3_group_subject_t *group; //model + char *kind; // string + struct v1beta3_service_account_subject_t *service_account; //model + struct v1beta3_user_subject_t *user; //model + +} v1beta3_subject_t; + +v1beta3_subject_t *v1beta3_subject_create( + v1beta3_group_subject_t *group, + char *kind, + v1beta3_service_account_subject_t *service_account, + v1beta3_user_subject_t *user +); + +void v1beta3_subject_free(v1beta3_subject_t *v1beta3_subject); + +v1beta3_subject_t *v1beta3_subject_parseFromJSON(cJSON *v1beta3_subjectJSON); + +cJSON *v1beta3_subject_convertToJSON(v1beta3_subject_t *v1beta3_subject); + +#endif /* _v1beta3_subject_H_ */ + diff --git a/kubernetes/model/v1beta3_user_subject.c b/kubernetes/model/v1beta3_user_subject.c new file mode 100644 index 0000000..bccf7d7 --- /dev/null +++ b/kubernetes/model/v1beta3_user_subject.c @@ -0,0 +1,77 @@ +#include +#include +#include +#include "v1beta3_user_subject.h" + + + +v1beta3_user_subject_t *v1beta3_user_subject_create( + char *name + ) { + v1beta3_user_subject_t *v1beta3_user_subject_local_var = malloc(sizeof(v1beta3_user_subject_t)); + if (!v1beta3_user_subject_local_var) { + return NULL; + } + v1beta3_user_subject_local_var->name = name; + + return v1beta3_user_subject_local_var; +} + + +void v1beta3_user_subject_free(v1beta3_user_subject_t *v1beta3_user_subject) { + if(NULL == v1beta3_user_subject){ + return ; + } + listEntry_t *listEntry; + if (v1beta3_user_subject->name) { + free(v1beta3_user_subject->name); + v1beta3_user_subject->name = NULL; + } + free(v1beta3_user_subject); +} + +cJSON *v1beta3_user_subject_convertToJSON(v1beta3_user_subject_t *v1beta3_user_subject) { + cJSON *item = cJSON_CreateObject(); + + // v1beta3_user_subject->name + if (!v1beta3_user_subject->name) { + goto fail; + } + if(cJSON_AddStringToObject(item, "name", v1beta3_user_subject->name) == NULL) { + goto fail; //String + } + + return item; +fail: + if (item) { + cJSON_Delete(item); + } + return NULL; +} + +v1beta3_user_subject_t *v1beta3_user_subject_parseFromJSON(cJSON *v1beta3_user_subjectJSON){ + + v1beta3_user_subject_t *v1beta3_user_subject_local_var = NULL; + + // v1beta3_user_subject->name + cJSON *name = cJSON_GetObjectItemCaseSensitive(v1beta3_user_subjectJSON, "name"); + if (!name) { + goto end; + } + + + if(!cJSON_IsString(name)) + { + goto end; //String + } + + + v1beta3_user_subject_local_var = v1beta3_user_subject_create ( + strdup(name->valuestring) + ); + + return v1beta3_user_subject_local_var; +end: + return NULL; + +} diff --git a/kubernetes/model/v1beta3_user_subject.h b/kubernetes/model/v1beta3_user_subject.h new file mode 100644 index 0000000..5150900 --- /dev/null +++ b/kubernetes/model/v1beta3_user_subject.h @@ -0,0 +1,37 @@ +/* + * v1beta3_user_subject.h + * + * UserSubject holds detailed information for user-kind subject. + */ + +#ifndef _v1beta3_user_subject_H_ +#define _v1beta3_user_subject_H_ + +#include +#include "../external/cJSON.h" +#include "../include/list.h" +#include "../include/keyValuePair.h" +#include "../include/binary.h" + +typedef struct v1beta3_user_subject_t v1beta3_user_subject_t; + + + + +typedef struct v1beta3_user_subject_t { + char *name; // string + +} v1beta3_user_subject_t; + +v1beta3_user_subject_t *v1beta3_user_subject_create( + char *name +); + +void v1beta3_user_subject_free(v1beta3_user_subject_t *v1beta3_user_subject); + +v1beta3_user_subject_t *v1beta3_user_subject_parseFromJSON(cJSON *v1beta3_user_subjectJSON); + +cJSON *v1beta3_user_subject_convertToJSON(v1beta3_user_subject_t *v1beta3_user_subject); + +#endif /* _v1beta3_user_subject_H_ */ + diff --git a/kubernetes/model/v2beta2_container_resource_metric_source.c b/kubernetes/model/v2beta2_container_resource_metric_source.c deleted file mode 100644 index bd60529..0000000 --- a/kubernetes/model/v2beta2_container_resource_metric_source.c +++ /dev/null @@ -1,142 +0,0 @@ -#include -#include -#include -#include "v2beta2_container_resource_metric_source.h" - - - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_create( - char *container, - char *name, - v2beta2_metric_target_t *target - ) { - v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_local_var = malloc(sizeof(v2beta2_container_resource_metric_source_t)); - if (!v2beta2_container_resource_metric_source_local_var) { - return NULL; - } - v2beta2_container_resource_metric_source_local_var->container = container; - v2beta2_container_resource_metric_source_local_var->name = name; - v2beta2_container_resource_metric_source_local_var->target = target; - - return v2beta2_container_resource_metric_source_local_var; -} - - -void v2beta2_container_resource_metric_source_free(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source) { - if(NULL == v2beta2_container_resource_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_container_resource_metric_source->container) { - free(v2beta2_container_resource_metric_source->container); - v2beta2_container_resource_metric_source->container = NULL; - } - if (v2beta2_container_resource_metric_source->name) { - free(v2beta2_container_resource_metric_source->name); - v2beta2_container_resource_metric_source->name = NULL; - } - if (v2beta2_container_resource_metric_source->target) { - v2beta2_metric_target_free(v2beta2_container_resource_metric_source->target); - v2beta2_container_resource_metric_source->target = NULL; - } - free(v2beta2_container_resource_metric_source); -} - -cJSON *v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_container_resource_metric_source->container - if (!v2beta2_container_resource_metric_source->container) { - goto fail; - } - if(cJSON_AddStringToObject(item, "container", v2beta2_container_resource_metric_source->container) == NULL) { - goto fail; //String - } - - - // v2beta2_container_resource_metric_source->name - if (!v2beta2_container_resource_metric_source->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_container_resource_metric_source->name) == NULL) { - goto fail; //String - } - - - // v2beta2_container_resource_metric_source->target - if (!v2beta2_container_resource_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_container_resource_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_parseFromJSON(cJSON *v2beta2_container_resource_metric_sourceJSON){ - - v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_local_var = NULL; - - // define the local variable for v2beta2_container_resource_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_container_resource_metric_source->container - cJSON *container = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_sourceJSON, "container"); - if (!container) { - goto end; - } - - - if(!cJSON_IsString(container)) - { - goto end; //String - } - - // v2beta2_container_resource_metric_source->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_sourceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta2_container_resource_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_container_resource_metric_source_local_var = v2beta2_container_resource_metric_source_create ( - strdup(container->valuestring), - strdup(name->valuestring), - target_local_nonprim - ); - - return v2beta2_container_resource_metric_source_local_var; -end: - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_container_resource_metric_source.h b/kubernetes/model/v2beta2_container_resource_metric_source.h deleted file mode 100644 index 98736a9..0000000 --- a/kubernetes/model/v2beta2_container_resource_metric_source.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta2_container_resource_metric_source.h - * - * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. - */ - -#ifndef _v2beta2_container_resource_metric_source_H_ -#define _v2beta2_container_resource_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_container_resource_metric_source_t v2beta2_container_resource_metric_source_t; - -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_container_resource_metric_source_t { - char *container; // string - char *name; // string - struct v2beta2_metric_target_t *target; //model - -} v2beta2_container_resource_metric_source_t; - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_create( - char *container, - char *name, - v2beta2_metric_target_t *target -); - -void v2beta2_container_resource_metric_source_free(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source); - -v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source_parseFromJSON(cJSON *v2beta2_container_resource_metric_sourceJSON); - -cJSON *v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_t *v2beta2_container_resource_metric_source); - -#endif /* _v2beta2_container_resource_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_container_resource_metric_status.c b/kubernetes/model/v2beta2_container_resource_metric_status.c deleted file mode 100644 index 912e3df..0000000 --- a/kubernetes/model/v2beta2_container_resource_metric_status.c +++ /dev/null @@ -1,142 +0,0 @@ -#include -#include -#include -#include "v2beta2_container_resource_metric_status.h" - - - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_create( - char *container, - v2beta2_metric_value_status_t *current, - char *name - ) { - v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_local_var = malloc(sizeof(v2beta2_container_resource_metric_status_t)); - if (!v2beta2_container_resource_metric_status_local_var) { - return NULL; - } - v2beta2_container_resource_metric_status_local_var->container = container; - v2beta2_container_resource_metric_status_local_var->current = current; - v2beta2_container_resource_metric_status_local_var->name = name; - - return v2beta2_container_resource_metric_status_local_var; -} - - -void v2beta2_container_resource_metric_status_free(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status) { - if(NULL == v2beta2_container_resource_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_container_resource_metric_status->container) { - free(v2beta2_container_resource_metric_status->container); - v2beta2_container_resource_metric_status->container = NULL; - } - if (v2beta2_container_resource_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_container_resource_metric_status->current); - v2beta2_container_resource_metric_status->current = NULL; - } - if (v2beta2_container_resource_metric_status->name) { - free(v2beta2_container_resource_metric_status->name); - v2beta2_container_resource_metric_status->name = NULL; - } - free(v2beta2_container_resource_metric_status); -} - -cJSON *v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_container_resource_metric_status->container - if (!v2beta2_container_resource_metric_status->container) { - goto fail; - } - if(cJSON_AddStringToObject(item, "container", v2beta2_container_resource_metric_status->container) == NULL) { - goto fail; //String - } - - - // v2beta2_container_resource_metric_status->current - if (!v2beta2_container_resource_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_container_resource_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_container_resource_metric_status->name - if (!v2beta2_container_resource_metric_status->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_container_resource_metric_status->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_parseFromJSON(cJSON *v2beta2_container_resource_metric_statusJSON){ - - v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_local_var = NULL; - - // define the local variable for v2beta2_container_resource_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // v2beta2_container_resource_metric_status->container - cJSON *container = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_statusJSON, "container"); - if (!container) { - goto end; - } - - - if(!cJSON_IsString(container)) - { - goto end; //String - } - - // v2beta2_container_resource_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_container_resource_metric_status->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_container_resource_metric_statusJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta2_container_resource_metric_status_local_var = v2beta2_container_resource_metric_status_create ( - strdup(container->valuestring), - current_local_nonprim, - strdup(name->valuestring) - ); - - return v2beta2_container_resource_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_container_resource_metric_status.h b/kubernetes/model/v2beta2_container_resource_metric_status.h deleted file mode 100644 index b94f7c5..0000000 --- a/kubernetes/model/v2beta2_container_resource_metric_status.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta2_container_resource_metric_status.h - * - * ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ - -#ifndef _v2beta2_container_resource_metric_status_H_ -#define _v2beta2_container_resource_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_container_resource_metric_status_t v2beta2_container_resource_metric_status_t; - -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_container_resource_metric_status_t { - char *container; // string - struct v2beta2_metric_value_status_t *current; //model - char *name; // string - -} v2beta2_container_resource_metric_status_t; - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_create( - char *container, - v2beta2_metric_value_status_t *current, - char *name -); - -void v2beta2_container_resource_metric_status_free(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status); - -v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status_parseFromJSON(cJSON *v2beta2_container_resource_metric_statusJSON); - -cJSON *v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_t *v2beta2_container_resource_metric_status); - -#endif /* _v2beta2_container_resource_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_cross_version_object_reference.c b/kubernetes/model/v2beta2_cross_version_object_reference.c deleted file mode 100644 index eb71e28..0000000 --- a/kubernetes/model/v2beta2_cross_version_object_reference.c +++ /dev/null @@ -1,129 +0,0 @@ -#include -#include -#include -#include "v2beta2_cross_version_object_reference.h" - - - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_create( - char *api_version, - char *kind, - char *name - ) { - v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_local_var = malloc(sizeof(v2beta2_cross_version_object_reference_t)); - if (!v2beta2_cross_version_object_reference_local_var) { - return NULL; - } - v2beta2_cross_version_object_reference_local_var->api_version = api_version; - v2beta2_cross_version_object_reference_local_var->kind = kind; - v2beta2_cross_version_object_reference_local_var->name = name; - - return v2beta2_cross_version_object_reference_local_var; -} - - -void v2beta2_cross_version_object_reference_free(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference) { - if(NULL == v2beta2_cross_version_object_reference){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_cross_version_object_reference->api_version) { - free(v2beta2_cross_version_object_reference->api_version); - v2beta2_cross_version_object_reference->api_version = NULL; - } - if (v2beta2_cross_version_object_reference->kind) { - free(v2beta2_cross_version_object_reference->kind); - v2beta2_cross_version_object_reference->kind = NULL; - } - if (v2beta2_cross_version_object_reference->name) { - free(v2beta2_cross_version_object_reference->name); - v2beta2_cross_version_object_reference->name = NULL; - } - free(v2beta2_cross_version_object_reference); -} - -cJSON *v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_cross_version_object_reference->api_version - if(v2beta2_cross_version_object_reference->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta2_cross_version_object_reference->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta2_cross_version_object_reference->kind - if (!v2beta2_cross_version_object_reference->kind) { - goto fail; - } - if(cJSON_AddStringToObject(item, "kind", v2beta2_cross_version_object_reference->kind) == NULL) { - goto fail; //String - } - - - // v2beta2_cross_version_object_reference->name - if (!v2beta2_cross_version_object_reference->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_cross_version_object_reference->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_parseFromJSON(cJSON *v2beta2_cross_version_object_referenceJSON){ - - v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_local_var = NULL; - - // v2beta2_cross_version_object_reference->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_cross_version_object_referenceJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v2beta2_cross_version_object_reference->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_cross_version_object_referenceJSON, "kind"); - if (!kind) { - goto end; - } - - - if(!cJSON_IsString(kind)) - { - goto end; //String - } - - // v2beta2_cross_version_object_reference->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_cross_version_object_referenceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta2_cross_version_object_reference_local_var = v2beta2_cross_version_object_reference_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - strdup(kind->valuestring), - strdup(name->valuestring) - ); - - return v2beta2_cross_version_object_reference_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_cross_version_object_reference.h b/kubernetes/model/v2beta2_cross_version_object_reference.h deleted file mode 100644 index 3b02d61..0000000 --- a/kubernetes/model/v2beta2_cross_version_object_reference.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_cross_version_object_reference.h - * - * CrossVersionObjectReference contains enough information to let you identify the referred resource. - */ - -#ifndef _v2beta2_cross_version_object_reference_H_ -#define _v2beta2_cross_version_object_reference_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_cross_version_object_reference_t v2beta2_cross_version_object_reference_t; - - - - -typedef struct v2beta2_cross_version_object_reference_t { - char *api_version; // string - char *kind; // string - char *name; // string - -} v2beta2_cross_version_object_reference_t; - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_create( - char *api_version, - char *kind, - char *name -); - -void v2beta2_cross_version_object_reference_free(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference); - -v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference_parseFromJSON(cJSON *v2beta2_cross_version_object_referenceJSON); - -cJSON *v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_t *v2beta2_cross_version_object_reference); - -#endif /* _v2beta2_cross_version_object_reference_H_ */ - diff --git a/kubernetes/model/v2beta2_external_metric_source.c b/kubernetes/model/v2beta2_external_metric_source.c deleted file mode 100644 index ead37f6..0000000 --- a/kubernetes/model/v2beta2_external_metric_source.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_external_metric_source.h" - - - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target - ) { - v2beta2_external_metric_source_t *v2beta2_external_metric_source_local_var = malloc(sizeof(v2beta2_external_metric_source_t)); - if (!v2beta2_external_metric_source_local_var) { - return NULL; - } - v2beta2_external_metric_source_local_var->metric = metric; - v2beta2_external_metric_source_local_var->target = target; - - return v2beta2_external_metric_source_local_var; -} - - -void v2beta2_external_metric_source_free(v2beta2_external_metric_source_t *v2beta2_external_metric_source) { - if(NULL == v2beta2_external_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_external_metric_source->metric) { - v2beta2_metric_identifier_free(v2beta2_external_metric_source->metric); - v2beta2_external_metric_source->metric = NULL; - } - if (v2beta2_external_metric_source->target) { - v2beta2_metric_target_free(v2beta2_external_metric_source->target); - v2beta2_external_metric_source->target = NULL; - } - free(v2beta2_external_metric_source); -} - -cJSON *v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_t *v2beta2_external_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_external_metric_source->metric - if (!v2beta2_external_metric_source->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_external_metric_source->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_external_metric_source->target - if (!v2beta2_external_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_external_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_parseFromJSON(cJSON *v2beta2_external_metric_sourceJSON){ - - v2beta2_external_metric_source_t *v2beta2_external_metric_source_local_var = NULL; - - // define the local variable for v2beta2_external_metric_source->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // define the local variable for v2beta2_external_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_external_metric_source->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_sourceJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - // v2beta2_external_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_external_metric_source_local_var = v2beta2_external_metric_source_create ( - metric_local_nonprim, - target_local_nonprim - ); - - return v2beta2_external_metric_source_local_var; -end: - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_external_metric_source.h b/kubernetes/model/v2beta2_external_metric_source.h deleted file mode 100644 index 3162cfb..0000000 --- a/kubernetes/model/v2beta2_external_metric_source.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_external_metric_source.h - * - * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - */ - -#ifndef _v2beta2_external_metric_source_H_ -#define _v2beta2_external_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_external_metric_source_t v2beta2_external_metric_source_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_external_metric_source_t { - struct v2beta2_metric_identifier_t *metric; //model - struct v2beta2_metric_target_t *target; //model - -} v2beta2_external_metric_source_t; - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target -); - -void v2beta2_external_metric_source_free(v2beta2_external_metric_source_t *v2beta2_external_metric_source); - -v2beta2_external_metric_source_t *v2beta2_external_metric_source_parseFromJSON(cJSON *v2beta2_external_metric_sourceJSON); - -cJSON *v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_t *v2beta2_external_metric_source); - -#endif /* _v2beta2_external_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_external_metric_status.c b/kubernetes/model/v2beta2_external_metric_status.c deleted file mode 100644 index 6bc1687..0000000 --- a/kubernetes/model/v2beta2_external_metric_status.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_external_metric_status.h" - - - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric - ) { - v2beta2_external_metric_status_t *v2beta2_external_metric_status_local_var = malloc(sizeof(v2beta2_external_metric_status_t)); - if (!v2beta2_external_metric_status_local_var) { - return NULL; - } - v2beta2_external_metric_status_local_var->current = current; - v2beta2_external_metric_status_local_var->metric = metric; - - return v2beta2_external_metric_status_local_var; -} - - -void v2beta2_external_metric_status_free(v2beta2_external_metric_status_t *v2beta2_external_metric_status) { - if(NULL == v2beta2_external_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_external_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_external_metric_status->current); - v2beta2_external_metric_status->current = NULL; - } - if (v2beta2_external_metric_status->metric) { - v2beta2_metric_identifier_free(v2beta2_external_metric_status->metric); - v2beta2_external_metric_status->metric = NULL; - } - free(v2beta2_external_metric_status); -} - -cJSON *v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_t *v2beta2_external_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_external_metric_status->current - if (!v2beta2_external_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_external_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_external_metric_status->metric - if (!v2beta2_external_metric_status->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_external_metric_status->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_parseFromJSON(cJSON *v2beta2_external_metric_statusJSON){ - - v2beta2_external_metric_status_t *v2beta2_external_metric_status_local_var = NULL; - - // define the local variable for v2beta2_external_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // define the local variable for v2beta2_external_metric_status->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // v2beta2_external_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_external_metric_status->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_external_metric_statusJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - - v2beta2_external_metric_status_local_var = v2beta2_external_metric_status_create ( - current_local_nonprim, - metric_local_nonprim - ); - - return v2beta2_external_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_external_metric_status.h b/kubernetes/model/v2beta2_external_metric_status.h deleted file mode 100644 index 7964f2d..0000000 --- a/kubernetes/model/v2beta2_external_metric_status.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_external_metric_status.h - * - * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. - */ - -#ifndef _v2beta2_external_metric_status_H_ -#define _v2beta2_external_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_external_metric_status_t v2beta2_external_metric_status_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_external_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - struct v2beta2_metric_identifier_t *metric; //model - -} v2beta2_external_metric_status_t; - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric -); - -void v2beta2_external_metric_status_free(v2beta2_external_metric_status_t *v2beta2_external_metric_status); - -v2beta2_external_metric_status_t *v2beta2_external_metric_status_parseFromJSON(cJSON *v2beta2_external_metric_statusJSON); - -cJSON *v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_t *v2beta2_external_metric_status); - -#endif /* _v2beta2_external_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c deleted file mode 100644 index 56157de..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.c +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler.h" - - - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v2beta2_horizontal_pod_autoscaler_spec_t *spec, - v2beta2_horizontal_pod_autoscaler_status_t *status - ) { - v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_t)); - if (!v2beta2_horizontal_pod_autoscaler_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_local_var->api_version = api_version; - v2beta2_horizontal_pod_autoscaler_local_var->kind = kind; - v2beta2_horizontal_pod_autoscaler_local_var->metadata = metadata; - v2beta2_horizontal_pod_autoscaler_local_var->spec = spec; - v2beta2_horizontal_pod_autoscaler_local_var->status = status; - - return v2beta2_horizontal_pod_autoscaler_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_free(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler) { - if(NULL == v2beta2_horizontal_pod_autoscaler){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler->api_version) { - free(v2beta2_horizontal_pod_autoscaler->api_version); - v2beta2_horizontal_pod_autoscaler->api_version = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->kind) { - free(v2beta2_horizontal_pod_autoscaler->kind); - v2beta2_horizontal_pod_autoscaler->kind = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->metadata) { - v1_object_meta_free(v2beta2_horizontal_pod_autoscaler->metadata); - v2beta2_horizontal_pod_autoscaler->metadata = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->spec) { - v2beta2_horizontal_pod_autoscaler_spec_free(v2beta2_horizontal_pod_autoscaler->spec); - v2beta2_horizontal_pod_autoscaler->spec = NULL; - } - if (v2beta2_horizontal_pod_autoscaler->status) { - v2beta2_horizontal_pod_autoscaler_status_free(v2beta2_horizontal_pod_autoscaler->status); - v2beta2_horizontal_pod_autoscaler->status = NULL; - } - free(v2beta2_horizontal_pod_autoscaler); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler->api_version - if(v2beta2_horizontal_pod_autoscaler->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta2_horizontal_pod_autoscaler->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler->kind - if(v2beta2_horizontal_pod_autoscaler->kind) { - if(cJSON_AddStringToObject(item, "kind", v2beta2_horizontal_pod_autoscaler->kind) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler->metadata - if(v2beta2_horizontal_pod_autoscaler->metadata) { - cJSON *metadata_local_JSON = v1_object_meta_convertToJSON(v2beta2_horizontal_pod_autoscaler->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler->spec - if(v2beta2_horizontal_pod_autoscaler->spec) { - cJSON *spec_local_JSON = v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler->spec); - if(spec_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "spec", spec_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler->status - if(v2beta2_horizontal_pod_autoscaler->status) { - cJSON *status_local_JSON = v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler->status); - if(status_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "status", status_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscalerJSON){ - - v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_local_var = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler->metadata - v1_object_meta_t *metadata_local_nonprim = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler->spec - v2beta2_horizontal_pod_autoscaler_spec_t *spec_local_nonprim = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler->status - v2beta2_horizontal_pod_autoscaler_status_t *status_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_object_meta_parseFromJSON(metadata); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler->spec - cJSON *spec = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "spec"); - if (spec) { - spec_local_nonprim = v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(spec); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscalerJSON, "status"); - if (status) { - status_local_nonprim = v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(status); //nonprimitive - } - - - v2beta2_horizontal_pod_autoscaler_local_var = v2beta2_horizontal_pod_autoscaler_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL, - spec ? spec_local_nonprim : NULL, - status ? status_local_nonprim : NULL - ); - - return v2beta2_horizontal_pod_autoscaler_local_var; -end: - if (metadata_local_nonprim) { - v1_object_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - if (spec_local_nonprim) { - v2beta2_horizontal_pod_autoscaler_spec_free(spec_local_nonprim); - spec_local_nonprim = NULL; - } - if (status_local_nonprim) { - v2beta2_horizontal_pod_autoscaler_status_free(status_local_nonprim); - status_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler.h deleted file mode 100644 index 7dec9a7..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler.h - * - * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_H_ -#define _v2beta2_horizontal_pod_autoscaler_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_t v2beta2_horizontal_pod_autoscaler_t; - -#include "v1_object_meta.h" -#include "v2beta2_horizontal_pod_autoscaler_spec.h" -#include "v2beta2_horizontal_pod_autoscaler_status.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_t { - char *api_version; // string - char *kind; // string - struct v1_object_meta_t *metadata; //model - struct v2beta2_horizontal_pod_autoscaler_spec_t *spec; //model - struct v2beta2_horizontal_pod_autoscaler_status_t *status; //model - -} v2beta2_horizontal_pod_autoscaler_t; - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_create( - char *api_version, - char *kind, - v1_object_meta_t *metadata, - v2beta2_horizontal_pod_autoscaler_spec_t *spec, - v2beta2_horizontal_pod_autoscaler_status_t *status -); - -void v2beta2_horizontal_pod_autoscaler_free(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler); - -v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscalerJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_t *v2beta2_horizontal_pod_autoscaler); - -#endif /* _v2beta2_horizontal_pod_autoscaler_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.c deleted file mode 100644 index 1fd60fd..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.c +++ /dev/null @@ -1,115 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_behavior.h" - - - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_create( - v2beta2_hpa_scaling_rules_t *scale_down, - v2beta2_hpa_scaling_rules_t *scale_up - ) { - v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_behavior_t)); - if (!v2beta2_horizontal_pod_autoscaler_behavior_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_behavior_local_var->scale_down = scale_down; - v2beta2_horizontal_pod_autoscaler_behavior_local_var->scale_up = scale_up; - - return v2beta2_horizontal_pod_autoscaler_behavior_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_behavior_free(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior) { - if(NULL == v2beta2_horizontal_pod_autoscaler_behavior){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_behavior->scale_down) { - v2beta2_hpa_scaling_rules_free(v2beta2_horizontal_pod_autoscaler_behavior->scale_down); - v2beta2_horizontal_pod_autoscaler_behavior->scale_down = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_behavior->scale_up) { - v2beta2_hpa_scaling_rules_free(v2beta2_horizontal_pod_autoscaler_behavior->scale_up); - v2beta2_horizontal_pod_autoscaler_behavior->scale_up = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_behavior); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_down - if(v2beta2_horizontal_pod_autoscaler_behavior->scale_down) { - cJSON *scale_down_local_JSON = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior->scale_down); - if(scale_down_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "scaleDown", scale_down_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_up - if(v2beta2_horizontal_pod_autoscaler_behavior->scale_up) { - cJSON *scale_up_local_JSON = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior->scale_up); - if(scale_up_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "scaleUp", scale_up_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_behaviorJSON){ - - v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_local_var = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_behavior->scale_down - v2beta2_hpa_scaling_rules_t *scale_down_local_nonprim = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_behavior->scale_up - v2beta2_hpa_scaling_rules_t *scale_up_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_down - cJSON *scale_down = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_behaviorJSON, "scaleDown"); - if (scale_down) { - scale_down_local_nonprim = v2beta2_hpa_scaling_rules_parseFromJSON(scale_down); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler_behavior->scale_up - cJSON *scale_up = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_behaviorJSON, "scaleUp"); - if (scale_up) { - scale_up_local_nonprim = v2beta2_hpa_scaling_rules_parseFromJSON(scale_up); //nonprimitive - } - - - v2beta2_horizontal_pod_autoscaler_behavior_local_var = v2beta2_horizontal_pod_autoscaler_behavior_create ( - scale_down ? scale_down_local_nonprim : NULL, - scale_up ? scale_up_local_nonprim : NULL - ); - - return v2beta2_horizontal_pod_autoscaler_behavior_local_var; -end: - if (scale_down_local_nonprim) { - v2beta2_hpa_scaling_rules_free(scale_down_local_nonprim); - scale_down_local_nonprim = NULL; - } - if (scale_up_local_nonprim) { - v2beta2_hpa_scaling_rules_free(scale_up_local_nonprim); - scale_up_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.h deleted file mode 100644 index d2939cd..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_behavior.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_behavior.h - * - * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_behavior_H_ -#define _v2beta2_horizontal_pod_autoscaler_behavior_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_behavior_t v2beta2_horizontal_pod_autoscaler_behavior_t; - -#include "v2beta2_hpa_scaling_rules.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_behavior_t { - struct v2beta2_hpa_scaling_rules_t *scale_down; //model - struct v2beta2_hpa_scaling_rules_t *scale_up; //model - -} v2beta2_horizontal_pod_autoscaler_behavior_t; - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_create( - v2beta2_hpa_scaling_rules_t *scale_down, - v2beta2_hpa_scaling_rules_t *scale_up -); - -void v2beta2_horizontal_pod_autoscaler_behavior_free(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior); - -v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_behaviorJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_t *v2beta2_horizontal_pod_autoscaler_behavior); - -#endif /* _v2beta2_horizontal_pod_autoscaler_behavior_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c deleted file mode 100644 index 54d8e54..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.c +++ /dev/null @@ -1,177 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_condition.h" - - - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type - ) { - v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_condition_t)); - if (!v2beta2_horizontal_pod_autoscaler_condition_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_condition_local_var->last_transition_time = last_transition_time; - v2beta2_horizontal_pod_autoscaler_condition_local_var->message = message; - v2beta2_horizontal_pod_autoscaler_condition_local_var->reason = reason; - v2beta2_horizontal_pod_autoscaler_condition_local_var->status = status; - v2beta2_horizontal_pod_autoscaler_condition_local_var->type = type; - - return v2beta2_horizontal_pod_autoscaler_condition_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_condition_free(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition) { - if(NULL == v2beta2_horizontal_pod_autoscaler_condition){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_condition->last_transition_time) { - free(v2beta2_horizontal_pod_autoscaler_condition->last_transition_time); - v2beta2_horizontal_pod_autoscaler_condition->last_transition_time = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->message) { - free(v2beta2_horizontal_pod_autoscaler_condition->message); - v2beta2_horizontal_pod_autoscaler_condition->message = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->reason) { - free(v2beta2_horizontal_pod_autoscaler_condition->reason); - v2beta2_horizontal_pod_autoscaler_condition->reason = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->status) { - free(v2beta2_horizontal_pod_autoscaler_condition->status); - v2beta2_horizontal_pod_autoscaler_condition->status = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_condition->type) { - free(v2beta2_horizontal_pod_autoscaler_condition->type); - v2beta2_horizontal_pod_autoscaler_condition->type = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_condition); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_condition->last_transition_time - if(v2beta2_horizontal_pod_autoscaler_condition->last_transition_time) { - if(cJSON_AddStringToObject(item, "lastTransitionTime", v2beta2_horizontal_pod_autoscaler_condition->last_transition_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v2beta2_horizontal_pod_autoscaler_condition->message - if(v2beta2_horizontal_pod_autoscaler_condition->message) { - if(cJSON_AddStringToObject(item, "message", v2beta2_horizontal_pod_autoscaler_condition->message) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_condition->reason - if(v2beta2_horizontal_pod_autoscaler_condition->reason) { - if(cJSON_AddStringToObject(item, "reason", v2beta2_horizontal_pod_autoscaler_condition->reason) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_condition->status - if (!v2beta2_horizontal_pod_autoscaler_condition->status) { - goto fail; - } - if(cJSON_AddStringToObject(item, "status", v2beta2_horizontal_pod_autoscaler_condition->status) == NULL) { - goto fail; //String - } - - - // v2beta2_horizontal_pod_autoscaler_condition->type - if (!v2beta2_horizontal_pod_autoscaler_condition->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_horizontal_pod_autoscaler_condition->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_conditionJSON){ - - v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_local_var = NULL; - - // v2beta2_horizontal_pod_autoscaler_condition->last_transition_time - cJSON *last_transition_time = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "lastTransitionTime"); - if (last_transition_time) { - if(!cJSON_IsString(last_transition_time) && !cJSON_IsNull(last_transition_time)) - { - goto end; //DateTime - } - } - - // v2beta2_horizontal_pod_autoscaler_condition->message - cJSON *message = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "message"); - if (message) { - if(!cJSON_IsString(message) && !cJSON_IsNull(message)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_condition->reason - cJSON *reason = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "reason"); - if (reason) { - if(!cJSON_IsString(reason) && !cJSON_IsNull(reason)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_condition->status - cJSON *status = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "status"); - if (!status) { - goto end; - } - - - if(!cJSON_IsString(status)) - { - goto end; //String - } - - // v2beta2_horizontal_pod_autoscaler_condition->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_conditionJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta2_horizontal_pod_autoscaler_condition_local_var = v2beta2_horizontal_pod_autoscaler_condition_create ( - last_transition_time && !cJSON_IsNull(last_transition_time) ? strdup(last_transition_time->valuestring) : NULL, - message && !cJSON_IsNull(message) ? strdup(message->valuestring) : NULL, - reason && !cJSON_IsNull(reason) ? strdup(reason->valuestring) : NULL, - strdup(status->valuestring), - strdup(type->valuestring) - ); - - return v2beta2_horizontal_pod_autoscaler_condition_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.h deleted file mode 100644 index 3387617..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_condition.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_condition.h - * - * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_condition_H_ -#define _v2beta2_horizontal_pod_autoscaler_condition_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_condition_t v2beta2_horizontal_pod_autoscaler_condition_t; - - - - -typedef struct v2beta2_horizontal_pod_autoscaler_condition_t { - char *last_transition_time; //date time - char *message; // string - char *reason; // string - char *status; // string - char *type; // string - -} v2beta2_horizontal_pod_autoscaler_condition_t; - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_create( - char *last_transition_time, - char *message, - char *reason, - char *status, - char *type -); - -void v2beta2_horizontal_pod_autoscaler_condition_free(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition); - -v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_conditionJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_t *v2beta2_horizontal_pod_autoscaler_condition); - -#endif /* _v2beta2_horizontal_pod_autoscaler_condition_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c deleted file mode 100644 index a8467fb..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.c +++ /dev/null @@ -1,197 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_list.h" - - - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata - ) { - v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_list_t)); - if (!v2beta2_horizontal_pod_autoscaler_list_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_list_local_var->api_version = api_version; - v2beta2_horizontal_pod_autoscaler_list_local_var->items = items; - v2beta2_horizontal_pod_autoscaler_list_local_var->kind = kind; - v2beta2_horizontal_pod_autoscaler_list_local_var->metadata = metadata; - - return v2beta2_horizontal_pod_autoscaler_list_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_list_free(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list) { - if(NULL == v2beta2_horizontal_pod_autoscaler_list){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_list->api_version) { - free(v2beta2_horizontal_pod_autoscaler_list->api_version); - v2beta2_horizontal_pod_autoscaler_list->api_version = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_list->items) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_list->items) { - v2beta2_horizontal_pod_autoscaler_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_list->items); - v2beta2_horizontal_pod_autoscaler_list->items = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_list->kind) { - free(v2beta2_horizontal_pod_autoscaler_list->kind); - v2beta2_horizontal_pod_autoscaler_list->kind = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_list->metadata) { - v1_list_meta_free(v2beta2_horizontal_pod_autoscaler_list->metadata); - v2beta2_horizontal_pod_autoscaler_list->metadata = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_list); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_list->api_version - if(v2beta2_horizontal_pod_autoscaler_list->api_version) { - if(cJSON_AddStringToObject(item, "apiVersion", v2beta2_horizontal_pod_autoscaler_list->api_version) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_list->items - if (!v2beta2_horizontal_pod_autoscaler_list->items) { - goto fail; - } - cJSON *items = cJSON_AddArrayToObject(item, "items"); - if(items == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *itemsListEntry; - if (v2beta2_horizontal_pod_autoscaler_list->items) { - list_ForEach(itemsListEntry, v2beta2_horizontal_pod_autoscaler_list->items) { - cJSON *itemLocal = v2beta2_horizontal_pod_autoscaler_convertToJSON(itemsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(items, itemLocal); - } - } - - - // v2beta2_horizontal_pod_autoscaler_list->kind - if(v2beta2_horizontal_pod_autoscaler_list->kind) { - if(cJSON_AddStringToObject(item, "kind", v2beta2_horizontal_pod_autoscaler_list->kind) == NULL) { - goto fail; //String - } - } - - - // v2beta2_horizontal_pod_autoscaler_list->metadata - if(v2beta2_horizontal_pod_autoscaler_list->metadata) { - cJSON *metadata_local_JSON = v1_list_meta_convertToJSON(v2beta2_horizontal_pod_autoscaler_list->metadata); - if(metadata_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metadata", metadata_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_listJSON){ - - v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_local_var = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_list->items - list_t *itemsList = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_list->metadata - v1_list_meta_t *metadata_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler_list->api_version - cJSON *api_version = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "apiVersion"); - if (api_version) { - if(!cJSON_IsString(api_version) && !cJSON_IsNull(api_version)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_list->items - cJSON *items = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "items"); - if (!items) { - goto end; - } - - - cJSON *items_local_nonprimitive = NULL; - if(!cJSON_IsArray(items)){ - goto end; //nonprimitive container - } - - itemsList = list_createList(); - - cJSON_ArrayForEach(items_local_nonprimitive,items ) - { - if(!cJSON_IsObject(items_local_nonprimitive)){ - goto end; - } - v2beta2_horizontal_pod_autoscaler_t *itemsItem = v2beta2_horizontal_pod_autoscaler_parseFromJSON(items_local_nonprimitive); - - list_addElement(itemsList, itemsItem); - } - - // v2beta2_horizontal_pod_autoscaler_list->kind - cJSON *kind = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "kind"); - if (kind) { - if(!cJSON_IsString(kind) && !cJSON_IsNull(kind)) - { - goto end; //String - } - } - - // v2beta2_horizontal_pod_autoscaler_list->metadata - cJSON *metadata = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_listJSON, "metadata"); - if (metadata) { - metadata_local_nonprim = v1_list_meta_parseFromJSON(metadata); //nonprimitive - } - - - v2beta2_horizontal_pod_autoscaler_list_local_var = v2beta2_horizontal_pod_autoscaler_list_create ( - api_version && !cJSON_IsNull(api_version) ? strdup(api_version->valuestring) : NULL, - itemsList, - kind && !cJSON_IsNull(kind) ? strdup(kind->valuestring) : NULL, - metadata ? metadata_local_nonprim : NULL - ); - - return v2beta2_horizontal_pod_autoscaler_list_local_var; -end: - if (itemsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, itemsList) { - v2beta2_horizontal_pod_autoscaler_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(itemsList); - itemsList = NULL; - } - if (metadata_local_nonprim) { - v1_list_meta_free(metadata_local_nonprim); - metadata_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.h deleted file mode 100644 index 004594e..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_list.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_list.h - * - * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_list_H_ -#define _v2beta2_horizontal_pod_autoscaler_list_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_list_t v2beta2_horizontal_pod_autoscaler_list_t; - -#include "v1_list_meta.h" -#include "v2beta2_horizontal_pod_autoscaler.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_list_t { - char *api_version; // string - list_t *items; //nonprimitive container - char *kind; // string - struct v1_list_meta_t *metadata; //model - -} v2beta2_horizontal_pod_autoscaler_list_t; - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_create( - char *api_version, - list_t *items, - char *kind, - v1_list_meta_t *metadata -); - -void v2beta2_horizontal_pod_autoscaler_list_free(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list); - -v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_listJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_t *v2beta2_horizontal_pod_autoscaler_list); - -#endif /* _v2beta2_horizontal_pod_autoscaler_list_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.c deleted file mode 100644 index 7f4264c..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.c +++ /dev/null @@ -1,226 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_spec.h" - - - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_create( - v2beta2_horizontal_pod_autoscaler_behavior_t *behavior, - int max_replicas, - list_t *metrics, - int min_replicas, - v2beta2_cross_version_object_reference_t *scale_target_ref - ) { - v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_spec_t)); - if (!v2beta2_horizontal_pod_autoscaler_spec_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_spec_local_var->behavior = behavior; - v2beta2_horizontal_pod_autoscaler_spec_local_var->max_replicas = max_replicas; - v2beta2_horizontal_pod_autoscaler_spec_local_var->metrics = metrics; - v2beta2_horizontal_pod_autoscaler_spec_local_var->min_replicas = min_replicas; - v2beta2_horizontal_pod_autoscaler_spec_local_var->scale_target_ref = scale_target_ref; - - return v2beta2_horizontal_pod_autoscaler_spec_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_spec_free(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec) { - if(NULL == v2beta2_horizontal_pod_autoscaler_spec){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_spec->behavior) { - v2beta2_horizontal_pod_autoscaler_behavior_free(v2beta2_horizontal_pod_autoscaler_spec->behavior); - v2beta2_horizontal_pod_autoscaler_spec->behavior = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_spec->metrics) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_spec->metrics) { - v2beta2_metric_spec_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_spec->metrics); - v2beta2_horizontal_pod_autoscaler_spec->metrics = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref) { - v2beta2_cross_version_object_reference_free(v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref); - v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_spec); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_spec->behavior - if(v2beta2_horizontal_pod_autoscaler_spec->behavior) { - cJSON *behavior_local_JSON = v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec->behavior); - if(behavior_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "behavior", behavior_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_horizontal_pod_autoscaler_spec->max_replicas - if (!v2beta2_horizontal_pod_autoscaler_spec->max_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "maxReplicas", v2beta2_horizontal_pod_autoscaler_spec->max_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_horizontal_pod_autoscaler_spec->metrics - if(v2beta2_horizontal_pod_autoscaler_spec->metrics) { - cJSON *metrics = cJSON_AddArrayToObject(item, "metrics"); - if(metrics == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *metricsListEntry; - if (v2beta2_horizontal_pod_autoscaler_spec->metrics) { - list_ForEach(metricsListEntry, v2beta2_horizontal_pod_autoscaler_spec->metrics) { - cJSON *itemLocal = v2beta2_metric_spec_convertToJSON(metricsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(metrics, itemLocal); - } - } - } - - - // v2beta2_horizontal_pod_autoscaler_spec->min_replicas - if(v2beta2_horizontal_pod_autoscaler_spec->min_replicas) { - if(cJSON_AddNumberToObject(item, "minReplicas", v2beta2_horizontal_pod_autoscaler_spec->min_replicas) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref - if (!v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref) { - goto fail; - } - cJSON *scale_target_ref_local_JSON = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref); - if(scale_target_ref_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "scaleTargetRef", scale_target_ref_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_specJSON){ - - v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_local_var = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_spec->behavior - v2beta2_horizontal_pod_autoscaler_behavior_t *behavior_local_nonprim = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_spec->metrics - list_t *metricsList = NULL; - - // define the local variable for v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref - v2beta2_cross_version_object_reference_t *scale_target_ref_local_nonprim = NULL; - - // v2beta2_horizontal_pod_autoscaler_spec->behavior - cJSON *behavior = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "behavior"); - if (behavior) { - behavior_local_nonprim = v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(behavior); //nonprimitive - } - - // v2beta2_horizontal_pod_autoscaler_spec->max_replicas - cJSON *max_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "maxReplicas"); - if (!max_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(max_replicas)) - { - goto end; //Numeric - } - - // v2beta2_horizontal_pod_autoscaler_spec->metrics - cJSON *metrics = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "metrics"); - if (metrics) { - cJSON *metrics_local_nonprimitive = NULL; - if(!cJSON_IsArray(metrics)){ - goto end; //nonprimitive container - } - - metricsList = list_createList(); - - cJSON_ArrayForEach(metrics_local_nonprimitive,metrics ) - { - if(!cJSON_IsObject(metrics_local_nonprimitive)){ - goto end; - } - v2beta2_metric_spec_t *metricsItem = v2beta2_metric_spec_parseFromJSON(metrics_local_nonprimitive); - - list_addElement(metricsList, metricsItem); - } - } - - // v2beta2_horizontal_pod_autoscaler_spec->min_replicas - cJSON *min_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "minReplicas"); - if (min_replicas) { - if(!cJSON_IsNumber(min_replicas)) - { - goto end; //Numeric - } - } - - // v2beta2_horizontal_pod_autoscaler_spec->scale_target_ref - cJSON *scale_target_ref = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_specJSON, "scaleTargetRef"); - if (!scale_target_ref) { - goto end; - } - - - scale_target_ref_local_nonprim = v2beta2_cross_version_object_reference_parseFromJSON(scale_target_ref); //nonprimitive - - - v2beta2_horizontal_pod_autoscaler_spec_local_var = v2beta2_horizontal_pod_autoscaler_spec_create ( - behavior ? behavior_local_nonprim : NULL, - max_replicas->valuedouble, - metrics ? metricsList : NULL, - min_replicas ? min_replicas->valuedouble : 0, - scale_target_ref_local_nonprim - ); - - return v2beta2_horizontal_pod_autoscaler_spec_local_var; -end: - if (behavior_local_nonprim) { - v2beta2_horizontal_pod_autoscaler_behavior_free(behavior_local_nonprim); - behavior_local_nonprim = NULL; - } - if (metricsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, metricsList) { - v2beta2_metric_spec_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(metricsList); - metricsList = NULL; - } - if (scale_target_ref_local_nonprim) { - v2beta2_cross_version_object_reference_free(scale_target_ref_local_nonprim); - scale_target_ref_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.h deleted file mode 100644 index e24652c..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_spec.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_spec.h - * - * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_spec_H_ -#define _v2beta2_horizontal_pod_autoscaler_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_spec_t v2beta2_horizontal_pod_autoscaler_spec_t; - -#include "v2beta2_cross_version_object_reference.h" -#include "v2beta2_horizontal_pod_autoscaler_behavior.h" -#include "v2beta2_metric_spec.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_spec_t { - struct v2beta2_horizontal_pod_autoscaler_behavior_t *behavior; //model - int max_replicas; //numeric - list_t *metrics; //nonprimitive container - int min_replicas; //numeric - struct v2beta2_cross_version_object_reference_t *scale_target_ref; //model - -} v2beta2_horizontal_pod_autoscaler_spec_t; - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_create( - v2beta2_horizontal_pod_autoscaler_behavior_t *behavior, - int max_replicas, - list_t *metrics, - int min_replicas, - v2beta2_cross_version_object_reference_t *scale_target_ref -); - -void v2beta2_horizontal_pod_autoscaler_spec_free(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec); - -v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_specJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_t *v2beta2_horizontal_pod_autoscaler_spec); - -#endif /* _v2beta2_horizontal_pod_autoscaler_spec_H_ */ - diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c deleted file mode 100644 index 590aea9..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.c +++ /dev/null @@ -1,267 +0,0 @@ -#include -#include -#include -#include "v2beta2_horizontal_pod_autoscaler_status.h" - - - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_create( - list_t *conditions, - list_t *current_metrics, - int current_replicas, - int desired_replicas, - char *last_scale_time, - long observed_generation - ) { - v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_local_var = malloc(sizeof(v2beta2_horizontal_pod_autoscaler_status_t)); - if (!v2beta2_horizontal_pod_autoscaler_status_local_var) { - return NULL; - } - v2beta2_horizontal_pod_autoscaler_status_local_var->conditions = conditions; - v2beta2_horizontal_pod_autoscaler_status_local_var->current_metrics = current_metrics; - v2beta2_horizontal_pod_autoscaler_status_local_var->current_replicas = current_replicas; - v2beta2_horizontal_pod_autoscaler_status_local_var->desired_replicas = desired_replicas; - v2beta2_horizontal_pod_autoscaler_status_local_var->last_scale_time = last_scale_time; - v2beta2_horizontal_pod_autoscaler_status_local_var->observed_generation = observed_generation; - - return v2beta2_horizontal_pod_autoscaler_status_local_var; -} - - -void v2beta2_horizontal_pod_autoscaler_status_free(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status) { - if(NULL == v2beta2_horizontal_pod_autoscaler_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_horizontal_pod_autoscaler_status->conditions) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_status->conditions) { - v2beta2_horizontal_pod_autoscaler_condition_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_status->conditions); - v2beta2_horizontal_pod_autoscaler_status->conditions = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - list_ForEach(listEntry, v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - v2beta2_metric_status_free(listEntry->data); - } - list_freeList(v2beta2_horizontal_pod_autoscaler_status->current_metrics); - v2beta2_horizontal_pod_autoscaler_status->current_metrics = NULL; - } - if (v2beta2_horizontal_pod_autoscaler_status->last_scale_time) { - free(v2beta2_horizontal_pod_autoscaler_status->last_scale_time); - v2beta2_horizontal_pod_autoscaler_status->last_scale_time = NULL; - } - free(v2beta2_horizontal_pod_autoscaler_status); -} - -cJSON *v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_horizontal_pod_autoscaler_status->conditions - if(v2beta2_horizontal_pod_autoscaler_status->conditions) { - cJSON *conditions = cJSON_AddArrayToObject(item, "conditions"); - if(conditions == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *conditionsListEntry; - if (v2beta2_horizontal_pod_autoscaler_status->conditions) { - list_ForEach(conditionsListEntry, v2beta2_horizontal_pod_autoscaler_status->conditions) { - cJSON *itemLocal = v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(conditionsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(conditions, itemLocal); - } - } - } - - - // v2beta2_horizontal_pod_autoscaler_status->current_metrics - if(v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - cJSON *current_metrics = cJSON_AddArrayToObject(item, "currentMetrics"); - if(current_metrics == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *current_metricsListEntry; - if (v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - list_ForEach(current_metricsListEntry, v2beta2_horizontal_pod_autoscaler_status->current_metrics) { - cJSON *itemLocal = v2beta2_metric_status_convertToJSON(current_metricsListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(current_metrics, itemLocal); - } - } - } - - - // v2beta2_horizontal_pod_autoscaler_status->current_replicas - if (!v2beta2_horizontal_pod_autoscaler_status->current_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "currentReplicas", v2beta2_horizontal_pod_autoscaler_status->current_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_horizontal_pod_autoscaler_status->desired_replicas - if (!v2beta2_horizontal_pod_autoscaler_status->desired_replicas) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "desiredReplicas", v2beta2_horizontal_pod_autoscaler_status->desired_replicas) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_horizontal_pod_autoscaler_status->last_scale_time - if(v2beta2_horizontal_pod_autoscaler_status->last_scale_time) { - if(cJSON_AddStringToObject(item, "lastScaleTime", v2beta2_horizontal_pod_autoscaler_status->last_scale_time) == NULL) { - goto fail; //Date-Time - } - } - - - // v2beta2_horizontal_pod_autoscaler_status->observed_generation - if(v2beta2_horizontal_pod_autoscaler_status->observed_generation) { - if(cJSON_AddNumberToObject(item, "observedGeneration", v2beta2_horizontal_pod_autoscaler_status->observed_generation) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_statusJSON){ - - v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_local_var = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_status->conditions - list_t *conditionsList = NULL; - - // define the local list for v2beta2_horizontal_pod_autoscaler_status->current_metrics - list_t *current_metricsList = NULL; - - // v2beta2_horizontal_pod_autoscaler_status->conditions - cJSON *conditions = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "conditions"); - if (conditions) { - cJSON *conditions_local_nonprimitive = NULL; - if(!cJSON_IsArray(conditions)){ - goto end; //nonprimitive container - } - - conditionsList = list_createList(); - - cJSON_ArrayForEach(conditions_local_nonprimitive,conditions ) - { - if(!cJSON_IsObject(conditions_local_nonprimitive)){ - goto end; - } - v2beta2_horizontal_pod_autoscaler_condition_t *conditionsItem = v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(conditions_local_nonprimitive); - - list_addElement(conditionsList, conditionsItem); - } - } - - // v2beta2_horizontal_pod_autoscaler_status->current_metrics - cJSON *current_metrics = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "currentMetrics"); - if (current_metrics) { - cJSON *current_metrics_local_nonprimitive = NULL; - if(!cJSON_IsArray(current_metrics)){ - goto end; //nonprimitive container - } - - current_metricsList = list_createList(); - - cJSON_ArrayForEach(current_metrics_local_nonprimitive,current_metrics ) - { - if(!cJSON_IsObject(current_metrics_local_nonprimitive)){ - goto end; - } - v2beta2_metric_status_t *current_metricsItem = v2beta2_metric_status_parseFromJSON(current_metrics_local_nonprimitive); - - list_addElement(current_metricsList, current_metricsItem); - } - } - - // v2beta2_horizontal_pod_autoscaler_status->current_replicas - cJSON *current_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "currentReplicas"); - if (!current_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(current_replicas)) - { - goto end; //Numeric - } - - // v2beta2_horizontal_pod_autoscaler_status->desired_replicas - cJSON *desired_replicas = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "desiredReplicas"); - if (!desired_replicas) { - goto end; - } - - - if(!cJSON_IsNumber(desired_replicas)) - { - goto end; //Numeric - } - - // v2beta2_horizontal_pod_autoscaler_status->last_scale_time - cJSON *last_scale_time = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "lastScaleTime"); - if (last_scale_time) { - if(!cJSON_IsString(last_scale_time) && !cJSON_IsNull(last_scale_time)) - { - goto end; //DateTime - } - } - - // v2beta2_horizontal_pod_autoscaler_status->observed_generation - cJSON *observed_generation = cJSON_GetObjectItemCaseSensitive(v2beta2_horizontal_pod_autoscaler_statusJSON, "observedGeneration"); - if (observed_generation) { - if(!cJSON_IsNumber(observed_generation)) - { - goto end; //Numeric - } - } - - - v2beta2_horizontal_pod_autoscaler_status_local_var = v2beta2_horizontal_pod_autoscaler_status_create ( - conditions ? conditionsList : NULL, - current_metrics ? current_metricsList : NULL, - current_replicas->valuedouble, - desired_replicas->valuedouble, - last_scale_time && !cJSON_IsNull(last_scale_time) ? strdup(last_scale_time->valuestring) : NULL, - observed_generation ? observed_generation->valuedouble : 0 - ); - - return v2beta2_horizontal_pod_autoscaler_status_local_var; -end: - if (conditionsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, conditionsList) { - v2beta2_horizontal_pod_autoscaler_condition_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(conditionsList); - conditionsList = NULL; - } - if (current_metricsList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, current_metricsList) { - v2beta2_metric_status_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(current_metricsList); - current_metricsList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.h b/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.h deleted file mode 100644 index 0122d5f..0000000 --- a/kubernetes/model/v2beta2_horizontal_pod_autoscaler_status.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * v2beta2_horizontal_pod_autoscaler_status.h - * - * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. - */ - -#ifndef _v2beta2_horizontal_pod_autoscaler_status_H_ -#define _v2beta2_horizontal_pod_autoscaler_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_horizontal_pod_autoscaler_status_t v2beta2_horizontal_pod_autoscaler_status_t; - -#include "v2beta2_horizontal_pod_autoscaler_condition.h" -#include "v2beta2_metric_status.h" - - - -typedef struct v2beta2_horizontal_pod_autoscaler_status_t { - list_t *conditions; //nonprimitive container - list_t *current_metrics; //nonprimitive container - int current_replicas; //numeric - int desired_replicas; //numeric - char *last_scale_time; //date time - long observed_generation; //numeric - -} v2beta2_horizontal_pod_autoscaler_status_t; - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_create( - list_t *conditions, - list_t *current_metrics, - int current_replicas, - int desired_replicas, - char *last_scale_time, - long observed_generation -); - -void v2beta2_horizontal_pod_autoscaler_status_free(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status); - -v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(cJSON *v2beta2_horizontal_pod_autoscaler_statusJSON); - -cJSON *v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_t *v2beta2_horizontal_pod_autoscaler_status); - -#endif /* _v2beta2_horizontal_pod_autoscaler_status_H_ */ - diff --git a/kubernetes/model/v2beta2_hpa_scaling_policy.c b/kubernetes/model/v2beta2_hpa_scaling_policy.c deleted file mode 100644 index 259c576..0000000 --- a/kubernetes/model/v2beta2_hpa_scaling_policy.c +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include -#include -#include "v2beta2_hpa_scaling_policy.h" - - - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_create( - int period_seconds, - char *type, - int value - ) { - v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_local_var = malloc(sizeof(v2beta2_hpa_scaling_policy_t)); - if (!v2beta2_hpa_scaling_policy_local_var) { - return NULL; - } - v2beta2_hpa_scaling_policy_local_var->period_seconds = period_seconds; - v2beta2_hpa_scaling_policy_local_var->type = type; - v2beta2_hpa_scaling_policy_local_var->value = value; - - return v2beta2_hpa_scaling_policy_local_var; -} - - -void v2beta2_hpa_scaling_policy_free(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy) { - if(NULL == v2beta2_hpa_scaling_policy){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_hpa_scaling_policy->type) { - free(v2beta2_hpa_scaling_policy->type); - v2beta2_hpa_scaling_policy->type = NULL; - } - free(v2beta2_hpa_scaling_policy); -} - -cJSON *v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_hpa_scaling_policy->period_seconds - if (!v2beta2_hpa_scaling_policy->period_seconds) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "periodSeconds", v2beta2_hpa_scaling_policy->period_seconds) == NULL) { - goto fail; //Numeric - } - - - // v2beta2_hpa_scaling_policy->type - if (!v2beta2_hpa_scaling_policy->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_hpa_scaling_policy->type) == NULL) { - goto fail; //String - } - - - // v2beta2_hpa_scaling_policy->value - if (!v2beta2_hpa_scaling_policy->value) { - goto fail; - } - if(cJSON_AddNumberToObject(item, "value", v2beta2_hpa_scaling_policy->value) == NULL) { - goto fail; //Numeric - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_parseFromJSON(cJSON *v2beta2_hpa_scaling_policyJSON){ - - v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_local_var = NULL; - - // v2beta2_hpa_scaling_policy->period_seconds - cJSON *period_seconds = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_policyJSON, "periodSeconds"); - if (!period_seconds) { - goto end; - } - - - if(!cJSON_IsNumber(period_seconds)) - { - goto end; //Numeric - } - - // v2beta2_hpa_scaling_policy->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_policyJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - // v2beta2_hpa_scaling_policy->value - cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_policyJSON, "value"); - if (!value) { - goto end; - } - - - if(!cJSON_IsNumber(value)) - { - goto end; //Numeric - } - - - v2beta2_hpa_scaling_policy_local_var = v2beta2_hpa_scaling_policy_create ( - period_seconds->valuedouble, - strdup(type->valuestring), - value->valuedouble - ); - - return v2beta2_hpa_scaling_policy_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_hpa_scaling_policy.h b/kubernetes/model/v2beta2_hpa_scaling_policy.h deleted file mode 100644 index 82a4c25..0000000 --- a/kubernetes/model/v2beta2_hpa_scaling_policy.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_hpa_scaling_policy.h - * - * HPAScalingPolicy is a single policy which must hold true for a specified past interval. - */ - -#ifndef _v2beta2_hpa_scaling_policy_H_ -#define _v2beta2_hpa_scaling_policy_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_hpa_scaling_policy_t v2beta2_hpa_scaling_policy_t; - - - - -typedef struct v2beta2_hpa_scaling_policy_t { - int period_seconds; //numeric - char *type; // string - int value; //numeric - -} v2beta2_hpa_scaling_policy_t; - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_create( - int period_seconds, - char *type, - int value -); - -void v2beta2_hpa_scaling_policy_free(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy); - -v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy_parseFromJSON(cJSON *v2beta2_hpa_scaling_policyJSON); - -cJSON *v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_t *v2beta2_hpa_scaling_policy); - -#endif /* _v2beta2_hpa_scaling_policy_H_ */ - diff --git a/kubernetes/model/v2beta2_hpa_scaling_rules.c b/kubernetes/model/v2beta2_hpa_scaling_rules.c deleted file mode 100644 index 24f238c..0000000 --- a/kubernetes/model/v2beta2_hpa_scaling_rules.c +++ /dev/null @@ -1,156 +0,0 @@ -#include -#include -#include -#include "v2beta2_hpa_scaling_rules.h" - - - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_create( - list_t *policies, - char *select_policy, - int stabilization_window_seconds - ) { - v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_local_var = malloc(sizeof(v2beta2_hpa_scaling_rules_t)); - if (!v2beta2_hpa_scaling_rules_local_var) { - return NULL; - } - v2beta2_hpa_scaling_rules_local_var->policies = policies; - v2beta2_hpa_scaling_rules_local_var->select_policy = select_policy; - v2beta2_hpa_scaling_rules_local_var->stabilization_window_seconds = stabilization_window_seconds; - - return v2beta2_hpa_scaling_rules_local_var; -} - - -void v2beta2_hpa_scaling_rules_free(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules) { - if(NULL == v2beta2_hpa_scaling_rules){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_hpa_scaling_rules->policies) { - list_ForEach(listEntry, v2beta2_hpa_scaling_rules->policies) { - v2beta2_hpa_scaling_policy_free(listEntry->data); - } - list_freeList(v2beta2_hpa_scaling_rules->policies); - v2beta2_hpa_scaling_rules->policies = NULL; - } - if (v2beta2_hpa_scaling_rules->select_policy) { - free(v2beta2_hpa_scaling_rules->select_policy); - v2beta2_hpa_scaling_rules->select_policy = NULL; - } - free(v2beta2_hpa_scaling_rules); -} - -cJSON *v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_hpa_scaling_rules->policies - if(v2beta2_hpa_scaling_rules->policies) { - cJSON *policies = cJSON_AddArrayToObject(item, "policies"); - if(policies == NULL) { - goto fail; //nonprimitive container - } - - listEntry_t *policiesListEntry; - if (v2beta2_hpa_scaling_rules->policies) { - list_ForEach(policiesListEntry, v2beta2_hpa_scaling_rules->policies) { - cJSON *itemLocal = v2beta2_hpa_scaling_policy_convertToJSON(policiesListEntry->data); - if(itemLocal == NULL) { - goto fail; - } - cJSON_AddItemToArray(policies, itemLocal); - } - } - } - - - // v2beta2_hpa_scaling_rules->select_policy - if(v2beta2_hpa_scaling_rules->select_policy) { - if(cJSON_AddStringToObject(item, "selectPolicy", v2beta2_hpa_scaling_rules->select_policy) == NULL) { - goto fail; //String - } - } - - - // v2beta2_hpa_scaling_rules->stabilization_window_seconds - if(v2beta2_hpa_scaling_rules->stabilization_window_seconds) { - if(cJSON_AddNumberToObject(item, "stabilizationWindowSeconds", v2beta2_hpa_scaling_rules->stabilization_window_seconds) == NULL) { - goto fail; //Numeric - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_parseFromJSON(cJSON *v2beta2_hpa_scaling_rulesJSON){ - - v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_local_var = NULL; - - // define the local list for v2beta2_hpa_scaling_rules->policies - list_t *policiesList = NULL; - - // v2beta2_hpa_scaling_rules->policies - cJSON *policies = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_rulesJSON, "policies"); - if (policies) { - cJSON *policies_local_nonprimitive = NULL; - if(!cJSON_IsArray(policies)){ - goto end; //nonprimitive container - } - - policiesList = list_createList(); - - cJSON_ArrayForEach(policies_local_nonprimitive,policies ) - { - if(!cJSON_IsObject(policies_local_nonprimitive)){ - goto end; - } - v2beta2_hpa_scaling_policy_t *policiesItem = v2beta2_hpa_scaling_policy_parseFromJSON(policies_local_nonprimitive); - - list_addElement(policiesList, policiesItem); - } - } - - // v2beta2_hpa_scaling_rules->select_policy - cJSON *select_policy = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_rulesJSON, "selectPolicy"); - if (select_policy) { - if(!cJSON_IsString(select_policy) && !cJSON_IsNull(select_policy)) - { - goto end; //String - } - } - - // v2beta2_hpa_scaling_rules->stabilization_window_seconds - cJSON *stabilization_window_seconds = cJSON_GetObjectItemCaseSensitive(v2beta2_hpa_scaling_rulesJSON, "stabilizationWindowSeconds"); - if (stabilization_window_seconds) { - if(!cJSON_IsNumber(stabilization_window_seconds)) - { - goto end; //Numeric - } - } - - - v2beta2_hpa_scaling_rules_local_var = v2beta2_hpa_scaling_rules_create ( - policies ? policiesList : NULL, - select_policy && !cJSON_IsNull(select_policy) ? strdup(select_policy->valuestring) : NULL, - stabilization_window_seconds ? stabilization_window_seconds->valuedouble : 0 - ); - - return v2beta2_hpa_scaling_rules_local_var; -end: - if (policiesList) { - listEntry_t *listEntry = NULL; - list_ForEach(listEntry, policiesList) { - v2beta2_hpa_scaling_policy_free(listEntry->data); - listEntry->data = NULL; - } - list_freeList(policiesList); - policiesList = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_hpa_scaling_rules.h b/kubernetes/model/v2beta2_hpa_scaling_rules.h deleted file mode 100644 index 0e39de2..0000000 --- a/kubernetes/model/v2beta2_hpa_scaling_rules.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * v2beta2_hpa_scaling_rules.h - * - * HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. - */ - -#ifndef _v2beta2_hpa_scaling_rules_H_ -#define _v2beta2_hpa_scaling_rules_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_hpa_scaling_rules_t v2beta2_hpa_scaling_rules_t; - -#include "v2beta2_hpa_scaling_policy.h" - - - -typedef struct v2beta2_hpa_scaling_rules_t { - list_t *policies; //nonprimitive container - char *select_policy; // string - int stabilization_window_seconds; //numeric - -} v2beta2_hpa_scaling_rules_t; - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_create( - list_t *policies, - char *select_policy, - int stabilization_window_seconds -); - -void v2beta2_hpa_scaling_rules_free(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules); - -v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules_parseFromJSON(cJSON *v2beta2_hpa_scaling_rulesJSON); - -cJSON *v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_t *v2beta2_hpa_scaling_rules); - -#endif /* _v2beta2_hpa_scaling_rules_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_identifier.c b/kubernetes/model/v2beta2_metric_identifier.c deleted file mode 100644 index 3f715d1..0000000 --- a/kubernetes/model/v2beta2_metric_identifier.c +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_identifier.h" - - - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_create( - char *name, - v1_label_selector_t *selector - ) { - v2beta2_metric_identifier_t *v2beta2_metric_identifier_local_var = malloc(sizeof(v2beta2_metric_identifier_t)); - if (!v2beta2_metric_identifier_local_var) { - return NULL; - } - v2beta2_metric_identifier_local_var->name = name; - v2beta2_metric_identifier_local_var->selector = selector; - - return v2beta2_metric_identifier_local_var; -} - - -void v2beta2_metric_identifier_free(v2beta2_metric_identifier_t *v2beta2_metric_identifier) { - if(NULL == v2beta2_metric_identifier){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_identifier->name) { - free(v2beta2_metric_identifier->name); - v2beta2_metric_identifier->name = NULL; - } - if (v2beta2_metric_identifier->selector) { - v1_label_selector_free(v2beta2_metric_identifier->selector); - v2beta2_metric_identifier->selector = NULL; - } - free(v2beta2_metric_identifier); -} - -cJSON *v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_t *v2beta2_metric_identifier) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_identifier->name - if (!v2beta2_metric_identifier->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_metric_identifier->name) == NULL) { - goto fail; //String - } - - - // v2beta2_metric_identifier->selector - if(v2beta2_metric_identifier->selector) { - cJSON *selector_local_JSON = v1_label_selector_convertToJSON(v2beta2_metric_identifier->selector); - if(selector_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "selector", selector_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_parseFromJSON(cJSON *v2beta2_metric_identifierJSON){ - - v2beta2_metric_identifier_t *v2beta2_metric_identifier_local_var = NULL; - - // define the local variable for v2beta2_metric_identifier->selector - v1_label_selector_t *selector_local_nonprim = NULL; - - // v2beta2_metric_identifier->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_identifierJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta2_metric_identifier->selector - cJSON *selector = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_identifierJSON, "selector"); - if (selector) { - selector_local_nonprim = v1_label_selector_parseFromJSON(selector); //nonprimitive - } - - - v2beta2_metric_identifier_local_var = v2beta2_metric_identifier_create ( - strdup(name->valuestring), - selector ? selector_local_nonprim : NULL - ); - - return v2beta2_metric_identifier_local_var; -end: - if (selector_local_nonprim) { - v1_label_selector_free(selector_local_nonprim); - selector_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_identifier.h b/kubernetes/model/v2beta2_metric_identifier.h deleted file mode 100644 index 92b8823..0000000 --- a/kubernetes/model/v2beta2_metric_identifier.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_metric_identifier.h - * - * MetricIdentifier defines the name and optionally selector for a metric - */ - -#ifndef _v2beta2_metric_identifier_H_ -#define _v2beta2_metric_identifier_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_identifier_t v2beta2_metric_identifier_t; - -#include "v1_label_selector.h" - - - -typedef struct v2beta2_metric_identifier_t { - char *name; // string - struct v1_label_selector_t *selector; //model - -} v2beta2_metric_identifier_t; - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_create( - char *name, - v1_label_selector_t *selector -); - -void v2beta2_metric_identifier_free(v2beta2_metric_identifier_t *v2beta2_metric_identifier); - -v2beta2_metric_identifier_t *v2beta2_metric_identifier_parseFromJSON(cJSON *v2beta2_metric_identifierJSON); - -cJSON *v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_t *v2beta2_metric_identifier); - -#endif /* _v2beta2_metric_identifier_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_spec.c b/kubernetes/model/v2beta2_metric_spec.c deleted file mode 100644 index e9c108a..0000000 --- a/kubernetes/model/v2beta2_metric_spec.c +++ /dev/null @@ -1,242 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_spec.h" - - - -v2beta2_metric_spec_t *v2beta2_metric_spec_create( - v2beta2_container_resource_metric_source_t *container_resource, - v2beta2_external_metric_source_t *external, - v2beta2_object_metric_source_t *object, - v2beta2_pods_metric_source_t *pods, - v2beta2_resource_metric_source_t *resource, - char *type - ) { - v2beta2_metric_spec_t *v2beta2_metric_spec_local_var = malloc(sizeof(v2beta2_metric_spec_t)); - if (!v2beta2_metric_spec_local_var) { - return NULL; - } - v2beta2_metric_spec_local_var->container_resource = container_resource; - v2beta2_metric_spec_local_var->external = external; - v2beta2_metric_spec_local_var->object = object; - v2beta2_metric_spec_local_var->pods = pods; - v2beta2_metric_spec_local_var->resource = resource; - v2beta2_metric_spec_local_var->type = type; - - return v2beta2_metric_spec_local_var; -} - - -void v2beta2_metric_spec_free(v2beta2_metric_spec_t *v2beta2_metric_spec) { - if(NULL == v2beta2_metric_spec){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_spec->container_resource) { - v2beta2_container_resource_metric_source_free(v2beta2_metric_spec->container_resource); - v2beta2_metric_spec->container_resource = NULL; - } - if (v2beta2_metric_spec->external) { - v2beta2_external_metric_source_free(v2beta2_metric_spec->external); - v2beta2_metric_spec->external = NULL; - } - if (v2beta2_metric_spec->object) { - v2beta2_object_metric_source_free(v2beta2_metric_spec->object); - v2beta2_metric_spec->object = NULL; - } - if (v2beta2_metric_spec->pods) { - v2beta2_pods_metric_source_free(v2beta2_metric_spec->pods); - v2beta2_metric_spec->pods = NULL; - } - if (v2beta2_metric_spec->resource) { - v2beta2_resource_metric_source_free(v2beta2_metric_spec->resource); - v2beta2_metric_spec->resource = NULL; - } - if (v2beta2_metric_spec->type) { - free(v2beta2_metric_spec->type); - v2beta2_metric_spec->type = NULL; - } - free(v2beta2_metric_spec); -} - -cJSON *v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_t *v2beta2_metric_spec) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_spec->container_resource - if(v2beta2_metric_spec->container_resource) { - cJSON *container_resource_local_JSON = v2beta2_container_resource_metric_source_convertToJSON(v2beta2_metric_spec->container_resource); - if(container_resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "containerResource", container_resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->external - if(v2beta2_metric_spec->external) { - cJSON *external_local_JSON = v2beta2_external_metric_source_convertToJSON(v2beta2_metric_spec->external); - if(external_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "external", external_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->object - if(v2beta2_metric_spec->object) { - cJSON *object_local_JSON = v2beta2_object_metric_source_convertToJSON(v2beta2_metric_spec->object); - if(object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "object", object_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->pods - if(v2beta2_metric_spec->pods) { - cJSON *pods_local_JSON = v2beta2_pods_metric_source_convertToJSON(v2beta2_metric_spec->pods); - if(pods_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "pods", pods_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->resource - if(v2beta2_metric_spec->resource) { - cJSON *resource_local_JSON = v2beta2_resource_metric_source_convertToJSON(v2beta2_metric_spec->resource); - if(resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "resource", resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_spec->type - if (!v2beta2_metric_spec->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_metric_spec->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_spec_t *v2beta2_metric_spec_parseFromJSON(cJSON *v2beta2_metric_specJSON){ - - v2beta2_metric_spec_t *v2beta2_metric_spec_local_var = NULL; - - // define the local variable for v2beta2_metric_spec->container_resource - v2beta2_container_resource_metric_source_t *container_resource_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->external - v2beta2_external_metric_source_t *external_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->object - v2beta2_object_metric_source_t *object_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->pods - v2beta2_pods_metric_source_t *pods_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_spec->resource - v2beta2_resource_metric_source_t *resource_local_nonprim = NULL; - - // v2beta2_metric_spec->container_resource - cJSON *container_resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "containerResource"); - if (container_resource) { - container_resource_local_nonprim = v2beta2_container_resource_metric_source_parseFromJSON(container_resource); //nonprimitive - } - - // v2beta2_metric_spec->external - cJSON *external = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "external"); - if (external) { - external_local_nonprim = v2beta2_external_metric_source_parseFromJSON(external); //nonprimitive - } - - // v2beta2_metric_spec->object - cJSON *object = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "object"); - if (object) { - object_local_nonprim = v2beta2_object_metric_source_parseFromJSON(object); //nonprimitive - } - - // v2beta2_metric_spec->pods - cJSON *pods = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "pods"); - if (pods) { - pods_local_nonprim = v2beta2_pods_metric_source_parseFromJSON(pods); //nonprimitive - } - - // v2beta2_metric_spec->resource - cJSON *resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "resource"); - if (resource) { - resource_local_nonprim = v2beta2_resource_metric_source_parseFromJSON(resource); //nonprimitive - } - - // v2beta2_metric_spec->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_specJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta2_metric_spec_local_var = v2beta2_metric_spec_create ( - container_resource ? container_resource_local_nonprim : NULL, - external ? external_local_nonprim : NULL, - object ? object_local_nonprim : NULL, - pods ? pods_local_nonprim : NULL, - resource ? resource_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v2beta2_metric_spec_local_var; -end: - if (container_resource_local_nonprim) { - v2beta2_container_resource_metric_source_free(container_resource_local_nonprim); - container_resource_local_nonprim = NULL; - } - if (external_local_nonprim) { - v2beta2_external_metric_source_free(external_local_nonprim); - external_local_nonprim = NULL; - } - if (object_local_nonprim) { - v2beta2_object_metric_source_free(object_local_nonprim); - object_local_nonprim = NULL; - } - if (pods_local_nonprim) { - v2beta2_pods_metric_source_free(pods_local_nonprim); - pods_local_nonprim = NULL; - } - if (resource_local_nonprim) { - v2beta2_resource_metric_source_free(resource_local_nonprim); - resource_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_spec.h b/kubernetes/model/v2beta2_metric_spec.h deleted file mode 100644 index 7af648d..0000000 --- a/kubernetes/model/v2beta2_metric_spec.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v2beta2_metric_spec.h - * - * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). - */ - -#ifndef _v2beta2_metric_spec_H_ -#define _v2beta2_metric_spec_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_spec_t v2beta2_metric_spec_t; - -#include "v2beta2_container_resource_metric_source.h" -#include "v2beta2_external_metric_source.h" -#include "v2beta2_object_metric_source.h" -#include "v2beta2_pods_metric_source.h" -#include "v2beta2_resource_metric_source.h" - - - -typedef struct v2beta2_metric_spec_t { - struct v2beta2_container_resource_metric_source_t *container_resource; //model - struct v2beta2_external_metric_source_t *external; //model - struct v2beta2_object_metric_source_t *object; //model - struct v2beta2_pods_metric_source_t *pods; //model - struct v2beta2_resource_metric_source_t *resource; //model - char *type; // string - -} v2beta2_metric_spec_t; - -v2beta2_metric_spec_t *v2beta2_metric_spec_create( - v2beta2_container_resource_metric_source_t *container_resource, - v2beta2_external_metric_source_t *external, - v2beta2_object_metric_source_t *object, - v2beta2_pods_metric_source_t *pods, - v2beta2_resource_metric_source_t *resource, - char *type -); - -void v2beta2_metric_spec_free(v2beta2_metric_spec_t *v2beta2_metric_spec); - -v2beta2_metric_spec_t *v2beta2_metric_spec_parseFromJSON(cJSON *v2beta2_metric_specJSON); - -cJSON *v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_t *v2beta2_metric_spec); - -#endif /* _v2beta2_metric_spec_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_status.c b/kubernetes/model/v2beta2_metric_status.c deleted file mode 100644 index 146fb70..0000000 --- a/kubernetes/model/v2beta2_metric_status.c +++ /dev/null @@ -1,242 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_status.h" - - - -v2beta2_metric_status_t *v2beta2_metric_status_create( - v2beta2_container_resource_metric_status_t *container_resource, - v2beta2_external_metric_status_t *external, - v2beta2_object_metric_status_t *object, - v2beta2_pods_metric_status_t *pods, - v2beta2_resource_metric_status_t *resource, - char *type - ) { - v2beta2_metric_status_t *v2beta2_metric_status_local_var = malloc(sizeof(v2beta2_metric_status_t)); - if (!v2beta2_metric_status_local_var) { - return NULL; - } - v2beta2_metric_status_local_var->container_resource = container_resource; - v2beta2_metric_status_local_var->external = external; - v2beta2_metric_status_local_var->object = object; - v2beta2_metric_status_local_var->pods = pods; - v2beta2_metric_status_local_var->resource = resource; - v2beta2_metric_status_local_var->type = type; - - return v2beta2_metric_status_local_var; -} - - -void v2beta2_metric_status_free(v2beta2_metric_status_t *v2beta2_metric_status) { - if(NULL == v2beta2_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_status->container_resource) { - v2beta2_container_resource_metric_status_free(v2beta2_metric_status->container_resource); - v2beta2_metric_status->container_resource = NULL; - } - if (v2beta2_metric_status->external) { - v2beta2_external_metric_status_free(v2beta2_metric_status->external); - v2beta2_metric_status->external = NULL; - } - if (v2beta2_metric_status->object) { - v2beta2_object_metric_status_free(v2beta2_metric_status->object); - v2beta2_metric_status->object = NULL; - } - if (v2beta2_metric_status->pods) { - v2beta2_pods_metric_status_free(v2beta2_metric_status->pods); - v2beta2_metric_status->pods = NULL; - } - if (v2beta2_metric_status->resource) { - v2beta2_resource_metric_status_free(v2beta2_metric_status->resource); - v2beta2_metric_status->resource = NULL; - } - if (v2beta2_metric_status->type) { - free(v2beta2_metric_status->type); - v2beta2_metric_status->type = NULL; - } - free(v2beta2_metric_status); -} - -cJSON *v2beta2_metric_status_convertToJSON(v2beta2_metric_status_t *v2beta2_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_status->container_resource - if(v2beta2_metric_status->container_resource) { - cJSON *container_resource_local_JSON = v2beta2_container_resource_metric_status_convertToJSON(v2beta2_metric_status->container_resource); - if(container_resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "containerResource", container_resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->external - if(v2beta2_metric_status->external) { - cJSON *external_local_JSON = v2beta2_external_metric_status_convertToJSON(v2beta2_metric_status->external); - if(external_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "external", external_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->object - if(v2beta2_metric_status->object) { - cJSON *object_local_JSON = v2beta2_object_metric_status_convertToJSON(v2beta2_metric_status->object); - if(object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "object", object_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->pods - if(v2beta2_metric_status->pods) { - cJSON *pods_local_JSON = v2beta2_pods_metric_status_convertToJSON(v2beta2_metric_status->pods); - if(pods_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "pods", pods_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->resource - if(v2beta2_metric_status->resource) { - cJSON *resource_local_JSON = v2beta2_resource_metric_status_convertToJSON(v2beta2_metric_status->resource); - if(resource_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "resource", resource_local_JSON); - if(item->child == NULL) { - goto fail; - } - } - - - // v2beta2_metric_status->type - if (!v2beta2_metric_status->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_metric_status->type) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_status_t *v2beta2_metric_status_parseFromJSON(cJSON *v2beta2_metric_statusJSON){ - - v2beta2_metric_status_t *v2beta2_metric_status_local_var = NULL; - - // define the local variable for v2beta2_metric_status->container_resource - v2beta2_container_resource_metric_status_t *container_resource_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->external - v2beta2_external_metric_status_t *external_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->object - v2beta2_object_metric_status_t *object_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->pods - v2beta2_pods_metric_status_t *pods_local_nonprim = NULL; - - // define the local variable for v2beta2_metric_status->resource - v2beta2_resource_metric_status_t *resource_local_nonprim = NULL; - - // v2beta2_metric_status->container_resource - cJSON *container_resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "containerResource"); - if (container_resource) { - container_resource_local_nonprim = v2beta2_container_resource_metric_status_parseFromJSON(container_resource); //nonprimitive - } - - // v2beta2_metric_status->external - cJSON *external = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "external"); - if (external) { - external_local_nonprim = v2beta2_external_metric_status_parseFromJSON(external); //nonprimitive - } - - // v2beta2_metric_status->object - cJSON *object = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "object"); - if (object) { - object_local_nonprim = v2beta2_object_metric_status_parseFromJSON(object); //nonprimitive - } - - // v2beta2_metric_status->pods - cJSON *pods = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "pods"); - if (pods) { - pods_local_nonprim = v2beta2_pods_metric_status_parseFromJSON(pods); //nonprimitive - } - - // v2beta2_metric_status->resource - cJSON *resource = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "resource"); - if (resource) { - resource_local_nonprim = v2beta2_resource_metric_status_parseFromJSON(resource); //nonprimitive - } - - // v2beta2_metric_status->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_statusJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - - v2beta2_metric_status_local_var = v2beta2_metric_status_create ( - container_resource ? container_resource_local_nonprim : NULL, - external ? external_local_nonprim : NULL, - object ? object_local_nonprim : NULL, - pods ? pods_local_nonprim : NULL, - resource ? resource_local_nonprim : NULL, - strdup(type->valuestring) - ); - - return v2beta2_metric_status_local_var; -end: - if (container_resource_local_nonprim) { - v2beta2_container_resource_metric_status_free(container_resource_local_nonprim); - container_resource_local_nonprim = NULL; - } - if (external_local_nonprim) { - v2beta2_external_metric_status_free(external_local_nonprim); - external_local_nonprim = NULL; - } - if (object_local_nonprim) { - v2beta2_object_metric_status_free(object_local_nonprim); - object_local_nonprim = NULL; - } - if (pods_local_nonprim) { - v2beta2_pods_metric_status_free(pods_local_nonprim); - pods_local_nonprim = NULL; - } - if (resource_local_nonprim) { - v2beta2_resource_metric_status_free(resource_local_nonprim); - resource_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_status.h b/kubernetes/model/v2beta2_metric_status.h deleted file mode 100644 index 565bba3..0000000 --- a/kubernetes/model/v2beta2_metric_status.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * v2beta2_metric_status.h - * - * MetricStatus describes the last-read state of a single metric. - */ - -#ifndef _v2beta2_metric_status_H_ -#define _v2beta2_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_status_t v2beta2_metric_status_t; - -#include "v2beta2_container_resource_metric_status.h" -#include "v2beta2_external_metric_status.h" -#include "v2beta2_object_metric_status.h" -#include "v2beta2_pods_metric_status.h" -#include "v2beta2_resource_metric_status.h" - - - -typedef struct v2beta2_metric_status_t { - struct v2beta2_container_resource_metric_status_t *container_resource; //model - struct v2beta2_external_metric_status_t *external; //model - struct v2beta2_object_metric_status_t *object; //model - struct v2beta2_pods_metric_status_t *pods; //model - struct v2beta2_resource_metric_status_t *resource; //model - char *type; // string - -} v2beta2_metric_status_t; - -v2beta2_metric_status_t *v2beta2_metric_status_create( - v2beta2_container_resource_metric_status_t *container_resource, - v2beta2_external_metric_status_t *external, - v2beta2_object_metric_status_t *object, - v2beta2_pods_metric_status_t *pods, - v2beta2_resource_metric_status_t *resource, - char *type -); - -void v2beta2_metric_status_free(v2beta2_metric_status_t *v2beta2_metric_status); - -v2beta2_metric_status_t *v2beta2_metric_status_parseFromJSON(cJSON *v2beta2_metric_statusJSON); - -cJSON *v2beta2_metric_status_convertToJSON(v2beta2_metric_status_t *v2beta2_metric_status); - -#endif /* _v2beta2_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_target.c b/kubernetes/model/v2beta2_metric_target.c deleted file mode 100644 index 84f0af5..0000000 --- a/kubernetes/model/v2beta2_metric_target.c +++ /dev/null @@ -1,145 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_target.h" - - - -v2beta2_metric_target_t *v2beta2_metric_target_create( - int average_utilization, - char *average_value, - char *type, - char *value - ) { - v2beta2_metric_target_t *v2beta2_metric_target_local_var = malloc(sizeof(v2beta2_metric_target_t)); - if (!v2beta2_metric_target_local_var) { - return NULL; - } - v2beta2_metric_target_local_var->average_utilization = average_utilization; - v2beta2_metric_target_local_var->average_value = average_value; - v2beta2_metric_target_local_var->type = type; - v2beta2_metric_target_local_var->value = value; - - return v2beta2_metric_target_local_var; -} - - -void v2beta2_metric_target_free(v2beta2_metric_target_t *v2beta2_metric_target) { - if(NULL == v2beta2_metric_target){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_target->average_value) { - free(v2beta2_metric_target->average_value); - v2beta2_metric_target->average_value = NULL; - } - if (v2beta2_metric_target->type) { - free(v2beta2_metric_target->type); - v2beta2_metric_target->type = NULL; - } - if (v2beta2_metric_target->value) { - free(v2beta2_metric_target->value); - v2beta2_metric_target->value = NULL; - } - free(v2beta2_metric_target); -} - -cJSON *v2beta2_metric_target_convertToJSON(v2beta2_metric_target_t *v2beta2_metric_target) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_target->average_utilization - if(v2beta2_metric_target->average_utilization) { - if(cJSON_AddNumberToObject(item, "averageUtilization", v2beta2_metric_target->average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta2_metric_target->average_value - if(v2beta2_metric_target->average_value) { - if(cJSON_AddStringToObject(item, "averageValue", v2beta2_metric_target->average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta2_metric_target->type - if (!v2beta2_metric_target->type) { - goto fail; - } - if(cJSON_AddStringToObject(item, "type", v2beta2_metric_target->type) == NULL) { - goto fail; //String - } - - - // v2beta2_metric_target->value - if(v2beta2_metric_target->value) { - if(cJSON_AddStringToObject(item, "value", v2beta2_metric_target->value) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_target_t *v2beta2_metric_target_parseFromJSON(cJSON *v2beta2_metric_targetJSON){ - - v2beta2_metric_target_t *v2beta2_metric_target_local_var = NULL; - - // v2beta2_metric_target->average_utilization - cJSON *average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "averageUtilization"); - if (average_utilization) { - if(!cJSON_IsNumber(average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta2_metric_target->average_value - cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "averageValue"); - if (average_value) { - if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) - { - goto end; //String - } - } - - // v2beta2_metric_target->type - cJSON *type = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "type"); - if (!type) { - goto end; - } - - - if(!cJSON_IsString(type)) - { - goto end; //String - } - - // v2beta2_metric_target->value - cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_targetJSON, "value"); - if (value) { - if(!cJSON_IsString(value) && !cJSON_IsNull(value)) - { - goto end; //String - } - } - - - v2beta2_metric_target_local_var = v2beta2_metric_target_create ( - average_utilization ? average_utilization->valuedouble : 0, - average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, - strdup(type->valuestring), - value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL - ); - - return v2beta2_metric_target_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_target.h b/kubernetes/model/v2beta2_metric_target.h deleted file mode 100644 index 0248ddf..0000000 --- a/kubernetes/model/v2beta2_metric_target.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * v2beta2_metric_target.h - * - * MetricTarget defines the target value, average value, or average utilization of a specific metric - */ - -#ifndef _v2beta2_metric_target_H_ -#define _v2beta2_metric_target_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_target_t v2beta2_metric_target_t; - - - - -typedef struct v2beta2_metric_target_t { - int average_utilization; //numeric - char *average_value; // string - char *type; // string - char *value; // string - -} v2beta2_metric_target_t; - -v2beta2_metric_target_t *v2beta2_metric_target_create( - int average_utilization, - char *average_value, - char *type, - char *value -); - -void v2beta2_metric_target_free(v2beta2_metric_target_t *v2beta2_metric_target); - -v2beta2_metric_target_t *v2beta2_metric_target_parseFromJSON(cJSON *v2beta2_metric_targetJSON); - -cJSON *v2beta2_metric_target_convertToJSON(v2beta2_metric_target_t *v2beta2_metric_target); - -#endif /* _v2beta2_metric_target_H_ */ - diff --git a/kubernetes/model/v2beta2_metric_value_status.c b/kubernetes/model/v2beta2_metric_value_status.c deleted file mode 100644 index d79d1a0..0000000 --- a/kubernetes/model/v2beta2_metric_value_status.c +++ /dev/null @@ -1,117 +0,0 @@ -#include -#include -#include -#include "v2beta2_metric_value_status.h" - - - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_create( - int average_utilization, - char *average_value, - char *value - ) { - v2beta2_metric_value_status_t *v2beta2_metric_value_status_local_var = malloc(sizeof(v2beta2_metric_value_status_t)); - if (!v2beta2_metric_value_status_local_var) { - return NULL; - } - v2beta2_metric_value_status_local_var->average_utilization = average_utilization; - v2beta2_metric_value_status_local_var->average_value = average_value; - v2beta2_metric_value_status_local_var->value = value; - - return v2beta2_metric_value_status_local_var; -} - - -void v2beta2_metric_value_status_free(v2beta2_metric_value_status_t *v2beta2_metric_value_status) { - if(NULL == v2beta2_metric_value_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_metric_value_status->average_value) { - free(v2beta2_metric_value_status->average_value); - v2beta2_metric_value_status->average_value = NULL; - } - if (v2beta2_metric_value_status->value) { - free(v2beta2_metric_value_status->value); - v2beta2_metric_value_status->value = NULL; - } - free(v2beta2_metric_value_status); -} - -cJSON *v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_t *v2beta2_metric_value_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_metric_value_status->average_utilization - if(v2beta2_metric_value_status->average_utilization) { - if(cJSON_AddNumberToObject(item, "averageUtilization", v2beta2_metric_value_status->average_utilization) == NULL) { - goto fail; //Numeric - } - } - - - // v2beta2_metric_value_status->average_value - if(v2beta2_metric_value_status->average_value) { - if(cJSON_AddStringToObject(item, "averageValue", v2beta2_metric_value_status->average_value) == NULL) { - goto fail; //String - } - } - - - // v2beta2_metric_value_status->value - if(v2beta2_metric_value_status->value) { - if(cJSON_AddStringToObject(item, "value", v2beta2_metric_value_status->value) == NULL) { - goto fail; //String - } - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_parseFromJSON(cJSON *v2beta2_metric_value_statusJSON){ - - v2beta2_metric_value_status_t *v2beta2_metric_value_status_local_var = NULL; - - // v2beta2_metric_value_status->average_utilization - cJSON *average_utilization = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "averageUtilization"); - if (average_utilization) { - if(!cJSON_IsNumber(average_utilization)) - { - goto end; //Numeric - } - } - - // v2beta2_metric_value_status->average_value - cJSON *average_value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "averageValue"); - if (average_value) { - if(!cJSON_IsString(average_value) && !cJSON_IsNull(average_value)) - { - goto end; //String - } - } - - // v2beta2_metric_value_status->value - cJSON *value = cJSON_GetObjectItemCaseSensitive(v2beta2_metric_value_statusJSON, "value"); - if (value) { - if(!cJSON_IsString(value) && !cJSON_IsNull(value)) - { - goto end; //String - } - } - - - v2beta2_metric_value_status_local_var = v2beta2_metric_value_status_create ( - average_utilization ? average_utilization->valuedouble : 0, - average_value && !cJSON_IsNull(average_value) ? strdup(average_value->valuestring) : NULL, - value && !cJSON_IsNull(value) ? strdup(value->valuestring) : NULL - ); - - return v2beta2_metric_value_status_local_var; -end: - return NULL; - -} diff --git a/kubernetes/model/v2beta2_metric_value_status.h b/kubernetes/model/v2beta2_metric_value_status.h deleted file mode 100644 index 760d5e5..0000000 --- a/kubernetes/model/v2beta2_metric_value_status.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_metric_value_status.h - * - * MetricValueStatus holds the current value for a metric - */ - -#ifndef _v2beta2_metric_value_status_H_ -#define _v2beta2_metric_value_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_metric_value_status_t v2beta2_metric_value_status_t; - - - - -typedef struct v2beta2_metric_value_status_t { - int average_utilization; //numeric - char *average_value; // string - char *value; // string - -} v2beta2_metric_value_status_t; - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_create( - int average_utilization, - char *average_value, - char *value -); - -void v2beta2_metric_value_status_free(v2beta2_metric_value_status_t *v2beta2_metric_value_status); - -v2beta2_metric_value_status_t *v2beta2_metric_value_status_parseFromJSON(cJSON *v2beta2_metric_value_statusJSON); - -cJSON *v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_t *v2beta2_metric_value_status); - -#endif /* _v2beta2_metric_value_status_H_ */ - diff --git a/kubernetes/model/v2beta2_object_metric_source.c b/kubernetes/model/v2beta2_object_metric_source.c deleted file mode 100644 index bfc9a1f..0000000 --- a/kubernetes/model/v2beta2_object_metric_source.c +++ /dev/null @@ -1,160 +0,0 @@ -#include -#include -#include -#include "v2beta2_object_metric_source.h" - - - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_create( - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target - ) { - v2beta2_object_metric_source_t *v2beta2_object_metric_source_local_var = malloc(sizeof(v2beta2_object_metric_source_t)); - if (!v2beta2_object_metric_source_local_var) { - return NULL; - } - v2beta2_object_metric_source_local_var->described_object = described_object; - v2beta2_object_metric_source_local_var->metric = metric; - v2beta2_object_metric_source_local_var->target = target; - - return v2beta2_object_metric_source_local_var; -} - - -void v2beta2_object_metric_source_free(v2beta2_object_metric_source_t *v2beta2_object_metric_source) { - if(NULL == v2beta2_object_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_object_metric_source->described_object) { - v2beta2_cross_version_object_reference_free(v2beta2_object_metric_source->described_object); - v2beta2_object_metric_source->described_object = NULL; - } - if (v2beta2_object_metric_source->metric) { - v2beta2_metric_identifier_free(v2beta2_object_metric_source->metric); - v2beta2_object_metric_source->metric = NULL; - } - if (v2beta2_object_metric_source->target) { - v2beta2_metric_target_free(v2beta2_object_metric_source->target); - v2beta2_object_metric_source->target = NULL; - } - free(v2beta2_object_metric_source); -} - -cJSON *v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_t *v2beta2_object_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_object_metric_source->described_object - if (!v2beta2_object_metric_source->described_object) { - goto fail; - } - cJSON *described_object_local_JSON = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_object_metric_source->described_object); - if(described_object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "describedObject", described_object_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_source->metric - if (!v2beta2_object_metric_source->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_object_metric_source->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_source->target - if (!v2beta2_object_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_object_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_parseFromJSON(cJSON *v2beta2_object_metric_sourceJSON){ - - v2beta2_object_metric_source_t *v2beta2_object_metric_source_local_var = NULL; - - // define the local variable for v2beta2_object_metric_source->described_object - v2beta2_cross_version_object_reference_t *described_object_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_source->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_object_metric_source->described_object - cJSON *described_object = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_sourceJSON, "describedObject"); - if (!described_object) { - goto end; - } - - - described_object_local_nonprim = v2beta2_cross_version_object_reference_parseFromJSON(described_object); //nonprimitive - - // v2beta2_object_metric_source->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_sourceJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - // v2beta2_object_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_object_metric_source_local_var = v2beta2_object_metric_source_create ( - described_object_local_nonprim, - metric_local_nonprim, - target_local_nonprim - ); - - return v2beta2_object_metric_source_local_var; -end: - if (described_object_local_nonprim) { - v2beta2_cross_version_object_reference_free(described_object_local_nonprim); - described_object_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_object_metric_source.h b/kubernetes/model/v2beta2_object_metric_source.h deleted file mode 100644 index 61d0922..0000000 --- a/kubernetes/model/v2beta2_object_metric_source.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v2beta2_object_metric_source.h - * - * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - */ - -#ifndef _v2beta2_object_metric_source_H_ -#define _v2beta2_object_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_object_metric_source_t v2beta2_object_metric_source_t; - -#include "v2beta2_cross_version_object_reference.h" -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_object_metric_source_t { - struct v2beta2_cross_version_object_reference_t *described_object; //model - struct v2beta2_metric_identifier_t *metric; //model - struct v2beta2_metric_target_t *target; //model - -} v2beta2_object_metric_source_t; - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_create( - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target -); - -void v2beta2_object_metric_source_free(v2beta2_object_metric_source_t *v2beta2_object_metric_source); - -v2beta2_object_metric_source_t *v2beta2_object_metric_source_parseFromJSON(cJSON *v2beta2_object_metric_sourceJSON); - -cJSON *v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_t *v2beta2_object_metric_source); - -#endif /* _v2beta2_object_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_object_metric_status.c b/kubernetes/model/v2beta2_object_metric_status.c deleted file mode 100644 index ddf3b83..0000000 --- a/kubernetes/model/v2beta2_object_metric_status.c +++ /dev/null @@ -1,160 +0,0 @@ -#include -#include -#include -#include "v2beta2_object_metric_status.h" - - - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric - ) { - v2beta2_object_metric_status_t *v2beta2_object_metric_status_local_var = malloc(sizeof(v2beta2_object_metric_status_t)); - if (!v2beta2_object_metric_status_local_var) { - return NULL; - } - v2beta2_object_metric_status_local_var->current = current; - v2beta2_object_metric_status_local_var->described_object = described_object; - v2beta2_object_metric_status_local_var->metric = metric; - - return v2beta2_object_metric_status_local_var; -} - - -void v2beta2_object_metric_status_free(v2beta2_object_metric_status_t *v2beta2_object_metric_status) { - if(NULL == v2beta2_object_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_object_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_object_metric_status->current); - v2beta2_object_metric_status->current = NULL; - } - if (v2beta2_object_metric_status->described_object) { - v2beta2_cross_version_object_reference_free(v2beta2_object_metric_status->described_object); - v2beta2_object_metric_status->described_object = NULL; - } - if (v2beta2_object_metric_status->metric) { - v2beta2_metric_identifier_free(v2beta2_object_metric_status->metric); - v2beta2_object_metric_status->metric = NULL; - } - free(v2beta2_object_metric_status); -} - -cJSON *v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_t *v2beta2_object_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_object_metric_status->current - if (!v2beta2_object_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_object_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_status->described_object - if (!v2beta2_object_metric_status->described_object) { - goto fail; - } - cJSON *described_object_local_JSON = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_object_metric_status->described_object); - if(described_object_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "describedObject", described_object_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_object_metric_status->metric - if (!v2beta2_object_metric_status->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_object_metric_status->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_parseFromJSON(cJSON *v2beta2_object_metric_statusJSON){ - - v2beta2_object_metric_status_t *v2beta2_object_metric_status_local_var = NULL; - - // define the local variable for v2beta2_object_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_status->described_object - v2beta2_cross_version_object_reference_t *described_object_local_nonprim = NULL; - - // define the local variable for v2beta2_object_metric_status->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // v2beta2_object_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_object_metric_status->described_object - cJSON *described_object = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_statusJSON, "describedObject"); - if (!described_object) { - goto end; - } - - - described_object_local_nonprim = v2beta2_cross_version_object_reference_parseFromJSON(described_object); //nonprimitive - - // v2beta2_object_metric_status->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_object_metric_statusJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - - v2beta2_object_metric_status_local_var = v2beta2_object_metric_status_create ( - current_local_nonprim, - described_object_local_nonprim, - metric_local_nonprim - ); - - return v2beta2_object_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - if (described_object_local_nonprim) { - v2beta2_cross_version_object_reference_free(described_object_local_nonprim); - described_object_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_object_metric_status.h b/kubernetes/model/v2beta2_object_metric_status.h deleted file mode 100644 index 8579691..0000000 --- a/kubernetes/model/v2beta2_object_metric_status.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * v2beta2_object_metric_status.h - * - * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). - */ - -#ifndef _v2beta2_object_metric_status_H_ -#define _v2beta2_object_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_object_metric_status_t v2beta2_object_metric_status_t; - -#include "v2beta2_cross_version_object_reference.h" -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_object_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - struct v2beta2_cross_version_object_reference_t *described_object; //model - struct v2beta2_metric_identifier_t *metric; //model - -} v2beta2_object_metric_status_t; - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_cross_version_object_reference_t *described_object, - v2beta2_metric_identifier_t *metric -); - -void v2beta2_object_metric_status_free(v2beta2_object_metric_status_t *v2beta2_object_metric_status); - -v2beta2_object_metric_status_t *v2beta2_object_metric_status_parseFromJSON(cJSON *v2beta2_object_metric_statusJSON); - -cJSON *v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_t *v2beta2_object_metric_status); - -#endif /* _v2beta2_object_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_pods_metric_source.c b/kubernetes/model/v2beta2_pods_metric_source.c deleted file mode 100644 index 484156f..0000000 --- a/kubernetes/model/v2beta2_pods_metric_source.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_pods_metric_source.h" - - - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target - ) { - v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_local_var = malloc(sizeof(v2beta2_pods_metric_source_t)); - if (!v2beta2_pods_metric_source_local_var) { - return NULL; - } - v2beta2_pods_metric_source_local_var->metric = metric; - v2beta2_pods_metric_source_local_var->target = target; - - return v2beta2_pods_metric_source_local_var; -} - - -void v2beta2_pods_metric_source_free(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source) { - if(NULL == v2beta2_pods_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_pods_metric_source->metric) { - v2beta2_metric_identifier_free(v2beta2_pods_metric_source->metric); - v2beta2_pods_metric_source->metric = NULL; - } - if (v2beta2_pods_metric_source->target) { - v2beta2_metric_target_free(v2beta2_pods_metric_source->target); - v2beta2_pods_metric_source->target = NULL; - } - free(v2beta2_pods_metric_source); -} - -cJSON *v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_pods_metric_source->metric - if (!v2beta2_pods_metric_source->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_pods_metric_source->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_pods_metric_source->target - if (!v2beta2_pods_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_pods_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_parseFromJSON(cJSON *v2beta2_pods_metric_sourceJSON){ - - v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_local_var = NULL; - - // define the local variable for v2beta2_pods_metric_source->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // define the local variable for v2beta2_pods_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_pods_metric_source->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_sourceJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - // v2beta2_pods_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_pods_metric_source_local_var = v2beta2_pods_metric_source_create ( - metric_local_nonprim, - target_local_nonprim - ); - - return v2beta2_pods_metric_source_local_var; -end: - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_pods_metric_source.h b/kubernetes/model/v2beta2_pods_metric_source.h deleted file mode 100644 index 297dd7a..0000000 --- a/kubernetes/model/v2beta2_pods_metric_source.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_pods_metric_source.h - * - * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. - */ - -#ifndef _v2beta2_pods_metric_source_H_ -#define _v2beta2_pods_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_pods_metric_source_t v2beta2_pods_metric_source_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_pods_metric_source_t { - struct v2beta2_metric_identifier_t *metric; //model - struct v2beta2_metric_target_t *target; //model - -} v2beta2_pods_metric_source_t; - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_create( - v2beta2_metric_identifier_t *metric, - v2beta2_metric_target_t *target -); - -void v2beta2_pods_metric_source_free(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source); - -v2beta2_pods_metric_source_t *v2beta2_pods_metric_source_parseFromJSON(cJSON *v2beta2_pods_metric_sourceJSON); - -cJSON *v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_t *v2beta2_pods_metric_source); - -#endif /* _v2beta2_pods_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_pods_metric_status.c b/kubernetes/model/v2beta2_pods_metric_status.c deleted file mode 100644 index 1dacde3..0000000 --- a/kubernetes/model/v2beta2_pods_metric_status.c +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include -#include -#include "v2beta2_pods_metric_status.h" - - - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric - ) { - v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_local_var = malloc(sizeof(v2beta2_pods_metric_status_t)); - if (!v2beta2_pods_metric_status_local_var) { - return NULL; - } - v2beta2_pods_metric_status_local_var->current = current; - v2beta2_pods_metric_status_local_var->metric = metric; - - return v2beta2_pods_metric_status_local_var; -} - - -void v2beta2_pods_metric_status_free(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status) { - if(NULL == v2beta2_pods_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_pods_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_pods_metric_status->current); - v2beta2_pods_metric_status->current = NULL; - } - if (v2beta2_pods_metric_status->metric) { - v2beta2_metric_identifier_free(v2beta2_pods_metric_status->metric); - v2beta2_pods_metric_status->metric = NULL; - } - free(v2beta2_pods_metric_status); -} - -cJSON *v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_pods_metric_status->current - if (!v2beta2_pods_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_pods_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_pods_metric_status->metric - if (!v2beta2_pods_metric_status->metric) { - goto fail; - } - cJSON *metric_local_JSON = v2beta2_metric_identifier_convertToJSON(v2beta2_pods_metric_status->metric); - if(metric_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "metric", metric_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_parseFromJSON(cJSON *v2beta2_pods_metric_statusJSON){ - - v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_local_var = NULL; - - // define the local variable for v2beta2_pods_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // define the local variable for v2beta2_pods_metric_status->metric - v2beta2_metric_identifier_t *metric_local_nonprim = NULL; - - // v2beta2_pods_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_pods_metric_status->metric - cJSON *metric = cJSON_GetObjectItemCaseSensitive(v2beta2_pods_metric_statusJSON, "metric"); - if (!metric) { - goto end; - } - - - metric_local_nonprim = v2beta2_metric_identifier_parseFromJSON(metric); //nonprimitive - - - v2beta2_pods_metric_status_local_var = v2beta2_pods_metric_status_create ( - current_local_nonprim, - metric_local_nonprim - ); - - return v2beta2_pods_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - if (metric_local_nonprim) { - v2beta2_metric_identifier_free(metric_local_nonprim); - metric_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_pods_metric_status.h b/kubernetes/model/v2beta2_pods_metric_status.h deleted file mode 100644 index 132a17e..0000000 --- a/kubernetes/model/v2beta2_pods_metric_status.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * v2beta2_pods_metric_status.h - * - * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). - */ - -#ifndef _v2beta2_pods_metric_status_H_ -#define _v2beta2_pods_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_pods_metric_status_t v2beta2_pods_metric_status_t; - -#include "v2beta2_metric_identifier.h" -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_pods_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - struct v2beta2_metric_identifier_t *metric; //model - -} v2beta2_pods_metric_status_t; - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_create( - v2beta2_metric_value_status_t *current, - v2beta2_metric_identifier_t *metric -); - -void v2beta2_pods_metric_status_free(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status); - -v2beta2_pods_metric_status_t *v2beta2_pods_metric_status_parseFromJSON(cJSON *v2beta2_pods_metric_statusJSON); - -cJSON *v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_t *v2beta2_pods_metric_status); - -#endif /* _v2beta2_pods_metric_status_H_ */ - diff --git a/kubernetes/model/v2beta2_resource_metric_source.c b/kubernetes/model/v2beta2_resource_metric_source.c deleted file mode 100644 index e6e3db8..0000000 --- a/kubernetes/model/v2beta2_resource_metric_source.c +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include -#include -#include "v2beta2_resource_metric_source.h" - - - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_create( - char *name, - v2beta2_metric_target_t *target - ) { - v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_local_var = malloc(sizeof(v2beta2_resource_metric_source_t)); - if (!v2beta2_resource_metric_source_local_var) { - return NULL; - } - v2beta2_resource_metric_source_local_var->name = name; - v2beta2_resource_metric_source_local_var->target = target; - - return v2beta2_resource_metric_source_local_var; -} - - -void v2beta2_resource_metric_source_free(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source) { - if(NULL == v2beta2_resource_metric_source){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_resource_metric_source->name) { - free(v2beta2_resource_metric_source->name); - v2beta2_resource_metric_source->name = NULL; - } - if (v2beta2_resource_metric_source->target) { - v2beta2_metric_target_free(v2beta2_resource_metric_source->target); - v2beta2_resource_metric_source->target = NULL; - } - free(v2beta2_resource_metric_source); -} - -cJSON *v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_resource_metric_source->name - if (!v2beta2_resource_metric_source->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_resource_metric_source->name) == NULL) { - goto fail; //String - } - - - // v2beta2_resource_metric_source->target - if (!v2beta2_resource_metric_source->target) { - goto fail; - } - cJSON *target_local_JSON = v2beta2_metric_target_convertToJSON(v2beta2_resource_metric_source->target); - if(target_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "target", target_local_JSON); - if(item->child == NULL) { - goto fail; - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_parseFromJSON(cJSON *v2beta2_resource_metric_sourceJSON){ - - v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_local_var = NULL; - - // define the local variable for v2beta2_resource_metric_source->target - v2beta2_metric_target_t *target_local_nonprim = NULL; - - // v2beta2_resource_metric_source->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_sourceJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - // v2beta2_resource_metric_source->target - cJSON *target = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_sourceJSON, "target"); - if (!target) { - goto end; - } - - - target_local_nonprim = v2beta2_metric_target_parseFromJSON(target); //nonprimitive - - - v2beta2_resource_metric_source_local_var = v2beta2_resource_metric_source_create ( - strdup(name->valuestring), - target_local_nonprim - ); - - return v2beta2_resource_metric_source_local_var; -end: - if (target_local_nonprim) { - v2beta2_metric_target_free(target_local_nonprim); - target_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_resource_metric_source.h b/kubernetes/model/v2beta2_resource_metric_source.h deleted file mode 100644 index 7347442..0000000 --- a/kubernetes/model/v2beta2_resource_metric_source.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_resource_metric_source.h - * - * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. - */ - -#ifndef _v2beta2_resource_metric_source_H_ -#define _v2beta2_resource_metric_source_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_resource_metric_source_t v2beta2_resource_metric_source_t; - -#include "v2beta2_metric_target.h" - - - -typedef struct v2beta2_resource_metric_source_t { - char *name; // string - struct v2beta2_metric_target_t *target; //model - -} v2beta2_resource_metric_source_t; - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_create( - char *name, - v2beta2_metric_target_t *target -); - -void v2beta2_resource_metric_source_free(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source); - -v2beta2_resource_metric_source_t *v2beta2_resource_metric_source_parseFromJSON(cJSON *v2beta2_resource_metric_sourceJSON); - -cJSON *v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_t *v2beta2_resource_metric_source); - -#endif /* _v2beta2_resource_metric_source_H_ */ - diff --git a/kubernetes/model/v2beta2_resource_metric_status.c b/kubernetes/model/v2beta2_resource_metric_status.c deleted file mode 100644 index 9efe5f5..0000000 --- a/kubernetes/model/v2beta2_resource_metric_status.c +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include -#include -#include "v2beta2_resource_metric_status.h" - - - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_create( - v2beta2_metric_value_status_t *current, - char *name - ) { - v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_local_var = malloc(sizeof(v2beta2_resource_metric_status_t)); - if (!v2beta2_resource_metric_status_local_var) { - return NULL; - } - v2beta2_resource_metric_status_local_var->current = current; - v2beta2_resource_metric_status_local_var->name = name; - - return v2beta2_resource_metric_status_local_var; -} - - -void v2beta2_resource_metric_status_free(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status) { - if(NULL == v2beta2_resource_metric_status){ - return ; - } - listEntry_t *listEntry; - if (v2beta2_resource_metric_status->current) { - v2beta2_metric_value_status_free(v2beta2_resource_metric_status->current); - v2beta2_resource_metric_status->current = NULL; - } - if (v2beta2_resource_metric_status->name) { - free(v2beta2_resource_metric_status->name); - v2beta2_resource_metric_status->name = NULL; - } - free(v2beta2_resource_metric_status); -} - -cJSON *v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status) { - cJSON *item = cJSON_CreateObject(); - - // v2beta2_resource_metric_status->current - if (!v2beta2_resource_metric_status->current) { - goto fail; - } - cJSON *current_local_JSON = v2beta2_metric_value_status_convertToJSON(v2beta2_resource_metric_status->current); - if(current_local_JSON == NULL) { - goto fail; //model - } - cJSON_AddItemToObject(item, "current", current_local_JSON); - if(item->child == NULL) { - goto fail; - } - - - // v2beta2_resource_metric_status->name - if (!v2beta2_resource_metric_status->name) { - goto fail; - } - if(cJSON_AddStringToObject(item, "name", v2beta2_resource_metric_status->name) == NULL) { - goto fail; //String - } - - return item; -fail: - if (item) { - cJSON_Delete(item); - } - return NULL; -} - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_parseFromJSON(cJSON *v2beta2_resource_metric_statusJSON){ - - v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_local_var = NULL; - - // define the local variable for v2beta2_resource_metric_status->current - v2beta2_metric_value_status_t *current_local_nonprim = NULL; - - // v2beta2_resource_metric_status->current - cJSON *current = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_statusJSON, "current"); - if (!current) { - goto end; - } - - - current_local_nonprim = v2beta2_metric_value_status_parseFromJSON(current); //nonprimitive - - // v2beta2_resource_metric_status->name - cJSON *name = cJSON_GetObjectItemCaseSensitive(v2beta2_resource_metric_statusJSON, "name"); - if (!name) { - goto end; - } - - - if(!cJSON_IsString(name)) - { - goto end; //String - } - - - v2beta2_resource_metric_status_local_var = v2beta2_resource_metric_status_create ( - current_local_nonprim, - strdup(name->valuestring) - ); - - return v2beta2_resource_metric_status_local_var; -end: - if (current_local_nonprim) { - v2beta2_metric_value_status_free(current_local_nonprim); - current_local_nonprim = NULL; - } - return NULL; - -} diff --git a/kubernetes/model/v2beta2_resource_metric_status.h b/kubernetes/model/v2beta2_resource_metric_status.h deleted file mode 100644 index c77fce4..0000000 --- a/kubernetes/model/v2beta2_resource_metric_status.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * v2beta2_resource_metric_status.h - * - * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. - */ - -#ifndef _v2beta2_resource_metric_status_H_ -#define _v2beta2_resource_metric_status_H_ - -#include -#include "../external/cJSON.h" -#include "../include/list.h" -#include "../include/keyValuePair.h" -#include "../include/binary.h" - -typedef struct v2beta2_resource_metric_status_t v2beta2_resource_metric_status_t; - -#include "v2beta2_metric_value_status.h" - - - -typedef struct v2beta2_resource_metric_status_t { - struct v2beta2_metric_value_status_t *current; //model - char *name; // string - -} v2beta2_resource_metric_status_t; - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_create( - v2beta2_metric_value_status_t *current, - char *name -); - -void v2beta2_resource_metric_status_free(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status); - -v2beta2_resource_metric_status_t *v2beta2_resource_metric_status_parseFromJSON(cJSON *v2beta2_resource_metric_statusJSON); - -cJSON *v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_t *v2beta2_resource_metric_status); - -#endif /* _v2beta2_resource_metric_status_H_ */ - diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index 427278a..f2731a8 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -140,28 +140,32 @@ "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "apiVersions": { "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "operations": { "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "resources": { "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "scope": { "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", @@ -344,6 +348,312 @@ }, "type": "object" }, + "v1alpha1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/definitions/v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/definitions/v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ParamRef": { + "description": "ParamRef references a parameter resource", + "properties": { + "name": { + "description": "Name of the resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referenced resource. Should be empty for the cluster-scoped resources", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "v1alpha1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/definitions/v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/definitions/v1alpha1.ParamRef", + "description": "ParamRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "failurePolicy": { + "description": "FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. Allowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConstraints": { + "$ref": "#/definitions/v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/definitions/v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.", + "items": { + "$ref": "#/definitions/v1alpha1.Validation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "validations" + ], + "type": "object" + }, + "v1alpha1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the Admission request/response, organized into CEL variables as well as some other useful variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": "string" + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, "v1alpha1.ServerStorageVersion": { "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", "properties": { @@ -1164,7 +1474,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -1316,6 +1626,17 @@ } ] }, + "v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", "properties": { @@ -1338,6 +1659,10 @@ "format": "int32", "type": "integer" }, + "ordinals": { + "$ref": "#/definitions/v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is alpha." + }, "persistentVolumeClaimRetentionPolicy": { "$ref": "#/definitions/v1.StatefulSetPersistentVolumeClaimRetentionPolicy", "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional" @@ -1366,7 +1691,7 @@ }, "template": { "$ref": "#/definitions/v1.PodTemplateSpec", - "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet." + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\"." }, "updateStrategy": { "$ref": "#/definitions/v1.StatefulSetUpdateStrategy", @@ -1673,6 +1998,45 @@ }, "type": "object" }, + "v1alpha1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, "v1.LocalSubjectAccessReview": { "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", "properties": { @@ -2054,7 +2418,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2317,7 +2681,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2860,593 +3224,6 @@ ], "type": "object" }, - "v2beta2.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target", - "container" - ], - "type": "object" - }, - "v2beta2.ContainerResourceMetricStatus": { - "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "container": { - "description": "Container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "current", - "container" - ], - "type": "object" - }, - "v2beta2.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "v2beta2.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", - "properties": { - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "metric", - "target" - ], - "type": "object" - }, - "v2beta2.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "v2beta2.HPAScalingPolicy": { - "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", - "properties": { - "periodSeconds": { - "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "Type is used to specify the scaling policy.", - "type": "string" - }, - "value": { - "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "type", - "value", - "periodSeconds" - ], - "type": "object" - }, - "v2beta2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", - "properties": { - "policies": { - "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", - "items": { - "$ref": "#/definitions/v2beta2.HPAScalingPolicy" - }, - "type": "array" - }, - "selectPolicy": { - "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", - "type": "string" - }, - "stabilizationWindowSeconds": { - "description": "StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "v2beta2.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." - }, - "status": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - ] - }, - "v2beta2.HorizontalPodAutoscalerBehavior": { - "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", - "properties": { - "scaleDown": { - "$ref": "#/definitions/v2beta2.HPAScalingRules", - "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." - }, - "scaleUp": { - "$ref": "#/definitions/v2beta2.HPAScalingRules", - "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." - } - }, - "type": "object" - }, - "v2beta2.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "properties": { - "lastTransitionTime": { - "description": "lastTransitionTime is the last time the condition transitioned from one status to another", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "message is a human-readable explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" - }, - "type": { - "description": "type describes the current condition", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "v2beta2.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "metadata is the standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta2" - } - ] - }, - "v2beta2.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "properties": { - "behavior": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerBehavior", - "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." - }, - "maxReplicas": { - "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - "format": "int32", - "type": "integer" - }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", - "items": { - "$ref": "#/definitions/v2beta2.MetricSpec" - }, - "type": "array" - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "v2beta2.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/v2beta2.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "format": "date-time", - "type": "string" - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "type": "object" - }, - "v2beta2.MetricIdentifier": { - "description": "MetricIdentifier defines the name and optionally selector for a metric", - "properties": { - "name": { - "description": "name is the name of the given metric", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "v2beta2.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta2.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/v2beta2.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta2.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta2.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/v2beta2.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "type": { - "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v2beta2.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "properties": { - "containerResource": { - "$ref": "#/definitions/v2beta2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/v2beta2.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/v2beta2.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/v2beta2.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/v2beta2.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "type": { - "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v2beta2.MetricTarget": { - "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", - "properties": { - "averageUtilization": { - "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - }, - "type": { - "description": "type represents whether the metric type is Utilization, Value, or AverageValue", - "type": "string" - }, - "value": { - "description": "value is the target value of the metric (as a quantity).", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v2beta2.MetricValueStatus": { - "description": "MetricValueStatus holds the current value for a metric", - "properties": { - "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "type": "string" - }, - "value": { - "description": "value is the current value of the metric (as a quantity).", - "type": "string" - } - }, - "type": "object" - }, - "v2beta2.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "describedObject": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "describedObject", - "target", - "metric" - ], - "type": "object" - }, - "v2beta2.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "describedObject": { - "$ref": "#/definitions/v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current", - "describedObject" - ], - "type": "object" - }, - "v2beta2.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "properties": { - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "metric", - "target" - ], - "type": "object" - }, - "v2beta2.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "metric": { - "$ref": "#/definitions/v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "v2beta2.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "target": { - "$ref": "#/definitions/v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target" - ], - "type": "object" - }, - "v2beta2.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "current": { - "$ref": "#/definitions/v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "current" - ], - "type": "object" - }, "v1.CronJob": { "description": "CronJob represents the configuration of a single cron job.", "properties": { @@ -3795,7 +3572,7 @@ }, "uncountedTerminatedPods": { "$ref": "#/definitions/v1.UncountedTerminatedPods", - "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nThis field is beta-level. The job controller only makes use of this field when the feature gate JobTrackingWithFinalizers is enabled (enabled by default). Old jobs might not be tracked using this field, in which case the field remains null." + "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null." } }, "type": "object" @@ -4608,6 +4385,20 @@ ], "type": "object" }, + "v1.ClaimSource": { + "description": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.", + "properties": { + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be -, where is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.", + "type": "string" + } + }, + "type": "object" + }, "v1.ClientIPConfig": { "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", "properties": { @@ -6902,7 +6693,7 @@ "properties": { "configSource": { "$ref": "#/definitions/v1.NodeConfigSource", - "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26." + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." }, "externalID": { "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", @@ -6942,7 +6733,7 @@ "description": "NodeStatus is information about the current status of a node.", "properties": { "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.", + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example.", "items": { "$ref": "#/definitions/v1.NodeAddress" }, @@ -7273,11 +7064,11 @@ }, "dataSource": { "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." }, "dataSourceRef": { - "$ref": "#/definitions/v1.TypedLocalObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled." + "$ref": "#/definitions/v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/v1.ResourceRequirements", @@ -7837,6 +7628,36 @@ ], "type": "object" }, + "v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "source": { + "$ref": "#/definitions/v1.ClaimSource", + "description": "Source describes where to find the ResourceClaim." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.PodSecurityContext": { "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", "properties": { @@ -7872,7 +7693,7 @@ "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." }, "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.", + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", "items": { "format": "int64", "type": "integer" @@ -8030,6 +7851,19 @@ }, "type": "array" }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1.PodResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, "restartPolicy": { "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n\n", "type": "string" @@ -8042,6 +7876,19 @@ "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", "type": "string" }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.", + "items": { + "$ref": "#/definitions/v1.PodSchedulingGate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "securityContext": { "$ref": "#/definitions/v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." @@ -8679,7 +8526,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -8689,6 +8536,19 @@ ], "type": "object" }, + "v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.ResourceFieldSelector": { "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", "properties": { @@ -8829,6 +8689,17 @@ "v1.ResourceRequirements": { "description": "ResourceRequirements describes the compute resource requirements.", "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1.ResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, "limits": { "additionalProperties": { "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", @@ -9820,11 +9691,11 @@ "type": "integer" }, "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "topologyKey": { @@ -9866,6 +9737,31 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, + "v1.TypedObjectReference": { + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, "v1.Volume": { "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "properties": { @@ -10201,11 +10097,11 @@ "type": "boolean" }, "serving": { - "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", "type": "boolean" }, "terminating": { - "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", "type": "boolean" } }, @@ -10489,557 +10385,6 @@ ], "type": "object" }, - "v1beta1.FlowDistinguisherMethod": { - "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", - "properties": { - "type": { - "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "v1beta1.FlowSchema": { - "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1beta1.FlowSchemaSpec", - "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1beta1.FlowSchemaStatus", - "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - ] - }, - "v1beta1.FlowSchemaCondition": { - "description": "FlowSchemaCondition describes conditions for a FlowSchema.", - "properties": { - "lastTransitionTime": { - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "`message` is a human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", - "type": "string" - }, - "type": { - "description": "`type` is the type of the condition. Required.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.FlowSchemaList": { - "description": "FlowSchemaList is a list of FlowSchema objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "`items` is a list of FlowSchemas.", - "items": { - "$ref": "#/definitions/v1beta1.FlowSchema" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchemaList", - "version": "v1beta1" - } - ] - }, - "v1beta1.FlowSchemaSpec": { - "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", - "properties": { - "distinguisherMethod": { - "$ref": "#/definitions/v1beta1.FlowDistinguisherMethod", - "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." - }, - "matchingPrecedence": { - "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", - "format": "int32", - "type": "integer" - }, - "priorityLevelConfiguration": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationReference", - "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." - }, - "rules": { - "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", - "items": { - "$ref": "#/definitions/v1beta1.PolicyRulesWithSubjects" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "priorityLevelConfiguration" - ], - "type": "object" - }, - "v1beta1.FlowSchemaStatus": { - "description": "FlowSchemaStatus represents the current state of a FlowSchema.", - "properties": { - "conditions": { - "description": "`conditions` is a list of the current states of FlowSchema.", - "items": { - "$ref": "#/definitions/v1beta1.FlowSchemaCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "v1beta1.GroupSubject": { - "description": "GroupSubject holds detailed information for group-kind subject.", - "properties": { - "name": { - "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "v1beta1.LimitResponse": { - "description": "LimitResponse defines how to handle requests that can not be executed right now.", - "properties": { - "queuing": { - "$ref": "#/definitions/v1beta1.QueuingConfiguration", - "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." - }, - "type": { - "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "type", - "fields-to-discriminateBy": { - "queuing": "Queuing" - } - } - ] - }, - "v1beta1.LimitedPriorityLevelConfiguration": { - "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", - "properties": { - "assuredConcurrencyShares": { - "description": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:\n\n ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )\n\nbigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.", - "format": "int32", - "type": "integer" - }, - "limitResponse": { - "$ref": "#/definitions/v1beta1.LimitResponse", - "description": "`limitResponse` indicates what to do with requests that can not be executed right now" - } - }, - "type": "object" - }, - "v1beta1.NonResourcePolicyRule": { - "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", - "properties": { - "nonResourceURLs": { - "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "verbs": { - "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "required": [ - "verbs", - "nonResourceURLs" - ], - "type": "object" - }, - "v1beta1.PolicyRulesWithSubjects": { - "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", - "properties": { - "nonResourceRules": { - "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", - "items": { - "$ref": "#/definitions/v1beta1.NonResourcePolicyRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resourceRules": { - "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", - "items": { - "$ref": "#/definitions/v1beta1.ResourcePolicyRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "subjects": { - "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", - "items": { - "$ref": "#/definitions/v1beta1.Subject" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "subjects" - ], - "type": "object" - }, - "v1beta1.PriorityLevelConfiguration": { - "description": "PriorityLevelConfiguration represents the configuration of a priority level.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationSpec", - "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationStatus", - "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - ] - }, - "v1beta1.PriorityLevelConfigurationCondition": { - "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", - "properties": { - "lastTransitionTime": { - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", - "format": "date-time", - "type": "string" - }, - "message": { - "description": "`message` is a human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", - "type": "string" - }, - "type": { - "description": "`type` is the type of the condition. Required.", - "type": "string" - } - }, - "type": "object" - }, - "v1beta1.PriorityLevelConfigurationList": { - "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "`items` is a list of request-priorities.", - "items": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/v1.ListMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfigurationList", - "version": "v1beta1" - } - ] - }, - "v1beta1.PriorityLevelConfigurationReference": { - "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", - "properties": { - "name": { - "description": "`name` is the name of the priority level configuration being referenced Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "v1beta1.PriorityLevelConfigurationSpec": { - "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", - "properties": { - "limited": { - "$ref": "#/definitions/v1beta1.LimitedPriorityLevelConfiguration", - "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." - }, - "type": { - "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "type", - "fields-to-discriminateBy": { - "limited": "Limited" - } - } - ] - }, - "v1beta1.PriorityLevelConfigurationStatus": { - "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", - "properties": { - "conditions": { - "description": "`conditions` is the current state of \"request-priority\".", - "items": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "v1beta1.QueuingConfiguration": { - "description": "QueuingConfiguration holds the configuration parameters for queuing", - "properties": { - "handSize": { - "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", - "format": "int32", - "type": "integer" - }, - "queueLengthLimit": { - "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", - "format": "int32", - "type": "integer" - }, - "queues": { - "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "v1beta1.ResourcePolicyRule": { - "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", - "properties": { - "apiGroups": { - "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "clusterScope": { - "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", - "type": "boolean" - }, - "namespaces": { - "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "resources": { - "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "verbs": { - "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "required": [ - "verbs", - "apiGroups", - "resources" - ], - "type": "object" - }, - "v1beta1.ServiceAccountSubject": { - "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", - "properties": { - "name": { - "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", - "type": "string" - }, - "namespace": { - "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", - "type": "string" - } - }, - "required": [ - "namespace", - "name" - ], - "type": "object" - }, - "v1beta1.Subject": { - "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", - "properties": { - "group": { - "$ref": "#/definitions/v1beta1.GroupSubject", - "description": "`group` matches based on user group name." - }, - "kind": { - "description": "`kind` indicates which one of the other fields is non-empty. Required", - "type": "string" - }, - "serviceAccount": { - "$ref": "#/definitions/v1beta1.ServiceAccountSubject", - "description": "`serviceAccount` matches ServiceAccounts." - }, - "user": { - "$ref": "#/definitions/v1beta1.UserSubject", - "description": "`user` matches based on username." - } - }, - "required": [ - "kind" - ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "kind", - "fields-to-discriminateBy": { - "group": "Group", - "serviceAccount": "ServiceAccount", - "user": "User" - } - } - ] - }, - "v1beta1.UserSubject": { - "description": "UserSubject holds detailed information for user-kind subject.", - "properties": { - "name": { - "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, "v1beta2.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { @@ -11241,6 +10586,16 @@ "format": "int32", "type": "integer" }, + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, "limitResponse": { "$ref": "#/definitions/v1beta2.LimitResponse", "description": "`limitResponse` indicates what to do with requests that can not be executed right now" @@ -11591,6 +10946,571 @@ ], "type": "object" }, + "v1beta3.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "v1beta3.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1beta3.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1beta3.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + ] + }, + "v1beta3.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta3.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/definitions/v1beta3.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1beta3" + } + ] + }, + "v1beta3.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/definitions/v1beta3.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": "integer" + }, + "priorityLevelConfiguration": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/definitions/v1beta3.PolicyRulesWithSubjects" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object" + }, + "v1beta3.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/definitions/v1beta3.FlowSchemaCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1beta3.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1beta3.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/definitions/v1beta3.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ] + }, + "v1beta3.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "limitResponse": { + "$ref": "#/definitions/v1beta3.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1beta3.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object" + }, + "v1beta3.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/definitions/v1beta3.NonResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/definitions/v1beta3.ResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/definitions/v1beta3.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object" + }, + "v1beta3.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + ] + }, + "v1beta3.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another.", + "format": "date-time", + "type": "string" + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1beta3.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1beta3" + } + ] + }, + "v1beta3.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1beta3.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "limited": { + "$ref": "#/definitions/v1beta3.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "limited": "Limited" + } + } + ] + }, + "v1beta3.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1beta3.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": "integer" + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": "integer" + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "v1beta3.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": "boolean" + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object" + }, + "v1beta3.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object" + }, + "v1beta3.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/definitions/v1beta3.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/definitions/v1beta3.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/definitions/v1beta3.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ] + }, + "v1beta3.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "v1.HTTPIngressPath": { "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "properties": { @@ -11631,14 +11551,14 @@ "type": "object" }, "v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", "properties": { "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"", + "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", "type": "string" }, "except": { - "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range", + "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the CIDR range", "items": { "type": "string" }, @@ -11840,6 +11760,64 @@ } ] }, + "v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based.", + "type": "string" + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based.", + "type": "string" + }, + "ports": { + "description": "Ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/definitions/v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/v1.IngressLoadBalancerIngress" + }, + "type": "array" + } + }, + "type": "object" + }, + "v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": "string" + }, + "port": { + "description": "Port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"\n\n", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, "v1.IngressRule": { "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", "properties": { @@ -11904,7 +11882,7 @@ "description": "IngressStatus describe the current state of the Ingress.", "properties": { "loadBalancer": { - "$ref": "#/definitions/v1.LoadBalancerStatus", + "$ref": "#/definitions/v1.IngressLoadBalancerStatus", "description": "LoadBalancer contains the current status of the load-balancer." } }, @@ -12213,7 +12191,7 @@ "type": "string" }, "ipv6": { - "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", + "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", "type": "string" }, "nodeSelector": { @@ -12454,6 +12432,10 @@ "$ref": "#/definitions/v1.LabelSelector", "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default).", + "type": "string" } }, "type": "object" @@ -12911,6 +12893,503 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, + "v1alpha1.AllocationResult": { + "description": "AllocationResult contains attributed of an allocated resource.", + "properties": { + "availableOnNodes": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere." + }, + "resourceHandle": { + "description": "ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.", + "type": "string" + }, + "shareable": { + "description": "Shareable determines whether the resource supports more than one consumer at a time.", + "type": "boolean" + } + }, + "type": "object" + }, + "v1alpha1.PodScheduling": { + "description": "PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/v1alpha1.PodSchedulingSpec", + "description": "Spec describes where resources for the Pod are needed." + }, + "status": { + "$ref": "#/definitions/v1alpha1.PodSchedulingStatus", + "description": "Status describes where resources for the Pod can be allocated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.PodSchedulingList": { + "description": "PodSchedulingList is a collection of Pod scheduling objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of PodScheduling objects.", + "items": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.PodSchedulingSpec": { + "description": "PodSchedulingSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": "string" + } + }, + "type": "object" + }, + "v1alpha1.PodSchedulingStatus": { + "description": "PodSchedulingStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "#/definitions/v1alpha1.ResourceClaimSchedulingStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "v1alpha1.ResourceClaim": { + "description": "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ResourceClaimSpec", + "description": "Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim." + }, + "status": { + "$ref": "#/definitions/v1alpha1.ResourceClaimStatus", + "description": "Status describes whether the resource is available and with which attributes." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ResourceClaimConsumerReference": { + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": "string" + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": "string" + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": "object" + }, + "v1alpha1.ResourceClaimList": { + "description": "ResourceClaimList is a collection of claims.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource claims.", + "items": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ResourceClaimParametersReference": { + "description": "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "v1alpha1.ResourceClaimSchedulingStatus": { + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": "string" + }, + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "v1alpha1.ResourceClaimSpec": { + "description": "ResourceClaimSpec defines how a resource is to be allocated.", + "properties": { + "allocationMode": { + "description": "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.", + "type": "string" + }, + "parametersRef": { + "$ref": "#/definitions/v1alpha1.ResourceClaimParametersReference", + "description": "ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.\n\nThe object must be in the same namespace as the ResourceClaim." + }, + "resourceClassName": { + "description": "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.", + "type": "string" + } + }, + "required": [ + "resourceClassName" + ], + "type": "object" + }, + "v1alpha1.ResourceClaimStatus": { + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.", + "properties": { + "allocation": { + "$ref": "#/definitions/v1alpha1.AllocationResult", + "description": "Allocation is set by the resource driver once a resource has been allocated successfully. If this is not specified, the resource is not yet allocated." + }, + "deallocationRequested": { + "description": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.", + "type": "boolean" + }, + "driverName": { + "description": "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.", + "type": "string" + }, + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", + "items": { + "$ref": "#/definitions/v1alpha1.ResourceClaimConsumerReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "v1alpha1.ResourceClaimTemplate": { + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ResourceClaimTemplateList": { + "description": "ResourceClaimTemplateList is a collection of claim templates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource claim templates.", + "items": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ResourceClaimTemplateSpec": { + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", + "properties": { + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/definitions/v1alpha1.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object" + }, + "v1alpha1.ResourceClass": { + "description": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "driverName": { + "description": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata" + }, + "parametersRef": { + "$ref": "#/definitions/v1alpha1.ResourceClassParametersReference", + "description": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec." + }, + "suitableNodes": { + "$ref": "#/definitions/v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates." + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ResourceClassList": { + "description": "ResourceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClassList", + "version": "v1alpha1" + } + ] + }, + "v1alpha1.ResourceClassParametersReference": { + "description": "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, "v1.PriorityClass": { "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", "properties": { @@ -13876,7 +14355,7 @@ "description": "names specify the resource and kind names for the custom resource." }, "preserveUnknownFields": { - "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.", + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", "type": "boolean" }, "scope": { @@ -14627,6 +15106,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "DeleteOptions", @@ -14672,6 +15156,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "DeleteOptions", @@ -14777,6 +15266,11 @@ "kind": "DeleteOptions", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "DeleteOptions", @@ -14842,6 +15336,11 @@ "kind": "DeleteOptions", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "DeleteOptions", @@ -15198,6 +15697,11 @@ "group": "", "kind": "Status", "version": "v1" + }, + { + "group": "resource.k8s.io", + "kind": "Status", + "version": "v1alpha1" } ] }, @@ -15290,6 +15794,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "WatchEvent", @@ -15335,6 +15844,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "WatchEvent", @@ -15440,6 +15954,11 @@ "kind": "WatchEvent", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "WatchEvent", @@ -15505,6 +16024,11 @@ "kind": "WatchEvent", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "WatchEvent", @@ -15768,7 +16292,7 @@ }, "info": { "title": "Kubernetes", - "version": "release-1.25" + "version": "release-1.26" }, "paths": { "/.well-known/openid-configuration/": { @@ -36220,6 +36744,1559 @@ } ] }, + "/apis/admissionregistration.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ] + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicy", + "operationId": "deleteCollectionValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicy", + "operationId": "listValidatingAdmissionPolicy", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicy", + "operationId": "createValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicy", + "operationId": "deleteValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicy", + "operationId": "readValidatingAdmissionPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicy", + "operationId": "patchValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicy", + "operationId": "replaceValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicyBinding", + "operationId": "deleteCollectionValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", + "operationId": "listValidatingAdmissionPolicyBinding", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicyBinding", + "operationId": "createValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicyBinding", + "operationId": "deleteValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicyBinding", + "operationId": "readValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicyBinding", + "operationId": "patchValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicyBinding", + "operationId": "replaceValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, "/apis/apiextensions.k8s.io/": { "get": { "consumes": [ @@ -44934,6 +47011,129 @@ "x-codegen-request-body-name": "body" } }, + "/apis/authentication.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ] + } + }, + "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectReview", + "operationId": "createSelfSubjectReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.SelfSubjectReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, "/apis/authorization.k8s.io/": { "get": { "consumes": [ @@ -47859,1235 +50059,6 @@ } ] }, - "/apis/autoscaling/v2beta2/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ] - } - }, - "/apis/autoscaling/v2beta2/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, "/apis/batch/": { "get": { "consumes": [ @@ -55956,1981 +56927,6 @@ ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ] - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowSchema", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchemaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a FlowSchema", - "operationId": "createFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listPriorityLevelConfiguration", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}": { - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { "get": { "consumes": [ @@ -59906,6 +58902,1981 @@ } ] }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowSchema", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchemaList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a FlowSchema", + "operationId": "createFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listPriorityLevelConfiguration", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfigurationList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PriorityLevelConfiguration", + "operationId": "createPriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfigurationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, "/apis/internal.apiserver.k8s.io/": { "get": { "consumes": [ @@ -70582,6 +71553,4201 @@ } ] }, + "/apis/resource.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource" + ] + } + }, + "/apis/resource.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ] + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodScheduling", + "operationId": "deleteCollectionNamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodScheduling", + "operationId": "listNamespacedPodScheduling", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodSchedulingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodScheduling", + "operationId": "createNamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodScheduling", + "operationId": "deleteNamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodScheduling", + "operationId": "readNamespacedPodScheduling", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PodScheduling", + "operationId": "patchNamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodScheduling", + "operationId": "replaceNamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodScheduling", + "operationId": "readNamespacedPodSchedulingStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PodScheduling", + "operationId": "patchNamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodScheduling", + "operationId": "replaceNamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaim", + "operationId": "deleteCollectionNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listNamespacedResourceClaim", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaim", + "operationId": "createNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaim", + "operationId": "readNamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readNamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteCollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listNamespacedResourceClaimTemplate", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaimTemplate", + "operationId": "createNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readNamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/podschedulings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodScheduling", + "operationId": "listPodSchedulingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.PodSchedulingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceClaimForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceClaimTemplateForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClass", + "operationId": "deleteCollectionResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClass", + "operationId": "listResourceClass", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClass", + "operationId": "createResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClass", + "operationId": "deleteResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClass", + "operationId": "readResourceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClass", + "operationId": "patchResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClass", + "operationId": "replaceResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/podschedulings": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaims": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaimtemplates": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, "/apis/scheduling.k8s.io/": { "get": { "consumes": [ @@ -76809,6 +81975,51 @@ ] } }, + "/apis/{group}/{version}": { + "parameters": [ + { + "name": "group", + "in": "path", + "required": true, + "description": "The custom resource's group name", + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "The custom resource's version", + "type": "string" + } + ], + "get": { + "operationId": "getAPIResources", + "description": "get available resources", + "tags": [ + "custom_objects" + ], + "consumes": [ + "*/*" + ], + "produces": [ + "application/json" + ], + "schemes": [ + "https" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + } + } + }, "/apis/{group}/{version}/{plural}": { "parameters": [ { diff --git a/kubernetes/swagger.json.unprocessed b/kubernetes/swagger.json.unprocessed index 496b7ea..f274347 100644 --- a/kubernetes/swagger.json.unprocessed +++ b/kubernetes/swagger.json.unprocessed @@ -140,28 +140,32 @@ "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "apiVersions": { "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "operations": { "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "resources": { "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, - "type": "array" + "type": "array", + "x-kubernetes-list-type": "atomic" }, "scope": { "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", @@ -344,6 +348,312 @@ }, "type": "object" }, + "io.k8s.api.admissionregistration.v1alpha1.MatchResources": { + "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "properties": { + "excludeResourceRules": { + "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.\n\nDefaults to \"Equivalent\"", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", + "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "resourceRules": { + "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.NamedRuleWithOperations": { + "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", + "properties": { + "apiGroups": { + "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "apiVersions": { + "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "operations": { + "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceNames": { + "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resources": { + "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "scope": { + "description": "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamKind": { + "description": "ParamKind is a tuple of Group Kind and Version.", + "properties": { + "apiVersion": { + "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "type": "string" + }, + "kind": { + "description": "Kind is the API kind the resources belong to. Required.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ParamRef": { + "description": "ParamRef references a parameter resource", + "properties": { + "name": { + "description": "Name of the resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace of the referenced resource. Should be empty for the cluster-scoped resources", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-map-type": "atomic" + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy": { + "description": "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding": { + "description": "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec", + "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList": { + "description": "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBindingList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingSpec": { + "description": "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + }, + "paramRef": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ParamRef", + "description": "ParamRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied." + }, + "policyName": { + "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList": { + "description": "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicySpec": { + "description": "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.", + "properties": { + "failurePolicy": { + "description": "FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. Allowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConstraints": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.MatchResources", + "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + }, + "paramKind": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ParamKind", + "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + }, + "validations": { + "description": "Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.", + "items": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.Validation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "validations" + ], + "type": "object" + }, + "io.k8s.api.admissionregistration.v1alpha1.Validation": { + "description": "Validation specifies the CEL expression which is used to apply the validation.", + "properties": { + "expression": { + "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the Admission request/response, organized into CEL variables as well as some other useful variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "type": "string" + }, + "message": { + "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "type": "string" + }, + "reason": { + "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "type": "string" + } + }, + "required": [ + "expression" + ], + "type": "object" + }, "io.k8s.api.apiserverinternal.v1alpha1.ServerStorageVersion": { "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", "properties": { @@ -1163,7 +1473,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -1314,6 +1624,17 @@ } ] }, + "io.k8s.api.apps.v1.StatefulSetOrdinals": { + "description": "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + "properties": { + "start": { + "description": "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy": { "description": "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", "properties": { @@ -1336,6 +1657,10 @@ "format": "int32", "type": "integer" }, + "ordinals": { + "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetOrdinals", + "description": "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is alpha." + }, "persistentVolumeClaimRetentionPolicy": { "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy", "description": "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional" @@ -1364,7 +1689,7 @@ }, "template": { "$ref": "#/definitions/io.k8s.api.core.v1.PodTemplateSpec", - "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet." + "description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\"." }, "updateStrategy": { "$ref": "#/definitions/io.k8s.api.apps.v1.StatefulSetUpdateStrategy", @@ -1670,6 +1995,45 @@ }, "type": "object" }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReview": { + "description": "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus", + "description": "Status is filled in by the server with the user attributes." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.authentication.v1alpha1.SelfSubjectReviewStatus": { + "description": "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.", + "properties": { + "userInfo": { + "$ref": "#/definitions/io.k8s.api.authentication.v1.UserInfo", + "description": "User attributes of the user making this request." + } + }, + "type": "object" + }, "io.k8s.api.authorization.v1.LocalSubjectAccessReview": { "description": "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.", "properties": { @@ -2051,7 +2415,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2313,7 +2677,7 @@ "type": "string" }, "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", + "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "name": { @@ -2854,591 +3218,6 @@ ], "type": "object" }, - "io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource": { - "description": "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "container": { - "description": "container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricStatus": { - "description": "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "container": { - "description": "Container is the name of the container in the pods of the scaling target", - "type": "string" - }, - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "current", - "container" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference": { - "description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.", - "properties": { - "apiVersion": { - "description": "API version of the referent", - "type": "string" - }, - "kind": { - "description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"", - "type": "string" - }, - "name": { - "description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - } - }, - "required": [ - "kind", - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ExternalMetricSource": { - "description": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).", - "properties": { - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "metric", - "target" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ExternalMetricStatus": { - "description": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy": { - "description": "HPAScalingPolicy is a single policy which must hold true for a specified past interval.", - "properties": { - "periodSeconds": { - "description": "PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).", - "format": "int32", - "type": "integer" - }, - "type": { - "description": "Type is used to specify the scaling policy.", - "type": "string" - }, - "value": { - "description": "Value contains the amount of change which is permitted by the policy. It must be greater than zero", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "type", - "value", - "periodSeconds" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HPAScalingRules": { - "description": "HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.", - "properties": { - "policies": { - "description": "policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingPolicy" - }, - "type": "array" - }, - "selectPolicy": { - "description": "selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.", - "type": "string" - }, - "stabilizationWindowSeconds": { - "description": "StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler": { - "description": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec", - "description": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status." - }, - "status": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerStatus", - "description": "status is the current information about the autoscaler." - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - ] - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior": { - "description": "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).", - "properties": { - "scaleDown": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingRules", - "description": "scaleDown is scaling policy for scaling Down. If not set, the default value is to allow to scale down to minReplicas pods, with a 300 second stabilization window (i.e., the highest recommendation for the last 300sec is used)." - }, - "scaleUp": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HPAScalingRules", - "description": "scaleUp is scaling policy for scaling Up. If not set, the default value is the higher of:\n * increase no more than 4 pods per 60 seconds\n * double the number of pods per 60 seconds\nNo stabilization is used." - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerCondition": { - "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastTransitionTime is the last time the condition transitioned from one status to another" - }, - "message": { - "description": "message is a human-readable explanation containing details about the transition", - "type": "string" - }, - "reason": { - "description": "reason is the reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "status is the status of the condition (True, False, Unknown)", - "type": "string" - }, - "type": { - "description": "type describes the current condition", - "type": "string" - } - }, - "required": [ - "type", - "status" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList": { - "description": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "items is the list of horizontal pod autoscaler objects.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "metadata is the standard list metadata." - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "autoscaling", - "kind": "HorizontalPodAutoscalerList", - "version": "v2beta2" - } - ] - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerSpec": { - "description": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.", - "properties": { - "behavior": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerBehavior", - "description": "behavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). If not set, the default HPAScalingRules for scale up and scale down are used." - }, - "maxReplicas": { - "description": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.", - "format": "int32", - "type": "integer" - }, - "metrics": { - "description": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricSpec" - }, - "type": "array" - }, - "minReplicas": { - "description": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. minReplicas is allowed to be 0 if the alpha feature gate HPAScaleToZero is enabled and at least one Object or External metric is configured. Scaling is active as long as at least one metric value is available.", - "format": "int32", - "type": "integer" - }, - "scaleTargetRef": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference", - "description": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count." - } - }, - "required": [ - "scaleTargetRef", - "maxReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerStatus": { - "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", - "properties": { - "conditions": { - "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerCondition" - }, - "type": "array" - }, - "currentMetrics": { - "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", - "items": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricStatus" - }, - "type": "array" - }, - "currentReplicas": { - "description": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "desiredReplicas": { - "description": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.", - "format": "int32", - "type": "integer" - }, - "lastScaleTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed." - }, - "observedGeneration": { - "description": "observedGeneration is the most recent generation observed by this autoscaler.", - "format": "int64", - "type": "integer" - } - }, - "required": [ - "currentReplicas", - "desiredReplicas" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricIdentifier": { - "description": "MetricIdentifier defines the name and optionally selector for a metric", - "properties": { - "name": { - "description": "name is the name of the given metric", - "type": "string" - }, - "selector": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricSpec": { - "description": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricSource", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod of the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. This is an alpha feature and can be enabled by the HPAContainerMetrics feature flag." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ExternalMetricSource", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ObjectMetricSource", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.PodsMetricSource", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ResourceMetricSource", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "type": { - "description": "type is the type of metric source. It should be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricStatus": { - "description": "MetricStatus describes the last-read state of a single metric.", - "properties": { - "containerResource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ContainerResourceMetricStatus", - "description": "container resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "external": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ExternalMetricStatus", - "description": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster)." - }, - "object": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ObjectMetricStatus", - "description": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object)." - }, - "pods": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.PodsMetricStatus", - "description": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value." - }, - "resource": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.ResourceMetricStatus", - "description": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source." - }, - "type": { - "description": "type is the type of metric source. It will be one of \"ContainerResource\", \"External\", \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. Note: \"ContainerResource\" type is available on when the feature-gate HPAContainerMetrics is enabled", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricTarget": { - "description": "MetricTarget defines the target value, average value, or average utilization of a specific metric", - "properties": { - "averageUtilization": { - "description": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)" - }, - "type": { - "description": "type represents whether the metric type is Utilization, Value, or AverageValue", - "type": "string" - }, - "value": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "value is the target value of the metric (as a quantity)." - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.MetricValueStatus": { - "description": "MetricValueStatus holds the current value for a metric", - "properties": { - "averageUtilization": { - "description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.", - "format": "int32", - "type": "integer" - }, - "averageValue": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "value": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity", - "description": "value is the current value of the metric (as a quantity)." - } - }, - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ObjectMetricSource": { - "description": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "describedObject": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "describedObject", - "target", - "metric" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ObjectMetricStatus": { - "description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "describedObject": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.CrossVersionObjectReference" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current", - "describedObject" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.PodsMetricSource": { - "description": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.", - "properties": { - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "metric", - "target" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "metric": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricIdentifier", - "description": "metric identifies the target metric by name and selector" - } - }, - "required": [ - "metric", - "current" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ResourceMetricSource": { - "description": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.", - "properties": { - "name": { - "description": "name is the name of the resource in question.", - "type": "string" - }, - "target": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricTarget", - "description": "target specifies the target value for the given metric" - } - }, - "required": [ - "name", - "target" - ], - "type": "object" - }, - "io.k8s.api.autoscaling.v2beta2.ResourceMetricStatus": { - "description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.", - "properties": { - "current": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.MetricValueStatus", - "description": "current contains the current value for the given metric" - }, - "name": { - "description": "Name is the name of the resource in question.", - "type": "string" - } - }, - "required": [ - "name", - "current" - ], - "type": "object" - }, "io.k8s.api.batch.v1.CronJob": { "description": "CronJob represents the configuration of a single cron job.", "properties": { @@ -3781,7 +3560,7 @@ }, "uncountedTerminatedPods": { "$ref": "#/definitions/io.k8s.api.batch.v1.UncountedTerminatedPods", - "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nThis field is beta-level. The job controller only makes use of this field when the feature gate JobTrackingWithFinalizers is enabled (enabled by default). Old jobs might not be tracked using this field, in which case the field remains null." + "description": "UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null." } }, "type": "object" @@ -4590,6 +4369,20 @@ ], "type": "object" }, + "io.k8s.api.core.v1.ClaimSource": { + "description": "ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.", + "properties": { + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be -, where is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.", + "type": "string" + } + }, + "type": "object" + }, "io.k8s.api.core.v1.ClientIPConfig": { "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", "properties": { @@ -6868,7 +6661,7 @@ "properties": { "configSource": { "$ref": "#/definitions/io.k8s.api.core.v1.NodeConfigSource", - "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26." + "description": "Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed." }, "externalID": { "description": "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966", @@ -6908,7 +6701,7 @@ "description": "NodeStatus is information about the current status of a node.", "properties": { "addresses": { - "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.", + "description": "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example.", "items": { "$ref": "#/definitions/io.k8s.api.core.v1.NodeAddress" }, @@ -7235,11 +7028,11 @@ }, "dataSource": { "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field." + "description": "dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource." }, "dataSourceRef": { - "$ref": "#/definitions/io.k8s.api.core.v1.TypedLocalObjectReference", - "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled." + "$ref": "#/definitions/io.k8s.api.core.v1.TypedObjectReference", + "description": "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled." }, "resources": { "$ref": "#/definitions/io.k8s.api.core.v1.ResourceRequirements", @@ -7794,6 +7587,36 @@ ], "type": "object" }, + "io.k8s.api.core.v1.PodResourceClaim": { + "description": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", + "type": "string" + }, + "source": { + "$ref": "#/definitions/io.k8s.api.core.v1.ClaimSource", + "description": "Source describes where to find the ResourceClaim." + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.core.v1.PodSchedulingGate": { + "description": "PodSchedulingGate is associated to a Pod to guard its scheduling.", + "properties": { + "name": { + "description": "Name of the scheduling gate. Each scheduling gate must have a unique name field.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.PodSecurityContext": { "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", "properties": { @@ -7829,7 +7652,7 @@ "description": "The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows." }, "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.", + "description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.", "items": { "format": "int64", "type": "integer" @@ -7986,6 +7809,19 @@ }, "type": "array" }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, "restartPolicy": { "description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n\n", "type": "string" @@ -7998,6 +7834,19 @@ "description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", "type": "string" }, + "schedulingGates": { + "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. More info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.PodSchedulingGate" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, "securityContext": { "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." @@ -8633,7 +8482,7 @@ "type": "integer" }, "replicas": { - "description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", + "description": "Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller", "format": "int32", "type": "integer" } @@ -8643,6 +8492,19 @@ ], "type": "object" }, + "io.k8s.api.core.v1.ResourceClaim": { + "description": "ResourceClaim references one entry in PodSpec.ResourceClaims.", + "properties": { + "name": { + "description": "Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.ResourceFieldSelector": { "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format", "properties": { @@ -8780,6 +8642,17 @@ "io.k8s.api.core.v1.ResourceRequirements": { "description": "ResourceRequirements describes the compute resource requirements.", "properties": { + "claims": { + "description": "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/io.k8s.api.core.v1.ResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + }, "limits": { "additionalProperties": { "$ref": "#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity" @@ -9768,11 +9641,11 @@ "type": "integer" }, "nodeAffinityPolicy": { - "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "nodeTaintsPolicy": { - "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a alpha-level feature enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", + "description": "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.", "type": "string" }, "topologyKey": { @@ -9814,6 +9687,31 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, + "io.k8s.api.core.v1.TypedObjectReference": { + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced", + "type": "string" + }, + "namespace": { + "description": "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, "io.k8s.api.core.v1.Volume": { "description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", "properties": { @@ -10149,11 +10047,11 @@ "type": "boolean" }, "serving": { - "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition.", "type": "boolean" }, "terminating": { - "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.", + "description": "terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating.", "type": "boolean" } }, @@ -10433,555 +10331,6 @@ ], "type": "object" }, - "io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod": { - "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", - "properties": { - "type": { - "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchema": { - "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec", - "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaStatus", - "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaCondition": { - "description": "FlowSchemaCondition describes conditions for a FlowSchema.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." - }, - "message": { - "description": "`message` is a human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", - "type": "string" - }, - "type": { - "description": "`type` is the type of the condition. Required.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaList": { - "description": "FlowSchemaList is a list of FlowSchema objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "`items` is a list of FlowSchemas.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchemaList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaSpec": { - "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", - "properties": { - "distinguisherMethod": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowDistinguisherMethod", - "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." - }, - "matchingPrecedence": { - "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", - "format": "int32", - "type": "integer" - }, - "priorityLevelConfiguration": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference", - "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." - }, - "rules": { - "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "priorityLevelConfiguration" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.FlowSchemaStatus": { - "description": "FlowSchemaStatus represents the current state of a FlowSchema.", - "properties": { - "conditions": { - "description": "`conditions` is a list of the current states of FlowSchema.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.GroupSubject": { - "description": "GroupSubject holds detailed information for group-kind subject.", - "properties": { - "name": { - "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.LimitResponse": { - "description": "LimitResponse defines how to handle requests that can not be executed right now.", - "properties": { - "queuing": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration", - "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." - }, - "type": { - "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "type", - "fields-to-discriminateBy": { - "queuing": "Queuing" - } - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration": { - "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", - "properties": { - "assuredConcurrencyShares": { - "description": "`assuredConcurrencyShares` (ACS) configures the execution limit, which is a limit on the number of requests of this priority level that may be exeucting at a given time. ACS must be a positive number. The server's concurrency limit (SCL) is divided among the concurrency-controlled priority levels in proportion to their assured concurrency shares. This produces the assured concurrency value (ACV) --- the number of requests that may be executing at a time --- for each such priority level:\n\n ACV(l) = ceil( SCL * ACS(l) / ( sum[priority levels k] ACS(k) ) )\n\nbigger numbers of ACS mean more reserved concurrent requests (at the expense of every other PL). This field has a default value of 30.", - "format": "int32", - "type": "integer" - }, - "limitResponse": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.LimitResponse", - "description": "`limitResponse` indicates what to do with requests that can not be executed right now" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule": { - "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", - "properties": { - "nonResourceURLs": { - "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "verbs": { - "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "required": [ - "verbs", - "nonResourceURLs" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.PolicyRulesWithSubjects": { - "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", - "properties": { - "nonResourceRules": { - "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.NonResourcePolicyRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "resourceRules": { - "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - }, - "subjects": { - "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.Subject" - }, - "type": "array", - "x-kubernetes-list-type": "atomic" - } - }, - "required": [ - "subjects" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration": { - "description": "PriorityLevelConfiguration represents the configuration of a priority level.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - }, - "spec": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec", - "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationStatus", - "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationCondition": { - "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", - "properties": { - "lastTransitionTime": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", - "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." - }, - "message": { - "description": "`message` is a human-readable message indicating details about last transition.", - "type": "string" - }, - "reason": { - "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", - "type": "string" - }, - "status": { - "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", - "type": "string" - }, - "type": { - "description": "`type` is the type of the condition. Required.", - "type": "string" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList": { - "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - "type": "string" - }, - "items": { - "description": "`items` is a list of request-priorities.", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - }, - "type": "array" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string" - }, - "metadata": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", - "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" - } - }, - "required": [ - "items" - ], - "type": "object", - "x-kubernetes-group-version-kind": [ - { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfigurationList", - "version": "v1beta1" - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationReference": { - "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", - "properties": { - "name": { - "description": "`name` is the name of the priority level configuration being referenced Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationSpec": { - "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", - "properties": { - "limited": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.LimitedPriorityLevelConfiguration", - "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." - }, - "type": { - "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", - "type": "string" - } - }, - "required": [ - "type" - ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "type", - "fields-to-discriminateBy": { - "limited": "Limited" - } - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationStatus": { - "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", - "properties": { - "conditions": { - "description": "`conditions` is the current state of \"request-priority\".", - "items": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationCondition" - }, - "type": "array", - "x-kubernetes-list-map-keys": [ - "type" - ], - "x-kubernetes-list-type": "map" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.QueuingConfiguration": { - "description": "QueuingConfiguration holds the configuration parameters for queuing", - "properties": { - "handSize": { - "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", - "format": "int32", - "type": "integer" - }, - "queueLengthLimit": { - "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", - "format": "int32", - "type": "integer" - }, - "queues": { - "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.ResourcePolicyRule": { - "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", - "properties": { - "apiGroups": { - "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "clusterScope": { - "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", - "type": "boolean" - }, - "namespaces": { - "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "resources": { - "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - }, - "verbs": { - "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", - "items": { - "type": "string" - }, - "type": "array", - "x-kubernetes-list-type": "set" - } - }, - "required": [ - "verbs", - "apiGroups", - "resources" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject": { - "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", - "properties": { - "name": { - "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", - "type": "string" - }, - "namespace": { - "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", - "type": "string" - } - }, - "required": [ - "namespace", - "name" - ], - "type": "object" - }, - "io.k8s.api.flowcontrol.v1beta1.Subject": { - "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", - "properties": { - "group": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.GroupSubject", - "description": "`group` matches based on user group name." - }, - "kind": { - "description": "`kind` indicates which one of the other fields is non-empty. Required", - "type": "string" - }, - "serviceAccount": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.ServiceAccountSubject", - "description": "`serviceAccount` matches ServiceAccounts." - }, - "user": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.UserSubject", - "description": "`user` matches based on username." - } - }, - "required": [ - "kind" - ], - "type": "object", - "x-kubernetes-unions": [ - { - "discriminator": "kind", - "fields-to-discriminateBy": { - "group": "Group", - "serviceAccount": "ServiceAccount", - "user": "User" - } - } - ] - }, - "io.k8s.api.flowcontrol.v1beta1.UserSubject": { - "description": "UserSubject holds detailed information for user-kind subject.", - "properties": { - "name": { - "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, "io.k8s.api.flowcontrol.v1beta2.FlowDistinguisherMethod": { "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", "properties": { @@ -11182,6 +10531,16 @@ "format": "int32", "type": "integer" }, + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, "limitResponse": { "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta2.LimitResponse", "description": "`limitResponse` indicates what to do with requests that can not be executed right now" @@ -11531,6 +10890,569 @@ ], "type": "object" }, + "io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod": { + "description": "FlowDistinguisherMethod specifies the method of a flow distinguisher.", + "properties": { + "type": { + "description": "`type` is the type of flow distinguisher method The supported types are \"ByUser\" and \"ByNamespace\". Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchema": { + "description": "FlowSchema defines the schema of a group of flows. Note that a flow is made up of a set of inbound API requests with similar attributes and is identified by a pair of strings: the name of the FlowSchema and a \"flow distinguisher\".", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec", + "description": "`spec` is the specification of the desired behavior of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus", + "description": "`status` is the current status of a FlowSchema. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition": { + "description": "FlowSchemaCondition describes conditions for a FlowSchema.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaList": { + "description": "FlowSchemaList is a list of FlowSchema objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of FlowSchemas.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchemaList", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaSpec": { + "description": "FlowSchemaSpec describes how the FlowSchema's specification looks like.", + "properties": { + "distinguisherMethod": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowDistinguisherMethod", + "description": "`distinguisherMethod` defines how to compute the flow distinguisher for requests that match this schema. `nil` specifies that the distinguisher is disabled and thus will always be the empty string." + }, + "matchingPrecedence": { + "description": "`matchingPrecedence` is used to choose among the FlowSchemas that match a given request. The chosen FlowSchema is among those with the numerically lowest (which we take to be logically highest) MatchingPrecedence. Each MatchingPrecedence value must be ranged in [1,10000]. Note that if the precedence is not specified, it will be set to 1000 as default.", + "format": "int32", + "type": "integer" + }, + "priorityLevelConfiguration": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference", + "description": "`priorityLevelConfiguration` should reference a PriorityLevelConfiguration in the cluster. If the reference cannot be resolved, the FlowSchema will be ignored and marked as invalid in its status. Required." + }, + "rules": { + "description": "`rules` describes which requests will match this flow schema. This FlowSchema matches a request if and only if at least one member of rules matches the request. if it is an empty slice, there will be no requests matching the FlowSchema.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "priorityLevelConfiguration" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.FlowSchemaStatus": { + "description": "FlowSchemaStatus represents the current state of a FlowSchema.", + "properties": { + "conditions": { + "description": "`conditions` is a list of the current states of FlowSchema.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.GroupSubject": { + "description": "GroupSubject holds detailed information for group-kind subject.", + "properties": { + "name": { + "description": "name is the user group that matches, or \"*\" to match all user groups. See https://github.com/kubernetes/apiserver/blob/master/pkg/authentication/user/user.go for some well-known group names. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.LimitResponse": { + "description": "LimitResponse defines how to handle requests that can not be executed right now.", + "properties": { + "queuing": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration", + "description": "`queuing` holds the configuration parameters for queuing. This field may be non-empty only if `type` is `\"Queue\"`." + }, + "type": { + "description": "`type` is \"Queue\" or \"Reject\". \"Queue\" means that requests that can not be executed upon arrival are held in a queue until they can be executed or a queuing limit is reached. \"Reject\" means that requests that can not be executed upon arrival are rejected. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "queuing": "Queuing" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration": { + "description": "LimitedPriorityLevelConfiguration specifies how to handle requests that are subject to limits. It addresses two issues:\n - How are requests for this priority level limited?\n - What should be done with requests that exceed the limit?", + "properties": { + "borrowingLimitPercent": { + "description": "`borrowingLimitPercent`, if present, configures a limit on how many seats this priority level can borrow from other priority levels. The limit is known as this level's BorrowingConcurrencyLimit (BorrowingCL) and is a limit on the total number of seats that this level may borrow at any one time. This field holds the ratio of that limit to the level's nominal concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated as follows.\n\nBorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )\n\nThe value of this field can be more than 100, implying that this priority level can borrow a number of seats that is greater than its own nominal concurrency limit (NominalCL). When this field is left `nil`, the limit is effectively infinite.", + "format": "int32", + "type": "integer" + }, + "lendablePercent": { + "description": "`lendablePercent` prescribes the fraction of the level's NominalCL that can be borrowed by other priority levels. The value of this field must be between 0 and 100, inclusive, and it defaults to 0. The number of seats that other levels can borrow from this level, known as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.\n\nLendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )", + "format": "int32", + "type": "integer" + }, + "limitResponse": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitResponse", + "description": "`limitResponse` indicates what to do with requests that can not be executed right now" + }, + "nominalConcurrencyShares": { + "description": "`nominalConcurrencyShares` (NCS) contributes to the computation of the NominalConcurrencyLimit (NominalCL) of this level. This is the number of execution seats available at this priority level. This is used both for requests dispatched from this priority level as well as requests dispatched from other priority levels borrowing seats from this level. The server's concurrency limit (ServerCL) is divided among the Limited priority levels in proportion to their NCS values:\n\nNominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[limited priority level k] NCS(k)\n\nBigger numbers mean a larger nominal concurrency limit, at the expense of every other Limited priority level. This field has a default value of 30.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule": { + "description": "NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.", + "properties": { + "nonResourceURLs": { + "description": "`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:\n - \"/healthz\" is legal\n - \"/hea*\" is illegal\n - \"/hea\" is legal but matches nothing\n - \"/hea/*\" also matches nothing\n - \"/healthz/*\" matches all per-component health checks.\n\"*\" matches all non-resource urls. if it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "nonResourceURLs" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PolicyRulesWithSubjects": { + "description": "PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.", + "properties": { + "nonResourceRules": { + "description": "`nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.NonResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "resourceRules": { + "description": "`resourceRules` is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of `resourceRules` and `nonResourceRules` has to be non-empty.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "subjects": { + "description": "subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.Subject" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "subjects" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration": { + "description": "PriorityLevelConfiguration represents the configuration of a priority level.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec", + "description": "`spec` is the specification of the desired behavior of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + }, + "status": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus", + "description": "`status` is the current status of a \"request-priority\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition": { + "description": "PriorityLevelConfigurationCondition defines the condition of priority level.", + "properties": { + "lastTransitionTime": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time", + "description": "`lastTransitionTime` is the last time the condition transitioned from one status to another." + }, + "message": { + "description": "`message` is a human-readable message indicating details about last transition.", + "type": "string" + }, + "reason": { + "description": "`reason` is a unique, one-word, CamelCase reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "`status` is the status of the condition. Can be True, False, Unknown. Required.", + "type": "string" + }, + "type": { + "description": "`type` is the type of the condition. Required.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList": { + "description": "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "`items` is a list of request-priorities.", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "`metadata` is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfigurationList", + "version": "v1beta3" + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationReference": { + "description": "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.", + "properties": { + "name": { + "description": "`name` is the name of the priority level configuration being referenced Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationSpec": { + "description": "PriorityLevelConfigurationSpec specifies the configuration of a priority level.", + "properties": { + "limited": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.LimitedPriorityLevelConfiguration", + "description": "`limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `\"Limited\"`." + }, + "type": { + "description": "`type` indicates whether this priority level is subject to limitation on request execution. A value of `\"Exempt\"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `\"Limited\"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.", + "type": "string" + } + }, + "required": [ + "type" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "type", + "fields-to-discriminateBy": { + "limited": "Limited" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationStatus": { + "description": "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".", + "properties": { + "conditions": { + "description": "`conditions` is the current state of \"request-priority\".", + "items": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.QueuingConfiguration": { + "description": "QueuingConfiguration holds the configuration parameters for queuing", + "properties": { + "handSize": { + "description": "`handSize` is a small positive number that configures the shuffle sharding of requests into queues. When enqueuing a request at this priority level the request's flow identifier (a string pair) is hashed and the hash value is used to shuffle the list of queues and deal a hand of the size specified here. The request is put into one of the shortest queues in that hand. `handSize` must be no larger than `queues`, and should be significantly smaller (so that a few heavy flows do not saturate most of the queues). See the user-facing documentation for more extensive guidance on setting this field. This field has a default value of 8.", + "format": "int32", + "type": "integer" + }, + "queueLengthLimit": { + "description": "`queueLengthLimit` is the maximum number of requests allowed to be waiting in a given queue of this priority level at a time; excess requests are rejected. This value must be positive. If not specified, it will be defaulted to 50.", + "format": "int32", + "type": "integer" + }, + "queues": { + "description": "`queues` is the number of queues for this priority level. The queues exist independently at each apiserver. The value must be positive. Setting it to 1 effectively precludes shufflesharding and thus makes the distinguisher method of associated flow schemas irrelevant. This field has a default value of 64.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.ResourcePolicyRule": { + "description": "ResourcePolicyRule is a predicate that matches some resource requests, testing the request's verb and the target resource. A ResourcePolicyRule matches a resource request if and only if: (a) at least one member of verbs matches the request, (b) at least one member of apiGroups matches the request, (c) at least one member of resources matches the request, and (d) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.", + "properties": { + "apiGroups": { + "description": "`apiGroups` is a list of matching API groups and may not be empty. \"*\" matches all API groups and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "clusterScope": { + "description": "`clusterScope` indicates whether to match requests that do not specify a namespace (which happens either because the resource is not namespaced or the request targets all namespaces). If this field is omitted or false then the `namespaces` field must contain a non-empty list.", + "type": "boolean" + }, + "namespaces": { + "description": "`namespaces` is a list of target namespaces that restricts matches. A request that specifies a target namespace matches only if either (a) this list contains that target namespace or (b) this list contains \"*\". Note that \"*\" matches any specified namespace but does not match a request that _does not specify_ a namespace (see the `clusterScope` field for that). This list may be empty, but only if `clusterScope` is true.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "resources": { + "description": "`resources` is a list of matching resources (i.e., lowercase and plural) with, if desired, subresource. For example, [ \"services\", \"nodes/status\" ]. This list may not be empty. \"*\" matches all resources and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "verbs": { + "description": "`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs and, if present, must be the only entry. Required.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "verbs", + "apiGroups", + "resources" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject": { + "description": "ServiceAccountSubject holds detailed information for service-account-kind subject.", + "properties": { + "name": { + "description": "`name` is the name of matching ServiceAccount objects, or \"*\" to match regardless of name. Required.", + "type": "string" + }, + "namespace": { + "description": "`namespace` is the namespace of matching ServiceAccount objects. Required.", + "type": "string" + } + }, + "required": [ + "namespace", + "name" + ], + "type": "object" + }, + "io.k8s.api.flowcontrol.v1beta3.Subject": { + "description": "Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.", + "properties": { + "group": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.GroupSubject", + "description": "`group` matches based on user group name." + }, + "kind": { + "description": "`kind` indicates which one of the other fields is non-empty. Required", + "type": "string" + }, + "serviceAccount": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.ServiceAccountSubject", + "description": "`serviceAccount` matches ServiceAccounts." + }, + "user": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.UserSubject", + "description": "`user` matches based on username." + } + }, + "required": [ + "kind" + ], + "type": "object", + "x-kubernetes-unions": [ + { + "discriminator": "kind", + "fields-to-discriminateBy": { + "group": "Group", + "serviceAccount": "ServiceAccount", + "user": "User" + } + } + ] + }, + "io.k8s.api.flowcontrol.v1beta3.UserSubject": { + "description": "UserSubject holds detailed information for user-kind subject.", + "properties": { + "name": { + "description": "`name` is the username that matches, or \"*\" to match all usernames. Required.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, "io.k8s.api.networking.v1.HTTPIngressPath": { "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", "properties": { @@ -11571,14 +11493,14 @@ "type": "object" }, "io.k8s.api.networking.v1.IPBlock": { - "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\",\"2001:db9::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", + "description": "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", "properties": { "cidr": { - "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\"", + "description": "CIDR is a string representing the IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", "type": "string" }, "except": { - "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" or \"2001:db9::/64\" Except values will be rejected if they are outside the CIDR range", + "description": "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the CIDR range", "items": { "type": "string" }, @@ -11780,6 +11702,64 @@ } ] }, + "io.k8s.api.networking.v1.IngressLoadBalancerIngress": { + "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", + "properties": { + "hostname": { + "description": "Hostname is set for load-balancer ingress points that are DNS based.", + "type": "string" + }, + "ip": { + "description": "IP is set for load-balancer ingress points that are IP based.", + "type": "string" + }, + "ports": { + "description": "Ports provides information about the ports exposed by this LoadBalancer.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressPortStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressLoadBalancerStatus": { + "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", + "properties": { + "ingress": { + "description": "Ingress is a list containing ingress points for the load-balancer.", + "items": { + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressLoadBalancerIngress" + }, + "type": "array" + } + }, + "type": "object" + }, + "io.k8s.api.networking.v1.IngressPortStatus": { + "description": "IngressPortStatus represents the error condition of a service port", + "properties": { + "error": { + "description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", + "type": "string" + }, + "port": { + "description": "Port is the port number of the ingress port.", + "format": "int32", + "type": "integer" + }, + "protocol": { + "description": "Protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"\n\n", + "type": "string" + } + }, + "required": [ + "port", + "protocol" + ], + "type": "object" + }, "io.k8s.api.networking.v1.IngressRule": { "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", "properties": { @@ -11844,7 +11824,7 @@ "description": "IngressStatus describe the current state of the Ingress.", "properties": { "loadBalancer": { - "$ref": "#/definitions/io.k8s.api.core.v1.LoadBalancerStatus", + "$ref": "#/definitions/io.k8s.api.networking.v1.IngressLoadBalancerStatus", "description": "LoadBalancer contains the current status of the load-balancer." } }, @@ -12153,7 +12133,7 @@ "type": "string" }, "ipv6": { - "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"fd12:3456:789a:1::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", + "description": "IPv6 defines an IPv6 IP block in CIDR notation(e.g. \"2001:db8::/64\"). At least one of IPv4 and IPv6 must be specified. This field is immutable.", "type": "string" }, "nodeSelector": { @@ -12393,6 +12373,10 @@ "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector", "description": "Label query over pods whose evictions are managed by the disruption budget. A null selector will match no pods, while an empty ({}) selector will select all pods within the namespace.", "x-kubernetes-patch-strategy": "replace" + }, + "unhealthyPodEvictionPolicy": { + "description": "UnhealthyPodEvictionPolicy defines the criteria for when unhealthy pods should be considered for eviction. Current implementation considers healthy pods, as pods that have status.conditions item with type=\"Ready\",status=\"True\".\n\nValid policies are IfHealthyBudget and AlwaysAllow. If no policy is specified, the default behavior will be used, which corresponds to the IfHealthyBudget policy.\n\nIfHealthyBudget policy means that running pods (status.phase=\"Running\"), but not yet healthy can be evicted only if the guarded application is not disrupted (status.currentHealthy is at least equal to status.desiredHealthy). Healthy pods will be subject to the PDB for eviction.\n\nAlwaysAllow policy means that all running pods (status.phase=\"Running\"), but not yet healthy are considered disrupted and can be evicted regardless of whether the criteria in a PDB is met. This means perspective running pods of a disrupted application might not get a chance to become healthy. Healthy pods will be subject to the PDB for eviction.\n\nAdditional policies may be added in the future. Clients making eviction decisions should disallow eviction of unhealthy pods if they encounter an unrecognized policy in this field.\n\nThis field is alpha-level. The eviction API uses this field when the feature gate PDBUnhealthyPodEvictionPolicy is enabled (disabled by default).", + "type": "string" } }, "type": "object" @@ -12848,6 +12832,503 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, + "io.k8s.api.resource.v1alpha1.AllocationResult": { + "description": "AllocationResult contains attributed of an allocated resource.", + "properties": { + "availableOnNodes": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "This field will get set by the resource driver after it has allocated the resource driver to inform the scheduler where it can schedule Pods using the ResourceClaim.\n\nSetting this field is optional. If null, the resource is available everywhere." + }, + "resourceHandle": { + "description": "ResourceHandle contains arbitrary data returned by the driver after a successful allocation. This is opaque for Kubernetes. Driver documentation may explain to users how to interpret this data if needed.\n\nThe maximum size of this field is 16KiB. This may get increased in the future, but not reduced.", + "type": "string" + }, + "shareable": { + "description": "Shareable determines whether the resource supports more than one consumer at a time.", + "type": "boolean" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.PodScheduling": { + "description": "PodScheduling objects hold information that is needed to schedule a Pod with ResourceClaims that use \"WaitForFirstConsumer\" allocation mode.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingSpec", + "description": "Spec describes where resources for the Pod are needed." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingStatus", + "description": "Status describes where resources for the Pod can be allocated." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.PodSchedulingList": { + "description": "PodSchedulingList is a collection of Pod scheduling objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of PodScheduling objects.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "PodSchedulingList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.PodSchedulingSpec": { + "description": "PodSchedulingSpec describes where resources for the Pod are needed.", + "properties": { + "potentialNodes": { + "description": "PotentialNodes lists nodes where the Pod might be able to run.\n\nThe size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "selectedNode": { + "description": "SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use \"WaitForFirstConsumer\" allocation is to be attempted.", + "type": "string" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.PodSchedulingStatus": { + "description": "PodSchedulingStatus describes where resources for the Pod can be allocated.", + "properties": { + "resourceClaims": { + "description": "ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses \"WaitForFirstConsumer\" allocation mode.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSchedulingStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaim": { + "description": "ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSpec", + "description": "Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim." + }, + "status": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimStatus", + "description": "Status describes whether the resource is available and with which attributes." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimConsumerReference": { + "description": "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "resource": { + "description": "Resource is the type of resource being referenced, for example \"pods\".", + "type": "string" + }, + "uid": { + "description": "UID identifies exactly one incarnation of the resource.", + "type": "string" + } + }, + "required": [ + "resource", + "name", + "uid" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimList": { + "description": "ResourceClaimList is a collection of claims.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource claims.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimParametersReference": { + "description": "ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example \"ConfigMap\".", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimSchedulingStatus": { + "description": "ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with \"WaitForFirstConsumer\" allocation mode.", + "properties": { + "name": { + "description": "Name matches the pod.spec.resourceClaims[*].Name field.", + "type": "string" + }, + "unsuitableNodes": { + "description": "UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.\n\nThe size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimSpec": { + "description": "ResourceClaimSpec defines how a resource is to be allocated.", + "properties": { + "allocationMode": { + "description": "Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.", + "type": "string" + }, + "parametersRef": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimParametersReference", + "description": "ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.\n\nThe object must be in the same namespace as the ResourceClaim." + }, + "resourceClassName": { + "description": "ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.", + "type": "string" + } + }, + "required": [ + "resourceClassName" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimStatus": { + "description": "ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.", + "properties": { + "allocation": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.AllocationResult", + "description": "Allocation is set by the resource driver once a resource has been allocated successfully. If this is not specified, the resource is not yet allocated." + }, + "deallocationRequested": { + "description": "DeallocationRequested indicates that a ResourceClaim is to be deallocated.\n\nThe driver then must deallocate this claim and reset the field together with clearing the Allocation field.\n\nWhile DeallocationRequested is set, no new consumers may be added to ReservedFor.", + "type": "boolean" + }, + "driverName": { + "description": "DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.", + "type": "string" + }, + "reservedFor": { + "description": "ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started.\n\nThere can be at most 32 such reservations. This may get increased in the future, but not reduced.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimConsumerReference" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "uid" + ], + "x-kubernetes-list-type": "map" + } + }, + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimTemplate": { + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateSpec", + "description": "Describes the ResourceClaim that is to be generated.\n\nThis field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimTemplateList": { + "description": "ResourceClaimTemplateList is a collection of claim templates.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource claim templates.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplateList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClaimTemplateSpec": { + "description": "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.", + "properties": { + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation." + }, + "spec": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimSpec", + "description": "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here." + } + }, + "required": [ + "spec" + ], + "type": "object" + }, + "io.k8s.api.resource.v1alpha1.ResourceClass": { + "description": "ResourceClass is used by administrators to influence how resources are allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "driverName": { + "description": "DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.\n\nResource drivers have a unique name in forward domain order (acme.example.com).", + "type": "string" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", + "description": "Standard object metadata" + }, + "parametersRef": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClassParametersReference", + "description": "ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec." + }, + "suitableNodes": { + "$ref": "#/definitions/io.k8s.api.core.v1.NodeSelector", + "description": "Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.\n\nSetting this field is optional. If null, all nodes are candidates." + } + }, + "required": [ + "driverName" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClassList": { + "description": "ResourceClassList is a collection of classes.", + "properties": { + "apiVersion": { + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string" + }, + "items": { + "description": "Items is the list of resource classes.", + "items": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + }, + "type": "array" + }, + "kind": { + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourceClassList", + "version": "v1alpha1" + } + ] + }, + "io.k8s.api.resource.v1alpha1.ResourceClassParametersReference": { + "description": "ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.", + "properties": { + "apiGroup": { + "description": "APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.", + "type": "string" + }, + "kind": { + "description": "Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.", + "type": "string" + }, + "name": { + "description": "Name is the name of resource being referenced.", + "type": "string" + }, + "namespace": { + "description": "Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.", + "type": "string" + } + }, + "required": [ + "kind", + "name" + ], + "type": "object" + }, "io.k8s.api.scheduling.v1.PriorityClass": { "description": "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.", "properties": { @@ -13811,7 +14292,7 @@ "description": "names specify the resource and kind names for the custom resource." }, "preserveUnknownFields": { - "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.", + "description": "preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. This field is deprecated in favor of setting `x-preserve-unknown-fields` to true in `spec.versions[*].schema.openAPIV3Schema`. See https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#field-pruning for details.", "type": "boolean" }, "scope": { @@ -14575,6 +15056,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "DeleteOptions", @@ -14620,6 +15106,11 @@ "kind": "DeleteOptions", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "DeleteOptions", @@ -14725,6 +15216,11 @@ "kind": "DeleteOptions", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "DeleteOptions", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "DeleteOptions", @@ -14790,6 +15286,11 @@ "kind": "DeleteOptions", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "DeleteOptions", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "DeleteOptions", @@ -15156,6 +15657,11 @@ "group": "", "kind": "Status", "version": "v1" + }, + { + "group": "resource.k8s.io", + "kind": "Status", + "version": "v1alpha1" } ] }, @@ -15253,6 +15759,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "admissionregistration.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "admissionregistration.k8s.io", "kind": "WatchEvent", @@ -15298,6 +15809,11 @@ "kind": "WatchEvent", "version": "v1" }, + { + "group": "authentication.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "authentication.k8s.io", "kind": "WatchEvent", @@ -15403,6 +15919,11 @@ "kind": "WatchEvent", "version": "v1beta2" }, + { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "WatchEvent", + "version": "v1beta3" + }, { "group": "imagepolicy.k8s.io", "kind": "WatchEvent", @@ -15468,6 +15989,11 @@ "kind": "WatchEvent", "version": "v1beta1" }, + { + "group": "resource.k8s.io", + "kind": "WatchEvent", + "version": "v1alpha1" + }, { "group": "scheduling.k8s.io", "kind": "WatchEvent", @@ -37752,6 +38278,1695 @@ } ] }, + "/apis/admissionregistration.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAdmissionregistrationV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ] + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1alpha1CollectionValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicy", + "operationId": "listAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicy", + "operationId": "createAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicy", + "operationId": "deleteAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicy", + "operationId": "readAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicy", + "operationId": "patchAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicy", + "operationId": "replaceAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1alpha1CollectionValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", + "operationId": "listAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBindingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ValidatingAdmissionPolicyBinding", + "operationId": "createAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ValidatingAdmissionPolicyBinding", + "operationId": "deleteAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ValidatingAdmissionPolicyBinding", + "operationId": "readAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ValidatingAdmissionPolicyBinding", + "operationId": "patchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ValidatingAdmissionPolicyBinding", + "operationId": "replaceAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicies/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingAdmissionPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/validatingadmissionpolicybindings/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ValidatingAdmissionPolicyBinding. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, "/apis/apiextensions.k8s.io/": { "get": { "consumes": [ @@ -47099,6 +49314,128 @@ } } }, + "/apis/authentication.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAuthenticationV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ] + } + }, + "/apis/authentication.k8s.io/v1alpha1/selfsubjectreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a SelfSubjectReview", + "operationId": "createAuthenticationV1alpha1SelfSubjectReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.authentication.v1alpha1.SelfSubjectReview" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "authentication_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1alpha1" + } + } + }, "/apis/authorization.k8s.io/": { "get": { "consumes": [ @@ -50224,1337 +52561,6 @@ } ] }, - "/apis/autoscaling/v2beta2/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAutoscalingV2beta2APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ] - } - }, - "/apis/autoscaling/v2beta2/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta2CollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - } - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - } - }, - "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.autoscaling.v2beta2.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - } - }, - "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind HorizontalPodAutoscaler. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2beta2" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2beta2" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, "/apis/batch/": { "get": { "consumes": [ @@ -59004,2111 +60010,6 @@ ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getFlowcontrolApiserverV1beta1APIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ] - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta1CollectionFlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchemaList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a FlowSchema", - "operationId": "createFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta1FlowSchema", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta1FlowSchema", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowcontrolApiserverV1beta1FlowSchemaStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowcontrolApiserverV1beta1FlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowcontrolApiserverV1beta1FlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta1CollectionPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfigurationList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { - "consumes": [ - "*/*" - ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}": { - "delete": { - "consumes": [ - "*/*" - ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deleteFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "*/*" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json-patch+json", - "application/merge-patch+json", - "application/strategic-merge-patch+json", - "application/apply-patch+yaml" - ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "put": { - "consumes": [ - "*/*" - ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replaceFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta1FlowSchemaList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta1FlowSchema", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the FlowSchema", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", - "operationId": "watchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watchlist", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}": { - "get": { - "consumes": [ - "*/*" - ], - "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", - "operationId": "watchFlowcontrolApiserverV1beta1PriorityLevelConfiguration", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1beta1" - ], - "x-kubernetes-action": "watch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1beta1" - } - }, - "parameters": [ - { - "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, "/apis/flowcontrol.apiserver.k8s.io/v1beta2/": { "get": { "consumes": [ @@ -63214,6 +62115,2111 @@ } ] }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getFlowcontrolApiserverV1beta3APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ] + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta3CollectionFlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchemaList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a FlowSchema", + "operationId": "createFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a FlowSchema", + "operationId": "deleteFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1beta3FlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1beta3FlowSchema", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified FlowSchema", + "operationId": "readFlowcontrolApiserverV1beta3FlowSchemaStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowcontrolApiserverV1beta3FlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowcontrolApiserverV1beta3FlowSchemaStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.FlowSchema" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta3CollectionPriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfigurationList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PriorityLevelConfiguration", + "operationId": "createFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PriorityLevelConfiguration", + "operationId": "deleteFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replaceFlowcontrolApiserverV1beta3PriorityLevelConfigurationStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.flowcontrol.v1beta3.PriorityLevelConfiguration" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + } + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1beta3FlowSchemaList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/flowschemas/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1beta3FlowSchema", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the FlowSchema", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchFlowcontrolApiserverV1beta3PriorityLevelConfigurationList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1beta3/watch/prioritylevelconfigurations/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchFlowcontrolApiserverV1beta3PriorityLevelConfiguration", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "flowcontrolApiserver_v1beta3" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", + "version": "v1beta3" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, "/apis/internal.apiserver.k8s.io/": { "get": { "consumes": [ @@ -74811,6 +75817,4578 @@ } ] }, + "/apis/resource.k8s.io/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get information of a group", + "operationId": "getResourceAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource" + ] + } + }, + "/apis/resource.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getResourceV1alpha1APIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ] + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of PodScheduling", + "operationId": "deleteResourceV1alpha1CollectionNamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodScheduling", + "operationId": "listResourceV1alpha1NamespacedPodScheduling", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a PodScheduling", + "operationId": "createResourceV1alpha1NamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a PodScheduling", + "operationId": "deleteResourceV1alpha1NamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified PodScheduling", + "operationId": "readResourceV1alpha1NamespacedPodScheduling", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified PodScheduling", + "operationId": "patchResourceV1alpha1NamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified PodScheduling", + "operationId": "replaceResourceV1alpha1NamespacedPodScheduling", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/podschedulings/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified PodScheduling", + "operationId": "readResourceV1alpha1NamespacedPodSchedulingStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified PodScheduling", + "operationId": "patchResourceV1alpha1NamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified PodScheduling", + "operationId": "replaceResourceV1alpha1NamespacedPodSchedulingStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodScheduling" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaim", + "operationId": "deleteResourceV1alpha1CollectionNamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1alpha1NamespacedResourceClaim", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaim", + "operationId": "createResourceV1alpha1NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaim", + "operationId": "deleteResourceV1alpha1NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaim", + "operationId": "readResourceV1alpha1NamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaim", + "operationId": "patchResourceV1alpha1NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaim", + "operationId": "replaceResourceV1alpha1NamespacedResourceClaim", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "*/*" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readResourceV1alpha1NamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchResourceV1alpha1NamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceResourceV1alpha1NamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteResourceV1alpha1CollectionNamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1alpha1NamespacedResourceClaimTemplate", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClaimTemplate", + "operationId": "createResourceV1alpha1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteResourceV1alpha1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClaimTemplate", + "operationId": "readResourceV1alpha1NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchResourceV1alpha1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceResourceV1alpha1NamespacedResourceClaimTemplate", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplate" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/podschedulings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind PodScheduling", + "operationId": "listResourceV1alpha1PodSchedulingForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.PodSchedulingList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceV1alpha1ResourceClaimForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceV1alpha1ResourceClaimTemplateForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClaimTemplateList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/resourceclasses": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete collection of ResourceClass", + "operationId": "deleteResourceV1alpha1CollectionResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ResourceClass", + "operationId": "listResourceV1alpha1ResourceClass", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "*/*" + ], + "description": "create a ResourceClass", + "operationId": "createResourceV1alpha1ResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/resourceclasses/{name}": { + "delete": { + "consumes": [ + "*/*" + ], + "description": "delete a ResourceClass", + "operationId": "deleteResourceV1alpha1ResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "read the specified ResourceClass", + "operationId": "readResourceV1alpha1ResourceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json-patch+json", + "application/merge-patch+json", + "application/strategic-merge-patch+json", + "application/apply-patch+yaml" + ], + "description": "partially update the specified ResourceClass", + "operationId": "patchResourceV1alpha1ResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "put": { + "consumes": [ + "*/*" + ], + "description": "replace the specified ResourceClass", + "operationId": "replaceResourceV1alpha1ResourceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/io.k8s.api.resource.v1alpha1.ResourceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + } + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodScheduling. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1NamespacedPodSchedulingList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/podschedulings/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind PodScheduling. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1NamespacedPodScheduling", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodScheduling", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaimList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaim", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaimTemplateList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1NamespacedResourceClaimTemplate", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaimTemplate", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/podschedulings": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of PodScheduling. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1PodSchedulingListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "PodScheduling", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaims": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaim. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1ResourceClaimListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclaimtemplates": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClaimTemplate. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1ResourceClaimTemplateListForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaimTemplate", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch individual changes to a list of ResourceClass. deprecated: use the 'watch' parameter with a list operation instead.", + "operationId": "watchResourceV1alpha1ResourceClassList", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watchlist", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha1/watch/resourceclasses/{name}": { + "get": { + "consumes": [ + "*/*" + ], + "description": "watch changes to an object of kind ResourceClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.", + "operationId": "watchResourceV1alpha1ResourceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha1" + ], + "x-kubernetes-action": "watch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClass", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, "/apis/scheduling.k8s.io/": { "get": { "consumes": [ diff --git a/kubernetes/unit-test/test_v1_claim_source.c b/kubernetes/unit-test/test_v1_claim_source.c new file mode 100644 index 0000000..6259c06 --- /dev/null +++ b/kubernetes/unit-test/test_v1_claim_source.c @@ -0,0 +1,60 @@ +#ifndef v1_claim_source_TEST +#define v1_claim_source_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_claim_source_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_claim_source.h" +v1_claim_source_t* instantiate_v1_claim_source(int include_optional); + + + +v1_claim_source_t* instantiate_v1_claim_source(int include_optional) { + v1_claim_source_t* v1_claim_source = NULL; + if (include_optional) { + v1_claim_source = v1_claim_source_create( + "0", + "0" + ); + } else { + v1_claim_source = v1_claim_source_create( + "0", + "0" + ); + } + + return v1_claim_source; +} + + +#ifdef v1_claim_source_MAIN + +void test_v1_claim_source(int include_optional) { + v1_claim_source_t* v1_claim_source_1 = instantiate_v1_claim_source(include_optional); + + cJSON* jsonv1_claim_source_1 = v1_claim_source_convertToJSON(v1_claim_source_1); + printf("v1_claim_source :\n%s\n", cJSON_Print(jsonv1_claim_source_1)); + v1_claim_source_t* v1_claim_source_2 = v1_claim_source_parseFromJSON(jsonv1_claim_source_1); + cJSON* jsonv1_claim_source_2 = v1_claim_source_convertToJSON(v1_claim_source_2); + printf("repeating v1_claim_source:\n%s\n", cJSON_Print(jsonv1_claim_source_2)); +} + +int main() { + test_v1_claim_source(1); + test_v1_claim_source(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_claim_source_MAIN +#endif // v1_claim_source_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_load_balancer_ingress.c b/kubernetes/unit-test/test_v1_ingress_load_balancer_ingress.c new file mode 100644 index 0000000..5f9943c --- /dev/null +++ b/kubernetes/unit-test/test_v1_ingress_load_balancer_ingress.c @@ -0,0 +1,62 @@ +#ifndef v1_ingress_load_balancer_ingress_TEST +#define v1_ingress_load_balancer_ingress_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_ingress_load_balancer_ingress_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_ingress_load_balancer_ingress.h" +v1_ingress_load_balancer_ingress_t* instantiate_v1_ingress_load_balancer_ingress(int include_optional); + + + +v1_ingress_load_balancer_ingress_t* instantiate_v1_ingress_load_balancer_ingress(int include_optional) { + v1_ingress_load_balancer_ingress_t* v1_ingress_load_balancer_ingress = NULL; + if (include_optional) { + v1_ingress_load_balancer_ingress = v1_ingress_load_balancer_ingress_create( + "0", + "0", + list_createList() + ); + } else { + v1_ingress_load_balancer_ingress = v1_ingress_load_balancer_ingress_create( + "0", + "0", + list_createList() + ); + } + + return v1_ingress_load_balancer_ingress; +} + + +#ifdef v1_ingress_load_balancer_ingress_MAIN + +void test_v1_ingress_load_balancer_ingress(int include_optional) { + v1_ingress_load_balancer_ingress_t* v1_ingress_load_balancer_ingress_1 = instantiate_v1_ingress_load_balancer_ingress(include_optional); + + cJSON* jsonv1_ingress_load_balancer_ingress_1 = v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_1); + printf("v1_ingress_load_balancer_ingress :\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_ingress_1)); + v1_ingress_load_balancer_ingress_t* v1_ingress_load_balancer_ingress_2 = v1_ingress_load_balancer_ingress_parseFromJSON(jsonv1_ingress_load_balancer_ingress_1); + cJSON* jsonv1_ingress_load_balancer_ingress_2 = v1_ingress_load_balancer_ingress_convertToJSON(v1_ingress_load_balancer_ingress_2); + printf("repeating v1_ingress_load_balancer_ingress:\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_ingress_2)); +} + +int main() { + test_v1_ingress_load_balancer_ingress(1); + test_v1_ingress_load_balancer_ingress(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_ingress_load_balancer_ingress_MAIN +#endif // v1_ingress_load_balancer_ingress_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_load_balancer_status.c b/kubernetes/unit-test/test_v1_ingress_load_balancer_status.c new file mode 100644 index 0000000..151ab06 --- /dev/null +++ b/kubernetes/unit-test/test_v1_ingress_load_balancer_status.c @@ -0,0 +1,58 @@ +#ifndef v1_ingress_load_balancer_status_TEST +#define v1_ingress_load_balancer_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_ingress_load_balancer_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_ingress_load_balancer_status.h" +v1_ingress_load_balancer_status_t* instantiate_v1_ingress_load_balancer_status(int include_optional); + + + +v1_ingress_load_balancer_status_t* instantiate_v1_ingress_load_balancer_status(int include_optional) { + v1_ingress_load_balancer_status_t* v1_ingress_load_balancer_status = NULL; + if (include_optional) { + v1_ingress_load_balancer_status = v1_ingress_load_balancer_status_create( + list_createList() + ); + } else { + v1_ingress_load_balancer_status = v1_ingress_load_balancer_status_create( + list_createList() + ); + } + + return v1_ingress_load_balancer_status; +} + + +#ifdef v1_ingress_load_balancer_status_MAIN + +void test_v1_ingress_load_balancer_status(int include_optional) { + v1_ingress_load_balancer_status_t* v1_ingress_load_balancer_status_1 = instantiate_v1_ingress_load_balancer_status(include_optional); + + cJSON* jsonv1_ingress_load_balancer_status_1 = v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_1); + printf("v1_ingress_load_balancer_status :\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_status_1)); + v1_ingress_load_balancer_status_t* v1_ingress_load_balancer_status_2 = v1_ingress_load_balancer_status_parseFromJSON(jsonv1_ingress_load_balancer_status_1); + cJSON* jsonv1_ingress_load_balancer_status_2 = v1_ingress_load_balancer_status_convertToJSON(v1_ingress_load_balancer_status_2); + printf("repeating v1_ingress_load_balancer_status:\n%s\n", cJSON_Print(jsonv1_ingress_load_balancer_status_2)); +} + +int main() { + test_v1_ingress_load_balancer_status(1); + test_v1_ingress_load_balancer_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_ingress_load_balancer_status_MAIN +#endif // v1_ingress_load_balancer_status_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_port_status.c b/kubernetes/unit-test/test_v1_ingress_port_status.c new file mode 100644 index 0000000..1a73e43 --- /dev/null +++ b/kubernetes/unit-test/test_v1_ingress_port_status.c @@ -0,0 +1,62 @@ +#ifndef v1_ingress_port_status_TEST +#define v1_ingress_port_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_ingress_port_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_ingress_port_status.h" +v1_ingress_port_status_t* instantiate_v1_ingress_port_status(int include_optional); + + + +v1_ingress_port_status_t* instantiate_v1_ingress_port_status(int include_optional) { + v1_ingress_port_status_t* v1_ingress_port_status = NULL; + if (include_optional) { + v1_ingress_port_status = v1_ingress_port_status_create( + "0", + 56, + "0" + ); + } else { + v1_ingress_port_status = v1_ingress_port_status_create( + "0", + 56, + "0" + ); + } + + return v1_ingress_port_status; +} + + +#ifdef v1_ingress_port_status_MAIN + +void test_v1_ingress_port_status(int include_optional) { + v1_ingress_port_status_t* v1_ingress_port_status_1 = instantiate_v1_ingress_port_status(include_optional); + + cJSON* jsonv1_ingress_port_status_1 = v1_ingress_port_status_convertToJSON(v1_ingress_port_status_1); + printf("v1_ingress_port_status :\n%s\n", cJSON_Print(jsonv1_ingress_port_status_1)); + v1_ingress_port_status_t* v1_ingress_port_status_2 = v1_ingress_port_status_parseFromJSON(jsonv1_ingress_port_status_1); + cJSON* jsonv1_ingress_port_status_2 = v1_ingress_port_status_convertToJSON(v1_ingress_port_status_2); + printf("repeating v1_ingress_port_status:\n%s\n", cJSON_Print(jsonv1_ingress_port_status_2)); +} + +int main() { + test_v1_ingress_port_status(1); + test_v1_ingress_port_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_ingress_port_status_MAIN +#endif // v1_ingress_port_status_TEST diff --git a/kubernetes/unit-test/test_v1_ingress_status.c b/kubernetes/unit-test/test_v1_ingress_status.c index 373c4f6..ac7d7f6 100644 --- a/kubernetes/unit-test/test_v1_ingress_status.c +++ b/kubernetes/unit-test/test_v1_ingress_status.c @@ -16,7 +16,7 @@ #include "../model/v1_ingress_status.h" v1_ingress_status_t* instantiate_v1_ingress_status(int include_optional); -#include "test_v1_load_balancer_status.c" +#include "test_v1_ingress_load_balancer_status.c" v1_ingress_status_t* instantiate_v1_ingress_status(int include_optional) { @@ -24,7 +24,7 @@ v1_ingress_status_t* instantiate_v1_ingress_status(int include_optional) { if (include_optional) { v1_ingress_status = v1_ingress_status_create( // false, not to have infinite recursion - instantiate_v1_load_balancer_status(0) + instantiate_v1_ingress_load_balancer_status(0) ); } else { v1_ingress_status = v1_ingress_status_create( diff --git a/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c b/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c index c0972aa..bd122ff 100644 --- a/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c +++ b/kubernetes/unit-test/test_v1_persistent_volume_claim_spec.c @@ -17,7 +17,7 @@ v1_persistent_volume_claim_spec_t* instantiate_v1_persistent_volume_claim_spec(int include_optional); #include "test_v1_typed_local_object_reference.c" -#include "test_v1_typed_local_object_reference.c" +#include "test_v1_typed_object_reference.c" #include "test_v1_resource_requirements.c" #include "test_v1_label_selector.c" @@ -30,7 +30,7 @@ v1_persistent_volume_claim_spec_t* instantiate_v1_persistent_volume_claim_spec(i // false, not to have infinite recursion instantiate_v1_typed_local_object_reference(0), // false, not to have infinite recursion - instantiate_v1_typed_local_object_reference(0), + instantiate_v1_typed_object_reference(0), // false, not to have infinite recursion instantiate_v1_resource_requirements(0), // false, not to have infinite recursion diff --git a/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c b/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c index eb0f7fd..12f195b 100644 --- a/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c +++ b/kubernetes/unit-test/test_v1_pod_disruption_budget_spec.c @@ -26,13 +26,15 @@ v1_pod_disruption_budget_spec_t* instantiate_v1_pod_disruption_budget_spec(int i "0", "0", // false, not to have infinite recursion - instantiate_v1_label_selector(0) + instantiate_v1_label_selector(0), + "0" ); } else { v1_pod_disruption_budget_spec = v1_pod_disruption_budget_spec_create( "0", "0", - NULL + NULL, + "0" ); } diff --git a/kubernetes/unit-test/test_v1_pod_resource_claim.c b/kubernetes/unit-test/test_v1_pod_resource_claim.c new file mode 100644 index 0000000..1cb4d6b --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_resource_claim.c @@ -0,0 +1,62 @@ +#ifndef v1_pod_resource_claim_TEST +#define v1_pod_resource_claim_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_resource_claim_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_resource_claim.h" +v1_pod_resource_claim_t* instantiate_v1_pod_resource_claim(int include_optional); + +#include "test_v1_claim_source.c" + + +v1_pod_resource_claim_t* instantiate_v1_pod_resource_claim(int include_optional) { + v1_pod_resource_claim_t* v1_pod_resource_claim = NULL; + if (include_optional) { + v1_pod_resource_claim = v1_pod_resource_claim_create( + "0", + // false, not to have infinite recursion + instantiate_v1_claim_source(0) + ); + } else { + v1_pod_resource_claim = v1_pod_resource_claim_create( + "0", + NULL + ); + } + + return v1_pod_resource_claim; +} + + +#ifdef v1_pod_resource_claim_MAIN + +void test_v1_pod_resource_claim(int include_optional) { + v1_pod_resource_claim_t* v1_pod_resource_claim_1 = instantiate_v1_pod_resource_claim(include_optional); + + cJSON* jsonv1_pod_resource_claim_1 = v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_1); + printf("v1_pod_resource_claim :\n%s\n", cJSON_Print(jsonv1_pod_resource_claim_1)); + v1_pod_resource_claim_t* v1_pod_resource_claim_2 = v1_pod_resource_claim_parseFromJSON(jsonv1_pod_resource_claim_1); + cJSON* jsonv1_pod_resource_claim_2 = v1_pod_resource_claim_convertToJSON(v1_pod_resource_claim_2); + printf("repeating v1_pod_resource_claim:\n%s\n", cJSON_Print(jsonv1_pod_resource_claim_2)); +} + +int main() { + test_v1_pod_resource_claim(1); + test_v1_pod_resource_claim(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_resource_claim_MAIN +#endif // v1_pod_resource_claim_TEST diff --git a/kubernetes/unit-test/test_v1_pod_scheduling_gate.c b/kubernetes/unit-test/test_v1_pod_scheduling_gate.c new file mode 100644 index 0000000..42d0494 --- /dev/null +++ b/kubernetes/unit-test/test_v1_pod_scheduling_gate.c @@ -0,0 +1,58 @@ +#ifndef v1_pod_scheduling_gate_TEST +#define v1_pod_scheduling_gate_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_pod_scheduling_gate_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_pod_scheduling_gate.h" +v1_pod_scheduling_gate_t* instantiate_v1_pod_scheduling_gate(int include_optional); + + + +v1_pod_scheduling_gate_t* instantiate_v1_pod_scheduling_gate(int include_optional) { + v1_pod_scheduling_gate_t* v1_pod_scheduling_gate = NULL; + if (include_optional) { + v1_pod_scheduling_gate = v1_pod_scheduling_gate_create( + "0" + ); + } else { + v1_pod_scheduling_gate = v1_pod_scheduling_gate_create( + "0" + ); + } + + return v1_pod_scheduling_gate; +} + + +#ifdef v1_pod_scheduling_gate_MAIN + +void test_v1_pod_scheduling_gate(int include_optional) { + v1_pod_scheduling_gate_t* v1_pod_scheduling_gate_1 = instantiate_v1_pod_scheduling_gate(include_optional); + + cJSON* jsonv1_pod_scheduling_gate_1 = v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_1); + printf("v1_pod_scheduling_gate :\n%s\n", cJSON_Print(jsonv1_pod_scheduling_gate_1)); + v1_pod_scheduling_gate_t* v1_pod_scheduling_gate_2 = v1_pod_scheduling_gate_parseFromJSON(jsonv1_pod_scheduling_gate_1); + cJSON* jsonv1_pod_scheduling_gate_2 = v1_pod_scheduling_gate_convertToJSON(v1_pod_scheduling_gate_2); + printf("repeating v1_pod_scheduling_gate:\n%s\n", cJSON_Print(jsonv1_pod_scheduling_gate_2)); +} + +int main() { + test_v1_pod_scheduling_gate(1); + test_v1_pod_scheduling_gate(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_pod_scheduling_gate_MAIN +#endif // v1_pod_scheduling_gate_TEST diff --git a/kubernetes/unit-test/test_v1_pod_spec.c b/kubernetes/unit-test/test_v1_pod_spec.c index 4ad97f6..07dcff9 100644 --- a/kubernetes/unit-test/test_v1_pod_spec.c +++ b/kubernetes/unit-test/test_v1_pod_spec.c @@ -53,9 +53,11 @@ v1_pod_spec_t* instantiate_v1_pod_spec(int include_optional) { 56, "0", list_createList(), + list_createList(), "0", "0", "0", + list_createList(), // false, not to have infinite recursion instantiate_v1_pod_security_context(0), "0", @@ -94,9 +96,11 @@ v1_pod_spec_t* instantiate_v1_pod_spec(int include_optional) { 56, "0", list_createList(), + list_createList(), "0", "0", "0", + list_createList(), NULL, "0", "0", diff --git a/kubernetes/unit-test/test_v1_resource_claim.c b/kubernetes/unit-test/test_v1_resource_claim.c new file mode 100644 index 0000000..1cad8b5 --- /dev/null +++ b/kubernetes/unit-test/test_v1_resource_claim.c @@ -0,0 +1,58 @@ +#ifndef v1_resource_claim_TEST +#define v1_resource_claim_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_resource_claim_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_resource_claim.h" +v1_resource_claim_t* instantiate_v1_resource_claim(int include_optional); + + + +v1_resource_claim_t* instantiate_v1_resource_claim(int include_optional) { + v1_resource_claim_t* v1_resource_claim = NULL; + if (include_optional) { + v1_resource_claim = v1_resource_claim_create( + "0" + ); + } else { + v1_resource_claim = v1_resource_claim_create( + "0" + ); + } + + return v1_resource_claim; +} + + +#ifdef v1_resource_claim_MAIN + +void test_v1_resource_claim(int include_optional) { + v1_resource_claim_t* v1_resource_claim_1 = instantiate_v1_resource_claim(include_optional); + + cJSON* jsonv1_resource_claim_1 = v1_resource_claim_convertToJSON(v1_resource_claim_1); + printf("v1_resource_claim :\n%s\n", cJSON_Print(jsonv1_resource_claim_1)); + v1_resource_claim_t* v1_resource_claim_2 = v1_resource_claim_parseFromJSON(jsonv1_resource_claim_1); + cJSON* jsonv1_resource_claim_2 = v1_resource_claim_convertToJSON(v1_resource_claim_2); + printf("repeating v1_resource_claim:\n%s\n", cJSON_Print(jsonv1_resource_claim_2)); +} + +int main() { + test_v1_resource_claim(1); + test_v1_resource_claim(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_resource_claim_MAIN +#endif // v1_resource_claim_TEST diff --git a/kubernetes/unit-test/test_v1_resource_requirements.c b/kubernetes/unit-test/test_v1_resource_requirements.c index a132141..24631f2 100644 --- a/kubernetes/unit-test/test_v1_resource_requirements.c +++ b/kubernetes/unit-test/test_v1_resource_requirements.c @@ -22,11 +22,13 @@ v1_resource_requirements_t* instantiate_v1_resource_requirements(int include_opt v1_resource_requirements_t* v1_resource_requirements = NULL; if (include_optional) { v1_resource_requirements = v1_resource_requirements_create( + list_createList(), list_createList(), list_createList() ); } else { v1_resource_requirements = v1_resource_requirements_create( + list_createList(), list_createList(), list_createList() ); diff --git a/kubernetes/unit-test/test_v1_stateful_set_ordinals.c b/kubernetes/unit-test/test_v1_stateful_set_ordinals.c new file mode 100644 index 0000000..ba7530c --- /dev/null +++ b/kubernetes/unit-test/test_v1_stateful_set_ordinals.c @@ -0,0 +1,58 @@ +#ifndef v1_stateful_set_ordinals_TEST +#define v1_stateful_set_ordinals_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_stateful_set_ordinals_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_stateful_set_ordinals.h" +v1_stateful_set_ordinals_t* instantiate_v1_stateful_set_ordinals(int include_optional); + + + +v1_stateful_set_ordinals_t* instantiate_v1_stateful_set_ordinals(int include_optional) { + v1_stateful_set_ordinals_t* v1_stateful_set_ordinals = NULL; + if (include_optional) { + v1_stateful_set_ordinals = v1_stateful_set_ordinals_create( + 56 + ); + } else { + v1_stateful_set_ordinals = v1_stateful_set_ordinals_create( + 56 + ); + } + + return v1_stateful_set_ordinals; +} + + +#ifdef v1_stateful_set_ordinals_MAIN + +void test_v1_stateful_set_ordinals(int include_optional) { + v1_stateful_set_ordinals_t* v1_stateful_set_ordinals_1 = instantiate_v1_stateful_set_ordinals(include_optional); + + cJSON* jsonv1_stateful_set_ordinals_1 = v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_1); + printf("v1_stateful_set_ordinals :\n%s\n", cJSON_Print(jsonv1_stateful_set_ordinals_1)); + v1_stateful_set_ordinals_t* v1_stateful_set_ordinals_2 = v1_stateful_set_ordinals_parseFromJSON(jsonv1_stateful_set_ordinals_1); + cJSON* jsonv1_stateful_set_ordinals_2 = v1_stateful_set_ordinals_convertToJSON(v1_stateful_set_ordinals_2); + printf("repeating v1_stateful_set_ordinals:\n%s\n", cJSON_Print(jsonv1_stateful_set_ordinals_2)); +} + +int main() { + test_v1_stateful_set_ordinals(1); + test_v1_stateful_set_ordinals(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_stateful_set_ordinals_MAIN +#endif // v1_stateful_set_ordinals_TEST diff --git a/kubernetes/unit-test/test_v1_stateful_set_spec.c b/kubernetes/unit-test/test_v1_stateful_set_spec.c index fecead6..1fd7d64 100644 --- a/kubernetes/unit-test/test_v1_stateful_set_spec.c +++ b/kubernetes/unit-test/test_v1_stateful_set_spec.c @@ -16,6 +16,7 @@ #include "../model/v1_stateful_set_spec.h" v1_stateful_set_spec_t* instantiate_v1_stateful_set_spec(int include_optional); +#include "test_v1_stateful_set_ordinals.c" #include "test_v1_stateful_set_persistent_volume_claim_retention_policy.c" #include "test_v1_label_selector.c" #include "test_v1_pod_template_spec.c" @@ -28,6 +29,8 @@ v1_stateful_set_spec_t* instantiate_v1_stateful_set_spec(int include_optional) { v1_stateful_set_spec = v1_stateful_set_spec_create( 56, // false, not to have infinite recursion + instantiate_v1_stateful_set_ordinals(0), + // false, not to have infinite recursion instantiate_v1_stateful_set_persistent_volume_claim_retention_policy(0), "0", 56, @@ -45,6 +48,7 @@ v1_stateful_set_spec_t* instantiate_v1_stateful_set_spec(int include_optional) { v1_stateful_set_spec = v1_stateful_set_spec_create( 56, NULL, + NULL, "0", 56, 56, diff --git a/kubernetes/unit-test/test_v1_typed_object_reference.c b/kubernetes/unit-test/test_v1_typed_object_reference.c new file mode 100644 index 0000000..ba758a9 --- /dev/null +++ b/kubernetes/unit-test/test_v1_typed_object_reference.c @@ -0,0 +1,64 @@ +#ifndef v1_typed_object_reference_TEST +#define v1_typed_object_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1_typed_object_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1_typed_object_reference.h" +v1_typed_object_reference_t* instantiate_v1_typed_object_reference(int include_optional); + + + +v1_typed_object_reference_t* instantiate_v1_typed_object_reference(int include_optional) { + v1_typed_object_reference_t* v1_typed_object_reference = NULL; + if (include_optional) { + v1_typed_object_reference = v1_typed_object_reference_create( + "0", + "0", + "0", + "0" + ); + } else { + v1_typed_object_reference = v1_typed_object_reference_create( + "0", + "0", + "0", + "0" + ); + } + + return v1_typed_object_reference; +} + + +#ifdef v1_typed_object_reference_MAIN + +void test_v1_typed_object_reference(int include_optional) { + v1_typed_object_reference_t* v1_typed_object_reference_1 = instantiate_v1_typed_object_reference(include_optional); + + cJSON* jsonv1_typed_object_reference_1 = v1_typed_object_reference_convertToJSON(v1_typed_object_reference_1); + printf("v1_typed_object_reference :\n%s\n", cJSON_Print(jsonv1_typed_object_reference_1)); + v1_typed_object_reference_t* v1_typed_object_reference_2 = v1_typed_object_reference_parseFromJSON(jsonv1_typed_object_reference_1); + cJSON* jsonv1_typed_object_reference_2 = v1_typed_object_reference_convertToJSON(v1_typed_object_reference_2); + printf("repeating v1_typed_object_reference:\n%s\n", cJSON_Print(jsonv1_typed_object_reference_2)); +} + +int main() { + test_v1_typed_object_reference(1); + test_v1_typed_object_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1_typed_object_reference_MAIN +#endif // v1_typed_object_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_allocation_result.c b/kubernetes/unit-test/test_v1alpha1_allocation_result.c new file mode 100644 index 0000000..75ac23e --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_allocation_result.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_allocation_result_TEST +#define v1alpha1_allocation_result_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_allocation_result_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_allocation_result.h" +v1alpha1_allocation_result_t* instantiate_v1alpha1_allocation_result(int include_optional); + +#include "test_v1_node_selector.c" + + +v1alpha1_allocation_result_t* instantiate_v1alpha1_allocation_result(int include_optional) { + v1alpha1_allocation_result_t* v1alpha1_allocation_result = NULL; + if (include_optional) { + v1alpha1_allocation_result = v1alpha1_allocation_result_create( + // false, not to have infinite recursion + instantiate_v1_node_selector(0), + "0", + 1 + ); + } else { + v1alpha1_allocation_result = v1alpha1_allocation_result_create( + NULL, + "0", + 1 + ); + } + + return v1alpha1_allocation_result; +} + + +#ifdef v1alpha1_allocation_result_MAIN + +void test_v1alpha1_allocation_result(int include_optional) { + v1alpha1_allocation_result_t* v1alpha1_allocation_result_1 = instantiate_v1alpha1_allocation_result(include_optional); + + cJSON* jsonv1alpha1_allocation_result_1 = v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_1); + printf("v1alpha1_allocation_result :\n%s\n", cJSON_Print(jsonv1alpha1_allocation_result_1)); + v1alpha1_allocation_result_t* v1alpha1_allocation_result_2 = v1alpha1_allocation_result_parseFromJSON(jsonv1alpha1_allocation_result_1); + cJSON* jsonv1alpha1_allocation_result_2 = v1alpha1_allocation_result_convertToJSON(v1alpha1_allocation_result_2); + printf("repeating v1alpha1_allocation_result:\n%s\n", cJSON_Print(jsonv1alpha1_allocation_result_2)); +} + +int main() { + test_v1alpha1_allocation_result(1); + test_v1alpha1_allocation_result(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_allocation_result_MAIN +#endif // v1alpha1_allocation_result_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_match_resources.c b/kubernetes/unit-test/test_v1alpha1_match_resources.c new file mode 100644 index 0000000..b807640 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_match_resources.c @@ -0,0 +1,70 @@ +#ifndef v1alpha1_match_resources_TEST +#define v1alpha1_match_resources_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_match_resources_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_match_resources.h" +v1alpha1_match_resources_t* instantiate_v1alpha1_match_resources(int include_optional); + +#include "test_v1_label_selector.c" +#include "test_v1_label_selector.c" + + +v1alpha1_match_resources_t* instantiate_v1alpha1_match_resources(int include_optional) { + v1alpha1_match_resources_t* v1alpha1_match_resources = NULL; + if (include_optional) { + v1alpha1_match_resources = v1alpha1_match_resources_create( + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_label_selector(0), + // false, not to have infinite recursion + instantiate_v1_label_selector(0), + list_createList() + ); + } else { + v1alpha1_match_resources = v1alpha1_match_resources_create( + list_createList(), + "0", + NULL, + NULL, + list_createList() + ); + } + + return v1alpha1_match_resources; +} + + +#ifdef v1alpha1_match_resources_MAIN + +void test_v1alpha1_match_resources(int include_optional) { + v1alpha1_match_resources_t* v1alpha1_match_resources_1 = instantiate_v1alpha1_match_resources(include_optional); + + cJSON* jsonv1alpha1_match_resources_1 = v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_1); + printf("v1alpha1_match_resources :\n%s\n", cJSON_Print(jsonv1alpha1_match_resources_1)); + v1alpha1_match_resources_t* v1alpha1_match_resources_2 = v1alpha1_match_resources_parseFromJSON(jsonv1alpha1_match_resources_1); + cJSON* jsonv1alpha1_match_resources_2 = v1alpha1_match_resources_convertToJSON(v1alpha1_match_resources_2); + printf("repeating v1alpha1_match_resources:\n%s\n", cJSON_Print(jsonv1alpha1_match_resources_2)); +} + +int main() { + test_v1alpha1_match_resources(1); + test_v1alpha1_match_resources(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_match_resources_MAIN +#endif // v1alpha1_match_resources_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_named_rule_with_operations.c b/kubernetes/unit-test/test_v1alpha1_named_rule_with_operations.c new file mode 100644 index 0000000..2d2fc37 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_named_rule_with_operations.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_named_rule_with_operations_TEST +#define v1alpha1_named_rule_with_operations_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_named_rule_with_operations_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_named_rule_with_operations.h" +v1alpha1_named_rule_with_operations_t* instantiate_v1alpha1_named_rule_with_operations(int include_optional); + + + +v1alpha1_named_rule_with_operations_t* instantiate_v1alpha1_named_rule_with_operations(int include_optional) { + v1alpha1_named_rule_with_operations_t* v1alpha1_named_rule_with_operations = NULL; + if (include_optional) { + v1alpha1_named_rule_with_operations = v1alpha1_named_rule_with_operations_create( + list_createList(), + list_createList(), + list_createList(), + list_createList(), + list_createList(), + "0" + ); + } else { + v1alpha1_named_rule_with_operations = v1alpha1_named_rule_with_operations_create( + list_createList(), + list_createList(), + list_createList(), + list_createList(), + list_createList(), + "0" + ); + } + + return v1alpha1_named_rule_with_operations; +} + + +#ifdef v1alpha1_named_rule_with_operations_MAIN + +void test_v1alpha1_named_rule_with_operations(int include_optional) { + v1alpha1_named_rule_with_operations_t* v1alpha1_named_rule_with_operations_1 = instantiate_v1alpha1_named_rule_with_operations(include_optional); + + cJSON* jsonv1alpha1_named_rule_with_operations_1 = v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_1); + printf("v1alpha1_named_rule_with_operations :\n%s\n", cJSON_Print(jsonv1alpha1_named_rule_with_operations_1)); + v1alpha1_named_rule_with_operations_t* v1alpha1_named_rule_with_operations_2 = v1alpha1_named_rule_with_operations_parseFromJSON(jsonv1alpha1_named_rule_with_operations_1); + cJSON* jsonv1alpha1_named_rule_with_operations_2 = v1alpha1_named_rule_with_operations_convertToJSON(v1alpha1_named_rule_with_operations_2); + printf("repeating v1alpha1_named_rule_with_operations:\n%s\n", cJSON_Print(jsonv1alpha1_named_rule_with_operations_2)); +} + +int main() { + test_v1alpha1_named_rule_with_operations(1); + test_v1alpha1_named_rule_with_operations(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_named_rule_with_operations_MAIN +#endif // v1alpha1_named_rule_with_operations_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_param_kind.c b/kubernetes/unit-test/test_v1alpha1_param_kind.c new file mode 100644 index 0000000..6bb5305 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_param_kind.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_param_kind_TEST +#define v1alpha1_param_kind_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_param_kind_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_param_kind.h" +v1alpha1_param_kind_t* instantiate_v1alpha1_param_kind(int include_optional); + + + +v1alpha1_param_kind_t* instantiate_v1alpha1_param_kind(int include_optional) { + v1alpha1_param_kind_t* v1alpha1_param_kind = NULL; + if (include_optional) { + v1alpha1_param_kind = v1alpha1_param_kind_create( + "0", + "0" + ); + } else { + v1alpha1_param_kind = v1alpha1_param_kind_create( + "0", + "0" + ); + } + + return v1alpha1_param_kind; +} + + +#ifdef v1alpha1_param_kind_MAIN + +void test_v1alpha1_param_kind(int include_optional) { + v1alpha1_param_kind_t* v1alpha1_param_kind_1 = instantiate_v1alpha1_param_kind(include_optional); + + cJSON* jsonv1alpha1_param_kind_1 = v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_1); + printf("v1alpha1_param_kind :\n%s\n", cJSON_Print(jsonv1alpha1_param_kind_1)); + v1alpha1_param_kind_t* v1alpha1_param_kind_2 = v1alpha1_param_kind_parseFromJSON(jsonv1alpha1_param_kind_1); + cJSON* jsonv1alpha1_param_kind_2 = v1alpha1_param_kind_convertToJSON(v1alpha1_param_kind_2); + printf("repeating v1alpha1_param_kind:\n%s\n", cJSON_Print(jsonv1alpha1_param_kind_2)); +} + +int main() { + test_v1alpha1_param_kind(1); + test_v1alpha1_param_kind(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_param_kind_MAIN +#endif // v1alpha1_param_kind_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_param_ref.c b/kubernetes/unit-test/test_v1alpha1_param_ref.c new file mode 100644 index 0000000..4b704f6 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_param_ref.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_param_ref_TEST +#define v1alpha1_param_ref_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_param_ref_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_param_ref.h" +v1alpha1_param_ref_t* instantiate_v1alpha1_param_ref(int include_optional); + + + +v1alpha1_param_ref_t* instantiate_v1alpha1_param_ref(int include_optional) { + v1alpha1_param_ref_t* v1alpha1_param_ref = NULL; + if (include_optional) { + v1alpha1_param_ref = v1alpha1_param_ref_create( + "0", + "0" + ); + } else { + v1alpha1_param_ref = v1alpha1_param_ref_create( + "0", + "0" + ); + } + + return v1alpha1_param_ref; +} + + +#ifdef v1alpha1_param_ref_MAIN + +void test_v1alpha1_param_ref(int include_optional) { + v1alpha1_param_ref_t* v1alpha1_param_ref_1 = instantiate_v1alpha1_param_ref(include_optional); + + cJSON* jsonv1alpha1_param_ref_1 = v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_1); + printf("v1alpha1_param_ref :\n%s\n", cJSON_Print(jsonv1alpha1_param_ref_1)); + v1alpha1_param_ref_t* v1alpha1_param_ref_2 = v1alpha1_param_ref_parseFromJSON(jsonv1alpha1_param_ref_1); + cJSON* jsonv1alpha1_param_ref_2 = v1alpha1_param_ref_convertToJSON(v1alpha1_param_ref_2); + printf("repeating v1alpha1_param_ref:\n%s\n", cJSON_Print(jsonv1alpha1_param_ref_2)); +} + +int main() { + test_v1alpha1_param_ref(1); + test_v1alpha1_param_ref(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_param_ref_MAIN +#endif // v1alpha1_param_ref_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling.c new file mode 100644 index 0000000..d45d40f --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling.c @@ -0,0 +1,72 @@ +#ifndef v1alpha1_pod_scheduling_TEST +#define v1alpha1_pod_scheduling_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling.h" +v1alpha1_pod_scheduling_t* instantiate_v1alpha1_pod_scheduling(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_pod_scheduling_spec.c" +#include "test_v1alpha1_pod_scheduling_status.c" + + +v1alpha1_pod_scheduling_t* instantiate_v1alpha1_pod_scheduling(int include_optional) { + v1alpha1_pod_scheduling_t* v1alpha1_pod_scheduling = NULL; + if (include_optional) { + v1alpha1_pod_scheduling = v1alpha1_pod_scheduling_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_pod_scheduling_spec(0), + // false, not to have infinite recursion + instantiate_v1alpha1_pod_scheduling_status(0) + ); + } else { + v1alpha1_pod_scheduling = v1alpha1_pod_scheduling_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1alpha1_pod_scheduling; +} + + +#ifdef v1alpha1_pod_scheduling_MAIN + +void test_v1alpha1_pod_scheduling(int include_optional) { + v1alpha1_pod_scheduling_t* v1alpha1_pod_scheduling_1 = instantiate_v1alpha1_pod_scheduling(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_1 = v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_1); + printf("v1alpha1_pod_scheduling :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_1)); + v1alpha1_pod_scheduling_t* v1alpha1_pod_scheduling_2 = v1alpha1_pod_scheduling_parseFromJSON(jsonv1alpha1_pod_scheduling_1); + cJSON* jsonv1alpha1_pod_scheduling_2 = v1alpha1_pod_scheduling_convertToJSON(v1alpha1_pod_scheduling_2); + printf("repeating v1alpha1_pod_scheduling:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_2)); +} + +int main() { + test_v1alpha1_pod_scheduling(1); + test_v1alpha1_pod_scheduling(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_MAIN +#endif // v1alpha1_pod_scheduling_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling_list.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_list.c new file mode 100644 index 0000000..4be9885 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_pod_scheduling_list_TEST +#define v1alpha1_pod_scheduling_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling_list.h" +v1alpha1_pod_scheduling_list_t* instantiate_v1alpha1_pod_scheduling_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_pod_scheduling_list_t* instantiate_v1alpha1_pod_scheduling_list(int include_optional) { + v1alpha1_pod_scheduling_list_t* v1alpha1_pod_scheduling_list = NULL; + if (include_optional) { + v1alpha1_pod_scheduling_list = v1alpha1_pod_scheduling_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_pod_scheduling_list = v1alpha1_pod_scheduling_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_pod_scheduling_list; +} + + +#ifdef v1alpha1_pod_scheduling_list_MAIN + +void test_v1alpha1_pod_scheduling_list(int include_optional) { + v1alpha1_pod_scheduling_list_t* v1alpha1_pod_scheduling_list_1 = instantiate_v1alpha1_pod_scheduling_list(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_list_1 = v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_1); + printf("v1alpha1_pod_scheduling_list :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_list_1)); + v1alpha1_pod_scheduling_list_t* v1alpha1_pod_scheduling_list_2 = v1alpha1_pod_scheduling_list_parseFromJSON(jsonv1alpha1_pod_scheduling_list_1); + cJSON* jsonv1alpha1_pod_scheduling_list_2 = v1alpha1_pod_scheduling_list_convertToJSON(v1alpha1_pod_scheduling_list_2); + printf("repeating v1alpha1_pod_scheduling_list:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_list_2)); +} + +int main() { + test_v1alpha1_pod_scheduling_list(1); + test_v1alpha1_pod_scheduling_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_list_MAIN +#endif // v1alpha1_pod_scheduling_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling_spec.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_spec.c new file mode 100644 index 0000000..1bec953 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_spec.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_pod_scheduling_spec_TEST +#define v1alpha1_pod_scheduling_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling_spec.h" +v1alpha1_pod_scheduling_spec_t* instantiate_v1alpha1_pod_scheduling_spec(int include_optional); + + + +v1alpha1_pod_scheduling_spec_t* instantiate_v1alpha1_pod_scheduling_spec(int include_optional) { + v1alpha1_pod_scheduling_spec_t* v1alpha1_pod_scheduling_spec = NULL; + if (include_optional) { + v1alpha1_pod_scheduling_spec = v1alpha1_pod_scheduling_spec_create( + list_createList(), + "0" + ); + } else { + v1alpha1_pod_scheduling_spec = v1alpha1_pod_scheduling_spec_create( + list_createList(), + "0" + ); + } + + return v1alpha1_pod_scheduling_spec; +} + + +#ifdef v1alpha1_pod_scheduling_spec_MAIN + +void test_v1alpha1_pod_scheduling_spec(int include_optional) { + v1alpha1_pod_scheduling_spec_t* v1alpha1_pod_scheduling_spec_1 = instantiate_v1alpha1_pod_scheduling_spec(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_spec_1 = v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_1); + printf("v1alpha1_pod_scheduling_spec :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_spec_1)); + v1alpha1_pod_scheduling_spec_t* v1alpha1_pod_scheduling_spec_2 = v1alpha1_pod_scheduling_spec_parseFromJSON(jsonv1alpha1_pod_scheduling_spec_1); + cJSON* jsonv1alpha1_pod_scheduling_spec_2 = v1alpha1_pod_scheduling_spec_convertToJSON(v1alpha1_pod_scheduling_spec_2); + printf("repeating v1alpha1_pod_scheduling_spec:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_spec_2)); +} + +int main() { + test_v1alpha1_pod_scheduling_spec(1); + test_v1alpha1_pod_scheduling_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_spec_MAIN +#endif // v1alpha1_pod_scheduling_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_pod_scheduling_status.c b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_status.c new file mode 100644 index 0000000..0fe90da --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_pod_scheduling_status.c @@ -0,0 +1,58 @@ +#ifndef v1alpha1_pod_scheduling_status_TEST +#define v1alpha1_pod_scheduling_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_pod_scheduling_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_pod_scheduling_status.h" +v1alpha1_pod_scheduling_status_t* instantiate_v1alpha1_pod_scheduling_status(int include_optional); + + + +v1alpha1_pod_scheduling_status_t* instantiate_v1alpha1_pod_scheduling_status(int include_optional) { + v1alpha1_pod_scheduling_status_t* v1alpha1_pod_scheduling_status = NULL; + if (include_optional) { + v1alpha1_pod_scheduling_status = v1alpha1_pod_scheduling_status_create( + list_createList() + ); + } else { + v1alpha1_pod_scheduling_status = v1alpha1_pod_scheduling_status_create( + list_createList() + ); + } + + return v1alpha1_pod_scheduling_status; +} + + +#ifdef v1alpha1_pod_scheduling_status_MAIN + +void test_v1alpha1_pod_scheduling_status(int include_optional) { + v1alpha1_pod_scheduling_status_t* v1alpha1_pod_scheduling_status_1 = instantiate_v1alpha1_pod_scheduling_status(include_optional); + + cJSON* jsonv1alpha1_pod_scheduling_status_1 = v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_1); + printf("v1alpha1_pod_scheduling_status :\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_status_1)); + v1alpha1_pod_scheduling_status_t* v1alpha1_pod_scheduling_status_2 = v1alpha1_pod_scheduling_status_parseFromJSON(jsonv1alpha1_pod_scheduling_status_1); + cJSON* jsonv1alpha1_pod_scheduling_status_2 = v1alpha1_pod_scheduling_status_convertToJSON(v1alpha1_pod_scheduling_status_2); + printf("repeating v1alpha1_pod_scheduling_status:\n%s\n", cJSON_Print(jsonv1alpha1_pod_scheduling_status_2)); +} + +int main() { + test_v1alpha1_pod_scheduling_status(1); + test_v1alpha1_pod_scheduling_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_pod_scheduling_status_MAIN +#endif // v1alpha1_pod_scheduling_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim.c b/kubernetes/unit-test/test_v1alpha1_resource_claim.c new file mode 100644 index 0000000..892c31c --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim.c @@ -0,0 +1,72 @@ +#ifndef v1alpha1_resource_claim_TEST +#define v1alpha1_resource_claim_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim.h" +v1alpha1_resource_claim_t* instantiate_v1alpha1_resource_claim(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_claim_spec.c" +#include "test_v1alpha1_resource_claim_status.c" + + +v1alpha1_resource_claim_t* instantiate_v1alpha1_resource_claim(int include_optional) { + v1alpha1_resource_claim_t* v1alpha1_resource_claim = NULL; + if (include_optional) { + v1alpha1_resource_claim = v1alpha1_resource_claim_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_spec(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_status(0) + ); + } else { + v1alpha1_resource_claim = v1alpha1_resource_claim_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1alpha1_resource_claim; +} + + +#ifdef v1alpha1_resource_claim_MAIN + +void test_v1alpha1_resource_claim(int include_optional) { + v1alpha1_resource_claim_t* v1alpha1_resource_claim_1 = instantiate_v1alpha1_resource_claim(include_optional); + + cJSON* jsonv1alpha1_resource_claim_1 = v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_1); + printf("v1alpha1_resource_claim :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_1)); + v1alpha1_resource_claim_t* v1alpha1_resource_claim_2 = v1alpha1_resource_claim_parseFromJSON(jsonv1alpha1_resource_claim_1); + cJSON* jsonv1alpha1_resource_claim_2 = v1alpha1_resource_claim_convertToJSON(v1alpha1_resource_claim_2); + printf("repeating v1alpha1_resource_claim:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_2)); +} + +int main() { + test_v1alpha1_resource_claim(1); + test_v1alpha1_resource_claim(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_MAIN +#endif // v1alpha1_resource_claim_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_consumer_reference.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_consumer_reference.c new file mode 100644 index 0000000..7045561 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_consumer_reference.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_claim_consumer_reference_TEST +#define v1alpha1_resource_claim_consumer_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_consumer_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_consumer_reference.h" +v1alpha1_resource_claim_consumer_reference_t* instantiate_v1alpha1_resource_claim_consumer_reference(int include_optional); + + + +v1alpha1_resource_claim_consumer_reference_t* instantiate_v1alpha1_resource_claim_consumer_reference(int include_optional) { + v1alpha1_resource_claim_consumer_reference_t* v1alpha1_resource_claim_consumer_reference = NULL; + if (include_optional) { + v1alpha1_resource_claim_consumer_reference = v1alpha1_resource_claim_consumer_reference_create( + "0", + "0", + "0", + "0" + ); + } else { + v1alpha1_resource_claim_consumer_reference = v1alpha1_resource_claim_consumer_reference_create( + "0", + "0", + "0", + "0" + ); + } + + return v1alpha1_resource_claim_consumer_reference; +} + + +#ifdef v1alpha1_resource_claim_consumer_reference_MAIN + +void test_v1alpha1_resource_claim_consumer_reference(int include_optional) { + v1alpha1_resource_claim_consumer_reference_t* v1alpha1_resource_claim_consumer_reference_1 = instantiate_v1alpha1_resource_claim_consumer_reference(include_optional); + + cJSON* jsonv1alpha1_resource_claim_consumer_reference_1 = v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_1); + printf("v1alpha1_resource_claim_consumer_reference :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_consumer_reference_1)); + v1alpha1_resource_claim_consumer_reference_t* v1alpha1_resource_claim_consumer_reference_2 = v1alpha1_resource_claim_consumer_reference_parseFromJSON(jsonv1alpha1_resource_claim_consumer_reference_1); + cJSON* jsonv1alpha1_resource_claim_consumer_reference_2 = v1alpha1_resource_claim_consumer_reference_convertToJSON(v1alpha1_resource_claim_consumer_reference_2); + printf("repeating v1alpha1_resource_claim_consumer_reference:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_consumer_reference_2)); +} + +int main() { + test_v1alpha1_resource_claim_consumer_reference(1); + test_v1alpha1_resource_claim_consumer_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_consumer_reference_MAIN +#endif // v1alpha1_resource_claim_consumer_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_list.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_list.c new file mode 100644 index 0000000..dad3c27 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_claim_list_TEST +#define v1alpha1_resource_claim_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_list.h" +v1alpha1_resource_claim_list_t* instantiate_v1alpha1_resource_claim_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_resource_claim_list_t* instantiate_v1alpha1_resource_claim_list(int include_optional) { + v1alpha1_resource_claim_list_t* v1alpha1_resource_claim_list = NULL; + if (include_optional) { + v1alpha1_resource_claim_list = v1alpha1_resource_claim_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_resource_claim_list = v1alpha1_resource_claim_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_resource_claim_list; +} + + +#ifdef v1alpha1_resource_claim_list_MAIN + +void test_v1alpha1_resource_claim_list(int include_optional) { + v1alpha1_resource_claim_list_t* v1alpha1_resource_claim_list_1 = instantiate_v1alpha1_resource_claim_list(include_optional); + + cJSON* jsonv1alpha1_resource_claim_list_1 = v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_1); + printf("v1alpha1_resource_claim_list :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_list_1)); + v1alpha1_resource_claim_list_t* v1alpha1_resource_claim_list_2 = v1alpha1_resource_claim_list_parseFromJSON(jsonv1alpha1_resource_claim_list_1); + cJSON* jsonv1alpha1_resource_claim_list_2 = v1alpha1_resource_claim_list_convertToJSON(v1alpha1_resource_claim_list_2); + printf("repeating v1alpha1_resource_claim_list:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_list_2)); +} + +int main() { + test_v1alpha1_resource_claim_list(1); + test_v1alpha1_resource_claim_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_list_MAIN +#endif // v1alpha1_resource_claim_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_parameters_reference.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_parameters_reference.c new file mode 100644 index 0000000..820ca1f --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_parameters_reference.c @@ -0,0 +1,62 @@ +#ifndef v1alpha1_resource_claim_parameters_reference_TEST +#define v1alpha1_resource_claim_parameters_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_parameters_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_parameters_reference.h" +v1alpha1_resource_claim_parameters_reference_t* instantiate_v1alpha1_resource_claim_parameters_reference(int include_optional); + + + +v1alpha1_resource_claim_parameters_reference_t* instantiate_v1alpha1_resource_claim_parameters_reference(int include_optional) { + v1alpha1_resource_claim_parameters_reference_t* v1alpha1_resource_claim_parameters_reference = NULL; + if (include_optional) { + v1alpha1_resource_claim_parameters_reference = v1alpha1_resource_claim_parameters_reference_create( + "0", + "0", + "0" + ); + } else { + v1alpha1_resource_claim_parameters_reference = v1alpha1_resource_claim_parameters_reference_create( + "0", + "0", + "0" + ); + } + + return v1alpha1_resource_claim_parameters_reference; +} + + +#ifdef v1alpha1_resource_claim_parameters_reference_MAIN + +void test_v1alpha1_resource_claim_parameters_reference(int include_optional) { + v1alpha1_resource_claim_parameters_reference_t* v1alpha1_resource_claim_parameters_reference_1 = instantiate_v1alpha1_resource_claim_parameters_reference(include_optional); + + cJSON* jsonv1alpha1_resource_claim_parameters_reference_1 = v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_1); + printf("v1alpha1_resource_claim_parameters_reference :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_parameters_reference_1)); + v1alpha1_resource_claim_parameters_reference_t* v1alpha1_resource_claim_parameters_reference_2 = v1alpha1_resource_claim_parameters_reference_parseFromJSON(jsonv1alpha1_resource_claim_parameters_reference_1); + cJSON* jsonv1alpha1_resource_claim_parameters_reference_2 = v1alpha1_resource_claim_parameters_reference_convertToJSON(v1alpha1_resource_claim_parameters_reference_2); + printf("repeating v1alpha1_resource_claim_parameters_reference:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_parameters_reference_2)); +} + +int main() { + test_v1alpha1_resource_claim_parameters_reference(1); + test_v1alpha1_resource_claim_parameters_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_parameters_reference_MAIN +#endif // v1alpha1_resource_claim_parameters_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_scheduling_status.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_scheduling_status.c new file mode 100644 index 0000000..0369d1b --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_scheduling_status.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_resource_claim_scheduling_status_TEST +#define v1alpha1_resource_claim_scheduling_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_scheduling_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_scheduling_status.h" +v1alpha1_resource_claim_scheduling_status_t* instantiate_v1alpha1_resource_claim_scheduling_status(int include_optional); + + + +v1alpha1_resource_claim_scheduling_status_t* instantiate_v1alpha1_resource_claim_scheduling_status(int include_optional) { + v1alpha1_resource_claim_scheduling_status_t* v1alpha1_resource_claim_scheduling_status = NULL; + if (include_optional) { + v1alpha1_resource_claim_scheduling_status = v1alpha1_resource_claim_scheduling_status_create( + "0", + list_createList() + ); + } else { + v1alpha1_resource_claim_scheduling_status = v1alpha1_resource_claim_scheduling_status_create( + "0", + list_createList() + ); + } + + return v1alpha1_resource_claim_scheduling_status; +} + + +#ifdef v1alpha1_resource_claim_scheduling_status_MAIN + +void test_v1alpha1_resource_claim_scheduling_status(int include_optional) { + v1alpha1_resource_claim_scheduling_status_t* v1alpha1_resource_claim_scheduling_status_1 = instantiate_v1alpha1_resource_claim_scheduling_status(include_optional); + + cJSON* jsonv1alpha1_resource_claim_scheduling_status_1 = v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_1); + printf("v1alpha1_resource_claim_scheduling_status :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_scheduling_status_1)); + v1alpha1_resource_claim_scheduling_status_t* v1alpha1_resource_claim_scheduling_status_2 = v1alpha1_resource_claim_scheduling_status_parseFromJSON(jsonv1alpha1_resource_claim_scheduling_status_1); + cJSON* jsonv1alpha1_resource_claim_scheduling_status_2 = v1alpha1_resource_claim_scheduling_status_convertToJSON(v1alpha1_resource_claim_scheduling_status_2); + printf("repeating v1alpha1_resource_claim_scheduling_status:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_scheduling_status_2)); +} + +int main() { + test_v1alpha1_resource_claim_scheduling_status(1); + test_v1alpha1_resource_claim_scheduling_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_scheduling_status_MAIN +#endif // v1alpha1_resource_claim_scheduling_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_spec.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_spec.c new file mode 100644 index 0000000..163d1d5 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_spec.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_claim_spec_TEST +#define v1alpha1_resource_claim_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_spec.h" +v1alpha1_resource_claim_spec_t* instantiate_v1alpha1_resource_claim_spec(int include_optional); + +#include "test_v1alpha1_resource_claim_parameters_reference.c" + + +v1alpha1_resource_claim_spec_t* instantiate_v1alpha1_resource_claim_spec(int include_optional) { + v1alpha1_resource_claim_spec_t* v1alpha1_resource_claim_spec = NULL; + if (include_optional) { + v1alpha1_resource_claim_spec = v1alpha1_resource_claim_spec_create( + "0", + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_parameters_reference(0), + "0" + ); + } else { + v1alpha1_resource_claim_spec = v1alpha1_resource_claim_spec_create( + "0", + NULL, + "0" + ); + } + + return v1alpha1_resource_claim_spec; +} + + +#ifdef v1alpha1_resource_claim_spec_MAIN + +void test_v1alpha1_resource_claim_spec(int include_optional) { + v1alpha1_resource_claim_spec_t* v1alpha1_resource_claim_spec_1 = instantiate_v1alpha1_resource_claim_spec(include_optional); + + cJSON* jsonv1alpha1_resource_claim_spec_1 = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_1); + printf("v1alpha1_resource_claim_spec :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_spec_1)); + v1alpha1_resource_claim_spec_t* v1alpha1_resource_claim_spec_2 = v1alpha1_resource_claim_spec_parseFromJSON(jsonv1alpha1_resource_claim_spec_1); + cJSON* jsonv1alpha1_resource_claim_spec_2 = v1alpha1_resource_claim_spec_convertToJSON(v1alpha1_resource_claim_spec_2); + printf("repeating v1alpha1_resource_claim_spec:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_spec_2)); +} + +int main() { + test_v1alpha1_resource_claim_spec(1); + test_v1alpha1_resource_claim_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_spec_MAIN +#endif // v1alpha1_resource_claim_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_status.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_status.c new file mode 100644 index 0000000..9bb11bb --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_status.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_claim_status_TEST +#define v1alpha1_resource_claim_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_status.h" +v1alpha1_resource_claim_status_t* instantiate_v1alpha1_resource_claim_status(int include_optional); + +#include "test_v1alpha1_allocation_result.c" + + +v1alpha1_resource_claim_status_t* instantiate_v1alpha1_resource_claim_status(int include_optional) { + v1alpha1_resource_claim_status_t* v1alpha1_resource_claim_status = NULL; + if (include_optional) { + v1alpha1_resource_claim_status = v1alpha1_resource_claim_status_create( + // false, not to have infinite recursion + instantiate_v1alpha1_allocation_result(0), + 1, + "0", + list_createList() + ); + } else { + v1alpha1_resource_claim_status = v1alpha1_resource_claim_status_create( + NULL, + 1, + "0", + list_createList() + ); + } + + return v1alpha1_resource_claim_status; +} + + +#ifdef v1alpha1_resource_claim_status_MAIN + +void test_v1alpha1_resource_claim_status(int include_optional) { + v1alpha1_resource_claim_status_t* v1alpha1_resource_claim_status_1 = instantiate_v1alpha1_resource_claim_status(include_optional); + + cJSON* jsonv1alpha1_resource_claim_status_1 = v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_1); + printf("v1alpha1_resource_claim_status :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_status_1)); + v1alpha1_resource_claim_status_t* v1alpha1_resource_claim_status_2 = v1alpha1_resource_claim_status_parseFromJSON(jsonv1alpha1_resource_claim_status_1); + cJSON* jsonv1alpha1_resource_claim_status_2 = v1alpha1_resource_claim_status_convertToJSON(v1alpha1_resource_claim_status_2); + printf("repeating v1alpha1_resource_claim_status:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_status_2)); +} + +int main() { + test_v1alpha1_resource_claim_status(1); + test_v1alpha1_resource_claim_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_status_MAIN +#endif // v1alpha1_resource_claim_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_template.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_template.c new file mode 100644 index 0000000..fff231b --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_template.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_resource_claim_template_TEST +#define v1alpha1_resource_claim_template_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_template_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_template.h" +v1alpha1_resource_claim_template_t* instantiate_v1alpha1_resource_claim_template(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_claim_template_spec.c" + + +v1alpha1_resource_claim_template_t* instantiate_v1alpha1_resource_claim_template(int include_optional) { + v1alpha1_resource_claim_template_t* v1alpha1_resource_claim_template = NULL; + if (include_optional) { + v1alpha1_resource_claim_template = v1alpha1_resource_claim_template_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_template_spec(0) + ); + } else { + v1alpha1_resource_claim_template = v1alpha1_resource_claim_template_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_resource_claim_template; +} + + +#ifdef v1alpha1_resource_claim_template_MAIN + +void test_v1alpha1_resource_claim_template(int include_optional) { + v1alpha1_resource_claim_template_t* v1alpha1_resource_claim_template_1 = instantiate_v1alpha1_resource_claim_template(include_optional); + + cJSON* jsonv1alpha1_resource_claim_template_1 = v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_1); + printf("v1alpha1_resource_claim_template :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_1)); + v1alpha1_resource_claim_template_t* v1alpha1_resource_claim_template_2 = v1alpha1_resource_claim_template_parseFromJSON(jsonv1alpha1_resource_claim_template_1); + cJSON* jsonv1alpha1_resource_claim_template_2 = v1alpha1_resource_claim_template_convertToJSON(v1alpha1_resource_claim_template_2); + printf("repeating v1alpha1_resource_claim_template:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_2)); +} + +int main() { + test_v1alpha1_resource_claim_template(1); + test_v1alpha1_resource_claim_template(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_template_MAIN +#endif // v1alpha1_resource_claim_template_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_template_list.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_list.c new file mode 100644 index 0000000..9b56123 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_claim_template_list_TEST +#define v1alpha1_resource_claim_template_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_template_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_template_list.h" +v1alpha1_resource_claim_template_list_t* instantiate_v1alpha1_resource_claim_template_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_resource_claim_template_list_t* instantiate_v1alpha1_resource_claim_template_list(int include_optional) { + v1alpha1_resource_claim_template_list_t* v1alpha1_resource_claim_template_list = NULL; + if (include_optional) { + v1alpha1_resource_claim_template_list = v1alpha1_resource_claim_template_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_resource_claim_template_list = v1alpha1_resource_claim_template_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_resource_claim_template_list; +} + + +#ifdef v1alpha1_resource_claim_template_list_MAIN + +void test_v1alpha1_resource_claim_template_list(int include_optional) { + v1alpha1_resource_claim_template_list_t* v1alpha1_resource_claim_template_list_1 = instantiate_v1alpha1_resource_claim_template_list(include_optional); + + cJSON* jsonv1alpha1_resource_claim_template_list_1 = v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_1); + printf("v1alpha1_resource_claim_template_list :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_list_1)); + v1alpha1_resource_claim_template_list_t* v1alpha1_resource_claim_template_list_2 = v1alpha1_resource_claim_template_list_parseFromJSON(jsonv1alpha1_resource_claim_template_list_1); + cJSON* jsonv1alpha1_resource_claim_template_list_2 = v1alpha1_resource_claim_template_list_convertToJSON(v1alpha1_resource_claim_template_list_2); + printf("repeating v1alpha1_resource_claim_template_list:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_list_2)); +} + +int main() { + test_v1alpha1_resource_claim_template_list(1); + test_v1alpha1_resource_claim_template_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_template_list_MAIN +#endif // v1alpha1_resource_claim_template_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_claim_template_spec.c b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_spec.c new file mode 100644 index 0000000..5702f40 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_claim_template_spec.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_claim_template_spec_TEST +#define v1alpha1_resource_claim_template_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_claim_template_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_claim_template_spec.h" +v1alpha1_resource_claim_template_spec_t* instantiate_v1alpha1_resource_claim_template_spec(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_claim_spec.c" + + +v1alpha1_resource_claim_template_spec_t* instantiate_v1alpha1_resource_claim_template_spec(int include_optional) { + v1alpha1_resource_claim_template_spec_t* v1alpha1_resource_claim_template_spec = NULL; + if (include_optional) { + v1alpha1_resource_claim_template_spec = v1alpha1_resource_claim_template_spec_create( + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_claim_spec(0) + ); + } else { + v1alpha1_resource_claim_template_spec = v1alpha1_resource_claim_template_spec_create( + NULL, + NULL + ); + } + + return v1alpha1_resource_claim_template_spec; +} + + +#ifdef v1alpha1_resource_claim_template_spec_MAIN + +void test_v1alpha1_resource_claim_template_spec(int include_optional) { + v1alpha1_resource_claim_template_spec_t* v1alpha1_resource_claim_template_spec_1 = instantiate_v1alpha1_resource_claim_template_spec(include_optional); + + cJSON* jsonv1alpha1_resource_claim_template_spec_1 = v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_1); + printf("v1alpha1_resource_claim_template_spec :\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_spec_1)); + v1alpha1_resource_claim_template_spec_t* v1alpha1_resource_claim_template_spec_2 = v1alpha1_resource_claim_template_spec_parseFromJSON(jsonv1alpha1_resource_claim_template_spec_1); + cJSON* jsonv1alpha1_resource_claim_template_spec_2 = v1alpha1_resource_claim_template_spec_convertToJSON(v1alpha1_resource_claim_template_spec_2); + printf("repeating v1alpha1_resource_claim_template_spec:\n%s\n", cJSON_Print(jsonv1alpha1_resource_claim_template_spec_2)); +} + +int main() { + test_v1alpha1_resource_claim_template_spec(1); + test_v1alpha1_resource_claim_template_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_claim_template_spec_MAIN +#endif // v1alpha1_resource_claim_template_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_class.c b/kubernetes/unit-test/test_v1alpha1_resource_class.c new file mode 100644 index 0000000..f723682 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_class.c @@ -0,0 +1,74 @@ +#ifndef v1alpha1_resource_class_TEST +#define v1alpha1_resource_class_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_class_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_class.h" +v1alpha1_resource_class_t* instantiate_v1alpha1_resource_class(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_resource_class_parameters_reference.c" +#include "test_v1_node_selector.c" + + +v1alpha1_resource_class_t* instantiate_v1alpha1_resource_class(int include_optional) { + v1alpha1_resource_class_t* v1alpha1_resource_class = NULL; + if (include_optional) { + v1alpha1_resource_class = v1alpha1_resource_class_create( + "0", + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_resource_class_parameters_reference(0), + // false, not to have infinite recursion + instantiate_v1_node_selector(0) + ); + } else { + v1alpha1_resource_class = v1alpha1_resource_class_create( + "0", + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1alpha1_resource_class; +} + + +#ifdef v1alpha1_resource_class_MAIN + +void test_v1alpha1_resource_class(int include_optional) { + v1alpha1_resource_class_t* v1alpha1_resource_class_1 = instantiate_v1alpha1_resource_class(include_optional); + + cJSON* jsonv1alpha1_resource_class_1 = v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_1); + printf("v1alpha1_resource_class :\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_1)); + v1alpha1_resource_class_t* v1alpha1_resource_class_2 = v1alpha1_resource_class_parseFromJSON(jsonv1alpha1_resource_class_1); + cJSON* jsonv1alpha1_resource_class_2 = v1alpha1_resource_class_convertToJSON(v1alpha1_resource_class_2); + printf("repeating v1alpha1_resource_class:\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_2)); +} + +int main() { + test_v1alpha1_resource_class(1); + test_v1alpha1_resource_class(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_class_MAIN +#endif // v1alpha1_resource_class_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_class_list.c b/kubernetes/unit-test/test_v1alpha1_resource_class_list.c new file mode 100644 index 0000000..e8d1d1d --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_class_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_resource_class_list_TEST +#define v1alpha1_resource_class_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_class_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_class_list.h" +v1alpha1_resource_class_list_t* instantiate_v1alpha1_resource_class_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_resource_class_list_t* instantiate_v1alpha1_resource_class_list(int include_optional) { + v1alpha1_resource_class_list_t* v1alpha1_resource_class_list = NULL; + if (include_optional) { + v1alpha1_resource_class_list = v1alpha1_resource_class_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_resource_class_list = v1alpha1_resource_class_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_resource_class_list; +} + + +#ifdef v1alpha1_resource_class_list_MAIN + +void test_v1alpha1_resource_class_list(int include_optional) { + v1alpha1_resource_class_list_t* v1alpha1_resource_class_list_1 = instantiate_v1alpha1_resource_class_list(include_optional); + + cJSON* jsonv1alpha1_resource_class_list_1 = v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_1); + printf("v1alpha1_resource_class_list :\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_list_1)); + v1alpha1_resource_class_list_t* v1alpha1_resource_class_list_2 = v1alpha1_resource_class_list_parseFromJSON(jsonv1alpha1_resource_class_list_1); + cJSON* jsonv1alpha1_resource_class_list_2 = v1alpha1_resource_class_list_convertToJSON(v1alpha1_resource_class_list_2); + printf("repeating v1alpha1_resource_class_list:\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_list_2)); +} + +int main() { + test_v1alpha1_resource_class_list(1); + test_v1alpha1_resource_class_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_class_list_MAIN +#endif // v1alpha1_resource_class_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_resource_class_parameters_reference.c b/kubernetes/unit-test/test_v1alpha1_resource_class_parameters_reference.c new file mode 100644 index 0000000..e233773 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_resource_class_parameters_reference.c @@ -0,0 +1,64 @@ +#ifndef v1alpha1_resource_class_parameters_reference_TEST +#define v1alpha1_resource_class_parameters_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_resource_class_parameters_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_resource_class_parameters_reference.h" +v1alpha1_resource_class_parameters_reference_t* instantiate_v1alpha1_resource_class_parameters_reference(int include_optional); + + + +v1alpha1_resource_class_parameters_reference_t* instantiate_v1alpha1_resource_class_parameters_reference(int include_optional) { + v1alpha1_resource_class_parameters_reference_t* v1alpha1_resource_class_parameters_reference = NULL; + if (include_optional) { + v1alpha1_resource_class_parameters_reference = v1alpha1_resource_class_parameters_reference_create( + "0", + "0", + "0", + "0" + ); + } else { + v1alpha1_resource_class_parameters_reference = v1alpha1_resource_class_parameters_reference_create( + "0", + "0", + "0", + "0" + ); + } + + return v1alpha1_resource_class_parameters_reference; +} + + +#ifdef v1alpha1_resource_class_parameters_reference_MAIN + +void test_v1alpha1_resource_class_parameters_reference(int include_optional) { + v1alpha1_resource_class_parameters_reference_t* v1alpha1_resource_class_parameters_reference_1 = instantiate_v1alpha1_resource_class_parameters_reference(include_optional); + + cJSON* jsonv1alpha1_resource_class_parameters_reference_1 = v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_1); + printf("v1alpha1_resource_class_parameters_reference :\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_parameters_reference_1)); + v1alpha1_resource_class_parameters_reference_t* v1alpha1_resource_class_parameters_reference_2 = v1alpha1_resource_class_parameters_reference_parseFromJSON(jsonv1alpha1_resource_class_parameters_reference_1); + cJSON* jsonv1alpha1_resource_class_parameters_reference_2 = v1alpha1_resource_class_parameters_reference_convertToJSON(v1alpha1_resource_class_parameters_reference_2); + printf("repeating v1alpha1_resource_class_parameters_reference:\n%s\n", cJSON_Print(jsonv1alpha1_resource_class_parameters_reference_2)); +} + +int main() { + test_v1alpha1_resource_class_parameters_reference(1); + test_v1alpha1_resource_class_parameters_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_resource_class_parameters_reference_MAIN +#endif // v1alpha1_resource_class_parameters_reference_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_self_subject_review.c b/kubernetes/unit-test/test_v1alpha1_self_subject_review.c new file mode 100644 index 0000000..36b7bc8 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_self_subject_review.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_self_subject_review_TEST +#define v1alpha1_self_subject_review_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_self_subject_review_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_self_subject_review.h" +v1alpha1_self_subject_review_t* instantiate_v1alpha1_self_subject_review(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_self_subject_review_status.c" + + +v1alpha1_self_subject_review_t* instantiate_v1alpha1_self_subject_review(int include_optional) { + v1alpha1_self_subject_review_t* v1alpha1_self_subject_review = NULL; + if (include_optional) { + v1alpha1_self_subject_review = v1alpha1_self_subject_review_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_self_subject_review_status(0) + ); + } else { + v1alpha1_self_subject_review = v1alpha1_self_subject_review_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_self_subject_review; +} + + +#ifdef v1alpha1_self_subject_review_MAIN + +void test_v1alpha1_self_subject_review(int include_optional) { + v1alpha1_self_subject_review_t* v1alpha1_self_subject_review_1 = instantiate_v1alpha1_self_subject_review(include_optional); + + cJSON* jsonv1alpha1_self_subject_review_1 = v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_1); + printf("v1alpha1_self_subject_review :\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_1)); + v1alpha1_self_subject_review_t* v1alpha1_self_subject_review_2 = v1alpha1_self_subject_review_parseFromJSON(jsonv1alpha1_self_subject_review_1); + cJSON* jsonv1alpha1_self_subject_review_2 = v1alpha1_self_subject_review_convertToJSON(v1alpha1_self_subject_review_2); + printf("repeating v1alpha1_self_subject_review:\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_2)); +} + +int main() { + test_v1alpha1_self_subject_review(1); + test_v1alpha1_self_subject_review(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_self_subject_review_MAIN +#endif // v1alpha1_self_subject_review_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_self_subject_review_status.c b/kubernetes/unit-test/test_v1alpha1_self_subject_review_status.c new file mode 100644 index 0000000..fef92c4 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_self_subject_review_status.c @@ -0,0 +1,60 @@ +#ifndef v1alpha1_self_subject_review_status_TEST +#define v1alpha1_self_subject_review_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_self_subject_review_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_self_subject_review_status.h" +v1alpha1_self_subject_review_status_t* instantiate_v1alpha1_self_subject_review_status(int include_optional); + +#include "test_v1_user_info.c" + + +v1alpha1_self_subject_review_status_t* instantiate_v1alpha1_self_subject_review_status(int include_optional) { + v1alpha1_self_subject_review_status_t* v1alpha1_self_subject_review_status = NULL; + if (include_optional) { + v1alpha1_self_subject_review_status = v1alpha1_self_subject_review_status_create( + // false, not to have infinite recursion + instantiate_v1_user_info(0) + ); + } else { + v1alpha1_self_subject_review_status = v1alpha1_self_subject_review_status_create( + NULL + ); + } + + return v1alpha1_self_subject_review_status; +} + + +#ifdef v1alpha1_self_subject_review_status_MAIN + +void test_v1alpha1_self_subject_review_status(int include_optional) { + v1alpha1_self_subject_review_status_t* v1alpha1_self_subject_review_status_1 = instantiate_v1alpha1_self_subject_review_status(include_optional); + + cJSON* jsonv1alpha1_self_subject_review_status_1 = v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_1); + printf("v1alpha1_self_subject_review_status :\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_status_1)); + v1alpha1_self_subject_review_status_t* v1alpha1_self_subject_review_status_2 = v1alpha1_self_subject_review_status_parseFromJSON(jsonv1alpha1_self_subject_review_status_1); + cJSON* jsonv1alpha1_self_subject_review_status_2 = v1alpha1_self_subject_review_status_convertToJSON(v1alpha1_self_subject_review_status_2); + printf("repeating v1alpha1_self_subject_review_status:\n%s\n", cJSON_Print(jsonv1alpha1_self_subject_review_status_2)); +} + +int main() { + test_v1alpha1_self_subject_review_status(1); + test_v1alpha1_self_subject_review_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_self_subject_review_status_MAIN +#endif // v1alpha1_self_subject_review_status_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy.c new file mode 100644 index 0000000..a093fc4 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_validating_admission_policy_TEST +#define v1alpha1_validating_admission_policy_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy.h" +v1alpha1_validating_admission_policy_t* instantiate_v1alpha1_validating_admission_policy(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_validating_admission_policy_spec.c" + + +v1alpha1_validating_admission_policy_t* instantiate_v1alpha1_validating_admission_policy(int include_optional) { + v1alpha1_validating_admission_policy_t* v1alpha1_validating_admission_policy = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy = v1alpha1_validating_admission_policy_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_validating_admission_policy_spec(0) + ); + } else { + v1alpha1_validating_admission_policy = v1alpha1_validating_admission_policy_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_validating_admission_policy; +} + + +#ifdef v1alpha1_validating_admission_policy_MAIN + +void test_v1alpha1_validating_admission_policy(int include_optional) { + v1alpha1_validating_admission_policy_t* v1alpha1_validating_admission_policy_1 = instantiate_v1alpha1_validating_admission_policy(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_1 = v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_1); + printf("v1alpha1_validating_admission_policy :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_1)); + v1alpha1_validating_admission_policy_t* v1alpha1_validating_admission_policy_2 = v1alpha1_validating_admission_policy_parseFromJSON(jsonv1alpha1_validating_admission_policy_1); + cJSON* jsonv1alpha1_validating_admission_policy_2 = v1alpha1_validating_admission_policy_convertToJSON(v1alpha1_validating_admission_policy_2); + printf("repeating v1alpha1_validating_admission_policy:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy(1); + test_v1alpha1_validating_admission_policy(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_MAIN +#endif // v1alpha1_validating_admission_policy_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding.c new file mode 100644 index 0000000..a993a34 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_validating_admission_policy_binding_TEST +#define v1alpha1_validating_admission_policy_binding_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_binding_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_binding.h" +v1alpha1_validating_admission_policy_binding_t* instantiate_v1alpha1_validating_admission_policy_binding(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1alpha1_validating_admission_policy_binding_spec.c" + + +v1alpha1_validating_admission_policy_binding_t* instantiate_v1alpha1_validating_admission_policy_binding(int include_optional) { + v1alpha1_validating_admission_policy_binding_t* v1alpha1_validating_admission_policy_binding = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_binding = v1alpha1_validating_admission_policy_binding_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1alpha1_validating_admission_policy_binding_spec(0) + ); + } else { + v1alpha1_validating_admission_policy_binding = v1alpha1_validating_admission_policy_binding_create( + "0", + "0", + NULL, + NULL + ); + } + + return v1alpha1_validating_admission_policy_binding; +} + + +#ifdef v1alpha1_validating_admission_policy_binding_MAIN + +void test_v1alpha1_validating_admission_policy_binding(int include_optional) { + v1alpha1_validating_admission_policy_binding_t* v1alpha1_validating_admission_policy_binding_1 = instantiate_v1alpha1_validating_admission_policy_binding(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_binding_1 = v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_1); + printf("v1alpha1_validating_admission_policy_binding :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_1)); + v1alpha1_validating_admission_policy_binding_t* v1alpha1_validating_admission_policy_binding_2 = v1alpha1_validating_admission_policy_binding_parseFromJSON(jsonv1alpha1_validating_admission_policy_binding_1); + cJSON* jsonv1alpha1_validating_admission_policy_binding_2 = v1alpha1_validating_admission_policy_binding_convertToJSON(v1alpha1_validating_admission_policy_binding_2); + printf("repeating v1alpha1_validating_admission_policy_binding:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_binding(1); + test_v1alpha1_validating_admission_policy_binding(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_binding_MAIN +#endif // v1alpha1_validating_admission_policy_binding_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_list.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_list.c new file mode 100644 index 0000000..76dc0d7 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_validating_admission_policy_binding_list_TEST +#define v1alpha1_validating_admission_policy_binding_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_binding_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_binding_list.h" +v1alpha1_validating_admission_policy_binding_list_t* instantiate_v1alpha1_validating_admission_policy_binding_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_validating_admission_policy_binding_list_t* instantiate_v1alpha1_validating_admission_policy_binding_list(int include_optional) { + v1alpha1_validating_admission_policy_binding_list_t* v1alpha1_validating_admission_policy_binding_list = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_binding_list = v1alpha1_validating_admission_policy_binding_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_validating_admission_policy_binding_list = v1alpha1_validating_admission_policy_binding_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_validating_admission_policy_binding_list; +} + + +#ifdef v1alpha1_validating_admission_policy_binding_list_MAIN + +void test_v1alpha1_validating_admission_policy_binding_list(int include_optional) { + v1alpha1_validating_admission_policy_binding_list_t* v1alpha1_validating_admission_policy_binding_list_1 = instantiate_v1alpha1_validating_admission_policy_binding_list(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_binding_list_1 = v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_1); + printf("v1alpha1_validating_admission_policy_binding_list :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_list_1)); + v1alpha1_validating_admission_policy_binding_list_t* v1alpha1_validating_admission_policy_binding_list_2 = v1alpha1_validating_admission_policy_binding_list_parseFromJSON(jsonv1alpha1_validating_admission_policy_binding_list_1); + cJSON* jsonv1alpha1_validating_admission_policy_binding_list_2 = v1alpha1_validating_admission_policy_binding_list_convertToJSON(v1alpha1_validating_admission_policy_binding_list_2); + printf("repeating v1alpha1_validating_admission_policy_binding_list:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_list_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_binding_list(1); + test_v1alpha1_validating_admission_policy_binding_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_binding_list_MAIN +#endif // v1alpha1_validating_admission_policy_binding_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c new file mode 100644 index 0000000..b071cdd --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_binding_spec.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_validating_admission_policy_binding_spec_TEST +#define v1alpha1_validating_admission_policy_binding_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_binding_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_binding_spec.h" +v1alpha1_validating_admission_policy_binding_spec_t* instantiate_v1alpha1_validating_admission_policy_binding_spec(int include_optional); + +#include "test_v1alpha1_match_resources.c" +#include "test_v1alpha1_param_ref.c" + + +v1alpha1_validating_admission_policy_binding_spec_t* instantiate_v1alpha1_validating_admission_policy_binding_spec(int include_optional) { + v1alpha1_validating_admission_policy_binding_spec_t* v1alpha1_validating_admission_policy_binding_spec = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_binding_spec = v1alpha1_validating_admission_policy_binding_spec_create( + // false, not to have infinite recursion + instantiate_v1alpha1_match_resources(0), + // false, not to have infinite recursion + instantiate_v1alpha1_param_ref(0), + "0" + ); + } else { + v1alpha1_validating_admission_policy_binding_spec = v1alpha1_validating_admission_policy_binding_spec_create( + NULL, + NULL, + "0" + ); + } + + return v1alpha1_validating_admission_policy_binding_spec; +} + + +#ifdef v1alpha1_validating_admission_policy_binding_spec_MAIN + +void test_v1alpha1_validating_admission_policy_binding_spec(int include_optional) { + v1alpha1_validating_admission_policy_binding_spec_t* v1alpha1_validating_admission_policy_binding_spec_1 = instantiate_v1alpha1_validating_admission_policy_binding_spec(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_binding_spec_1 = v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_1); + printf("v1alpha1_validating_admission_policy_binding_spec :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_spec_1)); + v1alpha1_validating_admission_policy_binding_spec_t* v1alpha1_validating_admission_policy_binding_spec_2 = v1alpha1_validating_admission_policy_binding_spec_parseFromJSON(jsonv1alpha1_validating_admission_policy_binding_spec_1); + cJSON* jsonv1alpha1_validating_admission_policy_binding_spec_2 = v1alpha1_validating_admission_policy_binding_spec_convertToJSON(v1alpha1_validating_admission_policy_binding_spec_2); + printf("repeating v1alpha1_validating_admission_policy_binding_spec:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_binding_spec_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_binding_spec(1); + test_v1alpha1_validating_admission_policy_binding_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_binding_spec_MAIN +#endif // v1alpha1_validating_admission_policy_binding_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_list.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_list.c new file mode 100644 index 0000000..88403b2 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_list.c @@ -0,0 +1,66 @@ +#ifndef v1alpha1_validating_admission_policy_list_TEST +#define v1alpha1_validating_admission_policy_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_list.h" +v1alpha1_validating_admission_policy_list_t* instantiate_v1alpha1_validating_admission_policy_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1alpha1_validating_admission_policy_list_t* instantiate_v1alpha1_validating_admission_policy_list(int include_optional) { + v1alpha1_validating_admission_policy_list_t* v1alpha1_validating_admission_policy_list = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_list = v1alpha1_validating_admission_policy_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1alpha1_validating_admission_policy_list = v1alpha1_validating_admission_policy_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1alpha1_validating_admission_policy_list; +} + + +#ifdef v1alpha1_validating_admission_policy_list_MAIN + +void test_v1alpha1_validating_admission_policy_list(int include_optional) { + v1alpha1_validating_admission_policy_list_t* v1alpha1_validating_admission_policy_list_1 = instantiate_v1alpha1_validating_admission_policy_list(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_list_1 = v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_1); + printf("v1alpha1_validating_admission_policy_list :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_list_1)); + v1alpha1_validating_admission_policy_list_t* v1alpha1_validating_admission_policy_list_2 = v1alpha1_validating_admission_policy_list_parseFromJSON(jsonv1alpha1_validating_admission_policy_list_1); + cJSON* jsonv1alpha1_validating_admission_policy_list_2 = v1alpha1_validating_admission_policy_list_convertToJSON(v1alpha1_validating_admission_policy_list_2); + printf("repeating v1alpha1_validating_admission_policy_list:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_list_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_list(1); + test_v1alpha1_validating_admission_policy_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_list_MAIN +#endif // v1alpha1_validating_admission_policy_list_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_spec.c b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_spec.c new file mode 100644 index 0000000..b99a4cc --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validating_admission_policy_spec.c @@ -0,0 +1,68 @@ +#ifndef v1alpha1_validating_admission_policy_spec_TEST +#define v1alpha1_validating_admission_policy_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validating_admission_policy_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validating_admission_policy_spec.h" +v1alpha1_validating_admission_policy_spec_t* instantiate_v1alpha1_validating_admission_policy_spec(int include_optional); + +#include "test_v1alpha1_match_resources.c" +#include "test_v1alpha1_param_kind.c" + + +v1alpha1_validating_admission_policy_spec_t* instantiate_v1alpha1_validating_admission_policy_spec(int include_optional) { + v1alpha1_validating_admission_policy_spec_t* v1alpha1_validating_admission_policy_spec = NULL; + if (include_optional) { + v1alpha1_validating_admission_policy_spec = v1alpha1_validating_admission_policy_spec_create( + "0", + // false, not to have infinite recursion + instantiate_v1alpha1_match_resources(0), + // false, not to have infinite recursion + instantiate_v1alpha1_param_kind(0), + list_createList() + ); + } else { + v1alpha1_validating_admission_policy_spec = v1alpha1_validating_admission_policy_spec_create( + "0", + NULL, + NULL, + list_createList() + ); + } + + return v1alpha1_validating_admission_policy_spec; +} + + +#ifdef v1alpha1_validating_admission_policy_spec_MAIN + +void test_v1alpha1_validating_admission_policy_spec(int include_optional) { + v1alpha1_validating_admission_policy_spec_t* v1alpha1_validating_admission_policy_spec_1 = instantiate_v1alpha1_validating_admission_policy_spec(include_optional); + + cJSON* jsonv1alpha1_validating_admission_policy_spec_1 = v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_1); + printf("v1alpha1_validating_admission_policy_spec :\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_spec_1)); + v1alpha1_validating_admission_policy_spec_t* v1alpha1_validating_admission_policy_spec_2 = v1alpha1_validating_admission_policy_spec_parseFromJSON(jsonv1alpha1_validating_admission_policy_spec_1); + cJSON* jsonv1alpha1_validating_admission_policy_spec_2 = v1alpha1_validating_admission_policy_spec_convertToJSON(v1alpha1_validating_admission_policy_spec_2); + printf("repeating v1alpha1_validating_admission_policy_spec:\n%s\n", cJSON_Print(jsonv1alpha1_validating_admission_policy_spec_2)); +} + +int main() { + test_v1alpha1_validating_admission_policy_spec(1); + test_v1alpha1_validating_admission_policy_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validating_admission_policy_spec_MAIN +#endif // v1alpha1_validating_admission_policy_spec_TEST diff --git a/kubernetes/unit-test/test_v1alpha1_validation.c b/kubernetes/unit-test/test_v1alpha1_validation.c new file mode 100644 index 0000000..f2031c6 --- /dev/null +++ b/kubernetes/unit-test/test_v1alpha1_validation.c @@ -0,0 +1,62 @@ +#ifndef v1alpha1_validation_TEST +#define v1alpha1_validation_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1alpha1_validation_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1alpha1_validation.h" +v1alpha1_validation_t* instantiate_v1alpha1_validation(int include_optional); + + + +v1alpha1_validation_t* instantiate_v1alpha1_validation(int include_optional) { + v1alpha1_validation_t* v1alpha1_validation = NULL; + if (include_optional) { + v1alpha1_validation = v1alpha1_validation_create( + "0", + "0", + "0" + ); + } else { + v1alpha1_validation = v1alpha1_validation_create( + "0", + "0", + "0" + ); + } + + return v1alpha1_validation; +} + + +#ifdef v1alpha1_validation_MAIN + +void test_v1alpha1_validation(int include_optional) { + v1alpha1_validation_t* v1alpha1_validation_1 = instantiate_v1alpha1_validation(include_optional); + + cJSON* jsonv1alpha1_validation_1 = v1alpha1_validation_convertToJSON(v1alpha1_validation_1); + printf("v1alpha1_validation :\n%s\n", cJSON_Print(jsonv1alpha1_validation_1)); + v1alpha1_validation_t* v1alpha1_validation_2 = v1alpha1_validation_parseFromJSON(jsonv1alpha1_validation_1); + cJSON* jsonv1alpha1_validation_2 = v1alpha1_validation_convertToJSON(v1alpha1_validation_2); + printf("repeating v1alpha1_validation:\n%s\n", cJSON_Print(jsonv1alpha1_validation_2)); +} + +int main() { + test_v1alpha1_validation(1); + test_v1alpha1_validation(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1alpha1_validation_MAIN +#endif // v1alpha1_validation_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_distinguisher_method.c b/kubernetes/unit-test/test_v1beta1_flow_distinguisher_method.c deleted file mode 100644 index 0ec4589..0000000 --- a/kubernetes/unit-test/test_v1beta1_flow_distinguisher_method.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_flow_distinguisher_method_TEST -#define v1beta1_flow_distinguisher_method_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_distinguisher_method_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_distinguisher_method.h" -v1beta1_flow_distinguisher_method_t* instantiate_v1beta1_flow_distinguisher_method(int include_optional); - - - -v1beta1_flow_distinguisher_method_t* instantiate_v1beta1_flow_distinguisher_method(int include_optional) { - v1beta1_flow_distinguisher_method_t* v1beta1_flow_distinguisher_method = NULL; - if (include_optional) { - v1beta1_flow_distinguisher_method = v1beta1_flow_distinguisher_method_create( - "0" - ); - } else { - v1beta1_flow_distinguisher_method = v1beta1_flow_distinguisher_method_create( - "0" - ); - } - - return v1beta1_flow_distinguisher_method; -} - - -#ifdef v1beta1_flow_distinguisher_method_MAIN - -void test_v1beta1_flow_distinguisher_method(int include_optional) { - v1beta1_flow_distinguisher_method_t* v1beta1_flow_distinguisher_method_1 = instantiate_v1beta1_flow_distinguisher_method(include_optional); - - cJSON* jsonv1beta1_flow_distinguisher_method_1 = v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_1); - printf("v1beta1_flow_distinguisher_method :\n%s\n", cJSON_Print(jsonv1beta1_flow_distinguisher_method_1)); - v1beta1_flow_distinguisher_method_t* v1beta1_flow_distinguisher_method_2 = v1beta1_flow_distinguisher_method_parseFromJSON(jsonv1beta1_flow_distinguisher_method_1); - cJSON* jsonv1beta1_flow_distinguisher_method_2 = v1beta1_flow_distinguisher_method_convertToJSON(v1beta1_flow_distinguisher_method_2); - printf("repeating v1beta1_flow_distinguisher_method:\n%s\n", cJSON_Print(jsonv1beta1_flow_distinguisher_method_2)); -} - -int main() { - test_v1beta1_flow_distinguisher_method(1); - test_v1beta1_flow_distinguisher_method(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_distinguisher_method_MAIN -#endif // v1beta1_flow_distinguisher_method_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema.c b/kubernetes/unit-test/test_v1beta1_flow_schema.c deleted file mode 100644 index e58b4ca..0000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v1beta1_flow_schema_TEST -#define v1beta1_flow_schema_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema.h" -v1beta1_flow_schema_t* instantiate_v1beta1_flow_schema(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_flow_schema_spec.c" -#include "test_v1beta1_flow_schema_status.c" - - -v1beta1_flow_schema_t* instantiate_v1beta1_flow_schema(int include_optional) { - v1beta1_flow_schema_t* v1beta1_flow_schema = NULL; - if (include_optional) { - v1beta1_flow_schema = v1beta1_flow_schema_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_flow_schema_spec(0), - // false, not to have infinite recursion - instantiate_v1beta1_flow_schema_status(0) - ); - } else { - v1beta1_flow_schema = v1beta1_flow_schema_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v1beta1_flow_schema; -} - - -#ifdef v1beta1_flow_schema_MAIN - -void test_v1beta1_flow_schema(int include_optional) { - v1beta1_flow_schema_t* v1beta1_flow_schema_1 = instantiate_v1beta1_flow_schema(include_optional); - - cJSON* jsonv1beta1_flow_schema_1 = v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_1); - printf("v1beta1_flow_schema :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_1)); - v1beta1_flow_schema_t* v1beta1_flow_schema_2 = v1beta1_flow_schema_parseFromJSON(jsonv1beta1_flow_schema_1); - cJSON* jsonv1beta1_flow_schema_2 = v1beta1_flow_schema_convertToJSON(v1beta1_flow_schema_2); - printf("repeating v1beta1_flow_schema:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_2)); -} - -int main() { - test_v1beta1_flow_schema(1); - test_v1beta1_flow_schema(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_MAIN -#endif // v1beta1_flow_schema_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_condition.c b/kubernetes/unit-test/test_v1beta1_flow_schema_condition.c deleted file mode 100644 index cd862de..0000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_condition.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_flow_schema_condition_TEST -#define v1beta1_flow_schema_condition_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_condition_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_condition.h" -v1beta1_flow_schema_condition_t* instantiate_v1beta1_flow_schema_condition(int include_optional); - - - -v1beta1_flow_schema_condition_t* instantiate_v1beta1_flow_schema_condition(int include_optional) { - v1beta1_flow_schema_condition_t* v1beta1_flow_schema_condition = NULL; - if (include_optional) { - v1beta1_flow_schema_condition = v1beta1_flow_schema_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } else { - v1beta1_flow_schema_condition = v1beta1_flow_schema_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } - - return v1beta1_flow_schema_condition; -} - - -#ifdef v1beta1_flow_schema_condition_MAIN - -void test_v1beta1_flow_schema_condition(int include_optional) { - v1beta1_flow_schema_condition_t* v1beta1_flow_schema_condition_1 = instantiate_v1beta1_flow_schema_condition(include_optional); - - cJSON* jsonv1beta1_flow_schema_condition_1 = v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_1); - printf("v1beta1_flow_schema_condition :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_condition_1)); - v1beta1_flow_schema_condition_t* v1beta1_flow_schema_condition_2 = v1beta1_flow_schema_condition_parseFromJSON(jsonv1beta1_flow_schema_condition_1); - cJSON* jsonv1beta1_flow_schema_condition_2 = v1beta1_flow_schema_condition_convertToJSON(v1beta1_flow_schema_condition_2); - printf("repeating v1beta1_flow_schema_condition:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_condition_2)); -} - -int main() { - test_v1beta1_flow_schema_condition(1); - test_v1beta1_flow_schema_condition(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_condition_MAIN -#endif // v1beta1_flow_schema_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_list.c b/kubernetes/unit-test/test_v1beta1_flow_schema_list.c deleted file mode 100644 index 2d1265d..0000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_flow_schema_list_TEST -#define v1beta1_flow_schema_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_list.h" -v1beta1_flow_schema_list_t* instantiate_v1beta1_flow_schema_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_flow_schema_list_t* instantiate_v1beta1_flow_schema_list(int include_optional) { - v1beta1_flow_schema_list_t* v1beta1_flow_schema_list = NULL; - if (include_optional) { - v1beta1_flow_schema_list = v1beta1_flow_schema_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_flow_schema_list = v1beta1_flow_schema_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_flow_schema_list; -} - - -#ifdef v1beta1_flow_schema_list_MAIN - -void test_v1beta1_flow_schema_list(int include_optional) { - v1beta1_flow_schema_list_t* v1beta1_flow_schema_list_1 = instantiate_v1beta1_flow_schema_list(include_optional); - - cJSON* jsonv1beta1_flow_schema_list_1 = v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_1); - printf("v1beta1_flow_schema_list :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_list_1)); - v1beta1_flow_schema_list_t* v1beta1_flow_schema_list_2 = v1beta1_flow_schema_list_parseFromJSON(jsonv1beta1_flow_schema_list_1); - cJSON* jsonv1beta1_flow_schema_list_2 = v1beta1_flow_schema_list_convertToJSON(v1beta1_flow_schema_list_2); - printf("repeating v1beta1_flow_schema_list:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_list_2)); -} - -int main() { - test_v1beta1_flow_schema_list(1); - test_v1beta1_flow_schema_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_list_MAIN -#endif // v1beta1_flow_schema_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_spec.c b/kubernetes/unit-test/test_v1beta1_flow_schema_spec.c deleted file mode 100644 index f61eee2..0000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_spec.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v1beta1_flow_schema_spec_TEST -#define v1beta1_flow_schema_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_spec.h" -v1beta1_flow_schema_spec_t* instantiate_v1beta1_flow_schema_spec(int include_optional); - -#include "test_v1beta1_flow_distinguisher_method.c" -#include "test_v1beta1_priority_level_configuration_reference.c" - - -v1beta1_flow_schema_spec_t* instantiate_v1beta1_flow_schema_spec(int include_optional) { - v1beta1_flow_schema_spec_t* v1beta1_flow_schema_spec = NULL; - if (include_optional) { - v1beta1_flow_schema_spec = v1beta1_flow_schema_spec_create( - // false, not to have infinite recursion - instantiate_v1beta1_flow_distinguisher_method(0), - 56, - // false, not to have infinite recursion - instantiate_v1beta1_priority_level_configuration_reference(0), - list_createList() - ); - } else { - v1beta1_flow_schema_spec = v1beta1_flow_schema_spec_create( - NULL, - 56, - NULL, - list_createList() - ); - } - - return v1beta1_flow_schema_spec; -} - - -#ifdef v1beta1_flow_schema_spec_MAIN - -void test_v1beta1_flow_schema_spec(int include_optional) { - v1beta1_flow_schema_spec_t* v1beta1_flow_schema_spec_1 = instantiate_v1beta1_flow_schema_spec(include_optional); - - cJSON* jsonv1beta1_flow_schema_spec_1 = v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_1); - printf("v1beta1_flow_schema_spec :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_spec_1)); - v1beta1_flow_schema_spec_t* v1beta1_flow_schema_spec_2 = v1beta1_flow_schema_spec_parseFromJSON(jsonv1beta1_flow_schema_spec_1); - cJSON* jsonv1beta1_flow_schema_spec_2 = v1beta1_flow_schema_spec_convertToJSON(v1beta1_flow_schema_spec_2); - printf("repeating v1beta1_flow_schema_spec:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_spec_2)); -} - -int main() { - test_v1beta1_flow_schema_spec(1); - test_v1beta1_flow_schema_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_spec_MAIN -#endif // v1beta1_flow_schema_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_flow_schema_status.c b/kubernetes/unit-test/test_v1beta1_flow_schema_status.c deleted file mode 100644 index 4d2cd8b..0000000 --- a/kubernetes/unit-test/test_v1beta1_flow_schema_status.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_flow_schema_status_TEST -#define v1beta1_flow_schema_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_flow_schema_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_flow_schema_status.h" -v1beta1_flow_schema_status_t* instantiate_v1beta1_flow_schema_status(int include_optional); - - - -v1beta1_flow_schema_status_t* instantiate_v1beta1_flow_schema_status(int include_optional) { - v1beta1_flow_schema_status_t* v1beta1_flow_schema_status = NULL; - if (include_optional) { - v1beta1_flow_schema_status = v1beta1_flow_schema_status_create( - list_createList() - ); - } else { - v1beta1_flow_schema_status = v1beta1_flow_schema_status_create( - list_createList() - ); - } - - return v1beta1_flow_schema_status; -} - - -#ifdef v1beta1_flow_schema_status_MAIN - -void test_v1beta1_flow_schema_status(int include_optional) { - v1beta1_flow_schema_status_t* v1beta1_flow_schema_status_1 = instantiate_v1beta1_flow_schema_status(include_optional); - - cJSON* jsonv1beta1_flow_schema_status_1 = v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_1); - printf("v1beta1_flow_schema_status :\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_status_1)); - v1beta1_flow_schema_status_t* v1beta1_flow_schema_status_2 = v1beta1_flow_schema_status_parseFromJSON(jsonv1beta1_flow_schema_status_1); - cJSON* jsonv1beta1_flow_schema_status_2 = v1beta1_flow_schema_status_convertToJSON(v1beta1_flow_schema_status_2); - printf("repeating v1beta1_flow_schema_status:\n%s\n", cJSON_Print(jsonv1beta1_flow_schema_status_2)); -} - -int main() { - test_v1beta1_flow_schema_status(1); - test_v1beta1_flow_schema_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_flow_schema_status_MAIN -#endif // v1beta1_flow_schema_status_TEST diff --git a/kubernetes/unit-test/test_v1beta1_group_subject.c b/kubernetes/unit-test/test_v1beta1_group_subject.c deleted file mode 100644 index e60d375..0000000 --- a/kubernetes/unit-test/test_v1beta1_group_subject.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_group_subject_TEST -#define v1beta1_group_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_group_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_group_subject.h" -v1beta1_group_subject_t* instantiate_v1beta1_group_subject(int include_optional); - - - -v1beta1_group_subject_t* instantiate_v1beta1_group_subject(int include_optional) { - v1beta1_group_subject_t* v1beta1_group_subject = NULL; - if (include_optional) { - v1beta1_group_subject = v1beta1_group_subject_create( - "0" - ); - } else { - v1beta1_group_subject = v1beta1_group_subject_create( - "0" - ); - } - - return v1beta1_group_subject; -} - - -#ifdef v1beta1_group_subject_MAIN - -void test_v1beta1_group_subject(int include_optional) { - v1beta1_group_subject_t* v1beta1_group_subject_1 = instantiate_v1beta1_group_subject(include_optional); - - cJSON* jsonv1beta1_group_subject_1 = v1beta1_group_subject_convertToJSON(v1beta1_group_subject_1); - printf("v1beta1_group_subject :\n%s\n", cJSON_Print(jsonv1beta1_group_subject_1)); - v1beta1_group_subject_t* v1beta1_group_subject_2 = v1beta1_group_subject_parseFromJSON(jsonv1beta1_group_subject_1); - cJSON* jsonv1beta1_group_subject_2 = v1beta1_group_subject_convertToJSON(v1beta1_group_subject_2); - printf("repeating v1beta1_group_subject:\n%s\n", cJSON_Print(jsonv1beta1_group_subject_2)); -} - -int main() { - test_v1beta1_group_subject(1); - test_v1beta1_group_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_group_subject_MAIN -#endif // v1beta1_group_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta1_limit_response.c b/kubernetes/unit-test/test_v1beta1_limit_response.c deleted file mode 100644 index 2318aa9..0000000 --- a/kubernetes/unit-test/test_v1beta1_limit_response.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_limit_response_TEST -#define v1beta1_limit_response_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_limit_response_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_limit_response.h" -v1beta1_limit_response_t* instantiate_v1beta1_limit_response(int include_optional); - -#include "test_v1beta1_queuing_configuration.c" - - -v1beta1_limit_response_t* instantiate_v1beta1_limit_response(int include_optional) { - v1beta1_limit_response_t* v1beta1_limit_response = NULL; - if (include_optional) { - v1beta1_limit_response = v1beta1_limit_response_create( - // false, not to have infinite recursion - instantiate_v1beta1_queuing_configuration(0), - "0" - ); - } else { - v1beta1_limit_response = v1beta1_limit_response_create( - NULL, - "0" - ); - } - - return v1beta1_limit_response; -} - - -#ifdef v1beta1_limit_response_MAIN - -void test_v1beta1_limit_response(int include_optional) { - v1beta1_limit_response_t* v1beta1_limit_response_1 = instantiate_v1beta1_limit_response(include_optional); - - cJSON* jsonv1beta1_limit_response_1 = v1beta1_limit_response_convertToJSON(v1beta1_limit_response_1); - printf("v1beta1_limit_response :\n%s\n", cJSON_Print(jsonv1beta1_limit_response_1)); - v1beta1_limit_response_t* v1beta1_limit_response_2 = v1beta1_limit_response_parseFromJSON(jsonv1beta1_limit_response_1); - cJSON* jsonv1beta1_limit_response_2 = v1beta1_limit_response_convertToJSON(v1beta1_limit_response_2); - printf("repeating v1beta1_limit_response:\n%s\n", cJSON_Print(jsonv1beta1_limit_response_2)); -} - -int main() { - test_v1beta1_limit_response(1); - test_v1beta1_limit_response(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_limit_response_MAIN -#endif // v1beta1_limit_response_TEST diff --git a/kubernetes/unit-test/test_v1beta1_limited_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta1_limited_priority_level_configuration.c deleted file mode 100644 index 496974e..0000000 --- a/kubernetes/unit-test/test_v1beta1_limited_priority_level_configuration.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_limited_priority_level_configuration_TEST -#define v1beta1_limited_priority_level_configuration_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_limited_priority_level_configuration_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_limited_priority_level_configuration.h" -v1beta1_limited_priority_level_configuration_t* instantiate_v1beta1_limited_priority_level_configuration(int include_optional); - -#include "test_v1beta1_limit_response.c" - - -v1beta1_limited_priority_level_configuration_t* instantiate_v1beta1_limited_priority_level_configuration(int include_optional) { - v1beta1_limited_priority_level_configuration_t* v1beta1_limited_priority_level_configuration = NULL; - if (include_optional) { - v1beta1_limited_priority_level_configuration = v1beta1_limited_priority_level_configuration_create( - 56, - // false, not to have infinite recursion - instantiate_v1beta1_limit_response(0) - ); - } else { - v1beta1_limited_priority_level_configuration = v1beta1_limited_priority_level_configuration_create( - 56, - NULL - ); - } - - return v1beta1_limited_priority_level_configuration; -} - - -#ifdef v1beta1_limited_priority_level_configuration_MAIN - -void test_v1beta1_limited_priority_level_configuration(int include_optional) { - v1beta1_limited_priority_level_configuration_t* v1beta1_limited_priority_level_configuration_1 = instantiate_v1beta1_limited_priority_level_configuration(include_optional); - - cJSON* jsonv1beta1_limited_priority_level_configuration_1 = v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_1); - printf("v1beta1_limited_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta1_limited_priority_level_configuration_1)); - v1beta1_limited_priority_level_configuration_t* v1beta1_limited_priority_level_configuration_2 = v1beta1_limited_priority_level_configuration_parseFromJSON(jsonv1beta1_limited_priority_level_configuration_1); - cJSON* jsonv1beta1_limited_priority_level_configuration_2 = v1beta1_limited_priority_level_configuration_convertToJSON(v1beta1_limited_priority_level_configuration_2); - printf("repeating v1beta1_limited_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta1_limited_priority_level_configuration_2)); -} - -int main() { - test_v1beta1_limited_priority_level_configuration(1); - test_v1beta1_limited_priority_level_configuration(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_limited_priority_level_configuration_MAIN -#endif // v1beta1_limited_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta1_non_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta1_non_resource_policy_rule.c deleted file mode 100644 index 7313af9..0000000 --- a/kubernetes/unit-test/test_v1beta1_non_resource_policy_rule.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_non_resource_policy_rule_TEST -#define v1beta1_non_resource_policy_rule_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_non_resource_policy_rule_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_non_resource_policy_rule.h" -v1beta1_non_resource_policy_rule_t* instantiate_v1beta1_non_resource_policy_rule(int include_optional); - - - -v1beta1_non_resource_policy_rule_t* instantiate_v1beta1_non_resource_policy_rule(int include_optional) { - v1beta1_non_resource_policy_rule_t* v1beta1_non_resource_policy_rule = NULL; - if (include_optional) { - v1beta1_non_resource_policy_rule = v1beta1_non_resource_policy_rule_create( - list_createList(), - list_createList() - ); - } else { - v1beta1_non_resource_policy_rule = v1beta1_non_resource_policy_rule_create( - list_createList(), - list_createList() - ); - } - - return v1beta1_non_resource_policy_rule; -} - - -#ifdef v1beta1_non_resource_policy_rule_MAIN - -void test_v1beta1_non_resource_policy_rule(int include_optional) { - v1beta1_non_resource_policy_rule_t* v1beta1_non_resource_policy_rule_1 = instantiate_v1beta1_non_resource_policy_rule(include_optional); - - cJSON* jsonv1beta1_non_resource_policy_rule_1 = v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_1); - printf("v1beta1_non_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta1_non_resource_policy_rule_1)); - v1beta1_non_resource_policy_rule_t* v1beta1_non_resource_policy_rule_2 = v1beta1_non_resource_policy_rule_parseFromJSON(jsonv1beta1_non_resource_policy_rule_1); - cJSON* jsonv1beta1_non_resource_policy_rule_2 = v1beta1_non_resource_policy_rule_convertToJSON(v1beta1_non_resource_policy_rule_2); - printf("repeating v1beta1_non_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta1_non_resource_policy_rule_2)); -} - -int main() { - test_v1beta1_non_resource_policy_rule(1); - test_v1beta1_non_resource_policy_rule(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_non_resource_policy_rule_MAIN -#endif // v1beta1_non_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta1_policy_rules_with_subjects.c b/kubernetes/unit-test/test_v1beta1_policy_rules_with_subjects.c deleted file mode 100644 index 4d88f68..0000000 --- a/kubernetes/unit-test/test_v1beta1_policy_rules_with_subjects.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_policy_rules_with_subjects_TEST -#define v1beta1_policy_rules_with_subjects_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_policy_rules_with_subjects_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_policy_rules_with_subjects.h" -v1beta1_policy_rules_with_subjects_t* instantiate_v1beta1_policy_rules_with_subjects(int include_optional); - - - -v1beta1_policy_rules_with_subjects_t* instantiate_v1beta1_policy_rules_with_subjects(int include_optional) { - v1beta1_policy_rules_with_subjects_t* v1beta1_policy_rules_with_subjects = NULL; - if (include_optional) { - v1beta1_policy_rules_with_subjects = v1beta1_policy_rules_with_subjects_create( - list_createList(), - list_createList(), - list_createList() - ); - } else { - v1beta1_policy_rules_with_subjects = v1beta1_policy_rules_with_subjects_create( - list_createList(), - list_createList(), - list_createList() - ); - } - - return v1beta1_policy_rules_with_subjects; -} - - -#ifdef v1beta1_policy_rules_with_subjects_MAIN - -void test_v1beta1_policy_rules_with_subjects(int include_optional) { - v1beta1_policy_rules_with_subjects_t* v1beta1_policy_rules_with_subjects_1 = instantiate_v1beta1_policy_rules_with_subjects(include_optional); - - cJSON* jsonv1beta1_policy_rules_with_subjects_1 = v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_1); - printf("v1beta1_policy_rules_with_subjects :\n%s\n", cJSON_Print(jsonv1beta1_policy_rules_with_subjects_1)); - v1beta1_policy_rules_with_subjects_t* v1beta1_policy_rules_with_subjects_2 = v1beta1_policy_rules_with_subjects_parseFromJSON(jsonv1beta1_policy_rules_with_subjects_1); - cJSON* jsonv1beta1_policy_rules_with_subjects_2 = v1beta1_policy_rules_with_subjects_convertToJSON(v1beta1_policy_rules_with_subjects_2); - printf("repeating v1beta1_policy_rules_with_subjects:\n%s\n", cJSON_Print(jsonv1beta1_policy_rules_with_subjects_2)); -} - -int main() { - test_v1beta1_policy_rules_with_subjects(1); - test_v1beta1_policy_rules_with_subjects(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_policy_rules_with_subjects_MAIN -#endif // v1beta1_policy_rules_with_subjects_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration.c deleted file mode 100644 index 0f6cfc2..0000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_TEST -#define v1beta1_priority_level_configuration_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration.h" -v1beta1_priority_level_configuration_t* instantiate_v1beta1_priority_level_configuration(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v1beta1_priority_level_configuration_spec.c" -#include "test_v1beta1_priority_level_configuration_status.c" - - -v1beta1_priority_level_configuration_t* instantiate_v1beta1_priority_level_configuration(int include_optional) { - v1beta1_priority_level_configuration_t* v1beta1_priority_level_configuration = NULL; - if (include_optional) { - v1beta1_priority_level_configuration = v1beta1_priority_level_configuration_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v1beta1_priority_level_configuration_spec(0), - // false, not to have infinite recursion - instantiate_v1beta1_priority_level_configuration_status(0) - ); - } else { - v1beta1_priority_level_configuration = v1beta1_priority_level_configuration_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v1beta1_priority_level_configuration; -} - - -#ifdef v1beta1_priority_level_configuration_MAIN - -void test_v1beta1_priority_level_configuration(int include_optional) { - v1beta1_priority_level_configuration_t* v1beta1_priority_level_configuration_1 = instantiate_v1beta1_priority_level_configuration(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_1 = v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_1); - printf("v1beta1_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_1)); - v1beta1_priority_level_configuration_t* v1beta1_priority_level_configuration_2 = v1beta1_priority_level_configuration_parseFromJSON(jsonv1beta1_priority_level_configuration_1); - cJSON* jsonv1beta1_priority_level_configuration_2 = v1beta1_priority_level_configuration_convertToJSON(v1beta1_priority_level_configuration_2); - printf("repeating v1beta1_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_2)); -} - -int main() { - test_v1beta1_priority_level_configuration(1); - test_v1beta1_priority_level_configuration(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_MAIN -#endif // v1beta1_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_condition.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_condition.c deleted file mode 100644 index 8bd8b26..0000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_condition.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_condition_TEST -#define v1beta1_priority_level_configuration_condition_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_condition_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_condition.h" -v1beta1_priority_level_configuration_condition_t* instantiate_v1beta1_priority_level_configuration_condition(int include_optional); - - - -v1beta1_priority_level_configuration_condition_t* instantiate_v1beta1_priority_level_configuration_condition(int include_optional) { - v1beta1_priority_level_configuration_condition_t* v1beta1_priority_level_configuration_condition = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_condition = v1beta1_priority_level_configuration_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } else { - v1beta1_priority_level_configuration_condition = v1beta1_priority_level_configuration_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } - - return v1beta1_priority_level_configuration_condition; -} - - -#ifdef v1beta1_priority_level_configuration_condition_MAIN - -void test_v1beta1_priority_level_configuration_condition(int include_optional) { - v1beta1_priority_level_configuration_condition_t* v1beta1_priority_level_configuration_condition_1 = instantiate_v1beta1_priority_level_configuration_condition(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_condition_1 = v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_1); - printf("v1beta1_priority_level_configuration_condition :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_condition_1)); - v1beta1_priority_level_configuration_condition_t* v1beta1_priority_level_configuration_condition_2 = v1beta1_priority_level_configuration_condition_parseFromJSON(jsonv1beta1_priority_level_configuration_condition_1); - cJSON* jsonv1beta1_priority_level_configuration_condition_2 = v1beta1_priority_level_configuration_condition_convertToJSON(v1beta1_priority_level_configuration_condition_2); - printf("repeating v1beta1_priority_level_configuration_condition:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_condition_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_condition(1); - test_v1beta1_priority_level_configuration_condition(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_condition_MAIN -#endif // v1beta1_priority_level_configuration_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_list.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_list.c deleted file mode 100644 index 0ec3cb5..0000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_list_TEST -#define v1beta1_priority_level_configuration_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_list.h" -v1beta1_priority_level_configuration_list_t* instantiate_v1beta1_priority_level_configuration_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v1beta1_priority_level_configuration_list_t* instantiate_v1beta1_priority_level_configuration_list(int include_optional) { - v1beta1_priority_level_configuration_list_t* v1beta1_priority_level_configuration_list = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_list = v1beta1_priority_level_configuration_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v1beta1_priority_level_configuration_list = v1beta1_priority_level_configuration_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v1beta1_priority_level_configuration_list; -} - - -#ifdef v1beta1_priority_level_configuration_list_MAIN - -void test_v1beta1_priority_level_configuration_list(int include_optional) { - v1beta1_priority_level_configuration_list_t* v1beta1_priority_level_configuration_list_1 = instantiate_v1beta1_priority_level_configuration_list(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_list_1 = v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_1); - printf("v1beta1_priority_level_configuration_list :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_list_1)); - v1beta1_priority_level_configuration_list_t* v1beta1_priority_level_configuration_list_2 = v1beta1_priority_level_configuration_list_parseFromJSON(jsonv1beta1_priority_level_configuration_list_1); - cJSON* jsonv1beta1_priority_level_configuration_list_2 = v1beta1_priority_level_configuration_list_convertToJSON(v1beta1_priority_level_configuration_list_2); - printf("repeating v1beta1_priority_level_configuration_list:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_list_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_list(1); - test_v1beta1_priority_level_configuration_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_list_MAIN -#endif // v1beta1_priority_level_configuration_list_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_reference.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_reference.c deleted file mode 100644 index cd6d1d4..0000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_reference.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_reference_TEST -#define v1beta1_priority_level_configuration_reference_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_reference_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_reference.h" -v1beta1_priority_level_configuration_reference_t* instantiate_v1beta1_priority_level_configuration_reference(int include_optional); - - - -v1beta1_priority_level_configuration_reference_t* instantiate_v1beta1_priority_level_configuration_reference(int include_optional) { - v1beta1_priority_level_configuration_reference_t* v1beta1_priority_level_configuration_reference = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_reference = v1beta1_priority_level_configuration_reference_create( - "0" - ); - } else { - v1beta1_priority_level_configuration_reference = v1beta1_priority_level_configuration_reference_create( - "0" - ); - } - - return v1beta1_priority_level_configuration_reference; -} - - -#ifdef v1beta1_priority_level_configuration_reference_MAIN - -void test_v1beta1_priority_level_configuration_reference(int include_optional) { - v1beta1_priority_level_configuration_reference_t* v1beta1_priority_level_configuration_reference_1 = instantiate_v1beta1_priority_level_configuration_reference(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_reference_1 = v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_1); - printf("v1beta1_priority_level_configuration_reference :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_reference_1)); - v1beta1_priority_level_configuration_reference_t* v1beta1_priority_level_configuration_reference_2 = v1beta1_priority_level_configuration_reference_parseFromJSON(jsonv1beta1_priority_level_configuration_reference_1); - cJSON* jsonv1beta1_priority_level_configuration_reference_2 = v1beta1_priority_level_configuration_reference_convertToJSON(v1beta1_priority_level_configuration_reference_2); - printf("repeating v1beta1_priority_level_configuration_reference:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_reference_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_reference(1); - test_v1beta1_priority_level_configuration_reference(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_reference_MAIN -#endif // v1beta1_priority_level_configuration_reference_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_spec.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_spec.c deleted file mode 100644 index 98bbcad..0000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_spec.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_spec_TEST -#define v1beta1_priority_level_configuration_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_spec.h" -v1beta1_priority_level_configuration_spec_t* instantiate_v1beta1_priority_level_configuration_spec(int include_optional); - -#include "test_v1beta1_limited_priority_level_configuration.c" - - -v1beta1_priority_level_configuration_spec_t* instantiate_v1beta1_priority_level_configuration_spec(int include_optional) { - v1beta1_priority_level_configuration_spec_t* v1beta1_priority_level_configuration_spec = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_spec = v1beta1_priority_level_configuration_spec_create( - // false, not to have infinite recursion - instantiate_v1beta1_limited_priority_level_configuration(0), - "0" - ); - } else { - v1beta1_priority_level_configuration_spec = v1beta1_priority_level_configuration_spec_create( - NULL, - "0" - ); - } - - return v1beta1_priority_level_configuration_spec; -} - - -#ifdef v1beta1_priority_level_configuration_spec_MAIN - -void test_v1beta1_priority_level_configuration_spec(int include_optional) { - v1beta1_priority_level_configuration_spec_t* v1beta1_priority_level_configuration_spec_1 = instantiate_v1beta1_priority_level_configuration_spec(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_spec_1 = v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_1); - printf("v1beta1_priority_level_configuration_spec :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_spec_1)); - v1beta1_priority_level_configuration_spec_t* v1beta1_priority_level_configuration_spec_2 = v1beta1_priority_level_configuration_spec_parseFromJSON(jsonv1beta1_priority_level_configuration_spec_1); - cJSON* jsonv1beta1_priority_level_configuration_spec_2 = v1beta1_priority_level_configuration_spec_convertToJSON(v1beta1_priority_level_configuration_spec_2); - printf("repeating v1beta1_priority_level_configuration_spec:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_spec_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_spec(1); - test_v1beta1_priority_level_configuration_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_spec_MAIN -#endif // v1beta1_priority_level_configuration_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_status.c b/kubernetes/unit-test/test_v1beta1_priority_level_configuration_status.c deleted file mode 100644 index b2de97e..0000000 --- a/kubernetes/unit-test/test_v1beta1_priority_level_configuration_status.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_priority_level_configuration_status_TEST -#define v1beta1_priority_level_configuration_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_priority_level_configuration_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_priority_level_configuration_status.h" -v1beta1_priority_level_configuration_status_t* instantiate_v1beta1_priority_level_configuration_status(int include_optional); - - - -v1beta1_priority_level_configuration_status_t* instantiate_v1beta1_priority_level_configuration_status(int include_optional) { - v1beta1_priority_level_configuration_status_t* v1beta1_priority_level_configuration_status = NULL; - if (include_optional) { - v1beta1_priority_level_configuration_status = v1beta1_priority_level_configuration_status_create( - list_createList() - ); - } else { - v1beta1_priority_level_configuration_status = v1beta1_priority_level_configuration_status_create( - list_createList() - ); - } - - return v1beta1_priority_level_configuration_status; -} - - -#ifdef v1beta1_priority_level_configuration_status_MAIN - -void test_v1beta1_priority_level_configuration_status(int include_optional) { - v1beta1_priority_level_configuration_status_t* v1beta1_priority_level_configuration_status_1 = instantiate_v1beta1_priority_level_configuration_status(include_optional); - - cJSON* jsonv1beta1_priority_level_configuration_status_1 = v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_1); - printf("v1beta1_priority_level_configuration_status :\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_status_1)); - v1beta1_priority_level_configuration_status_t* v1beta1_priority_level_configuration_status_2 = v1beta1_priority_level_configuration_status_parseFromJSON(jsonv1beta1_priority_level_configuration_status_1); - cJSON* jsonv1beta1_priority_level_configuration_status_2 = v1beta1_priority_level_configuration_status_convertToJSON(v1beta1_priority_level_configuration_status_2); - printf("repeating v1beta1_priority_level_configuration_status:\n%s\n", cJSON_Print(jsonv1beta1_priority_level_configuration_status_2)); -} - -int main() { - test_v1beta1_priority_level_configuration_status(1); - test_v1beta1_priority_level_configuration_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_priority_level_configuration_status_MAIN -#endif // v1beta1_priority_level_configuration_status_TEST diff --git a/kubernetes/unit-test/test_v1beta1_queuing_configuration.c b/kubernetes/unit-test/test_v1beta1_queuing_configuration.c deleted file mode 100644 index 85401b8..0000000 --- a/kubernetes/unit-test/test_v1beta1_queuing_configuration.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v1beta1_queuing_configuration_TEST -#define v1beta1_queuing_configuration_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_queuing_configuration_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_queuing_configuration.h" -v1beta1_queuing_configuration_t* instantiate_v1beta1_queuing_configuration(int include_optional); - - - -v1beta1_queuing_configuration_t* instantiate_v1beta1_queuing_configuration(int include_optional) { - v1beta1_queuing_configuration_t* v1beta1_queuing_configuration = NULL; - if (include_optional) { - v1beta1_queuing_configuration = v1beta1_queuing_configuration_create( - 56, - 56, - 56 - ); - } else { - v1beta1_queuing_configuration = v1beta1_queuing_configuration_create( - 56, - 56, - 56 - ); - } - - return v1beta1_queuing_configuration; -} - - -#ifdef v1beta1_queuing_configuration_MAIN - -void test_v1beta1_queuing_configuration(int include_optional) { - v1beta1_queuing_configuration_t* v1beta1_queuing_configuration_1 = instantiate_v1beta1_queuing_configuration(include_optional); - - cJSON* jsonv1beta1_queuing_configuration_1 = v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_1); - printf("v1beta1_queuing_configuration :\n%s\n", cJSON_Print(jsonv1beta1_queuing_configuration_1)); - v1beta1_queuing_configuration_t* v1beta1_queuing_configuration_2 = v1beta1_queuing_configuration_parseFromJSON(jsonv1beta1_queuing_configuration_1); - cJSON* jsonv1beta1_queuing_configuration_2 = v1beta1_queuing_configuration_convertToJSON(v1beta1_queuing_configuration_2); - printf("repeating v1beta1_queuing_configuration:\n%s\n", cJSON_Print(jsonv1beta1_queuing_configuration_2)); -} - -int main() { - test_v1beta1_queuing_configuration(1); - test_v1beta1_queuing_configuration(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_queuing_configuration_MAIN -#endif // v1beta1_queuing_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta1_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta1_resource_policy_rule.c deleted file mode 100644 index 454fb36..0000000 --- a/kubernetes/unit-test/test_v1beta1_resource_policy_rule.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v1beta1_resource_policy_rule_TEST -#define v1beta1_resource_policy_rule_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_resource_policy_rule_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_resource_policy_rule.h" -v1beta1_resource_policy_rule_t* instantiate_v1beta1_resource_policy_rule(int include_optional); - - - -v1beta1_resource_policy_rule_t* instantiate_v1beta1_resource_policy_rule(int include_optional) { - v1beta1_resource_policy_rule_t* v1beta1_resource_policy_rule = NULL; - if (include_optional) { - v1beta1_resource_policy_rule = v1beta1_resource_policy_rule_create( - list_createList(), - 1, - list_createList(), - list_createList(), - list_createList() - ); - } else { - v1beta1_resource_policy_rule = v1beta1_resource_policy_rule_create( - list_createList(), - 1, - list_createList(), - list_createList(), - list_createList() - ); - } - - return v1beta1_resource_policy_rule; -} - - -#ifdef v1beta1_resource_policy_rule_MAIN - -void test_v1beta1_resource_policy_rule(int include_optional) { - v1beta1_resource_policy_rule_t* v1beta1_resource_policy_rule_1 = instantiate_v1beta1_resource_policy_rule(include_optional); - - cJSON* jsonv1beta1_resource_policy_rule_1 = v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_1); - printf("v1beta1_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta1_resource_policy_rule_1)); - v1beta1_resource_policy_rule_t* v1beta1_resource_policy_rule_2 = v1beta1_resource_policy_rule_parseFromJSON(jsonv1beta1_resource_policy_rule_1); - cJSON* jsonv1beta1_resource_policy_rule_2 = v1beta1_resource_policy_rule_convertToJSON(v1beta1_resource_policy_rule_2); - printf("repeating v1beta1_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta1_resource_policy_rule_2)); -} - -int main() { - test_v1beta1_resource_policy_rule(1); - test_v1beta1_resource_policy_rule(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_resource_policy_rule_MAIN -#endif // v1beta1_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta1_service_account_subject.c b/kubernetes/unit-test/test_v1beta1_service_account_subject.c deleted file mode 100644 index 3f5525a..0000000 --- a/kubernetes/unit-test/test_v1beta1_service_account_subject.c +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef v1beta1_service_account_subject_TEST -#define v1beta1_service_account_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_service_account_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_service_account_subject.h" -v1beta1_service_account_subject_t* instantiate_v1beta1_service_account_subject(int include_optional); - - - -v1beta1_service_account_subject_t* instantiate_v1beta1_service_account_subject(int include_optional) { - v1beta1_service_account_subject_t* v1beta1_service_account_subject = NULL; - if (include_optional) { - v1beta1_service_account_subject = v1beta1_service_account_subject_create( - "0", - "0" - ); - } else { - v1beta1_service_account_subject = v1beta1_service_account_subject_create( - "0", - "0" - ); - } - - return v1beta1_service_account_subject; -} - - -#ifdef v1beta1_service_account_subject_MAIN - -void test_v1beta1_service_account_subject(int include_optional) { - v1beta1_service_account_subject_t* v1beta1_service_account_subject_1 = instantiate_v1beta1_service_account_subject(include_optional); - - cJSON* jsonv1beta1_service_account_subject_1 = v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_1); - printf("v1beta1_service_account_subject :\n%s\n", cJSON_Print(jsonv1beta1_service_account_subject_1)); - v1beta1_service_account_subject_t* v1beta1_service_account_subject_2 = v1beta1_service_account_subject_parseFromJSON(jsonv1beta1_service_account_subject_1); - cJSON* jsonv1beta1_service_account_subject_2 = v1beta1_service_account_subject_convertToJSON(v1beta1_service_account_subject_2); - printf("repeating v1beta1_service_account_subject:\n%s\n", cJSON_Print(jsonv1beta1_service_account_subject_2)); -} - -int main() { - test_v1beta1_service_account_subject(1); - test_v1beta1_service_account_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_service_account_subject_MAIN -#endif // v1beta1_service_account_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta1_subject.c b/kubernetes/unit-test/test_v1beta1_subject.c deleted file mode 100644 index 917e9ed..0000000 --- a/kubernetes/unit-test/test_v1beta1_subject.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v1beta1_subject_TEST -#define v1beta1_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_subject.h" -v1beta1_subject_t* instantiate_v1beta1_subject(int include_optional); - -#include "test_v1beta1_group_subject.c" -#include "test_v1beta1_service_account_subject.c" -#include "test_v1beta1_user_subject.c" - - -v1beta1_subject_t* instantiate_v1beta1_subject(int include_optional) { - v1beta1_subject_t* v1beta1_subject = NULL; - if (include_optional) { - v1beta1_subject = v1beta1_subject_create( - // false, not to have infinite recursion - instantiate_v1beta1_group_subject(0), - "0", - // false, not to have infinite recursion - instantiate_v1beta1_service_account_subject(0), - // false, not to have infinite recursion - instantiate_v1beta1_user_subject(0) - ); - } else { - v1beta1_subject = v1beta1_subject_create( - NULL, - "0", - NULL, - NULL - ); - } - - return v1beta1_subject; -} - - -#ifdef v1beta1_subject_MAIN - -void test_v1beta1_subject(int include_optional) { - v1beta1_subject_t* v1beta1_subject_1 = instantiate_v1beta1_subject(include_optional); - - cJSON* jsonv1beta1_subject_1 = v1beta1_subject_convertToJSON(v1beta1_subject_1); - printf("v1beta1_subject :\n%s\n", cJSON_Print(jsonv1beta1_subject_1)); - v1beta1_subject_t* v1beta1_subject_2 = v1beta1_subject_parseFromJSON(jsonv1beta1_subject_1); - cJSON* jsonv1beta1_subject_2 = v1beta1_subject_convertToJSON(v1beta1_subject_2); - printf("repeating v1beta1_subject:\n%s\n", cJSON_Print(jsonv1beta1_subject_2)); -} - -int main() { - test_v1beta1_subject(1); - test_v1beta1_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_subject_MAIN -#endif // v1beta1_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta1_user_subject.c b/kubernetes/unit-test/test_v1beta1_user_subject.c deleted file mode 100644 index c905b62..0000000 --- a/kubernetes/unit-test/test_v1beta1_user_subject.c +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef v1beta1_user_subject_TEST -#define v1beta1_user_subject_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v1beta1_user_subject_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v1beta1_user_subject.h" -v1beta1_user_subject_t* instantiate_v1beta1_user_subject(int include_optional); - - - -v1beta1_user_subject_t* instantiate_v1beta1_user_subject(int include_optional) { - v1beta1_user_subject_t* v1beta1_user_subject = NULL; - if (include_optional) { - v1beta1_user_subject = v1beta1_user_subject_create( - "0" - ); - } else { - v1beta1_user_subject = v1beta1_user_subject_create( - "0" - ); - } - - return v1beta1_user_subject; -} - - -#ifdef v1beta1_user_subject_MAIN - -void test_v1beta1_user_subject(int include_optional) { - v1beta1_user_subject_t* v1beta1_user_subject_1 = instantiate_v1beta1_user_subject(include_optional); - - cJSON* jsonv1beta1_user_subject_1 = v1beta1_user_subject_convertToJSON(v1beta1_user_subject_1); - printf("v1beta1_user_subject :\n%s\n", cJSON_Print(jsonv1beta1_user_subject_1)); - v1beta1_user_subject_t* v1beta1_user_subject_2 = v1beta1_user_subject_parseFromJSON(jsonv1beta1_user_subject_1); - cJSON* jsonv1beta1_user_subject_2 = v1beta1_user_subject_convertToJSON(v1beta1_user_subject_2); - printf("repeating v1beta1_user_subject:\n%s\n", cJSON_Print(jsonv1beta1_user_subject_2)); -} - -int main() { - test_v1beta1_user_subject(1); - test_v1beta1_user_subject(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v1beta1_user_subject_MAIN -#endif // v1beta1_user_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c index 966bbde..21d877d 100644 --- a/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c +++ b/kubernetes/unit-test/test_v1beta2_limited_priority_level_configuration.c @@ -23,12 +23,16 @@ v1beta2_limited_priority_level_configuration_t* instantiate_v1beta2_limited_prio v1beta2_limited_priority_level_configuration_t* v1beta2_limited_priority_level_configuration = NULL; if (include_optional) { v1beta2_limited_priority_level_configuration = v1beta2_limited_priority_level_configuration_create( + 56, + 56, 56, // false, not to have infinite recursion instantiate_v1beta2_limit_response(0) ); } else { v1beta2_limited_priority_level_configuration = v1beta2_limited_priority_level_configuration_create( + 56, + 56, 56, NULL ); diff --git a/kubernetes/unit-test/test_v1beta3_flow_distinguisher_method.c b/kubernetes/unit-test/test_v1beta3_flow_distinguisher_method.c new file mode 100644 index 0000000..7725d72 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_distinguisher_method.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_flow_distinguisher_method_TEST +#define v1beta3_flow_distinguisher_method_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_distinguisher_method_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_distinguisher_method.h" +v1beta3_flow_distinguisher_method_t* instantiate_v1beta3_flow_distinguisher_method(int include_optional); + + + +v1beta3_flow_distinguisher_method_t* instantiate_v1beta3_flow_distinguisher_method(int include_optional) { + v1beta3_flow_distinguisher_method_t* v1beta3_flow_distinguisher_method = NULL; + if (include_optional) { + v1beta3_flow_distinguisher_method = v1beta3_flow_distinguisher_method_create( + "0" + ); + } else { + v1beta3_flow_distinguisher_method = v1beta3_flow_distinguisher_method_create( + "0" + ); + } + + return v1beta3_flow_distinguisher_method; +} + + +#ifdef v1beta3_flow_distinguisher_method_MAIN + +void test_v1beta3_flow_distinguisher_method(int include_optional) { + v1beta3_flow_distinguisher_method_t* v1beta3_flow_distinguisher_method_1 = instantiate_v1beta3_flow_distinguisher_method(include_optional); + + cJSON* jsonv1beta3_flow_distinguisher_method_1 = v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_1); + printf("v1beta3_flow_distinguisher_method :\n%s\n", cJSON_Print(jsonv1beta3_flow_distinguisher_method_1)); + v1beta3_flow_distinguisher_method_t* v1beta3_flow_distinguisher_method_2 = v1beta3_flow_distinguisher_method_parseFromJSON(jsonv1beta3_flow_distinguisher_method_1); + cJSON* jsonv1beta3_flow_distinguisher_method_2 = v1beta3_flow_distinguisher_method_convertToJSON(v1beta3_flow_distinguisher_method_2); + printf("repeating v1beta3_flow_distinguisher_method:\n%s\n", cJSON_Print(jsonv1beta3_flow_distinguisher_method_2)); +} + +int main() { + test_v1beta3_flow_distinguisher_method(1); + test_v1beta3_flow_distinguisher_method(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_distinguisher_method_MAIN +#endif // v1beta3_flow_distinguisher_method_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema.c b/kubernetes/unit-test/test_v1beta3_flow_schema.c new file mode 100644 index 0000000..aa15f48 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema.c @@ -0,0 +1,72 @@ +#ifndef v1beta3_flow_schema_TEST +#define v1beta3_flow_schema_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema.h" +v1beta3_flow_schema_t* instantiate_v1beta3_flow_schema(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1beta3_flow_schema_spec.c" +#include "test_v1beta3_flow_schema_status.c" + + +v1beta3_flow_schema_t* instantiate_v1beta3_flow_schema(int include_optional) { + v1beta3_flow_schema_t* v1beta3_flow_schema = NULL; + if (include_optional) { + v1beta3_flow_schema = v1beta3_flow_schema_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1beta3_flow_schema_spec(0), + // false, not to have infinite recursion + instantiate_v1beta3_flow_schema_status(0) + ); + } else { + v1beta3_flow_schema = v1beta3_flow_schema_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1beta3_flow_schema; +} + + +#ifdef v1beta3_flow_schema_MAIN + +void test_v1beta3_flow_schema(int include_optional) { + v1beta3_flow_schema_t* v1beta3_flow_schema_1 = instantiate_v1beta3_flow_schema(include_optional); + + cJSON* jsonv1beta3_flow_schema_1 = v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_1); + printf("v1beta3_flow_schema :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_1)); + v1beta3_flow_schema_t* v1beta3_flow_schema_2 = v1beta3_flow_schema_parseFromJSON(jsonv1beta3_flow_schema_1); + cJSON* jsonv1beta3_flow_schema_2 = v1beta3_flow_schema_convertToJSON(v1beta3_flow_schema_2); + printf("repeating v1beta3_flow_schema:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_2)); +} + +int main() { + test_v1beta3_flow_schema(1); + test_v1beta3_flow_schema(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_MAIN +#endif // v1beta3_flow_schema_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_condition.c b/kubernetes/unit-test/test_v1beta3_flow_schema_condition.c new file mode 100644 index 0000000..d01970b --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_condition.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_flow_schema_condition_TEST +#define v1beta3_flow_schema_condition_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_condition_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_condition.h" +v1beta3_flow_schema_condition_t* instantiate_v1beta3_flow_schema_condition(int include_optional); + + + +v1beta3_flow_schema_condition_t* instantiate_v1beta3_flow_schema_condition(int include_optional) { + v1beta3_flow_schema_condition_t* v1beta3_flow_schema_condition = NULL; + if (include_optional) { + v1beta3_flow_schema_condition = v1beta3_flow_schema_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } else { + v1beta3_flow_schema_condition = v1beta3_flow_schema_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } + + return v1beta3_flow_schema_condition; +} + + +#ifdef v1beta3_flow_schema_condition_MAIN + +void test_v1beta3_flow_schema_condition(int include_optional) { + v1beta3_flow_schema_condition_t* v1beta3_flow_schema_condition_1 = instantiate_v1beta3_flow_schema_condition(include_optional); + + cJSON* jsonv1beta3_flow_schema_condition_1 = v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_1); + printf("v1beta3_flow_schema_condition :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_condition_1)); + v1beta3_flow_schema_condition_t* v1beta3_flow_schema_condition_2 = v1beta3_flow_schema_condition_parseFromJSON(jsonv1beta3_flow_schema_condition_1); + cJSON* jsonv1beta3_flow_schema_condition_2 = v1beta3_flow_schema_condition_convertToJSON(v1beta3_flow_schema_condition_2); + printf("repeating v1beta3_flow_schema_condition:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_condition_2)); +} + +int main() { + test_v1beta3_flow_schema_condition(1); + test_v1beta3_flow_schema_condition(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_condition_MAIN +#endif // v1beta3_flow_schema_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_list.c b/kubernetes/unit-test/test_v1beta3_flow_schema_list.c new file mode 100644 index 0000000..6159b0b --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_list.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_flow_schema_list_TEST +#define v1beta3_flow_schema_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_list.h" +v1beta3_flow_schema_list_t* instantiate_v1beta3_flow_schema_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1beta3_flow_schema_list_t* instantiate_v1beta3_flow_schema_list(int include_optional) { + v1beta3_flow_schema_list_t* v1beta3_flow_schema_list = NULL; + if (include_optional) { + v1beta3_flow_schema_list = v1beta3_flow_schema_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1beta3_flow_schema_list = v1beta3_flow_schema_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1beta3_flow_schema_list; +} + + +#ifdef v1beta3_flow_schema_list_MAIN + +void test_v1beta3_flow_schema_list(int include_optional) { + v1beta3_flow_schema_list_t* v1beta3_flow_schema_list_1 = instantiate_v1beta3_flow_schema_list(include_optional); + + cJSON* jsonv1beta3_flow_schema_list_1 = v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_1); + printf("v1beta3_flow_schema_list :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_list_1)); + v1beta3_flow_schema_list_t* v1beta3_flow_schema_list_2 = v1beta3_flow_schema_list_parseFromJSON(jsonv1beta3_flow_schema_list_1); + cJSON* jsonv1beta3_flow_schema_list_2 = v1beta3_flow_schema_list_convertToJSON(v1beta3_flow_schema_list_2); + printf("repeating v1beta3_flow_schema_list:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_list_2)); +} + +int main() { + test_v1beta3_flow_schema_list(1); + test_v1beta3_flow_schema_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_list_MAIN +#endif // v1beta3_flow_schema_list_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_spec.c b/kubernetes/unit-test/test_v1beta3_flow_schema_spec.c new file mode 100644 index 0000000..73b6ed9 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_spec.c @@ -0,0 +1,68 @@ +#ifndef v1beta3_flow_schema_spec_TEST +#define v1beta3_flow_schema_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_spec.h" +v1beta3_flow_schema_spec_t* instantiate_v1beta3_flow_schema_spec(int include_optional); + +#include "test_v1beta3_flow_distinguisher_method.c" +#include "test_v1beta3_priority_level_configuration_reference.c" + + +v1beta3_flow_schema_spec_t* instantiate_v1beta3_flow_schema_spec(int include_optional) { + v1beta3_flow_schema_spec_t* v1beta3_flow_schema_spec = NULL; + if (include_optional) { + v1beta3_flow_schema_spec = v1beta3_flow_schema_spec_create( + // false, not to have infinite recursion + instantiate_v1beta3_flow_distinguisher_method(0), + 56, + // false, not to have infinite recursion + instantiate_v1beta3_priority_level_configuration_reference(0), + list_createList() + ); + } else { + v1beta3_flow_schema_spec = v1beta3_flow_schema_spec_create( + NULL, + 56, + NULL, + list_createList() + ); + } + + return v1beta3_flow_schema_spec; +} + + +#ifdef v1beta3_flow_schema_spec_MAIN + +void test_v1beta3_flow_schema_spec(int include_optional) { + v1beta3_flow_schema_spec_t* v1beta3_flow_schema_spec_1 = instantiate_v1beta3_flow_schema_spec(include_optional); + + cJSON* jsonv1beta3_flow_schema_spec_1 = v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_1); + printf("v1beta3_flow_schema_spec :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_spec_1)); + v1beta3_flow_schema_spec_t* v1beta3_flow_schema_spec_2 = v1beta3_flow_schema_spec_parseFromJSON(jsonv1beta3_flow_schema_spec_1); + cJSON* jsonv1beta3_flow_schema_spec_2 = v1beta3_flow_schema_spec_convertToJSON(v1beta3_flow_schema_spec_2); + printf("repeating v1beta3_flow_schema_spec:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_spec_2)); +} + +int main() { + test_v1beta3_flow_schema_spec(1); + test_v1beta3_flow_schema_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_spec_MAIN +#endif // v1beta3_flow_schema_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta3_flow_schema_status.c b/kubernetes/unit-test/test_v1beta3_flow_schema_status.c new file mode 100644 index 0000000..c2c4c97 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_flow_schema_status.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_flow_schema_status_TEST +#define v1beta3_flow_schema_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_flow_schema_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_flow_schema_status.h" +v1beta3_flow_schema_status_t* instantiate_v1beta3_flow_schema_status(int include_optional); + + + +v1beta3_flow_schema_status_t* instantiate_v1beta3_flow_schema_status(int include_optional) { + v1beta3_flow_schema_status_t* v1beta3_flow_schema_status = NULL; + if (include_optional) { + v1beta3_flow_schema_status = v1beta3_flow_schema_status_create( + list_createList() + ); + } else { + v1beta3_flow_schema_status = v1beta3_flow_schema_status_create( + list_createList() + ); + } + + return v1beta3_flow_schema_status; +} + + +#ifdef v1beta3_flow_schema_status_MAIN + +void test_v1beta3_flow_schema_status(int include_optional) { + v1beta3_flow_schema_status_t* v1beta3_flow_schema_status_1 = instantiate_v1beta3_flow_schema_status(include_optional); + + cJSON* jsonv1beta3_flow_schema_status_1 = v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_1); + printf("v1beta3_flow_schema_status :\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_status_1)); + v1beta3_flow_schema_status_t* v1beta3_flow_schema_status_2 = v1beta3_flow_schema_status_parseFromJSON(jsonv1beta3_flow_schema_status_1); + cJSON* jsonv1beta3_flow_schema_status_2 = v1beta3_flow_schema_status_convertToJSON(v1beta3_flow_schema_status_2); + printf("repeating v1beta3_flow_schema_status:\n%s\n", cJSON_Print(jsonv1beta3_flow_schema_status_2)); +} + +int main() { + test_v1beta3_flow_schema_status(1); + test_v1beta3_flow_schema_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_flow_schema_status_MAIN +#endif // v1beta3_flow_schema_status_TEST diff --git a/kubernetes/unit-test/test_v1beta3_group_subject.c b/kubernetes/unit-test/test_v1beta3_group_subject.c new file mode 100644 index 0000000..898cbbb --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_group_subject.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_group_subject_TEST +#define v1beta3_group_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_group_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_group_subject.h" +v1beta3_group_subject_t* instantiate_v1beta3_group_subject(int include_optional); + + + +v1beta3_group_subject_t* instantiate_v1beta3_group_subject(int include_optional) { + v1beta3_group_subject_t* v1beta3_group_subject = NULL; + if (include_optional) { + v1beta3_group_subject = v1beta3_group_subject_create( + "0" + ); + } else { + v1beta3_group_subject = v1beta3_group_subject_create( + "0" + ); + } + + return v1beta3_group_subject; +} + + +#ifdef v1beta3_group_subject_MAIN + +void test_v1beta3_group_subject(int include_optional) { + v1beta3_group_subject_t* v1beta3_group_subject_1 = instantiate_v1beta3_group_subject(include_optional); + + cJSON* jsonv1beta3_group_subject_1 = v1beta3_group_subject_convertToJSON(v1beta3_group_subject_1); + printf("v1beta3_group_subject :\n%s\n", cJSON_Print(jsonv1beta3_group_subject_1)); + v1beta3_group_subject_t* v1beta3_group_subject_2 = v1beta3_group_subject_parseFromJSON(jsonv1beta3_group_subject_1); + cJSON* jsonv1beta3_group_subject_2 = v1beta3_group_subject_convertToJSON(v1beta3_group_subject_2); + printf("repeating v1beta3_group_subject:\n%s\n", cJSON_Print(jsonv1beta3_group_subject_2)); +} + +int main() { + test_v1beta3_group_subject(1); + test_v1beta3_group_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_group_subject_MAIN +#endif // v1beta3_group_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta3_limit_response.c b/kubernetes/unit-test/test_v1beta3_limit_response.c new file mode 100644 index 0000000..3f17c43 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_limit_response.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_limit_response_TEST +#define v1beta3_limit_response_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_limit_response_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_limit_response.h" +v1beta3_limit_response_t* instantiate_v1beta3_limit_response(int include_optional); + +#include "test_v1beta3_queuing_configuration.c" + + +v1beta3_limit_response_t* instantiate_v1beta3_limit_response(int include_optional) { + v1beta3_limit_response_t* v1beta3_limit_response = NULL; + if (include_optional) { + v1beta3_limit_response = v1beta3_limit_response_create( + // false, not to have infinite recursion + instantiate_v1beta3_queuing_configuration(0), + "0" + ); + } else { + v1beta3_limit_response = v1beta3_limit_response_create( + NULL, + "0" + ); + } + + return v1beta3_limit_response; +} + + +#ifdef v1beta3_limit_response_MAIN + +void test_v1beta3_limit_response(int include_optional) { + v1beta3_limit_response_t* v1beta3_limit_response_1 = instantiate_v1beta3_limit_response(include_optional); + + cJSON* jsonv1beta3_limit_response_1 = v1beta3_limit_response_convertToJSON(v1beta3_limit_response_1); + printf("v1beta3_limit_response :\n%s\n", cJSON_Print(jsonv1beta3_limit_response_1)); + v1beta3_limit_response_t* v1beta3_limit_response_2 = v1beta3_limit_response_parseFromJSON(jsonv1beta3_limit_response_1); + cJSON* jsonv1beta3_limit_response_2 = v1beta3_limit_response_convertToJSON(v1beta3_limit_response_2); + printf("repeating v1beta3_limit_response:\n%s\n", cJSON_Print(jsonv1beta3_limit_response_2)); +} + +int main() { + test_v1beta3_limit_response(1); + test_v1beta3_limit_response(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_limit_response_MAIN +#endif // v1beta3_limit_response_TEST diff --git a/kubernetes/unit-test/test_v1beta3_limited_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta3_limited_priority_level_configuration.c new file mode 100644 index 0000000..4e01c85 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_limited_priority_level_configuration.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_limited_priority_level_configuration_TEST +#define v1beta3_limited_priority_level_configuration_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_limited_priority_level_configuration_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_limited_priority_level_configuration.h" +v1beta3_limited_priority_level_configuration_t* instantiate_v1beta3_limited_priority_level_configuration(int include_optional); + +#include "test_v1beta3_limit_response.c" + + +v1beta3_limited_priority_level_configuration_t* instantiate_v1beta3_limited_priority_level_configuration(int include_optional) { + v1beta3_limited_priority_level_configuration_t* v1beta3_limited_priority_level_configuration = NULL; + if (include_optional) { + v1beta3_limited_priority_level_configuration = v1beta3_limited_priority_level_configuration_create( + 56, + 56, + // false, not to have infinite recursion + instantiate_v1beta3_limit_response(0), + 56 + ); + } else { + v1beta3_limited_priority_level_configuration = v1beta3_limited_priority_level_configuration_create( + 56, + 56, + NULL, + 56 + ); + } + + return v1beta3_limited_priority_level_configuration; +} + + +#ifdef v1beta3_limited_priority_level_configuration_MAIN + +void test_v1beta3_limited_priority_level_configuration(int include_optional) { + v1beta3_limited_priority_level_configuration_t* v1beta3_limited_priority_level_configuration_1 = instantiate_v1beta3_limited_priority_level_configuration(include_optional); + + cJSON* jsonv1beta3_limited_priority_level_configuration_1 = v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_1); + printf("v1beta3_limited_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta3_limited_priority_level_configuration_1)); + v1beta3_limited_priority_level_configuration_t* v1beta3_limited_priority_level_configuration_2 = v1beta3_limited_priority_level_configuration_parseFromJSON(jsonv1beta3_limited_priority_level_configuration_1); + cJSON* jsonv1beta3_limited_priority_level_configuration_2 = v1beta3_limited_priority_level_configuration_convertToJSON(v1beta3_limited_priority_level_configuration_2); + printf("repeating v1beta3_limited_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta3_limited_priority_level_configuration_2)); +} + +int main() { + test_v1beta3_limited_priority_level_configuration(1); + test_v1beta3_limited_priority_level_configuration(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_limited_priority_level_configuration_MAIN +#endif // v1beta3_limited_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta3_non_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta3_non_resource_policy_rule.c new file mode 100644 index 0000000..5436980 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_non_resource_policy_rule.c @@ -0,0 +1,60 @@ +#ifndef v1beta3_non_resource_policy_rule_TEST +#define v1beta3_non_resource_policy_rule_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_non_resource_policy_rule_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_non_resource_policy_rule.h" +v1beta3_non_resource_policy_rule_t* instantiate_v1beta3_non_resource_policy_rule(int include_optional); + + + +v1beta3_non_resource_policy_rule_t* instantiate_v1beta3_non_resource_policy_rule(int include_optional) { + v1beta3_non_resource_policy_rule_t* v1beta3_non_resource_policy_rule = NULL; + if (include_optional) { + v1beta3_non_resource_policy_rule = v1beta3_non_resource_policy_rule_create( + list_createList(), + list_createList() + ); + } else { + v1beta3_non_resource_policy_rule = v1beta3_non_resource_policy_rule_create( + list_createList(), + list_createList() + ); + } + + return v1beta3_non_resource_policy_rule; +} + + +#ifdef v1beta3_non_resource_policy_rule_MAIN + +void test_v1beta3_non_resource_policy_rule(int include_optional) { + v1beta3_non_resource_policy_rule_t* v1beta3_non_resource_policy_rule_1 = instantiate_v1beta3_non_resource_policy_rule(include_optional); + + cJSON* jsonv1beta3_non_resource_policy_rule_1 = v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_1); + printf("v1beta3_non_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta3_non_resource_policy_rule_1)); + v1beta3_non_resource_policy_rule_t* v1beta3_non_resource_policy_rule_2 = v1beta3_non_resource_policy_rule_parseFromJSON(jsonv1beta3_non_resource_policy_rule_1); + cJSON* jsonv1beta3_non_resource_policy_rule_2 = v1beta3_non_resource_policy_rule_convertToJSON(v1beta3_non_resource_policy_rule_2); + printf("repeating v1beta3_non_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta3_non_resource_policy_rule_2)); +} + +int main() { + test_v1beta3_non_resource_policy_rule(1); + test_v1beta3_non_resource_policy_rule(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_non_resource_policy_rule_MAIN +#endif // v1beta3_non_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta3_policy_rules_with_subjects.c b/kubernetes/unit-test/test_v1beta3_policy_rules_with_subjects.c new file mode 100644 index 0000000..af93f32 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_policy_rules_with_subjects.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_policy_rules_with_subjects_TEST +#define v1beta3_policy_rules_with_subjects_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_policy_rules_with_subjects_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_policy_rules_with_subjects.h" +v1beta3_policy_rules_with_subjects_t* instantiate_v1beta3_policy_rules_with_subjects(int include_optional); + + + +v1beta3_policy_rules_with_subjects_t* instantiate_v1beta3_policy_rules_with_subjects(int include_optional) { + v1beta3_policy_rules_with_subjects_t* v1beta3_policy_rules_with_subjects = NULL; + if (include_optional) { + v1beta3_policy_rules_with_subjects = v1beta3_policy_rules_with_subjects_create( + list_createList(), + list_createList(), + list_createList() + ); + } else { + v1beta3_policy_rules_with_subjects = v1beta3_policy_rules_with_subjects_create( + list_createList(), + list_createList(), + list_createList() + ); + } + + return v1beta3_policy_rules_with_subjects; +} + + +#ifdef v1beta3_policy_rules_with_subjects_MAIN + +void test_v1beta3_policy_rules_with_subjects(int include_optional) { + v1beta3_policy_rules_with_subjects_t* v1beta3_policy_rules_with_subjects_1 = instantiate_v1beta3_policy_rules_with_subjects(include_optional); + + cJSON* jsonv1beta3_policy_rules_with_subjects_1 = v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_1); + printf("v1beta3_policy_rules_with_subjects :\n%s\n", cJSON_Print(jsonv1beta3_policy_rules_with_subjects_1)); + v1beta3_policy_rules_with_subjects_t* v1beta3_policy_rules_with_subjects_2 = v1beta3_policy_rules_with_subjects_parseFromJSON(jsonv1beta3_policy_rules_with_subjects_1); + cJSON* jsonv1beta3_policy_rules_with_subjects_2 = v1beta3_policy_rules_with_subjects_convertToJSON(v1beta3_policy_rules_with_subjects_2); + printf("repeating v1beta3_policy_rules_with_subjects:\n%s\n", cJSON_Print(jsonv1beta3_policy_rules_with_subjects_2)); +} + +int main() { + test_v1beta3_policy_rules_with_subjects(1); + test_v1beta3_policy_rules_with_subjects(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_policy_rules_with_subjects_MAIN +#endif // v1beta3_policy_rules_with_subjects_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration.c new file mode 100644 index 0000000..8a600b1 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration.c @@ -0,0 +1,72 @@ +#ifndef v1beta3_priority_level_configuration_TEST +#define v1beta3_priority_level_configuration_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration.h" +v1beta3_priority_level_configuration_t* instantiate_v1beta3_priority_level_configuration(int include_optional); + +#include "test_v1_object_meta.c" +#include "test_v1beta3_priority_level_configuration_spec.c" +#include "test_v1beta3_priority_level_configuration_status.c" + + +v1beta3_priority_level_configuration_t* instantiate_v1beta3_priority_level_configuration(int include_optional) { + v1beta3_priority_level_configuration_t* v1beta3_priority_level_configuration = NULL; + if (include_optional) { + v1beta3_priority_level_configuration = v1beta3_priority_level_configuration_create( + "0", + "0", + // false, not to have infinite recursion + instantiate_v1_object_meta(0), + // false, not to have infinite recursion + instantiate_v1beta3_priority_level_configuration_spec(0), + // false, not to have infinite recursion + instantiate_v1beta3_priority_level_configuration_status(0) + ); + } else { + v1beta3_priority_level_configuration = v1beta3_priority_level_configuration_create( + "0", + "0", + NULL, + NULL, + NULL + ); + } + + return v1beta3_priority_level_configuration; +} + + +#ifdef v1beta3_priority_level_configuration_MAIN + +void test_v1beta3_priority_level_configuration(int include_optional) { + v1beta3_priority_level_configuration_t* v1beta3_priority_level_configuration_1 = instantiate_v1beta3_priority_level_configuration(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_1 = v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_1); + printf("v1beta3_priority_level_configuration :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_1)); + v1beta3_priority_level_configuration_t* v1beta3_priority_level_configuration_2 = v1beta3_priority_level_configuration_parseFromJSON(jsonv1beta3_priority_level_configuration_1); + cJSON* jsonv1beta3_priority_level_configuration_2 = v1beta3_priority_level_configuration_convertToJSON(v1beta3_priority_level_configuration_2); + printf("repeating v1beta3_priority_level_configuration:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_2)); +} + +int main() { + test_v1beta3_priority_level_configuration(1); + test_v1beta3_priority_level_configuration(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_MAIN +#endif // v1beta3_priority_level_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_condition.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_condition.c new file mode 100644 index 0000000..8b910bc --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_condition.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_priority_level_configuration_condition_TEST +#define v1beta3_priority_level_configuration_condition_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_condition_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_condition.h" +v1beta3_priority_level_configuration_condition_t* instantiate_v1beta3_priority_level_configuration_condition(int include_optional); + + + +v1beta3_priority_level_configuration_condition_t* instantiate_v1beta3_priority_level_configuration_condition(int include_optional) { + v1beta3_priority_level_configuration_condition_t* v1beta3_priority_level_configuration_condition = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_condition = v1beta3_priority_level_configuration_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } else { + v1beta3_priority_level_configuration_condition = v1beta3_priority_level_configuration_condition_create( + "2013-10-20T19:20:30+01:00", + "0", + "0", + "0", + "0" + ); + } + + return v1beta3_priority_level_configuration_condition; +} + + +#ifdef v1beta3_priority_level_configuration_condition_MAIN + +void test_v1beta3_priority_level_configuration_condition(int include_optional) { + v1beta3_priority_level_configuration_condition_t* v1beta3_priority_level_configuration_condition_1 = instantiate_v1beta3_priority_level_configuration_condition(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_condition_1 = v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_1); + printf("v1beta3_priority_level_configuration_condition :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_condition_1)); + v1beta3_priority_level_configuration_condition_t* v1beta3_priority_level_configuration_condition_2 = v1beta3_priority_level_configuration_condition_parseFromJSON(jsonv1beta3_priority_level_configuration_condition_1); + cJSON* jsonv1beta3_priority_level_configuration_condition_2 = v1beta3_priority_level_configuration_condition_convertToJSON(v1beta3_priority_level_configuration_condition_2); + printf("repeating v1beta3_priority_level_configuration_condition:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_condition_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_condition(1); + test_v1beta3_priority_level_configuration_condition(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_condition_MAIN +#endif // v1beta3_priority_level_configuration_condition_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_list.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_list.c new file mode 100644 index 0000000..a0ccb0d --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_list.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_priority_level_configuration_list_TEST +#define v1beta3_priority_level_configuration_list_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_list_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_list.h" +v1beta3_priority_level_configuration_list_t* instantiate_v1beta3_priority_level_configuration_list(int include_optional); + +#include "test_v1_list_meta.c" + + +v1beta3_priority_level_configuration_list_t* instantiate_v1beta3_priority_level_configuration_list(int include_optional) { + v1beta3_priority_level_configuration_list_t* v1beta3_priority_level_configuration_list = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_list = v1beta3_priority_level_configuration_list_create( + "0", + list_createList(), + "0", + // false, not to have infinite recursion + instantiate_v1_list_meta(0) + ); + } else { + v1beta3_priority_level_configuration_list = v1beta3_priority_level_configuration_list_create( + "0", + list_createList(), + "0", + NULL + ); + } + + return v1beta3_priority_level_configuration_list; +} + + +#ifdef v1beta3_priority_level_configuration_list_MAIN + +void test_v1beta3_priority_level_configuration_list(int include_optional) { + v1beta3_priority_level_configuration_list_t* v1beta3_priority_level_configuration_list_1 = instantiate_v1beta3_priority_level_configuration_list(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_list_1 = v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_1); + printf("v1beta3_priority_level_configuration_list :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_list_1)); + v1beta3_priority_level_configuration_list_t* v1beta3_priority_level_configuration_list_2 = v1beta3_priority_level_configuration_list_parseFromJSON(jsonv1beta3_priority_level_configuration_list_1); + cJSON* jsonv1beta3_priority_level_configuration_list_2 = v1beta3_priority_level_configuration_list_convertToJSON(v1beta3_priority_level_configuration_list_2); + printf("repeating v1beta3_priority_level_configuration_list:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_list_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_list(1); + test_v1beta3_priority_level_configuration_list(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_list_MAIN +#endif // v1beta3_priority_level_configuration_list_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_reference.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_reference.c new file mode 100644 index 0000000..2963c69 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_reference.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_priority_level_configuration_reference_TEST +#define v1beta3_priority_level_configuration_reference_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_reference_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_reference.h" +v1beta3_priority_level_configuration_reference_t* instantiate_v1beta3_priority_level_configuration_reference(int include_optional); + + + +v1beta3_priority_level_configuration_reference_t* instantiate_v1beta3_priority_level_configuration_reference(int include_optional) { + v1beta3_priority_level_configuration_reference_t* v1beta3_priority_level_configuration_reference = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_reference = v1beta3_priority_level_configuration_reference_create( + "0" + ); + } else { + v1beta3_priority_level_configuration_reference = v1beta3_priority_level_configuration_reference_create( + "0" + ); + } + + return v1beta3_priority_level_configuration_reference; +} + + +#ifdef v1beta3_priority_level_configuration_reference_MAIN + +void test_v1beta3_priority_level_configuration_reference(int include_optional) { + v1beta3_priority_level_configuration_reference_t* v1beta3_priority_level_configuration_reference_1 = instantiate_v1beta3_priority_level_configuration_reference(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_reference_1 = v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_1); + printf("v1beta3_priority_level_configuration_reference :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_reference_1)); + v1beta3_priority_level_configuration_reference_t* v1beta3_priority_level_configuration_reference_2 = v1beta3_priority_level_configuration_reference_parseFromJSON(jsonv1beta3_priority_level_configuration_reference_1); + cJSON* jsonv1beta3_priority_level_configuration_reference_2 = v1beta3_priority_level_configuration_reference_convertToJSON(v1beta3_priority_level_configuration_reference_2); + printf("repeating v1beta3_priority_level_configuration_reference:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_reference_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_reference(1); + test_v1beta3_priority_level_configuration_reference(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_reference_MAIN +#endif // v1beta3_priority_level_configuration_reference_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_spec.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_spec.c new file mode 100644 index 0000000..9d5d0de --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_spec.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_priority_level_configuration_spec_TEST +#define v1beta3_priority_level_configuration_spec_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_spec_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_spec.h" +v1beta3_priority_level_configuration_spec_t* instantiate_v1beta3_priority_level_configuration_spec(int include_optional); + +#include "test_v1beta3_limited_priority_level_configuration.c" + + +v1beta3_priority_level_configuration_spec_t* instantiate_v1beta3_priority_level_configuration_spec(int include_optional) { + v1beta3_priority_level_configuration_spec_t* v1beta3_priority_level_configuration_spec = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_spec = v1beta3_priority_level_configuration_spec_create( + // false, not to have infinite recursion + instantiate_v1beta3_limited_priority_level_configuration(0), + "0" + ); + } else { + v1beta3_priority_level_configuration_spec = v1beta3_priority_level_configuration_spec_create( + NULL, + "0" + ); + } + + return v1beta3_priority_level_configuration_spec; +} + + +#ifdef v1beta3_priority_level_configuration_spec_MAIN + +void test_v1beta3_priority_level_configuration_spec(int include_optional) { + v1beta3_priority_level_configuration_spec_t* v1beta3_priority_level_configuration_spec_1 = instantiate_v1beta3_priority_level_configuration_spec(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_spec_1 = v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_1); + printf("v1beta3_priority_level_configuration_spec :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_spec_1)); + v1beta3_priority_level_configuration_spec_t* v1beta3_priority_level_configuration_spec_2 = v1beta3_priority_level_configuration_spec_parseFromJSON(jsonv1beta3_priority_level_configuration_spec_1); + cJSON* jsonv1beta3_priority_level_configuration_spec_2 = v1beta3_priority_level_configuration_spec_convertToJSON(v1beta3_priority_level_configuration_spec_2); + printf("repeating v1beta3_priority_level_configuration_spec:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_spec_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_spec(1); + test_v1beta3_priority_level_configuration_spec(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_spec_MAIN +#endif // v1beta3_priority_level_configuration_spec_TEST diff --git a/kubernetes/unit-test/test_v1beta3_priority_level_configuration_status.c b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_status.c new file mode 100644 index 0000000..1f79a40 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_priority_level_configuration_status.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_priority_level_configuration_status_TEST +#define v1beta3_priority_level_configuration_status_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_priority_level_configuration_status_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_priority_level_configuration_status.h" +v1beta3_priority_level_configuration_status_t* instantiate_v1beta3_priority_level_configuration_status(int include_optional); + + + +v1beta3_priority_level_configuration_status_t* instantiate_v1beta3_priority_level_configuration_status(int include_optional) { + v1beta3_priority_level_configuration_status_t* v1beta3_priority_level_configuration_status = NULL; + if (include_optional) { + v1beta3_priority_level_configuration_status = v1beta3_priority_level_configuration_status_create( + list_createList() + ); + } else { + v1beta3_priority_level_configuration_status = v1beta3_priority_level_configuration_status_create( + list_createList() + ); + } + + return v1beta3_priority_level_configuration_status; +} + + +#ifdef v1beta3_priority_level_configuration_status_MAIN + +void test_v1beta3_priority_level_configuration_status(int include_optional) { + v1beta3_priority_level_configuration_status_t* v1beta3_priority_level_configuration_status_1 = instantiate_v1beta3_priority_level_configuration_status(include_optional); + + cJSON* jsonv1beta3_priority_level_configuration_status_1 = v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_1); + printf("v1beta3_priority_level_configuration_status :\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_status_1)); + v1beta3_priority_level_configuration_status_t* v1beta3_priority_level_configuration_status_2 = v1beta3_priority_level_configuration_status_parseFromJSON(jsonv1beta3_priority_level_configuration_status_1); + cJSON* jsonv1beta3_priority_level_configuration_status_2 = v1beta3_priority_level_configuration_status_convertToJSON(v1beta3_priority_level_configuration_status_2); + printf("repeating v1beta3_priority_level_configuration_status:\n%s\n", cJSON_Print(jsonv1beta3_priority_level_configuration_status_2)); +} + +int main() { + test_v1beta3_priority_level_configuration_status(1); + test_v1beta3_priority_level_configuration_status(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_priority_level_configuration_status_MAIN +#endif // v1beta3_priority_level_configuration_status_TEST diff --git a/kubernetes/unit-test/test_v1beta3_queuing_configuration.c b/kubernetes/unit-test/test_v1beta3_queuing_configuration.c new file mode 100644 index 0000000..83e1c08 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_queuing_configuration.c @@ -0,0 +1,62 @@ +#ifndef v1beta3_queuing_configuration_TEST +#define v1beta3_queuing_configuration_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_queuing_configuration_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_queuing_configuration.h" +v1beta3_queuing_configuration_t* instantiate_v1beta3_queuing_configuration(int include_optional); + + + +v1beta3_queuing_configuration_t* instantiate_v1beta3_queuing_configuration(int include_optional) { + v1beta3_queuing_configuration_t* v1beta3_queuing_configuration = NULL; + if (include_optional) { + v1beta3_queuing_configuration = v1beta3_queuing_configuration_create( + 56, + 56, + 56 + ); + } else { + v1beta3_queuing_configuration = v1beta3_queuing_configuration_create( + 56, + 56, + 56 + ); + } + + return v1beta3_queuing_configuration; +} + + +#ifdef v1beta3_queuing_configuration_MAIN + +void test_v1beta3_queuing_configuration(int include_optional) { + v1beta3_queuing_configuration_t* v1beta3_queuing_configuration_1 = instantiate_v1beta3_queuing_configuration(include_optional); + + cJSON* jsonv1beta3_queuing_configuration_1 = v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_1); + printf("v1beta3_queuing_configuration :\n%s\n", cJSON_Print(jsonv1beta3_queuing_configuration_1)); + v1beta3_queuing_configuration_t* v1beta3_queuing_configuration_2 = v1beta3_queuing_configuration_parseFromJSON(jsonv1beta3_queuing_configuration_1); + cJSON* jsonv1beta3_queuing_configuration_2 = v1beta3_queuing_configuration_convertToJSON(v1beta3_queuing_configuration_2); + printf("repeating v1beta3_queuing_configuration:\n%s\n", cJSON_Print(jsonv1beta3_queuing_configuration_2)); +} + +int main() { + test_v1beta3_queuing_configuration(1); + test_v1beta3_queuing_configuration(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_queuing_configuration_MAIN +#endif // v1beta3_queuing_configuration_TEST diff --git a/kubernetes/unit-test/test_v1beta3_resource_policy_rule.c b/kubernetes/unit-test/test_v1beta3_resource_policy_rule.c new file mode 100644 index 0000000..092c6d9 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_resource_policy_rule.c @@ -0,0 +1,66 @@ +#ifndef v1beta3_resource_policy_rule_TEST +#define v1beta3_resource_policy_rule_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_resource_policy_rule_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_resource_policy_rule.h" +v1beta3_resource_policy_rule_t* instantiate_v1beta3_resource_policy_rule(int include_optional); + + + +v1beta3_resource_policy_rule_t* instantiate_v1beta3_resource_policy_rule(int include_optional) { + v1beta3_resource_policy_rule_t* v1beta3_resource_policy_rule = NULL; + if (include_optional) { + v1beta3_resource_policy_rule = v1beta3_resource_policy_rule_create( + list_createList(), + 1, + list_createList(), + list_createList(), + list_createList() + ); + } else { + v1beta3_resource_policy_rule = v1beta3_resource_policy_rule_create( + list_createList(), + 1, + list_createList(), + list_createList(), + list_createList() + ); + } + + return v1beta3_resource_policy_rule; +} + + +#ifdef v1beta3_resource_policy_rule_MAIN + +void test_v1beta3_resource_policy_rule(int include_optional) { + v1beta3_resource_policy_rule_t* v1beta3_resource_policy_rule_1 = instantiate_v1beta3_resource_policy_rule(include_optional); + + cJSON* jsonv1beta3_resource_policy_rule_1 = v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_1); + printf("v1beta3_resource_policy_rule :\n%s\n", cJSON_Print(jsonv1beta3_resource_policy_rule_1)); + v1beta3_resource_policy_rule_t* v1beta3_resource_policy_rule_2 = v1beta3_resource_policy_rule_parseFromJSON(jsonv1beta3_resource_policy_rule_1); + cJSON* jsonv1beta3_resource_policy_rule_2 = v1beta3_resource_policy_rule_convertToJSON(v1beta3_resource_policy_rule_2); + printf("repeating v1beta3_resource_policy_rule:\n%s\n", cJSON_Print(jsonv1beta3_resource_policy_rule_2)); +} + +int main() { + test_v1beta3_resource_policy_rule(1); + test_v1beta3_resource_policy_rule(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_resource_policy_rule_MAIN +#endif // v1beta3_resource_policy_rule_TEST diff --git a/kubernetes/unit-test/test_v1beta3_service_account_subject.c b/kubernetes/unit-test/test_v1beta3_service_account_subject.c new file mode 100644 index 0000000..b9888f2 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_service_account_subject.c @@ -0,0 +1,60 @@ +#ifndef v1beta3_service_account_subject_TEST +#define v1beta3_service_account_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_service_account_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_service_account_subject.h" +v1beta3_service_account_subject_t* instantiate_v1beta3_service_account_subject(int include_optional); + + + +v1beta3_service_account_subject_t* instantiate_v1beta3_service_account_subject(int include_optional) { + v1beta3_service_account_subject_t* v1beta3_service_account_subject = NULL; + if (include_optional) { + v1beta3_service_account_subject = v1beta3_service_account_subject_create( + "0", + "0" + ); + } else { + v1beta3_service_account_subject = v1beta3_service_account_subject_create( + "0", + "0" + ); + } + + return v1beta3_service_account_subject; +} + + +#ifdef v1beta3_service_account_subject_MAIN + +void test_v1beta3_service_account_subject(int include_optional) { + v1beta3_service_account_subject_t* v1beta3_service_account_subject_1 = instantiate_v1beta3_service_account_subject(include_optional); + + cJSON* jsonv1beta3_service_account_subject_1 = v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_1); + printf("v1beta3_service_account_subject :\n%s\n", cJSON_Print(jsonv1beta3_service_account_subject_1)); + v1beta3_service_account_subject_t* v1beta3_service_account_subject_2 = v1beta3_service_account_subject_parseFromJSON(jsonv1beta3_service_account_subject_1); + cJSON* jsonv1beta3_service_account_subject_2 = v1beta3_service_account_subject_convertToJSON(v1beta3_service_account_subject_2); + printf("repeating v1beta3_service_account_subject:\n%s\n", cJSON_Print(jsonv1beta3_service_account_subject_2)); +} + +int main() { + test_v1beta3_service_account_subject(1); + test_v1beta3_service_account_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_service_account_subject_MAIN +#endif // v1beta3_service_account_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta3_subject.c b/kubernetes/unit-test/test_v1beta3_subject.c new file mode 100644 index 0000000..987cb13 --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_subject.c @@ -0,0 +1,70 @@ +#ifndef v1beta3_subject_TEST +#define v1beta3_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_subject.h" +v1beta3_subject_t* instantiate_v1beta3_subject(int include_optional); + +#include "test_v1beta3_group_subject.c" +#include "test_v1beta3_service_account_subject.c" +#include "test_v1beta3_user_subject.c" + + +v1beta3_subject_t* instantiate_v1beta3_subject(int include_optional) { + v1beta3_subject_t* v1beta3_subject = NULL; + if (include_optional) { + v1beta3_subject = v1beta3_subject_create( + // false, not to have infinite recursion + instantiate_v1beta3_group_subject(0), + "0", + // false, not to have infinite recursion + instantiate_v1beta3_service_account_subject(0), + // false, not to have infinite recursion + instantiate_v1beta3_user_subject(0) + ); + } else { + v1beta3_subject = v1beta3_subject_create( + NULL, + "0", + NULL, + NULL + ); + } + + return v1beta3_subject; +} + + +#ifdef v1beta3_subject_MAIN + +void test_v1beta3_subject(int include_optional) { + v1beta3_subject_t* v1beta3_subject_1 = instantiate_v1beta3_subject(include_optional); + + cJSON* jsonv1beta3_subject_1 = v1beta3_subject_convertToJSON(v1beta3_subject_1); + printf("v1beta3_subject :\n%s\n", cJSON_Print(jsonv1beta3_subject_1)); + v1beta3_subject_t* v1beta3_subject_2 = v1beta3_subject_parseFromJSON(jsonv1beta3_subject_1); + cJSON* jsonv1beta3_subject_2 = v1beta3_subject_convertToJSON(v1beta3_subject_2); + printf("repeating v1beta3_subject:\n%s\n", cJSON_Print(jsonv1beta3_subject_2)); +} + +int main() { + test_v1beta3_subject(1); + test_v1beta3_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_subject_MAIN +#endif // v1beta3_subject_TEST diff --git a/kubernetes/unit-test/test_v1beta3_user_subject.c b/kubernetes/unit-test/test_v1beta3_user_subject.c new file mode 100644 index 0000000..67ac62b --- /dev/null +++ b/kubernetes/unit-test/test_v1beta3_user_subject.c @@ -0,0 +1,58 @@ +#ifndef v1beta3_user_subject_TEST +#define v1beta3_user_subject_TEST + +// the following is to include only the main from the first c file +#ifndef TEST_MAIN +#define TEST_MAIN +#define v1beta3_user_subject_MAIN +#endif // TEST_MAIN + +#include +#include +#include +#include +#include "../external/cJSON.h" + +#include "../model/v1beta3_user_subject.h" +v1beta3_user_subject_t* instantiate_v1beta3_user_subject(int include_optional); + + + +v1beta3_user_subject_t* instantiate_v1beta3_user_subject(int include_optional) { + v1beta3_user_subject_t* v1beta3_user_subject = NULL; + if (include_optional) { + v1beta3_user_subject = v1beta3_user_subject_create( + "0" + ); + } else { + v1beta3_user_subject = v1beta3_user_subject_create( + "0" + ); + } + + return v1beta3_user_subject; +} + + +#ifdef v1beta3_user_subject_MAIN + +void test_v1beta3_user_subject(int include_optional) { + v1beta3_user_subject_t* v1beta3_user_subject_1 = instantiate_v1beta3_user_subject(include_optional); + + cJSON* jsonv1beta3_user_subject_1 = v1beta3_user_subject_convertToJSON(v1beta3_user_subject_1); + printf("v1beta3_user_subject :\n%s\n", cJSON_Print(jsonv1beta3_user_subject_1)); + v1beta3_user_subject_t* v1beta3_user_subject_2 = v1beta3_user_subject_parseFromJSON(jsonv1beta3_user_subject_1); + cJSON* jsonv1beta3_user_subject_2 = v1beta3_user_subject_convertToJSON(v1beta3_user_subject_2); + printf("repeating v1beta3_user_subject:\n%s\n", cJSON_Print(jsonv1beta3_user_subject_2)); +} + +int main() { + test_v1beta3_user_subject(1); + test_v1beta3_user_subject(0); + + printf("Hello world \n"); + return 0; +} + +#endif // v1beta3_user_subject_MAIN +#endif // v1beta3_user_subject_TEST diff --git a/kubernetes/unit-test/test_v2beta2_container_resource_metric_source.c b/kubernetes/unit-test/test_v2beta2_container_resource_metric_source.c deleted file mode 100644 index 09c65ea..0000000 --- a/kubernetes/unit-test/test_v2beta2_container_resource_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_container_resource_metric_source_TEST -#define v2beta2_container_resource_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_container_resource_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_container_resource_metric_source.h" -v2beta2_container_resource_metric_source_t* instantiate_v2beta2_container_resource_metric_source(int include_optional); - -#include "test_v2beta2_metric_target.c" - - -v2beta2_container_resource_metric_source_t* instantiate_v2beta2_container_resource_metric_source(int include_optional) { - v2beta2_container_resource_metric_source_t* v2beta2_container_resource_metric_source = NULL; - if (include_optional) { - v2beta2_container_resource_metric_source = v2beta2_container_resource_metric_source_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_container_resource_metric_source = v2beta2_container_resource_metric_source_create( - "0", - "0", - NULL - ); - } - - return v2beta2_container_resource_metric_source; -} - - -#ifdef v2beta2_container_resource_metric_source_MAIN - -void test_v2beta2_container_resource_metric_source(int include_optional) { - v2beta2_container_resource_metric_source_t* v2beta2_container_resource_metric_source_1 = instantiate_v2beta2_container_resource_metric_source(include_optional); - - cJSON* jsonv2beta2_container_resource_metric_source_1 = v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_1); - printf("v2beta2_container_resource_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_source_1)); - v2beta2_container_resource_metric_source_t* v2beta2_container_resource_metric_source_2 = v2beta2_container_resource_metric_source_parseFromJSON(jsonv2beta2_container_resource_metric_source_1); - cJSON* jsonv2beta2_container_resource_metric_source_2 = v2beta2_container_resource_metric_source_convertToJSON(v2beta2_container_resource_metric_source_2); - printf("repeating v2beta2_container_resource_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_source_2)); -} - -int main() { - test_v2beta2_container_resource_metric_source(1); - test_v2beta2_container_resource_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_container_resource_metric_source_MAIN -#endif // v2beta2_container_resource_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_container_resource_metric_status.c b/kubernetes/unit-test/test_v2beta2_container_resource_metric_status.c deleted file mode 100644 index 63b276e..0000000 --- a/kubernetes/unit-test/test_v2beta2_container_resource_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_container_resource_metric_status_TEST -#define v2beta2_container_resource_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_container_resource_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_container_resource_metric_status.h" -v2beta2_container_resource_metric_status_t* instantiate_v2beta2_container_resource_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" - - -v2beta2_container_resource_metric_status_t* instantiate_v2beta2_container_resource_metric_status(int include_optional) { - v2beta2_container_resource_metric_status_t* v2beta2_container_resource_metric_status = NULL; - if (include_optional) { - v2beta2_container_resource_metric_status = v2beta2_container_resource_metric_status_create( - "0", - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - "0" - ); - } else { - v2beta2_container_resource_metric_status = v2beta2_container_resource_metric_status_create( - "0", - NULL, - "0" - ); - } - - return v2beta2_container_resource_metric_status; -} - - -#ifdef v2beta2_container_resource_metric_status_MAIN - -void test_v2beta2_container_resource_metric_status(int include_optional) { - v2beta2_container_resource_metric_status_t* v2beta2_container_resource_metric_status_1 = instantiate_v2beta2_container_resource_metric_status(include_optional); - - cJSON* jsonv2beta2_container_resource_metric_status_1 = v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_1); - printf("v2beta2_container_resource_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_status_1)); - v2beta2_container_resource_metric_status_t* v2beta2_container_resource_metric_status_2 = v2beta2_container_resource_metric_status_parseFromJSON(jsonv2beta2_container_resource_metric_status_1); - cJSON* jsonv2beta2_container_resource_metric_status_2 = v2beta2_container_resource_metric_status_convertToJSON(v2beta2_container_resource_metric_status_2); - printf("repeating v2beta2_container_resource_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_container_resource_metric_status_2)); -} - -int main() { - test_v2beta2_container_resource_metric_status(1); - test_v2beta2_container_resource_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_container_resource_metric_status_MAIN -#endif // v2beta2_container_resource_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_cross_version_object_reference.c b/kubernetes/unit-test/test_v2beta2_cross_version_object_reference.c deleted file mode 100644 index 29b9f32..0000000 --- a/kubernetes/unit-test/test_v2beta2_cross_version_object_reference.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_cross_version_object_reference_TEST -#define v2beta2_cross_version_object_reference_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_cross_version_object_reference_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_cross_version_object_reference.h" -v2beta2_cross_version_object_reference_t* instantiate_v2beta2_cross_version_object_reference(int include_optional); - - - -v2beta2_cross_version_object_reference_t* instantiate_v2beta2_cross_version_object_reference(int include_optional) { - v2beta2_cross_version_object_reference_t* v2beta2_cross_version_object_reference = NULL; - if (include_optional) { - v2beta2_cross_version_object_reference = v2beta2_cross_version_object_reference_create( - "0", - "0", - "0" - ); - } else { - v2beta2_cross_version_object_reference = v2beta2_cross_version_object_reference_create( - "0", - "0", - "0" - ); - } - - return v2beta2_cross_version_object_reference; -} - - -#ifdef v2beta2_cross_version_object_reference_MAIN - -void test_v2beta2_cross_version_object_reference(int include_optional) { - v2beta2_cross_version_object_reference_t* v2beta2_cross_version_object_reference_1 = instantiate_v2beta2_cross_version_object_reference(include_optional); - - cJSON* jsonv2beta2_cross_version_object_reference_1 = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_1); - printf("v2beta2_cross_version_object_reference :\n%s\n", cJSON_Print(jsonv2beta2_cross_version_object_reference_1)); - v2beta2_cross_version_object_reference_t* v2beta2_cross_version_object_reference_2 = v2beta2_cross_version_object_reference_parseFromJSON(jsonv2beta2_cross_version_object_reference_1); - cJSON* jsonv2beta2_cross_version_object_reference_2 = v2beta2_cross_version_object_reference_convertToJSON(v2beta2_cross_version_object_reference_2); - printf("repeating v2beta2_cross_version_object_reference:\n%s\n", cJSON_Print(jsonv2beta2_cross_version_object_reference_2)); -} - -int main() { - test_v2beta2_cross_version_object_reference(1); - test_v2beta2_cross_version_object_reference(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_cross_version_object_reference_MAIN -#endif // v2beta2_cross_version_object_reference_TEST diff --git a/kubernetes/unit-test/test_v2beta2_external_metric_source.c b/kubernetes/unit-test/test_v2beta2_external_metric_source.c deleted file mode 100644 index 900abe1..0000000 --- a/kubernetes/unit-test/test_v2beta2_external_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_external_metric_source_TEST -#define v2beta2_external_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_external_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_external_metric_source.h" -v2beta2_external_metric_source_t* instantiate_v2beta2_external_metric_source(int include_optional); - -#include "test_v2beta2_metric_identifier.c" -#include "test_v2beta2_metric_target.c" - - -v2beta2_external_metric_source_t* instantiate_v2beta2_external_metric_source(int include_optional) { - v2beta2_external_metric_source_t* v2beta2_external_metric_source = NULL; - if (include_optional) { - v2beta2_external_metric_source = v2beta2_external_metric_source_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_external_metric_source = v2beta2_external_metric_source_create( - NULL, - NULL - ); - } - - return v2beta2_external_metric_source; -} - - -#ifdef v2beta2_external_metric_source_MAIN - -void test_v2beta2_external_metric_source(int include_optional) { - v2beta2_external_metric_source_t* v2beta2_external_metric_source_1 = instantiate_v2beta2_external_metric_source(include_optional); - - cJSON* jsonv2beta2_external_metric_source_1 = v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_1); - printf("v2beta2_external_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_external_metric_source_1)); - v2beta2_external_metric_source_t* v2beta2_external_metric_source_2 = v2beta2_external_metric_source_parseFromJSON(jsonv2beta2_external_metric_source_1); - cJSON* jsonv2beta2_external_metric_source_2 = v2beta2_external_metric_source_convertToJSON(v2beta2_external_metric_source_2); - printf("repeating v2beta2_external_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_external_metric_source_2)); -} - -int main() { - test_v2beta2_external_metric_source(1); - test_v2beta2_external_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_external_metric_source_MAIN -#endif // v2beta2_external_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_external_metric_status.c b/kubernetes/unit-test/test_v2beta2_external_metric_status.c deleted file mode 100644 index 368bd03..0000000 --- a/kubernetes/unit-test/test_v2beta2_external_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_external_metric_status_TEST -#define v2beta2_external_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_external_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_external_metric_status.h" -v2beta2_external_metric_status_t* instantiate_v2beta2_external_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" -#include "test_v2beta2_metric_identifier.c" - - -v2beta2_external_metric_status_t* instantiate_v2beta2_external_metric_status(int include_optional) { - v2beta2_external_metric_status_t* v2beta2_external_metric_status = NULL; - if (include_optional) { - v2beta2_external_metric_status = v2beta2_external_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0) - ); - } else { - v2beta2_external_metric_status = v2beta2_external_metric_status_create( - NULL, - NULL - ); - } - - return v2beta2_external_metric_status; -} - - -#ifdef v2beta2_external_metric_status_MAIN - -void test_v2beta2_external_metric_status(int include_optional) { - v2beta2_external_metric_status_t* v2beta2_external_metric_status_1 = instantiate_v2beta2_external_metric_status(include_optional); - - cJSON* jsonv2beta2_external_metric_status_1 = v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_1); - printf("v2beta2_external_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_external_metric_status_1)); - v2beta2_external_metric_status_t* v2beta2_external_metric_status_2 = v2beta2_external_metric_status_parseFromJSON(jsonv2beta2_external_metric_status_1); - cJSON* jsonv2beta2_external_metric_status_2 = v2beta2_external_metric_status_convertToJSON(v2beta2_external_metric_status_2); - printf("repeating v2beta2_external_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_external_metric_status_2)); -} - -int main() { - test_v2beta2_external_metric_status(1); - test_v2beta2_external_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_external_metric_status_MAIN -#endif // v2beta2_external_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler.c deleted file mode 100644 index ecaaed8..0000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler.c +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_TEST -#define v2beta2_horizontal_pod_autoscaler_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler.h" -v2beta2_horizontal_pod_autoscaler_t* instantiate_v2beta2_horizontal_pod_autoscaler(int include_optional); - -#include "test_v1_object_meta.c" -#include "test_v2beta2_horizontal_pod_autoscaler_spec.c" -#include "test_v2beta2_horizontal_pod_autoscaler_status.c" - - -v2beta2_horizontal_pod_autoscaler_t* instantiate_v2beta2_horizontal_pod_autoscaler(int include_optional) { - v2beta2_horizontal_pod_autoscaler_t* v2beta2_horizontal_pod_autoscaler = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler = v2beta2_horizontal_pod_autoscaler_create( - "0", - "0", - // false, not to have infinite recursion - instantiate_v1_object_meta(0), - // false, not to have infinite recursion - instantiate_v2beta2_horizontal_pod_autoscaler_spec(0), - // false, not to have infinite recursion - instantiate_v2beta2_horizontal_pod_autoscaler_status(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler = v2beta2_horizontal_pod_autoscaler_create( - "0", - "0", - NULL, - NULL, - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_MAIN - -void test_v2beta2_horizontal_pod_autoscaler(int include_optional) { - v2beta2_horizontal_pod_autoscaler_t* v2beta2_horizontal_pod_autoscaler_1 = instantiate_v2beta2_horizontal_pod_autoscaler(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_1 = v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_1); - printf("v2beta2_horizontal_pod_autoscaler :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_1)); - v2beta2_horizontal_pod_autoscaler_t* v2beta2_horizontal_pod_autoscaler_2 = v2beta2_horizontal_pod_autoscaler_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_2 = v2beta2_horizontal_pod_autoscaler_convertToJSON(v2beta2_horizontal_pod_autoscaler_2); - printf("repeating v2beta2_horizontal_pod_autoscaler:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler(1); - test_v2beta2_horizontal_pod_autoscaler(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c deleted file mode 100644 index d80a36a..0000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_behavior.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_behavior_TEST -#define v2beta2_horizontal_pod_autoscaler_behavior_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_behavior_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_behavior.h" -v2beta2_horizontal_pod_autoscaler_behavior_t* instantiate_v2beta2_horizontal_pod_autoscaler_behavior(int include_optional); - -#include "test_v2beta2_hpa_scaling_rules.c" -#include "test_v2beta2_hpa_scaling_rules.c" - - -v2beta2_horizontal_pod_autoscaler_behavior_t* instantiate_v2beta2_horizontal_pod_autoscaler_behavior(int include_optional) { - v2beta2_horizontal_pod_autoscaler_behavior_t* v2beta2_horizontal_pod_autoscaler_behavior = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_behavior = v2beta2_horizontal_pod_autoscaler_behavior_create( - // false, not to have infinite recursion - instantiate_v2beta2_hpa_scaling_rules(0), - // false, not to have infinite recursion - instantiate_v2beta2_hpa_scaling_rules(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler_behavior = v2beta2_horizontal_pod_autoscaler_behavior_create( - NULL, - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler_behavior; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_behavior_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_behavior(int include_optional) { - v2beta2_horizontal_pod_autoscaler_behavior_t* v2beta2_horizontal_pod_autoscaler_behavior_1 = instantiate_v2beta2_horizontal_pod_autoscaler_behavior(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_behavior_1 = v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_1); - printf("v2beta2_horizontal_pod_autoscaler_behavior :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_behavior_1)); - v2beta2_horizontal_pod_autoscaler_behavior_t* v2beta2_horizontal_pod_autoscaler_behavior_2 = v2beta2_horizontal_pod_autoscaler_behavior_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_behavior_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_behavior_2 = v2beta2_horizontal_pod_autoscaler_behavior_convertToJSON(v2beta2_horizontal_pod_autoscaler_behavior_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_behavior:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_behavior_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_behavior(1); - test_v2beta2_horizontal_pod_autoscaler_behavior(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_behavior_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_behavior_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c deleted file mode 100644 index 90d5f6b..0000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_condition.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_condition_TEST -#define v2beta2_horizontal_pod_autoscaler_condition_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_condition_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_condition.h" -v2beta2_horizontal_pod_autoscaler_condition_t* instantiate_v2beta2_horizontal_pod_autoscaler_condition(int include_optional); - - - -v2beta2_horizontal_pod_autoscaler_condition_t* instantiate_v2beta2_horizontal_pod_autoscaler_condition(int include_optional) { - v2beta2_horizontal_pod_autoscaler_condition_t* v2beta2_horizontal_pod_autoscaler_condition = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_condition = v2beta2_horizontal_pod_autoscaler_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } else { - v2beta2_horizontal_pod_autoscaler_condition = v2beta2_horizontal_pod_autoscaler_condition_create( - "2013-10-20T19:20:30+01:00", - "0", - "0", - "0", - "0" - ); - } - - return v2beta2_horizontal_pod_autoscaler_condition; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_condition_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_condition(int include_optional) { - v2beta2_horizontal_pod_autoscaler_condition_t* v2beta2_horizontal_pod_autoscaler_condition_1 = instantiate_v2beta2_horizontal_pod_autoscaler_condition(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_condition_1 = v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_1); - printf("v2beta2_horizontal_pod_autoscaler_condition :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_condition_1)); - v2beta2_horizontal_pod_autoscaler_condition_t* v2beta2_horizontal_pod_autoscaler_condition_2 = v2beta2_horizontal_pod_autoscaler_condition_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_condition_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_condition_2 = v2beta2_horizontal_pod_autoscaler_condition_convertToJSON(v2beta2_horizontal_pod_autoscaler_condition_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_condition:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_condition_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_condition(1); - test_v2beta2_horizontal_pod_autoscaler_condition(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_condition_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_condition_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c deleted file mode 100644 index 341099b..0000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_list.c +++ /dev/null @@ -1,66 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_list_TEST -#define v2beta2_horizontal_pod_autoscaler_list_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_list_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_list.h" -v2beta2_horizontal_pod_autoscaler_list_t* instantiate_v2beta2_horizontal_pod_autoscaler_list(int include_optional); - -#include "test_v1_list_meta.c" - - -v2beta2_horizontal_pod_autoscaler_list_t* instantiate_v2beta2_horizontal_pod_autoscaler_list(int include_optional) { - v2beta2_horizontal_pod_autoscaler_list_t* v2beta2_horizontal_pod_autoscaler_list = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_list = v2beta2_horizontal_pod_autoscaler_list_create( - "0", - list_createList(), - "0", - // false, not to have infinite recursion - instantiate_v1_list_meta(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler_list = v2beta2_horizontal_pod_autoscaler_list_create( - "0", - list_createList(), - "0", - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler_list; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_list_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_list(int include_optional) { - v2beta2_horizontal_pod_autoscaler_list_t* v2beta2_horizontal_pod_autoscaler_list_1 = instantiate_v2beta2_horizontal_pod_autoscaler_list(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_list_1 = v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_1); - printf("v2beta2_horizontal_pod_autoscaler_list :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_list_1)); - v2beta2_horizontal_pod_autoscaler_list_t* v2beta2_horizontal_pod_autoscaler_list_2 = v2beta2_horizontal_pod_autoscaler_list_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_list_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_list_2 = v2beta2_horizontal_pod_autoscaler_list_convertToJSON(v2beta2_horizontal_pod_autoscaler_list_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_list:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_list_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_list(1); - test_v2beta2_horizontal_pod_autoscaler_list(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_list_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_list_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c deleted file mode 100644 index e3b6118..0000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_spec.c +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_spec_TEST -#define v2beta2_horizontal_pod_autoscaler_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_spec.h" -v2beta2_horizontal_pod_autoscaler_spec_t* instantiate_v2beta2_horizontal_pod_autoscaler_spec(int include_optional); - -#include "test_v2beta2_horizontal_pod_autoscaler_behavior.c" -#include "test_v2beta2_cross_version_object_reference.c" - - -v2beta2_horizontal_pod_autoscaler_spec_t* instantiate_v2beta2_horizontal_pod_autoscaler_spec(int include_optional) { - v2beta2_horizontal_pod_autoscaler_spec_t* v2beta2_horizontal_pod_autoscaler_spec = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_spec = v2beta2_horizontal_pod_autoscaler_spec_create( - // false, not to have infinite recursion - instantiate_v2beta2_horizontal_pod_autoscaler_behavior(0), - 56, - list_createList(), - 56, - // false, not to have infinite recursion - instantiate_v2beta2_cross_version_object_reference(0) - ); - } else { - v2beta2_horizontal_pod_autoscaler_spec = v2beta2_horizontal_pod_autoscaler_spec_create( - NULL, - 56, - list_createList(), - 56, - NULL - ); - } - - return v2beta2_horizontal_pod_autoscaler_spec; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_spec_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_spec(int include_optional) { - v2beta2_horizontal_pod_autoscaler_spec_t* v2beta2_horizontal_pod_autoscaler_spec_1 = instantiate_v2beta2_horizontal_pod_autoscaler_spec(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_spec_1 = v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_1); - printf("v2beta2_horizontal_pod_autoscaler_spec :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_spec_1)); - v2beta2_horizontal_pod_autoscaler_spec_t* v2beta2_horizontal_pod_autoscaler_spec_2 = v2beta2_horizontal_pod_autoscaler_spec_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_spec_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_spec_2 = v2beta2_horizontal_pod_autoscaler_spec_convertToJSON(v2beta2_horizontal_pod_autoscaler_spec_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_spec:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_spec_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_spec(1); - test_v2beta2_horizontal_pod_autoscaler_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_spec_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_spec_TEST diff --git a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c b/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c deleted file mode 100644 index 84f0302..0000000 --- a/kubernetes/unit-test/test_v2beta2_horizontal_pod_autoscaler_status.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v2beta2_horizontal_pod_autoscaler_status_TEST -#define v2beta2_horizontal_pod_autoscaler_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_horizontal_pod_autoscaler_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_horizontal_pod_autoscaler_status.h" -v2beta2_horizontal_pod_autoscaler_status_t* instantiate_v2beta2_horizontal_pod_autoscaler_status(int include_optional); - - - -v2beta2_horizontal_pod_autoscaler_status_t* instantiate_v2beta2_horizontal_pod_autoscaler_status(int include_optional) { - v2beta2_horizontal_pod_autoscaler_status_t* v2beta2_horizontal_pod_autoscaler_status = NULL; - if (include_optional) { - v2beta2_horizontal_pod_autoscaler_status = v2beta2_horizontal_pod_autoscaler_status_create( - list_createList(), - list_createList(), - 56, - 56, - "2013-10-20T19:20:30+01:00", - 56 - ); - } else { - v2beta2_horizontal_pod_autoscaler_status = v2beta2_horizontal_pod_autoscaler_status_create( - list_createList(), - list_createList(), - 56, - 56, - "2013-10-20T19:20:30+01:00", - 56 - ); - } - - return v2beta2_horizontal_pod_autoscaler_status; -} - - -#ifdef v2beta2_horizontal_pod_autoscaler_status_MAIN - -void test_v2beta2_horizontal_pod_autoscaler_status(int include_optional) { - v2beta2_horizontal_pod_autoscaler_status_t* v2beta2_horizontal_pod_autoscaler_status_1 = instantiate_v2beta2_horizontal_pod_autoscaler_status(include_optional); - - cJSON* jsonv2beta2_horizontal_pod_autoscaler_status_1 = v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_1); - printf("v2beta2_horizontal_pod_autoscaler_status :\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_status_1)); - v2beta2_horizontal_pod_autoscaler_status_t* v2beta2_horizontal_pod_autoscaler_status_2 = v2beta2_horizontal_pod_autoscaler_status_parseFromJSON(jsonv2beta2_horizontal_pod_autoscaler_status_1); - cJSON* jsonv2beta2_horizontal_pod_autoscaler_status_2 = v2beta2_horizontal_pod_autoscaler_status_convertToJSON(v2beta2_horizontal_pod_autoscaler_status_2); - printf("repeating v2beta2_horizontal_pod_autoscaler_status:\n%s\n", cJSON_Print(jsonv2beta2_horizontal_pod_autoscaler_status_2)); -} - -int main() { - test_v2beta2_horizontal_pod_autoscaler_status(1); - test_v2beta2_horizontal_pod_autoscaler_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_horizontal_pod_autoscaler_status_MAIN -#endif // v2beta2_horizontal_pod_autoscaler_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_hpa_scaling_policy.c b/kubernetes/unit-test/test_v2beta2_hpa_scaling_policy.c deleted file mode 100644 index 299c0dd..0000000 --- a/kubernetes/unit-test/test_v2beta2_hpa_scaling_policy.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_hpa_scaling_policy_TEST -#define v2beta2_hpa_scaling_policy_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_hpa_scaling_policy_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_hpa_scaling_policy.h" -v2beta2_hpa_scaling_policy_t* instantiate_v2beta2_hpa_scaling_policy(int include_optional); - - - -v2beta2_hpa_scaling_policy_t* instantiate_v2beta2_hpa_scaling_policy(int include_optional) { - v2beta2_hpa_scaling_policy_t* v2beta2_hpa_scaling_policy = NULL; - if (include_optional) { - v2beta2_hpa_scaling_policy = v2beta2_hpa_scaling_policy_create( - 56, - "0", - 56 - ); - } else { - v2beta2_hpa_scaling_policy = v2beta2_hpa_scaling_policy_create( - 56, - "0", - 56 - ); - } - - return v2beta2_hpa_scaling_policy; -} - - -#ifdef v2beta2_hpa_scaling_policy_MAIN - -void test_v2beta2_hpa_scaling_policy(int include_optional) { - v2beta2_hpa_scaling_policy_t* v2beta2_hpa_scaling_policy_1 = instantiate_v2beta2_hpa_scaling_policy(include_optional); - - cJSON* jsonv2beta2_hpa_scaling_policy_1 = v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_1); - printf("v2beta2_hpa_scaling_policy :\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_policy_1)); - v2beta2_hpa_scaling_policy_t* v2beta2_hpa_scaling_policy_2 = v2beta2_hpa_scaling_policy_parseFromJSON(jsonv2beta2_hpa_scaling_policy_1); - cJSON* jsonv2beta2_hpa_scaling_policy_2 = v2beta2_hpa_scaling_policy_convertToJSON(v2beta2_hpa_scaling_policy_2); - printf("repeating v2beta2_hpa_scaling_policy:\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_policy_2)); -} - -int main() { - test_v2beta2_hpa_scaling_policy(1); - test_v2beta2_hpa_scaling_policy(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_hpa_scaling_policy_MAIN -#endif // v2beta2_hpa_scaling_policy_TEST diff --git a/kubernetes/unit-test/test_v2beta2_hpa_scaling_rules.c b/kubernetes/unit-test/test_v2beta2_hpa_scaling_rules.c deleted file mode 100644 index 33a49cc..0000000 --- a/kubernetes/unit-test/test_v2beta2_hpa_scaling_rules.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_hpa_scaling_rules_TEST -#define v2beta2_hpa_scaling_rules_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_hpa_scaling_rules_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_hpa_scaling_rules.h" -v2beta2_hpa_scaling_rules_t* instantiate_v2beta2_hpa_scaling_rules(int include_optional); - - - -v2beta2_hpa_scaling_rules_t* instantiate_v2beta2_hpa_scaling_rules(int include_optional) { - v2beta2_hpa_scaling_rules_t* v2beta2_hpa_scaling_rules = NULL; - if (include_optional) { - v2beta2_hpa_scaling_rules = v2beta2_hpa_scaling_rules_create( - list_createList(), - "0", - 56 - ); - } else { - v2beta2_hpa_scaling_rules = v2beta2_hpa_scaling_rules_create( - list_createList(), - "0", - 56 - ); - } - - return v2beta2_hpa_scaling_rules; -} - - -#ifdef v2beta2_hpa_scaling_rules_MAIN - -void test_v2beta2_hpa_scaling_rules(int include_optional) { - v2beta2_hpa_scaling_rules_t* v2beta2_hpa_scaling_rules_1 = instantiate_v2beta2_hpa_scaling_rules(include_optional); - - cJSON* jsonv2beta2_hpa_scaling_rules_1 = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_1); - printf("v2beta2_hpa_scaling_rules :\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_rules_1)); - v2beta2_hpa_scaling_rules_t* v2beta2_hpa_scaling_rules_2 = v2beta2_hpa_scaling_rules_parseFromJSON(jsonv2beta2_hpa_scaling_rules_1); - cJSON* jsonv2beta2_hpa_scaling_rules_2 = v2beta2_hpa_scaling_rules_convertToJSON(v2beta2_hpa_scaling_rules_2); - printf("repeating v2beta2_hpa_scaling_rules:\n%s\n", cJSON_Print(jsonv2beta2_hpa_scaling_rules_2)); -} - -int main() { - test_v2beta2_hpa_scaling_rules(1); - test_v2beta2_hpa_scaling_rules(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_hpa_scaling_rules_MAIN -#endif // v2beta2_hpa_scaling_rules_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_identifier.c b/kubernetes/unit-test/test_v2beta2_metric_identifier.c deleted file mode 100644 index 61b6c40..0000000 --- a/kubernetes/unit-test/test_v2beta2_metric_identifier.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_metric_identifier_TEST -#define v2beta2_metric_identifier_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_identifier_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_identifier.h" -v2beta2_metric_identifier_t* instantiate_v2beta2_metric_identifier(int include_optional); - -#include "test_v1_label_selector.c" - - -v2beta2_metric_identifier_t* instantiate_v2beta2_metric_identifier(int include_optional) { - v2beta2_metric_identifier_t* v2beta2_metric_identifier = NULL; - if (include_optional) { - v2beta2_metric_identifier = v2beta2_metric_identifier_create( - "0", - // false, not to have infinite recursion - instantiate_v1_label_selector(0) - ); - } else { - v2beta2_metric_identifier = v2beta2_metric_identifier_create( - "0", - NULL - ); - } - - return v2beta2_metric_identifier; -} - - -#ifdef v2beta2_metric_identifier_MAIN - -void test_v2beta2_metric_identifier(int include_optional) { - v2beta2_metric_identifier_t* v2beta2_metric_identifier_1 = instantiate_v2beta2_metric_identifier(include_optional); - - cJSON* jsonv2beta2_metric_identifier_1 = v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_1); - printf("v2beta2_metric_identifier :\n%s\n", cJSON_Print(jsonv2beta2_metric_identifier_1)); - v2beta2_metric_identifier_t* v2beta2_metric_identifier_2 = v2beta2_metric_identifier_parseFromJSON(jsonv2beta2_metric_identifier_1); - cJSON* jsonv2beta2_metric_identifier_2 = v2beta2_metric_identifier_convertToJSON(v2beta2_metric_identifier_2); - printf("repeating v2beta2_metric_identifier:\n%s\n", cJSON_Print(jsonv2beta2_metric_identifier_2)); -} - -int main() { - test_v2beta2_metric_identifier(1); - test_v2beta2_metric_identifier(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_identifier_MAIN -#endif // v2beta2_metric_identifier_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_spec.c b/kubernetes/unit-test/test_v2beta2_metric_spec.c deleted file mode 100644 index 14f8bbe..0000000 --- a/kubernetes/unit-test/test_v2beta2_metric_spec.c +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef v2beta2_metric_spec_TEST -#define v2beta2_metric_spec_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_spec_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_spec.h" -v2beta2_metric_spec_t* instantiate_v2beta2_metric_spec(int include_optional); - -#include "test_v2beta2_container_resource_metric_source.c" -#include "test_v2beta2_external_metric_source.c" -#include "test_v2beta2_object_metric_source.c" -#include "test_v2beta2_pods_metric_source.c" -#include "test_v2beta2_resource_metric_source.c" - - -v2beta2_metric_spec_t* instantiate_v2beta2_metric_spec(int include_optional) { - v2beta2_metric_spec_t* v2beta2_metric_spec = NULL; - if (include_optional) { - v2beta2_metric_spec = v2beta2_metric_spec_create( - // false, not to have infinite recursion - instantiate_v2beta2_container_resource_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_external_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_object_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_pods_metric_source(0), - // false, not to have infinite recursion - instantiate_v2beta2_resource_metric_source(0), - "0" - ); - } else { - v2beta2_metric_spec = v2beta2_metric_spec_create( - NULL, - NULL, - NULL, - NULL, - NULL, - "0" - ); - } - - return v2beta2_metric_spec; -} - - -#ifdef v2beta2_metric_spec_MAIN - -void test_v2beta2_metric_spec(int include_optional) { - v2beta2_metric_spec_t* v2beta2_metric_spec_1 = instantiate_v2beta2_metric_spec(include_optional); - - cJSON* jsonv2beta2_metric_spec_1 = v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_1); - printf("v2beta2_metric_spec :\n%s\n", cJSON_Print(jsonv2beta2_metric_spec_1)); - v2beta2_metric_spec_t* v2beta2_metric_spec_2 = v2beta2_metric_spec_parseFromJSON(jsonv2beta2_metric_spec_1); - cJSON* jsonv2beta2_metric_spec_2 = v2beta2_metric_spec_convertToJSON(v2beta2_metric_spec_2); - printf("repeating v2beta2_metric_spec:\n%s\n", cJSON_Print(jsonv2beta2_metric_spec_2)); -} - -int main() { - test_v2beta2_metric_spec(1); - test_v2beta2_metric_spec(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_spec_MAIN -#endif // v2beta2_metric_spec_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_status.c b/kubernetes/unit-test/test_v2beta2_metric_status.c deleted file mode 100644 index ddee8be..0000000 --- a/kubernetes/unit-test/test_v2beta2_metric_status.c +++ /dev/null @@ -1,78 +0,0 @@ -#ifndef v2beta2_metric_status_TEST -#define v2beta2_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_status.h" -v2beta2_metric_status_t* instantiate_v2beta2_metric_status(int include_optional); - -#include "test_v2beta2_container_resource_metric_status.c" -#include "test_v2beta2_external_metric_status.c" -#include "test_v2beta2_object_metric_status.c" -#include "test_v2beta2_pods_metric_status.c" -#include "test_v2beta2_resource_metric_status.c" - - -v2beta2_metric_status_t* instantiate_v2beta2_metric_status(int include_optional) { - v2beta2_metric_status_t* v2beta2_metric_status = NULL; - if (include_optional) { - v2beta2_metric_status = v2beta2_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_container_resource_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_external_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_object_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_pods_metric_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_resource_metric_status(0), - "0" - ); - } else { - v2beta2_metric_status = v2beta2_metric_status_create( - NULL, - NULL, - NULL, - NULL, - NULL, - "0" - ); - } - - return v2beta2_metric_status; -} - - -#ifdef v2beta2_metric_status_MAIN - -void test_v2beta2_metric_status(int include_optional) { - v2beta2_metric_status_t* v2beta2_metric_status_1 = instantiate_v2beta2_metric_status(include_optional); - - cJSON* jsonv2beta2_metric_status_1 = v2beta2_metric_status_convertToJSON(v2beta2_metric_status_1); - printf("v2beta2_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_metric_status_1)); - v2beta2_metric_status_t* v2beta2_metric_status_2 = v2beta2_metric_status_parseFromJSON(jsonv2beta2_metric_status_1); - cJSON* jsonv2beta2_metric_status_2 = v2beta2_metric_status_convertToJSON(v2beta2_metric_status_2); - printf("repeating v2beta2_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_metric_status_2)); -} - -int main() { - test_v2beta2_metric_status(1); - test_v2beta2_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_status_MAIN -#endif // v2beta2_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_target.c b/kubernetes/unit-test/test_v2beta2_metric_target.c deleted file mode 100644 index 28160c6..0000000 --- a/kubernetes/unit-test/test_v2beta2_metric_target.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_metric_target_TEST -#define v2beta2_metric_target_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_target_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_target.h" -v2beta2_metric_target_t* instantiate_v2beta2_metric_target(int include_optional); - - - -v2beta2_metric_target_t* instantiate_v2beta2_metric_target(int include_optional) { - v2beta2_metric_target_t* v2beta2_metric_target = NULL; - if (include_optional) { - v2beta2_metric_target = v2beta2_metric_target_create( - 56, - "0", - "0", - "0" - ); - } else { - v2beta2_metric_target = v2beta2_metric_target_create( - 56, - "0", - "0", - "0" - ); - } - - return v2beta2_metric_target; -} - - -#ifdef v2beta2_metric_target_MAIN - -void test_v2beta2_metric_target(int include_optional) { - v2beta2_metric_target_t* v2beta2_metric_target_1 = instantiate_v2beta2_metric_target(include_optional); - - cJSON* jsonv2beta2_metric_target_1 = v2beta2_metric_target_convertToJSON(v2beta2_metric_target_1); - printf("v2beta2_metric_target :\n%s\n", cJSON_Print(jsonv2beta2_metric_target_1)); - v2beta2_metric_target_t* v2beta2_metric_target_2 = v2beta2_metric_target_parseFromJSON(jsonv2beta2_metric_target_1); - cJSON* jsonv2beta2_metric_target_2 = v2beta2_metric_target_convertToJSON(v2beta2_metric_target_2); - printf("repeating v2beta2_metric_target:\n%s\n", cJSON_Print(jsonv2beta2_metric_target_2)); -} - -int main() { - test_v2beta2_metric_target(1); - test_v2beta2_metric_target(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_target_MAIN -#endif // v2beta2_metric_target_TEST diff --git a/kubernetes/unit-test/test_v2beta2_metric_value_status.c b/kubernetes/unit-test/test_v2beta2_metric_value_status.c deleted file mode 100644 index 07a5907..0000000 --- a/kubernetes/unit-test/test_v2beta2_metric_value_status.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_metric_value_status_TEST -#define v2beta2_metric_value_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_metric_value_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_metric_value_status.h" -v2beta2_metric_value_status_t* instantiate_v2beta2_metric_value_status(int include_optional); - - - -v2beta2_metric_value_status_t* instantiate_v2beta2_metric_value_status(int include_optional) { - v2beta2_metric_value_status_t* v2beta2_metric_value_status = NULL; - if (include_optional) { - v2beta2_metric_value_status = v2beta2_metric_value_status_create( - 56, - "0", - "0" - ); - } else { - v2beta2_metric_value_status = v2beta2_metric_value_status_create( - 56, - "0", - "0" - ); - } - - return v2beta2_metric_value_status; -} - - -#ifdef v2beta2_metric_value_status_MAIN - -void test_v2beta2_metric_value_status(int include_optional) { - v2beta2_metric_value_status_t* v2beta2_metric_value_status_1 = instantiate_v2beta2_metric_value_status(include_optional); - - cJSON* jsonv2beta2_metric_value_status_1 = v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_1); - printf("v2beta2_metric_value_status :\n%s\n", cJSON_Print(jsonv2beta2_metric_value_status_1)); - v2beta2_metric_value_status_t* v2beta2_metric_value_status_2 = v2beta2_metric_value_status_parseFromJSON(jsonv2beta2_metric_value_status_1); - cJSON* jsonv2beta2_metric_value_status_2 = v2beta2_metric_value_status_convertToJSON(v2beta2_metric_value_status_2); - printf("repeating v2beta2_metric_value_status:\n%s\n", cJSON_Print(jsonv2beta2_metric_value_status_2)); -} - -int main() { - test_v2beta2_metric_value_status(1); - test_v2beta2_metric_value_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_metric_value_status_MAIN -#endif // v2beta2_metric_value_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_object_metric_source.c b/kubernetes/unit-test/test_v2beta2_object_metric_source.c deleted file mode 100644 index fdc0034..0000000 --- a/kubernetes/unit-test/test_v2beta2_object_metric_source.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v2beta2_object_metric_source_TEST -#define v2beta2_object_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_object_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_object_metric_source.h" -v2beta2_object_metric_source_t* instantiate_v2beta2_object_metric_source(int include_optional); - -#include "test_v2beta2_cross_version_object_reference.c" -#include "test_v2beta2_metric_identifier.c" -#include "test_v2beta2_metric_target.c" - - -v2beta2_object_metric_source_t* instantiate_v2beta2_object_metric_source(int include_optional) { - v2beta2_object_metric_source_t* v2beta2_object_metric_source = NULL; - if (include_optional) { - v2beta2_object_metric_source = v2beta2_object_metric_source_create( - // false, not to have infinite recursion - instantiate_v2beta2_cross_version_object_reference(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_object_metric_source = v2beta2_object_metric_source_create( - NULL, - NULL, - NULL - ); - } - - return v2beta2_object_metric_source; -} - - -#ifdef v2beta2_object_metric_source_MAIN - -void test_v2beta2_object_metric_source(int include_optional) { - v2beta2_object_metric_source_t* v2beta2_object_metric_source_1 = instantiate_v2beta2_object_metric_source(include_optional); - - cJSON* jsonv2beta2_object_metric_source_1 = v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_1); - printf("v2beta2_object_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_object_metric_source_1)); - v2beta2_object_metric_source_t* v2beta2_object_metric_source_2 = v2beta2_object_metric_source_parseFromJSON(jsonv2beta2_object_metric_source_1); - cJSON* jsonv2beta2_object_metric_source_2 = v2beta2_object_metric_source_convertToJSON(v2beta2_object_metric_source_2); - printf("repeating v2beta2_object_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_object_metric_source_2)); -} - -int main() { - test_v2beta2_object_metric_source(1); - test_v2beta2_object_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_object_metric_source_MAIN -#endif // v2beta2_object_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_object_metric_status.c b/kubernetes/unit-test/test_v2beta2_object_metric_status.c deleted file mode 100644 index 1bd791c..0000000 --- a/kubernetes/unit-test/test_v2beta2_object_metric_status.c +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef v2beta2_object_metric_status_TEST -#define v2beta2_object_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_object_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_object_metric_status.h" -v2beta2_object_metric_status_t* instantiate_v2beta2_object_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" -#include "test_v2beta2_cross_version_object_reference.c" -#include "test_v2beta2_metric_identifier.c" - - -v2beta2_object_metric_status_t* instantiate_v2beta2_object_metric_status(int include_optional) { - v2beta2_object_metric_status_t* v2beta2_object_metric_status = NULL; - if (include_optional) { - v2beta2_object_metric_status = v2beta2_object_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_cross_version_object_reference(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0) - ); - } else { - v2beta2_object_metric_status = v2beta2_object_metric_status_create( - NULL, - NULL, - NULL - ); - } - - return v2beta2_object_metric_status; -} - - -#ifdef v2beta2_object_metric_status_MAIN - -void test_v2beta2_object_metric_status(int include_optional) { - v2beta2_object_metric_status_t* v2beta2_object_metric_status_1 = instantiate_v2beta2_object_metric_status(include_optional); - - cJSON* jsonv2beta2_object_metric_status_1 = v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_1); - printf("v2beta2_object_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_object_metric_status_1)); - v2beta2_object_metric_status_t* v2beta2_object_metric_status_2 = v2beta2_object_metric_status_parseFromJSON(jsonv2beta2_object_metric_status_1); - cJSON* jsonv2beta2_object_metric_status_2 = v2beta2_object_metric_status_convertToJSON(v2beta2_object_metric_status_2); - printf("repeating v2beta2_object_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_object_metric_status_2)); -} - -int main() { - test_v2beta2_object_metric_status(1); - test_v2beta2_object_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_object_metric_status_MAIN -#endif // v2beta2_object_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_pods_metric_source.c b/kubernetes/unit-test/test_v2beta2_pods_metric_source.c deleted file mode 100644 index 049ca67..0000000 --- a/kubernetes/unit-test/test_v2beta2_pods_metric_source.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_pods_metric_source_TEST -#define v2beta2_pods_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_pods_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_pods_metric_source.h" -v2beta2_pods_metric_source_t* instantiate_v2beta2_pods_metric_source(int include_optional); - -#include "test_v2beta2_metric_identifier.c" -#include "test_v2beta2_metric_target.c" - - -v2beta2_pods_metric_source_t* instantiate_v2beta2_pods_metric_source(int include_optional) { - v2beta2_pods_metric_source_t* v2beta2_pods_metric_source = NULL; - if (include_optional) { - v2beta2_pods_metric_source = v2beta2_pods_metric_source_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_pods_metric_source = v2beta2_pods_metric_source_create( - NULL, - NULL - ); - } - - return v2beta2_pods_metric_source; -} - - -#ifdef v2beta2_pods_metric_source_MAIN - -void test_v2beta2_pods_metric_source(int include_optional) { - v2beta2_pods_metric_source_t* v2beta2_pods_metric_source_1 = instantiate_v2beta2_pods_metric_source(include_optional); - - cJSON* jsonv2beta2_pods_metric_source_1 = v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_1); - printf("v2beta2_pods_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_source_1)); - v2beta2_pods_metric_source_t* v2beta2_pods_metric_source_2 = v2beta2_pods_metric_source_parseFromJSON(jsonv2beta2_pods_metric_source_1); - cJSON* jsonv2beta2_pods_metric_source_2 = v2beta2_pods_metric_source_convertToJSON(v2beta2_pods_metric_source_2); - printf("repeating v2beta2_pods_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_source_2)); -} - -int main() { - test_v2beta2_pods_metric_source(1); - test_v2beta2_pods_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_pods_metric_source_MAIN -#endif // v2beta2_pods_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_pods_metric_status.c b/kubernetes/unit-test/test_v2beta2_pods_metric_status.c deleted file mode 100644 index e401734..0000000 --- a/kubernetes/unit-test/test_v2beta2_pods_metric_status.c +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef v2beta2_pods_metric_status_TEST -#define v2beta2_pods_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_pods_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_pods_metric_status.h" -v2beta2_pods_metric_status_t* instantiate_v2beta2_pods_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" -#include "test_v2beta2_metric_identifier.c" - - -v2beta2_pods_metric_status_t* instantiate_v2beta2_pods_metric_status(int include_optional) { - v2beta2_pods_metric_status_t* v2beta2_pods_metric_status = NULL; - if (include_optional) { - v2beta2_pods_metric_status = v2beta2_pods_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - // false, not to have infinite recursion - instantiate_v2beta2_metric_identifier(0) - ); - } else { - v2beta2_pods_metric_status = v2beta2_pods_metric_status_create( - NULL, - NULL - ); - } - - return v2beta2_pods_metric_status; -} - - -#ifdef v2beta2_pods_metric_status_MAIN - -void test_v2beta2_pods_metric_status(int include_optional) { - v2beta2_pods_metric_status_t* v2beta2_pods_metric_status_1 = instantiate_v2beta2_pods_metric_status(include_optional); - - cJSON* jsonv2beta2_pods_metric_status_1 = v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_1); - printf("v2beta2_pods_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_status_1)); - v2beta2_pods_metric_status_t* v2beta2_pods_metric_status_2 = v2beta2_pods_metric_status_parseFromJSON(jsonv2beta2_pods_metric_status_1); - cJSON* jsonv2beta2_pods_metric_status_2 = v2beta2_pods_metric_status_convertToJSON(v2beta2_pods_metric_status_2); - printf("repeating v2beta2_pods_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_pods_metric_status_2)); -} - -int main() { - test_v2beta2_pods_metric_status(1); - test_v2beta2_pods_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_pods_metric_status_MAIN -#endif // v2beta2_pods_metric_status_TEST diff --git a/kubernetes/unit-test/test_v2beta2_resource_metric_source.c b/kubernetes/unit-test/test_v2beta2_resource_metric_source.c deleted file mode 100644 index f5d1325..0000000 --- a/kubernetes/unit-test/test_v2beta2_resource_metric_source.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_resource_metric_source_TEST -#define v2beta2_resource_metric_source_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_resource_metric_source_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_resource_metric_source.h" -v2beta2_resource_metric_source_t* instantiate_v2beta2_resource_metric_source(int include_optional); - -#include "test_v2beta2_metric_target.c" - - -v2beta2_resource_metric_source_t* instantiate_v2beta2_resource_metric_source(int include_optional) { - v2beta2_resource_metric_source_t* v2beta2_resource_metric_source = NULL; - if (include_optional) { - v2beta2_resource_metric_source = v2beta2_resource_metric_source_create( - "0", - // false, not to have infinite recursion - instantiate_v2beta2_metric_target(0) - ); - } else { - v2beta2_resource_metric_source = v2beta2_resource_metric_source_create( - "0", - NULL - ); - } - - return v2beta2_resource_metric_source; -} - - -#ifdef v2beta2_resource_metric_source_MAIN - -void test_v2beta2_resource_metric_source(int include_optional) { - v2beta2_resource_metric_source_t* v2beta2_resource_metric_source_1 = instantiate_v2beta2_resource_metric_source(include_optional); - - cJSON* jsonv2beta2_resource_metric_source_1 = v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_1); - printf("v2beta2_resource_metric_source :\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_source_1)); - v2beta2_resource_metric_source_t* v2beta2_resource_metric_source_2 = v2beta2_resource_metric_source_parseFromJSON(jsonv2beta2_resource_metric_source_1); - cJSON* jsonv2beta2_resource_metric_source_2 = v2beta2_resource_metric_source_convertToJSON(v2beta2_resource_metric_source_2); - printf("repeating v2beta2_resource_metric_source:\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_source_2)); -} - -int main() { - test_v2beta2_resource_metric_source(1); - test_v2beta2_resource_metric_source(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_resource_metric_source_MAIN -#endif // v2beta2_resource_metric_source_TEST diff --git a/kubernetes/unit-test/test_v2beta2_resource_metric_status.c b/kubernetes/unit-test/test_v2beta2_resource_metric_status.c deleted file mode 100644 index c6b3ebe..0000000 --- a/kubernetes/unit-test/test_v2beta2_resource_metric_status.c +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef v2beta2_resource_metric_status_TEST -#define v2beta2_resource_metric_status_TEST - -// the following is to include only the main from the first c file -#ifndef TEST_MAIN -#define TEST_MAIN -#define v2beta2_resource_metric_status_MAIN -#endif // TEST_MAIN - -#include -#include -#include -#include -#include "../external/cJSON.h" - -#include "../model/v2beta2_resource_metric_status.h" -v2beta2_resource_metric_status_t* instantiate_v2beta2_resource_metric_status(int include_optional); - -#include "test_v2beta2_metric_value_status.c" - - -v2beta2_resource_metric_status_t* instantiate_v2beta2_resource_metric_status(int include_optional) { - v2beta2_resource_metric_status_t* v2beta2_resource_metric_status = NULL; - if (include_optional) { - v2beta2_resource_metric_status = v2beta2_resource_metric_status_create( - // false, not to have infinite recursion - instantiate_v2beta2_metric_value_status(0), - "0" - ); - } else { - v2beta2_resource_metric_status = v2beta2_resource_metric_status_create( - NULL, - "0" - ); - } - - return v2beta2_resource_metric_status; -} - - -#ifdef v2beta2_resource_metric_status_MAIN - -void test_v2beta2_resource_metric_status(int include_optional) { - v2beta2_resource_metric_status_t* v2beta2_resource_metric_status_1 = instantiate_v2beta2_resource_metric_status(include_optional); - - cJSON* jsonv2beta2_resource_metric_status_1 = v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_1); - printf("v2beta2_resource_metric_status :\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_status_1)); - v2beta2_resource_metric_status_t* v2beta2_resource_metric_status_2 = v2beta2_resource_metric_status_parseFromJSON(jsonv2beta2_resource_metric_status_1); - cJSON* jsonv2beta2_resource_metric_status_2 = v2beta2_resource_metric_status_convertToJSON(v2beta2_resource_metric_status_2); - printf("repeating v2beta2_resource_metric_status:\n%s\n", cJSON_Print(jsonv2beta2_resource_metric_status_2)); -} - -int main() { - test_v2beta2_resource_metric_status(1); - test_v2beta2_resource_metric_status(0); - - printf("Hello world \n"); - return 0; -} - -#endif // v2beta2_resource_metric_status_MAIN -#endif // v2beta2_resource_metric_status_TEST diff --git a/settings b/settings index ee1e01a..419c8b1 100644 --- a/settings +++ b/settings @@ -1,8 +1,8 @@ # Kubernetes branch/tag to get the OpenAPI spec from. -export KUBERNETES_BRANCH="release-1.25" +export KUBERNETES_BRANCH="release-1.26" # client version is not currently used by the code generator. -export CLIENT_VERSION="0.5.0" +export CLIENT_VERSION="0.6.0" # Name of the release package export PACKAGE_NAME="client"