kruby 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +1722 -0
- data/lib/kruby.rb +3 -0
- data/lib/kubernetes/api/admissionregistration_api.rb +77 -0
- data/lib/kubernetes/api/admissionregistration_v1_api.rb +2576 -0
- data/lib/kubernetes/api/admissionregistration_v1alpha1_api.rb +1213 -0
- data/lib/kubernetes/api/admissionregistration_v1beta1_api.rb +1213 -0
- data/lib/kubernetes/api/apiextensions_api.rb +77 -0
- data/lib/kubernetes/api/apiextensions_v1_api.rb +872 -0
- data/lib/kubernetes/api/apiregistration_api.rb +77 -0
- data/lib/kubernetes/api/apiregistration_v1_api.rb +872 -0
- data/lib/kubernetes/api/apis_api.rb +77 -0
- data/lib/kubernetes/api/apps_api.rb +77 -0
- data/lib/kubernetes/api/apps_v1_api.rb +5282 -0
- data/lib/kubernetes/api/authentication_api.rb +77 -0
- data/lib/kubernetes/api/authentication_v1_api.rb +223 -0
- data/lib/kubernetes/api/authorization_api.rb +77 -0
- data/lib/kubernetes/api/authorization_v1_api.rb +375 -0
- data/lib/kubernetes/api/autoscaling_api.rb +77 -0
- data/lib/kubernetes/api/autoscaling_v1_api.rb +1020 -0
- data/lib/kubernetes/api/autoscaling_v2_api.rb +1020 -0
- data/lib/kubernetes/api/batch_api.rb +77 -0
- data/lib/kubernetes/api/batch_v1_api.rb +1963 -0
- data/lib/kubernetes/api/certificates_api.rb +77 -0
- data/lib/kubernetes/api/certificates_v1_api.rb +1099 -0
- data/lib/kubernetes/api/certificates_v1alpha1_api.rb +645 -0
- data/lib/kubernetes/api/certificates_v1beta1_api.rb +1588 -0
- data/lib/kubernetes/api/coordination_api.rb +77 -0
- data/lib/kubernetes/api/coordination_v1_api.rb +775 -0
- data/lib/kubernetes/api/coordination_v1alpha2_api.rb +775 -0
- data/lib/kubernetes/api/coordination_v1beta1_api.rb +775 -0
- data/lib/kubernetes/api/core_api.rb +77 -0
- data/lib/kubernetes/api/core_v1_api.rb +16817 -0
- data/lib/kubernetes/api/custom_objects_api.rb +2665 -0
- data/lib/kubernetes/api/discovery_api.rb +77 -0
- data/lib/kubernetes/api/discovery_v1_api.rb +775 -0
- data/lib/kubernetes/api/events_api.rb +77 -0
- data/lib/kubernetes/api/events_v1_api.rb +775 -0
- data/lib/kubernetes/api/flowcontrol_apiserver_api.rb +77 -0
- data/lib/kubernetes/api/flowcontrol_apiserver_v1_api.rb +1667 -0
- data/lib/kubernetes/api/internal_apiserver_api.rb +77 -0
- data/lib/kubernetes/api/internal_apiserver_v1alpha1_api.rb +872 -0
- data/lib/kubernetes/api/logs_api.rb +130 -0
- data/lib/kubernetes/api/networking_api.rb +77 -0
- data/lib/kubernetes/api/networking_v1_api.rb +3649 -0
- data/lib/kubernetes/api/networking_v1beta1_api.rb +1440 -0
- data/lib/kubernetes/api/node_api.rb +77 -0
- data/lib/kubernetes/api/node_v1_api.rb +645 -0
- data/lib/kubernetes/api/openid_api.rb +77 -0
- data/lib/kubernetes/api/policy_api.rb +77 -0
- data/lib/kubernetes/api/policy_v1_api.rb +1020 -0
- data/lib/kubernetes/api/rbac_authorization_api.rb +77 -0
- data/lib/kubernetes/api/rbac_authorization_v1_api.rb +2609 -0
- data/lib/kubernetes/api/resource_api.rb +77 -0
- data/lib/kubernetes/api/resource_v1_api.rb +2854 -0
- data/lib/kubernetes/api/resource_v1alpha3_api.rb +872 -0
- data/lib/kubernetes/api/resource_v1beta1_api.rb +2854 -0
- data/lib/kubernetes/api/resource_v1beta2_api.rb +2854 -0
- data/lib/kubernetes/api/scheduling_api.rb +77 -0
- data/lib/kubernetes/api/scheduling_v1_api.rb +645 -0
- data/lib/kubernetes/api/scheduling_v1alpha1_api.rb +775 -0
- data/lib/kubernetes/api/storage_api.rb +77 -0
- data/lib/kubernetes/api/storage_v1_api.rb +3842 -0
- data/lib/kubernetes/api/storage_v1beta1_api.rb +645 -0
- data/lib/kubernetes/api/storagemigration_api.rb +77 -0
- data/lib/kubernetes/api/storagemigration_v1beta1_api.rb +872 -0
- data/lib/kubernetes/api/version_api.rb +77 -0
- data/lib/kubernetes/api/well_known_api.rb +77 -0
- data/lib/kubernetes/api_client.rb +390 -0
- data/lib/kubernetes/api_error.rb +57 -0
- data/lib/kubernetes/config/error.rb +17 -0
- data/lib/kubernetes/config/incluster_config.rb +106 -0
- data/lib/kubernetes/config/kube_config.rb +171 -0
- data/lib/kubernetes/configuration.rb +277 -0
- data/lib/kubernetes/loader.rb +4 -0
- data/lib/kubernetes/models/admissionregistration_v1_service_reference.rb +260 -0
- data/lib/kubernetes/models/admissionregistration_v1_webhook_client_config.rb +256 -0
- data/lib/kubernetes/models/apiextensions_v1_service_reference.rb +260 -0
- data/lib/kubernetes/models/apiextensions_v1_webhook_client_config.rb +256 -0
- data/lib/kubernetes/models/apiregistration_v1_service_reference.rb +240 -0
- data/lib/kubernetes/models/authentication_v1_token_request.rb +262 -0
- data/lib/kubernetes/models/core_v1_endpoint_port.rb +255 -0
- data/lib/kubernetes/models/core_v1_event.rb +385 -0
- data/lib/kubernetes/models/core_v1_event_list.rb +256 -0
- data/lib/kubernetes/models/core_v1_event_series.rb +230 -0
- data/lib/kubernetes/models/core_v1_resource_claim.rb +235 -0
- data/lib/kubernetes/models/discovery_v1_endpoint_port.rb +250 -0
- data/lib/kubernetes/models/events_v1_event.rb +380 -0
- data/lib/kubernetes/models/events_v1_event_list.rb +256 -0
- data/lib/kubernetes/models/events_v1_event_series.rb +240 -0
- data/lib/kubernetes/models/flowcontrol_v1_subject.rb +252 -0
- data/lib/kubernetes/models/rbac_v1_subject.rb +260 -0
- data/lib/kubernetes/models/resource_v1_resource_claim.rb +262 -0
- data/lib/kubernetes/models/storage_v1_token_request.rb +235 -0
- data/lib/kubernetes/models/v1_affinity.rb +237 -0
- data/lib/kubernetes/models/v1_aggregation_rule.rb +222 -0
- data/lib/kubernetes/models/v1_allocated_device_status.rb +296 -0
- data/lib/kubernetes/models/v1_allocation_result.rb +238 -0
- data/lib/kubernetes/models/v1_api_group.rb +283 -0
- data/lib/kubernetes/models/v1_api_group_list.rb +247 -0
- data/lib/kubernetes/models/v1_api_resource.rb +341 -0
- data/lib/kubernetes/models/v1_api_resource_list.rb +262 -0
- data/lib/kubernetes/models/v1_api_service.rb +257 -0
- data/lib/kubernetes/models/v1_api_service_condition.rb +270 -0
- data/lib/kubernetes/models/v1_api_service_list.rb +256 -0
- data/lib/kubernetes/models/v1_api_service_spec.rb +306 -0
- data/lib/kubernetes/models/v1_api_service_status.rb +222 -0
- data/lib/kubernetes/models/v1_api_versions.rb +264 -0
- data/lib/kubernetes/models/v1_app_armor_profile.rb +235 -0
- data/lib/kubernetes/models/v1_attached_volume.rb +240 -0
- data/lib/kubernetes/models/v1_audit_annotation.rb +240 -0
- data/lib/kubernetes/models/v1_aws_elastic_block_store_volume_source.rb +255 -0
- data/lib/kubernetes/models/v1_azure_disk_volume_source.rb +280 -0
- data/lib/kubernetes/models/v1_azure_file_persistent_volume_source.rb +260 -0
- data/lib/kubernetes/models/v1_azure_file_volume_source.rb +250 -0
- data/lib/kubernetes/models/v1_binding.rb +253 -0
- data/lib/kubernetes/models/v1_bound_object_reference.rb +250 -0
- data/lib/kubernetes/models/v1_capabilities.rb +234 -0
- data/lib/kubernetes/models/v1_capacity_request_policy.rb +241 -0
- data/lib/kubernetes/models/v1_capacity_request_policy_range.rb +245 -0
- data/lib/kubernetes/models/v1_capacity_requirements.rb +222 -0
- data/lib/kubernetes/models/v1_cel_device_selector.rb +225 -0
- data/lib/kubernetes/models/v1_ceph_fs_persistent_volume_source.rb +276 -0
- data/lib/kubernetes/models/v1_ceph_fs_volume_source.rb +276 -0
- data/lib/kubernetes/models/v1_certificate_signing_request.rb +262 -0
- data/lib/kubernetes/models/v1_certificate_signing_request_condition.rb +280 -0
- data/lib/kubernetes/models/v1_certificate_signing_request_list.rb +256 -0
- data/lib/kubernetes/models/v1_certificate_signing_request_spec.rb +327 -0
- data/lib/kubernetes/models/v1_certificate_signing_request_status.rb +249 -0
- data/lib/kubernetes/models/v1_cinder_persistent_volume_source.rb +254 -0
- data/lib/kubernetes/models/v1_cinder_volume_source.rb +254 -0
- data/lib/kubernetes/models/v1_client_ip_config.rb +220 -0
- data/lib/kubernetes/models/v1_cluster_role.rb +260 -0
- data/lib/kubernetes/models/v1_cluster_role_binding.rb +265 -0
- data/lib/kubernetes/models/v1_cluster_role_binding_list.rb +256 -0
- data/lib/kubernetes/models/v1_cluster_role_list.rb +256 -0
- data/lib/kubernetes/models/v1_cluster_trust_bundle_projection.rb +264 -0
- data/lib/kubernetes/models/v1_component_condition.rb +260 -0
- data/lib/kubernetes/models/v1_component_status.rb +251 -0
- data/lib/kubernetes/models/v1_component_status_list.rb +256 -0
- data/lib/kubernetes/models/v1_condition.rb +295 -0
- data/lib/kubernetes/models/v1_config_map.rb +273 -0
- data/lib/kubernetes/models/v1_config_map_env_source.rb +230 -0
- data/lib/kubernetes/models/v1_config_map_key_selector.rb +245 -0
- data/lib/kubernetes/models/v1_config_map_list.rb +256 -0
- data/lib/kubernetes/models/v1_config_map_node_config_source.rb +275 -0
- data/lib/kubernetes/models/v1_config_map_projection.rb +242 -0
- data/lib/kubernetes/models/v1_config_map_volume_source.rb +252 -0
- data/lib/kubernetes/models/v1_container.rb +477 -0
- data/lib/kubernetes/models/v1_container_extended_resource_request.rb +255 -0
- data/lib/kubernetes/models/v1_container_image.rb +232 -0
- data/lib/kubernetes/models/v1_container_port.rb +265 -0
- data/lib/kubernetes/models/v1_container_resize_policy.rb +240 -0
- data/lib/kubernetes/models/v1_container_restart_rule.rb +234 -0
- data/lib/kubernetes/models/v1_container_restart_rule_on_exit_codes.rb +237 -0
- data/lib/kubernetes/models/v1_container_state.rb +237 -0
- data/lib/kubernetes/models/v1_container_state_running.rb +220 -0
- data/lib/kubernetes/models/v1_container_state_terminated.rb +285 -0
- data/lib/kubernetes/models/v1_container_state_waiting.rb +230 -0
- data/lib/kubernetes/models/v1_container_status.rb +387 -0
- data/lib/kubernetes/models/v1_container_user.rb +219 -0
- data/lib/kubernetes/models/v1_controller_revision.rb +264 -0
- data/lib/kubernetes/models/v1_controller_revision_list.rb +256 -0
- data/lib/kubernetes/models/v1_counter.rb +225 -0
- data/lib/kubernetes/models/v1_counter_set.rb +242 -0
- data/lib/kubernetes/models/v1_cron_job.rb +257 -0
- data/lib/kubernetes/models/v1_cron_job_list.rb +256 -0
- data/lib/kubernetes/models/v1_cron_job_spec.rb +299 -0
- data/lib/kubernetes/models/v1_cron_job_status.rb +242 -0
- data/lib/kubernetes/models/v1_cross_version_object_reference.rb +250 -0
- data/lib/kubernetes/models/v1_csi_driver.rb +253 -0
- data/lib/kubernetes/models/v1_csi_driver_list.rb +256 -0
- data/lib/kubernetes/models/v1_csi_driver_spec.rb +314 -0
- data/lib/kubernetes/models/v1_csi_node.rb +253 -0
- data/lib/kubernetes/models/v1_csi_node_driver.rb +261 -0
- data/lib/kubernetes/models/v1_csi_node_list.rb +256 -0
- data/lib/kubernetes/models/v1_csi_node_spec.rb +227 -0
- data/lib/kubernetes/models/v1_csi_persistent_volume_source.rb +317 -0
- data/lib/kubernetes/models/v1_csi_storage_capacity.rb +283 -0
- data/lib/kubernetes/models/v1_csi_storage_capacity_list.rb +256 -0
- data/lib/kubernetes/models/v1_csi_volume_source.rb +266 -0
- data/lib/kubernetes/models/v1_custom_resource_column_definition.rb +285 -0
- data/lib/kubernetes/models/v1_custom_resource_conversion.rb +234 -0
- data/lib/kubernetes/models/v1_custom_resource_definition.rb +262 -0
- data/lib/kubernetes/models/v1_custom_resource_definition_condition.rb +280 -0
- data/lib/kubernetes/models/v1_custom_resource_definition_list.rb +256 -0
- data/lib/kubernetes/models/v1_custom_resource_definition_names.rb +284 -0
- data/lib/kubernetes/models/v1_custom_resource_definition_spec.rb +290 -0
- data/lib/kubernetes/models/v1_custom_resource_definition_status.rb +253 -0
- data/lib/kubernetes/models/v1_custom_resource_definition_version.rb +317 -0
- data/lib/kubernetes/models/v1_custom_resource_subresource_scale.rb +250 -0
- data/lib/kubernetes/models/v1_custom_resource_subresources.rb +229 -0
- data/lib/kubernetes/models/v1_custom_resource_validation.rb +219 -0
- data/lib/kubernetes/models/v1_daemon_endpoint.rb +225 -0
- data/lib/kubernetes/models/v1_daemon_set.rb +257 -0
- data/lib/kubernetes/models/v1_daemon_set_condition.rb +270 -0
- data/lib/kubernetes/models/v1_daemon_set_list.rb +256 -0
- data/lib/kubernetes/models/v1_daemon_set_spec.rb +267 -0
- data/lib/kubernetes/models/v1_daemon_set_status.rb +332 -0
- data/lib/kubernetes/models/v1_daemon_set_update_strategy.rb +229 -0
- data/lib/kubernetes/models/v1_delete_options.rb +291 -0
- data/lib/kubernetes/models/v1_deployment.rb +257 -0
- data/lib/kubernetes/models/v1_deployment_condition.rb +280 -0
- data/lib/kubernetes/models/v1_deployment_list.rb +256 -0
- data/lib/kubernetes/models/v1_deployment_spec.rb +297 -0
- data/lib/kubernetes/models/v1_deployment_status.rb +302 -0
- data/lib/kubernetes/models/v1_deployment_strategy.rb +229 -0
- data/lib/kubernetes/models/v1_device.rb +346 -0
- data/lib/kubernetes/models/v1_device_allocation_configuration.rb +246 -0
- data/lib/kubernetes/models/v1_device_allocation_result.rb +234 -0
- data/lib/kubernetes/models/v1_device_attribute.rb +250 -0
- data/lib/kubernetes/models/v1_device_capacity.rb +234 -0
- data/lib/kubernetes/models/v1_device_claim.rb +246 -0
- data/lib/kubernetes/models/v1_device_claim_configuration.rb +231 -0
- data/lib/kubernetes/models/v1_device_class.rb +253 -0
- data/lib/kubernetes/models/v1_device_class_configuration.rb +219 -0
- data/lib/kubernetes/models/v1_device_class_list.rb +256 -0
- data/lib/kubernetes/models/v1_device_class_spec.rb +244 -0
- data/lib/kubernetes/models/v1_device_constraint.rb +242 -0
- data/lib/kubernetes/models/v1_device_counter_consumption.rb +242 -0
- data/lib/kubernetes/models/v1_device_request.rb +246 -0
- data/lib/kubernetes/models/v1_device_request_allocation_result.rb +338 -0
- data/lib/kubernetes/models/v1_device_selector.rb +219 -0
- data/lib/kubernetes/models/v1_device_sub_request.rb +293 -0
- data/lib/kubernetes/models/v1_device_taint.rb +260 -0
- data/lib/kubernetes/models/v1_device_toleration.rb +260 -0
- data/lib/kubernetes/models/v1_downward_api_projection.rb +222 -0
- data/lib/kubernetes/models/v1_downward_api_volume_file.rb +253 -0
- data/lib/kubernetes/models/v1_downward_api_volume_source.rb +232 -0
- data/lib/kubernetes/models/v1_empty_dir_volume_source.rb +230 -0
- data/lib/kubernetes/models/v1_endpoint.rb +296 -0
- data/lib/kubernetes/models/v1_endpoint_address.rb +254 -0
- data/lib/kubernetes/models/v1_endpoint_conditions.rb +240 -0
- data/lib/kubernetes/models/v1_endpoint_hints.rb +234 -0
- data/lib/kubernetes/models/v1_endpoint_slice.rb +283 -0
- data/lib/kubernetes/models/v1_endpoint_slice_list.rb +256 -0
- data/lib/kubernetes/models/v1_endpoint_subset.rb +246 -0
- data/lib/kubernetes/models/v1_endpoints.rb +251 -0
- data/lib/kubernetes/models/v1_endpoints_list.rb +256 -0
- data/lib/kubernetes/models/v1_env_from_source.rb +238 -0
- data/lib/kubernetes/models/v1_env_var.rb +244 -0
- data/lib/kubernetes/models/v1_env_var_source.rb +255 -0
- data/lib/kubernetes/models/v1_ephemeral_container.rb +487 -0
- data/lib/kubernetes/models/v1_ephemeral_volume_source.rb +219 -0
- data/lib/kubernetes/models/v1_event_source.rb +230 -0
- data/lib/kubernetes/models/v1_eviction.rb +248 -0
- data/lib/kubernetes/models/v1_exact_device_request.rb +288 -0
- data/lib/kubernetes/models/v1_exec_action.rb +222 -0
- data/lib/kubernetes/models/v1_exempt_priority_level_configuration.rb +230 -0
- data/lib/kubernetes/models/v1_expression_warning.rb +240 -0
- data/lib/kubernetes/models/v1_external_documentation.rb +228 -0
- data/lib/kubernetes/models/v1_fc_volume_source.rb +264 -0
- data/lib/kubernetes/models/v1_field_selector_attributes.rb +232 -0
- data/lib/kubernetes/models/v1_field_selector_requirement.rb +252 -0
- data/lib/kubernetes/models/v1_file_key_selector.rb +265 -0
- data/lib/kubernetes/models/v1_flex_persistent_volume_source.rb +266 -0
- data/lib/kubernetes/models/v1_flex_volume_source.rb +266 -0
- data/lib/kubernetes/models/v1_flocker_volume_source.rb +230 -0
- data/lib/kubernetes/models/v1_flow_distinguisher_method.rb +225 -0
- data/lib/kubernetes/models/v1_flow_schema.rb +257 -0
- data/lib/kubernetes/models/v1_flow_schema_condition.rb +260 -0
- data/lib/kubernetes/models/v1_flow_schema_list.rb +256 -0
- data/lib/kubernetes/models/v1_flow_schema_spec.rb +255 -0
- data/lib/kubernetes/models/v1_flow_schema_status.rb +222 -0
- data/lib/kubernetes/models/v1_for_node.rb +225 -0
- data/lib/kubernetes/models/v1_for_zone.rb +225 -0
- data/lib/kubernetes/models/v1_gce_persistent_disk_volume_source.rb +255 -0
- data/lib/kubernetes/models/v1_git_repo_volume_source.rb +245 -0
- data/lib/kubernetes/models/v1_glusterfs_persistent_volume_source.rb +260 -0
- data/lib/kubernetes/models/v1_glusterfs_volume_source.rb +250 -0
- data/lib/kubernetes/models/v1_group_resource.rb +238 -0
- data/lib/kubernetes/models/v1_group_subject.rb +225 -0
- data/lib/kubernetes/models/v1_group_version_for_discovery.rb +240 -0
- data/lib/kubernetes/models/v1_grpc_action.rb +235 -0
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler.rb +257 -0
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_list.rb +256 -0
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_spec.rb +259 -0
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_status.rb +270 -0
- data/lib/kubernetes/models/v1_host_alias.rb +237 -0
- data/lib/kubernetes/models/v1_host_ip.rb +225 -0
- data/lib/kubernetes/models/v1_host_path_volume_source.rb +235 -0
- data/lib/kubernetes/models/v1_http_get_action.rb +267 -0
- data/lib/kubernetes/models/v1_http_header.rb +240 -0
- data/lib/kubernetes/models/v1_http_ingress_path.rb +249 -0
- data/lib/kubernetes/models/v1_http_ingress_rule_value.rb +227 -0
- data/lib/kubernetes/models/v1_image_volume_source.rb +230 -0
- data/lib/kubernetes/models/v1_ingress.rb +257 -0
- data/lib/kubernetes/models/v1_ingress_backend.rb +228 -0
- data/lib/kubernetes/models/v1_ingress_class.rb +248 -0
- data/lib/kubernetes/models/v1_ingress_class_list.rb +256 -0
- data/lib/kubernetes/models/v1_ingress_class_parameters_reference.rb +270 -0
- data/lib/kubernetes/models/v1_ingress_class_spec.rb +229 -0
- data/lib/kubernetes/models/v1_ingress_list.rb +256 -0
- data/lib/kubernetes/models/v1_ingress_load_balancer_ingress.rb +242 -0
- data/lib/kubernetes/models/v1_ingress_load_balancer_status.rb +222 -0
- data/lib/kubernetes/models/v1_ingress_port_status.rb +250 -0
- data/lib/kubernetes/models/v1_ingress_rule.rb +229 -0
- data/lib/kubernetes/models/v1_ingress_service_backend.rb +234 -0
- data/lib/kubernetes/models/v1_ingress_spec.rb +253 -0
- data/lib/kubernetes/models/v1_ingress_status.rb +219 -0
- data/lib/kubernetes/models/v1_ingress_tls.rb +232 -0
- data/lib/kubernetes/models/v1_ip_address.rb +248 -0
- data/lib/kubernetes/models/v1_ip_address_list.rb +256 -0
- data/lib/kubernetes/models/v1_ip_address_spec.rb +224 -0
- data/lib/kubernetes/models/v1_ip_block.rb +237 -0
- data/lib/kubernetes/models/v1_iscsi_persistent_volume_source.rb +336 -0
- data/lib/kubernetes/models/v1_iscsi_volume_source.rb +336 -0
- data/lib/kubernetes/models/v1_job.rb +257 -0
- data/lib/kubernetes/models/v1_job_condition.rb +280 -0
- data/lib/kubernetes/models/v1_job_list.rb +256 -0
- data/lib/kubernetes/models/v1_job_spec.rb +371 -0
- data/lib/kubernetes/models/v1_job_status.rb +321 -0
- data/lib/kubernetes/models/v1_job_template_spec.rb +228 -0
- data/lib/kubernetes/models/v1_json_schema_props.rb +641 -0
- data/lib/kubernetes/models/v1_key_to_path.rb +250 -0
- data/lib/kubernetes/models/v1_label_selector.rb +234 -0
- data/lib/kubernetes/models/v1_label_selector_attributes.rb +232 -0
- data/lib/kubernetes/models/v1_label_selector_requirement.rb +252 -0
- data/lib/kubernetes/models/v1_lease.rb +248 -0
- data/lib/kubernetes/models/v1_lease_list.rb +256 -0
- data/lib/kubernetes/models/v1_lease_spec.rb +280 -0
- data/lib/kubernetes/models/v1_lifecycle.rb +238 -0
- data/lib/kubernetes/models/v1_lifecycle_handler.rb +246 -0
- data/lib/kubernetes/models/v1_limit_range.rb +248 -0
- data/lib/kubernetes/models/v1_limit_range_item.rb +285 -0
- data/lib/kubernetes/models/v1_limit_range_list.rb +256 -0
- data/lib/kubernetes/models/v1_limit_range_spec.rb +227 -0
- data/lib/kubernetes/models/v1_limit_response.rb +234 -0
- data/lib/kubernetes/models/v1_limited_priority_level_configuration.rb +249 -0
- data/lib/kubernetes/models/v1_linux_container_user.rb +252 -0
- data/lib/kubernetes/models/v1_list_meta.rb +250 -0
- data/lib/kubernetes/models/v1_load_balancer_ingress.rb +252 -0
- data/lib/kubernetes/models/v1_load_balancer_status.rb +222 -0
- data/lib/kubernetes/models/v1_local_object_reference.rb +220 -0
- data/lib/kubernetes/models/v1_local_subject_access_review.rb +262 -0
- data/lib/kubernetes/models/v1_local_volume_source.rb +235 -0
- data/lib/kubernetes/models/v1_managed_fields_entry.rb +280 -0
- data/lib/kubernetes/models/v1_match_condition.rb +240 -0
- data/lib/kubernetes/models/v1_match_resources.rb +262 -0
- data/lib/kubernetes/models/v1_modify_volume_status.rb +235 -0
- data/lib/kubernetes/models/v1_mutating_webhook.rb +353 -0
- data/lib/kubernetes/models/v1_mutating_webhook_configuration.rb +251 -0
- data/lib/kubernetes/models/v1_mutating_webhook_configuration_list.rb +256 -0
- data/lib/kubernetes/models/v1_named_rule_with_operations.rb +280 -0
- data/lib/kubernetes/models/v1_namespace.rb +257 -0
- data/lib/kubernetes/models/v1_namespace_condition.rb +270 -0
- data/lib/kubernetes/models/v1_namespace_list.rb +256 -0
- data/lib/kubernetes/models/v1_namespace_spec.rb +222 -0
- data/lib/kubernetes/models/v1_namespace_status.rb +232 -0
- data/lib/kubernetes/models/v1_network_device_data.rb +242 -0
- data/lib/kubernetes/models/v1_network_policy.rb +248 -0
- data/lib/kubernetes/models/v1_network_policy_egress_rule.rb +234 -0
- data/lib/kubernetes/models/v1_network_policy_ingress_rule.rb +234 -0
- data/lib/kubernetes/models/v1_network_policy_list.rb +256 -0
- data/lib/kubernetes/models/v1_network_policy_peer.rb +237 -0
- data/lib/kubernetes/models/v1_network_policy_port.rb +240 -0
- data/lib/kubernetes/models/v1_network_policy_spec.rb +255 -0
- data/lib/kubernetes/models/v1_nfs_volume_source.rb +250 -0
- data/lib/kubernetes/models/v1_node.rb +257 -0
- data/lib/kubernetes/models/v1_node_address.rb +240 -0
- data/lib/kubernetes/models/v1_node_affinity.rb +231 -0
- data/lib/kubernetes/models/v1_node_condition.rb +280 -0
- data/lib/kubernetes/models/v1_node_config_source.rb +219 -0
- data/lib/kubernetes/models/v1_node_config_status.rb +247 -0
- data/lib/kubernetes/models/v1_node_daemon_endpoints.rb +219 -0
- data/lib/kubernetes/models/v1_node_features.rb +220 -0
- data/lib/kubernetes/models/v1_node_list.rb +256 -0
- data/lib/kubernetes/models/v1_node_runtime_handler.rb +229 -0
- data/lib/kubernetes/models/v1_node_runtime_handler_features.rb +230 -0
- data/lib/kubernetes/models/v1_node_selector.rb +227 -0
- data/lib/kubernetes/models/v1_node_selector_requirement.rb +252 -0
- data/lib/kubernetes/models/v1_node_selector_term.rb +234 -0
- data/lib/kubernetes/models/v1_node_spec.rb +283 -0
- data/lib/kubernetes/models/v1_node_status.rb +364 -0
- data/lib/kubernetes/models/v1_node_swap_status.rb +220 -0
- data/lib/kubernetes/models/v1_node_system_info.rb +369 -0
- data/lib/kubernetes/models/v1_non_resource_attributes.rb +230 -0
- data/lib/kubernetes/models/v1_non_resource_policy_rule.rb +244 -0
- data/lib/kubernetes/models/v1_non_resource_rule.rb +239 -0
- data/lib/kubernetes/models/v1_object_field_selector.rb +235 -0
- data/lib/kubernetes/models/v1_object_meta.rb +370 -0
- data/lib/kubernetes/models/v1_object_reference.rb +280 -0
- data/lib/kubernetes/models/v1_opaque_device_configuration.rb +240 -0
- data/lib/kubernetes/models/v1_overhead.rb +222 -0
- data/lib/kubernetes/models/v1_owner_reference.rb +290 -0
- data/lib/kubernetes/models/v1_param_kind.rb +230 -0
- data/lib/kubernetes/models/v1_param_ref.rb +249 -0
- data/lib/kubernetes/models/v1_parent_reference.rb +260 -0
- data/lib/kubernetes/models/v1_persistent_volume.rb +257 -0
- data/lib/kubernetes/models/v1_persistent_volume_claim.rb +257 -0
- data/lib/kubernetes/models/v1_persistent_volume_claim_condition.rb +280 -0
- data/lib/kubernetes/models/v1_persistent_volume_claim_list.rb +256 -0
- data/lib/kubernetes/models/v1_persistent_volume_claim_spec.rb +298 -0
- data/lib/kubernetes/models/v1_persistent_volume_claim_status.rb +299 -0
- data/lib/kubernetes/models/v1_persistent_volume_claim_template.rb +233 -0
- data/lib/kubernetes/models/v1_persistent_volume_claim_volume_source.rb +235 -0
- data/lib/kubernetes/models/v1_persistent_volume_list.rb +256 -0
- data/lib/kubernetes/models/v1_persistent_volume_spec.rb +502 -0
- data/lib/kubernetes/models/v1_persistent_volume_status.rb +250 -0
- data/lib/kubernetes/models/v1_photon_persistent_disk_volume_source.rb +235 -0
- data/lib/kubernetes/models/v1_pod.rb +257 -0
- data/lib/kubernetes/models/v1_pod_affinity.rb +234 -0
- data/lib/kubernetes/models/v1_pod_affinity_term.rb +279 -0
- data/lib/kubernetes/models/v1_pod_anti_affinity.rb +234 -0
- data/lib/kubernetes/models/v1_pod_certificate_projection.rb +292 -0
- data/lib/kubernetes/models/v1_pod_condition.rb +290 -0
- data/lib/kubernetes/models/v1_pod_disruption_budget.rb +257 -0
- data/lib/kubernetes/models/v1_pod_disruption_budget_list.rb +256 -0
- data/lib/kubernetes/models/v1_pod_disruption_budget_spec.rb +249 -0
- data/lib/kubernetes/models/v1_pod_disruption_budget_status.rb +304 -0
- data/lib/kubernetes/models/v1_pod_dns_config.rb +246 -0
- data/lib/kubernetes/models/v1_pod_dns_config_option.rb +230 -0
- data/lib/kubernetes/models/v1_pod_extended_resource_claim_status.rb +242 -0
- data/lib/kubernetes/models/v1_pod_failure_policy.rb +227 -0
- data/lib/kubernetes/models/v1_pod_failure_policy_on_exit_codes_requirement.rb +252 -0
- data/lib/kubernetes/models/v1_pod_failure_policy_on_pod_conditions_pattern.rb +235 -0
- data/lib/kubernetes/models/v1_pod_failure_policy_rule.rb +246 -0
- data/lib/kubernetes/models/v1_pod_ip.rb +225 -0
- data/lib/kubernetes/models/v1_pod_list.rb +256 -0
- data/lib/kubernetes/models/v1_pod_os.rb +225 -0
- data/lib/kubernetes/models/v1_pod_readiness_gate.rb +225 -0
- data/lib/kubernetes/models/v1_pod_resource_claim.rb +245 -0
- data/lib/kubernetes/models/v1_pod_resource_claim_status.rb +235 -0
- data/lib/kubernetes/models/v1_pod_scheduling_gate.rb +225 -0
- data/lib/kubernetes/models/v1_pod_security_context.rb +340 -0
- data/lib/kubernetes/models/v1_pod_spec.rb +655 -0
- data/lib/kubernetes/models/v1_pod_status.rb +424 -0
- data/lib/kubernetes/models/v1_pod_template.rb +248 -0
- data/lib/kubernetes/models/v1_pod_template_list.rb +256 -0
- data/lib/kubernetes/models/v1_pod_template_spec.rb +228 -0
- data/lib/kubernetes/models/v1_policy_rule.rb +275 -0
- data/lib/kubernetes/models/v1_policy_rules_with_subjects.rb +251 -0
- data/lib/kubernetes/models/v1_port_status.rb +250 -0
- data/lib/kubernetes/models/v1_portworx_volume_source.rb +245 -0
- data/lib/kubernetes/models/v1_preconditions.rb +230 -0
- data/lib/kubernetes/models/v1_preferred_scheduling_term.rb +239 -0
- data/lib/kubernetes/models/v1_priority_class.rb +284 -0
- data/lib/kubernetes/models/v1_priority_class_list.rb +256 -0
- data/lib/kubernetes/models/v1_priority_level_configuration.rb +257 -0
- data/lib/kubernetes/models/v1_priority_level_configuration_condition.rb +260 -0
- data/lib/kubernetes/models/v1_priority_level_configuration_list.rb +256 -0
- data/lib/kubernetes/models/v1_priority_level_configuration_reference.rb +225 -0
- data/lib/kubernetes/models/v1_priority_level_configuration_spec.rb +243 -0
- data/lib/kubernetes/models/v1_priority_level_configuration_status.rb +222 -0
- data/lib/kubernetes/models/v1_probe.rb +306 -0
- data/lib/kubernetes/models/v1_projected_volume_source.rb +232 -0
- data/lib/kubernetes/models/v1_queuing_configuration.rb +240 -0
- data/lib/kubernetes/models/v1_quobyte_volume_source.rb +280 -0
- data/lib/kubernetes/models/v1_rbd_persistent_volume_source.rb +301 -0
- data/lib/kubernetes/models/v1_rbd_volume_source.rb +301 -0
- data/lib/kubernetes/models/v1_replica_set.rb +257 -0
- data/lib/kubernetes/models/v1_replica_set_condition.rb +270 -0
- data/lib/kubernetes/models/v1_replica_set_list.rb +256 -0
- data/lib/kubernetes/models/v1_replica_set_spec.rb +253 -0
- data/lib/kubernetes/models/v1_replica_set_status.rb +287 -0
- data/lib/kubernetes/models/v1_replication_controller.rb +257 -0
- data/lib/kubernetes/models/v1_replication_controller_condition.rb +270 -0
- data/lib/kubernetes/models/v1_replication_controller_list.rb +256 -0
- data/lib/kubernetes/models/v1_replication_controller_spec.rb +251 -0
- data/lib/kubernetes/models/v1_replication_controller_status.rb +277 -0
- data/lib/kubernetes/models/v1_resource_attributes.rb +298 -0
- data/lib/kubernetes/models/v1_resource_claim_consumer_reference.rb +265 -0
- data/lib/kubernetes/models/v1_resource_claim_list.rb +256 -0
- data/lib/kubernetes/models/v1_resource_claim_spec.rb +219 -0
- data/lib/kubernetes/models/v1_resource_claim_status.rb +243 -0
- data/lib/kubernetes/models/v1_resource_claim_template.rb +253 -0
- data/lib/kubernetes/models/v1_resource_claim_template_list.rb +256 -0
- data/lib/kubernetes/models/v1_resource_claim_template_spec.rb +233 -0
- data/lib/kubernetes/models/v1_resource_field_selector.rb +245 -0
- data/lib/kubernetes/models/v1_resource_health.rb +235 -0
- data/lib/kubernetes/models/v1_resource_policy_rule.rb +283 -0
- data/lib/kubernetes/models/v1_resource_pool.rb +255 -0
- data/lib/kubernetes/models/v1_resource_quota.rb +257 -0
- data/lib/kubernetes/models/v1_resource_quota_list.rb +256 -0
- data/lib/kubernetes/models/v1_resource_quota_spec.rb +243 -0
- data/lib/kubernetes/models/v1_resource_quota_status.rb +234 -0
- data/lib/kubernetes/models/v1_resource_requirements.rb +246 -0
- data/lib/kubernetes/models/v1_resource_rule.rb +263 -0
- data/lib/kubernetes/models/v1_resource_slice.rb +253 -0
- data/lib/kubernetes/models/v1_resource_slice_list.rb +256 -0
- data/lib/kubernetes/models/v1_resource_slice_spec.rb +302 -0
- data/lib/kubernetes/models/v1_resource_status.rb +237 -0
- data/lib/kubernetes/models/v1_role.rb +251 -0
- data/lib/kubernetes/models/v1_role_binding.rb +265 -0
- data/lib/kubernetes/models/v1_role_binding_list.rb +256 -0
- data/lib/kubernetes/models/v1_role_list.rb +256 -0
- data/lib/kubernetes/models/v1_role_ref.rb +255 -0
- data/lib/kubernetes/models/v1_rolling_update_daemon_set.rb +230 -0
- data/lib/kubernetes/models/v1_rolling_update_deployment.rb +230 -0
- data/lib/kubernetes/models/v1_rolling_update_stateful_set_strategy.rb +230 -0
- data/lib/kubernetes/models/v1_rule_with_operations.rb +268 -0
- data/lib/kubernetes/models/v1_runtime_class.rb +272 -0
- data/lib/kubernetes/models/v1_runtime_class_list.rb +256 -0
- data/lib/kubernetes/models/v1_scale.rb +257 -0
- data/lib/kubernetes/models/v1_scale_io_persistent_volume_source.rb +324 -0
- data/lib/kubernetes/models/v1_scale_io_volume_source.rb +324 -0
- data/lib/kubernetes/models/v1_scale_spec.rb +220 -0
- data/lib/kubernetes/models/v1_scale_status.rb +235 -0
- data/lib/kubernetes/models/v1_scheduling.rb +234 -0
- data/lib/kubernetes/models/v1_scope_selector.rb +222 -0
- data/lib/kubernetes/models/v1_scoped_resource_selector_requirement.rb +252 -0
- data/lib/kubernetes/models/v1_se_linux_options.rb +250 -0
- data/lib/kubernetes/models/v1_seccomp_profile.rb +235 -0
- data/lib/kubernetes/models/v1_secret.rb +283 -0
- data/lib/kubernetes/models/v1_secret_env_source.rb +230 -0
- data/lib/kubernetes/models/v1_secret_key_selector.rb +245 -0
- data/lib/kubernetes/models/v1_secret_list.rb +256 -0
- data/lib/kubernetes/models/v1_secret_projection.rb +242 -0
- data/lib/kubernetes/models/v1_secret_reference.rb +230 -0
- data/lib/kubernetes/models/v1_secret_volume_source.rb +252 -0
- data/lib/kubernetes/models/v1_security_context.rb +325 -0
- data/lib/kubernetes/models/v1_selectable_field.rb +225 -0
- data/lib/kubernetes/models/v1_self_subject_access_review.rb +262 -0
- data/lib/kubernetes/models/v1_self_subject_access_review_spec.rb +228 -0
- data/lib/kubernetes/models/v1_self_subject_review.rb +248 -0
- data/lib/kubernetes/models/v1_self_subject_review_status.rb +219 -0
- data/lib/kubernetes/models/v1_self_subject_rules_review.rb +262 -0
- data/lib/kubernetes/models/v1_self_subject_rules_review_spec.rb +220 -0
- data/lib/kubernetes/models/v1_server_address_by_client_cidr.rb +240 -0
- data/lib/kubernetes/models/v1_service.rb +257 -0
- data/lib/kubernetes/models/v1_service_account.rb +273 -0
- data/lib/kubernetes/models/v1_service_account_list.rb +256 -0
- data/lib/kubernetes/models/v1_service_account_subject.rb +240 -0
- data/lib/kubernetes/models/v1_service_account_token_projection.rb +245 -0
- data/lib/kubernetes/models/v1_service_backend_port.rb +230 -0
- data/lib/kubernetes/models/v1_service_cidr.rb +257 -0
- data/lib/kubernetes/models/v1_service_cidr_list.rb +256 -0
- data/lib/kubernetes/models/v1_service_cidr_spec.rb +222 -0
- data/lib/kubernetes/models/v1_service_cidr_status.rb +222 -0
- data/lib/kubernetes/models/v1_service_list.rb +256 -0
- data/lib/kubernetes/models/v1_service_port.rb +275 -0
- data/lib/kubernetes/models/v1_service_spec.rb +421 -0
- data/lib/kubernetes/models/v1_service_status.rb +231 -0
- data/lib/kubernetes/models/v1_session_affinity_config.rb +219 -0
- data/lib/kubernetes/models/v1_sleep_action.rb +225 -0
- data/lib/kubernetes/models/v1_stateful_set.rb +257 -0
- data/lib/kubernetes/models/v1_stateful_set_condition.rb +270 -0
- data/lib/kubernetes/models/v1_stateful_set_list.rb +256 -0
- data/lib/kubernetes/models/v1_stateful_set_ordinals.rb +220 -0
- data/lib/kubernetes/models/v1_stateful_set_persistent_volume_claim_retention_policy.rb +230 -0
- data/lib/kubernetes/models/v1_stateful_set_spec.rb +327 -0
- data/lib/kubernetes/models/v1_stateful_set_status.rb +317 -0
- data/lib/kubernetes/models/v1_stateful_set_update_strategy.rb +229 -0
- data/lib/kubernetes/models/v1_status.rb +288 -0
- data/lib/kubernetes/models/v1_status_cause.rb +240 -0
- data/lib/kubernetes/models/v1_status_details.rb +272 -0
- data/lib/kubernetes/models/v1_storage_class.rb +320 -0
- data/lib/kubernetes/models/v1_storage_class_list.rb +256 -0
- data/lib/kubernetes/models/v1_storage_os_persistent_volume_source.rb +259 -0
- data/lib/kubernetes/models/v1_storage_os_volume_source.rb +259 -0
- data/lib/kubernetes/models/v1_subject_access_review.rb +262 -0
- data/lib/kubernetes/models/v1_subject_access_review_spec.rb +272 -0
- data/lib/kubernetes/models/v1_subject_access_review_status.rb +255 -0
- data/lib/kubernetes/models/v1_subject_rules_review_status.rb +269 -0
- data/lib/kubernetes/models/v1_success_policy.rb +227 -0
- data/lib/kubernetes/models/v1_success_policy_rule.rb +230 -0
- data/lib/kubernetes/models/v1_sysctl.rb +240 -0
- data/lib/kubernetes/models/v1_taint.rb +260 -0
- data/lib/kubernetes/models/v1_tcp_socket_action.rb +235 -0
- data/lib/kubernetes/models/v1_token_request_spec.rb +246 -0
- data/lib/kubernetes/models/v1_token_request_status.rb +240 -0
- data/lib/kubernetes/models/v1_token_review.rb +262 -0
- data/lib/kubernetes/models/v1_token_review_spec.rb +232 -0
- data/lib/kubernetes/models/v1_token_review_status.rb +251 -0
- data/lib/kubernetes/models/v1_toleration.rb +260 -0
- data/lib/kubernetes/models/v1_topology_selector_label_requirement.rb +242 -0
- data/lib/kubernetes/models/v1_topology_selector_term.rb +222 -0
- data/lib/kubernetes/models/v1_topology_spread_constraint.rb +306 -0
- data/lib/kubernetes/models/v1_type_checking.rb +222 -0
- data/lib/kubernetes/models/v1_typed_local_object_reference.rb +250 -0
- data/lib/kubernetes/models/v1_typed_object_reference.rb +260 -0
- data/lib/kubernetes/models/v1_uncounted_terminated_pods.rb +234 -0
- data/lib/kubernetes/models/v1_user_info.rb +254 -0
- data/lib/kubernetes/models/v1_user_subject.rb +225 -0
- data/lib/kubernetes/models/v1_validating_admission_policy.rb +257 -0
- data/lib/kubernetes/models/v1_validating_admission_policy_binding.rb +248 -0
- data/lib/kubernetes/models/v1_validating_admission_policy_binding_list.rb +256 -0
- data/lib/kubernetes/models/v1_validating_admission_policy_binding_spec.rb +250 -0
- data/lib/kubernetes/models/v1_validating_admission_policy_list.rb +256 -0
- data/lib/kubernetes/models/v1_validating_admission_policy_spec.rb +286 -0
- data/lib/kubernetes/models/v1_validating_admission_policy_status.rb +241 -0
- data/lib/kubernetes/models/v1_validating_webhook.rb +343 -0
- data/lib/kubernetes/models/v1_validating_webhook_configuration.rb +251 -0
- data/lib/kubernetes/models/v1_validating_webhook_configuration_list.rb +256 -0
- data/lib/kubernetes/models/v1_validation.rb +255 -0
- data/lib/kubernetes/models/v1_validation_rule.rb +275 -0
- data/lib/kubernetes/models/v1_variable.rb +240 -0
- data/lib/kubernetes/models/v1_volume.rb +495 -0
- data/lib/kubernetes/models/v1_volume_attachment.rb +262 -0
- data/lib/kubernetes/models/v1_volume_attachment_list.rb +256 -0
- data/lib/kubernetes/models/v1_volume_attachment_source.rb +229 -0
- data/lib/kubernetes/models/v1_volume_attachment_spec.rb +254 -0
- data/lib/kubernetes/models/v1_volume_attachment_status.rb +255 -0
- data/lib/kubernetes/models/v1_volume_attributes_class.rb +266 -0
- data/lib/kubernetes/models/v1_volume_attributes_class_list.rb +256 -0
- data/lib/kubernetes/models/v1_volume_device.rb +240 -0
- data/lib/kubernetes/models/v1_volume_error.rb +240 -0
- data/lib/kubernetes/models/v1_volume_mount.rb +290 -0
- data/lib/kubernetes/models/v1_volume_mount_status.rb +260 -0
- data/lib/kubernetes/models/v1_volume_node_affinity.rb +219 -0
- data/lib/kubernetes/models/v1_volume_node_resources.rb +220 -0
- data/lib/kubernetes/models/v1_volume_projection.rb +264 -0
- data/lib/kubernetes/models/v1_volume_resource_requirements.rb +234 -0
- data/lib/kubernetes/models/v1_vsphere_virtual_disk_volume_source.rb +255 -0
- data/lib/kubernetes/models/v1_watch_event.rb +239 -0
- data/lib/kubernetes/models/v1_webhook_conversion.rb +236 -0
- data/lib/kubernetes/models/v1_weighted_pod_affinity_term.rb +239 -0
- data/lib/kubernetes/models/v1_windows_security_context_options.rb +250 -0
- data/lib/kubernetes/models/v1_workload_reference.rb +250 -0
- data/lib/kubernetes/models/v1alpha1_apply_configuration.rb +220 -0
- data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle.rb +253 -0
- data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_spec.rb +235 -0
- data/lib/kubernetes/models/v1alpha1_gang_scheduling_policy.rb +225 -0
- data/lib/kubernetes/models/v1alpha1_json_patch.rb +220 -0
- data/lib/kubernetes/models/v1alpha1_match_condition.rb +239 -0
- data/lib/kubernetes/models/v1alpha1_match_resources.rb +262 -0
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy.rb +248 -0
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding.rb +248 -0
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_spec.rb +238 -0
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_spec.rb +284 -0
- data/lib/kubernetes/models/v1alpha1_mutation.rb +243 -0
- data/lib/kubernetes/models/v1alpha1_named_rule_with_operations.rb +280 -0
- data/lib/kubernetes/models/v1alpha1_param_kind.rb +230 -0
- data/lib/kubernetes/models/v1alpha1_param_ref.rb +249 -0
- data/lib/kubernetes/models/v1alpha1_pod_group.rb +239 -0
- data/lib/kubernetes/models/v1alpha1_pod_group_policy.rb +229 -0
- data/lib/kubernetes/models/v1alpha1_server_storage_version.rb +254 -0
- data/lib/kubernetes/models/v1alpha1_storage_version.rb +268 -0
- data/lib/kubernetes/models/v1alpha1_storage_version_condition.rb +290 -0
- data/lib/kubernetes/models/v1alpha1_storage_version_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha1_storage_version_status.rb +244 -0
- data/lib/kubernetes/models/v1alpha1_typed_local_object_reference.rb +250 -0
- data/lib/kubernetes/models/v1alpha1_variable.rb +240 -0
- data/lib/kubernetes/models/v1alpha1_workload.rb +253 -0
- data/lib/kubernetes/models/v1alpha1_workload_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha1_workload_spec.rb +236 -0
- data/lib/kubernetes/models/v1alpha2_lease_candidate.rb +248 -0
- data/lib/kubernetes/models/v1alpha2_lease_candidate_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha2_lease_candidate_spec.rb +285 -0
- data/lib/kubernetes/models/v1alpha3_device_taint.rb +260 -0
- data/lib/kubernetes/models/v1alpha3_device_taint_rule.rb +262 -0
- data/lib/kubernetes/models/v1alpha3_device_taint_rule_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha3_device_taint_rule_spec.rb +233 -0
- data/lib/kubernetes/models/v1alpha3_device_taint_rule_status.rb +222 -0
- data/lib/kubernetes/models/v1alpha3_device_taint_selector.rb +240 -0
- data/lib/kubernetes/models/v1beta1_allocated_device_status.rb +296 -0
- data/lib/kubernetes/models/v1beta1_allocation_result.rb +238 -0
- data/lib/kubernetes/models/v1beta1_apply_configuration.rb +220 -0
- data/lib/kubernetes/models/v1beta1_basic_device.rb +331 -0
- data/lib/kubernetes/models/v1beta1_capacity_request_policy.rb +241 -0
- data/lib/kubernetes/models/v1beta1_capacity_request_policy_range.rb +245 -0
- data/lib/kubernetes/models/v1beta1_capacity_requirements.rb +222 -0
- data/lib/kubernetes/models/v1beta1_cel_device_selector.rb +225 -0
- data/lib/kubernetes/models/v1beta1_cluster_trust_bundle.rb +253 -0
- data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_spec.rb +235 -0
- data/lib/kubernetes/models/v1beta1_counter.rb +225 -0
- data/lib/kubernetes/models/v1beta1_counter_set.rb +242 -0
- data/lib/kubernetes/models/v1beta1_device.rb +234 -0
- data/lib/kubernetes/models/v1beta1_device_allocation_configuration.rb +246 -0
- data/lib/kubernetes/models/v1beta1_device_allocation_result.rb +234 -0
- data/lib/kubernetes/models/v1beta1_device_attribute.rb +250 -0
- data/lib/kubernetes/models/v1beta1_device_capacity.rb +234 -0
- data/lib/kubernetes/models/v1beta1_device_claim.rb +246 -0
- data/lib/kubernetes/models/v1beta1_device_claim_configuration.rb +231 -0
- data/lib/kubernetes/models/v1beta1_device_class.rb +253 -0
- data/lib/kubernetes/models/v1beta1_device_class_configuration.rb +219 -0
- data/lib/kubernetes/models/v1beta1_device_class_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_device_class_spec.rb +244 -0
- data/lib/kubernetes/models/v1beta1_device_constraint.rb +242 -0
- data/lib/kubernetes/models/v1beta1_device_counter_consumption.rb +242 -0
- data/lib/kubernetes/models/v1beta1_device_request.rb +310 -0
- data/lib/kubernetes/models/v1beta1_device_request_allocation_result.rb +338 -0
- data/lib/kubernetes/models/v1beta1_device_selector.rb +219 -0
- data/lib/kubernetes/models/v1beta1_device_sub_request.rb +293 -0
- data/lib/kubernetes/models/v1beta1_device_taint.rb +260 -0
- data/lib/kubernetes/models/v1beta1_device_toleration.rb +260 -0
- data/lib/kubernetes/models/v1beta1_ip_address.rb +248 -0
- data/lib/kubernetes/models/v1beta1_ip_address_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_ip_address_spec.rb +224 -0
- data/lib/kubernetes/models/v1beta1_json_patch.rb +220 -0
- data/lib/kubernetes/models/v1beta1_lease_candidate.rb +248 -0
- data/lib/kubernetes/models/v1beta1_lease_candidate_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_lease_candidate_spec.rb +285 -0
- data/lib/kubernetes/models/v1beta1_match_condition.rb +240 -0
- data/lib/kubernetes/models/v1beta1_match_resources.rb +262 -0
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy.rb +248 -0
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding.rb +248 -0
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_spec.rb +238 -0
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_spec.rb +284 -0
- data/lib/kubernetes/models/v1beta1_mutation.rb +243 -0
- data/lib/kubernetes/models/v1beta1_named_rule_with_operations.rb +280 -0
- data/lib/kubernetes/models/v1beta1_network_device_data.rb +242 -0
- data/lib/kubernetes/models/v1beta1_opaque_device_configuration.rb +240 -0
- data/lib/kubernetes/models/v1beta1_param_kind.rb +230 -0
- data/lib/kubernetes/models/v1beta1_param_ref.rb +249 -0
- data/lib/kubernetes/models/v1beta1_parent_reference.rb +260 -0
- data/lib/kubernetes/models/v1beta1_pod_certificate_request.rb +262 -0
- data/lib/kubernetes/models/v1beta1_pod_certificate_request_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_pod_certificate_request_spec.rb +409 -0
- data/lib/kubernetes/models/v1beta1_pod_certificate_request_status.rb +262 -0
- data/lib/kubernetes/models/v1beta1_resource_claim.rb +262 -0
- data/lib/kubernetes/models/v1beta1_resource_claim_consumer_reference.rb +265 -0
- data/lib/kubernetes/models/v1beta1_resource_claim_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_resource_claim_spec.rb +219 -0
- data/lib/kubernetes/models/v1beta1_resource_claim_status.rb +243 -0
- data/lib/kubernetes/models/v1beta1_resource_claim_template.rb +253 -0
- data/lib/kubernetes/models/v1beta1_resource_claim_template_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_resource_claim_template_spec.rb +233 -0
- data/lib/kubernetes/models/v1beta1_resource_pool.rb +255 -0
- data/lib/kubernetes/models/v1beta1_resource_slice.rb +253 -0
- data/lib/kubernetes/models/v1beta1_resource_slice_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_resource_slice_spec.rb +302 -0
- data/lib/kubernetes/models/v1beta1_service_cidr.rb +257 -0
- data/lib/kubernetes/models/v1beta1_service_cidr_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_service_cidr_spec.rb +222 -0
- data/lib/kubernetes/models/v1beta1_service_cidr_status.rb +222 -0
- data/lib/kubernetes/models/v1beta1_storage_version_migration.rb +257 -0
- data/lib/kubernetes/models/v1beta1_storage_version_migration_list.rb +256 -0
- data/lib/kubernetes/models/v1beta1_storage_version_migration_spec.rb +224 -0
- data/lib/kubernetes/models/v1beta1_storage_version_migration_status.rb +232 -0
- data/lib/kubernetes/models/v1beta1_variable.rb +240 -0
- data/lib/kubernetes/models/v1beta1_volume_attributes_class.rb +266 -0
- data/lib/kubernetes/models/v1beta1_volume_attributes_class_list.rb +256 -0
- data/lib/kubernetes/models/v1beta2_allocated_device_status.rb +296 -0
- data/lib/kubernetes/models/v1beta2_allocation_result.rb +238 -0
- data/lib/kubernetes/models/v1beta2_capacity_request_policy.rb +241 -0
- data/lib/kubernetes/models/v1beta2_capacity_request_policy_range.rb +245 -0
- data/lib/kubernetes/models/v1beta2_capacity_requirements.rb +222 -0
- data/lib/kubernetes/models/v1beta2_cel_device_selector.rb +225 -0
- data/lib/kubernetes/models/v1beta2_counter.rb +225 -0
- data/lib/kubernetes/models/v1beta2_counter_set.rb +242 -0
- data/lib/kubernetes/models/v1beta2_device.rb +346 -0
- data/lib/kubernetes/models/v1beta2_device_allocation_configuration.rb +246 -0
- data/lib/kubernetes/models/v1beta2_device_allocation_result.rb +234 -0
- data/lib/kubernetes/models/v1beta2_device_attribute.rb +250 -0
- data/lib/kubernetes/models/v1beta2_device_capacity.rb +234 -0
- data/lib/kubernetes/models/v1beta2_device_claim.rb +246 -0
- data/lib/kubernetes/models/v1beta2_device_claim_configuration.rb +231 -0
- data/lib/kubernetes/models/v1beta2_device_class.rb +253 -0
- data/lib/kubernetes/models/v1beta2_device_class_configuration.rb +219 -0
- data/lib/kubernetes/models/v1beta2_device_class_list.rb +256 -0
- data/lib/kubernetes/models/v1beta2_device_class_spec.rb +244 -0
- data/lib/kubernetes/models/v1beta2_device_constraint.rb +242 -0
- data/lib/kubernetes/models/v1beta2_device_counter_consumption.rb +242 -0
- data/lib/kubernetes/models/v1beta2_device_request.rb +246 -0
- data/lib/kubernetes/models/v1beta2_device_request_allocation_result.rb +338 -0
- data/lib/kubernetes/models/v1beta2_device_selector.rb +219 -0
- data/lib/kubernetes/models/v1beta2_device_sub_request.rb +293 -0
- data/lib/kubernetes/models/v1beta2_device_taint.rb +260 -0
- data/lib/kubernetes/models/v1beta2_device_toleration.rb +260 -0
- data/lib/kubernetes/models/v1beta2_exact_device_request.rb +288 -0
- data/lib/kubernetes/models/v1beta2_network_device_data.rb +242 -0
- data/lib/kubernetes/models/v1beta2_opaque_device_configuration.rb +240 -0
- data/lib/kubernetes/models/v1beta2_resource_claim.rb +262 -0
- data/lib/kubernetes/models/v1beta2_resource_claim_consumer_reference.rb +265 -0
- data/lib/kubernetes/models/v1beta2_resource_claim_list.rb +256 -0
- data/lib/kubernetes/models/v1beta2_resource_claim_spec.rb +219 -0
- data/lib/kubernetes/models/v1beta2_resource_claim_status.rb +243 -0
- data/lib/kubernetes/models/v1beta2_resource_claim_template.rb +253 -0
- data/lib/kubernetes/models/v1beta2_resource_claim_template_list.rb +256 -0
- data/lib/kubernetes/models/v1beta2_resource_claim_template_spec.rb +233 -0
- data/lib/kubernetes/models/v1beta2_resource_pool.rb +255 -0
- data/lib/kubernetes/models/v1beta2_resource_slice.rb +253 -0
- data/lib/kubernetes/models/v1beta2_resource_slice_list.rb +256 -0
- data/lib/kubernetes/models/v1beta2_resource_slice_spec.rb +302 -0
- data/lib/kubernetes/models/v2_api_group_discovery.rb +248 -0
- data/lib/kubernetes/models/v2_api_group_discovery_list.rb +253 -0
- data/lib/kubernetes/models/v2_api_resource_discovery.rb +316 -0
- data/lib/kubernetes/models/v2_api_subresource_discovery.rb +262 -0
- data/lib/kubernetes/models/v2_api_version_discovery.rb +246 -0
- data/lib/kubernetes/models/v2_container_resource_metric_source.rb +254 -0
- data/lib/kubernetes/models/v2_container_resource_metric_status.rb +254 -0
- data/lib/kubernetes/models/v2_cross_version_object_reference.rb +250 -0
- data/lib/kubernetes/models/v2_external_metric_source.rb +238 -0
- data/lib/kubernetes/models/v2_external_metric_status.rb +238 -0
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler.rb +257 -0
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_behavior.rb +228 -0
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_condition.rb +270 -0
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_list.rb +256 -0
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_spec.rb +270 -0
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_status.rb +279 -0
- data/lib/kubernetes/models/v2_hpa_scaling_policy.rb +255 -0
- data/lib/kubernetes/models/v2_hpa_scaling_rules.rb +252 -0
- data/lib/kubernetes/models/v2_metric_identifier.rb +234 -0
- data/lib/kubernetes/models/v2_metric_spec.rb +270 -0
- data/lib/kubernetes/models/v2_metric_status.rb +270 -0
- data/lib/kubernetes/models/v2_metric_target.rb +255 -0
- data/lib/kubernetes/models/v2_metric_value_status.rb +240 -0
- data/lib/kubernetes/models/v2_object_metric_source.rb +252 -0
- data/lib/kubernetes/models/v2_object_metric_status.rb +252 -0
- data/lib/kubernetes/models/v2_pods_metric_source.rb +238 -0
- data/lib/kubernetes/models/v2_pods_metric_status.rb +238 -0
- data/lib/kubernetes/models/v2_resource_metric_source.rb +239 -0
- data/lib/kubernetes/models/v2_resource_metric_status.rb +239 -0
- data/lib/kubernetes/models/v2beta1_api_group_discovery.rb +248 -0
- data/lib/kubernetes/models/v2beta1_api_group_discovery_list.rb +253 -0
- data/lib/kubernetes/models/v2beta1_api_resource_discovery.rb +316 -0
- data/lib/kubernetes/models/v2beta1_api_subresource_discovery.rb +262 -0
- data/lib/kubernetes/models/v2beta1_api_version_discovery.rb +246 -0
- data/lib/kubernetes/models/version_info.rb +378 -0
- data/lib/kubernetes/utils.rb +123 -0
- data/lib/kubernetes/version.rb +15 -0
- data/lib/kubernetes/watch.rb +4 -0
- data/lib/kubernetes.rb +836 -0
- metadata +914 -0
|
@@ -0,0 +1,775 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kubernetes
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: release-1.35
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.1.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Kubernetes
|
|
16
|
+
class SchedulingV1alpha1Api
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# create a Workload
|
|
23
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
24
|
+
# @param body [V1alpha1Workload]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
27
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
28
|
+
# @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
|
29
|
+
# @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
|
30
|
+
# @return [V1alpha1Workload]
|
|
31
|
+
def create_namespaced_workload(namespace, body, opts = {})
|
|
32
|
+
data, _status_code, _headers = create_namespaced_workload_with_http_info(namespace, body, opts)
|
|
33
|
+
data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# create a Workload
|
|
37
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
38
|
+
# @param body [V1alpha1Workload]
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
41
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
42
|
+
# @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
|
43
|
+
# @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
|
44
|
+
# @return [Array<(V1alpha1Workload, Integer, Hash)>] V1alpha1Workload data, response status code and response headers
|
|
45
|
+
def create_namespaced_workload_with_http_info(namespace, body, opts = {})
|
|
46
|
+
if @api_client.config.debugging
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.create_namespaced_workload ...'
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'namespace' is set
|
|
50
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha1Api.create_namespaced_workload"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'body' is set
|
|
54
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha1Api.create_namespaced_workload"
|
|
56
|
+
end
|
|
57
|
+
# resource path
|
|
58
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
59
|
+
|
|
60
|
+
# query parameters
|
|
61
|
+
query_params = opts[:query_params] || {}
|
|
62
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
63
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
64
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
65
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
66
|
+
|
|
67
|
+
# header parameters
|
|
68
|
+
header_params = opts[:header_params] || {}
|
|
69
|
+
# HTTP header 'Accept' (if needed)
|
|
70
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = opts[:form_params] || {}
|
|
74
|
+
|
|
75
|
+
# http body (model)
|
|
76
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
77
|
+
|
|
78
|
+
# return_type
|
|
79
|
+
return_type = opts[:debug_return_type] || 'V1alpha1Workload'
|
|
80
|
+
|
|
81
|
+
# auth_names
|
|
82
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
83
|
+
|
|
84
|
+
new_options = opts.merge(
|
|
85
|
+
:operation => :"SchedulingV1alpha1Api.create_namespaced_workload",
|
|
86
|
+
:header_params => header_params,
|
|
87
|
+
:query_params => query_params,
|
|
88
|
+
:form_params => form_params,
|
|
89
|
+
:body => post_body,
|
|
90
|
+
:auth_names => auth_names,
|
|
91
|
+
:return_type => return_type
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#create_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
97
|
+
end
|
|
98
|
+
return data, status_code, headers
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# delete collection of Workload
|
|
102
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
105
|
+
# @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.
|
|
106
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
107
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
108
|
+
# @option opts [Integer] :grace_period_seconds 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.
|
|
109
|
+
# @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
|
|
110
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
111
|
+
# @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.
|
|
112
|
+
# @option opts [Boolean] :orphan_dependents 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.
|
|
113
|
+
# @option opts [String] :propagation_policy 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.
|
|
114
|
+
# @option opts [String] :resource_version resourceVersion sets a constraint 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
|
|
115
|
+
# @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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
|
|
116
|
+
# @option opts [Boolean] :send_initial_events `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
|
|
117
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
118
|
+
# @option opts [V1DeleteOptions] :body
|
|
119
|
+
# @return [V1Status]
|
|
120
|
+
def delete_collection_namespaced_workload(namespace, opts = {})
|
|
121
|
+
data, _status_code, _headers = delete_collection_namespaced_workload_with_http_info(namespace, opts)
|
|
122
|
+
data
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# delete collection of Workload
|
|
126
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
127
|
+
# @param [Hash] opts the optional parameters
|
|
128
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
129
|
+
# @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.
|
|
130
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
131
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
132
|
+
# @option opts [Integer] :grace_period_seconds 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.
|
|
133
|
+
# @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
|
|
134
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
135
|
+
# @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.
|
|
136
|
+
# @option opts [Boolean] :orphan_dependents 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.
|
|
137
|
+
# @option opts [String] :propagation_policy 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.
|
|
138
|
+
# @option opts [String] :resource_version resourceVersion sets a constraint 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
|
|
139
|
+
# @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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
|
|
140
|
+
# @option opts [Boolean] :send_initial_events `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
|
|
141
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
142
|
+
# @option opts [V1DeleteOptions] :body
|
|
143
|
+
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
144
|
+
def delete_collection_namespaced_workload_with_http_info(namespace, opts = {})
|
|
145
|
+
if @api_client.config.debugging
|
|
146
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.delete_collection_namespaced_workload ...'
|
|
147
|
+
end
|
|
148
|
+
# verify the required parameter 'namespace' is set
|
|
149
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
150
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha1Api.delete_collection_namespaced_workload"
|
|
151
|
+
end
|
|
152
|
+
# resource path
|
|
153
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
154
|
+
|
|
155
|
+
# query parameters
|
|
156
|
+
query_params = opts[:query_params] || {}
|
|
157
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
158
|
+
query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
|
|
159
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
160
|
+
query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
|
|
161
|
+
query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
|
|
162
|
+
query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
|
|
163
|
+
query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
|
|
164
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
165
|
+
query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
|
|
166
|
+
query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
|
|
167
|
+
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
168
|
+
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
169
|
+
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
170
|
+
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
171
|
+
|
|
172
|
+
# header parameters
|
|
173
|
+
header_params = opts[:header_params] || {}
|
|
174
|
+
# HTTP header 'Accept' (if needed)
|
|
175
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
176
|
+
|
|
177
|
+
# form parameters
|
|
178
|
+
form_params = opts[:form_params] || {}
|
|
179
|
+
|
|
180
|
+
# http body (model)
|
|
181
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
|
182
|
+
|
|
183
|
+
# return_type
|
|
184
|
+
return_type = opts[:debug_return_type] || 'V1Status'
|
|
185
|
+
|
|
186
|
+
# auth_names
|
|
187
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
188
|
+
|
|
189
|
+
new_options = opts.merge(
|
|
190
|
+
:operation => :"SchedulingV1alpha1Api.delete_collection_namespaced_workload",
|
|
191
|
+
:header_params => header_params,
|
|
192
|
+
:query_params => query_params,
|
|
193
|
+
:form_params => form_params,
|
|
194
|
+
:body => post_body,
|
|
195
|
+
:auth_names => auth_names,
|
|
196
|
+
:return_type => return_type
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
200
|
+
if @api_client.config.debugging
|
|
201
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#delete_collection_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
202
|
+
end
|
|
203
|
+
return data, status_code, headers
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# delete a Workload
|
|
207
|
+
# @param name [String] name of the Workload
|
|
208
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
209
|
+
# @param [Hash] opts the optional parameters
|
|
210
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
211
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
212
|
+
# @option opts [Integer] :grace_period_seconds 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.
|
|
213
|
+
# @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
|
|
214
|
+
# @option opts [Boolean] :orphan_dependents 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.
|
|
215
|
+
# @option opts [String] :propagation_policy 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.
|
|
216
|
+
# @option opts [V1DeleteOptions] :body
|
|
217
|
+
# @return [V1Status]
|
|
218
|
+
def delete_namespaced_workload(name, namespace, opts = {})
|
|
219
|
+
data, _status_code, _headers = delete_namespaced_workload_with_http_info(name, namespace, opts)
|
|
220
|
+
data
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# delete a Workload
|
|
224
|
+
# @param name [String] name of the Workload
|
|
225
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
226
|
+
# @param [Hash] opts the optional parameters
|
|
227
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
228
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
229
|
+
# @option opts [Integer] :grace_period_seconds 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.
|
|
230
|
+
# @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
|
|
231
|
+
# @option opts [Boolean] :orphan_dependents 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.
|
|
232
|
+
# @option opts [String] :propagation_policy 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.
|
|
233
|
+
# @option opts [V1DeleteOptions] :body
|
|
234
|
+
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
235
|
+
def delete_namespaced_workload_with_http_info(name, namespace, opts = {})
|
|
236
|
+
if @api_client.config.debugging
|
|
237
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.delete_namespaced_workload ...'
|
|
238
|
+
end
|
|
239
|
+
# verify the required parameter 'name' is set
|
|
240
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
241
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha1Api.delete_namespaced_workload"
|
|
242
|
+
end
|
|
243
|
+
# verify the required parameter 'namespace' is set
|
|
244
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
245
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha1Api.delete_namespaced_workload"
|
|
246
|
+
end
|
|
247
|
+
# resource path
|
|
248
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
249
|
+
|
|
250
|
+
# query parameters
|
|
251
|
+
query_params = opts[:query_params] || {}
|
|
252
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
253
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
254
|
+
query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
|
|
255
|
+
query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
|
|
256
|
+
query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
|
|
257
|
+
query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
|
|
258
|
+
|
|
259
|
+
# header parameters
|
|
260
|
+
header_params = opts[:header_params] || {}
|
|
261
|
+
# HTTP header 'Accept' (if needed)
|
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
263
|
+
|
|
264
|
+
# form parameters
|
|
265
|
+
form_params = opts[:form_params] || {}
|
|
266
|
+
|
|
267
|
+
# http body (model)
|
|
268
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
|
269
|
+
|
|
270
|
+
# return_type
|
|
271
|
+
return_type = opts[:debug_return_type] || 'V1Status'
|
|
272
|
+
|
|
273
|
+
# auth_names
|
|
274
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
275
|
+
|
|
276
|
+
new_options = opts.merge(
|
|
277
|
+
:operation => :"SchedulingV1alpha1Api.delete_namespaced_workload",
|
|
278
|
+
:header_params => header_params,
|
|
279
|
+
:query_params => query_params,
|
|
280
|
+
:form_params => form_params,
|
|
281
|
+
:body => post_body,
|
|
282
|
+
:auth_names => auth_names,
|
|
283
|
+
:return_type => return_type
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#delete_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
289
|
+
end
|
|
290
|
+
return data, status_code, headers
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# get available resources
|
|
294
|
+
# @param [Hash] opts the optional parameters
|
|
295
|
+
# @return [V1APIResourceList]
|
|
296
|
+
def get_api_resources_scheduling_v1alpha1(opts = {})
|
|
297
|
+
data, _status_code, _headers = get_api_resources_scheduling_v1alpha1_with_http_info(opts)
|
|
298
|
+
data
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# get available resources
|
|
302
|
+
# @param [Hash] opts the optional parameters
|
|
303
|
+
# @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
|
|
304
|
+
def get_api_resources_scheduling_v1alpha1_with_http_info(opts = {})
|
|
305
|
+
if @api_client.config.debugging
|
|
306
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.get_api_resources_scheduling_v1alpha1 ...'
|
|
307
|
+
end
|
|
308
|
+
# resource path
|
|
309
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/'
|
|
310
|
+
|
|
311
|
+
# query parameters
|
|
312
|
+
query_params = opts[:query_params] || {}
|
|
313
|
+
|
|
314
|
+
# header parameters
|
|
315
|
+
header_params = opts[:header_params] || {}
|
|
316
|
+
# HTTP header 'Accept' (if needed)
|
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
318
|
+
|
|
319
|
+
# form parameters
|
|
320
|
+
form_params = opts[:form_params] || {}
|
|
321
|
+
|
|
322
|
+
# http body (model)
|
|
323
|
+
post_body = opts[:debug_body]
|
|
324
|
+
|
|
325
|
+
# return_type
|
|
326
|
+
return_type = opts[:debug_return_type] || 'V1APIResourceList'
|
|
327
|
+
|
|
328
|
+
# auth_names
|
|
329
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
330
|
+
|
|
331
|
+
new_options = opts.merge(
|
|
332
|
+
:operation => :"SchedulingV1alpha1Api.get_api_resources_scheduling_v1alpha1",
|
|
333
|
+
:header_params => header_params,
|
|
334
|
+
:query_params => query_params,
|
|
335
|
+
:form_params => form_params,
|
|
336
|
+
:body => post_body,
|
|
337
|
+
:auth_names => auth_names,
|
|
338
|
+
:return_type => return_type
|
|
339
|
+
)
|
|
340
|
+
|
|
341
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
342
|
+
if @api_client.config.debugging
|
|
343
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#get_api_resources_scheduling_v1alpha1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
344
|
+
end
|
|
345
|
+
return data, status_code, headers
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# list or watch objects of kind Workload
|
|
349
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
350
|
+
# @param [Hash] opts the optional parameters
|
|
351
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
352
|
+
# @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
|
|
353
|
+
# @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.
|
|
354
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
355
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
356
|
+
# @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.
|
|
357
|
+
# @option opts [String] :resource_version resourceVersion sets a constraint 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
|
|
358
|
+
# @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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
|
|
359
|
+
# @option opts [Boolean] :send_initial_events `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
|
|
360
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
361
|
+
# @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
|
362
|
+
# @return [V1alpha1WorkloadList]
|
|
363
|
+
def list_namespaced_workload(namespace, opts = {})
|
|
364
|
+
data, _status_code, _headers = list_namespaced_workload_with_http_info(namespace, opts)
|
|
365
|
+
data
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
# list or watch objects of kind Workload
|
|
369
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
370
|
+
# @param [Hash] opts the optional parameters
|
|
371
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
372
|
+
# @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
|
|
373
|
+
# @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.
|
|
374
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
375
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
376
|
+
# @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.
|
|
377
|
+
# @option opts [String] :resource_version resourceVersion sets a constraint 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
|
|
378
|
+
# @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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
|
|
379
|
+
# @option opts [Boolean] :send_initial_events `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
|
|
380
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
381
|
+
# @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
|
382
|
+
# @return [Array<(V1alpha1WorkloadList, Integer, Hash)>] V1alpha1WorkloadList data, response status code and response headers
|
|
383
|
+
def list_namespaced_workload_with_http_info(namespace, opts = {})
|
|
384
|
+
if @api_client.config.debugging
|
|
385
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.list_namespaced_workload ...'
|
|
386
|
+
end
|
|
387
|
+
# verify the required parameter 'namespace' is set
|
|
388
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
389
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha1Api.list_namespaced_workload"
|
|
390
|
+
end
|
|
391
|
+
# resource path
|
|
392
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
393
|
+
|
|
394
|
+
# query parameters
|
|
395
|
+
query_params = opts[:query_params] || {}
|
|
396
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
397
|
+
query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
|
|
398
|
+
query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
|
|
399
|
+
query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
|
|
400
|
+
query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
|
|
401
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
402
|
+
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
403
|
+
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
404
|
+
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
405
|
+
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
406
|
+
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
407
|
+
|
|
408
|
+
# header parameters
|
|
409
|
+
header_params = opts[:header_params] || {}
|
|
410
|
+
# HTTP header 'Accept' (if needed)
|
|
411
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
|
|
412
|
+
|
|
413
|
+
# form parameters
|
|
414
|
+
form_params = opts[:form_params] || {}
|
|
415
|
+
|
|
416
|
+
# http body (model)
|
|
417
|
+
post_body = opts[:debug_body]
|
|
418
|
+
|
|
419
|
+
# return_type
|
|
420
|
+
return_type = opts[:debug_return_type] || 'V1alpha1WorkloadList'
|
|
421
|
+
|
|
422
|
+
# auth_names
|
|
423
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
424
|
+
|
|
425
|
+
new_options = opts.merge(
|
|
426
|
+
:operation => :"SchedulingV1alpha1Api.list_namespaced_workload",
|
|
427
|
+
:header_params => header_params,
|
|
428
|
+
:query_params => query_params,
|
|
429
|
+
:form_params => form_params,
|
|
430
|
+
:body => post_body,
|
|
431
|
+
:auth_names => auth_names,
|
|
432
|
+
:return_type => return_type
|
|
433
|
+
)
|
|
434
|
+
|
|
435
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
436
|
+
if @api_client.config.debugging
|
|
437
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#list_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
438
|
+
end
|
|
439
|
+
return data, status_code, headers
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# list or watch objects of kind Workload
|
|
443
|
+
# @param [Hash] opts the optional parameters
|
|
444
|
+
# @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
|
|
445
|
+
# @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.
|
|
446
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
447
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
448
|
+
# @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.
|
|
449
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
450
|
+
# @option opts [String] :resource_version resourceVersion sets a constraint 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
|
|
451
|
+
# @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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
|
|
452
|
+
# @option opts [Boolean] :send_initial_events `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
|
|
453
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
454
|
+
# @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
|
455
|
+
# @return [V1alpha1WorkloadList]
|
|
456
|
+
def list_workload_for_all_namespaces(opts = {})
|
|
457
|
+
data, _status_code, _headers = list_workload_for_all_namespaces_with_http_info(opts)
|
|
458
|
+
data
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# list or watch objects of kind Workload
|
|
462
|
+
# @param [Hash] opts the optional parameters
|
|
463
|
+
# @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
|
|
464
|
+
# @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, 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.
|
|
465
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
466
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
467
|
+
# @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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.
|
|
468
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
469
|
+
# @option opts [String] :resource_version resourceVersion sets a constraint 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
|
|
470
|
+
# @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that 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
|
|
471
|
+
# @option opts [Boolean] :send_initial_events `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
|
|
472
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
473
|
+
# @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
|
|
474
|
+
# @return [Array<(V1alpha1WorkloadList, Integer, Hash)>] V1alpha1WorkloadList data, response status code and response headers
|
|
475
|
+
def list_workload_for_all_namespaces_with_http_info(opts = {})
|
|
476
|
+
if @api_client.config.debugging
|
|
477
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.list_workload_for_all_namespaces ...'
|
|
478
|
+
end
|
|
479
|
+
# resource path
|
|
480
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/workloads'
|
|
481
|
+
|
|
482
|
+
# query parameters
|
|
483
|
+
query_params = opts[:query_params] || {}
|
|
484
|
+
query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
|
|
485
|
+
query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
|
|
486
|
+
query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
|
|
487
|
+
query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
|
|
488
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
489
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
490
|
+
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
491
|
+
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
492
|
+
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
493
|
+
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
494
|
+
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
495
|
+
|
|
496
|
+
# header parameters
|
|
497
|
+
header_params = opts[:header_params] || {}
|
|
498
|
+
# HTTP header 'Accept' (if needed)
|
|
499
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
|
|
500
|
+
|
|
501
|
+
# form parameters
|
|
502
|
+
form_params = opts[:form_params] || {}
|
|
503
|
+
|
|
504
|
+
# http body (model)
|
|
505
|
+
post_body = opts[:debug_body]
|
|
506
|
+
|
|
507
|
+
# return_type
|
|
508
|
+
return_type = opts[:debug_return_type] || 'V1alpha1WorkloadList'
|
|
509
|
+
|
|
510
|
+
# auth_names
|
|
511
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
512
|
+
|
|
513
|
+
new_options = opts.merge(
|
|
514
|
+
:operation => :"SchedulingV1alpha1Api.list_workload_for_all_namespaces",
|
|
515
|
+
:header_params => header_params,
|
|
516
|
+
:query_params => query_params,
|
|
517
|
+
:form_params => form_params,
|
|
518
|
+
:body => post_body,
|
|
519
|
+
:auth_names => auth_names,
|
|
520
|
+
:return_type => return_type
|
|
521
|
+
)
|
|
522
|
+
|
|
523
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
524
|
+
if @api_client.config.debugging
|
|
525
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#list_workload_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
526
|
+
end
|
|
527
|
+
return data, status_code, headers
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
# partially update the specified Workload
|
|
531
|
+
# @param name [String] name of the Workload
|
|
532
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
533
|
+
# @param body [Object]
|
|
534
|
+
# @param [Hash] opts the optional parameters
|
|
535
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
536
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
537
|
+
# @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. 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).
|
|
538
|
+
# @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
|
539
|
+
# @option opts [Boolean] :force 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.
|
|
540
|
+
# @return [V1alpha1Workload]
|
|
541
|
+
def patch_namespaced_workload(name, namespace, body, opts = {})
|
|
542
|
+
data, _status_code, _headers = patch_namespaced_workload_with_http_info(name, namespace, body, opts)
|
|
543
|
+
data
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# partially update the specified Workload
|
|
547
|
+
# @param name [String] name of the Workload
|
|
548
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
549
|
+
# @param body [Object]
|
|
550
|
+
# @param [Hash] opts the optional parameters
|
|
551
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
552
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
553
|
+
# @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. 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).
|
|
554
|
+
# @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
|
555
|
+
# @option opts [Boolean] :force 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.
|
|
556
|
+
# @return [Array<(V1alpha1Workload, Integer, Hash)>] V1alpha1Workload data, response status code and response headers
|
|
557
|
+
def patch_namespaced_workload_with_http_info(name, namespace, body, opts = {})
|
|
558
|
+
if @api_client.config.debugging
|
|
559
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.patch_namespaced_workload ...'
|
|
560
|
+
end
|
|
561
|
+
# verify the required parameter 'name' is set
|
|
562
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
563
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha1Api.patch_namespaced_workload"
|
|
564
|
+
end
|
|
565
|
+
# verify the required parameter 'namespace' is set
|
|
566
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
567
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha1Api.patch_namespaced_workload"
|
|
568
|
+
end
|
|
569
|
+
# verify the required parameter 'body' is set
|
|
570
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
571
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha1Api.patch_namespaced_workload"
|
|
572
|
+
end
|
|
573
|
+
# resource path
|
|
574
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
575
|
+
|
|
576
|
+
# query parameters
|
|
577
|
+
query_params = opts[:query_params] || {}
|
|
578
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
579
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
580
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
581
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
582
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
|
583
|
+
|
|
584
|
+
# header parameters
|
|
585
|
+
header_params = opts[:header_params] || {}
|
|
586
|
+
# HTTP header 'Accept' (if needed)
|
|
587
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
588
|
+
# HTTP header 'Content-Type'
|
|
589
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
|
|
590
|
+
|
|
591
|
+
# form parameters
|
|
592
|
+
form_params = opts[:form_params] || {}
|
|
593
|
+
|
|
594
|
+
# http body (model)
|
|
595
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
596
|
+
|
|
597
|
+
# return_type
|
|
598
|
+
return_type = opts[:debug_return_type] || 'V1alpha1Workload'
|
|
599
|
+
|
|
600
|
+
# auth_names
|
|
601
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
602
|
+
|
|
603
|
+
new_options = opts.merge(
|
|
604
|
+
:operation => :"SchedulingV1alpha1Api.patch_namespaced_workload",
|
|
605
|
+
:header_params => header_params,
|
|
606
|
+
:query_params => query_params,
|
|
607
|
+
:form_params => form_params,
|
|
608
|
+
:body => post_body,
|
|
609
|
+
:auth_names => auth_names,
|
|
610
|
+
:return_type => return_type
|
|
611
|
+
)
|
|
612
|
+
|
|
613
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
614
|
+
if @api_client.config.debugging
|
|
615
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#patch_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
616
|
+
end
|
|
617
|
+
return data, status_code, headers
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
# read the specified Workload
|
|
621
|
+
# @param name [String] name of the Workload
|
|
622
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
623
|
+
# @param [Hash] opts the optional parameters
|
|
624
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
625
|
+
# @return [V1alpha1Workload]
|
|
626
|
+
def read_namespaced_workload(name, namespace, opts = {})
|
|
627
|
+
data, _status_code, _headers = read_namespaced_workload_with_http_info(name, namespace, opts)
|
|
628
|
+
data
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# read the specified Workload
|
|
632
|
+
# @param name [String] name of the Workload
|
|
633
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
634
|
+
# @param [Hash] opts the optional parameters
|
|
635
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
636
|
+
# @return [Array<(V1alpha1Workload, Integer, Hash)>] V1alpha1Workload data, response status code and response headers
|
|
637
|
+
def read_namespaced_workload_with_http_info(name, namespace, opts = {})
|
|
638
|
+
if @api_client.config.debugging
|
|
639
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.read_namespaced_workload ...'
|
|
640
|
+
end
|
|
641
|
+
# verify the required parameter 'name' is set
|
|
642
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
643
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha1Api.read_namespaced_workload"
|
|
644
|
+
end
|
|
645
|
+
# verify the required parameter 'namespace' is set
|
|
646
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
647
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha1Api.read_namespaced_workload"
|
|
648
|
+
end
|
|
649
|
+
# resource path
|
|
650
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
651
|
+
|
|
652
|
+
# query parameters
|
|
653
|
+
query_params = opts[:query_params] || {}
|
|
654
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
655
|
+
|
|
656
|
+
# header parameters
|
|
657
|
+
header_params = opts[:header_params] || {}
|
|
658
|
+
# HTTP header 'Accept' (if needed)
|
|
659
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
660
|
+
|
|
661
|
+
# form parameters
|
|
662
|
+
form_params = opts[:form_params] || {}
|
|
663
|
+
|
|
664
|
+
# http body (model)
|
|
665
|
+
post_body = opts[:debug_body]
|
|
666
|
+
|
|
667
|
+
# return_type
|
|
668
|
+
return_type = opts[:debug_return_type] || 'V1alpha1Workload'
|
|
669
|
+
|
|
670
|
+
# auth_names
|
|
671
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
672
|
+
|
|
673
|
+
new_options = opts.merge(
|
|
674
|
+
:operation => :"SchedulingV1alpha1Api.read_namespaced_workload",
|
|
675
|
+
:header_params => header_params,
|
|
676
|
+
:query_params => query_params,
|
|
677
|
+
:form_params => form_params,
|
|
678
|
+
:body => post_body,
|
|
679
|
+
:auth_names => auth_names,
|
|
680
|
+
:return_type => return_type
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
684
|
+
if @api_client.config.debugging
|
|
685
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#read_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
686
|
+
end
|
|
687
|
+
return data, status_code, headers
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
# replace the specified Workload
|
|
691
|
+
# @param name [String] name of the Workload
|
|
692
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
693
|
+
# @param body [V1alpha1Workload]
|
|
694
|
+
# @param [Hash] opts the optional parameters
|
|
695
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
696
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
697
|
+
# @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
|
698
|
+
# @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
|
699
|
+
# @return [V1alpha1Workload]
|
|
700
|
+
def replace_namespaced_workload(name, namespace, body, opts = {})
|
|
701
|
+
data, _status_code, _headers = replace_namespaced_workload_with_http_info(name, namespace, body, opts)
|
|
702
|
+
data
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
# replace the specified Workload
|
|
706
|
+
# @param name [String] name of the Workload
|
|
707
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
708
|
+
# @param body [V1alpha1Workload]
|
|
709
|
+
# @param [Hash] opts the optional parameters
|
|
710
|
+
# @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
|
|
711
|
+
# @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
|
|
712
|
+
# @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
|
|
713
|
+
# @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
|
|
714
|
+
# @return [Array<(V1alpha1Workload, Integer, Hash)>] V1alpha1Workload data, response status code and response headers
|
|
715
|
+
def replace_namespaced_workload_with_http_info(name, namespace, body, opts = {})
|
|
716
|
+
if @api_client.config.debugging
|
|
717
|
+
@api_client.config.logger.debug 'Calling API: SchedulingV1alpha1Api.replace_namespaced_workload ...'
|
|
718
|
+
end
|
|
719
|
+
# verify the required parameter 'name' is set
|
|
720
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
721
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha1Api.replace_namespaced_workload"
|
|
722
|
+
end
|
|
723
|
+
# verify the required parameter 'namespace' is set
|
|
724
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
725
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha1Api.replace_namespaced_workload"
|
|
726
|
+
end
|
|
727
|
+
# verify the required parameter 'body' is set
|
|
728
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
729
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha1Api.replace_namespaced_workload"
|
|
730
|
+
end
|
|
731
|
+
# resource path
|
|
732
|
+
local_var_path = '/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
733
|
+
|
|
734
|
+
# query parameters
|
|
735
|
+
query_params = opts[:query_params] || {}
|
|
736
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
737
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
738
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
739
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
740
|
+
|
|
741
|
+
# header parameters
|
|
742
|
+
header_params = opts[:header_params] || {}
|
|
743
|
+
# HTTP header 'Accept' (if needed)
|
|
744
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
745
|
+
|
|
746
|
+
# form parameters
|
|
747
|
+
form_params = opts[:form_params] || {}
|
|
748
|
+
|
|
749
|
+
# http body (model)
|
|
750
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
751
|
+
|
|
752
|
+
# return_type
|
|
753
|
+
return_type = opts[:debug_return_type] || 'V1alpha1Workload'
|
|
754
|
+
|
|
755
|
+
# auth_names
|
|
756
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
757
|
+
|
|
758
|
+
new_options = opts.merge(
|
|
759
|
+
:operation => :"SchedulingV1alpha1Api.replace_namespaced_workload",
|
|
760
|
+
:header_params => header_params,
|
|
761
|
+
:query_params => query_params,
|
|
762
|
+
:form_params => form_params,
|
|
763
|
+
:body => post_body,
|
|
764
|
+
:auth_names => auth_names,
|
|
765
|
+
:return_type => return_type
|
|
766
|
+
)
|
|
767
|
+
|
|
768
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
769
|
+
if @api_client.config.debugging
|
|
770
|
+
@api_client.config.logger.debug "API called: SchedulingV1alpha1Api#replace_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
771
|
+
end
|
|
772
|
+
return data, status_code, headers
|
|
773
|
+
end
|
|
774
|
+
end
|
|
775
|
+
end
|