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 [V1DeviceClass]
|
|
30
|
-
def
|
|
31
|
-
data, _status_code, _headers =
|
|
30
|
+
def create_device_class(body, opts = {})
|
|
31
|
+
data, _status_code, _headers = create_device_class_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<(V1DeviceClass, Integer, Hash)>] V1DeviceClass data, response status code and response headers
|
|
43
|
-
def
|
|
43
|
+
def create_device_class_with_http_info(body, opts = {})
|
|
44
44
|
if @api_client.config.debugging
|
|
45
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
45
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.create_device_class ...'
|
|
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 ResourceV1Api.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.create_device_class"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '/apis/resource.k8s.io/v1/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 => :"ResourceV1Api.
|
|
79
|
+
:operation => :"ResourceV1Api.create_device_class",
|
|
80
80
|
:header_params => header_params,
|
|
81
81
|
:query_params => query_params,
|
|
82
82
|
:form_params => form_params,
|
|
@@ -87,7 +87,7 @@ 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: ResourceV1Api#
|
|
90
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#create_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
91
91
|
end
|
|
92
92
|
return data, status_code, headers
|
|
93
93
|
end
|
|
@@ -101,8 +101,8 @@ module Kubernetes
|
|
|
101
101
|
# @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
102
|
# @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
103
|
# @return [ResourceV1ResourceClaim]
|
|
104
|
-
def
|
|
105
|
-
data, _status_code, _headers =
|
|
104
|
+
def create_namespaced_resource_claim(namespace, body, opts = {})
|
|
105
|
+
data, _status_code, _headers = create_namespaced_resource_claim_with_http_info(namespace, body, opts)
|
|
106
106
|
data
|
|
107
107
|
end
|
|
108
108
|
|
|
@@ -115,17 +115,17 @@ module Kubernetes
|
|
|
115
115
|
# @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
116
|
# @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
117
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
118
|
-
def
|
|
118
|
+
def create_namespaced_resource_claim_with_http_info(namespace, body, opts = {})
|
|
119
119
|
if @api_client.config.debugging
|
|
120
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
120
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.create_namespaced_resource_claim ...'
|
|
121
121
|
end
|
|
122
122
|
# verify the required parameter 'namespace' is set
|
|
123
123
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
124
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
124
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.create_namespaced_resource_claim"
|
|
125
125
|
end
|
|
126
126
|
# verify the required parameter 'body' is set
|
|
127
127
|
if @api_client.config.client_side_validation && body.nil?
|
|
128
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
128
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.create_namespaced_resource_claim"
|
|
129
129
|
end
|
|
130
130
|
# resource path
|
|
131
131
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -155,7 +155,7 @@ module Kubernetes
|
|
|
155
155
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
156
156
|
|
|
157
157
|
new_options = opts.merge(
|
|
158
|
-
:operation => :"ResourceV1Api.
|
|
158
|
+
:operation => :"ResourceV1Api.create_namespaced_resource_claim",
|
|
159
159
|
:header_params => header_params,
|
|
160
160
|
:query_params => query_params,
|
|
161
161
|
:form_params => form_params,
|
|
@@ -166,7 +166,7 @@ module Kubernetes
|
|
|
166
166
|
|
|
167
167
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
168
168
|
if @api_client.config.debugging
|
|
169
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
169
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#create_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
170
170
|
end
|
|
171
171
|
return data, status_code, headers
|
|
172
172
|
end
|
|
@@ -180,8 +180,8 @@ module Kubernetes
|
|
|
180
180
|
# @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
181
|
# @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
182
|
# @return [V1ResourceClaimTemplate]
|
|
183
|
-
def
|
|
184
|
-
data, _status_code, _headers =
|
|
183
|
+
def create_namespaced_resource_claim_template(namespace, body, opts = {})
|
|
184
|
+
data, _status_code, _headers = create_namespaced_resource_claim_template_with_http_info(namespace, body, opts)
|
|
185
185
|
data
|
|
186
186
|
end
|
|
187
187
|
|
|
@@ -194,17 +194,17 @@ module Kubernetes
|
|
|
194
194
|
# @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
195
|
# @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
196
|
# @return [Array<(V1ResourceClaimTemplate, Integer, Hash)>] V1ResourceClaimTemplate data, response status code and response headers
|
|
197
|
-
def
|
|
197
|
+
def create_namespaced_resource_claim_template_with_http_info(namespace, body, opts = {})
|
|
198
198
|
if @api_client.config.debugging
|
|
199
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
199
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.create_namespaced_resource_claim_template ...'
|
|
200
200
|
end
|
|
201
201
|
# verify the required parameter 'namespace' is set
|
|
202
202
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
203
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
203
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.create_namespaced_resource_claim_template"
|
|
204
204
|
end
|
|
205
205
|
# verify the required parameter 'body' is set
|
|
206
206
|
if @api_client.config.client_side_validation && body.nil?
|
|
207
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
207
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.create_namespaced_resource_claim_template"
|
|
208
208
|
end
|
|
209
209
|
# resource path
|
|
210
210
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -234,7 +234,7 @@ module Kubernetes
|
|
|
234
234
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
235
235
|
|
|
236
236
|
new_options = opts.merge(
|
|
237
|
-
:operation => :"ResourceV1Api.
|
|
237
|
+
:operation => :"ResourceV1Api.create_namespaced_resource_claim_template",
|
|
238
238
|
:header_params => header_params,
|
|
239
239
|
:query_params => query_params,
|
|
240
240
|
:form_params => form_params,
|
|
@@ -245,7 +245,7 @@ module Kubernetes
|
|
|
245
245
|
|
|
246
246
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
247
247
|
if @api_client.config.debugging
|
|
248
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
248
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#create_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
249
249
|
end
|
|
250
250
|
return data, status_code, headers
|
|
251
251
|
end
|
|
@@ -258,8 +258,8 @@ module Kubernetes
|
|
|
258
258
|
# @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
259
|
# @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
260
|
# @return [V1ResourceSlice]
|
|
261
|
-
def
|
|
262
|
-
data, _status_code, _headers =
|
|
261
|
+
def create_resource_slice(body, opts = {})
|
|
262
|
+
data, _status_code, _headers = create_resource_slice_with_http_info(body, opts)
|
|
263
263
|
data
|
|
264
264
|
end
|
|
265
265
|
|
|
@@ -271,13 +271,13 @@ module Kubernetes
|
|
|
271
271
|
# @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
272
|
# @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
273
|
# @return [Array<(V1ResourceSlice, Integer, Hash)>] V1ResourceSlice data, response status code and response headers
|
|
274
|
-
def
|
|
274
|
+
def create_resource_slice_with_http_info(body, opts = {})
|
|
275
275
|
if @api_client.config.debugging
|
|
276
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
276
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.create_resource_slice ...'
|
|
277
277
|
end
|
|
278
278
|
# verify the required parameter 'body' is set
|
|
279
279
|
if @api_client.config.client_side_validation && body.nil?
|
|
280
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
280
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.create_resource_slice"
|
|
281
281
|
end
|
|
282
282
|
# resource path
|
|
283
283
|
local_var_path = '/apis/resource.k8s.io/v1/resourceslices'
|
|
@@ -307,7 +307,7 @@ module Kubernetes
|
|
|
307
307
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
308
308
|
|
|
309
309
|
new_options = opts.merge(
|
|
310
|
-
:operation => :"ResourceV1Api.
|
|
310
|
+
:operation => :"ResourceV1Api.create_resource_slice",
|
|
311
311
|
:header_params => header_params,
|
|
312
312
|
:query_params => query_params,
|
|
313
313
|
:form_params => form_params,
|
|
@@ -318,7 +318,7 @@ module Kubernetes
|
|
|
318
318
|
|
|
319
319
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
320
320
|
if @api_client.config.debugging
|
|
321
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
321
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#create_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
322
322
|
end
|
|
323
323
|
return data, status_code, headers
|
|
324
324
|
end
|
|
@@ -338,11 +338,12 @@ module Kubernetes
|
|
|
338
338
|
# @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
339
|
# @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
340
|
# @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.
|
|
341
|
+
# @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
342
|
# @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
343
|
# @option opts [V1DeleteOptions] :body
|
|
343
344
|
# @return [V1Status]
|
|
344
|
-
def
|
|
345
|
-
data, _status_code, _headers =
|
|
345
|
+
def delete_collection_device_class(opts = {})
|
|
346
|
+
data, _status_code, _headers = delete_collection_device_class_with_http_info(opts)
|
|
346
347
|
data
|
|
347
348
|
end
|
|
348
349
|
|
|
@@ -361,12 +362,13 @@ module Kubernetes
|
|
|
361
362
|
# @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
363
|
# @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
364
|
# @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.
|
|
365
|
+
# @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
366
|
# @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
367
|
# @option opts [V1DeleteOptions] :body
|
|
366
368
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
367
|
-
def
|
|
369
|
+
def delete_collection_device_class_with_http_info(opts = {})
|
|
368
370
|
if @api_client.config.debugging
|
|
369
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
371
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_device_class ...'
|
|
370
372
|
end
|
|
371
373
|
# resource path
|
|
372
374
|
local_var_path = '/apis/resource.k8s.io/v1/deviceclasses'
|
|
@@ -386,6 +388,7 @@ module Kubernetes
|
|
|
386
388
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
387
389
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
388
390
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
391
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
389
392
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
390
393
|
|
|
391
394
|
# header parameters
|
|
@@ -406,7 +409,7 @@ module Kubernetes
|
|
|
406
409
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
407
410
|
|
|
408
411
|
new_options = opts.merge(
|
|
409
|
-
:operation => :"ResourceV1Api.
|
|
412
|
+
:operation => :"ResourceV1Api.delete_collection_device_class",
|
|
410
413
|
:header_params => header_params,
|
|
411
414
|
:query_params => query_params,
|
|
412
415
|
:form_params => form_params,
|
|
@@ -417,7 +420,7 @@ module Kubernetes
|
|
|
417
420
|
|
|
418
421
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
419
422
|
if @api_client.config.debugging
|
|
420
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
423
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_collection_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
421
424
|
end
|
|
422
425
|
return data, status_code, headers
|
|
423
426
|
end
|
|
@@ -438,11 +441,12 @@ module Kubernetes
|
|
|
438
441
|
# @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
442
|
# @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
443
|
# @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.
|
|
444
|
+
# @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
445
|
# @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
446
|
# @option opts [V1DeleteOptions] :body
|
|
443
447
|
# @return [V1Status]
|
|
444
|
-
def
|
|
445
|
-
data, _status_code, _headers =
|
|
448
|
+
def delete_collection_namespaced_resource_claim(namespace, opts = {})
|
|
449
|
+
data, _status_code, _headers = delete_collection_namespaced_resource_claim_with_http_info(namespace, opts)
|
|
446
450
|
data
|
|
447
451
|
end
|
|
448
452
|
|
|
@@ -462,16 +466,17 @@ module Kubernetes
|
|
|
462
466
|
# @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
467
|
# @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
468
|
# @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.
|
|
469
|
+
# @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
470
|
# @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
471
|
# @option opts [V1DeleteOptions] :body
|
|
467
472
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
468
|
-
def
|
|
473
|
+
def delete_collection_namespaced_resource_claim_with_http_info(namespace, opts = {})
|
|
469
474
|
if @api_client.config.debugging
|
|
470
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
475
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_namespaced_resource_claim ...'
|
|
471
476
|
end
|
|
472
477
|
# verify the required parameter 'namespace' is set
|
|
473
478
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
474
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
479
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.delete_collection_namespaced_resource_claim"
|
|
475
480
|
end
|
|
476
481
|
# resource path
|
|
477
482
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -491,6 +496,7 @@ module Kubernetes
|
|
|
491
496
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
492
497
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
493
498
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
499
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
494
500
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
495
501
|
|
|
496
502
|
# header parameters
|
|
@@ -511,7 +517,7 @@ module Kubernetes
|
|
|
511
517
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
512
518
|
|
|
513
519
|
new_options = opts.merge(
|
|
514
|
-
:operation => :"ResourceV1Api.
|
|
520
|
+
:operation => :"ResourceV1Api.delete_collection_namespaced_resource_claim",
|
|
515
521
|
:header_params => header_params,
|
|
516
522
|
:query_params => query_params,
|
|
517
523
|
:form_params => form_params,
|
|
@@ -522,7 +528,7 @@ module Kubernetes
|
|
|
522
528
|
|
|
523
529
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
524
530
|
if @api_client.config.debugging
|
|
525
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
531
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_collection_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
526
532
|
end
|
|
527
533
|
return data, status_code, headers
|
|
528
534
|
end
|
|
@@ -543,11 +549,12 @@ module Kubernetes
|
|
|
543
549
|
# @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
550
|
# @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
551
|
# @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.
|
|
552
|
+
# @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
553
|
# @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
554
|
# @option opts [V1DeleteOptions] :body
|
|
548
555
|
# @return [V1Status]
|
|
549
|
-
def
|
|
550
|
-
data, _status_code, _headers =
|
|
556
|
+
def delete_collection_namespaced_resource_claim_template(namespace, opts = {})
|
|
557
|
+
data, _status_code, _headers = delete_collection_namespaced_resource_claim_template_with_http_info(namespace, opts)
|
|
551
558
|
data
|
|
552
559
|
end
|
|
553
560
|
|
|
@@ -567,16 +574,17 @@ module Kubernetes
|
|
|
567
574
|
# @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
575
|
# @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
576
|
# @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.
|
|
577
|
+
# @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
578
|
# @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
579
|
# @option opts [V1DeleteOptions] :body
|
|
572
580
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
573
|
-
def
|
|
581
|
+
def delete_collection_namespaced_resource_claim_template_with_http_info(namespace, opts = {})
|
|
574
582
|
if @api_client.config.debugging
|
|
575
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
583
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_namespaced_resource_claim_template ...'
|
|
576
584
|
end
|
|
577
585
|
# verify the required parameter 'namespace' is set
|
|
578
586
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
579
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
587
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.delete_collection_namespaced_resource_claim_template"
|
|
580
588
|
end
|
|
581
589
|
# resource path
|
|
582
590
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -596,6 +604,7 @@ module Kubernetes
|
|
|
596
604
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
597
605
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
598
606
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
607
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
599
608
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
600
609
|
|
|
601
610
|
# header parameters
|
|
@@ -616,7 +625,7 @@ module Kubernetes
|
|
|
616
625
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
617
626
|
|
|
618
627
|
new_options = opts.merge(
|
|
619
|
-
:operation => :"ResourceV1Api.
|
|
628
|
+
:operation => :"ResourceV1Api.delete_collection_namespaced_resource_claim_template",
|
|
620
629
|
:header_params => header_params,
|
|
621
630
|
:query_params => query_params,
|
|
622
631
|
:form_params => form_params,
|
|
@@ -627,7 +636,7 @@ module Kubernetes
|
|
|
627
636
|
|
|
628
637
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
629
638
|
if @api_client.config.debugging
|
|
630
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
639
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_collection_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
631
640
|
end
|
|
632
641
|
return data, status_code, headers
|
|
633
642
|
end
|
|
@@ -647,11 +656,12 @@ module Kubernetes
|
|
|
647
656
|
# @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
657
|
# @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
658
|
# @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.
|
|
659
|
+
# @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
660
|
# @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
661
|
# @option opts [V1DeleteOptions] :body
|
|
652
662
|
# @return [V1Status]
|
|
653
|
-
def
|
|
654
|
-
data, _status_code, _headers =
|
|
663
|
+
def delete_collection_resource_slice(opts = {})
|
|
664
|
+
data, _status_code, _headers = delete_collection_resource_slice_with_http_info(opts)
|
|
655
665
|
data
|
|
656
666
|
end
|
|
657
667
|
|
|
@@ -670,12 +680,13 @@ module Kubernetes
|
|
|
670
680
|
# @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
681
|
# @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
682
|
# @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.
|
|
683
|
+
# @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
684
|
# @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
685
|
# @option opts [V1DeleteOptions] :body
|
|
675
686
|
# @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
|
|
676
|
-
def
|
|
687
|
+
def delete_collection_resource_slice_with_http_info(opts = {})
|
|
677
688
|
if @api_client.config.debugging
|
|
678
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
689
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_collection_resource_slice ...'
|
|
679
690
|
end
|
|
680
691
|
# resource path
|
|
681
692
|
local_var_path = '/apis/resource.k8s.io/v1/resourceslices'
|
|
@@ -695,6 +706,7 @@ module Kubernetes
|
|
|
695
706
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
696
707
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
697
708
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
709
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
698
710
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
699
711
|
|
|
700
712
|
# header parameters
|
|
@@ -715,7 +727,7 @@ module Kubernetes
|
|
|
715
727
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
716
728
|
|
|
717
729
|
new_options = opts.merge(
|
|
718
|
-
:operation => :"ResourceV1Api.
|
|
730
|
+
:operation => :"ResourceV1Api.delete_collection_resource_slice",
|
|
719
731
|
:header_params => header_params,
|
|
720
732
|
:query_params => query_params,
|
|
721
733
|
:form_params => form_params,
|
|
@@ -726,7 +738,7 @@ module Kubernetes
|
|
|
726
738
|
|
|
727
739
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
728
740
|
if @api_client.config.debugging
|
|
729
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
741
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_collection_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
730
742
|
end
|
|
731
743
|
return data, status_code, headers
|
|
732
744
|
end
|
|
@@ -742,8 +754,8 @@ module Kubernetes
|
|
|
742
754
|
# @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
755
|
# @option opts [V1DeleteOptions] :body
|
|
744
756
|
# @return [V1DeviceClass]
|
|
745
|
-
def
|
|
746
|
-
data, _status_code, _headers =
|
|
757
|
+
def delete_device_class(name, opts = {})
|
|
758
|
+
data, _status_code, _headers = delete_device_class_with_http_info(name, opts)
|
|
747
759
|
data
|
|
748
760
|
end
|
|
749
761
|
|
|
@@ -758,13 +770,13 @@ module Kubernetes
|
|
|
758
770
|
# @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
771
|
# @option opts [V1DeleteOptions] :body
|
|
760
772
|
# @return [Array<(V1DeviceClass, Integer, Hash)>] V1DeviceClass data, response status code and response headers
|
|
761
|
-
def
|
|
773
|
+
def delete_device_class_with_http_info(name, opts = {})
|
|
762
774
|
if @api_client.config.debugging
|
|
763
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
775
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_device_class ...'
|
|
764
776
|
end
|
|
765
777
|
# verify the required parameter 'name' is set
|
|
766
778
|
if @api_client.config.client_side_validation && name.nil?
|
|
767
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
779
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.delete_device_class"
|
|
768
780
|
end
|
|
769
781
|
# resource path
|
|
770
782
|
local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -796,7 +808,7 @@ module Kubernetes
|
|
|
796
808
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
797
809
|
|
|
798
810
|
new_options = opts.merge(
|
|
799
|
-
:operation => :"ResourceV1Api.
|
|
811
|
+
:operation => :"ResourceV1Api.delete_device_class",
|
|
800
812
|
:header_params => header_params,
|
|
801
813
|
:query_params => query_params,
|
|
802
814
|
:form_params => form_params,
|
|
@@ -807,7 +819,7 @@ module Kubernetes
|
|
|
807
819
|
|
|
808
820
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
809
821
|
if @api_client.config.debugging
|
|
810
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
822
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
811
823
|
end
|
|
812
824
|
return data, status_code, headers
|
|
813
825
|
end
|
|
@@ -824,8 +836,8 @@ module Kubernetes
|
|
|
824
836
|
# @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
837
|
# @option opts [V1DeleteOptions] :body
|
|
826
838
|
# @return [ResourceV1ResourceClaim]
|
|
827
|
-
def
|
|
828
|
-
data, _status_code, _headers =
|
|
839
|
+
def delete_namespaced_resource_claim(name, namespace, opts = {})
|
|
840
|
+
data, _status_code, _headers = delete_namespaced_resource_claim_with_http_info(name, namespace, opts)
|
|
829
841
|
data
|
|
830
842
|
end
|
|
831
843
|
|
|
@@ -841,17 +853,17 @@ module Kubernetes
|
|
|
841
853
|
# @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
854
|
# @option opts [V1DeleteOptions] :body
|
|
843
855
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
844
|
-
def
|
|
856
|
+
def delete_namespaced_resource_claim_with_http_info(name, namespace, opts = {})
|
|
845
857
|
if @api_client.config.debugging
|
|
846
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
858
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_namespaced_resource_claim ...'
|
|
847
859
|
end
|
|
848
860
|
# verify the required parameter 'name' is set
|
|
849
861
|
if @api_client.config.client_side_validation && name.nil?
|
|
850
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
862
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.delete_namespaced_resource_claim"
|
|
851
863
|
end
|
|
852
864
|
# verify the required parameter 'namespace' is set
|
|
853
865
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
854
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
866
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.delete_namespaced_resource_claim"
|
|
855
867
|
end
|
|
856
868
|
# resource path
|
|
857
869
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -883,7 +895,7 @@ module Kubernetes
|
|
|
883
895
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
884
896
|
|
|
885
897
|
new_options = opts.merge(
|
|
886
|
-
:operation => :"ResourceV1Api.
|
|
898
|
+
:operation => :"ResourceV1Api.delete_namespaced_resource_claim",
|
|
887
899
|
:header_params => header_params,
|
|
888
900
|
:query_params => query_params,
|
|
889
901
|
:form_params => form_params,
|
|
@@ -894,7 +906,7 @@ module Kubernetes
|
|
|
894
906
|
|
|
895
907
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
896
908
|
if @api_client.config.debugging
|
|
897
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
909
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
898
910
|
end
|
|
899
911
|
return data, status_code, headers
|
|
900
912
|
end
|
|
@@ -911,8 +923,8 @@ module Kubernetes
|
|
|
911
923
|
# @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
924
|
# @option opts [V1DeleteOptions] :body
|
|
913
925
|
# @return [V1ResourceClaimTemplate]
|
|
914
|
-
def
|
|
915
|
-
data, _status_code, _headers =
|
|
926
|
+
def delete_namespaced_resource_claim_template(name, namespace, opts = {})
|
|
927
|
+
data, _status_code, _headers = delete_namespaced_resource_claim_template_with_http_info(name, namespace, opts)
|
|
916
928
|
data
|
|
917
929
|
end
|
|
918
930
|
|
|
@@ -928,17 +940,17 @@ module Kubernetes
|
|
|
928
940
|
# @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
941
|
# @option opts [V1DeleteOptions] :body
|
|
930
942
|
# @return [Array<(V1ResourceClaimTemplate, Integer, Hash)>] V1ResourceClaimTemplate data, response status code and response headers
|
|
931
|
-
def
|
|
943
|
+
def delete_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {})
|
|
932
944
|
if @api_client.config.debugging
|
|
933
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
945
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_namespaced_resource_claim_template ...'
|
|
934
946
|
end
|
|
935
947
|
# verify the required parameter 'name' is set
|
|
936
948
|
if @api_client.config.client_side_validation && name.nil?
|
|
937
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
949
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.delete_namespaced_resource_claim_template"
|
|
938
950
|
end
|
|
939
951
|
# verify the required parameter 'namespace' is set
|
|
940
952
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
941
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
953
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.delete_namespaced_resource_claim_template"
|
|
942
954
|
end
|
|
943
955
|
# resource path
|
|
944
956
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -970,7 +982,7 @@ module Kubernetes
|
|
|
970
982
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
971
983
|
|
|
972
984
|
new_options = opts.merge(
|
|
973
|
-
:operation => :"ResourceV1Api.
|
|
985
|
+
:operation => :"ResourceV1Api.delete_namespaced_resource_claim_template",
|
|
974
986
|
:header_params => header_params,
|
|
975
987
|
:query_params => query_params,
|
|
976
988
|
:form_params => form_params,
|
|
@@ -981,7 +993,7 @@ module Kubernetes
|
|
|
981
993
|
|
|
982
994
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
983
995
|
if @api_client.config.debugging
|
|
984
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
996
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
985
997
|
end
|
|
986
998
|
return data, status_code, headers
|
|
987
999
|
end
|
|
@@ -997,8 +1009,8 @@ module Kubernetes
|
|
|
997
1009
|
# @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
1010
|
# @option opts [V1DeleteOptions] :body
|
|
999
1011
|
# @return [V1ResourceSlice]
|
|
1000
|
-
def
|
|
1001
|
-
data, _status_code, _headers =
|
|
1012
|
+
def delete_resource_slice(name, opts = {})
|
|
1013
|
+
data, _status_code, _headers = delete_resource_slice_with_http_info(name, opts)
|
|
1002
1014
|
data
|
|
1003
1015
|
end
|
|
1004
1016
|
|
|
@@ -1013,13 +1025,13 @@ module Kubernetes
|
|
|
1013
1025
|
# @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
1026
|
# @option opts [V1DeleteOptions] :body
|
|
1015
1027
|
# @return [Array<(V1ResourceSlice, Integer, Hash)>] V1ResourceSlice data, response status code and response headers
|
|
1016
|
-
def
|
|
1028
|
+
def delete_resource_slice_with_http_info(name, opts = {})
|
|
1017
1029
|
if @api_client.config.debugging
|
|
1018
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1030
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.delete_resource_slice ...'
|
|
1019
1031
|
end
|
|
1020
1032
|
# verify the required parameter 'name' is set
|
|
1021
1033
|
if @api_client.config.client_side_validation && name.nil?
|
|
1022
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
1034
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.delete_resource_slice"
|
|
1023
1035
|
end
|
|
1024
1036
|
# resource path
|
|
1025
1037
|
local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -1051,7 +1063,7 @@ module Kubernetes
|
|
|
1051
1063
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1052
1064
|
|
|
1053
1065
|
new_options = opts.merge(
|
|
1054
|
-
:operation => :"ResourceV1Api.
|
|
1066
|
+
:operation => :"ResourceV1Api.delete_resource_slice",
|
|
1055
1067
|
:header_params => header_params,
|
|
1056
1068
|
:query_params => query_params,
|
|
1057
1069
|
:form_params => form_params,
|
|
@@ -1062,7 +1074,7 @@ module Kubernetes
|
|
|
1062
1074
|
|
|
1063
1075
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
1064
1076
|
if @api_client.config.debugging
|
|
1065
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1077
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#delete_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1066
1078
|
end
|
|
1067
1079
|
return data, status_code, headers
|
|
1068
1080
|
end
|
|
@@ -1070,17 +1082,17 @@ module Kubernetes
|
|
|
1070
1082
|
# get available resources
|
|
1071
1083
|
# @param [Hash] opts the optional parameters
|
|
1072
1084
|
# @return [V1APIResourceList]
|
|
1073
|
-
def
|
|
1074
|
-
data, _status_code, _headers =
|
|
1085
|
+
def get_api_resources_get_apis_resource_k8s_io_v1(opts = {})
|
|
1086
|
+
data, _status_code, _headers = get_api_resources_get_apis_resource_k8s_io_v1_with_http_info(opts)
|
|
1075
1087
|
data
|
|
1076
1088
|
end
|
|
1077
1089
|
|
|
1078
1090
|
# get available resources
|
|
1079
1091
|
# @param [Hash] opts the optional parameters
|
|
1080
1092
|
# @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
|
|
1081
|
-
def
|
|
1093
|
+
def get_api_resources_get_apis_resource_k8s_io_v1_with_http_info(opts = {})
|
|
1082
1094
|
if @api_client.config.debugging
|
|
1083
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1095
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.get_api_resources_get_apis_resource_k8s_io_v1 ...'
|
|
1084
1096
|
end
|
|
1085
1097
|
# resource path
|
|
1086
1098
|
local_var_path = '/apis/resource.k8s.io/v1/'
|
|
@@ -1106,7 +1118,7 @@ module Kubernetes
|
|
|
1106
1118
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1107
1119
|
|
|
1108
1120
|
new_options = opts.merge(
|
|
1109
|
-
:operation => :"ResourceV1Api.
|
|
1121
|
+
:operation => :"ResourceV1Api.get_api_resources_get_apis_resource_k8s_io_v1",
|
|
1110
1122
|
:header_params => header_params,
|
|
1111
1123
|
:query_params => query_params,
|
|
1112
1124
|
:form_params => form_params,
|
|
@@ -1117,7 +1129,7 @@ module Kubernetes
|
|
|
1117
1129
|
|
|
1118
1130
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1119
1131
|
if @api_client.config.debugging
|
|
1120
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1132
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#get_api_resources_get_apis_resource_k8s_io_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1121
1133
|
end
|
|
1122
1134
|
return data, status_code, headers
|
|
1123
1135
|
end
|
|
@@ -1133,11 +1145,12 @@ module Kubernetes
|
|
|
1133
1145
|
# @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
1146
|
# @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
1147
|
# @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.
|
|
1148
|
+
# @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
1149
|
# @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
1150
|
# @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
1151
|
# @return [V1DeviceClassList]
|
|
1139
|
-
def
|
|
1140
|
-
data, _status_code, _headers =
|
|
1152
|
+
def list_device_class(opts = {})
|
|
1153
|
+
data, _status_code, _headers = list_device_class_with_http_info(opts)
|
|
1141
1154
|
data
|
|
1142
1155
|
end
|
|
1143
1156
|
|
|
@@ -1152,12 +1165,13 @@ module Kubernetes
|
|
|
1152
1165
|
# @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
1166
|
# @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
1167
|
# @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.
|
|
1168
|
+
# @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
1169
|
# @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
1170
|
# @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
1171
|
# @return [Array<(V1DeviceClassList, Integer, Hash)>] V1DeviceClassList data, response status code and response headers
|
|
1158
|
-
def
|
|
1172
|
+
def list_device_class_with_http_info(opts = {})
|
|
1159
1173
|
if @api_client.config.debugging
|
|
1160
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1174
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.list_device_class ...'
|
|
1161
1175
|
end
|
|
1162
1176
|
# resource path
|
|
1163
1177
|
local_var_path = '/apis/resource.k8s.io/v1/deviceclasses'
|
|
@@ -1173,6 +1187,7 @@ module Kubernetes
|
|
|
1173
1187
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1174
1188
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1175
1189
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1190
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1176
1191
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1177
1192
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1178
1193
|
|
|
@@ -1194,7 +1209,7 @@ module Kubernetes
|
|
|
1194
1209
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1195
1210
|
|
|
1196
1211
|
new_options = opts.merge(
|
|
1197
|
-
:operation => :"ResourceV1Api.
|
|
1212
|
+
:operation => :"ResourceV1Api.list_device_class",
|
|
1198
1213
|
:header_params => header_params,
|
|
1199
1214
|
:query_params => query_params,
|
|
1200
1215
|
:form_params => form_params,
|
|
@@ -1205,7 +1220,7 @@ module Kubernetes
|
|
|
1205
1220
|
|
|
1206
1221
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1207
1222
|
if @api_client.config.debugging
|
|
1208
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1223
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#list_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1209
1224
|
end
|
|
1210
1225
|
return data, status_code, headers
|
|
1211
1226
|
end
|
|
@@ -1222,11 +1237,12 @@ module Kubernetes
|
|
|
1222
1237
|
# @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
1238
|
# @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
1239
|
# @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.
|
|
1240
|
+
# @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
1241
|
# @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
1242
|
# @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
1243
|
# @return [V1ResourceClaimList]
|
|
1228
|
-
def
|
|
1229
|
-
data, _status_code, _headers =
|
|
1244
|
+
def list_namespaced_resource_claim(namespace, opts = {})
|
|
1245
|
+
data, _status_code, _headers = list_namespaced_resource_claim_with_http_info(namespace, opts)
|
|
1230
1246
|
data
|
|
1231
1247
|
end
|
|
1232
1248
|
|
|
@@ -1242,16 +1258,17 @@ module Kubernetes
|
|
|
1242
1258
|
# @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
1259
|
# @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
1260
|
# @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.
|
|
1261
|
+
# @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
1262
|
# @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
1263
|
# @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
1264
|
# @return [Array<(V1ResourceClaimList, Integer, Hash)>] V1ResourceClaimList data, response status code and response headers
|
|
1248
|
-
def
|
|
1265
|
+
def list_namespaced_resource_claim_with_http_info(namespace, opts = {})
|
|
1249
1266
|
if @api_client.config.debugging
|
|
1250
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1267
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.list_namespaced_resource_claim ...'
|
|
1251
1268
|
end
|
|
1252
1269
|
# verify the required parameter 'namespace' is set
|
|
1253
1270
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1254
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
1271
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.list_namespaced_resource_claim"
|
|
1255
1272
|
end
|
|
1256
1273
|
# resource path
|
|
1257
1274
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -1267,6 +1284,7 @@ module Kubernetes
|
|
|
1267
1284
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1268
1285
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1269
1286
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1287
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1270
1288
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1271
1289
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1272
1290
|
|
|
@@ -1288,7 +1306,7 @@ module Kubernetes
|
|
|
1288
1306
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1289
1307
|
|
|
1290
1308
|
new_options = opts.merge(
|
|
1291
|
-
:operation => :"ResourceV1Api.
|
|
1309
|
+
:operation => :"ResourceV1Api.list_namespaced_resource_claim",
|
|
1292
1310
|
:header_params => header_params,
|
|
1293
1311
|
:query_params => query_params,
|
|
1294
1312
|
:form_params => form_params,
|
|
@@ -1299,7 +1317,7 @@ module Kubernetes
|
|
|
1299
1317
|
|
|
1300
1318
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1301
1319
|
if @api_client.config.debugging
|
|
1302
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1320
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#list_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1303
1321
|
end
|
|
1304
1322
|
return data, status_code, headers
|
|
1305
1323
|
end
|
|
@@ -1316,11 +1334,12 @@ module Kubernetes
|
|
|
1316
1334
|
# @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
1335
|
# @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
1336
|
# @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.
|
|
1337
|
+
# @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
1338
|
# @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
1339
|
# @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
1340
|
# @return [V1ResourceClaimTemplateList]
|
|
1322
|
-
def
|
|
1323
|
-
data, _status_code, _headers =
|
|
1341
|
+
def list_namespaced_resource_claim_template(namespace, opts = {})
|
|
1342
|
+
data, _status_code, _headers = list_namespaced_resource_claim_template_with_http_info(namespace, opts)
|
|
1324
1343
|
data
|
|
1325
1344
|
end
|
|
1326
1345
|
|
|
@@ -1336,16 +1355,17 @@ module Kubernetes
|
|
|
1336
1355
|
# @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
1356
|
# @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
1357
|
# @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.
|
|
1358
|
+
# @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
1359
|
# @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
1360
|
# @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
1361
|
# @return [Array<(V1ResourceClaimTemplateList, Integer, Hash)>] V1ResourceClaimTemplateList data, response status code and response headers
|
|
1342
|
-
def
|
|
1362
|
+
def list_namespaced_resource_claim_template_with_http_info(namespace, opts = {})
|
|
1343
1363
|
if @api_client.config.debugging
|
|
1344
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1364
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.list_namespaced_resource_claim_template ...'
|
|
1345
1365
|
end
|
|
1346
1366
|
# verify the required parameter 'namespace' is set
|
|
1347
1367
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1348
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
1368
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.list_namespaced_resource_claim_template"
|
|
1349
1369
|
end
|
|
1350
1370
|
# resource path
|
|
1351
1371
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -1361,6 +1381,7 @@ module Kubernetes
|
|
|
1361
1381
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1362
1382
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1363
1383
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1384
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1364
1385
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1365
1386
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1366
1387
|
|
|
@@ -1382,7 +1403,7 @@ module Kubernetes
|
|
|
1382
1403
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1383
1404
|
|
|
1384
1405
|
new_options = opts.merge(
|
|
1385
|
-
:operation => :"ResourceV1Api.
|
|
1406
|
+
:operation => :"ResourceV1Api.list_namespaced_resource_claim_template",
|
|
1386
1407
|
:header_params => header_params,
|
|
1387
1408
|
:query_params => query_params,
|
|
1388
1409
|
:form_params => form_params,
|
|
@@ -1393,7 +1414,7 @@ module Kubernetes
|
|
|
1393
1414
|
|
|
1394
1415
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1395
1416
|
if @api_client.config.debugging
|
|
1396
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1417
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#list_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1397
1418
|
end
|
|
1398
1419
|
return data, status_code, headers
|
|
1399
1420
|
end
|
|
@@ -1409,11 +1430,12 @@ module Kubernetes
|
|
|
1409
1430
|
# @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
1431
|
# @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
1432
|
# @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.
|
|
1433
|
+
# @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
1434
|
# @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
1435
|
# @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
1436
|
# @return [V1ResourceClaimList]
|
|
1415
|
-
def
|
|
1416
|
-
data, _status_code, _headers =
|
|
1437
|
+
def list_resource_claim_for_all_namespaces(opts = {})
|
|
1438
|
+
data, _status_code, _headers = list_resource_claim_for_all_namespaces_with_http_info(opts)
|
|
1417
1439
|
data
|
|
1418
1440
|
end
|
|
1419
1441
|
|
|
@@ -1428,12 +1450,13 @@ module Kubernetes
|
|
|
1428
1450
|
# @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
1451
|
# @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
1452
|
# @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.
|
|
1453
|
+
# @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
1454
|
# @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
1455
|
# @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
1456
|
# @return [Array<(V1ResourceClaimList, Integer, Hash)>] V1ResourceClaimList data, response status code and response headers
|
|
1434
|
-
def
|
|
1457
|
+
def list_resource_claim_for_all_namespaces_with_http_info(opts = {})
|
|
1435
1458
|
if @api_client.config.debugging
|
|
1436
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1459
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.list_resource_claim_for_all_namespaces ...'
|
|
1437
1460
|
end
|
|
1438
1461
|
# resource path
|
|
1439
1462
|
local_var_path = '/apis/resource.k8s.io/v1/resourceclaims'
|
|
@@ -1449,6 +1472,7 @@ module Kubernetes
|
|
|
1449
1472
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1450
1473
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1451
1474
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1475
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1452
1476
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1453
1477
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1454
1478
|
|
|
@@ -1470,7 +1494,7 @@ module Kubernetes
|
|
|
1470
1494
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1471
1495
|
|
|
1472
1496
|
new_options = opts.merge(
|
|
1473
|
-
:operation => :"ResourceV1Api.
|
|
1497
|
+
:operation => :"ResourceV1Api.list_resource_claim_for_all_namespaces",
|
|
1474
1498
|
:header_params => header_params,
|
|
1475
1499
|
:query_params => query_params,
|
|
1476
1500
|
:form_params => form_params,
|
|
@@ -1481,7 +1505,7 @@ module Kubernetes
|
|
|
1481
1505
|
|
|
1482
1506
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1483
1507
|
if @api_client.config.debugging
|
|
1484
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1508
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#list_resource_claim_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1485
1509
|
end
|
|
1486
1510
|
return data, status_code, headers
|
|
1487
1511
|
end
|
|
@@ -1497,11 +1521,12 @@ module Kubernetes
|
|
|
1497
1521
|
# @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
1522
|
# @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
1523
|
# @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.
|
|
1524
|
+
# @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
1525
|
# @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
1526
|
# @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
1527
|
# @return [V1ResourceClaimTemplateList]
|
|
1503
|
-
def
|
|
1504
|
-
data, _status_code, _headers =
|
|
1528
|
+
def list_resource_claim_template_for_all_namespaces(opts = {})
|
|
1529
|
+
data, _status_code, _headers = list_resource_claim_template_for_all_namespaces_with_http_info(opts)
|
|
1505
1530
|
data
|
|
1506
1531
|
end
|
|
1507
1532
|
|
|
@@ -1516,12 +1541,13 @@ module Kubernetes
|
|
|
1516
1541
|
# @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
1542
|
# @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
1543
|
# @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.
|
|
1544
|
+
# @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
1545
|
# @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
1546
|
# @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
1547
|
# @return [Array<(V1ResourceClaimTemplateList, Integer, Hash)>] V1ResourceClaimTemplateList data, response status code and response headers
|
|
1522
|
-
def
|
|
1548
|
+
def list_resource_claim_template_for_all_namespaces_with_http_info(opts = {})
|
|
1523
1549
|
if @api_client.config.debugging
|
|
1524
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1550
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.list_resource_claim_template_for_all_namespaces ...'
|
|
1525
1551
|
end
|
|
1526
1552
|
# resource path
|
|
1527
1553
|
local_var_path = '/apis/resource.k8s.io/v1/resourceclaimtemplates'
|
|
@@ -1537,6 +1563,7 @@ module Kubernetes
|
|
|
1537
1563
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1538
1564
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1539
1565
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1566
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1540
1567
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1541
1568
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1542
1569
|
|
|
@@ -1558,7 +1585,7 @@ module Kubernetes
|
|
|
1558
1585
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1559
1586
|
|
|
1560
1587
|
new_options = opts.merge(
|
|
1561
|
-
:operation => :"ResourceV1Api.
|
|
1588
|
+
:operation => :"ResourceV1Api.list_resource_claim_template_for_all_namespaces",
|
|
1562
1589
|
:header_params => header_params,
|
|
1563
1590
|
:query_params => query_params,
|
|
1564
1591
|
:form_params => form_params,
|
|
@@ -1569,7 +1596,7 @@ module Kubernetes
|
|
|
1569
1596
|
|
|
1570
1597
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1571
1598
|
if @api_client.config.debugging
|
|
1572
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1599
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#list_resource_claim_template_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1573
1600
|
end
|
|
1574
1601
|
return data, status_code, headers
|
|
1575
1602
|
end
|
|
@@ -1585,11 +1612,12 @@ module Kubernetes
|
|
|
1585
1612
|
# @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
1613
|
# @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
1614
|
# @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.
|
|
1615
|
+
# @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
1616
|
# @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
1617
|
# @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
1618
|
# @return [V1ResourceSliceList]
|
|
1591
|
-
def
|
|
1592
|
-
data, _status_code, _headers =
|
|
1619
|
+
def list_resource_slice(opts = {})
|
|
1620
|
+
data, _status_code, _headers = list_resource_slice_with_http_info(opts)
|
|
1593
1621
|
data
|
|
1594
1622
|
end
|
|
1595
1623
|
|
|
@@ -1604,12 +1632,13 @@ module Kubernetes
|
|
|
1604
1632
|
# @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
1633
|
# @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
1634
|
# @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.
|
|
1635
|
+
# @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
1636
|
# @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
1637
|
# @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
1638
|
# @return [Array<(V1ResourceSliceList, Integer, Hash)>] V1ResourceSliceList data, response status code and response headers
|
|
1610
|
-
def
|
|
1639
|
+
def list_resource_slice_with_http_info(opts = {})
|
|
1611
1640
|
if @api_client.config.debugging
|
|
1612
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1641
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.list_resource_slice ...'
|
|
1613
1642
|
end
|
|
1614
1643
|
# resource path
|
|
1615
1644
|
local_var_path = '/apis/resource.k8s.io/v1/resourceslices'
|
|
@@ -1625,6 +1654,7 @@ module Kubernetes
|
|
|
1625
1654
|
query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
|
|
1626
1655
|
query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
|
|
1627
1656
|
query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
|
|
1657
|
+
query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
|
|
1628
1658
|
query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
|
|
1629
1659
|
query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
|
|
1630
1660
|
|
|
@@ -1646,7 +1676,7 @@ module Kubernetes
|
|
|
1646
1676
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1647
1677
|
|
|
1648
1678
|
new_options = opts.merge(
|
|
1649
|
-
:operation => :"ResourceV1Api.
|
|
1679
|
+
:operation => :"ResourceV1Api.list_resource_slice",
|
|
1650
1680
|
:header_params => header_params,
|
|
1651
1681
|
:query_params => query_params,
|
|
1652
1682
|
:form_params => form_params,
|
|
@@ -1657,7 +1687,7 @@ module Kubernetes
|
|
|
1657
1687
|
|
|
1658
1688
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1659
1689
|
if @api_client.config.debugging
|
|
1660
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1690
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#list_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1661
1691
|
end
|
|
1662
1692
|
return data, status_code, headers
|
|
1663
1693
|
end
|
|
@@ -1672,8 +1702,8 @@ module Kubernetes
|
|
|
1672
1702
|
# @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
1703
|
# @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
1704
|
# @return [V1DeviceClass]
|
|
1675
|
-
def
|
|
1676
|
-
data, _status_code, _headers =
|
|
1705
|
+
def patch_device_class(name, body, opts = {})
|
|
1706
|
+
data, _status_code, _headers = patch_device_class_with_http_info(name, body, opts)
|
|
1677
1707
|
data
|
|
1678
1708
|
end
|
|
1679
1709
|
|
|
@@ -1687,17 +1717,17 @@ module Kubernetes
|
|
|
1687
1717
|
# @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
1718
|
# @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
1719
|
# @return [Array<(V1DeviceClass, Integer, Hash)>] V1DeviceClass data, response status code and response headers
|
|
1690
|
-
def
|
|
1720
|
+
def patch_device_class_with_http_info(name, body, opts = {})
|
|
1691
1721
|
if @api_client.config.debugging
|
|
1692
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1722
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_device_class ...'
|
|
1693
1723
|
end
|
|
1694
1724
|
# verify the required parameter 'name' is set
|
|
1695
1725
|
if @api_client.config.client_side_validation && name.nil?
|
|
1696
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
1726
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.patch_device_class"
|
|
1697
1727
|
end
|
|
1698
1728
|
# verify the required parameter 'body' is set
|
|
1699
1729
|
if @api_client.config.client_side_validation && body.nil?
|
|
1700
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
1730
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.patch_device_class"
|
|
1701
1731
|
end
|
|
1702
1732
|
# resource path
|
|
1703
1733
|
local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -1730,7 +1760,7 @@ module Kubernetes
|
|
|
1730
1760
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1731
1761
|
|
|
1732
1762
|
new_options = opts.merge(
|
|
1733
|
-
:operation => :"ResourceV1Api.
|
|
1763
|
+
:operation => :"ResourceV1Api.patch_device_class",
|
|
1734
1764
|
:header_params => header_params,
|
|
1735
1765
|
:query_params => query_params,
|
|
1736
1766
|
:form_params => form_params,
|
|
@@ -1741,7 +1771,7 @@ module Kubernetes
|
|
|
1741
1771
|
|
|
1742
1772
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1743
1773
|
if @api_client.config.debugging
|
|
1744
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1774
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#patch_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1745
1775
|
end
|
|
1746
1776
|
return data, status_code, headers
|
|
1747
1777
|
end
|
|
@@ -1757,8 +1787,8 @@ module Kubernetes
|
|
|
1757
1787
|
# @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
1788
|
# @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
1789
|
# @return [ResourceV1ResourceClaim]
|
|
1760
|
-
def
|
|
1761
|
-
data, _status_code, _headers =
|
|
1790
|
+
def patch_namespaced_resource_claim(name, namespace, body, opts = {})
|
|
1791
|
+
data, _status_code, _headers = patch_namespaced_resource_claim_with_http_info(name, namespace, body, opts)
|
|
1762
1792
|
data
|
|
1763
1793
|
end
|
|
1764
1794
|
|
|
@@ -1773,21 +1803,21 @@ module Kubernetes
|
|
|
1773
1803
|
# @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
1804
|
# @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
1805
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
1776
|
-
def
|
|
1806
|
+
def patch_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {})
|
|
1777
1807
|
if @api_client.config.debugging
|
|
1778
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1808
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_namespaced_resource_claim ...'
|
|
1779
1809
|
end
|
|
1780
1810
|
# verify the required parameter 'name' is set
|
|
1781
1811
|
if @api_client.config.client_side_validation && name.nil?
|
|
1782
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
1812
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.patch_namespaced_resource_claim"
|
|
1783
1813
|
end
|
|
1784
1814
|
# verify the required parameter 'namespace' is set
|
|
1785
1815
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1786
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
1816
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.patch_namespaced_resource_claim"
|
|
1787
1817
|
end
|
|
1788
1818
|
# verify the required parameter 'body' is set
|
|
1789
1819
|
if @api_client.config.client_side_validation && body.nil?
|
|
1790
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
1820
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.patch_namespaced_resource_claim"
|
|
1791
1821
|
end
|
|
1792
1822
|
# resource path
|
|
1793
1823
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -1820,7 +1850,7 @@ module Kubernetes
|
|
|
1820
1850
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1821
1851
|
|
|
1822
1852
|
new_options = opts.merge(
|
|
1823
|
-
:operation => :"ResourceV1Api.
|
|
1853
|
+
:operation => :"ResourceV1Api.patch_namespaced_resource_claim",
|
|
1824
1854
|
:header_params => header_params,
|
|
1825
1855
|
:query_params => query_params,
|
|
1826
1856
|
:form_params => form_params,
|
|
@@ -1831,7 +1861,7 @@ module Kubernetes
|
|
|
1831
1861
|
|
|
1832
1862
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1833
1863
|
if @api_client.config.debugging
|
|
1834
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1864
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#patch_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1835
1865
|
end
|
|
1836
1866
|
return data, status_code, headers
|
|
1837
1867
|
end
|
|
@@ -1847,8 +1877,8 @@ module Kubernetes
|
|
|
1847
1877
|
# @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
1878
|
# @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
1879
|
# @return [ResourceV1ResourceClaim]
|
|
1850
|
-
def
|
|
1851
|
-
data, _status_code, _headers =
|
|
1880
|
+
def patch_namespaced_resource_claim_status(name, namespace, body, opts = {})
|
|
1881
|
+
data, _status_code, _headers = patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts)
|
|
1852
1882
|
data
|
|
1853
1883
|
end
|
|
1854
1884
|
|
|
@@ -1863,21 +1893,21 @@ module Kubernetes
|
|
|
1863
1893
|
# @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
1894
|
# @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
1895
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
1866
|
-
def
|
|
1896
|
+
def patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {})
|
|
1867
1897
|
if @api_client.config.debugging
|
|
1868
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1898
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_namespaced_resource_claim_status ...'
|
|
1869
1899
|
end
|
|
1870
1900
|
# verify the required parameter 'name' is set
|
|
1871
1901
|
if @api_client.config.client_side_validation && name.nil?
|
|
1872
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
1902
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.patch_namespaced_resource_claim_status"
|
|
1873
1903
|
end
|
|
1874
1904
|
# verify the required parameter 'namespace' is set
|
|
1875
1905
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1876
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
1906
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.patch_namespaced_resource_claim_status"
|
|
1877
1907
|
end
|
|
1878
1908
|
# verify the required parameter 'body' is set
|
|
1879
1909
|
if @api_client.config.client_side_validation && body.nil?
|
|
1880
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
1910
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.patch_namespaced_resource_claim_status"
|
|
1881
1911
|
end
|
|
1882
1912
|
# resource path
|
|
1883
1913
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -1910,7 +1940,7 @@ module Kubernetes
|
|
|
1910
1940
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
1911
1941
|
|
|
1912
1942
|
new_options = opts.merge(
|
|
1913
|
-
:operation => :"ResourceV1Api.
|
|
1943
|
+
:operation => :"ResourceV1Api.patch_namespaced_resource_claim_status",
|
|
1914
1944
|
:header_params => header_params,
|
|
1915
1945
|
:query_params => query_params,
|
|
1916
1946
|
:form_params => form_params,
|
|
@@ -1921,7 +1951,7 @@ module Kubernetes
|
|
|
1921
1951
|
|
|
1922
1952
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1923
1953
|
if @api_client.config.debugging
|
|
1924
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
1954
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#patch_namespaced_resource_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1925
1955
|
end
|
|
1926
1956
|
return data, status_code, headers
|
|
1927
1957
|
end
|
|
@@ -1937,8 +1967,8 @@ module Kubernetes
|
|
|
1937
1967
|
# @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
1968
|
# @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
1969
|
# @return [V1ResourceClaimTemplate]
|
|
1940
|
-
def
|
|
1941
|
-
data, _status_code, _headers =
|
|
1970
|
+
def patch_namespaced_resource_claim_template(name, namespace, body, opts = {})
|
|
1971
|
+
data, _status_code, _headers = patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts)
|
|
1942
1972
|
data
|
|
1943
1973
|
end
|
|
1944
1974
|
|
|
@@ -1953,21 +1983,21 @@ module Kubernetes
|
|
|
1953
1983
|
# @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
1984
|
# @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
1985
|
# @return [Array<(V1ResourceClaimTemplate, Integer, Hash)>] V1ResourceClaimTemplate data, response status code and response headers
|
|
1956
|
-
def
|
|
1986
|
+
def patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {})
|
|
1957
1987
|
if @api_client.config.debugging
|
|
1958
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
1988
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_namespaced_resource_claim_template ...'
|
|
1959
1989
|
end
|
|
1960
1990
|
# verify the required parameter 'name' is set
|
|
1961
1991
|
if @api_client.config.client_side_validation && name.nil?
|
|
1962
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
1992
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.patch_namespaced_resource_claim_template"
|
|
1963
1993
|
end
|
|
1964
1994
|
# verify the required parameter 'namespace' is set
|
|
1965
1995
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
1966
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
1996
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.patch_namespaced_resource_claim_template"
|
|
1967
1997
|
end
|
|
1968
1998
|
# verify the required parameter 'body' is set
|
|
1969
1999
|
if @api_client.config.client_side_validation && body.nil?
|
|
1970
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
2000
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.patch_namespaced_resource_claim_template"
|
|
1971
2001
|
end
|
|
1972
2002
|
# resource path
|
|
1973
2003
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2000,7 +2030,7 @@ module Kubernetes
|
|
|
2000
2030
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2001
2031
|
|
|
2002
2032
|
new_options = opts.merge(
|
|
2003
|
-
:operation => :"ResourceV1Api.
|
|
2033
|
+
:operation => :"ResourceV1Api.patch_namespaced_resource_claim_template",
|
|
2004
2034
|
:header_params => header_params,
|
|
2005
2035
|
:query_params => query_params,
|
|
2006
2036
|
:form_params => form_params,
|
|
@@ -2011,7 +2041,7 @@ module Kubernetes
|
|
|
2011
2041
|
|
|
2012
2042
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2013
2043
|
if @api_client.config.debugging
|
|
2014
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2044
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#patch_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2015
2045
|
end
|
|
2016
2046
|
return data, status_code, headers
|
|
2017
2047
|
end
|
|
@@ -2026,8 +2056,8 @@ module Kubernetes
|
|
|
2026
2056
|
# @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
2057
|
# @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
2058
|
# @return [V1ResourceSlice]
|
|
2029
|
-
def
|
|
2030
|
-
data, _status_code, _headers =
|
|
2059
|
+
def patch_resource_slice(name, body, opts = {})
|
|
2060
|
+
data, _status_code, _headers = patch_resource_slice_with_http_info(name, body, opts)
|
|
2031
2061
|
data
|
|
2032
2062
|
end
|
|
2033
2063
|
|
|
@@ -2041,17 +2071,17 @@ module Kubernetes
|
|
|
2041
2071
|
# @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
2072
|
# @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
2073
|
# @return [Array<(V1ResourceSlice, Integer, Hash)>] V1ResourceSlice data, response status code and response headers
|
|
2044
|
-
def
|
|
2074
|
+
def patch_resource_slice_with_http_info(name, body, opts = {})
|
|
2045
2075
|
if @api_client.config.debugging
|
|
2046
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2076
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.patch_resource_slice ...'
|
|
2047
2077
|
end
|
|
2048
2078
|
# verify the required parameter 'name' is set
|
|
2049
2079
|
if @api_client.config.client_side_validation && name.nil?
|
|
2050
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2080
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.patch_resource_slice"
|
|
2051
2081
|
end
|
|
2052
2082
|
# verify the required parameter 'body' is set
|
|
2053
2083
|
if @api_client.config.client_side_validation && body.nil?
|
|
2054
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
2084
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.patch_resource_slice"
|
|
2055
2085
|
end
|
|
2056
2086
|
# resource path
|
|
2057
2087
|
local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2084,7 +2114,7 @@ module Kubernetes
|
|
|
2084
2114
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2085
2115
|
|
|
2086
2116
|
new_options = opts.merge(
|
|
2087
|
-
:operation => :"ResourceV1Api.
|
|
2117
|
+
:operation => :"ResourceV1Api.patch_resource_slice",
|
|
2088
2118
|
:header_params => header_params,
|
|
2089
2119
|
:query_params => query_params,
|
|
2090
2120
|
:form_params => form_params,
|
|
@@ -2095,7 +2125,7 @@ module Kubernetes
|
|
|
2095
2125
|
|
|
2096
2126
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2097
2127
|
if @api_client.config.debugging
|
|
2098
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2128
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#patch_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2099
2129
|
end
|
|
2100
2130
|
return data, status_code, headers
|
|
2101
2131
|
end
|
|
@@ -2105,8 +2135,8 @@ module Kubernetes
|
|
|
2105
2135
|
# @param [Hash] opts the optional parameters
|
|
2106
2136
|
# @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
2137
|
# @return [V1DeviceClass]
|
|
2108
|
-
def
|
|
2109
|
-
data, _status_code, _headers =
|
|
2138
|
+
def read_device_class(name, opts = {})
|
|
2139
|
+
data, _status_code, _headers = read_device_class_with_http_info(name, opts)
|
|
2110
2140
|
data
|
|
2111
2141
|
end
|
|
2112
2142
|
|
|
@@ -2115,13 +2145,13 @@ module Kubernetes
|
|
|
2115
2145
|
# @param [Hash] opts the optional parameters
|
|
2116
2146
|
# @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
2147
|
# @return [Array<(V1DeviceClass, Integer, Hash)>] V1DeviceClass data, response status code and response headers
|
|
2118
|
-
def
|
|
2148
|
+
def read_device_class_with_http_info(name, opts = {})
|
|
2119
2149
|
if @api_client.config.debugging
|
|
2120
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2150
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.read_device_class ...'
|
|
2121
2151
|
end
|
|
2122
2152
|
# verify the required parameter 'name' is set
|
|
2123
2153
|
if @api_client.config.client_side_validation && name.nil?
|
|
2124
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2154
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.read_device_class"
|
|
2125
2155
|
end
|
|
2126
2156
|
# resource path
|
|
2127
2157
|
local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2148,7 +2178,7 @@ module Kubernetes
|
|
|
2148
2178
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2149
2179
|
|
|
2150
2180
|
new_options = opts.merge(
|
|
2151
|
-
:operation => :"ResourceV1Api.
|
|
2181
|
+
:operation => :"ResourceV1Api.read_device_class",
|
|
2152
2182
|
:header_params => header_params,
|
|
2153
2183
|
:query_params => query_params,
|
|
2154
2184
|
:form_params => form_params,
|
|
@@ -2159,7 +2189,7 @@ module Kubernetes
|
|
|
2159
2189
|
|
|
2160
2190
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2161
2191
|
if @api_client.config.debugging
|
|
2162
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2192
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#read_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2163
2193
|
end
|
|
2164
2194
|
return data, status_code, headers
|
|
2165
2195
|
end
|
|
@@ -2170,8 +2200,8 @@ module Kubernetes
|
|
|
2170
2200
|
# @param [Hash] opts the optional parameters
|
|
2171
2201
|
# @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
2202
|
# @return [ResourceV1ResourceClaim]
|
|
2173
|
-
def
|
|
2174
|
-
data, _status_code, _headers =
|
|
2203
|
+
def read_namespaced_resource_claim(name, namespace, opts = {})
|
|
2204
|
+
data, _status_code, _headers = read_namespaced_resource_claim_with_http_info(name, namespace, opts)
|
|
2175
2205
|
data
|
|
2176
2206
|
end
|
|
2177
2207
|
|
|
@@ -2181,17 +2211,17 @@ module Kubernetes
|
|
|
2181
2211
|
# @param [Hash] opts the optional parameters
|
|
2182
2212
|
# @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
2213
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
2184
|
-
def
|
|
2214
|
+
def read_namespaced_resource_claim_with_http_info(name, namespace, opts = {})
|
|
2185
2215
|
if @api_client.config.debugging
|
|
2186
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2216
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.read_namespaced_resource_claim ...'
|
|
2187
2217
|
end
|
|
2188
2218
|
# verify the required parameter 'name' is set
|
|
2189
2219
|
if @api_client.config.client_side_validation && name.nil?
|
|
2190
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2220
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.read_namespaced_resource_claim"
|
|
2191
2221
|
end
|
|
2192
2222
|
# verify the required parameter 'namespace' is set
|
|
2193
2223
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2194
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
2224
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.read_namespaced_resource_claim"
|
|
2195
2225
|
end
|
|
2196
2226
|
# resource path
|
|
2197
2227
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2218,7 +2248,7 @@ module Kubernetes
|
|
|
2218
2248
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2219
2249
|
|
|
2220
2250
|
new_options = opts.merge(
|
|
2221
|
-
:operation => :"ResourceV1Api.
|
|
2251
|
+
:operation => :"ResourceV1Api.read_namespaced_resource_claim",
|
|
2222
2252
|
:header_params => header_params,
|
|
2223
2253
|
:query_params => query_params,
|
|
2224
2254
|
:form_params => form_params,
|
|
@@ -2229,7 +2259,7 @@ module Kubernetes
|
|
|
2229
2259
|
|
|
2230
2260
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2231
2261
|
if @api_client.config.debugging
|
|
2232
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2262
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#read_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2233
2263
|
end
|
|
2234
2264
|
return data, status_code, headers
|
|
2235
2265
|
end
|
|
@@ -2240,8 +2270,8 @@ module Kubernetes
|
|
|
2240
2270
|
# @param [Hash] opts the optional parameters
|
|
2241
2271
|
# @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
2272
|
# @return [ResourceV1ResourceClaim]
|
|
2243
|
-
def
|
|
2244
|
-
data, _status_code, _headers =
|
|
2273
|
+
def read_namespaced_resource_claim_status(name, namespace, opts = {})
|
|
2274
|
+
data, _status_code, _headers = read_namespaced_resource_claim_status_with_http_info(name, namespace, opts)
|
|
2245
2275
|
data
|
|
2246
2276
|
end
|
|
2247
2277
|
|
|
@@ -2251,17 +2281,17 @@ module Kubernetes
|
|
|
2251
2281
|
# @param [Hash] opts the optional parameters
|
|
2252
2282
|
# @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
2283
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
2254
|
-
def
|
|
2284
|
+
def read_namespaced_resource_claim_status_with_http_info(name, namespace, opts = {})
|
|
2255
2285
|
if @api_client.config.debugging
|
|
2256
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2286
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.read_namespaced_resource_claim_status ...'
|
|
2257
2287
|
end
|
|
2258
2288
|
# verify the required parameter 'name' is set
|
|
2259
2289
|
if @api_client.config.client_side_validation && name.nil?
|
|
2260
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2290
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.read_namespaced_resource_claim_status"
|
|
2261
2291
|
end
|
|
2262
2292
|
# verify the required parameter 'namespace' is set
|
|
2263
2293
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2264
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
2294
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.read_namespaced_resource_claim_status"
|
|
2265
2295
|
end
|
|
2266
2296
|
# resource path
|
|
2267
2297
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2288,7 +2318,7 @@ module Kubernetes
|
|
|
2288
2318
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2289
2319
|
|
|
2290
2320
|
new_options = opts.merge(
|
|
2291
|
-
:operation => :"ResourceV1Api.
|
|
2321
|
+
:operation => :"ResourceV1Api.read_namespaced_resource_claim_status",
|
|
2292
2322
|
:header_params => header_params,
|
|
2293
2323
|
:query_params => query_params,
|
|
2294
2324
|
:form_params => form_params,
|
|
@@ -2299,7 +2329,7 @@ module Kubernetes
|
|
|
2299
2329
|
|
|
2300
2330
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2301
2331
|
if @api_client.config.debugging
|
|
2302
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2332
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#read_namespaced_resource_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2303
2333
|
end
|
|
2304
2334
|
return data, status_code, headers
|
|
2305
2335
|
end
|
|
@@ -2310,8 +2340,8 @@ module Kubernetes
|
|
|
2310
2340
|
# @param [Hash] opts the optional parameters
|
|
2311
2341
|
# @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
2342
|
# @return [V1ResourceClaimTemplate]
|
|
2313
|
-
def
|
|
2314
|
-
data, _status_code, _headers =
|
|
2343
|
+
def read_namespaced_resource_claim_template(name, namespace, opts = {})
|
|
2344
|
+
data, _status_code, _headers = read_namespaced_resource_claim_template_with_http_info(name, namespace, opts)
|
|
2315
2345
|
data
|
|
2316
2346
|
end
|
|
2317
2347
|
|
|
@@ -2321,17 +2351,17 @@ module Kubernetes
|
|
|
2321
2351
|
# @param [Hash] opts the optional parameters
|
|
2322
2352
|
# @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
2353
|
# @return [Array<(V1ResourceClaimTemplate, Integer, Hash)>] V1ResourceClaimTemplate data, response status code and response headers
|
|
2324
|
-
def
|
|
2354
|
+
def read_namespaced_resource_claim_template_with_http_info(name, namespace, opts = {})
|
|
2325
2355
|
if @api_client.config.debugging
|
|
2326
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2356
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.read_namespaced_resource_claim_template ...'
|
|
2327
2357
|
end
|
|
2328
2358
|
# verify the required parameter 'name' is set
|
|
2329
2359
|
if @api_client.config.client_side_validation && name.nil?
|
|
2330
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2360
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.read_namespaced_resource_claim_template"
|
|
2331
2361
|
end
|
|
2332
2362
|
# verify the required parameter 'namespace' is set
|
|
2333
2363
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2334
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
2364
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.read_namespaced_resource_claim_template"
|
|
2335
2365
|
end
|
|
2336
2366
|
# resource path
|
|
2337
2367
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2358,7 +2388,7 @@ module Kubernetes
|
|
|
2358
2388
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2359
2389
|
|
|
2360
2390
|
new_options = opts.merge(
|
|
2361
|
-
:operation => :"ResourceV1Api.
|
|
2391
|
+
:operation => :"ResourceV1Api.read_namespaced_resource_claim_template",
|
|
2362
2392
|
:header_params => header_params,
|
|
2363
2393
|
:query_params => query_params,
|
|
2364
2394
|
:form_params => form_params,
|
|
@@ -2369,7 +2399,7 @@ module Kubernetes
|
|
|
2369
2399
|
|
|
2370
2400
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2371
2401
|
if @api_client.config.debugging
|
|
2372
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2402
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#read_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2373
2403
|
end
|
|
2374
2404
|
return data, status_code, headers
|
|
2375
2405
|
end
|
|
@@ -2379,8 +2409,8 @@ module Kubernetes
|
|
|
2379
2409
|
# @param [Hash] opts the optional parameters
|
|
2380
2410
|
# @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
2411
|
# @return [V1ResourceSlice]
|
|
2382
|
-
def
|
|
2383
|
-
data, _status_code, _headers =
|
|
2412
|
+
def read_resource_slice(name, opts = {})
|
|
2413
|
+
data, _status_code, _headers = read_resource_slice_with_http_info(name, opts)
|
|
2384
2414
|
data
|
|
2385
2415
|
end
|
|
2386
2416
|
|
|
@@ -2389,13 +2419,13 @@ module Kubernetes
|
|
|
2389
2419
|
# @param [Hash] opts the optional parameters
|
|
2390
2420
|
# @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
2421
|
# @return [Array<(V1ResourceSlice, Integer, Hash)>] V1ResourceSlice data, response status code and response headers
|
|
2392
|
-
def
|
|
2422
|
+
def read_resource_slice_with_http_info(name, opts = {})
|
|
2393
2423
|
if @api_client.config.debugging
|
|
2394
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2424
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.read_resource_slice ...'
|
|
2395
2425
|
end
|
|
2396
2426
|
# verify the required parameter 'name' is set
|
|
2397
2427
|
if @api_client.config.client_side_validation && name.nil?
|
|
2398
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2428
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.read_resource_slice"
|
|
2399
2429
|
end
|
|
2400
2430
|
# resource path
|
|
2401
2431
|
local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2422,7 +2452,7 @@ module Kubernetes
|
|
|
2422
2452
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2423
2453
|
|
|
2424
2454
|
new_options = opts.merge(
|
|
2425
|
-
:operation => :"ResourceV1Api.
|
|
2455
|
+
:operation => :"ResourceV1Api.read_resource_slice",
|
|
2426
2456
|
:header_params => header_params,
|
|
2427
2457
|
:query_params => query_params,
|
|
2428
2458
|
:form_params => form_params,
|
|
@@ -2433,7 +2463,7 @@ module Kubernetes
|
|
|
2433
2463
|
|
|
2434
2464
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2435
2465
|
if @api_client.config.debugging
|
|
2436
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2466
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#read_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2437
2467
|
end
|
|
2438
2468
|
return data, status_code, headers
|
|
2439
2469
|
end
|
|
@@ -2447,8 +2477,8 @@ module Kubernetes
|
|
|
2447
2477
|
# @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
2478
|
# @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
2479
|
# @return [V1DeviceClass]
|
|
2450
|
-
def
|
|
2451
|
-
data, _status_code, _headers =
|
|
2480
|
+
def replace_device_class(name, body, opts = {})
|
|
2481
|
+
data, _status_code, _headers = replace_device_class_with_http_info(name, body, opts)
|
|
2452
2482
|
data
|
|
2453
2483
|
end
|
|
2454
2484
|
|
|
@@ -2461,17 +2491,17 @@ module Kubernetes
|
|
|
2461
2491
|
# @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
2492
|
# @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
2493
|
# @return [Array<(V1DeviceClass, Integer, Hash)>] V1DeviceClass data, response status code and response headers
|
|
2464
|
-
def
|
|
2494
|
+
def replace_device_class_with_http_info(name, body, opts = {})
|
|
2465
2495
|
if @api_client.config.debugging
|
|
2466
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2496
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_device_class ...'
|
|
2467
2497
|
end
|
|
2468
2498
|
# verify the required parameter 'name' is set
|
|
2469
2499
|
if @api_client.config.client_side_validation && name.nil?
|
|
2470
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2500
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.replace_device_class"
|
|
2471
2501
|
end
|
|
2472
2502
|
# verify the required parameter 'body' is set
|
|
2473
2503
|
if @api_client.config.client_side_validation && body.nil?
|
|
2474
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
2504
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.replace_device_class"
|
|
2475
2505
|
end
|
|
2476
2506
|
# resource path
|
|
2477
2507
|
local_var_path = '/apis/resource.k8s.io/v1/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2501,7 +2531,7 @@ module Kubernetes
|
|
|
2501
2531
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2502
2532
|
|
|
2503
2533
|
new_options = opts.merge(
|
|
2504
|
-
:operation => :"ResourceV1Api.
|
|
2534
|
+
:operation => :"ResourceV1Api.replace_device_class",
|
|
2505
2535
|
:header_params => header_params,
|
|
2506
2536
|
:query_params => query_params,
|
|
2507
2537
|
:form_params => form_params,
|
|
@@ -2512,7 +2542,7 @@ module Kubernetes
|
|
|
2512
2542
|
|
|
2513
2543
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2514
2544
|
if @api_client.config.debugging
|
|
2515
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2545
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#replace_device_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2516
2546
|
end
|
|
2517
2547
|
return data, status_code, headers
|
|
2518
2548
|
end
|
|
@@ -2527,8 +2557,8 @@ module Kubernetes
|
|
|
2527
2557
|
# @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
2558
|
# @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
2559
|
# @return [ResourceV1ResourceClaim]
|
|
2530
|
-
def
|
|
2531
|
-
data, _status_code, _headers =
|
|
2560
|
+
def replace_namespaced_resource_claim(name, namespace, body, opts = {})
|
|
2561
|
+
data, _status_code, _headers = replace_namespaced_resource_claim_with_http_info(name, namespace, body, opts)
|
|
2532
2562
|
data
|
|
2533
2563
|
end
|
|
2534
2564
|
|
|
@@ -2542,21 +2572,21 @@ module Kubernetes
|
|
|
2542
2572
|
# @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
2573
|
# @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
2574
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
2545
|
-
def
|
|
2575
|
+
def replace_namespaced_resource_claim_with_http_info(name, namespace, body, opts = {})
|
|
2546
2576
|
if @api_client.config.debugging
|
|
2547
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2577
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_namespaced_resource_claim ...'
|
|
2548
2578
|
end
|
|
2549
2579
|
# verify the required parameter 'name' is set
|
|
2550
2580
|
if @api_client.config.client_side_validation && name.nil?
|
|
2551
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2581
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.replace_namespaced_resource_claim"
|
|
2552
2582
|
end
|
|
2553
2583
|
# verify the required parameter 'namespace' is set
|
|
2554
2584
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2555
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
2585
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.replace_namespaced_resource_claim"
|
|
2556
2586
|
end
|
|
2557
2587
|
# verify the required parameter 'body' is set
|
|
2558
2588
|
if @api_client.config.client_side_validation && body.nil?
|
|
2559
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
2589
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.replace_namespaced_resource_claim"
|
|
2560
2590
|
end
|
|
2561
2591
|
# resource path
|
|
2562
2592
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2586,7 +2616,7 @@ module Kubernetes
|
|
|
2586
2616
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2587
2617
|
|
|
2588
2618
|
new_options = opts.merge(
|
|
2589
|
-
:operation => :"ResourceV1Api.
|
|
2619
|
+
:operation => :"ResourceV1Api.replace_namespaced_resource_claim",
|
|
2590
2620
|
:header_params => header_params,
|
|
2591
2621
|
:query_params => query_params,
|
|
2592
2622
|
:form_params => form_params,
|
|
@@ -2597,7 +2627,7 @@ module Kubernetes
|
|
|
2597
2627
|
|
|
2598
2628
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2599
2629
|
if @api_client.config.debugging
|
|
2600
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2630
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#replace_namespaced_resource_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2601
2631
|
end
|
|
2602
2632
|
return data, status_code, headers
|
|
2603
2633
|
end
|
|
@@ -2612,8 +2642,8 @@ module Kubernetes
|
|
|
2612
2642
|
# @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
2643
|
# @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
2644
|
# @return [ResourceV1ResourceClaim]
|
|
2615
|
-
def
|
|
2616
|
-
data, _status_code, _headers =
|
|
2645
|
+
def replace_namespaced_resource_claim_status(name, namespace, body, opts = {})
|
|
2646
|
+
data, _status_code, _headers = replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts)
|
|
2617
2647
|
data
|
|
2618
2648
|
end
|
|
2619
2649
|
|
|
@@ -2627,21 +2657,21 @@ module Kubernetes
|
|
|
2627
2657
|
# @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
2658
|
# @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
2659
|
# @return [Array<(ResourceV1ResourceClaim, Integer, Hash)>] ResourceV1ResourceClaim data, response status code and response headers
|
|
2630
|
-
def
|
|
2660
|
+
def replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, opts = {})
|
|
2631
2661
|
if @api_client.config.debugging
|
|
2632
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2662
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_namespaced_resource_claim_status ...'
|
|
2633
2663
|
end
|
|
2634
2664
|
# verify the required parameter 'name' is set
|
|
2635
2665
|
if @api_client.config.client_side_validation && name.nil?
|
|
2636
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2666
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.replace_namespaced_resource_claim_status"
|
|
2637
2667
|
end
|
|
2638
2668
|
# verify the required parameter 'namespace' is set
|
|
2639
2669
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2640
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
2670
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.replace_namespaced_resource_claim_status"
|
|
2641
2671
|
end
|
|
2642
2672
|
# verify the required parameter 'body' is set
|
|
2643
2673
|
if @api_client.config.client_side_validation && body.nil?
|
|
2644
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
2674
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.replace_namespaced_resource_claim_status"
|
|
2645
2675
|
end
|
|
2646
2676
|
# resource path
|
|
2647
2677
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2671,7 +2701,7 @@ module Kubernetes
|
|
|
2671
2701
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2672
2702
|
|
|
2673
2703
|
new_options = opts.merge(
|
|
2674
|
-
:operation => :"ResourceV1Api.
|
|
2704
|
+
:operation => :"ResourceV1Api.replace_namespaced_resource_claim_status",
|
|
2675
2705
|
:header_params => header_params,
|
|
2676
2706
|
:query_params => query_params,
|
|
2677
2707
|
:form_params => form_params,
|
|
@@ -2682,7 +2712,7 @@ module Kubernetes
|
|
|
2682
2712
|
|
|
2683
2713
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2684
2714
|
if @api_client.config.debugging
|
|
2685
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2715
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#replace_namespaced_resource_claim_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2686
2716
|
end
|
|
2687
2717
|
return data, status_code, headers
|
|
2688
2718
|
end
|
|
@@ -2697,8 +2727,8 @@ module Kubernetes
|
|
|
2697
2727
|
# @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
2728
|
# @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
2729
|
# @return [V1ResourceClaimTemplate]
|
|
2700
|
-
def
|
|
2701
|
-
data, _status_code, _headers =
|
|
2730
|
+
def replace_namespaced_resource_claim_template(name, namespace, body, opts = {})
|
|
2731
|
+
data, _status_code, _headers = replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts)
|
|
2702
2732
|
data
|
|
2703
2733
|
end
|
|
2704
2734
|
|
|
@@ -2712,21 +2742,21 @@ module Kubernetes
|
|
|
2712
2742
|
# @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
2743
|
# @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
2744
|
# @return [Array<(V1ResourceClaimTemplate, Integer, Hash)>] V1ResourceClaimTemplate data, response status code and response headers
|
|
2715
|
-
def
|
|
2745
|
+
def replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, opts = {})
|
|
2716
2746
|
if @api_client.config.debugging
|
|
2717
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2747
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_namespaced_resource_claim_template ...'
|
|
2718
2748
|
end
|
|
2719
2749
|
# verify the required parameter 'name' is set
|
|
2720
2750
|
if @api_client.config.client_side_validation && name.nil?
|
|
2721
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2751
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.replace_namespaced_resource_claim_template"
|
|
2722
2752
|
end
|
|
2723
2753
|
# verify the required parameter 'namespace' is set
|
|
2724
2754
|
if @api_client.config.client_side_validation && namespace.nil?
|
|
2725
|
-
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.
|
|
2755
|
+
fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1Api.replace_namespaced_resource_claim_template"
|
|
2726
2756
|
end
|
|
2727
2757
|
# verify the required parameter 'body' is set
|
|
2728
2758
|
if @api_client.config.client_side_validation && body.nil?
|
|
2729
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
2759
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.replace_namespaced_resource_claim_template"
|
|
2730
2760
|
end
|
|
2731
2761
|
# resource path
|
|
2732
2762
|
local_var_path = '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
|
|
@@ -2756,7 +2786,7 @@ module Kubernetes
|
|
|
2756
2786
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2757
2787
|
|
|
2758
2788
|
new_options = opts.merge(
|
|
2759
|
-
:operation => :"ResourceV1Api.
|
|
2789
|
+
:operation => :"ResourceV1Api.replace_namespaced_resource_claim_template",
|
|
2760
2790
|
:header_params => header_params,
|
|
2761
2791
|
:query_params => query_params,
|
|
2762
2792
|
:form_params => form_params,
|
|
@@ -2767,7 +2797,7 @@ module Kubernetes
|
|
|
2767
2797
|
|
|
2768
2798
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2769
2799
|
if @api_client.config.debugging
|
|
2770
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2800
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#replace_namespaced_resource_claim_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2771
2801
|
end
|
|
2772
2802
|
return data, status_code, headers
|
|
2773
2803
|
end
|
|
@@ -2781,8 +2811,8 @@ module Kubernetes
|
|
|
2781
2811
|
# @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
2812
|
# @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
2813
|
# @return [V1ResourceSlice]
|
|
2784
|
-
def
|
|
2785
|
-
data, _status_code, _headers =
|
|
2814
|
+
def replace_resource_slice(name, body, opts = {})
|
|
2815
|
+
data, _status_code, _headers = replace_resource_slice_with_http_info(name, body, opts)
|
|
2786
2816
|
data
|
|
2787
2817
|
end
|
|
2788
2818
|
|
|
@@ -2795,17 +2825,17 @@ module Kubernetes
|
|
|
2795
2825
|
# @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
2826
|
# @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
2827
|
# @return [Array<(V1ResourceSlice, Integer, Hash)>] V1ResourceSlice data, response status code and response headers
|
|
2798
|
-
def
|
|
2828
|
+
def replace_resource_slice_with_http_info(name, body, opts = {})
|
|
2799
2829
|
if @api_client.config.debugging
|
|
2800
|
-
@api_client.config.logger.debug 'Calling API: ResourceV1Api.
|
|
2830
|
+
@api_client.config.logger.debug 'Calling API: ResourceV1Api.replace_resource_slice ...'
|
|
2801
2831
|
end
|
|
2802
2832
|
# verify the required parameter 'name' is set
|
|
2803
2833
|
if @api_client.config.client_side_validation && name.nil?
|
|
2804
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.
|
|
2834
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1Api.replace_resource_slice"
|
|
2805
2835
|
end
|
|
2806
2836
|
# verify the required parameter 'body' is set
|
|
2807
2837
|
if @api_client.config.client_side_validation && body.nil?
|
|
2808
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.
|
|
2838
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1Api.replace_resource_slice"
|
|
2809
2839
|
end
|
|
2810
2840
|
# resource path
|
|
2811
2841
|
local_var_path = '/apis/resource.k8s.io/v1/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
|
|
@@ -2835,7 +2865,7 @@ module Kubernetes
|
|
|
2835
2865
|
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
2836
2866
|
|
|
2837
2867
|
new_options = opts.merge(
|
|
2838
|
-
:operation => :"ResourceV1Api.
|
|
2868
|
+
:operation => :"ResourceV1Api.replace_resource_slice",
|
|
2839
2869
|
:header_params => header_params,
|
|
2840
2870
|
:query_params => query_params,
|
|
2841
2871
|
:form_params => form_params,
|
|
@@ -2846,7 +2876,7 @@ module Kubernetes
|
|
|
2846
2876
|
|
|
2847
2877
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2848
2878
|
if @api_client.config.debugging
|
|
2849
|
-
@api_client.config.logger.debug "API called: ResourceV1Api#
|
|
2879
|
+
@api_client.config.logger.debug "API called: ResourceV1Api#replace_resource_slice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2850
2880
|
end
|
|
2851
2881
|
return data, status_code, headers
|
|
2852
2882
|
end
|