kruby 1.35.0.5 → 1.36.0.1
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 +4 -4
- data/README.md +410 -339
- data/lib/kubernetes/api/admissionregistration_api.rb +7 -7
- data/lib/kubernetes/api/admissionregistration_v1_api.rb +1311 -139
- data/lib/kubernetes/api/admissionregistration_v1alpha1_api.rb +213 -201
- data/lib/kubernetes/api/admissionregistration_v1beta1_api.rb +213 -201
- data/lib/kubernetes/api/apiextensions_api.rb +7 -7
- data/lib/kubernetes/api/apiextensions_v1_api.rb +13 -7
- data/lib/kubernetes/api/apiregistration_api.rb +7 -7
- data/lib/kubernetes/api/apiregistration_v1_api.rb +13 -7
- data/lib/kubernetes/api/apis_api.rb +7 -7
- data/lib/kubernetes/api/apps_api.rb +7 -7
- data/lib/kubernetes/api/apps_v1_api.rb +52 -7
- data/lib/kubernetes/api/authentication_api.rb +7 -7
- data/lib/kubernetes/api/authentication_v1_api.rb +7 -7
- data/lib/kubernetes/api/authorization_api.rb +7 -7
- data/lib/kubernetes/api/authorization_v1_api.rb +7 -7
- data/lib/kubernetes/api/autoscaling_api.rb +7 -7
- data/lib/kubernetes/api/autoscaling_v1_api.rb +104 -95
- data/lib/kubernetes/api/autoscaling_v2_api.rb +104 -95
- data/lib/kubernetes/api/batch_api.rb +7 -7
- data/lib/kubernetes/api/batch_v1_api.rb +25 -7
- data/lib/kubernetes/api/certificates_api.rb +7 -7
- data/lib/kubernetes/api/certificates_v1_api.rb +13 -7
- data/lib/kubernetes/api/certificates_v1alpha1_api.rb +62 -56
- data/lib/kubernetes/api/certificates_v1beta1_api.rb +71 -56
- data/lib/kubernetes/api/coordination_api.rb +7 -7
- data/lib/kubernetes/api/coordination_v1_api.rb +16 -7
- data/lib/kubernetes/api/coordination_v1alpha2_api.rb +78 -69
- data/lib/kubernetes/api/coordination_v1beta1_api.rb +78 -69
- data/lib/kubernetes/api/core_api.rb +7 -7
- data/lib/kubernetes/api/core_v1_api.rb +195 -69
- data/lib/kubernetes/api/custom_objects_api.rb +18 -18
- data/lib/kubernetes/api/discovery_api.rb +7 -7
- data/lib/kubernetes/api/discovery_v1_api.rb +16 -7
- data/lib/kubernetes/api/events_api.rb +7 -7
- data/lib/kubernetes/api/events_v1_api.rb +78 -69
- data/lib/kubernetes/api/flowcontrol_apiserver_api.rb +7 -7
- data/lib/kubernetes/api/flowcontrol_apiserver_v1_api.rb +19 -7
- data/lib/kubernetes/api/internal_apiserver_api.rb +7 -7
- data/lib/kubernetes/api/internal_apiserver_v1alpha1_api.rb +13 -7
- data/lib/kubernetes/api/logs_api.rb +1 -1
- data/lib/kubernetes/api/networking_api.rb +7 -7
- data/lib/kubernetes/api/networking_v1_api.rb +164 -128
- data/lib/kubernetes/api/networking_v1beta1_api.rb +140 -128
- data/lib/kubernetes/api/node_api.rb +7 -7
- data/lib/kubernetes/api/node_v1_api.rb +13 -7
- data/lib/kubernetes/api/openid_api.rb +1 -1
- data/lib/kubernetes/api/policy_api.rb +7 -7
- data/lib/kubernetes/api/policy_v1_api.rb +16 -7
- data/lib/kubernetes/api/rbac_authorization_api.rb +7 -7
- data/lib/kubernetes/api/rbac_authorization_v1_api.rb +37 -7
- data/lib/kubernetes/api/resource_api.rb +7 -7
- data/lib/kubernetes/api/resource_v1_api.rb +285 -255
- data/lib/kubernetes/api/resource_v1alpha3_api.rb +848 -41
- data/lib/kubernetes/api/resource_v1beta1_api.rb +285 -255
- data/lib/kubernetes/api/resource_v1beta2_api.rb +1110 -279
- data/lib/kubernetes/api/scheduling_api.rb +7 -7
- data/lib/kubernetes/api/scheduling_v1_api.rb +13 -7
- data/lib/kubernetes/api/scheduling_v1alpha2_api.rb +1736 -0
- data/lib/kubernetes/api/storage_api.rb +7 -7
- data/lib/kubernetes/api/storage_v1_api.rb +95 -56
- data/lib/kubernetes/api/storage_v1beta1_api.rb +62 -56
- data/lib/kubernetes/api/storagemigration_api.rb +7 -7
- data/lib/kubernetes/api/storagemigration_v1beta1_api.rb +13 -7
- data/lib/kubernetes/api/version_api.rb +1 -1
- data/lib/kubernetes/api/well_known_api.rb +1 -1
- data/lib/kubernetes/api_client.rb +1 -1
- data/lib/kubernetes/api_error.rb +1 -1
- data/lib/kubernetes/configuration.rb +1 -1
- data/lib/kubernetes/models/admissionregistration_v1_service_reference.rb +5 -5
- data/lib/kubernetes/models/admissionregistration_v1_webhook_client_config.rb +3 -3
- data/lib/kubernetes/models/apiextensions_v1_service_reference.rb +1 -1
- data/lib/kubernetes/models/apiextensions_v1_webhook_client_config.rb +1 -1
- data/lib/kubernetes/models/apiregistration_v1_service_reference.rb +1 -1
- data/lib/kubernetes/models/authentication_v1_token_request.rb +1 -6
- data/lib/kubernetes/models/core_v1_endpoint_port.rb +1 -1
- data/lib/kubernetes/models/core_v1_event.rb +1 -1
- data/lib/kubernetes/models/core_v1_event_list.rb +1 -1
- data/lib/kubernetes/models/core_v1_event_series.rb +1 -1
- data/lib/kubernetes/models/core_v1_resource_claim.rb +1 -1
- data/lib/kubernetes/models/discovery_v1_endpoint_port.rb +1 -1
- data/lib/kubernetes/models/events_v1_event.rb +1 -1
- data/lib/kubernetes/models/events_v1_event_list.rb +1 -1
- data/lib/kubernetes/models/events_v1_event_series.rb +1 -1
- data/lib/kubernetes/models/flowcontrol_v1_subject.rb +1 -1
- data/lib/kubernetes/models/rbac_v1_subject.rb +1 -1
- data/lib/kubernetes/models/resource_v1_resource_claim.rb +2 -2
- data/lib/kubernetes/models/storage_v1_token_request.rb +1 -1
- data/lib/kubernetes/models/v1_affinity.rb +1 -1
- data/lib/kubernetes/models/v1_aggregation_rule.rb +1 -1
- data/lib/kubernetes/models/v1_allocated_device_status.rb +1 -1
- data/lib/kubernetes/models/v1_allocation_result.rb +2 -2
- data/lib/kubernetes/models/v1_api_group.rb +1 -1
- data/lib/kubernetes/models/v1_api_group_list.rb +1 -1
- data/lib/kubernetes/models/v1_api_resource.rb +1 -1
- data/lib/kubernetes/models/v1_api_resource_list.rb +1 -1
- data/lib/kubernetes/models/v1_api_service.rb +1 -1
- data/lib/kubernetes/models/v1_api_service_condition.rb +1 -1
- data/lib/kubernetes/models/v1_api_service_list.rb +1 -1
- data/lib/kubernetes/models/v1_api_service_spec.rb +1 -1
- data/lib/kubernetes/models/v1_api_service_status.rb +1 -1
- data/lib/kubernetes/models/v1_api_versions.rb +1 -1
- data/lib/kubernetes/models/v1_app_armor_profile.rb +1 -1
- data/lib/kubernetes/models/v1_apply_configuration.rb +220 -0
- data/lib/kubernetes/models/v1_attached_volume.rb +1 -1
- data/lib/kubernetes/models/v1_audit_annotation.rb +1 -1
- data/lib/kubernetes/models/v1_aws_elastic_block_store_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_azure_disk_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_azure_file_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_azure_file_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_binding.rb +1 -1
- data/lib/kubernetes/models/v1_bound_object_reference.rb +5 -5
- data/lib/kubernetes/models/v1_capabilities.rb +1 -1
- data/lib/kubernetes/models/v1_capacity_request_policy.rb +1 -1
- data/lib/kubernetes/models/v1_capacity_request_policy_range.rb +1 -1
- data/lib/kubernetes/models/v1_capacity_requirements.rb +1 -1
- data/lib/kubernetes/models/v1_cel_device_selector.rb +2 -2
- data/lib/kubernetes/models/v1_ceph_fs_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_ceph_fs_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_certificate_signing_request.rb +1 -1
- data/lib/kubernetes/models/v1_certificate_signing_request_condition.rb +1 -1
- data/lib/kubernetes/models/v1_certificate_signing_request_list.rb +1 -1
- data/lib/kubernetes/models/v1_certificate_signing_request_spec.rb +1 -1
- data/lib/kubernetes/models/v1_certificate_signing_request_status.rb +1 -1
- data/lib/kubernetes/models/v1_cinder_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_cinder_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_client_ip_config.rb +1 -1
- data/lib/kubernetes/models/v1_cluster_role.rb +1 -1
- data/lib/kubernetes/models/v1_cluster_role_binding.rb +1 -1
- data/lib/kubernetes/models/v1_cluster_role_binding_list.rb +1 -1
- data/lib/kubernetes/models/v1_cluster_role_list.rb +1 -1
- data/lib/kubernetes/models/v1_cluster_trust_bundle_projection.rb +1 -1
- data/lib/kubernetes/models/v1_component_condition.rb +1 -1
- data/lib/kubernetes/models/v1_component_status.rb +1 -1
- data/lib/kubernetes/models/v1_component_status_list.rb +1 -1
- data/lib/kubernetes/models/v1_condition.rb +1 -1
- data/lib/kubernetes/models/v1_config_map.rb +1 -1
- data/lib/kubernetes/models/v1_config_map_env_source.rb +1 -1
- data/lib/kubernetes/models/v1_config_map_key_selector.rb +1 -1
- data/lib/kubernetes/models/v1_config_map_list.rb +1 -1
- data/lib/kubernetes/models/v1_config_map_node_config_source.rb +1 -1
- data/lib/kubernetes/models/v1_config_map_projection.rb +1 -1
- data/lib/kubernetes/models/v1_config_map_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_container.rb +1 -1
- data/lib/kubernetes/models/v1_container_extended_resource_request.rb +1 -1
- data/lib/kubernetes/models/v1_container_image.rb +1 -1
- data/lib/kubernetes/models/v1_container_port.rb +1 -1
- data/lib/kubernetes/models/v1_container_resize_policy.rb +1 -1
- data/lib/kubernetes/models/v1_container_restart_rule.rb +1 -1
- data/lib/kubernetes/models/v1_container_restart_rule_on_exit_codes.rb +1 -1
- data/lib/kubernetes/models/v1_container_state.rb +1 -1
- data/lib/kubernetes/models/v1_container_state_running.rb +1 -1
- data/lib/kubernetes/models/v1_container_state_terminated.rb +1 -1
- data/lib/kubernetes/models/v1_container_state_waiting.rb +1 -1
- data/lib/kubernetes/models/v1_container_status.rb +1 -1
- data/lib/kubernetes/models/v1_container_user.rb +1 -1
- data/lib/kubernetes/models/v1_controller_revision.rb +1 -1
- data/lib/kubernetes/models/v1_controller_revision_list.rb +1 -1
- data/lib/kubernetes/models/v1_counter.rb +1 -1
- data/lib/kubernetes/models/v1_counter_set.rb +1 -1
- data/lib/kubernetes/models/v1_cron_job.rb +6 -1
- data/lib/kubernetes/models/v1_cron_job_list.rb +1 -1
- data/lib/kubernetes/models/v1_cron_job_spec.rb +1 -1
- data/lib/kubernetes/models/v1_cron_job_status.rb +1 -1
- data/lib/kubernetes/models/v1_cross_version_object_reference.rb +1 -1
- data/lib/kubernetes/models/v1_csi_driver.rb +1 -1
- data/lib/kubernetes/models/v1_csi_driver_list.rb +1 -1
- data/lib/kubernetes/models/v1_csi_driver_spec.rb +13 -3
- data/lib/kubernetes/models/v1_csi_node.rb +1 -1
- data/lib/kubernetes/models/v1_csi_node_driver.rb +1 -1
- data/lib/kubernetes/models/v1_csi_node_list.rb +1 -1
- data/lib/kubernetes/models/v1_csi_node_spec.rb +1 -1
- data/lib/kubernetes/models/v1_csi_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_csi_storage_capacity.rb +1 -1
- data/lib/kubernetes/models/v1_csi_storage_capacity_list.rb +1 -1
- data/lib/kubernetes/models/v1_csi_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_column_definition.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_conversion.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_definition.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_definition_condition.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_definition_list.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_definition_names.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_definition_spec.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_definition_status.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_definition_version.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_subresource_scale.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_subresources.rb +1 -1
- data/lib/kubernetes/models/v1_custom_resource_validation.rb +1 -1
- data/lib/kubernetes/models/v1_daemon_endpoint.rb +1 -1
- data/lib/kubernetes/models/v1_daemon_set.rb +1 -1
- data/lib/kubernetes/models/v1_daemon_set_condition.rb +1 -1
- data/lib/kubernetes/models/v1_daemon_set_list.rb +1 -1
- data/lib/kubernetes/models/v1_daemon_set_spec.rb +1 -1
- data/lib/kubernetes/models/v1_daemon_set_status.rb +1 -1
- data/lib/kubernetes/models/v1_daemon_set_update_strategy.rb +1 -1
- data/lib/kubernetes/models/v1_delete_options.rb +1 -1
- data/lib/kubernetes/models/v1_deployment.rb +1 -1
- data/lib/kubernetes/models/v1_deployment_condition.rb +1 -1
- data/lib/kubernetes/models/v1_deployment_list.rb +1 -1
- data/lib/kubernetes/models/v1_deployment_spec.rb +1 -1
- data/lib/kubernetes/models/v1_deployment_status.rb +1 -1
- data/lib/kubernetes/models/v1_deployment_strategy.rb +1 -1
- data/lib/kubernetes/models/v1_device.rb +18 -6
- data/lib/kubernetes/models/v1_device_allocation_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_device_allocation_result.rb +1 -1
- data/lib/kubernetes/models/v1_device_attribute.rb +53 -5
- data/lib/kubernetes/models/v1_device_capacity.rb +1 -1
- data/lib/kubernetes/models/v1_device_claim.rb +1 -1
- data/lib/kubernetes/models/v1_device_claim_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_device_class.rb +2 -2
- data/lib/kubernetes/models/v1_device_class_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_device_class_list.rb +1 -1
- data/lib/kubernetes/models/v1_device_class_spec.rb +2 -2
- data/lib/kubernetes/models/v1_device_constraint.rb +3 -3
- data/lib/kubernetes/models/v1_device_counter_consumption.rb +1 -1
- data/lib/kubernetes/models/v1_device_request.rb +1 -1
- data/lib/kubernetes/models/v1_device_request_allocation_result.rb +5 -5
- data/lib/kubernetes/models/v1_device_selector.rb +1 -1
- data/lib/kubernetes/models/v1_device_sub_request.rb +2 -2
- data/lib/kubernetes/models/v1_device_taint.rb +2 -2
- data/lib/kubernetes/models/v1_device_toleration.rb +1 -1
- data/lib/kubernetes/models/v1_downward_api_projection.rb +1 -1
- data/lib/kubernetes/models/v1_downward_api_volume_file.rb +1 -1
- data/lib/kubernetes/models/v1_downward_api_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_empty_dir_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_endpoint.rb +1 -1
- data/lib/kubernetes/models/v1_endpoint_address.rb +1 -1
- data/lib/kubernetes/models/v1_endpoint_conditions.rb +1 -1
- data/lib/kubernetes/models/v1_endpoint_hints.rb +1 -1
- data/lib/kubernetes/models/v1_endpoint_slice.rb +1 -6
- data/lib/kubernetes/models/v1_endpoint_slice_list.rb +1 -1
- data/lib/kubernetes/models/v1_endpoint_subset.rb +1 -1
- data/lib/kubernetes/models/v1_endpoints.rb +1 -1
- data/lib/kubernetes/models/v1_endpoints_list.rb +1 -1
- data/lib/kubernetes/models/v1_env_from_source.rb +1 -1
- data/lib/kubernetes/models/v1_env_var.rb +1 -1
- data/lib/kubernetes/models/v1_env_var_source.rb +1 -1
- data/lib/kubernetes/models/v1_ephemeral_container.rb +1 -1
- data/lib/kubernetes/models/v1_ephemeral_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_event_source.rb +1 -1
- data/lib/kubernetes/models/v1_eviction.rb +1 -1
- data/lib/kubernetes/models/v1_exact_device_request.rb +3 -3
- data/lib/kubernetes/models/v1_exec_action.rb +1 -1
- data/lib/kubernetes/models/v1_exempt_priority_level_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_expression_warning.rb +3 -3
- data/lib/kubernetes/models/v1_external_documentation.rb +1 -1
- data/lib/kubernetes/models/v1_fc_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_field_selector_attributes.rb +1 -1
- data/lib/kubernetes/models/v1_field_selector_requirement.rb +1 -1
- data/lib/kubernetes/models/v1_file_key_selector.rb +1 -1
- data/lib/kubernetes/models/v1_flex_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_flex_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_flocker_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_flow_distinguisher_method.rb +1 -1
- data/lib/kubernetes/models/v1_flow_schema.rb +1 -1
- data/lib/kubernetes/models/v1_flow_schema_condition.rb +1 -1
- data/lib/kubernetes/models/v1_flow_schema_list.rb +1 -1
- data/lib/kubernetes/models/v1_flow_schema_spec.rb +1 -1
- data/lib/kubernetes/models/v1_flow_schema_status.rb +1 -1
- data/lib/kubernetes/models/v1_for_node.rb +1 -1
- data/lib/kubernetes/models/v1_for_zone.rb +1 -1
- data/lib/kubernetes/models/v1_gce_persistent_disk_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_git_repo_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_glusterfs_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_glusterfs_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_group_resource.rb +1 -1
- data/lib/kubernetes/models/v1_group_subject.rb +1 -1
- data/lib/kubernetes/models/v1_group_version_for_discovery.rb +1 -1
- data/lib/kubernetes/models/v1_grpc_action.rb +1 -1
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler.rb +6 -1
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_list.rb +1 -1
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_spec.rb +1 -1
- data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_status.rb +1 -1
- data/lib/kubernetes/models/v1_host_alias.rb +1 -1
- data/lib/kubernetes/models/v1_host_ip.rb +1 -1
- data/lib/kubernetes/models/v1_host_path_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_http_get_action.rb +1 -1
- data/lib/kubernetes/models/v1_http_header.rb +1 -1
- data/lib/kubernetes/models/v1_http_ingress_path.rb +1 -1
- data/lib/kubernetes/models/v1_http_ingress_rule_value.rb +1 -1
- data/lib/kubernetes/models/v1_image_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_image_volume_status.rb +225 -0
- data/lib/kubernetes/models/v1_ingress.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_backend.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_class.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_class_list.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_class_parameters_reference.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_class_spec.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_list.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_load_balancer_ingress.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_load_balancer_status.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_port_status.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_rule.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_service_backend.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_spec.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_status.rb +1 -1
- data/lib/kubernetes/models/v1_ingress_tls.rb +1 -1
- data/lib/kubernetes/models/v1_ip_address.rb +6 -1
- data/lib/kubernetes/models/v1_ip_address_list.rb +1 -1
- data/lib/kubernetes/models/v1_ip_address_spec.rb +1 -1
- data/lib/kubernetes/models/v1_ip_block.rb +1 -1
- data/lib/kubernetes/models/v1_iscsi_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_iscsi_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_job.rb +1 -1
- data/lib/kubernetes/models/v1_job_condition.rb +1 -1
- data/lib/kubernetes/models/v1_job_list.rb +1 -1
- data/lib/kubernetes/models/v1_job_spec.rb +1 -1
- data/lib/kubernetes/models/v1_job_status.rb +1 -1
- data/lib/kubernetes/models/v1_job_template_spec.rb +1 -1
- data/lib/kubernetes/models/{v2_api_resource_discovery.rb → v1_json_patch.rb} +13 -109
- data/lib/kubernetes/models/v1_json_schema_props.rb +1 -1
- data/lib/kubernetes/models/v1_key_to_path.rb +1 -1
- data/lib/kubernetes/models/v1_label_selector.rb +1 -1
- data/lib/kubernetes/models/v1_label_selector_attributes.rb +1 -1
- data/lib/kubernetes/models/v1_label_selector_requirement.rb +1 -1
- data/lib/kubernetes/models/v1_lease.rb +1 -1
- data/lib/kubernetes/models/v1_lease_list.rb +1 -1
- data/lib/kubernetes/models/v1_lease_spec.rb +1 -1
- data/lib/kubernetes/models/v1_lifecycle.rb +1 -1
- data/lib/kubernetes/models/v1_lifecycle_handler.rb +1 -1
- data/lib/kubernetes/models/v1_limit_range.rb +1 -1
- data/lib/kubernetes/models/v1_limit_range_item.rb +1 -1
- data/lib/kubernetes/models/v1_limit_range_list.rb +1 -1
- data/lib/kubernetes/models/v1_limit_range_spec.rb +1 -1
- data/lib/kubernetes/models/v1_limit_response.rb +1 -1
- data/lib/kubernetes/models/v1_limited_priority_level_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_linux_container_user.rb +1 -1
- data/lib/kubernetes/models/v1_list_meta.rb +14 -5
- data/lib/kubernetes/models/v1_load_balancer_ingress.rb +1 -1
- data/lib/kubernetes/models/v1_load_balancer_status.rb +1 -1
- data/lib/kubernetes/models/v1_local_object_reference.rb +1 -1
- data/lib/kubernetes/models/v1_local_subject_access_review.rb +1 -1
- data/lib/kubernetes/models/v1_local_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_managed_fields_entry.rb +1 -1
- data/lib/kubernetes/models/v1_match_condition.rb +3 -3
- data/lib/kubernetes/models/v1_match_resources.rb +3 -3
- data/lib/kubernetes/models/v1_modify_volume_status.rb +1 -1
- data/lib/kubernetes/models/{v2beta1_api_group_discovery.rb → v1_mutating_admission_policy.rb} +14 -14
- data/lib/kubernetes/models/v1_mutating_admission_policy_binding.rb +248 -0
- data/lib/kubernetes/models/v1_mutating_admission_policy_binding_list.rb +256 -0
- data/lib/kubernetes/models/v1_mutating_admission_policy_binding_spec.rb +238 -0
- data/lib/kubernetes/models/v1_mutating_admission_policy_list.rb +256 -0
- data/lib/kubernetes/models/v1_mutating_admission_policy_spec.rb +284 -0
- data/lib/kubernetes/models/v1_mutating_webhook.rb +8 -8
- data/lib/kubernetes/models/v1_mutating_webhook_configuration.rb +2 -2
- data/lib/kubernetes/models/v1_mutating_webhook_configuration_list.rb +1 -1
- data/lib/kubernetes/models/{v2_api_version_discovery.rb → v1_mutation.rb} +28 -31
- data/lib/kubernetes/models/v1_named_rule_with_operations.rb +6 -6
- data/lib/kubernetes/models/v1_namespace.rb +1 -1
- data/lib/kubernetes/models/v1_namespace_condition.rb +1 -1
- data/lib/kubernetes/models/v1_namespace_list.rb +1 -1
- data/lib/kubernetes/models/v1_namespace_spec.rb +1 -1
- data/lib/kubernetes/models/v1_namespace_status.rb +1 -1
- data/lib/kubernetes/models/v1_network_device_data.rb +3 -3
- data/lib/kubernetes/models/v1_network_policy.rb +1 -1
- data/lib/kubernetes/models/v1_network_policy_egress_rule.rb +1 -1
- data/lib/kubernetes/models/v1_network_policy_ingress_rule.rb +1 -1
- data/lib/kubernetes/models/v1_network_policy_list.rb +1 -1
- data/lib/kubernetes/models/v1_network_policy_peer.rb +1 -1
- data/lib/kubernetes/models/v1_network_policy_port.rb +1 -1
- data/lib/kubernetes/models/v1_network_policy_spec.rb +1 -1
- data/lib/kubernetes/models/v1_nfs_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_node.rb +1 -1
- data/lib/kubernetes/models/v1_node_address.rb +1 -1
- data/lib/kubernetes/models/v1_node_affinity.rb +1 -1
- data/lib/kubernetes/models/{v2beta1_api_subresource_discovery.rb → v1_node_allocatable_resource_claim_status.rb} +36 -44
- data/lib/kubernetes/models/v1_node_allocatable_resource_mapping.rb +230 -0
- data/lib/kubernetes/models/v1_node_condition.rb +1 -1
- data/lib/kubernetes/models/v1_node_config_source.rb +1 -1
- data/lib/kubernetes/models/v1_node_config_status.rb +1 -1
- data/lib/kubernetes/models/v1_node_daemon_endpoints.rb +1 -1
- data/lib/kubernetes/models/v1_node_features.rb +1 -1
- data/lib/kubernetes/models/v1_node_list.rb +1 -1
- data/lib/kubernetes/models/v1_node_runtime_handler.rb +1 -1
- data/lib/kubernetes/models/v1_node_runtime_handler_features.rb +1 -1
- data/lib/kubernetes/models/v1_node_selector.rb +1 -1
- data/lib/kubernetes/models/v1_node_selector_requirement.rb +1 -1
- data/lib/kubernetes/models/v1_node_selector_term.rb +1 -1
- data/lib/kubernetes/models/v1_node_spec.rb +1 -1
- data/lib/kubernetes/models/v1_node_status.rb +1 -1
- data/lib/kubernetes/models/v1_node_swap_status.rb +1 -1
- data/lib/kubernetes/models/v1_node_system_info.rb +1 -1
- data/lib/kubernetes/models/v1_non_resource_attributes.rb +3 -3
- data/lib/kubernetes/models/v1_non_resource_policy_rule.rb +1 -1
- data/lib/kubernetes/models/v1_non_resource_rule.rb +3 -3
- data/lib/kubernetes/models/v1_object_field_selector.rb +1 -1
- data/lib/kubernetes/models/v1_object_meta.rb +1 -1
- data/lib/kubernetes/models/v1_object_reference.rb +1 -1
- data/lib/kubernetes/models/v1_opaque_device_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_overhead.rb +1 -1
- data/lib/kubernetes/models/v1_owner_reference.rb +1 -1
- data/lib/kubernetes/models/v1_param_kind.rb +3 -3
- data/lib/kubernetes/models/v1_param_ref.rb +2 -2
- data/lib/kubernetes/models/v1_parent_reference.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_claim.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_claim_condition.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_claim_list.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_claim_spec.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_claim_status.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_claim_template.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_claim_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_list.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_spec.rb +1 -1
- data/lib/kubernetes/models/v1_persistent_volume_status.rb +1 -1
- data/lib/kubernetes/models/v1_photon_persistent_disk_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_pod.rb +1 -1
- data/lib/kubernetes/models/v1_pod_affinity.rb +1 -1
- data/lib/kubernetes/models/v1_pod_affinity_term.rb +1 -1
- data/lib/kubernetes/models/v1_pod_anti_affinity.rb +1 -1
- data/lib/kubernetes/models/v1_pod_certificate_projection.rb +1 -1
- data/lib/kubernetes/models/v1_pod_condition.rb +2 -2
- data/lib/kubernetes/models/v1_pod_disruption_budget.rb +1 -1
- data/lib/kubernetes/models/v1_pod_disruption_budget_list.rb +1 -1
- data/lib/kubernetes/models/v1_pod_disruption_budget_spec.rb +1 -1
- data/lib/kubernetes/models/v1_pod_disruption_budget_status.rb +1 -21
- data/lib/kubernetes/models/v1_pod_dns_config.rb +1 -1
- data/lib/kubernetes/models/v1_pod_dns_config_option.rb +1 -1
- data/lib/kubernetes/models/v1_pod_extended_resource_claim_status.rb +1 -1
- data/lib/kubernetes/models/v1_pod_failure_policy.rb +1 -1
- data/lib/kubernetes/models/v1_pod_failure_policy_on_exit_codes_requirement.rb +1 -1
- data/lib/kubernetes/models/v1_pod_failure_policy_on_pod_conditions_pattern.rb +1 -1
- data/lib/kubernetes/models/v1_pod_failure_policy_rule.rb +1 -1
- data/lib/kubernetes/models/v1_pod_ip.rb +1 -1
- data/lib/kubernetes/models/v1_pod_list.rb +1 -1
- data/lib/kubernetes/models/v1_pod_os.rb +1 -1
- data/lib/kubernetes/models/v1_pod_readiness_gate.rb +1 -1
- data/lib/kubernetes/models/v1_pod_resource_claim.rb +3 -3
- data/lib/kubernetes/models/v1_pod_resource_claim_status.rb +2 -2
- data/lib/kubernetes/models/v1_pod_scheduling_gate.rb +1 -1
- data/lib/kubernetes/models/v1_pod_scheduling_group.rb +220 -0
- data/lib/kubernetes/models/v1_pod_security_context.rb +1 -1
- data/lib/kubernetes/models/v1_pod_spec.rb +15 -15
- data/lib/kubernetes/models/v1_pod_status.rb +14 -2
- data/lib/kubernetes/models/v1_pod_template.rb +1 -1
- data/lib/kubernetes/models/v1_pod_template_list.rb +1 -1
- data/lib/kubernetes/models/v1_pod_template_spec.rb +1 -1
- data/lib/kubernetes/models/v1_policy_rule.rb +1 -1
- data/lib/kubernetes/models/v1_policy_rules_with_subjects.rb +1 -1
- data/lib/kubernetes/models/v1_port_status.rb +1 -1
- data/lib/kubernetes/models/v1_portworx_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_preconditions.rb +1 -1
- data/lib/kubernetes/models/v1_preferred_scheduling_term.rb +1 -1
- data/lib/kubernetes/models/v1_priority_class.rb +1 -6
- data/lib/kubernetes/models/v1_priority_class_list.rb +1 -1
- data/lib/kubernetes/models/v1_priority_level_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_priority_level_configuration_condition.rb +1 -1
- data/lib/kubernetes/models/v1_priority_level_configuration_list.rb +1 -1
- data/lib/kubernetes/models/v1_priority_level_configuration_reference.rb +1 -1
- data/lib/kubernetes/models/v1_priority_level_configuration_spec.rb +1 -1
- data/lib/kubernetes/models/v1_priority_level_configuration_status.rb +1 -1
- data/lib/kubernetes/models/v1_probe.rb +1 -1
- data/lib/kubernetes/models/v1_projected_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_queuing_configuration.rb +1 -1
- data/lib/kubernetes/models/v1_quobyte_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_rbd_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_rbd_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_replica_set.rb +1 -1
- data/lib/kubernetes/models/v1_replica_set_condition.rb +1 -1
- data/lib/kubernetes/models/v1_replica_set_list.rb +1 -1
- data/lib/kubernetes/models/v1_replica_set_spec.rb +1 -1
- data/lib/kubernetes/models/v1_replica_set_status.rb +1 -1
- data/lib/kubernetes/models/v1_replication_controller.rb +1 -1
- data/lib/kubernetes/models/v1_replication_controller_condition.rb +1 -1
- data/lib/kubernetes/models/v1_replication_controller_list.rb +1 -1
- data/lib/kubernetes/models/v1_replication_controller_spec.rb +1 -1
- data/lib/kubernetes/models/v1_replication_controller_status.rb +1 -1
- data/lib/kubernetes/models/v1_resource_attributes.rb +8 -8
- data/lib/kubernetes/models/v1_resource_claim_consumer_reference.rb +1 -1
- data/lib/kubernetes/models/v1_resource_claim_list.rb +1 -1
- data/lib/kubernetes/models/v1_resource_claim_spec.rb +1 -1
- data/lib/kubernetes/models/v1_resource_claim_status.rb +1 -1
- data/lib/kubernetes/models/v1_resource_claim_template.rb +2 -2
- data/lib/kubernetes/models/v1_resource_claim_template_list.rb +1 -1
- data/lib/kubernetes/models/v1_resource_claim_template_spec.rb +1 -1
- data/lib/kubernetes/models/v1_resource_field_selector.rb +1 -1
- data/lib/kubernetes/models/v1_resource_health.rb +12 -2
- data/lib/kubernetes/models/v1_resource_policy_rule.rb +1 -1
- data/lib/kubernetes/models/v1_resource_pool.rb +1 -1
- data/lib/kubernetes/models/v1_resource_quota.rb +1 -1
- data/lib/kubernetes/models/v1_resource_quota_list.rb +1 -1
- data/lib/kubernetes/models/v1_resource_quota_spec.rb +1 -1
- data/lib/kubernetes/models/v1_resource_quota_status.rb +1 -1
- data/lib/kubernetes/models/v1_resource_requirements.rb +1 -1
- data/lib/kubernetes/models/v1_resource_rule.rb +5 -5
- data/lib/kubernetes/models/v1_resource_slice.rb +2 -2
- data/lib/kubernetes/models/v1_resource_slice_list.rb +1 -1
- data/lib/kubernetes/models/v1_resource_slice_spec.rb +1 -1
- data/lib/kubernetes/models/v1_resource_status.rb +1 -1
- data/lib/kubernetes/models/v1_role.rb +1 -1
- data/lib/kubernetes/models/v1_role_binding.rb +1 -1
- data/lib/kubernetes/models/v1_role_binding_list.rb +1 -1
- data/lib/kubernetes/models/v1_role_list.rb +1 -1
- data/lib/kubernetes/models/v1_role_ref.rb +1 -6
- data/lib/kubernetes/models/v1_rolling_update_daemon_set.rb +1 -1
- data/lib/kubernetes/models/v1_rolling_update_deployment.rb +1 -1
- data/lib/kubernetes/models/v1_rolling_update_stateful_set_strategy.rb +1 -1
- data/lib/kubernetes/models/v1_rule_with_operations.rb +5 -5
- data/lib/kubernetes/models/v1_runtime_class.rb +1 -1
- data/lib/kubernetes/models/v1_runtime_class_list.rb +1 -1
- data/lib/kubernetes/models/v1_scale.rb +1 -1
- data/lib/kubernetes/models/v1_scale_io_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_scale_io_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_scale_spec.rb +1 -1
- data/lib/kubernetes/models/v1_scale_status.rb +1 -1
- data/lib/kubernetes/models/v1_scheduling.rb +1 -1
- data/lib/kubernetes/models/v1_scope_selector.rb +1 -1
- data/lib/kubernetes/models/v1_scoped_resource_selector_requirement.rb +1 -1
- data/lib/kubernetes/models/v1_se_linux_options.rb +1 -1
- data/lib/kubernetes/models/v1_seccomp_profile.rb +1 -1
- data/lib/kubernetes/models/v1_secret.rb +1 -1
- data/lib/kubernetes/models/v1_secret_env_source.rb +1 -1
- data/lib/kubernetes/models/v1_secret_key_selector.rb +1 -1
- data/lib/kubernetes/models/v1_secret_list.rb +1 -1
- data/lib/kubernetes/models/v1_secret_projection.rb +1 -1
- data/lib/kubernetes/models/v1_secret_reference.rb +1 -1
- data/lib/kubernetes/models/v1_secret_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_security_context.rb +2 -2
- data/lib/kubernetes/models/v1_selectable_field.rb +1 -1
- data/lib/kubernetes/models/v1_self_subject_access_review.rb +1 -1
- data/lib/kubernetes/models/v1_self_subject_access_review_spec.rb +2 -2
- data/lib/kubernetes/models/v1_self_subject_review.rb +1 -1
- data/lib/kubernetes/models/v1_self_subject_review_status.rb +1 -1
- data/lib/kubernetes/models/v1_self_subject_rules_review.rb +1 -1
- data/lib/kubernetes/models/v1_self_subject_rules_review_spec.rb +2 -2
- data/lib/kubernetes/models/v1_server_address_by_client_cidr.rb +1 -1
- data/lib/kubernetes/models/v1_service.rb +1 -1
- data/lib/kubernetes/models/v1_service_account.rb +1 -1
- data/lib/kubernetes/models/v1_service_account_list.rb +1 -1
- data/lib/kubernetes/models/v1_service_account_subject.rb +1 -1
- data/lib/kubernetes/models/v1_service_account_token_projection.rb +1 -1
- data/lib/kubernetes/models/v1_service_backend_port.rb +1 -1
- data/lib/kubernetes/models/v1_service_cidr.rb +1 -1
- data/lib/kubernetes/models/v1_service_cidr_list.rb +1 -1
- data/lib/kubernetes/models/v1_service_cidr_spec.rb +1 -1
- data/lib/kubernetes/models/v1_service_cidr_status.rb +1 -1
- data/lib/kubernetes/models/v1_service_list.rb +1 -1
- data/lib/kubernetes/models/v1_service_port.rb +1 -1
- data/lib/kubernetes/models/v1_service_spec.rb +1 -1
- data/lib/kubernetes/models/v1_service_status.rb +1 -1
- data/lib/kubernetes/models/v1_session_affinity_config.rb +1 -1
- data/lib/kubernetes/models/v1_shard_info.rb +225 -0
- data/lib/kubernetes/models/v1_sleep_action.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set_condition.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set_list.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set_ordinals.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set_persistent_volume_claim_retention_policy.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set_spec.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set_status.rb +1 -1
- data/lib/kubernetes/models/v1_stateful_set_update_strategy.rb +1 -1
- data/lib/kubernetes/models/v1_status.rb +1 -1
- data/lib/kubernetes/models/v1_status_cause.rb +1 -1
- data/lib/kubernetes/models/v1_status_details.rb +1 -1
- data/lib/kubernetes/models/v1_storage_class.rb +1 -1
- data/lib/kubernetes/models/v1_storage_class_list.rb +1 -1
- data/lib/kubernetes/models/v1_storage_os_persistent_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_storage_os_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_subject_access_review.rb +1 -1
- data/lib/kubernetes/models/v1_subject_access_review_spec.rb +6 -6
- data/lib/kubernetes/models/v1_subject_access_review_status.rb +5 -5
- data/lib/kubernetes/models/v1_subject_rules_review_status.rb +5 -5
- data/lib/kubernetes/models/v1_success_policy.rb +1 -1
- data/lib/kubernetes/models/v1_success_policy_rule.rb +1 -1
- data/lib/kubernetes/models/v1_sysctl.rb +1 -1
- data/lib/kubernetes/models/v1_taint.rb +1 -1
- data/lib/kubernetes/models/v1_tcp_socket_action.rb +1 -1
- data/lib/kubernetes/models/v1_token_request_spec.rb +3 -8
- data/lib/kubernetes/models/v1_token_request_status.rb +3 -13
- data/lib/kubernetes/models/v1_token_review.rb +1 -1
- data/lib/kubernetes/models/v1_token_review_spec.rb +8 -3
- data/lib/kubernetes/models/v1_token_review_status.rb +4 -4
- data/lib/kubernetes/models/v1_toleration.rb +1 -1
- data/lib/kubernetes/models/v1_topology_selector_label_requirement.rb +1 -1
- data/lib/kubernetes/models/v1_topology_selector_term.rb +1 -1
- data/lib/kubernetes/models/v1_topology_spread_constraint.rb +1 -1
- data/lib/kubernetes/models/v1_type_checking.rb +2 -2
- data/lib/kubernetes/models/v1_typed_local_object_reference.rb +1 -1
- data/lib/kubernetes/models/v1_typed_object_reference.rb +1 -1
- data/lib/kubernetes/models/v1_uncounted_terminated_pods.rb +1 -1
- data/lib/kubernetes/models/v1_user_info.rb +5 -5
- data/lib/kubernetes/models/v1_user_subject.rb +1 -1
- data/lib/kubernetes/models/v1_validating_admission_policy.rb +1 -1
- data/lib/kubernetes/models/v1_validating_admission_policy_binding.rb +6 -1
- data/lib/kubernetes/models/v1_validating_admission_policy_binding_list.rb +1 -1
- data/lib/kubernetes/models/v1_validating_admission_policy_binding_spec.rb +12 -2
- data/lib/kubernetes/models/v1_validating_admission_policy_list.rb +1 -1
- data/lib/kubernetes/models/v1_validating_admission_policy_spec.rb +4 -4
- data/lib/kubernetes/models/v1_validating_admission_policy_status.rb +3 -3
- data/lib/kubernetes/models/v1_validating_webhook.rb +8 -8
- data/lib/kubernetes/models/v1_validating_webhook_configuration.rb +2 -2
- data/lib/kubernetes/models/v1_validating_webhook_configuration_list.rb +1 -1
- data/lib/kubernetes/models/v1_validation.rb +4 -4
- data/lib/kubernetes/models/v1_validation_rule.rb +1 -1
- data/lib/kubernetes/models/v1_variable.rb +3 -3
- data/lib/kubernetes/models/v1_volume.rb +1 -1
- data/lib/kubernetes/models/v1_volume_attachment.rb +1 -1
- data/lib/kubernetes/models/v1_volume_attachment_list.rb +1 -1
- data/lib/kubernetes/models/v1_volume_attachment_source.rb +1 -1
- data/lib/kubernetes/models/v1_volume_attachment_spec.rb +1 -1
- data/lib/kubernetes/models/v1_volume_attachment_status.rb +1 -1
- data/lib/kubernetes/models/v1_volume_attributes_class.rb +1 -1
- data/lib/kubernetes/models/v1_volume_attributes_class_list.rb +1 -1
- data/lib/kubernetes/models/v1_volume_device.rb +1 -1
- data/lib/kubernetes/models/v1_volume_error.rb +2 -2
- data/lib/kubernetes/models/v1_volume_mount.rb +1 -1
- data/lib/kubernetes/models/v1_volume_mount_status.rb +14 -5
- data/lib/kubernetes/models/v1_volume_node_affinity.rb +1 -1
- data/lib/kubernetes/models/v1_volume_node_resources.rb +1 -1
- data/lib/kubernetes/models/v1_volume_projection.rb +1 -1
- data/lib/kubernetes/models/v1_volume_resource_requirements.rb +1 -1
- data/lib/kubernetes/models/v1_volume_status.rb +219 -0
- data/lib/kubernetes/models/v1_vsphere_virtual_disk_volume_source.rb +1 -1
- data/lib/kubernetes/models/v1_watch_event.rb +1 -1
- data/lib/kubernetes/models/v1_webhook_conversion.rb +1 -1
- data/lib/kubernetes/models/v1_weighted_pod_affinity_term.rb +1 -1
- data/lib/kubernetes/models/v1_windows_security_context_options.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_apply_configuration.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_list.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_spec.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_json_patch.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_match_condition.rb +3 -3
- data/lib/kubernetes/models/v1alpha1_match_resources.rb +3 -3
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_list.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_spec.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_list.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_spec.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_mutation.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_named_rule_with_operations.rb +6 -6
- data/lib/kubernetes/models/v1alpha1_param_kind.rb +3 -3
- data/lib/kubernetes/models/v1alpha1_param_ref.rb +3 -3
- data/lib/kubernetes/models/v1alpha1_server_storage_version.rb +20 -5
- data/lib/kubernetes/models/v1alpha1_storage_version.rb +5 -10
- data/lib/kubernetes/models/v1alpha1_storage_version_condition.rb +7 -7
- data/lib/kubernetes/models/v1alpha1_storage_version_list.rb +1 -1
- data/lib/kubernetes/models/v1alpha1_storage_version_status.rb +4 -4
- data/lib/kubernetes/models/v1alpha1_variable.rb +3 -3
- data/lib/kubernetes/models/{v1alpha1_gang_scheduling_policy.rb → v1alpha2_gang_scheduling_policy.rb} +4 -4
- data/lib/kubernetes/models/v1alpha2_lease_candidate.rb +6 -1
- data/lib/kubernetes/models/v1alpha2_lease_candidate_list.rb +1 -1
- data/lib/kubernetes/models/v1alpha2_lease_candidate_spec.rb +1 -1
- data/lib/kubernetes/models/v1alpha2_pod_group.rb +262 -0
- data/lib/kubernetes/models/{v2_api_group_discovery_list.rb → v1alpha2_pod_group_list.rb} +23 -20
- data/lib/kubernetes/models/{v1_workload_reference.rb → v1alpha2_pod_group_resource_claim.rb} +21 -26
- data/lib/kubernetes/models/v1alpha2_pod_group_resource_claim_status.rb +235 -0
- data/lib/kubernetes/models/v1alpha2_pod_group_scheduling_constraints.rb +222 -0
- data/lib/kubernetes/models/{v1alpha1_pod_group_policy.rb → v1alpha2_pod_group_scheduling_policy.rb} +6 -6
- data/lib/kubernetes/models/{v2beta1_api_resource_discovery.rb → v1alpha2_pod_group_spec.rb} +56 -88
- data/lib/kubernetes/models/v1alpha2_pod_group_status.rb +234 -0
- data/lib/kubernetes/models/v1alpha2_pod_group_template.rb +290 -0
- data/lib/kubernetes/models/v1alpha2_pod_group_template_reference.rb +219 -0
- data/lib/kubernetes/models/v1alpha2_topology_constraint.rb +225 -0
- data/lib/kubernetes/models/{v1alpha1_typed_local_object_reference.rb → v1alpha2_typed_local_object_reference.rb} +4 -4
- data/lib/kubernetes/models/{v1alpha1_workload.rb → v1alpha2_workload.rb} +6 -6
- data/lib/kubernetes/models/{v1alpha1_workload_list.rb → v1alpha2_workload_list.rb} +5 -5
- data/lib/kubernetes/models/v1alpha2_workload_pod_group_template_reference.rb +240 -0
- data/lib/kubernetes/models/{v1alpha1_workload_spec.rb → v1alpha2_workload_spec.rb} +17 -17
- data/lib/kubernetes/models/v1alpha3_device_taint.rb +2 -2
- data/lib/kubernetes/models/v1alpha3_device_taint_rule.rb +1 -1
- data/lib/kubernetes/models/v1alpha3_device_taint_rule_list.rb +1 -1
- data/lib/kubernetes/models/v1alpha3_device_taint_rule_spec.rb +1 -1
- data/lib/kubernetes/models/v1alpha3_device_taint_rule_status.rb +1 -1
- data/lib/kubernetes/models/v1alpha3_device_taint_selector.rb +1 -1
- data/lib/kubernetes/models/v1alpha3_pool_status.rb +325 -0
- data/lib/kubernetes/models/v1alpha3_resource_pool_status_request.rb +267 -0
- data/lib/kubernetes/models/v1alpha3_resource_pool_status_request_list.rb +256 -0
- data/lib/kubernetes/models/v1alpha3_resource_pool_status_request_spec.rb +245 -0
- data/lib/kubernetes/models/{v2_api_subresource_discovery.rb → v1alpha3_resource_pool_status_request_status.rb} +33 -46
- data/lib/kubernetes/models/v1beta1_allocated_device_status.rb +1 -1
- data/lib/kubernetes/models/v1beta1_allocation_result.rb +2 -2
- data/lib/kubernetes/models/v1beta1_apply_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta1_basic_device.rb +18 -6
- data/lib/kubernetes/models/v1beta1_capacity_request_policy.rb +1 -1
- data/lib/kubernetes/models/v1beta1_capacity_request_policy_range.rb +1 -1
- data/lib/kubernetes/models/v1beta1_capacity_requirements.rb +1 -1
- data/lib/kubernetes/models/v1beta1_cel_device_selector.rb +2 -2
- data/lib/kubernetes/models/v1beta1_cluster_trust_bundle.rb +1 -1
- data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_counter.rb +1 -1
- data/lib/kubernetes/models/v1beta1_counter_set.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_allocation_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_allocation_result.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_attribute.rb +53 -5
- data/lib/kubernetes/models/v1beta1_device_capacity.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_claim.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_claim_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_class.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_class_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_class_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_class_spec.rb +2 -2
- data/lib/kubernetes/models/v1beta1_device_constraint.rb +3 -3
- data/lib/kubernetes/models/v1beta1_device_counter_consumption.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_request.rb +2 -2
- data/lib/kubernetes/models/v1beta1_device_request_allocation_result.rb +4 -4
- data/lib/kubernetes/models/v1beta1_device_selector.rb +1 -1
- data/lib/kubernetes/models/v1beta1_device_sub_request.rb +2 -2
- data/lib/kubernetes/models/v1beta1_device_taint.rb +2 -2
- data/lib/kubernetes/models/v1beta1_device_toleration.rb +1 -1
- data/lib/kubernetes/models/v1beta1_ip_address.rb +6 -1
- data/lib/kubernetes/models/v1beta1_ip_address_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_ip_address_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_json_patch.rb +1 -1
- data/lib/kubernetes/models/v1beta1_lease_candidate.rb +6 -1
- data/lib/kubernetes/models/v1beta1_lease_candidate_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_lease_candidate_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_match_condition.rb +3 -3
- data/lib/kubernetes/models/v1beta1_match_resources.rb +3 -3
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy.rb +1 -1
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding.rb +1 -1
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_mutating_admission_policy_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_mutation.rb +1 -1
- data/lib/kubernetes/models/v1beta1_named_rule_with_operations.rb +6 -6
- data/lib/kubernetes/models/v1beta1_network_device_data.rb +3 -3
- data/lib/kubernetes/models/v1beta1_node_allocatable_resource_mapping.rb +230 -0
- data/lib/kubernetes/models/v1beta1_opaque_device_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta1_param_kind.rb +3 -3
- data/lib/kubernetes/models/v1beta1_param_ref.rb +2 -2
- data/lib/kubernetes/models/v1beta1_parent_reference.rb +1 -1
- data/lib/kubernetes/models/v1beta1_pod_certificate_request.rb +1 -1
- data/lib/kubernetes/models/v1beta1_pod_certificate_request_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_pod_certificate_request_spec.rb +46 -28
- data/lib/kubernetes/models/v1beta1_pod_certificate_request_status.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim_consumer_reference.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim_status.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim_template.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim_template_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_claim_template_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_pool.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_slice.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_slice_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_resource_slice_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_service_cidr.rb +1 -1
- data/lib/kubernetes/models/v1beta1_service_cidr_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_service_cidr_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_service_cidr_status.rb +1 -1
- data/lib/kubernetes/models/v1beta1_storage_version_migration.rb +1 -1
- data/lib/kubernetes/models/v1beta1_storage_version_migration_list.rb +1 -1
- data/lib/kubernetes/models/v1beta1_storage_version_migration_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta1_storage_version_migration_status.rb +1 -1
- data/lib/kubernetes/models/v1beta1_variable.rb +3 -3
- data/lib/kubernetes/models/v1beta1_volume_attributes_class.rb +1 -1
- data/lib/kubernetes/models/v1beta1_volume_attributes_class_list.rb +1 -1
- data/lib/kubernetes/models/v1beta2_allocated_device_status.rb +1 -1
- data/lib/kubernetes/models/v1beta2_allocation_result.rb +2 -2
- data/lib/kubernetes/models/v1beta2_capacity_request_policy.rb +1 -1
- data/lib/kubernetes/models/v1beta2_capacity_request_policy_range.rb +1 -1
- data/lib/kubernetes/models/v1beta2_capacity_requirements.rb +1 -1
- data/lib/kubernetes/models/v1beta2_cel_device_selector.rb +2 -2
- data/lib/kubernetes/models/v1beta2_counter.rb +1 -1
- data/lib/kubernetes/models/v1beta2_counter_set.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device.rb +18 -6
- data/lib/kubernetes/models/v1beta2_device_allocation_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_allocation_result.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_attribute.rb +53 -5
- data/lib/kubernetes/models/v1beta2_device_capacity.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_claim.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_claim_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_class.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_class_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_class_list.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_class_spec.rb +2 -2
- data/lib/kubernetes/models/v1beta2_device_constraint.rb +3 -3
- data/lib/kubernetes/models/v1beta2_device_counter_consumption.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_request.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_request_allocation_result.rb +4 -4
- data/lib/kubernetes/models/v1beta2_device_selector.rb +1 -1
- data/lib/kubernetes/models/v1beta2_device_sub_request.rb +2 -2
- data/lib/kubernetes/models/v1beta2_device_taint.rb +2 -2
- data/lib/kubernetes/models/{v2_api_group_discovery.rb → v1beta2_device_taint_rule.rb} +28 -14
- data/lib/kubernetes/models/{v2beta1_api_group_discovery_list.rb → v1beta2_device_taint_rule_list.rb} +23 -20
- data/lib/kubernetes/models/{v1alpha1_pod_group.rb → v1beta2_device_taint_rule_spec.rb} +21 -27
- data/lib/kubernetes/models/v1beta2_device_taint_rule_status.rb +222 -0
- data/lib/kubernetes/models/{v2beta1_api_version_discovery.rb → v1beta2_device_taint_selector.rb} +27 -33
- data/lib/kubernetes/models/v1beta2_device_toleration.rb +1 -1
- data/lib/kubernetes/models/v1beta2_exact_device_request.rb +2 -2
- data/lib/kubernetes/models/v1beta2_network_device_data.rb +3 -3
- data/lib/kubernetes/models/v1beta2_node_allocatable_resource_mapping.rb +230 -0
- data/lib/kubernetes/models/v1beta2_opaque_device_configuration.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim_consumer_reference.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim_list.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim_status.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim_template.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim_template_list.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_claim_template_spec.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_pool.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_slice.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_slice_list.rb +1 -1
- data/lib/kubernetes/models/v1beta2_resource_slice_spec.rb +1 -1
- data/lib/kubernetes/models/v2_container_resource_metric_source.rb +1 -1
- data/lib/kubernetes/models/v2_container_resource_metric_status.rb +1 -1
- data/lib/kubernetes/models/v2_cross_version_object_reference.rb +1 -1
- data/lib/kubernetes/models/v2_external_metric_source.rb +1 -1
- data/lib/kubernetes/models/v2_external_metric_status.rb +1 -1
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler.rb +6 -1
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_behavior.rb +1 -1
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_condition.rb +1 -1
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_list.rb +1 -1
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_spec.rb +1 -1
- data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_status.rb +1 -1
- data/lib/kubernetes/models/v2_hpa_scaling_policy.rb +1 -1
- data/lib/kubernetes/models/v2_hpa_scaling_rules.rb +1 -1
- data/lib/kubernetes/models/v2_metric_identifier.rb +1 -1
- data/lib/kubernetes/models/v2_metric_spec.rb +1 -1
- data/lib/kubernetes/models/v2_metric_status.rb +1 -1
- data/lib/kubernetes/models/v2_metric_target.rb +1 -1
- data/lib/kubernetes/models/v2_metric_value_status.rb +1 -1
- data/lib/kubernetes/models/v2_object_metric_source.rb +1 -1
- data/lib/kubernetes/models/v2_object_metric_status.rb +1 -1
- data/lib/kubernetes/models/v2_pods_metric_source.rb +1 -1
- data/lib/kubernetes/models/v2_pods_metric_status.rb +1 -1
- data/lib/kubernetes/models/v2_resource_metric_source.rb +1 -1
- data/lib/kubernetes/models/v2_resource_metric_status.rb +1 -1
- data/lib/kubernetes/models/version_info.rb +1 -1
- data/lib/kubernetes/utils.rb +2 -2
- data/lib/kubernetes/version.rb +2 -2
- data/lib/kubernetes.rb +46 -20
- metadata +54 -32
- data/lib/kubernetes/api/scheduling_v1alpha1_api.rb +0 -775
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: release-1.
|
|
6
|
+
The version of the OpenAPI document: release-1.36
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.1.0
|
|
@@ -27,8 +27,8 @@ module Kubernetes
|
|
|
27
27
|
# @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.
|
|
28
28
|
# @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.
|
|
29
29
|
# @return [V1beta2DeviceClass]
|
|
30
|
-
def
|
|
31
|
-
data, _status_code, _headers =
|
|
30
|
+
def create_device_class_post_apis_resource_k8s_io_v1beta2_deviceclasses(body, opts = {})
|
|
31
|
+
data, _status_code, _headers = create_device_class_post_apis_resource_k8s_io_v1beta2_deviceclasses_with_http_info(body, opts)
|
|
32
32
|
data
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -40,13 +40,13 @@ module Kubernetes
|
|
|
40
40
|
# @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.
|
|
41
41
|
# @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.
|
|
42
42
|
# @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
|
|
43
|
-
def
|
|
43
|
+
def create_device_class_post_apis_resource_k8s_io_v1beta2_deviceclasses_with_http_info(body, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_device_class_post_apis_resource_k8s_io_v1beta2_deviceclasses ...'
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'body' is set
|
|
48
48
|
if @api_client.config.client_side_validation && body.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_device_class_post_apis_resource_k8s_io_v1beta2_deviceclasses"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses'
|
|
@@ -76,7 +76,7 @@ module Kubernetes
|
|
|
76
76
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
77
77
|
|
|
78
78
|
new_options = opts.merge(
|
|
79
|
-
:operation => :"ResourceV1beta2Api.
|
|
79
|
+
:operation => :"ResourceV1beta2Api.create_device_class_post_apis_resource_k8s_io_v1beta2_deviceclasses",
|
|
80
80
|
:header_params => header_params,
|
|
81
81
|
:query_params => query_params,
|
|
82
82
|
:form_params => form_params,
|
|
@@ -87,7 +87,80 @@ module Kubernetes
|
|
|
87
87
|
|
|
88
88
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
89
89
|
if @api_client.config.debugging
|
|
90
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
90
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#create_device_class_post_apis_resource_k8s_io_v1beta2_deviceclasses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
|
+
end
|
|
92
|
+
return data, status_code, headers
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# create a DeviceTaintRule
|
|
96
|
+
# @param body [V1beta2DeviceTaintRule]
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @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).
|
|
99
|
+
# @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
|
|
100
|
+
# @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.
|
|
101
|
+
# @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.
|
|
102
|
+
# @return [V1beta2DeviceTaintRule]
|
|
103
|
+
def create_device_taint_rule_post_apis_resource_k8s_io_v1beta2_devicetaintrules(body, opts = {})
|
|
104
|
+
data, _status_code, _headers = create_device_taint_rule_post_apis_resource_k8s_io_v1beta2_devicetaintrules_with_http_info(body, opts)
|
|
105
|
+
data
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# create a DeviceTaintRule
|
|
109
|
+
# @param body [V1beta2DeviceTaintRule]
|
|
110
|
+
# @param [Hash] opts the optional parameters
|
|
111
|
+
# @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).
|
|
112
|
+
# @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
|
|
113
|
+
# @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.
|
|
114
|
+
# @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.
|
|
115
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
116
|
+
def create_device_taint_rule_post_apis_resource_k8s_io_v1beta2_devicetaintrules_with_http_info(body, opts = {})
|
|
117
|
+
if @api_client.config.debugging
|
|
118
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_device_taint_rule_post_apis_resource_k8s_io_v1beta2_devicetaintrules ...'
|
|
119
|
+
end
|
|
120
|
+
# verify the required parameter 'body' is set
|
|
121
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
122
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_device_taint_rule_post_apis_resource_k8s_io_v1beta2_devicetaintrules"
|
|
123
|
+
end
|
|
124
|
+
# resource path
|
|
125
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules'
|
|
126
|
+
|
|
127
|
+
# query parameters
|
|
128
|
+
query_params = opts[:query_params] || {}
|
|
129
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
130
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
131
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
132
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
133
|
+
|
|
134
|
+
# header parameters
|
|
135
|
+
header_params = opts[:header_params] || {}
|
|
136
|
+
# HTTP header 'Accept' (if needed)
|
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
138
|
+
|
|
139
|
+
# form parameters
|
|
140
|
+
form_params = opts[:form_params] || {}
|
|
141
|
+
|
|
142
|
+
# http body (model)
|
|
143
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
144
|
+
|
|
145
|
+
# return_type
|
|
146
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
147
|
+
|
|
148
|
+
# auth_names
|
|
149
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
150
|
+
|
|
151
|
+
new_options = opts.merge(
|
|
152
|
+
:operation => :"ResourceV1beta2Api.create_device_taint_rule_post_apis_resource_k8s_io_v1beta2_devicetaintrules",
|
|
153
|
+
:header_params => header_params,
|
|
154
|
+
:query_params => query_params,
|
|
155
|
+
:form_params => form_params,
|
|
156
|
+
:body => post_body,
|
|
157
|
+
:auth_names => auth_names,
|
|
158
|
+
:return_type => return_type
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
162
|
+
if @api_client.config.debugging
|
|
163
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#create_device_taint_rule_post_apis_resource_k8s_io_v1beta2_devicetaintrules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
164
|
end
|
|
92
165
|
return data, status_code, headers
|
|
93
166
|
end
|
|
@@ -101,8 +174,8 @@ module Kubernetes
|
|
|
101
174
|
# @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.
|
|
102
175
|
# @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.
|
|
103
176
|
# @return [V1beta2ResourceClaim]
|
|
104
|
-
def
|
|
105
|
-
data, _status_code, _headers =
|
|
177
|
+
def create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims(namespace, body, opts = {})
|
|
178
|
+
data, _status_code, _headers = create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_with_http_info(namespace, body, opts)
|
|
106
179
|
data
|
|
107
180
|
end
|
|
108
181
|
|
|
@@ -115,17 +188,17 @@ module Kubernetes
|
|
|
115
188
|
# @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.
|
|
116
189
|
# @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.
|
|
117
190
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
118
|
-
def
|
|
191
|
+
def create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_with_http_info(namespace, body, opts = {})
|
|
119
192
|
if @api_client.config.debugging
|
|
120
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
193
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims ...'
|
|
121
194
|
end
|
|
122
195
|
# verify the required parameter 'namespace' is set
|
|
123
196
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
124
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
197
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims"
|
|
125
198
|
end
|
|
126
199
|
# verify the required parameter 'body' is set
|
|
127
200
|
if @api_client.config.client_side_validation && body.nil?
|
|
128
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
201
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims"
|
|
129
202
|
end
|
|
130
203
|
# resource path
|
|
131
204
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -155,7 +228,7 @@ module Kubernetes
|
|
|
155
228
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
156
229
|
|
|
157
230
|
new_options = opts.merge(
|
|
158
|
-
:operation => :"ResourceV1beta2Api.
|
|
231
|
+
:operation => :"ResourceV1beta2Api.create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims",
|
|
159
232
|
:header_params => header_params,
|
|
160
233
|
:query_params => query_params,
|
|
161
234
|
:form_params => form_params,
|
|
@@ -166,7 +239,7 @@ module Kubernetes
|
|
|
166
239
|
|
|
167
240
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
168
241
|
if @api_client.config.debugging
|
|
169
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
242
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#create_namespaced_resource_claim_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
170
243
|
end
|
|
171
244
|
return data, status_code, headers
|
|
172
245
|
end
|
|
@@ -180,8 +253,8 @@ module Kubernetes
|
|
|
180
253
|
# @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.
|
|
181
254
|
# @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.
|
|
182
255
|
# @return [V1beta2ResourceClaimTemplate]
|
|
183
|
-
def
|
|
184
|
-
data, _status_code, _headers =
|
|
256
|
+
def create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates(namespace, body, opts = {})
|
|
257
|
+
data, _status_code, _headers = create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_with_http_info(namespace, body, opts)
|
|
185
258
|
data
|
|
186
259
|
end
|
|
187
260
|
|
|
@@ -194,17 +267,17 @@ module Kubernetes
|
|
|
194
267
|
# @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.
|
|
195
268
|
# @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.
|
|
196
269
|
# @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
|
|
197
|
-
def
|
|
270
|
+
def create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_with_http_info(namespace, body, opts = {})
|
|
198
271
|
if @api_client.config.debugging
|
|
199
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
272
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates ...'
|
|
200
273
|
end
|
|
201
274
|
# verify the required parameter 'namespace' is set
|
|
202
275
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
203
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
276
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates"
|
|
204
277
|
end
|
|
205
278
|
# verify the required parameter 'body' is set
|
|
206
279
|
if @api_client.config.client_side_validation && body.nil?
|
|
207
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
280
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates"
|
|
208
281
|
end
|
|
209
282
|
# resource path
|
|
210
283
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -234,7 +307,7 @@ module Kubernetes
|
|
|
234
307
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
235
308
|
|
|
236
309
|
new_options = opts.merge(
|
|
237
|
-
:operation => :"ResourceV1beta2Api.
|
|
310
|
+
:operation => :"ResourceV1beta2Api.create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates",
|
|
238
311
|
:header_params => header_params,
|
|
239
312
|
:query_params => query_params,
|
|
240
313
|
:form_params => form_params,
|
|
@@ -245,7 +318,7 @@ module Kubernetes
|
|
|
245
318
|
|
|
246
319
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
247
320
|
if @api_client.config.debugging
|
|
248
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
321
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#create_namespaced_resource_claim_template_post_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
249
322
|
end
|
|
250
323
|
return data, status_code, headers
|
|
251
324
|
end
|
|
@@ -258,8 +331,8 @@ module Kubernetes
|
|
|
258
331
|
# @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.
|
|
259
332
|
# @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.
|
|
260
333
|
# @return [V1beta2ResourceSlice]
|
|
261
|
-
def
|
|
262
|
-
data, _status_code, _headers =
|
|
334
|
+
def create_resource_slice_post_apis_resource_k8s_io_v1beta2_resourceslices(body, opts = {})
|
|
335
|
+
data, _status_code, _headers = create_resource_slice_post_apis_resource_k8s_io_v1beta2_resourceslices_with_http_info(body, opts)
|
|
263
336
|
data
|
|
264
337
|
end
|
|
265
338
|
|
|
@@ -271,13 +344,13 @@ module Kubernetes
|
|
|
271
344
|
# @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.
|
|
272
345
|
# @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.
|
|
273
346
|
# @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
|
|
274
|
-
def
|
|
347
|
+
def create_resource_slice_post_apis_resource_k8s_io_v1beta2_resourceslices_with_http_info(body, opts = {})
|
|
275
348
|
if @api_client.config.debugging
|
|
276
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
349
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_resource_slice_post_apis_resource_k8s_io_v1beta2_resourceslices ...'
|
|
277
350
|
end
|
|
278
351
|
# verify the required parameter 'body' is set
|
|
279
352
|
if @api_client.config.client_side_validation && body.nil?
|
|
280
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
353
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_resource_slice_post_apis_resource_k8s_io_v1beta2_resourceslices"
|
|
281
354
|
end
|
|
282
355
|
# resource path
|
|
283
356
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices'
|
|
@@ -307,7 +380,7 @@ module Kubernetes
|
|
|
307
380
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
308
381
|
|
|
309
382
|
new_options = opts.merge(
|
|
310
|
-
:operation => :"ResourceV1beta2Api.
|
|
383
|
+
:operation => :"ResourceV1beta2Api.create_resource_slice_post_apis_resource_k8s_io_v1beta2_resourceslices",
|
|
311
384
|
:header_params => header_params,
|
|
312
385
|
:query_params => query_params,
|
|
313
386
|
:form_params => form_params,
|
|
@@ -318,7 +391,7 @@ module Kubernetes
|
|
|
318
391
|
|
|
319
392
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
320
393
|
if @api_client.config.debugging
|
|
321
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
394
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#create_resource_slice_post_apis_resource_k8s_io_v1beta2_resourceslices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
322
395
|
end
|
|
323
396
|
return data, status_code, headers
|
|
324
397
|
end
|
|
@@ -338,11 +411,12 @@ module Kubernetes
|
|
|
338
411
|
# @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
|
|
339
412
|
# @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
|
|
340
413
|
# @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.
|
|
414
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
341
415
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
342
416
|
# @option opts [V1DeleteOptions] :body
|
|
343
417
|
# @return [V1Status]
|
|
344
|
-
def
|
|
345
|
-
data, _status_code, _headers =
|
|
418
|
+
def delete_collection_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses(opts = {})
|
|
419
|
+
data, _status_code, _headers = delete_collection_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_with_http_info(opts)
|
|
346
420
|
data
|
|
347
421
|
end
|
|
348
422
|
|
|
@@ -361,12 +435,13 @@ module Kubernetes
|
|
|
361
435
|
# @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
|
|
362
436
|
# @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
|
|
363
437
|
# @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.
|
|
438
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
364
439
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
365
440
|
# @option opts [V1DeleteOptions] :body
|
|
366
441
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
367
|
-
def
|
|
442
|
+
def delete_collection_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_with_http_info(opts = {})
|
|
368
443
|
if @api_client.config.debugging
|
|
369
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
444
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses ...'
|
|
370
445
|
end
|
|
371
446
|
# resource path
|
|
372
447
|
local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses'
|
|
@@ -386,6 +461,109 @@ module Kubernetes
|
|
|
386
461
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
387
462
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
388
463
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
464
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
465
|
+
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
466
|
+
|
|
467
|
+
# header parameters
|
|
468
|
+
header_params = opts[:header_params] || {}
|
|
469
|
+
# HTTP header 'Accept' (if needed)
|
|
470
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
471
|
+
|
|
472
|
+
# form parameters
|
|
473
|
+
form_params = opts[:form_params] || {}
|
|
474
|
+
|
|
475
|
+
# http body (model)
|
|
476
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
|
477
|
+
|
|
478
|
+
# return_type
|
|
479
|
+
return_type = opts[:debug_return_type] || 'V1Status'
|
|
480
|
+
|
|
481
|
+
# auth_names
|
|
482
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
483
|
+
|
|
484
|
+
new_options = opts.merge(
|
|
485
|
+
:operation => :"ResourceV1beta2Api.delete_collection_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses",
|
|
486
|
+
:header_params => header_params,
|
|
487
|
+
:query_params => query_params,
|
|
488
|
+
:form_params => form_params,
|
|
489
|
+
:body => post_body,
|
|
490
|
+
:auth_names => auth_names,
|
|
491
|
+
:return_type => return_type
|
|
492
|
+
)
|
|
493
|
+
|
|
494
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
495
|
+
if @api_client.config.debugging
|
|
496
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
497
|
+
end
|
|
498
|
+
return data, status_code, headers
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# delete collection of DeviceTaintRule
|
|
502
|
+
# @param [Hash] opts the optional parameters
|
|
503
|
+
# @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).
|
|
504
|
+
# @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.
|
|
505
|
+
# @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
|
|
506
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
507
|
+
# @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.
|
|
508
|
+
# @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
|
|
509
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
510
|
+
# @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.
|
|
511
|
+
# @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.
|
|
512
|
+
# @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.
|
|
513
|
+
# @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
|
|
514
|
+
# @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
|
|
515
|
+
# @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.
|
|
516
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
517
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
518
|
+
# @option opts [V1DeleteOptions] :body
|
|
519
|
+
# @return [V1Status]
|
|
520
|
+
def delete_collection_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules(opts = {})
|
|
521
|
+
data, _status_code, _headers = delete_collection_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_with_http_info(opts)
|
|
522
|
+
data
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# delete collection of DeviceTaintRule
|
|
526
|
+
# @param [Hash] opts the optional parameters
|
|
527
|
+
# @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).
|
|
528
|
+
# @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.
|
|
529
|
+
# @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
|
|
530
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
531
|
+
# @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.
|
|
532
|
+
# @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
|
|
533
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
534
|
+
# @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.
|
|
535
|
+
# @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.
|
|
536
|
+
# @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.
|
|
537
|
+
# @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
|
|
538
|
+
# @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
|
|
539
|
+
# @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.
|
|
540
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
541
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
542
|
+
# @option opts [V1DeleteOptions] :body
|
|
543
|
+
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
544
|
+
def delete_collection_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_with_http_info(opts = {})
|
|
545
|
+
if @api_client.config.debugging
|
|
546
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules ...'
|
|
547
|
+
end
|
|
548
|
+
# resource path
|
|
549
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules'
|
|
550
|
+
|
|
551
|
+
# query parameters
|
|
552
|
+
query_params = opts[:query_params] || {}
|
|
553
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
554
|
+
query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
|
|
555
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
556
|
+
query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
|
|
557
|
+
query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
|
|
558
|
+
query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
|
|
559
|
+
query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
|
|
560
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
561
|
+
query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
|
|
562
|
+
query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
|
|
563
|
+
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
564
|
+
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
565
|
+
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
566
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
389
567
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
390
568
|
|
|
391
569
|
# header parameters
|
|
@@ -406,7 +584,7 @@ module Kubernetes
|
|
|
406
584
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
407
585
|
|
|
408
586
|
new_options = opts.merge(
|
|
409
|
-
:operation => :"ResourceV1beta2Api.
|
|
587
|
+
:operation => :"ResourceV1beta2Api.delete_collection_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules",
|
|
410
588
|
:header_params => header_params,
|
|
411
589
|
:query_params => query_params,
|
|
412
590
|
:form_params => form_params,
|
|
@@ -417,7 +595,7 @@ module Kubernetes
|
|
|
417
595
|
|
|
418
596
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
419
597
|
if @api_client.config.debugging
|
|
420
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
598
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
421
599
|
end
|
|
422
600
|
return data, status_code, headers
|
|
423
601
|
end
|
|
@@ -438,11 +616,12 @@ module Kubernetes
|
|
|
438
616
|
# @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
|
|
439
617
|
# @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
|
|
440
618
|
# @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.
|
|
619
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
441
620
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
442
621
|
# @option opts [V1DeleteOptions] :body
|
|
443
622
|
# @return [V1Status]
|
|
444
|
-
def
|
|
445
|
-
data, _status_code, _headers =
|
|
623
|
+
def delete_collection_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims(namespace, opts = {})
|
|
624
|
+
data, _status_code, _headers = delete_collection_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_with_http_info(namespace, opts)
|
|
446
625
|
data
|
|
447
626
|
end
|
|
448
627
|
|
|
@@ -462,16 +641,17 @@ module Kubernetes
|
|
|
462
641
|
# @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
|
|
463
642
|
# @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
|
|
464
643
|
# @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.
|
|
644
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
465
645
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
466
646
|
# @option opts [V1DeleteOptions] :body
|
|
467
647
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
468
|
-
def
|
|
648
|
+
def delete_collection_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_with_http_info(namespace, opts = {})
|
|
469
649
|
if @api_client.config.debugging
|
|
470
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
650
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims ...'
|
|
471
651
|
end
|
|
472
652
|
# verify the required parameter 'namespace' is set
|
|
473
653
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
474
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
654
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_collection_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims"
|
|
475
655
|
end
|
|
476
656
|
# resource path
|
|
477
657
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -491,6 +671,7 @@ module Kubernetes
|
|
|
491
671
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
492
672
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
493
673
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
674
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
494
675
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
495
676
|
|
|
496
677
|
# header parameters
|
|
@@ -511,7 +692,7 @@ module Kubernetes
|
|
|
511
692
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
512
693
|
|
|
513
694
|
new_options = opts.merge(
|
|
514
|
-
:operation => :"ResourceV1beta2Api.
|
|
695
|
+
:operation => :"ResourceV1beta2Api.delete_collection_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims",
|
|
515
696
|
:header_params => header_params,
|
|
516
697
|
:query_params => query_params,
|
|
517
698
|
:form_params => form_params,
|
|
@@ -522,7 +703,7 @@ module Kubernetes
|
|
|
522
703
|
|
|
523
704
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
524
705
|
if @api_client.config.debugging
|
|
525
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
706
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
526
707
|
end
|
|
527
708
|
return data, status_code, headers
|
|
528
709
|
end
|
|
@@ -543,11 +724,12 @@ module Kubernetes
|
|
|
543
724
|
# @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
|
|
544
725
|
# @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
|
|
545
726
|
# @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.
|
|
727
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
546
728
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
547
729
|
# @option opts [V1DeleteOptions] :body
|
|
548
730
|
# @return [V1Status]
|
|
549
|
-
def
|
|
550
|
-
data, _status_code, _headers =
|
|
731
|
+
def delete_collection_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates(namespace, opts = {})
|
|
732
|
+
data, _status_code, _headers = delete_collection_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_with_http_info(namespace, opts)
|
|
551
733
|
data
|
|
552
734
|
end
|
|
553
735
|
|
|
@@ -567,16 +749,17 @@ module Kubernetes
|
|
|
567
749
|
# @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
|
|
568
750
|
# @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
|
|
569
751
|
# @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.
|
|
752
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
570
753
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
571
754
|
# @option opts [V1DeleteOptions] :body
|
|
572
755
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
573
|
-
def
|
|
756
|
+
def delete_collection_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_with_http_info(namespace, opts = {})
|
|
574
757
|
if @api_client.config.debugging
|
|
575
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
758
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates ...'
|
|
576
759
|
end
|
|
577
760
|
# verify the required parameter 'namespace' is set
|
|
578
761
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
579
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
762
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_collection_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates"
|
|
580
763
|
end
|
|
581
764
|
# resource path
|
|
582
765
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -596,6 +779,7 @@ module Kubernetes
|
|
|
596
779
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
597
780
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
598
781
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
782
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
599
783
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
600
784
|
|
|
601
785
|
# header parameters
|
|
@@ -616,7 +800,7 @@ module Kubernetes
|
|
|
616
800
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
617
801
|
|
|
618
802
|
new_options = opts.merge(
|
|
619
|
-
:operation => :"ResourceV1beta2Api.
|
|
803
|
+
:operation => :"ResourceV1beta2Api.delete_collection_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates",
|
|
620
804
|
:header_params => header_params,
|
|
621
805
|
:query_params => query_params,
|
|
622
806
|
:form_params => form_params,
|
|
@@ -627,7 +811,7 @@ module Kubernetes
|
|
|
627
811
|
|
|
628
812
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
629
813
|
if @api_client.config.debugging
|
|
630
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
814
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
631
815
|
end
|
|
632
816
|
return data, status_code, headers
|
|
633
817
|
end
|
|
@@ -647,11 +831,12 @@ module Kubernetes
|
|
|
647
831
|
# @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
|
|
648
832
|
# @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
|
|
649
833
|
# @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.
|
|
834
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
650
835
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
651
836
|
# @option opts [V1DeleteOptions] :body
|
|
652
837
|
# @return [V1Status]
|
|
653
|
-
def
|
|
654
|
-
data, _status_code, _headers =
|
|
838
|
+
def delete_collection_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices(opts = {})
|
|
839
|
+
data, _status_code, _headers = delete_collection_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_with_http_info(opts)
|
|
655
840
|
data
|
|
656
841
|
end
|
|
657
842
|
|
|
@@ -670,12 +855,13 @@ module Kubernetes
|
|
|
670
855
|
# @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
|
|
671
856
|
# @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
|
|
672
857
|
# @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.
|
|
858
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
673
859
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
674
860
|
# @option opts [V1DeleteOptions] :body
|
|
675
861
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
676
|
-
def
|
|
862
|
+
def delete_collection_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_with_http_info(opts = {})
|
|
677
863
|
if @api_client.config.debugging
|
|
678
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
864
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices ...'
|
|
679
865
|
end
|
|
680
866
|
# resource path
|
|
681
867
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices'
|
|
@@ -695,6 +881,7 @@ module Kubernetes
|
|
|
695
881
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
696
882
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
697
883
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
884
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
698
885
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
699
886
|
|
|
700
887
|
# header parameters
|
|
@@ -715,7 +902,7 @@ module Kubernetes
|
|
|
715
902
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
716
903
|
|
|
717
904
|
new_options = opts.merge(
|
|
718
|
-
:operation => :"ResourceV1beta2Api.
|
|
905
|
+
:operation => :"ResourceV1beta2Api.delete_collection_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices",
|
|
719
906
|
:header_params => header_params,
|
|
720
907
|
:query_params => query_params,
|
|
721
908
|
:form_params => form_params,
|
|
@@ -726,7 +913,7 @@ module Kubernetes
|
|
|
726
913
|
|
|
727
914
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
728
915
|
if @api_client.config.debugging
|
|
729
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
916
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
730
917
|
end
|
|
731
918
|
return data, status_code, headers
|
|
732
919
|
end
|
|
@@ -742,8 +929,8 @@ module Kubernetes
|
|
|
742
929
|
# @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.
|
|
743
930
|
# @option opts [V1DeleteOptions] :body
|
|
744
931
|
# @return [V1beta2DeviceClass]
|
|
745
|
-
def
|
|
746
|
-
data, _status_code, _headers =
|
|
932
|
+
def delete_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_by_name(name, opts = {})
|
|
933
|
+
data, _status_code, _headers = delete_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, opts)
|
|
747
934
|
data
|
|
748
935
|
end
|
|
749
936
|
|
|
@@ -758,13 +945,13 @@ module Kubernetes
|
|
|
758
945
|
# @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.
|
|
759
946
|
# @option opts [V1DeleteOptions] :body
|
|
760
947
|
# @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
|
|
761
|
-
def
|
|
948
|
+
def delete_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, opts = {})
|
|
762
949
|
if @api_client.config.debugging
|
|
763
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
950
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_by_name ...'
|
|
764
951
|
end
|
|
765
952
|
# verify the required parameter 'name' is set
|
|
766
953
|
if @api_client.config.client_side_validation && name.nil?
|
|
767
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
954
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_by_name"
|
|
768
955
|
end
|
|
769
956
|
# resource path
|
|
770
957
|
local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -796,7 +983,88 @@ module Kubernetes
|
|
|
796
983
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
797
984
|
|
|
798
985
|
new_options = opts.merge(
|
|
799
|
-
:operation => :"ResourceV1beta2Api.
|
|
986
|
+
:operation => :"ResourceV1beta2Api.delete_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_by_name",
|
|
987
|
+
:header_params => header_params,
|
|
988
|
+
:query_params => query_params,
|
|
989
|
+
:form_params => form_params,
|
|
990
|
+
:body => post_body,
|
|
991
|
+
:auth_names => auth_names,
|
|
992
|
+
:return_type => return_type
|
|
993
|
+
)
|
|
994
|
+
|
|
995
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
996
|
+
if @api_client.config.debugging
|
|
997
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_device_class_delete_apis_resource_k8s_io_v1beta2_deviceclasses_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
998
|
+
end
|
|
999
|
+
return data, status_code, headers
|
|
1000
|
+
end
|
|
1001
|
+
|
|
1002
|
+
# delete a DeviceTaintRule
|
|
1003
|
+
# @param name [String] name of the DeviceTaintRule
|
|
1004
|
+
# @param [Hash] opts the optional parameters
|
|
1005
|
+
# @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).
|
|
1006
|
+
# @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
|
|
1007
|
+
# @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.
|
|
1008
|
+
# @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
|
|
1009
|
+
# @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.
|
|
1010
|
+
# @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.
|
|
1011
|
+
# @option opts [V1DeleteOptions] :body
|
|
1012
|
+
# @return [V1beta2DeviceTaintRule]
|
|
1013
|
+
def delete_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name(name, opts = {})
|
|
1014
|
+
data, _status_code, _headers = delete_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, opts)
|
|
1015
|
+
data
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# delete a DeviceTaintRule
|
|
1019
|
+
# @param name [String] name of the DeviceTaintRule
|
|
1020
|
+
# @param [Hash] opts the optional parameters
|
|
1021
|
+
# @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).
|
|
1022
|
+
# @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
|
|
1023
|
+
# @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.
|
|
1024
|
+
# @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
|
|
1025
|
+
# @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.
|
|
1026
|
+
# @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.
|
|
1027
|
+
# @option opts [V1DeleteOptions] :body
|
|
1028
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
1029
|
+
def delete_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, opts = {})
|
|
1030
|
+
if @api_client.config.debugging
|
|
1031
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name ...'
|
|
1032
|
+
end
|
|
1033
|
+
# verify the required parameter 'name' is set
|
|
1034
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
1035
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name"
|
|
1036
|
+
end
|
|
1037
|
+
# resource path
|
|
1038
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
1039
|
+
|
|
1040
|
+
# query parameters
|
|
1041
|
+
query_params = opts[:query_params] || {}
|
|
1042
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
1043
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
1044
|
+
query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
|
|
1045
|
+
query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
|
|
1046
|
+
query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
|
|
1047
|
+
query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
|
|
1048
|
+
|
|
1049
|
+
# header parameters
|
|
1050
|
+
header_params = opts[:header_params] || {}
|
|
1051
|
+
# HTTP header 'Accept' (if needed)
|
|
1052
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
1053
|
+
|
|
1054
|
+
# form parameters
|
|
1055
|
+
form_params = opts[:form_params] || {}
|
|
1056
|
+
|
|
1057
|
+
# http body (model)
|
|
1058
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
|
1059
|
+
|
|
1060
|
+
# return_type
|
|
1061
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
1062
|
+
|
|
1063
|
+
# auth_names
|
|
1064
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1065
|
+
|
|
1066
|
+
new_options = opts.merge(
|
|
1067
|
+
:operation => :"ResourceV1beta2Api.delete_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name",
|
|
800
1068
|
:header_params => header_params,
|
|
801
1069
|
:query_params => query_params,
|
|
802
1070
|
:form_params => form_params,
|
|
@@ -807,7 +1075,7 @@ module Kubernetes
|
|
|
807
1075
|
|
|
808
1076
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
809
1077
|
if @api_client.config.debugging
|
|
810
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1078
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_device_taint_rule_delete_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
811
1079
|
end
|
|
812
1080
|
return data, status_code, headers
|
|
813
1081
|
end
|
|
@@ -824,8 +1092,8 @@ module Kubernetes
|
|
|
824
1092
|
# @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.
|
|
825
1093
|
# @option opts [V1DeleteOptions] :body
|
|
826
1094
|
# @return [V1beta2ResourceClaim]
|
|
827
|
-
def
|
|
828
|
-
data, _status_code, _headers =
|
|
1095
|
+
def delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name(name, namespace, opts = {})
|
|
1096
|
+
data, _status_code, _headers = delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, opts)
|
|
829
1097
|
data
|
|
830
1098
|
end
|
|
831
1099
|
|
|
@@ -841,17 +1109,17 @@ module Kubernetes
|
|
|
841
1109
|
# @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.
|
|
842
1110
|
# @option opts [V1DeleteOptions] :body
|
|
843
1111
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
844
|
-
def
|
|
1112
|
+
def delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, opts = {})
|
|
845
1113
|
if @api_client.config.debugging
|
|
846
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1114
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name ...'
|
|
847
1115
|
end
|
|
848
1116
|
# verify the required parameter 'name' is set
|
|
849
1117
|
if @api_client.config.client_side_validation && name.nil?
|
|
850
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
1118
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
851
1119
|
end
|
|
852
1120
|
# verify the required parameter 'namespace' is set
|
|
853
1121
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
854
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
1122
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
855
1123
|
end
|
|
856
1124
|
# resource path
|
|
857
1125
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -883,7 +1151,7 @@ module Kubernetes
|
|
|
883
1151
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
884
1152
|
|
|
885
1153
|
new_options = opts.merge(
|
|
886
|
-
:operation => :"ResourceV1beta2Api.
|
|
1154
|
+
:operation => :"ResourceV1beta2Api.delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name",
|
|
887
1155
|
:header_params => header_params,
|
|
888
1156
|
:query_params => query_params,
|
|
889
1157
|
:form_params => form_params,
|
|
@@ -894,7 +1162,7 @@ module Kubernetes
|
|
|
894
1162
|
|
|
895
1163
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
896
1164
|
if @api_client.config.debugging
|
|
897
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1165
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_namespaced_resource_claim_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
898
1166
|
end
|
|
899
1167
|
return data, status_code, headers
|
|
900
1168
|
end
|
|
@@ -911,8 +1179,8 @@ module Kubernetes
|
|
|
911
1179
|
# @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.
|
|
912
1180
|
# @option opts [V1DeleteOptions] :body
|
|
913
1181
|
# @return [V1beta2ResourceClaimTemplate]
|
|
914
|
-
def
|
|
915
|
-
data, _status_code, _headers =
|
|
1182
|
+
def delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name(name, namespace, opts = {})
|
|
1183
|
+
data, _status_code, _headers = delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, opts)
|
|
916
1184
|
data
|
|
917
1185
|
end
|
|
918
1186
|
|
|
@@ -928,17 +1196,17 @@ module Kubernetes
|
|
|
928
1196
|
# @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.
|
|
929
1197
|
# @option opts [V1DeleteOptions] :body
|
|
930
1198
|
# @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
|
|
931
|
-
def
|
|
1199
|
+
def delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, opts = {})
|
|
932
1200
|
if @api_client.config.debugging
|
|
933
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1201
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name ...'
|
|
934
1202
|
end
|
|
935
1203
|
# verify the required parameter 'name' is set
|
|
936
1204
|
if @api_client.config.client_side_validation && name.nil?
|
|
937
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
1205
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
938
1206
|
end
|
|
939
1207
|
# verify the required parameter 'namespace' is set
|
|
940
1208
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
941
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
1209
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
942
1210
|
end
|
|
943
1211
|
# resource path
|
|
944
1212
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -970,7 +1238,7 @@ module Kubernetes
|
|
|
970
1238
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
971
1239
|
|
|
972
1240
|
new_options = opts.merge(
|
|
973
|
-
:operation => :"ResourceV1beta2Api.
|
|
1241
|
+
:operation => :"ResourceV1beta2Api.delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name",
|
|
974
1242
|
:header_params => header_params,
|
|
975
1243
|
:query_params => query_params,
|
|
976
1244
|
:form_params => form_params,
|
|
@@ -981,7 +1249,7 @@ module Kubernetes
|
|
|
981
1249
|
|
|
982
1250
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
983
1251
|
if @api_client.config.debugging
|
|
984
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1252
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_namespaced_resource_claim_template_delete_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
985
1253
|
end
|
|
986
1254
|
return data, status_code, headers
|
|
987
1255
|
end
|
|
@@ -997,8 +1265,8 @@ module Kubernetes
|
|
|
997
1265
|
# @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.
|
|
998
1266
|
# @option opts [V1DeleteOptions] :body
|
|
999
1267
|
# @return [V1beta2ResourceSlice]
|
|
1000
|
-
def
|
|
1001
|
-
data, _status_code, _headers =
|
|
1268
|
+
def delete_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_by_name(name, opts = {})
|
|
1269
|
+
data, _status_code, _headers = delete_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, opts)
|
|
1002
1270
|
data
|
|
1003
1271
|
end
|
|
1004
1272
|
|
|
@@ -1013,13 +1281,13 @@ module Kubernetes
|
|
|
1013
1281
|
# @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.
|
|
1014
1282
|
# @option opts [V1DeleteOptions] :body
|
|
1015
1283
|
# @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
|
|
1016
|
-
def
|
|
1284
|
+
def delete_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, opts = {})
|
|
1017
1285
|
if @api_client.config.debugging
|
|
1018
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1286
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_by_name ...'
|
|
1019
1287
|
end
|
|
1020
1288
|
# verify the required parameter 'name' is set
|
|
1021
1289
|
if @api_client.config.client_side_validation && name.nil?
|
|
1022
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
1290
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_by_name"
|
|
1023
1291
|
end
|
|
1024
1292
|
# resource path
|
|
1025
1293
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -1051,7 +1319,7 @@ module Kubernetes
|
|
|
1051
1319
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1052
1320
|
|
|
1053
1321
|
new_options = opts.merge(
|
|
1054
|
-
:operation => :"ResourceV1beta2Api.
|
|
1322
|
+
:operation => :"ResourceV1beta2Api.delete_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_by_name",
|
|
1055
1323
|
:header_params => header_params,
|
|
1056
1324
|
:query_params => query_params,
|
|
1057
1325
|
:form_params => form_params,
|
|
@@ -1062,7 +1330,7 @@ module Kubernetes
|
|
|
1062
1330
|
|
|
1063
1331
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1064
1332
|
if @api_client.config.debugging
|
|
1065
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1333
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_resource_slice_delete_apis_resource_k8s_io_v1beta2_resourceslices_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1066
1334
|
end
|
|
1067
1335
|
return data, status_code, headers
|
|
1068
1336
|
end
|
|
@@ -1070,17 +1338,17 @@ module Kubernetes
|
|
|
1070
1338
|
# get available resources
|
|
1071
1339
|
# @param [Hash] opts the optional parameters
|
|
1072
1340
|
# @return [V1APIResourceList]
|
|
1073
|
-
def
|
|
1074
|
-
data, _status_code, _headers =
|
|
1341
|
+
def get_api_resources_get_apis_resource_k8s_io_v1beta2(opts = {})
|
|
1342
|
+
data, _status_code, _headers = get_api_resources_get_apis_resource_k8s_io_v1beta2_with_http_info(opts)
|
|
1075
1343
|
data
|
|
1076
1344
|
end
|
|
1077
1345
|
|
|
1078
1346
|
# get available resources
|
|
1079
1347
|
# @param [Hash] opts the optional parameters
|
|
1080
1348
|
# @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
|
|
1081
|
-
def
|
|
1349
|
+
def get_api_resources_get_apis_resource_k8s_io_v1beta2_with_http_info(opts = {})
|
|
1082
1350
|
if @api_client.config.debugging
|
|
1083
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1351
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.get_api_resources_get_apis_resource_k8s_io_v1beta2 ...'
|
|
1084
1352
|
end
|
|
1085
1353
|
# resource path
|
|
1086
1354
|
local_var_path = '/apis/resource.k8s.io/v1beta2/'
|
|
@@ -1106,7 +1374,7 @@ module Kubernetes
|
|
|
1106
1374
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1107
1375
|
|
|
1108
1376
|
new_options = opts.merge(
|
|
1109
|
-
:operation => :"ResourceV1beta2Api.
|
|
1377
|
+
:operation => :"ResourceV1beta2Api.get_api_resources_get_apis_resource_k8s_io_v1beta2",
|
|
1110
1378
|
:header_params => header_params,
|
|
1111
1379
|
:query_params => query_params,
|
|
1112
1380
|
:form_params => form_params,
|
|
@@ -1117,7 +1385,7 @@ module Kubernetes
|
|
|
1117
1385
|
|
|
1118
1386
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1119
1387
|
if @api_client.config.debugging
|
|
1120
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1388
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#get_api_resources_get_apis_resource_k8s_io_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1121
1389
|
end
|
|
1122
1390
|
return data, status_code, headers
|
|
1123
1391
|
end
|
|
@@ -1133,11 +1401,12 @@ module Kubernetes
|
|
|
1133
1401
|
# @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
|
|
1134
1402
|
# @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
|
|
1135
1403
|
# @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.
|
|
1404
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1136
1405
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1137
1406
|
# @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.
|
|
1138
1407
|
# @return [V1beta2DeviceClassList]
|
|
1139
|
-
def
|
|
1140
|
-
data, _status_code, _headers =
|
|
1408
|
+
def list_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses(opts = {})
|
|
1409
|
+
data, _status_code, _headers = list_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_with_http_info(opts)
|
|
1141
1410
|
data
|
|
1142
1411
|
end
|
|
1143
1412
|
|
|
@@ -1152,12 +1421,13 @@ module Kubernetes
|
|
|
1152
1421
|
# @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
|
|
1153
1422
|
# @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
|
|
1154
1423
|
# @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.
|
|
1424
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1155
1425
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1156
1426
|
# @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.
|
|
1157
1427
|
# @return [Array<(V1beta2DeviceClassList, Integer, Hash)>] V1beta2DeviceClassList data, response status code and response headers
|
|
1158
|
-
def
|
|
1428
|
+
def list_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_with_http_info(opts = {})
|
|
1159
1429
|
if @api_client.config.debugging
|
|
1160
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1430
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses ...'
|
|
1161
1431
|
end
|
|
1162
1432
|
# resource path
|
|
1163
1433
|
local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses'
|
|
@@ -1173,6 +1443,7 @@ module Kubernetes
|
|
|
1173
1443
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1174
1444
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1175
1445
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1446
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1176
1447
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1177
1448
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1178
1449
|
|
|
@@ -1194,7 +1465,7 @@ module Kubernetes
|
|
|
1194
1465
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1195
1466
|
|
|
1196
1467
|
new_options = opts.merge(
|
|
1197
|
-
:operation => :"ResourceV1beta2Api.
|
|
1468
|
+
:operation => :"ResourceV1beta2Api.list_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses",
|
|
1198
1469
|
:header_params => header_params,
|
|
1199
1470
|
:query_params => query_params,
|
|
1200
1471
|
:form_params => form_params,
|
|
@@ -1205,13 +1476,12 @@ module Kubernetes
|
|
|
1205
1476
|
|
|
1206
1477
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1207
1478
|
if @api_client.config.debugging
|
|
1208
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1479
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#list_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1209
1480
|
end
|
|
1210
1481
|
return data, status_code, headers
|
|
1211
1482
|
end
|
|
1212
1483
|
|
|
1213
|
-
# list or watch objects of kind
|
|
1214
|
-
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
1484
|
+
# list or watch objects of kind DeviceTaintRule
|
|
1215
1485
|
# @param [Hash] opts the optional parameters
|
|
1216
1486
|
# @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).
|
|
1217
1487
|
# @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.
|
|
@@ -1222,16 +1492,16 @@ module Kubernetes
|
|
|
1222
1492
|
# @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
|
|
1223
1493
|
# @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
|
|
1224
1494
|
# @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.
|
|
1495
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1225
1496
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1226
1497
|
# @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.
|
|
1227
|
-
# @return [
|
|
1228
|
-
def
|
|
1229
|
-
data, _status_code, _headers =
|
|
1498
|
+
# @return [V1beta2DeviceTaintRuleList]
|
|
1499
|
+
def list_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules(opts = {})
|
|
1500
|
+
data, _status_code, _headers = list_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_with_http_info(opts)
|
|
1230
1501
|
data
|
|
1231
1502
|
end
|
|
1232
1503
|
|
|
1233
|
-
# list or watch objects of kind
|
|
1234
|
-
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
1504
|
+
# list or watch objects of kind DeviceTaintRule
|
|
1235
1505
|
# @param [Hash] opts the optional parameters
|
|
1236
1506
|
# @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).
|
|
1237
1507
|
# @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.
|
|
@@ -1242,19 +1512,16 @@ module Kubernetes
|
|
|
1242
1512
|
# @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
|
|
1243
1513
|
# @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
|
|
1244
1514
|
# @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.
|
|
1515
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1245
1516
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1246
1517
|
# @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.
|
|
1247
|
-
# @return [Array<(
|
|
1248
|
-
def
|
|
1518
|
+
# @return [Array<(V1beta2DeviceTaintRuleList, Integer, Hash)>] V1beta2DeviceTaintRuleList data, response status code and response headers
|
|
1519
|
+
def list_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_with_http_info(opts = {})
|
|
1249
1520
|
if @api_client.config.debugging
|
|
1250
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1251
|
-
end
|
|
1252
|
-
# verify the required parameter 'namespace' is set
|
|
1253
|
-
if @api_client.config.client_side_validation && namespace.nil?
|
|
1254
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.list_namespaced_resource_claim_resource_v1beta2"
|
|
1521
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules ...'
|
|
1255
1522
|
end
|
|
1256
1523
|
# resource path
|
|
1257
|
-
local_var_path = '/apis/resource.k8s.io/v1beta2/
|
|
1524
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules'
|
|
1258
1525
|
|
|
1259
1526
|
# query parameters
|
|
1260
1527
|
query_params = opts[:query_params] || {}
|
|
@@ -1267,6 +1534,7 @@ module Kubernetes
|
|
|
1267
1534
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1268
1535
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1269
1536
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1537
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1270
1538
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1271
1539
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1272
1540
|
|
|
@@ -1282,13 +1550,13 @@ module Kubernetes
|
|
|
1282
1550
|
post_body = opts[:debug_body]
|
|
1283
1551
|
|
|
1284
1552
|
# return_type
|
|
1285
|
-
return_type = opts[:debug_return_type] || '
|
|
1553
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRuleList'
|
|
1286
1554
|
|
|
1287
1555
|
# auth_names
|
|
1288
1556
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1289
1557
|
|
|
1290
1558
|
new_options = opts.merge(
|
|
1291
|
-
:operation => :"ResourceV1beta2Api.
|
|
1559
|
+
:operation => :"ResourceV1beta2Api.list_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules",
|
|
1292
1560
|
:header_params => header_params,
|
|
1293
1561
|
:query_params => query_params,
|
|
1294
1562
|
:form_params => form_params,
|
|
@@ -1299,12 +1567,12 @@ module Kubernetes
|
|
|
1299
1567
|
|
|
1300
1568
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1301
1569
|
if @api_client.config.debugging
|
|
1302
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1570
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#list_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1303
1571
|
end
|
|
1304
1572
|
return data, status_code, headers
|
|
1305
1573
|
end
|
|
1306
1574
|
|
|
1307
|
-
# list or watch objects of kind
|
|
1575
|
+
# list or watch objects of kind ResourceClaim
|
|
1308
1576
|
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
1309
1577
|
# @param [Hash] opts the optional parameters
|
|
1310
1578
|
# @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).
|
|
@@ -1316,15 +1584,16 @@ module Kubernetes
|
|
|
1316
1584
|
# @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
|
|
1317
1585
|
# @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
|
|
1318
1586
|
# @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.
|
|
1587
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1319
1588
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1320
1589
|
# @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.
|
|
1321
|
-
# @return [
|
|
1322
|
-
def
|
|
1323
|
-
data, _status_code, _headers =
|
|
1590
|
+
# @return [V1beta2ResourceClaimList]
|
|
1591
|
+
def list_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims(namespace, opts = {})
|
|
1592
|
+
data, _status_code, _headers = list_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_with_http_info(namespace, opts)
|
|
1324
1593
|
data
|
|
1325
1594
|
end
|
|
1326
1595
|
|
|
1327
|
-
# list or watch objects of kind
|
|
1596
|
+
# list or watch objects of kind ResourceClaim
|
|
1328
1597
|
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
1329
1598
|
# @param [Hash] opts the optional parameters
|
|
1330
1599
|
# @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).
|
|
@@ -1336,19 +1605,20 @@ module Kubernetes
|
|
|
1336
1605
|
# @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
|
|
1337
1606
|
# @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
|
|
1338
1607
|
# @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.
|
|
1608
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1339
1609
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1340
1610
|
# @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.
|
|
1341
|
-
# @return [Array<(
|
|
1342
|
-
def
|
|
1611
|
+
# @return [Array<(V1beta2ResourceClaimList, Integer, Hash)>] V1beta2ResourceClaimList data, response status code and response headers
|
|
1612
|
+
def list_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_with_http_info(namespace, opts = {})
|
|
1343
1613
|
if @api_client.config.debugging
|
|
1344
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1614
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims ...'
|
|
1345
1615
|
end
|
|
1346
1616
|
# verify the required parameter 'namespace' is set
|
|
1347
1617
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1348
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
1618
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.list_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims"
|
|
1349
1619
|
end
|
|
1350
1620
|
# resource path
|
|
1351
|
-
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/
|
|
1621
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
1352
1622
|
|
|
1353
1623
|
# query parameters
|
|
1354
1624
|
query_params = opts[:query_params] || {}
|
|
@@ -1361,6 +1631,7 @@ module Kubernetes
|
|
|
1361
1631
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1362
1632
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1363
1633
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1634
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1364
1635
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1365
1636
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1366
1637
|
|
|
@@ -1376,13 +1647,13 @@ module Kubernetes
|
|
|
1376
1647
|
post_body = opts[:debug_body]
|
|
1377
1648
|
|
|
1378
1649
|
# return_type
|
|
1379
|
-
return_type = opts[:debug_return_type] || '
|
|
1650
|
+
return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimList'
|
|
1380
1651
|
|
|
1381
1652
|
# auth_names
|
|
1382
1653
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1383
1654
|
|
|
1384
1655
|
new_options = opts.merge(
|
|
1385
|
-
:operation => :"ResourceV1beta2Api.
|
|
1656
|
+
:operation => :"ResourceV1beta2Api.list_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims",
|
|
1386
1657
|
:header_params => header_params,
|
|
1387
1658
|
:query_params => query_params,
|
|
1388
1659
|
:form_params => form_params,
|
|
@@ -1393,50 +1664,149 @@ module Kubernetes
|
|
|
1393
1664
|
|
|
1394
1665
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1395
1666
|
if @api_client.config.debugging
|
|
1396
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1667
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#list_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1397
1668
|
end
|
|
1398
1669
|
return data, status_code, headers
|
|
1399
1670
|
end
|
|
1400
1671
|
|
|
1401
|
-
# list or watch objects of kind
|
|
1672
|
+
# list or watch objects of kind ResourceClaimTemplate
|
|
1673
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
1402
1674
|
# @param [Hash] opts the optional parameters
|
|
1675
|
+
# @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).
|
|
1403
1676
|
# @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.
|
|
1404
1677
|
# @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.
|
|
1405
1678
|
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
1406
1679
|
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
1407
1680
|
# @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.
|
|
1408
|
-
# @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).
|
|
1409
1681
|
# @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
|
|
1410
1682
|
# @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
|
|
1411
1683
|
# @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.
|
|
1684
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1412
1685
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1413
1686
|
# @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.
|
|
1414
|
-
# @return [
|
|
1415
|
-
def
|
|
1416
|
-
data, _status_code, _headers =
|
|
1687
|
+
# @return [V1beta2ResourceClaimTemplateList]
|
|
1688
|
+
def list_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates(namespace, opts = {})
|
|
1689
|
+
data, _status_code, _headers = list_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_with_http_info(namespace, opts)
|
|
1417
1690
|
data
|
|
1418
1691
|
end
|
|
1419
1692
|
|
|
1420
|
-
# list or watch objects of kind
|
|
1693
|
+
# list or watch objects of kind ResourceClaimTemplate
|
|
1694
|
+
# @param namespace [String] object name and auth scope, such as for teams and projects
|
|
1421
1695
|
# @param [Hash] opts the optional parameters
|
|
1696
|
+
# @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).
|
|
1422
1697
|
# @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.
|
|
1423
1698
|
# @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.
|
|
1424
1699
|
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
1425
1700
|
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
1426
1701
|
# @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.
|
|
1427
|
-
# @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).
|
|
1428
1702
|
# @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
|
|
1429
1703
|
# @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
|
|
1430
1704
|
# @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.
|
|
1705
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1431
1706
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1432
1707
|
# @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.
|
|
1433
|
-
# @return [Array<(
|
|
1434
|
-
def
|
|
1708
|
+
# @return [Array<(V1beta2ResourceClaimTemplateList, Integer, Hash)>] V1beta2ResourceClaimTemplateList data, response status code and response headers
|
|
1709
|
+
def list_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_with_http_info(namespace, opts = {})
|
|
1435
1710
|
if @api_client.config.debugging
|
|
1436
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1711
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates ...'
|
|
1712
|
+
end
|
|
1713
|
+
# verify the required parameter 'namespace' is set
|
|
1714
|
+
if @api_client.config.client_side_validation && namespace.nil?
|
|
1715
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.list_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates"
|
|
1437
1716
|
end
|
|
1438
1717
|
# resource path
|
|
1439
|
-
local_var_path = '/apis/resource.k8s.io/v1beta2/
|
|
1718
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
1719
|
+
|
|
1720
|
+
# query parameters
|
|
1721
|
+
query_params = opts[:query_params] || {}
|
|
1722
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
1723
|
+
query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
|
|
1724
|
+
query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
|
|
1725
|
+
query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
|
|
1726
|
+
query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
|
|
1727
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1728
|
+
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1729
|
+
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1730
|
+
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1731
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1732
|
+
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1733
|
+
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1734
|
+
|
|
1735
|
+
# header parameters
|
|
1736
|
+
header_params = opts[:header_params] || {}
|
|
1737
|
+
# HTTP header 'Accept' (if needed)
|
|
1738
|
+
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'])
|
|
1739
|
+
|
|
1740
|
+
# form parameters
|
|
1741
|
+
form_params = opts[:form_params] || {}
|
|
1742
|
+
|
|
1743
|
+
# http body (model)
|
|
1744
|
+
post_body = opts[:debug_body]
|
|
1745
|
+
|
|
1746
|
+
# return_type
|
|
1747
|
+
return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimTemplateList'
|
|
1748
|
+
|
|
1749
|
+
# auth_names
|
|
1750
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1751
|
+
|
|
1752
|
+
new_options = opts.merge(
|
|
1753
|
+
:operation => :"ResourceV1beta2Api.list_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates",
|
|
1754
|
+
:header_params => header_params,
|
|
1755
|
+
:query_params => query_params,
|
|
1756
|
+
:form_params => form_params,
|
|
1757
|
+
:body => post_body,
|
|
1758
|
+
:auth_names => auth_names,
|
|
1759
|
+
:return_type => return_type
|
|
1760
|
+
)
|
|
1761
|
+
|
|
1762
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1763
|
+
if @api_client.config.debugging
|
|
1764
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#list_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1765
|
+
end
|
|
1766
|
+
return data, status_code, headers
|
|
1767
|
+
end
|
|
1768
|
+
|
|
1769
|
+
# list or watch objects of kind ResourceClaim
|
|
1770
|
+
# @param [Hash] opts the optional parameters
|
|
1771
|
+
# @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.
|
|
1772
|
+
# @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.
|
|
1773
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
1774
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
1775
|
+
# @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.
|
|
1776
|
+
# @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).
|
|
1777
|
+
# @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
|
|
1778
|
+
# @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
|
|
1779
|
+
# @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.
|
|
1780
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1781
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1782
|
+
# @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.
|
|
1783
|
+
# @return [V1beta2ResourceClaimList]
|
|
1784
|
+
def list_resource_claim_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaims(opts = {})
|
|
1785
|
+
data, _status_code, _headers = list_resource_claim_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaims_with_http_info(opts)
|
|
1786
|
+
data
|
|
1787
|
+
end
|
|
1788
|
+
|
|
1789
|
+
# list or watch objects of kind ResourceClaim
|
|
1790
|
+
# @param [Hash] opts the optional parameters
|
|
1791
|
+
# @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.
|
|
1792
|
+
# @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.
|
|
1793
|
+
# @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
|
|
1794
|
+
# @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
|
|
1795
|
+
# @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.
|
|
1796
|
+
# @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).
|
|
1797
|
+
# @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
|
|
1798
|
+
# @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
|
|
1799
|
+
# @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.
|
|
1800
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1801
|
+
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1802
|
+
# @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.
|
|
1803
|
+
# @return [Array<(V1beta2ResourceClaimList, Integer, Hash)>] V1beta2ResourceClaimList data, response status code and response headers
|
|
1804
|
+
def list_resource_claim_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaims_with_http_info(opts = {})
|
|
1805
|
+
if @api_client.config.debugging
|
|
1806
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_resource_claim_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaims ...'
|
|
1807
|
+
end
|
|
1808
|
+
# resource path
|
|
1809
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceclaims'
|
|
1440
1810
|
|
|
1441
1811
|
# query parameters
|
|
1442
1812
|
query_params = opts[:query_params] || {}
|
|
@@ -1449,6 +1819,7 @@ module Kubernetes
|
|
|
1449
1819
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1450
1820
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1451
1821
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1822
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1452
1823
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1453
1824
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1454
1825
|
|
|
@@ -1470,7 +1841,7 @@ module Kubernetes
|
|
|
1470
1841
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1471
1842
|
|
|
1472
1843
|
new_options = opts.merge(
|
|
1473
|
-
:operation => :"ResourceV1beta2Api.
|
|
1844
|
+
:operation => :"ResourceV1beta2Api.list_resource_claim_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaims",
|
|
1474
1845
|
:header_params => header_params,
|
|
1475
1846
|
:query_params => query_params,
|
|
1476
1847
|
:form_params => form_params,
|
|
@@ -1481,7 +1852,7 @@ module Kubernetes
|
|
|
1481
1852
|
|
|
1482
1853
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1483
1854
|
if @api_client.config.debugging
|
|
1484
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1855
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#list_resource_claim_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1485
1856
|
end
|
|
1486
1857
|
return data, status_code, headers
|
|
1487
1858
|
end
|
|
@@ -1497,11 +1868,12 @@ module Kubernetes
|
|
|
1497
1868
|
# @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
|
|
1498
1869
|
# @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
|
|
1499
1870
|
# @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.
|
|
1871
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1500
1872
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1501
1873
|
# @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.
|
|
1502
1874
|
# @return [V1beta2ResourceClaimTemplateList]
|
|
1503
|
-
def
|
|
1504
|
-
data, _status_code, _headers =
|
|
1875
|
+
def list_resource_claim_template_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaimtemplates(opts = {})
|
|
1876
|
+
data, _status_code, _headers = list_resource_claim_template_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaimtemplates_with_http_info(opts)
|
|
1505
1877
|
data
|
|
1506
1878
|
end
|
|
1507
1879
|
|
|
@@ -1516,12 +1888,13 @@ module Kubernetes
|
|
|
1516
1888
|
# @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
|
|
1517
1889
|
# @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
|
|
1518
1890
|
# @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.
|
|
1891
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1519
1892
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1520
1893
|
# @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.
|
|
1521
1894
|
# @return [Array<(V1beta2ResourceClaimTemplateList, Integer, Hash)>] V1beta2ResourceClaimTemplateList data, response status code and response headers
|
|
1522
|
-
def
|
|
1895
|
+
def list_resource_claim_template_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaimtemplates_with_http_info(opts = {})
|
|
1523
1896
|
if @api_client.config.debugging
|
|
1524
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1897
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_resource_claim_template_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaimtemplates ...'
|
|
1525
1898
|
end
|
|
1526
1899
|
# resource path
|
|
1527
1900
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceclaimtemplates'
|
|
@@ -1537,6 +1910,7 @@ module Kubernetes
|
|
|
1537
1910
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1538
1911
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1539
1912
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1913
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1540
1914
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1541
1915
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1542
1916
|
|
|
@@ -1558,7 +1932,7 @@ module Kubernetes
|
|
|
1558
1932
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1559
1933
|
|
|
1560
1934
|
new_options = opts.merge(
|
|
1561
|
-
:operation => :"ResourceV1beta2Api.
|
|
1935
|
+
:operation => :"ResourceV1beta2Api.list_resource_claim_template_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaimtemplates",
|
|
1562
1936
|
:header_params => header_params,
|
|
1563
1937
|
:query_params => query_params,
|
|
1564
1938
|
:form_params => form_params,
|
|
@@ -1569,7 +1943,7 @@ module Kubernetes
|
|
|
1569
1943
|
|
|
1570
1944
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1571
1945
|
if @api_client.config.debugging
|
|
1572
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
1946
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#list_resource_claim_template_for_all_namespaces_get_apis_resource_k8s_io_v1beta2_resourceclaimtemplates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1573
1947
|
end
|
|
1574
1948
|
return data, status_code, headers
|
|
1575
1949
|
end
|
|
@@ -1585,11 +1959,12 @@ module Kubernetes
|
|
|
1585
1959
|
# @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
|
|
1586
1960
|
# @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
|
|
1587
1961
|
# @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.
|
|
1962
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1588
1963
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1589
1964
|
# @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.
|
|
1590
1965
|
# @return [V1beta2ResourceSliceList]
|
|
1591
|
-
def
|
|
1592
|
-
data, _status_code, _headers =
|
|
1966
|
+
def list_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices(opts = {})
|
|
1967
|
+
data, _status_code, _headers = list_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_with_http_info(opts)
|
|
1593
1968
|
data
|
|
1594
1969
|
end
|
|
1595
1970
|
|
|
@@ -1604,12 +1979,13 @@ module Kubernetes
|
|
|
1604
1979
|
# @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
|
|
1605
1980
|
# @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
|
|
1606
1981
|
# @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.
|
|
1982
|
+
# @option opts [String] :shard_selector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
|
|
1607
1983
|
# @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
|
|
1608
1984
|
# @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.
|
|
1609
1985
|
# @return [Array<(V1beta2ResourceSliceList, Integer, Hash)>] V1beta2ResourceSliceList data, response status code and response headers
|
|
1610
|
-
def
|
|
1986
|
+
def list_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_with_http_info(opts = {})
|
|
1611
1987
|
if @api_client.config.debugging
|
|
1612
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
1988
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices ...'
|
|
1613
1989
|
end
|
|
1614
1990
|
# resource path
|
|
1615
1991
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices'
|
|
@@ -1625,6 +2001,7 @@ module Kubernetes
|
|
|
1625
2001
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1626
2002
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1627
2003
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
2004
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1628
2005
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1629
2006
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1630
2007
|
|
|
@@ -1646,7 +2023,7 @@ module Kubernetes
|
|
|
1646
2023
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1647
2024
|
|
|
1648
2025
|
new_options = opts.merge(
|
|
1649
|
-
:operation => :"ResourceV1beta2Api.
|
|
2026
|
+
:operation => :"ResourceV1beta2Api.list_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices",
|
|
1650
2027
|
:header_params => header_params,
|
|
1651
2028
|
:query_params => query_params,
|
|
1652
2029
|
:form_params => form_params,
|
|
@@ -1657,7 +2034,7 @@ module Kubernetes
|
|
|
1657
2034
|
|
|
1658
2035
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1659
2036
|
if @api_client.config.debugging
|
|
1660
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2037
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#list_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1661
2038
|
end
|
|
1662
2039
|
return data, status_code, headers
|
|
1663
2040
|
end
|
|
@@ -1672,8 +2049,8 @@ module Kubernetes
|
|
|
1672
2049
|
# @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.
|
|
1673
2050
|
# @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.
|
|
1674
2051
|
# @return [V1beta2DeviceClass]
|
|
1675
|
-
def
|
|
1676
|
-
data, _status_code, _headers =
|
|
2052
|
+
def patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name(name, body, opts = {})
|
|
2053
|
+
data, _status_code, _headers = patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, body, opts)
|
|
1677
2054
|
data
|
|
1678
2055
|
end
|
|
1679
2056
|
|
|
@@ -1687,17 +2064,17 @@ module Kubernetes
|
|
|
1687
2064
|
# @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.
|
|
1688
2065
|
# @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.
|
|
1689
2066
|
# @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
|
|
1690
|
-
def
|
|
2067
|
+
def patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, body, opts = {})
|
|
1691
2068
|
if @api_client.config.debugging
|
|
1692
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2069
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name ...'
|
|
1693
2070
|
end
|
|
1694
2071
|
# verify the required parameter 'name' is set
|
|
1695
2072
|
if @api_client.config.client_side_validation && name.nil?
|
|
1696
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2073
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name"
|
|
1697
2074
|
end
|
|
1698
2075
|
# verify the required parameter 'body' is set
|
|
1699
2076
|
if @api_client.config.client_side_validation && body.nil?
|
|
1700
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
2077
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name"
|
|
1701
2078
|
end
|
|
1702
2079
|
# resource path
|
|
1703
2080
|
local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -1730,7 +2107,7 @@ module Kubernetes
|
|
|
1730
2107
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1731
2108
|
|
|
1732
2109
|
new_options = opts.merge(
|
|
1733
|
-
:operation => :"ResourceV1beta2Api.
|
|
2110
|
+
:operation => :"ResourceV1beta2Api.patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name",
|
|
1734
2111
|
:header_params => header_params,
|
|
1735
2112
|
:query_params => query_params,
|
|
1736
2113
|
:form_params => form_params,
|
|
@@ -1741,7 +2118,175 @@ module Kubernetes
|
|
|
1741
2118
|
|
|
1742
2119
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1743
2120
|
if @api_client.config.debugging
|
|
1744
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2121
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_device_class_patch_apis_resource_k8s_io_v1beta2_deviceclasses_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2122
|
+
end
|
|
2123
|
+
return data, status_code, headers
|
|
2124
|
+
end
|
|
2125
|
+
|
|
2126
|
+
# partially update the specified DeviceTaintRule
|
|
2127
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2128
|
+
# @param body [Object]
|
|
2129
|
+
# @param [Hash] opts the optional parameters
|
|
2130
|
+
# @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).
|
|
2131
|
+
# @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
|
|
2132
|
+
# @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).
|
|
2133
|
+
# @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.
|
|
2134
|
+
# @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.
|
|
2135
|
+
# @return [V1beta2DeviceTaintRule]
|
|
2136
|
+
def patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name(name, body, opts = {})
|
|
2137
|
+
data, _status_code, _headers = patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, body, opts)
|
|
2138
|
+
data
|
|
2139
|
+
end
|
|
2140
|
+
|
|
2141
|
+
# partially update the specified DeviceTaintRule
|
|
2142
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2143
|
+
# @param body [Object]
|
|
2144
|
+
# @param [Hash] opts the optional parameters
|
|
2145
|
+
# @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).
|
|
2146
|
+
# @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
|
|
2147
|
+
# @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).
|
|
2148
|
+
# @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.
|
|
2149
|
+
# @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.
|
|
2150
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
2151
|
+
def patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, body, opts = {})
|
|
2152
|
+
if @api_client.config.debugging
|
|
2153
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name ...'
|
|
2154
|
+
end
|
|
2155
|
+
# verify the required parameter 'name' is set
|
|
2156
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
2157
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name"
|
|
2158
|
+
end
|
|
2159
|
+
# verify the required parameter 'body' is set
|
|
2160
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2161
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name"
|
|
2162
|
+
end
|
|
2163
|
+
# resource path
|
|
2164
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
2165
|
+
|
|
2166
|
+
# query parameters
|
|
2167
|
+
query_params = opts[:query_params] || {}
|
|
2168
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
2169
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
2170
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
2171
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
2172
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
|
2173
|
+
|
|
2174
|
+
# header parameters
|
|
2175
|
+
header_params = opts[:header_params] || {}
|
|
2176
|
+
# HTTP header 'Accept' (if needed)
|
|
2177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
2178
|
+
# HTTP header 'Content-Type'
|
|
2179
|
+
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'])
|
|
2180
|
+
|
|
2181
|
+
# form parameters
|
|
2182
|
+
form_params = opts[:form_params] || {}
|
|
2183
|
+
|
|
2184
|
+
# http body (model)
|
|
2185
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2186
|
+
|
|
2187
|
+
# return_type
|
|
2188
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
2189
|
+
|
|
2190
|
+
# auth_names
|
|
2191
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2192
|
+
|
|
2193
|
+
new_options = opts.merge(
|
|
2194
|
+
:operation => :"ResourceV1beta2Api.patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name",
|
|
2195
|
+
:header_params => header_params,
|
|
2196
|
+
:query_params => query_params,
|
|
2197
|
+
:form_params => form_params,
|
|
2198
|
+
:body => post_body,
|
|
2199
|
+
:auth_names => auth_names,
|
|
2200
|
+
:return_type => return_type
|
|
2201
|
+
)
|
|
2202
|
+
|
|
2203
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2204
|
+
if @api_client.config.debugging
|
|
2205
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_device_taint_rule_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2206
|
+
end
|
|
2207
|
+
return data, status_code, headers
|
|
2208
|
+
end
|
|
2209
|
+
|
|
2210
|
+
# partially update status of the specified DeviceTaintRule
|
|
2211
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2212
|
+
# @param body [Object]
|
|
2213
|
+
# @param [Hash] opts the optional parameters
|
|
2214
|
+
# @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).
|
|
2215
|
+
# @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
|
|
2216
|
+
# @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).
|
|
2217
|
+
# @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.
|
|
2218
|
+
# @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.
|
|
2219
|
+
# @return [V1beta2DeviceTaintRule]
|
|
2220
|
+
def patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status(name, body, opts = {})
|
|
2221
|
+
data, _status_code, _headers = patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status_with_http_info(name, body, opts)
|
|
2222
|
+
data
|
|
2223
|
+
end
|
|
2224
|
+
|
|
2225
|
+
# partially update status of the specified DeviceTaintRule
|
|
2226
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2227
|
+
# @param body [Object]
|
|
2228
|
+
# @param [Hash] opts the optional parameters
|
|
2229
|
+
# @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).
|
|
2230
|
+
# @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
|
|
2231
|
+
# @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).
|
|
2232
|
+
# @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.
|
|
2233
|
+
# @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.
|
|
2234
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
2235
|
+
def patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status_with_http_info(name, body, opts = {})
|
|
2236
|
+
if @api_client.config.debugging
|
|
2237
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status ...'
|
|
2238
|
+
end
|
|
2239
|
+
# verify the required parameter 'name' is set
|
|
2240
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
2241
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status"
|
|
2242
|
+
end
|
|
2243
|
+
# verify the required parameter 'body' is set
|
|
2244
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
2245
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status"
|
|
2246
|
+
end
|
|
2247
|
+
# resource path
|
|
2248
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
2249
|
+
|
|
2250
|
+
# query parameters
|
|
2251
|
+
query_params = opts[:query_params] || {}
|
|
2252
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
2253
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
2254
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
2255
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
2256
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
|
2257
|
+
|
|
2258
|
+
# header parameters
|
|
2259
|
+
header_params = opts[:header_params] || {}
|
|
2260
|
+
# HTTP header 'Accept' (if needed)
|
|
2261
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
2262
|
+
# HTTP header 'Content-Type'
|
|
2263
|
+
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'])
|
|
2264
|
+
|
|
2265
|
+
# form parameters
|
|
2266
|
+
form_params = opts[:form_params] || {}
|
|
2267
|
+
|
|
2268
|
+
# http body (model)
|
|
2269
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
2270
|
+
|
|
2271
|
+
# return_type
|
|
2272
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
2273
|
+
|
|
2274
|
+
# auth_names
|
|
2275
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2276
|
+
|
|
2277
|
+
new_options = opts.merge(
|
|
2278
|
+
:operation => :"ResourceV1beta2Api.patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status",
|
|
2279
|
+
:header_params => header_params,
|
|
2280
|
+
:query_params => query_params,
|
|
2281
|
+
:form_params => form_params,
|
|
2282
|
+
:body => post_body,
|
|
2283
|
+
:auth_names => auth_names,
|
|
2284
|
+
:return_type => return_type
|
|
2285
|
+
)
|
|
2286
|
+
|
|
2287
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2288
|
+
if @api_client.config.debugging
|
|
2289
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_device_taint_rule_status_patch_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1745
2290
|
end
|
|
1746
2291
|
return data, status_code, headers
|
|
1747
2292
|
end
|
|
@@ -1757,8 +2302,8 @@ module Kubernetes
|
|
|
1757
2302
|
# @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.
|
|
1758
2303
|
# @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.
|
|
1759
2304
|
# @return [V1beta2ResourceClaim]
|
|
1760
|
-
def
|
|
1761
|
-
data, _status_code, _headers =
|
|
2305
|
+
def patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name(name, namespace, body, opts = {})
|
|
2306
|
+
data, _status_code, _headers = patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, body, opts)
|
|
1762
2307
|
data
|
|
1763
2308
|
end
|
|
1764
2309
|
|
|
@@ -1773,21 +2318,21 @@ module Kubernetes
|
|
|
1773
2318
|
# @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.
|
|
1774
2319
|
# @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.
|
|
1775
2320
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
1776
|
-
def
|
|
2321
|
+
def patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, body, opts = {})
|
|
1777
2322
|
if @api_client.config.debugging
|
|
1778
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2323
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name ...'
|
|
1779
2324
|
end
|
|
1780
2325
|
# verify the required parameter 'name' is set
|
|
1781
2326
|
if @api_client.config.client_side_validation && name.nil?
|
|
1782
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2327
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
1783
2328
|
end
|
|
1784
2329
|
# verify the required parameter 'namespace' is set
|
|
1785
2330
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1786
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
2331
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
1787
2332
|
end
|
|
1788
2333
|
# verify the required parameter 'body' is set
|
|
1789
2334
|
if @api_client.config.client_side_validation && body.nil?
|
|
1790
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
2335
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
1791
2336
|
end
|
|
1792
2337
|
# resource path
|
|
1793
2338
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -1820,7 +2365,7 @@ module Kubernetes
|
|
|
1820
2365
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1821
2366
|
|
|
1822
2367
|
new_options = opts.merge(
|
|
1823
|
-
:operation => :"ResourceV1beta2Api.
|
|
2368
|
+
:operation => :"ResourceV1beta2Api.patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name",
|
|
1824
2369
|
:header_params => header_params,
|
|
1825
2370
|
:query_params => query_params,
|
|
1826
2371
|
:form_params => form_params,
|
|
@@ -1831,7 +2376,7 @@ module Kubernetes
|
|
|
1831
2376
|
|
|
1832
2377
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1833
2378
|
if @api_client.config.debugging
|
|
1834
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2379
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_namespaced_resource_claim_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1835
2380
|
end
|
|
1836
2381
|
return data, status_code, headers
|
|
1837
2382
|
end
|
|
@@ -1847,8 +2392,8 @@ module Kubernetes
|
|
|
1847
2392
|
# @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.
|
|
1848
2393
|
# @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.
|
|
1849
2394
|
# @return [V1beta2ResourceClaim]
|
|
1850
|
-
def
|
|
1851
|
-
data, _status_code, _headers =
|
|
2395
|
+
def patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status(name, namespace, body, opts = {})
|
|
2396
|
+
data, _status_code, _headers = patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status_with_http_info(name, namespace, body, opts)
|
|
1852
2397
|
data
|
|
1853
2398
|
end
|
|
1854
2399
|
|
|
@@ -1863,21 +2408,21 @@ module Kubernetes
|
|
|
1863
2408
|
# @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.
|
|
1864
2409
|
# @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.
|
|
1865
2410
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
1866
|
-
def
|
|
2411
|
+
def patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status_with_http_info(name, namespace, body, opts = {})
|
|
1867
2412
|
if @api_client.config.debugging
|
|
1868
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2413
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status ...'
|
|
1869
2414
|
end
|
|
1870
2415
|
# verify the required parameter 'name' is set
|
|
1871
2416
|
if @api_client.config.client_side_validation && name.nil?
|
|
1872
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2417
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
1873
2418
|
end
|
|
1874
2419
|
# verify the required parameter 'namespace' is set
|
|
1875
2420
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1876
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
2421
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
1877
2422
|
end
|
|
1878
2423
|
# verify the required parameter 'body' is set
|
|
1879
2424
|
if @api_client.config.client_side_validation && body.nil?
|
|
1880
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
2425
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
1881
2426
|
end
|
|
1882
2427
|
# resource path
|
|
1883
2428
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -1910,7 +2455,7 @@ module Kubernetes
|
|
|
1910
2455
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1911
2456
|
|
|
1912
2457
|
new_options = opts.merge(
|
|
1913
|
-
:operation => :"ResourceV1beta2Api.
|
|
2458
|
+
:operation => :"ResourceV1beta2Api.patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status",
|
|
1914
2459
|
:header_params => header_params,
|
|
1915
2460
|
:query_params => query_params,
|
|
1916
2461
|
:form_params => form_params,
|
|
@@ -1921,7 +2466,7 @@ module Kubernetes
|
|
|
1921
2466
|
|
|
1922
2467
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1923
2468
|
if @api_client.config.debugging
|
|
1924
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2469
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_namespaced_resource_claim_status_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1925
2470
|
end
|
|
1926
2471
|
return data, status_code, headers
|
|
1927
2472
|
end
|
|
@@ -1937,8 +2482,8 @@ module Kubernetes
|
|
|
1937
2482
|
# @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.
|
|
1938
2483
|
# @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.
|
|
1939
2484
|
# @return [V1beta2ResourceClaimTemplate]
|
|
1940
|
-
def
|
|
1941
|
-
data, _status_code, _headers =
|
|
2485
|
+
def patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name(name, namespace, body, opts = {})
|
|
2486
|
+
data, _status_code, _headers = patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, body, opts)
|
|
1942
2487
|
data
|
|
1943
2488
|
end
|
|
1944
2489
|
|
|
@@ -1953,21 +2498,21 @@ module Kubernetes
|
|
|
1953
2498
|
# @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.
|
|
1954
2499
|
# @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.
|
|
1955
2500
|
# @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
|
|
1956
|
-
def
|
|
2501
|
+
def patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, body, opts = {})
|
|
1957
2502
|
if @api_client.config.debugging
|
|
1958
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2503
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name ...'
|
|
1959
2504
|
end
|
|
1960
2505
|
# verify the required parameter 'name' is set
|
|
1961
2506
|
if @api_client.config.client_side_validation && name.nil?
|
|
1962
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2507
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
1963
2508
|
end
|
|
1964
2509
|
# verify the required parameter 'namespace' is set
|
|
1965
2510
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1966
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
2511
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
1967
2512
|
end
|
|
1968
2513
|
# verify the required parameter 'body' is set
|
|
1969
2514
|
if @api_client.config.client_side_validation && body.nil?
|
|
1970
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
2515
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
1971
2516
|
end
|
|
1972
2517
|
# resource path
|
|
1973
2518
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2000,7 +2545,7 @@ module Kubernetes
|
|
|
2000
2545
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2001
2546
|
|
|
2002
2547
|
new_options = opts.merge(
|
|
2003
|
-
:operation => :"ResourceV1beta2Api.
|
|
2548
|
+
:operation => :"ResourceV1beta2Api.patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name",
|
|
2004
2549
|
:header_params => header_params,
|
|
2005
2550
|
:query_params => query_params,
|
|
2006
2551
|
:form_params => form_params,
|
|
@@ -2011,7 +2556,7 @@ module Kubernetes
|
|
|
2011
2556
|
|
|
2012
2557
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2013
2558
|
if @api_client.config.debugging
|
|
2014
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2559
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_namespaced_resource_claim_template_patch_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2015
2560
|
end
|
|
2016
2561
|
return data, status_code, headers
|
|
2017
2562
|
end
|
|
@@ -2026,8 +2571,8 @@ module Kubernetes
|
|
|
2026
2571
|
# @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.
|
|
2027
2572
|
# @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.
|
|
2028
2573
|
# @return [V1beta2ResourceSlice]
|
|
2029
|
-
def
|
|
2030
|
-
data, _status_code, _headers =
|
|
2574
|
+
def patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name(name, body, opts = {})
|
|
2575
|
+
data, _status_code, _headers = patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, body, opts)
|
|
2031
2576
|
data
|
|
2032
2577
|
end
|
|
2033
2578
|
|
|
@@ -2041,17 +2586,17 @@ module Kubernetes
|
|
|
2041
2586
|
# @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.
|
|
2042
2587
|
# @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.
|
|
2043
2588
|
# @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
|
|
2044
|
-
def
|
|
2589
|
+
def patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, body, opts = {})
|
|
2045
2590
|
if @api_client.config.debugging
|
|
2046
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2591
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name ...'
|
|
2047
2592
|
end
|
|
2048
2593
|
# verify the required parameter 'name' is set
|
|
2049
2594
|
if @api_client.config.client_side_validation && name.nil?
|
|
2050
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2595
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name"
|
|
2051
2596
|
end
|
|
2052
2597
|
# verify the required parameter 'body' is set
|
|
2053
2598
|
if @api_client.config.client_side_validation && body.nil?
|
|
2054
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
2599
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name"
|
|
2055
2600
|
end
|
|
2056
2601
|
# resource path
|
|
2057
2602
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2084,7 +2629,7 @@ module Kubernetes
|
|
|
2084
2629
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2085
2630
|
|
|
2086
2631
|
new_options = opts.merge(
|
|
2087
|
-
:operation => :"ResourceV1beta2Api.
|
|
2632
|
+
:operation => :"ResourceV1beta2Api.patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name",
|
|
2088
2633
|
:header_params => header_params,
|
|
2089
2634
|
:query_params => query_params,
|
|
2090
2635
|
:form_params => form_params,
|
|
@@ -2095,7 +2640,7 @@ module Kubernetes
|
|
|
2095
2640
|
|
|
2096
2641
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2097
2642
|
if @api_client.config.debugging
|
|
2098
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2643
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_resource_slice_patch_apis_resource_k8s_io_v1beta2_resourceslices_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2099
2644
|
end
|
|
2100
2645
|
return data, status_code, headers
|
|
2101
2646
|
end
|
|
@@ -2105,8 +2650,8 @@ module Kubernetes
|
|
|
2105
2650
|
# @param [Hash] opts the optional parameters
|
|
2106
2651
|
# @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).
|
|
2107
2652
|
# @return [V1beta2DeviceClass]
|
|
2108
|
-
def
|
|
2109
|
-
data, _status_code, _headers =
|
|
2653
|
+
def read_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_by_name(name, opts = {})
|
|
2654
|
+
data, _status_code, _headers = read_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, opts)
|
|
2110
2655
|
data
|
|
2111
2656
|
end
|
|
2112
2657
|
|
|
@@ -2115,13 +2660,13 @@ module Kubernetes
|
|
|
2115
2660
|
# @param [Hash] opts the optional parameters
|
|
2116
2661
|
# @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).
|
|
2117
2662
|
# @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
|
|
2118
|
-
def
|
|
2663
|
+
def read_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, opts = {})
|
|
2119
2664
|
if @api_client.config.debugging
|
|
2120
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2665
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_by_name ...'
|
|
2121
2666
|
end
|
|
2122
2667
|
# verify the required parameter 'name' is set
|
|
2123
2668
|
if @api_client.config.client_side_validation && name.nil?
|
|
2124
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2669
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_by_name"
|
|
2125
2670
|
end
|
|
2126
2671
|
# resource path
|
|
2127
2672
|
local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2148,7 +2693,135 @@ module Kubernetes
|
|
|
2148
2693
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2149
2694
|
|
|
2150
2695
|
new_options = opts.merge(
|
|
2151
|
-
:operation => :"ResourceV1beta2Api.
|
|
2696
|
+
:operation => :"ResourceV1beta2Api.read_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_by_name",
|
|
2697
|
+
:header_params => header_params,
|
|
2698
|
+
:query_params => query_params,
|
|
2699
|
+
:form_params => form_params,
|
|
2700
|
+
:body => post_body,
|
|
2701
|
+
:auth_names => auth_names,
|
|
2702
|
+
:return_type => return_type
|
|
2703
|
+
)
|
|
2704
|
+
|
|
2705
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2706
|
+
if @api_client.config.debugging
|
|
2707
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#read_device_class_get_apis_resource_k8s_io_v1beta2_deviceclasses_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2708
|
+
end
|
|
2709
|
+
return data, status_code, headers
|
|
2710
|
+
end
|
|
2711
|
+
|
|
2712
|
+
# read the specified DeviceTaintRule
|
|
2713
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2714
|
+
# @param [Hash] opts the optional parameters
|
|
2715
|
+
# @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).
|
|
2716
|
+
# @return [V1beta2DeviceTaintRule]
|
|
2717
|
+
def read_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name(name, opts = {})
|
|
2718
|
+
data, _status_code, _headers = read_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, opts)
|
|
2719
|
+
data
|
|
2720
|
+
end
|
|
2721
|
+
|
|
2722
|
+
# read the specified DeviceTaintRule
|
|
2723
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2724
|
+
# @param [Hash] opts the optional parameters
|
|
2725
|
+
# @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).
|
|
2726
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
2727
|
+
def read_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, opts = {})
|
|
2728
|
+
if @api_client.config.debugging
|
|
2729
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name ...'
|
|
2730
|
+
end
|
|
2731
|
+
# verify the required parameter 'name' is set
|
|
2732
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
2733
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name"
|
|
2734
|
+
end
|
|
2735
|
+
# resource path
|
|
2736
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
2737
|
+
|
|
2738
|
+
# query parameters
|
|
2739
|
+
query_params = opts[:query_params] || {}
|
|
2740
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
2741
|
+
|
|
2742
|
+
# header parameters
|
|
2743
|
+
header_params = opts[:header_params] || {}
|
|
2744
|
+
# HTTP header 'Accept' (if needed)
|
|
2745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
2746
|
+
|
|
2747
|
+
# form parameters
|
|
2748
|
+
form_params = opts[:form_params] || {}
|
|
2749
|
+
|
|
2750
|
+
# http body (model)
|
|
2751
|
+
post_body = opts[:debug_body]
|
|
2752
|
+
|
|
2753
|
+
# return_type
|
|
2754
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
2755
|
+
|
|
2756
|
+
# auth_names
|
|
2757
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2758
|
+
|
|
2759
|
+
new_options = opts.merge(
|
|
2760
|
+
:operation => :"ResourceV1beta2Api.read_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name",
|
|
2761
|
+
:header_params => header_params,
|
|
2762
|
+
:query_params => query_params,
|
|
2763
|
+
:form_params => form_params,
|
|
2764
|
+
:body => post_body,
|
|
2765
|
+
:auth_names => auth_names,
|
|
2766
|
+
:return_type => return_type
|
|
2767
|
+
)
|
|
2768
|
+
|
|
2769
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2770
|
+
if @api_client.config.debugging
|
|
2771
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#read_device_taint_rule_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2772
|
+
end
|
|
2773
|
+
return data, status_code, headers
|
|
2774
|
+
end
|
|
2775
|
+
|
|
2776
|
+
# read status of the specified DeviceTaintRule
|
|
2777
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2778
|
+
# @param [Hash] opts the optional parameters
|
|
2779
|
+
# @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).
|
|
2780
|
+
# @return [V1beta2DeviceTaintRule]
|
|
2781
|
+
def read_device_taint_rule_status_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status(name, opts = {})
|
|
2782
|
+
data, _status_code, _headers = read_device_taint_rule_status_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status_with_http_info(name, opts)
|
|
2783
|
+
data
|
|
2784
|
+
end
|
|
2785
|
+
|
|
2786
|
+
# read status of the specified DeviceTaintRule
|
|
2787
|
+
# @param name [String] name of the DeviceTaintRule
|
|
2788
|
+
# @param [Hash] opts the optional parameters
|
|
2789
|
+
# @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).
|
|
2790
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
2791
|
+
def read_device_taint_rule_status_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status_with_http_info(name, opts = {})
|
|
2792
|
+
if @api_client.config.debugging
|
|
2793
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_device_taint_rule_status_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status ...'
|
|
2794
|
+
end
|
|
2795
|
+
# verify the required parameter 'name' is set
|
|
2796
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
2797
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_device_taint_rule_status_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status"
|
|
2798
|
+
end
|
|
2799
|
+
# resource path
|
|
2800
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
2801
|
+
|
|
2802
|
+
# query parameters
|
|
2803
|
+
query_params = opts[:query_params] || {}
|
|
2804
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
2805
|
+
|
|
2806
|
+
# header parameters
|
|
2807
|
+
header_params = opts[:header_params] || {}
|
|
2808
|
+
# HTTP header 'Accept' (if needed)
|
|
2809
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
2810
|
+
|
|
2811
|
+
# form parameters
|
|
2812
|
+
form_params = opts[:form_params] || {}
|
|
2813
|
+
|
|
2814
|
+
# http body (model)
|
|
2815
|
+
post_body = opts[:debug_body]
|
|
2816
|
+
|
|
2817
|
+
# return_type
|
|
2818
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
2819
|
+
|
|
2820
|
+
# auth_names
|
|
2821
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2822
|
+
|
|
2823
|
+
new_options = opts.merge(
|
|
2824
|
+
:operation => :"ResourceV1beta2Api.read_device_taint_rule_status_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status",
|
|
2152
2825
|
:header_params => header_params,
|
|
2153
2826
|
:query_params => query_params,
|
|
2154
2827
|
:form_params => form_params,
|
|
@@ -2159,7 +2832,7 @@ module Kubernetes
|
|
|
2159
2832
|
|
|
2160
2833
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2161
2834
|
if @api_client.config.debugging
|
|
2162
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2835
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#read_device_taint_rule_status_get_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2163
2836
|
end
|
|
2164
2837
|
return data, status_code, headers
|
|
2165
2838
|
end
|
|
@@ -2170,8 +2843,8 @@ module Kubernetes
|
|
|
2170
2843
|
# @param [Hash] opts the optional parameters
|
|
2171
2844
|
# @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).
|
|
2172
2845
|
# @return [V1beta2ResourceClaim]
|
|
2173
|
-
def
|
|
2174
|
-
data, _status_code, _headers =
|
|
2846
|
+
def read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name(name, namespace, opts = {})
|
|
2847
|
+
data, _status_code, _headers = read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, opts)
|
|
2175
2848
|
data
|
|
2176
2849
|
end
|
|
2177
2850
|
|
|
@@ -2181,17 +2854,17 @@ module Kubernetes
|
|
|
2181
2854
|
# @param [Hash] opts the optional parameters
|
|
2182
2855
|
# @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).
|
|
2183
2856
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
2184
|
-
def
|
|
2857
|
+
def read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, opts = {})
|
|
2185
2858
|
if @api_client.config.debugging
|
|
2186
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2859
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name ...'
|
|
2187
2860
|
end
|
|
2188
2861
|
# verify the required parameter 'name' is set
|
|
2189
2862
|
if @api_client.config.client_side_validation && name.nil?
|
|
2190
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2863
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
2191
2864
|
end
|
|
2192
2865
|
# verify the required parameter 'namespace' is set
|
|
2193
2866
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2194
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
2867
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
2195
2868
|
end
|
|
2196
2869
|
# resource path
|
|
2197
2870
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2218,7 +2891,7 @@ module Kubernetes
|
|
|
2218
2891
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2219
2892
|
|
|
2220
2893
|
new_options = opts.merge(
|
|
2221
|
-
:operation => :"ResourceV1beta2Api.
|
|
2894
|
+
:operation => :"ResourceV1beta2Api.read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name",
|
|
2222
2895
|
:header_params => header_params,
|
|
2223
2896
|
:query_params => query_params,
|
|
2224
2897
|
:form_params => form_params,
|
|
@@ -2229,7 +2902,7 @@ module Kubernetes
|
|
|
2229
2902
|
|
|
2230
2903
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2231
2904
|
if @api_client.config.debugging
|
|
2232
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2905
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#read_namespaced_resource_claim_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2233
2906
|
end
|
|
2234
2907
|
return data, status_code, headers
|
|
2235
2908
|
end
|
|
@@ -2240,8 +2913,8 @@ module Kubernetes
|
|
|
2240
2913
|
# @param [Hash] opts the optional parameters
|
|
2241
2914
|
# @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).
|
|
2242
2915
|
# @return [V1beta2ResourceClaim]
|
|
2243
|
-
def
|
|
2244
|
-
data, _status_code, _headers =
|
|
2916
|
+
def read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status(name, namespace, opts = {})
|
|
2917
|
+
data, _status_code, _headers = read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status_with_http_info(name, namespace, opts)
|
|
2245
2918
|
data
|
|
2246
2919
|
end
|
|
2247
2920
|
|
|
@@ -2251,17 +2924,17 @@ module Kubernetes
|
|
|
2251
2924
|
# @param [Hash] opts the optional parameters
|
|
2252
2925
|
# @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).
|
|
2253
2926
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
2254
|
-
def
|
|
2927
|
+
def read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status_with_http_info(name, namespace, opts = {})
|
|
2255
2928
|
if @api_client.config.debugging
|
|
2256
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2929
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status ...'
|
|
2257
2930
|
end
|
|
2258
2931
|
# verify the required parameter 'name' is set
|
|
2259
2932
|
if @api_client.config.client_side_validation && name.nil?
|
|
2260
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
2933
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
2261
2934
|
end
|
|
2262
2935
|
# verify the required parameter 'namespace' is set
|
|
2263
2936
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2264
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
2937
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
2265
2938
|
end
|
|
2266
2939
|
# resource path
|
|
2267
2940
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2288,7 +2961,7 @@ module Kubernetes
|
|
|
2288
2961
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2289
2962
|
|
|
2290
2963
|
new_options = opts.merge(
|
|
2291
|
-
:operation => :"ResourceV1beta2Api.
|
|
2964
|
+
:operation => :"ResourceV1beta2Api.read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status",
|
|
2292
2965
|
:header_params => header_params,
|
|
2293
2966
|
:query_params => query_params,
|
|
2294
2967
|
:form_params => form_params,
|
|
@@ -2299,7 +2972,7 @@ module Kubernetes
|
|
|
2299
2972
|
|
|
2300
2973
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2301
2974
|
if @api_client.config.debugging
|
|
2302
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
2975
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#read_namespaced_resource_claim_status_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2303
2976
|
end
|
|
2304
2977
|
return data, status_code, headers
|
|
2305
2978
|
end
|
|
@@ -2310,8 +2983,8 @@ module Kubernetes
|
|
|
2310
2983
|
# @param [Hash] opts the optional parameters
|
|
2311
2984
|
# @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).
|
|
2312
2985
|
# @return [V1beta2ResourceClaimTemplate]
|
|
2313
|
-
def
|
|
2314
|
-
data, _status_code, _headers =
|
|
2986
|
+
def read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name(name, namespace, opts = {})
|
|
2987
|
+
data, _status_code, _headers = read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, opts)
|
|
2315
2988
|
data
|
|
2316
2989
|
end
|
|
2317
2990
|
|
|
@@ -2321,17 +2994,17 @@ module Kubernetes
|
|
|
2321
2994
|
# @param [Hash] opts the optional parameters
|
|
2322
2995
|
# @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).
|
|
2323
2996
|
# @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
|
|
2324
|
-
def
|
|
2997
|
+
def read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, opts = {})
|
|
2325
2998
|
if @api_client.config.debugging
|
|
2326
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
2999
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name ...'
|
|
2327
3000
|
end
|
|
2328
3001
|
# verify the required parameter 'name' is set
|
|
2329
3002
|
if @api_client.config.client_side_validation && name.nil?
|
|
2330
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
3003
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
2331
3004
|
end
|
|
2332
3005
|
# verify the required parameter 'namespace' is set
|
|
2333
3006
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2334
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
3007
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
2335
3008
|
end
|
|
2336
3009
|
# resource path
|
|
2337
3010
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2358,7 +3031,7 @@ module Kubernetes
|
|
|
2358
3031
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2359
3032
|
|
|
2360
3033
|
new_options = opts.merge(
|
|
2361
|
-
:operation => :"ResourceV1beta2Api.
|
|
3034
|
+
:operation => :"ResourceV1beta2Api.read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name",
|
|
2362
3035
|
:header_params => header_params,
|
|
2363
3036
|
:query_params => query_params,
|
|
2364
3037
|
:form_params => form_params,
|
|
@@ -2369,7 +3042,7 @@ module Kubernetes
|
|
|
2369
3042
|
|
|
2370
3043
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2371
3044
|
if @api_client.config.debugging
|
|
2372
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
3045
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#read_namespaced_resource_claim_template_get_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2373
3046
|
end
|
|
2374
3047
|
return data, status_code, headers
|
|
2375
3048
|
end
|
|
@@ -2379,8 +3052,8 @@ module Kubernetes
|
|
|
2379
3052
|
# @param [Hash] opts the optional parameters
|
|
2380
3053
|
# @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).
|
|
2381
3054
|
# @return [V1beta2ResourceSlice]
|
|
2382
|
-
def
|
|
2383
|
-
data, _status_code, _headers =
|
|
3055
|
+
def read_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_by_name(name, opts = {})
|
|
3056
|
+
data, _status_code, _headers = read_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, opts)
|
|
2384
3057
|
data
|
|
2385
3058
|
end
|
|
2386
3059
|
|
|
@@ -2389,13 +3062,13 @@ module Kubernetes
|
|
|
2389
3062
|
# @param [Hash] opts the optional parameters
|
|
2390
3063
|
# @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).
|
|
2391
3064
|
# @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
|
|
2392
|
-
def
|
|
3065
|
+
def read_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, opts = {})
|
|
2393
3066
|
if @api_client.config.debugging
|
|
2394
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
3067
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_by_name ...'
|
|
2395
3068
|
end
|
|
2396
3069
|
# verify the required parameter 'name' is set
|
|
2397
3070
|
if @api_client.config.client_side_validation && name.nil?
|
|
2398
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
3071
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_by_name"
|
|
2399
3072
|
end
|
|
2400
3073
|
# resource path
|
|
2401
3074
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2422,7 +3095,7 @@ module Kubernetes
|
|
|
2422
3095
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2423
3096
|
|
|
2424
3097
|
new_options = opts.merge(
|
|
2425
|
-
:operation => :"ResourceV1beta2Api.
|
|
3098
|
+
:operation => :"ResourceV1beta2Api.read_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_by_name",
|
|
2426
3099
|
:header_params => header_params,
|
|
2427
3100
|
:query_params => query_params,
|
|
2428
3101
|
:form_params => form_params,
|
|
@@ -2433,7 +3106,7 @@ module Kubernetes
|
|
|
2433
3106
|
|
|
2434
3107
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2435
3108
|
if @api_client.config.debugging
|
|
2436
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
3109
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#read_resource_slice_get_apis_resource_k8s_io_v1beta2_resourceslices_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2437
3110
|
end
|
|
2438
3111
|
return data, status_code, headers
|
|
2439
3112
|
end
|
|
@@ -2447,8 +3120,8 @@ module Kubernetes
|
|
|
2447
3120
|
# @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.
|
|
2448
3121
|
# @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.
|
|
2449
3122
|
# @return [V1beta2DeviceClass]
|
|
2450
|
-
def
|
|
2451
|
-
data, _status_code, _headers =
|
|
3123
|
+
def replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name(name, body, opts = {})
|
|
3124
|
+
data, _status_code, _headers = replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, body, opts)
|
|
2452
3125
|
data
|
|
2453
3126
|
end
|
|
2454
3127
|
|
|
@@ -2461,17 +3134,17 @@ module Kubernetes
|
|
|
2461
3134
|
# @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.
|
|
2462
3135
|
# @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.
|
|
2463
3136
|
# @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
|
|
2464
|
-
def
|
|
3137
|
+
def replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name_with_http_info(name, body, opts = {})
|
|
2465
3138
|
if @api_client.config.debugging
|
|
2466
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
3139
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name ...'
|
|
2467
3140
|
end
|
|
2468
3141
|
# verify the required parameter 'name' is set
|
|
2469
3142
|
if @api_client.config.client_side_validation && name.nil?
|
|
2470
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
3143
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name"
|
|
2471
3144
|
end
|
|
2472
3145
|
# verify the required parameter 'body' is set
|
|
2473
3146
|
if @api_client.config.client_side_validation && body.nil?
|
|
2474
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
3147
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name"
|
|
2475
3148
|
end
|
|
2476
3149
|
# resource path
|
|
2477
3150
|
local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2501,7 +3174,165 @@ module Kubernetes
|
|
|
2501
3174
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2502
3175
|
|
|
2503
3176
|
new_options = opts.merge(
|
|
2504
|
-
:operation => :"ResourceV1beta2Api.
|
|
3177
|
+
:operation => :"ResourceV1beta2Api.replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name",
|
|
3178
|
+
:header_params => header_params,
|
|
3179
|
+
:query_params => query_params,
|
|
3180
|
+
:form_params => form_params,
|
|
3181
|
+
:body => post_body,
|
|
3182
|
+
:auth_names => auth_names,
|
|
3183
|
+
:return_type => return_type
|
|
3184
|
+
)
|
|
3185
|
+
|
|
3186
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3187
|
+
if @api_client.config.debugging
|
|
3188
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_device_class_put_apis_resource_k8s_io_v1beta2_deviceclasses_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3189
|
+
end
|
|
3190
|
+
return data, status_code, headers
|
|
3191
|
+
end
|
|
3192
|
+
|
|
3193
|
+
# replace the specified DeviceTaintRule
|
|
3194
|
+
# @param name [String] name of the DeviceTaintRule
|
|
3195
|
+
# @param body [V1beta2DeviceTaintRule]
|
|
3196
|
+
# @param [Hash] opts the optional parameters
|
|
3197
|
+
# @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).
|
|
3198
|
+
# @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
|
|
3199
|
+
# @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.
|
|
3200
|
+
# @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.
|
|
3201
|
+
# @return [V1beta2DeviceTaintRule]
|
|
3202
|
+
def replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name(name, body, opts = {})
|
|
3203
|
+
data, _status_code, _headers = replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, body, opts)
|
|
3204
|
+
data
|
|
3205
|
+
end
|
|
3206
|
+
|
|
3207
|
+
# replace the specified DeviceTaintRule
|
|
3208
|
+
# @param name [String] name of the DeviceTaintRule
|
|
3209
|
+
# @param body [V1beta2DeviceTaintRule]
|
|
3210
|
+
# @param [Hash] opts the optional parameters
|
|
3211
|
+
# @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).
|
|
3212
|
+
# @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
|
|
3213
|
+
# @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.
|
|
3214
|
+
# @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.
|
|
3215
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
3216
|
+
def replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_with_http_info(name, body, opts = {})
|
|
3217
|
+
if @api_client.config.debugging
|
|
3218
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name ...'
|
|
3219
|
+
end
|
|
3220
|
+
# verify the required parameter 'name' is set
|
|
3221
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
3222
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name"
|
|
3223
|
+
end
|
|
3224
|
+
# verify the required parameter 'body' is set
|
|
3225
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
3226
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name"
|
|
3227
|
+
end
|
|
3228
|
+
# resource path
|
|
3229
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
3230
|
+
|
|
3231
|
+
# query parameters
|
|
3232
|
+
query_params = opts[:query_params] || {}
|
|
3233
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
3234
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
3235
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
3236
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
3237
|
+
|
|
3238
|
+
# header parameters
|
|
3239
|
+
header_params = opts[:header_params] || {}
|
|
3240
|
+
# HTTP header 'Accept' (if needed)
|
|
3241
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
3242
|
+
|
|
3243
|
+
# form parameters
|
|
3244
|
+
form_params = opts[:form_params] || {}
|
|
3245
|
+
|
|
3246
|
+
# http body (model)
|
|
3247
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
3248
|
+
|
|
3249
|
+
# return_type
|
|
3250
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
3251
|
+
|
|
3252
|
+
# auth_names
|
|
3253
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
3254
|
+
|
|
3255
|
+
new_options = opts.merge(
|
|
3256
|
+
:operation => :"ResourceV1beta2Api.replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name",
|
|
3257
|
+
:header_params => header_params,
|
|
3258
|
+
:query_params => query_params,
|
|
3259
|
+
:form_params => form_params,
|
|
3260
|
+
:body => post_body,
|
|
3261
|
+
:auth_names => auth_names,
|
|
3262
|
+
:return_type => return_type
|
|
3263
|
+
)
|
|
3264
|
+
|
|
3265
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3266
|
+
if @api_client.config.debugging
|
|
3267
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_device_taint_rule_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3268
|
+
end
|
|
3269
|
+
return data, status_code, headers
|
|
3270
|
+
end
|
|
3271
|
+
|
|
3272
|
+
# replace status of the specified DeviceTaintRule
|
|
3273
|
+
# @param name [String] name of the DeviceTaintRule
|
|
3274
|
+
# @param body [V1beta2DeviceTaintRule]
|
|
3275
|
+
# @param [Hash] opts the optional parameters
|
|
3276
|
+
# @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).
|
|
3277
|
+
# @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
|
|
3278
|
+
# @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.
|
|
3279
|
+
# @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.
|
|
3280
|
+
# @return [V1beta2DeviceTaintRule]
|
|
3281
|
+
def replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status(name, body, opts = {})
|
|
3282
|
+
data, _status_code, _headers = replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status_with_http_info(name, body, opts)
|
|
3283
|
+
data
|
|
3284
|
+
end
|
|
3285
|
+
|
|
3286
|
+
# replace status of the specified DeviceTaintRule
|
|
3287
|
+
# @param name [String] name of the DeviceTaintRule
|
|
3288
|
+
# @param body [V1beta2DeviceTaintRule]
|
|
3289
|
+
# @param [Hash] opts the optional parameters
|
|
3290
|
+
# @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).
|
|
3291
|
+
# @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
|
|
3292
|
+
# @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.
|
|
3293
|
+
# @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.
|
|
3294
|
+
# @return [Array<(V1beta2DeviceTaintRule, Integer, Hash)>] V1beta2DeviceTaintRule data, response status code and response headers
|
|
3295
|
+
def replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status_with_http_info(name, body, opts = {})
|
|
3296
|
+
if @api_client.config.debugging
|
|
3297
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status ...'
|
|
3298
|
+
end
|
|
3299
|
+
# verify the required parameter 'name' is set
|
|
3300
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
3301
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status"
|
|
3302
|
+
end
|
|
3303
|
+
# verify the required parameter 'body' is set
|
|
3304
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
3305
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status"
|
|
3306
|
+
end
|
|
3307
|
+
# resource path
|
|
3308
|
+
local_var_path = '/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
3309
|
+
|
|
3310
|
+
# query parameters
|
|
3311
|
+
query_params = opts[:query_params] || {}
|
|
3312
|
+
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
|
3313
|
+
query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
|
|
3314
|
+
query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
|
|
3315
|
+
query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
|
|
3316
|
+
|
|
3317
|
+
# header parameters
|
|
3318
|
+
header_params = opts[:header_params] || {}
|
|
3319
|
+
# HTTP header 'Accept' (if needed)
|
|
3320
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
|
|
3321
|
+
|
|
3322
|
+
# form parameters
|
|
3323
|
+
form_params = opts[:form_params] || {}
|
|
3324
|
+
|
|
3325
|
+
# http body (model)
|
|
3326
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
|
|
3327
|
+
|
|
3328
|
+
# return_type
|
|
3329
|
+
return_type = opts[:debug_return_type] || 'V1beta2DeviceTaintRule'
|
|
3330
|
+
|
|
3331
|
+
# auth_names
|
|
3332
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
3333
|
+
|
|
3334
|
+
new_options = opts.merge(
|
|
3335
|
+
:operation => :"ResourceV1beta2Api.replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status",
|
|
2505
3336
|
:header_params => header_params,
|
|
2506
3337
|
:query_params => query_params,
|
|
2507
3338
|
:form_params => form_params,
|
|
@@ -2512,7 +3343,7 @@ module Kubernetes
|
|
|
2512
3343
|
|
|
2513
3344
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2514
3345
|
if @api_client.config.debugging
|
|
2515
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
3346
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_device_taint_rule_status_put_apis_resource_k8s_io_v1beta2_devicetaintrules_by_name_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2516
3347
|
end
|
|
2517
3348
|
return data, status_code, headers
|
|
2518
3349
|
end
|
|
@@ -2527,8 +3358,8 @@ module Kubernetes
|
|
|
2527
3358
|
# @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.
|
|
2528
3359
|
# @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.
|
|
2529
3360
|
# @return [V1beta2ResourceClaim]
|
|
2530
|
-
def
|
|
2531
|
-
data, _status_code, _headers =
|
|
3361
|
+
def replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name(name, namespace, body, opts = {})
|
|
3362
|
+
data, _status_code, _headers = replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, body, opts)
|
|
2532
3363
|
data
|
|
2533
3364
|
end
|
|
2534
3365
|
|
|
@@ -2542,21 +3373,21 @@ module Kubernetes
|
|
|
2542
3373
|
# @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.
|
|
2543
3374
|
# @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.
|
|
2544
3375
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
2545
|
-
def
|
|
3376
|
+
def replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_with_http_info(name, namespace, body, opts = {})
|
|
2546
3377
|
if @api_client.config.debugging
|
|
2547
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
3378
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name ...'
|
|
2548
3379
|
end
|
|
2549
3380
|
# verify the required parameter 'name' is set
|
|
2550
3381
|
if @api_client.config.client_side_validation && name.nil?
|
|
2551
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
3382
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
2552
3383
|
end
|
|
2553
3384
|
# verify the required parameter 'namespace' is set
|
|
2554
3385
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2555
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
3386
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
2556
3387
|
end
|
|
2557
3388
|
# verify the required parameter 'body' is set
|
|
2558
3389
|
if @api_client.config.client_side_validation && body.nil?
|
|
2559
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
3390
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name"
|
|
2560
3391
|
end
|
|
2561
3392
|
# resource path
|
|
2562
3393
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2586,7 +3417,7 @@ module Kubernetes
|
|
|
2586
3417
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2587
3418
|
|
|
2588
3419
|
new_options = opts.merge(
|
|
2589
|
-
:operation => :"ResourceV1beta2Api.
|
|
3420
|
+
:operation => :"ResourceV1beta2Api.replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name",
|
|
2590
3421
|
:header_params => header_params,
|
|
2591
3422
|
:query_params => query_params,
|
|
2592
3423
|
:form_params => form_params,
|
|
@@ -2597,7 +3428,7 @@ module Kubernetes
|
|
|
2597
3428
|
|
|
2598
3429
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2599
3430
|
if @api_client.config.debugging
|
|
2600
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
3431
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_namespaced_resource_claim_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2601
3432
|
end
|
|
2602
3433
|
return data, status_code, headers
|
|
2603
3434
|
end
|
|
@@ -2612,8 +3443,8 @@ module Kubernetes
|
|
|
2612
3443
|
# @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.
|
|
2613
3444
|
# @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.
|
|
2614
3445
|
# @return [V1beta2ResourceClaim]
|
|
2615
|
-
def
|
|
2616
|
-
data, _status_code, _headers =
|
|
3446
|
+
def replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status(name, namespace, body, opts = {})
|
|
3447
|
+
data, _status_code, _headers = replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status_with_http_info(name, namespace, body, opts)
|
|
2617
3448
|
data
|
|
2618
3449
|
end
|
|
2619
3450
|
|
|
@@ -2627,21 +3458,21 @@ module Kubernetes
|
|
|
2627
3458
|
# @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.
|
|
2628
3459
|
# @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.
|
|
2629
3460
|
# @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
|
|
2630
|
-
def
|
|
3461
|
+
def replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status_with_http_info(name, namespace, body, opts = {})
|
|
2631
3462
|
if @api_client.config.debugging
|
|
2632
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
3463
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status ...'
|
|
2633
3464
|
end
|
|
2634
3465
|
# verify the required parameter 'name' is set
|
|
2635
3466
|
if @api_client.config.client_side_validation && name.nil?
|
|
2636
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
3467
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
2637
3468
|
end
|
|
2638
3469
|
# verify the required parameter 'namespace' is set
|
|
2639
3470
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2640
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
3471
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
2641
3472
|
end
|
|
2642
3473
|
# verify the required parameter 'body' is set
|
|
2643
3474
|
if @api_client.config.client_side_validation && body.nil?
|
|
2644
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
3475
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status"
|
|
2645
3476
|
end
|
|
2646
3477
|
# resource path
|
|
2647
3478
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2671,7 +3502,7 @@ module Kubernetes
|
|
|
2671
3502
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2672
3503
|
|
|
2673
3504
|
new_options = opts.merge(
|
|
2674
|
-
:operation => :"ResourceV1beta2Api.
|
|
3505
|
+
:operation => :"ResourceV1beta2Api.replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status",
|
|
2675
3506
|
:header_params => header_params,
|
|
2676
3507
|
:query_params => query_params,
|
|
2677
3508
|
:form_params => form_params,
|
|
@@ -2682,7 +3513,7 @@ module Kubernetes
|
|
|
2682
3513
|
|
|
2683
3514
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2684
3515
|
if @api_client.config.debugging
|
|
2685
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
3516
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_namespaced_resource_claim_status_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaims_by_name_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2686
3517
|
end
|
|
2687
3518
|
return data, status_code, headers
|
|
2688
3519
|
end
|
|
@@ -2697,8 +3528,8 @@ module Kubernetes
|
|
|
2697
3528
|
# @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.
|
|
2698
3529
|
# @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.
|
|
2699
3530
|
# @return [V1beta2ResourceClaimTemplate]
|
|
2700
|
-
def
|
|
2701
|
-
data, _status_code, _headers =
|
|
3531
|
+
def replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name(name, namespace, body, opts = {})
|
|
3532
|
+
data, _status_code, _headers = replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, body, opts)
|
|
2702
3533
|
data
|
|
2703
3534
|
end
|
|
2704
3535
|
|
|
@@ -2712,21 +3543,21 @@ module Kubernetes
|
|
|
2712
3543
|
# @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.
|
|
2713
3544
|
# @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.
|
|
2714
3545
|
# @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
|
|
2715
|
-
def
|
|
3546
|
+
def replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name_with_http_info(name, namespace, body, opts = {})
|
|
2716
3547
|
if @api_client.config.debugging
|
|
2717
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
3548
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name ...'
|
|
2718
3549
|
end
|
|
2719
3550
|
# verify the required parameter 'name' is set
|
|
2720
3551
|
if @api_client.config.client_side_validation && name.nil?
|
|
2721
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
3552
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
2722
3553
|
end
|
|
2723
3554
|
# verify the required parameter 'namespace' is set
|
|
2724
3555
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2725
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.
|
|
3556
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
2726
3557
|
end
|
|
2727
3558
|
# verify the required parameter 'body' is set
|
|
2728
3559
|
if @api_client.config.client_side_validation && body.nil?
|
|
2729
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
3560
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name"
|
|
2730
3561
|
end
|
|
2731
3562
|
# resource path
|
|
2732
3563
|
local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2756,7 +3587,7 @@ module Kubernetes
|
|
|
2756
3587
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2757
3588
|
|
|
2758
3589
|
new_options = opts.merge(
|
|
2759
|
-
:operation => :"ResourceV1beta2Api.
|
|
3590
|
+
:operation => :"ResourceV1beta2Api.replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name",
|
|
2760
3591
|
:header_params => header_params,
|
|
2761
3592
|
:query_params => query_params,
|
|
2762
3593
|
:form_params => form_params,
|
|
@@ -2767,7 +3598,7 @@ module Kubernetes
|
|
|
2767
3598
|
|
|
2768
3599
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2769
3600
|
if @api_client.config.debugging
|
|
2770
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
3601
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_namespaced_resource_claim_template_put_apis_resource_k8s_io_v1beta2_namespaces_by_namespace_resourceclaimtemplates_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2771
3602
|
end
|
|
2772
3603
|
return data, status_code, headers
|
|
2773
3604
|
end
|
|
@@ -2781,8 +3612,8 @@ module Kubernetes
|
|
|
2781
3612
|
# @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.
|
|
2782
3613
|
# @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.
|
|
2783
3614
|
# @return [V1beta2ResourceSlice]
|
|
2784
|
-
def
|
|
2785
|
-
data, _status_code, _headers =
|
|
3615
|
+
def replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name(name, body, opts = {})
|
|
3616
|
+
data, _status_code, _headers = replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, body, opts)
|
|
2786
3617
|
data
|
|
2787
3618
|
end
|
|
2788
3619
|
|
|
@@ -2795,17 +3626,17 @@ module Kubernetes
|
|
|
2795
3626
|
# @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.
|
|
2796
3627
|
# @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.
|
|
2797
3628
|
# @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
|
|
2798
|
-
def
|
|
3629
|
+
def replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name_with_http_info(name, body, opts = {})
|
|
2799
3630
|
if @api_client.config.debugging
|
|
2800
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.
|
|
3631
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name ...'
|
|
2801
3632
|
end
|
|
2802
3633
|
# verify the required parameter 'name' is set
|
|
2803
3634
|
if @api_client.config.client_side_validation && name.nil?
|
|
2804
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.
|
|
3635
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name"
|
|
2805
3636
|
end
|
|
2806
3637
|
# verify the required parameter 'body' is set
|
|
2807
3638
|
if @api_client.config.client_side_validation && body.nil?
|
|
2808
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.
|
|
3639
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name"
|
|
2809
3640
|
end
|
|
2810
3641
|
# resource path
|
|
2811
3642
|
local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2835,7 +3666,7 @@ module Kubernetes
|
|
|
2835
3666
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2836
3667
|
|
|
2837
3668
|
new_options = opts.merge(
|
|
2838
|
-
:operation => :"ResourceV1beta2Api.
|
|
3669
|
+
:operation => :"ResourceV1beta2Api.replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name",
|
|
2839
3670
|
:header_params => header_params,
|
|
2840
3671
|
:query_params => query_params,
|
|
2841
3672
|
:form_params => form_params,
|
|
@@ -2846,7 +3677,7 @@ module Kubernetes
|
|
|
2846
3677
|
|
|
2847
3678
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2848
3679
|
if @api_client.config.debugging
|
|
2849
|
-
@api_client.config.logger.debug "API called: ResourceV1beta2Api#
|
|
3680
|
+
@api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_resource_slice_put_apis_resource_k8s_io_v1beta2_resourceslices_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2850
3681
|
end
|
|
2851
3682
|
return data, status_code, headers
|
|
2852
3683
|
end
|