kruby 1.35.0.6 → 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.
Files changed (832) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +410 -339
  3. data/lib/kubernetes/api/admissionregistration_api.rb +7 -7
  4. data/lib/kubernetes/api/admissionregistration_v1_api.rb +1311 -139
  5. data/lib/kubernetes/api/admissionregistration_v1alpha1_api.rb +213 -201
  6. data/lib/kubernetes/api/admissionregistration_v1beta1_api.rb +213 -201
  7. data/lib/kubernetes/api/apiextensions_api.rb +7 -7
  8. data/lib/kubernetes/api/apiextensions_v1_api.rb +13 -7
  9. data/lib/kubernetes/api/apiregistration_api.rb +7 -7
  10. data/lib/kubernetes/api/apiregistration_v1_api.rb +13 -7
  11. data/lib/kubernetes/api/apis_api.rb +7 -7
  12. data/lib/kubernetes/api/apps_api.rb +7 -7
  13. data/lib/kubernetes/api/apps_v1_api.rb +52 -7
  14. data/lib/kubernetes/api/authentication_api.rb +7 -7
  15. data/lib/kubernetes/api/authentication_v1_api.rb +7 -7
  16. data/lib/kubernetes/api/authorization_api.rb +7 -7
  17. data/lib/kubernetes/api/authorization_v1_api.rb +7 -7
  18. data/lib/kubernetes/api/autoscaling_api.rb +7 -7
  19. data/lib/kubernetes/api/autoscaling_v1_api.rb +104 -95
  20. data/lib/kubernetes/api/autoscaling_v2_api.rb +104 -95
  21. data/lib/kubernetes/api/batch_api.rb +7 -7
  22. data/lib/kubernetes/api/batch_v1_api.rb +25 -7
  23. data/lib/kubernetes/api/certificates_api.rb +7 -7
  24. data/lib/kubernetes/api/certificates_v1_api.rb +13 -7
  25. data/lib/kubernetes/api/certificates_v1alpha1_api.rb +62 -56
  26. data/lib/kubernetes/api/certificates_v1beta1_api.rb +71 -56
  27. data/lib/kubernetes/api/coordination_api.rb +7 -7
  28. data/lib/kubernetes/api/coordination_v1_api.rb +16 -7
  29. data/lib/kubernetes/api/coordination_v1alpha2_api.rb +78 -69
  30. data/lib/kubernetes/api/coordination_v1beta1_api.rb +78 -69
  31. data/lib/kubernetes/api/core_api.rb +7 -7
  32. data/lib/kubernetes/api/core_v1_api.rb +195 -69
  33. data/lib/kubernetes/api/custom_objects_api.rb +18 -18
  34. data/lib/kubernetes/api/discovery_api.rb +7 -7
  35. data/lib/kubernetes/api/discovery_v1_api.rb +16 -7
  36. data/lib/kubernetes/api/events_api.rb +7 -7
  37. data/lib/kubernetes/api/events_v1_api.rb +78 -69
  38. data/lib/kubernetes/api/flowcontrol_apiserver_api.rb +7 -7
  39. data/lib/kubernetes/api/flowcontrol_apiserver_v1_api.rb +19 -7
  40. data/lib/kubernetes/api/internal_apiserver_api.rb +7 -7
  41. data/lib/kubernetes/api/internal_apiserver_v1alpha1_api.rb +13 -7
  42. data/lib/kubernetes/api/logs_api.rb +1 -1
  43. data/lib/kubernetes/api/networking_api.rb +7 -7
  44. data/lib/kubernetes/api/networking_v1_api.rb +164 -128
  45. data/lib/kubernetes/api/networking_v1beta1_api.rb +140 -128
  46. data/lib/kubernetes/api/node_api.rb +7 -7
  47. data/lib/kubernetes/api/node_v1_api.rb +13 -7
  48. data/lib/kubernetes/api/openid_api.rb +1 -1
  49. data/lib/kubernetes/api/policy_api.rb +7 -7
  50. data/lib/kubernetes/api/policy_v1_api.rb +16 -7
  51. data/lib/kubernetes/api/rbac_authorization_api.rb +7 -7
  52. data/lib/kubernetes/api/rbac_authorization_v1_api.rb +37 -7
  53. data/lib/kubernetes/api/resource_api.rb +7 -7
  54. data/lib/kubernetes/api/resource_v1_api.rb +285 -255
  55. data/lib/kubernetes/api/resource_v1alpha3_api.rb +848 -41
  56. data/lib/kubernetes/api/resource_v1beta1_api.rb +285 -255
  57. data/lib/kubernetes/api/resource_v1beta2_api.rb +1110 -279
  58. data/lib/kubernetes/api/scheduling_api.rb +7 -7
  59. data/lib/kubernetes/api/scheduling_v1_api.rb +13 -7
  60. data/lib/kubernetes/api/scheduling_v1alpha2_api.rb +1736 -0
  61. data/lib/kubernetes/api/storage_api.rb +7 -7
  62. data/lib/kubernetes/api/storage_v1_api.rb +95 -56
  63. data/lib/kubernetes/api/storage_v1beta1_api.rb +62 -56
  64. data/lib/kubernetes/api/storagemigration_api.rb +7 -7
  65. data/lib/kubernetes/api/storagemigration_v1beta1_api.rb +13 -7
  66. data/lib/kubernetes/api/version_api.rb +1 -1
  67. data/lib/kubernetes/api/well_known_api.rb +1 -1
  68. data/lib/kubernetes/api_client.rb +1 -1
  69. data/lib/kubernetes/api_error.rb +1 -1
  70. data/lib/kubernetes/configuration.rb +1 -1
  71. data/lib/kubernetes/models/admissionregistration_v1_service_reference.rb +5 -5
  72. data/lib/kubernetes/models/admissionregistration_v1_webhook_client_config.rb +3 -3
  73. data/lib/kubernetes/models/apiextensions_v1_service_reference.rb +1 -1
  74. data/lib/kubernetes/models/apiextensions_v1_webhook_client_config.rb +1 -1
  75. data/lib/kubernetes/models/apiregistration_v1_service_reference.rb +1 -1
  76. data/lib/kubernetes/models/authentication_v1_token_request.rb +1 -6
  77. data/lib/kubernetes/models/core_v1_endpoint_port.rb +1 -1
  78. data/lib/kubernetes/models/core_v1_event.rb +1 -1
  79. data/lib/kubernetes/models/core_v1_event_list.rb +1 -1
  80. data/lib/kubernetes/models/core_v1_event_series.rb +1 -1
  81. data/lib/kubernetes/models/core_v1_resource_claim.rb +1 -1
  82. data/lib/kubernetes/models/discovery_v1_endpoint_port.rb +1 -1
  83. data/lib/kubernetes/models/events_v1_event.rb +1 -1
  84. data/lib/kubernetes/models/events_v1_event_list.rb +1 -1
  85. data/lib/kubernetes/models/events_v1_event_series.rb +1 -1
  86. data/lib/kubernetes/models/flowcontrol_v1_subject.rb +1 -1
  87. data/lib/kubernetes/models/rbac_v1_subject.rb +1 -1
  88. data/lib/kubernetes/models/resource_v1_resource_claim.rb +2 -2
  89. data/lib/kubernetes/models/storage_v1_token_request.rb +1 -1
  90. data/lib/kubernetes/models/v1_affinity.rb +1 -1
  91. data/lib/kubernetes/models/v1_aggregation_rule.rb +1 -1
  92. data/lib/kubernetes/models/v1_allocated_device_status.rb +1 -1
  93. data/lib/kubernetes/models/v1_allocation_result.rb +2 -2
  94. data/lib/kubernetes/models/v1_api_group.rb +1 -1
  95. data/lib/kubernetes/models/v1_api_group_list.rb +1 -1
  96. data/lib/kubernetes/models/v1_api_resource.rb +1 -1
  97. data/lib/kubernetes/models/v1_api_resource_list.rb +1 -1
  98. data/lib/kubernetes/models/v1_api_service.rb +1 -1
  99. data/lib/kubernetes/models/v1_api_service_condition.rb +1 -1
  100. data/lib/kubernetes/models/v1_api_service_list.rb +1 -1
  101. data/lib/kubernetes/models/v1_api_service_spec.rb +1 -1
  102. data/lib/kubernetes/models/v1_api_service_status.rb +1 -1
  103. data/lib/kubernetes/models/v1_api_versions.rb +1 -1
  104. data/lib/kubernetes/models/v1_app_armor_profile.rb +1 -1
  105. data/lib/kubernetes/models/v1_apply_configuration.rb +220 -0
  106. data/lib/kubernetes/models/v1_attached_volume.rb +1 -1
  107. data/lib/kubernetes/models/v1_audit_annotation.rb +1 -1
  108. data/lib/kubernetes/models/v1_aws_elastic_block_store_volume_source.rb +1 -1
  109. data/lib/kubernetes/models/v1_azure_disk_volume_source.rb +1 -1
  110. data/lib/kubernetes/models/v1_azure_file_persistent_volume_source.rb +1 -1
  111. data/lib/kubernetes/models/v1_azure_file_volume_source.rb +1 -1
  112. data/lib/kubernetes/models/v1_binding.rb +1 -1
  113. data/lib/kubernetes/models/v1_bound_object_reference.rb +5 -5
  114. data/lib/kubernetes/models/v1_capabilities.rb +1 -1
  115. data/lib/kubernetes/models/v1_capacity_request_policy.rb +1 -1
  116. data/lib/kubernetes/models/v1_capacity_request_policy_range.rb +1 -1
  117. data/lib/kubernetes/models/v1_capacity_requirements.rb +1 -1
  118. data/lib/kubernetes/models/v1_cel_device_selector.rb +2 -2
  119. data/lib/kubernetes/models/v1_ceph_fs_persistent_volume_source.rb +1 -1
  120. data/lib/kubernetes/models/v1_ceph_fs_volume_source.rb +1 -1
  121. data/lib/kubernetes/models/v1_certificate_signing_request.rb +1 -1
  122. data/lib/kubernetes/models/v1_certificate_signing_request_condition.rb +1 -1
  123. data/lib/kubernetes/models/v1_certificate_signing_request_list.rb +1 -1
  124. data/lib/kubernetes/models/v1_certificate_signing_request_spec.rb +1 -1
  125. data/lib/kubernetes/models/v1_certificate_signing_request_status.rb +1 -1
  126. data/lib/kubernetes/models/v1_cinder_persistent_volume_source.rb +1 -1
  127. data/lib/kubernetes/models/v1_cinder_volume_source.rb +1 -1
  128. data/lib/kubernetes/models/v1_client_ip_config.rb +1 -1
  129. data/lib/kubernetes/models/v1_cluster_role.rb +1 -1
  130. data/lib/kubernetes/models/v1_cluster_role_binding.rb +1 -1
  131. data/lib/kubernetes/models/v1_cluster_role_binding_list.rb +1 -1
  132. data/lib/kubernetes/models/v1_cluster_role_list.rb +1 -1
  133. data/lib/kubernetes/models/v1_cluster_trust_bundle_projection.rb +1 -1
  134. data/lib/kubernetes/models/v1_component_condition.rb +1 -1
  135. data/lib/kubernetes/models/v1_component_status.rb +1 -1
  136. data/lib/kubernetes/models/v1_component_status_list.rb +1 -1
  137. data/lib/kubernetes/models/v1_condition.rb +1 -1
  138. data/lib/kubernetes/models/v1_config_map.rb +1 -1
  139. data/lib/kubernetes/models/v1_config_map_env_source.rb +1 -1
  140. data/lib/kubernetes/models/v1_config_map_key_selector.rb +1 -1
  141. data/lib/kubernetes/models/v1_config_map_list.rb +1 -1
  142. data/lib/kubernetes/models/v1_config_map_node_config_source.rb +1 -1
  143. data/lib/kubernetes/models/v1_config_map_projection.rb +1 -1
  144. data/lib/kubernetes/models/v1_config_map_volume_source.rb +1 -1
  145. data/lib/kubernetes/models/v1_container.rb +1 -1
  146. data/lib/kubernetes/models/v1_container_extended_resource_request.rb +1 -1
  147. data/lib/kubernetes/models/v1_container_image.rb +1 -1
  148. data/lib/kubernetes/models/v1_container_port.rb +1 -1
  149. data/lib/kubernetes/models/v1_container_resize_policy.rb +1 -1
  150. data/lib/kubernetes/models/v1_container_restart_rule.rb +1 -1
  151. data/lib/kubernetes/models/v1_container_restart_rule_on_exit_codes.rb +1 -1
  152. data/lib/kubernetes/models/v1_container_state.rb +1 -1
  153. data/lib/kubernetes/models/v1_container_state_running.rb +1 -1
  154. data/lib/kubernetes/models/v1_container_state_terminated.rb +1 -1
  155. data/lib/kubernetes/models/v1_container_state_waiting.rb +1 -1
  156. data/lib/kubernetes/models/v1_container_status.rb +1 -1
  157. data/lib/kubernetes/models/v1_container_user.rb +1 -1
  158. data/lib/kubernetes/models/v1_controller_revision.rb +1 -1
  159. data/lib/kubernetes/models/v1_controller_revision_list.rb +1 -1
  160. data/lib/kubernetes/models/v1_counter.rb +1 -1
  161. data/lib/kubernetes/models/v1_counter_set.rb +1 -1
  162. data/lib/kubernetes/models/v1_cron_job.rb +6 -1
  163. data/lib/kubernetes/models/v1_cron_job_list.rb +1 -1
  164. data/lib/kubernetes/models/v1_cron_job_spec.rb +1 -1
  165. data/lib/kubernetes/models/v1_cron_job_status.rb +1 -1
  166. data/lib/kubernetes/models/v1_cross_version_object_reference.rb +1 -1
  167. data/lib/kubernetes/models/v1_csi_driver.rb +1 -1
  168. data/lib/kubernetes/models/v1_csi_driver_list.rb +1 -1
  169. data/lib/kubernetes/models/v1_csi_driver_spec.rb +13 -3
  170. data/lib/kubernetes/models/v1_csi_node.rb +1 -1
  171. data/lib/kubernetes/models/v1_csi_node_driver.rb +1 -1
  172. data/lib/kubernetes/models/v1_csi_node_list.rb +1 -1
  173. data/lib/kubernetes/models/v1_csi_node_spec.rb +1 -1
  174. data/lib/kubernetes/models/v1_csi_persistent_volume_source.rb +1 -1
  175. data/lib/kubernetes/models/v1_csi_storage_capacity.rb +1 -1
  176. data/lib/kubernetes/models/v1_csi_storage_capacity_list.rb +1 -1
  177. data/lib/kubernetes/models/v1_csi_volume_source.rb +1 -1
  178. data/lib/kubernetes/models/v1_custom_resource_column_definition.rb +1 -1
  179. data/lib/kubernetes/models/v1_custom_resource_conversion.rb +1 -1
  180. data/lib/kubernetes/models/v1_custom_resource_definition.rb +1 -1
  181. data/lib/kubernetes/models/v1_custom_resource_definition_condition.rb +1 -1
  182. data/lib/kubernetes/models/v1_custom_resource_definition_list.rb +1 -1
  183. data/lib/kubernetes/models/v1_custom_resource_definition_names.rb +1 -1
  184. data/lib/kubernetes/models/v1_custom_resource_definition_spec.rb +1 -1
  185. data/lib/kubernetes/models/v1_custom_resource_definition_status.rb +1 -1
  186. data/lib/kubernetes/models/v1_custom_resource_definition_version.rb +1 -1
  187. data/lib/kubernetes/models/v1_custom_resource_subresource_scale.rb +1 -1
  188. data/lib/kubernetes/models/v1_custom_resource_subresources.rb +1 -1
  189. data/lib/kubernetes/models/v1_custom_resource_validation.rb +1 -1
  190. data/lib/kubernetes/models/v1_daemon_endpoint.rb +1 -1
  191. data/lib/kubernetes/models/v1_daemon_set.rb +1 -1
  192. data/lib/kubernetes/models/v1_daemon_set_condition.rb +1 -1
  193. data/lib/kubernetes/models/v1_daemon_set_list.rb +1 -1
  194. data/lib/kubernetes/models/v1_daemon_set_spec.rb +1 -1
  195. data/lib/kubernetes/models/v1_daemon_set_status.rb +1 -1
  196. data/lib/kubernetes/models/v1_daemon_set_update_strategy.rb +1 -1
  197. data/lib/kubernetes/models/v1_delete_options.rb +1 -1
  198. data/lib/kubernetes/models/v1_deployment.rb +1 -1
  199. data/lib/kubernetes/models/v1_deployment_condition.rb +1 -1
  200. data/lib/kubernetes/models/v1_deployment_list.rb +1 -1
  201. data/lib/kubernetes/models/v1_deployment_spec.rb +1 -1
  202. data/lib/kubernetes/models/v1_deployment_status.rb +1 -1
  203. data/lib/kubernetes/models/v1_deployment_strategy.rb +1 -1
  204. data/lib/kubernetes/models/v1_device.rb +18 -6
  205. data/lib/kubernetes/models/v1_device_allocation_configuration.rb +1 -1
  206. data/lib/kubernetes/models/v1_device_allocation_result.rb +1 -1
  207. data/lib/kubernetes/models/v1_device_attribute.rb +53 -5
  208. data/lib/kubernetes/models/v1_device_capacity.rb +1 -1
  209. data/lib/kubernetes/models/v1_device_claim.rb +1 -1
  210. data/lib/kubernetes/models/v1_device_claim_configuration.rb +1 -1
  211. data/lib/kubernetes/models/v1_device_class.rb +2 -2
  212. data/lib/kubernetes/models/v1_device_class_configuration.rb +1 -1
  213. data/lib/kubernetes/models/v1_device_class_list.rb +1 -1
  214. data/lib/kubernetes/models/v1_device_class_spec.rb +2 -2
  215. data/lib/kubernetes/models/v1_device_constraint.rb +3 -3
  216. data/lib/kubernetes/models/v1_device_counter_consumption.rb +1 -1
  217. data/lib/kubernetes/models/v1_device_request.rb +1 -1
  218. data/lib/kubernetes/models/v1_device_request_allocation_result.rb +5 -5
  219. data/lib/kubernetes/models/v1_device_selector.rb +1 -1
  220. data/lib/kubernetes/models/v1_device_sub_request.rb +2 -2
  221. data/lib/kubernetes/models/v1_device_taint.rb +2 -2
  222. data/lib/kubernetes/models/v1_device_toleration.rb +1 -1
  223. data/lib/kubernetes/models/v1_downward_api_projection.rb +1 -1
  224. data/lib/kubernetes/models/v1_downward_api_volume_file.rb +1 -1
  225. data/lib/kubernetes/models/v1_downward_api_volume_source.rb +1 -1
  226. data/lib/kubernetes/models/v1_empty_dir_volume_source.rb +1 -1
  227. data/lib/kubernetes/models/v1_endpoint.rb +1 -1
  228. data/lib/kubernetes/models/v1_endpoint_address.rb +1 -1
  229. data/lib/kubernetes/models/v1_endpoint_conditions.rb +1 -1
  230. data/lib/kubernetes/models/v1_endpoint_hints.rb +1 -1
  231. data/lib/kubernetes/models/v1_endpoint_slice.rb +1 -6
  232. data/lib/kubernetes/models/v1_endpoint_slice_list.rb +1 -1
  233. data/lib/kubernetes/models/v1_endpoint_subset.rb +1 -1
  234. data/lib/kubernetes/models/v1_endpoints.rb +1 -1
  235. data/lib/kubernetes/models/v1_endpoints_list.rb +1 -1
  236. data/lib/kubernetes/models/v1_env_from_source.rb +1 -1
  237. data/lib/kubernetes/models/v1_env_var.rb +1 -1
  238. data/lib/kubernetes/models/v1_env_var_source.rb +1 -1
  239. data/lib/kubernetes/models/v1_ephemeral_container.rb +1 -1
  240. data/lib/kubernetes/models/v1_ephemeral_volume_source.rb +1 -1
  241. data/lib/kubernetes/models/v1_event_source.rb +1 -1
  242. data/lib/kubernetes/models/v1_eviction.rb +1 -1
  243. data/lib/kubernetes/models/v1_exact_device_request.rb +3 -3
  244. data/lib/kubernetes/models/v1_exec_action.rb +1 -1
  245. data/lib/kubernetes/models/v1_exempt_priority_level_configuration.rb +1 -1
  246. data/lib/kubernetes/models/v1_expression_warning.rb +3 -3
  247. data/lib/kubernetes/models/v1_external_documentation.rb +1 -1
  248. data/lib/kubernetes/models/v1_fc_volume_source.rb +1 -1
  249. data/lib/kubernetes/models/v1_field_selector_attributes.rb +1 -1
  250. data/lib/kubernetes/models/v1_field_selector_requirement.rb +1 -1
  251. data/lib/kubernetes/models/v1_file_key_selector.rb +1 -1
  252. data/lib/kubernetes/models/v1_flex_persistent_volume_source.rb +1 -1
  253. data/lib/kubernetes/models/v1_flex_volume_source.rb +1 -1
  254. data/lib/kubernetes/models/v1_flocker_volume_source.rb +1 -1
  255. data/lib/kubernetes/models/v1_flow_distinguisher_method.rb +1 -1
  256. data/lib/kubernetes/models/v1_flow_schema.rb +1 -1
  257. data/lib/kubernetes/models/v1_flow_schema_condition.rb +1 -1
  258. data/lib/kubernetes/models/v1_flow_schema_list.rb +1 -1
  259. data/lib/kubernetes/models/v1_flow_schema_spec.rb +1 -1
  260. data/lib/kubernetes/models/v1_flow_schema_status.rb +1 -1
  261. data/lib/kubernetes/models/v1_for_node.rb +1 -1
  262. data/lib/kubernetes/models/v1_for_zone.rb +1 -1
  263. data/lib/kubernetes/models/v1_gce_persistent_disk_volume_source.rb +1 -1
  264. data/lib/kubernetes/models/v1_git_repo_volume_source.rb +1 -1
  265. data/lib/kubernetes/models/v1_glusterfs_persistent_volume_source.rb +1 -1
  266. data/lib/kubernetes/models/v1_glusterfs_volume_source.rb +1 -1
  267. data/lib/kubernetes/models/v1_group_resource.rb +1 -1
  268. data/lib/kubernetes/models/v1_group_subject.rb +1 -1
  269. data/lib/kubernetes/models/v1_group_version_for_discovery.rb +1 -1
  270. data/lib/kubernetes/models/v1_grpc_action.rb +1 -1
  271. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler.rb +6 -1
  272. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_list.rb +1 -1
  273. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_spec.rb +1 -1
  274. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_status.rb +1 -1
  275. data/lib/kubernetes/models/v1_host_alias.rb +1 -1
  276. data/lib/kubernetes/models/v1_host_ip.rb +1 -1
  277. data/lib/kubernetes/models/v1_host_path_volume_source.rb +1 -1
  278. data/lib/kubernetes/models/v1_http_get_action.rb +1 -1
  279. data/lib/kubernetes/models/v1_http_header.rb +1 -1
  280. data/lib/kubernetes/models/v1_http_ingress_path.rb +1 -1
  281. data/lib/kubernetes/models/v1_http_ingress_rule_value.rb +1 -1
  282. data/lib/kubernetes/models/v1_image_volume_source.rb +1 -1
  283. data/lib/kubernetes/models/v1_image_volume_status.rb +225 -0
  284. data/lib/kubernetes/models/v1_ingress.rb +1 -1
  285. data/lib/kubernetes/models/v1_ingress_backend.rb +1 -1
  286. data/lib/kubernetes/models/v1_ingress_class.rb +1 -1
  287. data/lib/kubernetes/models/v1_ingress_class_list.rb +1 -1
  288. data/lib/kubernetes/models/v1_ingress_class_parameters_reference.rb +1 -1
  289. data/lib/kubernetes/models/v1_ingress_class_spec.rb +1 -1
  290. data/lib/kubernetes/models/v1_ingress_list.rb +1 -1
  291. data/lib/kubernetes/models/v1_ingress_load_balancer_ingress.rb +1 -1
  292. data/lib/kubernetes/models/v1_ingress_load_balancer_status.rb +1 -1
  293. data/lib/kubernetes/models/v1_ingress_port_status.rb +1 -1
  294. data/lib/kubernetes/models/v1_ingress_rule.rb +1 -1
  295. data/lib/kubernetes/models/v1_ingress_service_backend.rb +1 -1
  296. data/lib/kubernetes/models/v1_ingress_spec.rb +1 -1
  297. data/lib/kubernetes/models/v1_ingress_status.rb +1 -1
  298. data/lib/kubernetes/models/v1_ingress_tls.rb +1 -1
  299. data/lib/kubernetes/models/v1_ip_address.rb +6 -1
  300. data/lib/kubernetes/models/v1_ip_address_list.rb +1 -1
  301. data/lib/kubernetes/models/v1_ip_address_spec.rb +1 -1
  302. data/lib/kubernetes/models/v1_ip_block.rb +1 -1
  303. data/lib/kubernetes/models/v1_iscsi_persistent_volume_source.rb +1 -1
  304. data/lib/kubernetes/models/v1_iscsi_volume_source.rb +1 -1
  305. data/lib/kubernetes/models/v1_job.rb +1 -1
  306. data/lib/kubernetes/models/v1_job_condition.rb +1 -1
  307. data/lib/kubernetes/models/v1_job_list.rb +1 -1
  308. data/lib/kubernetes/models/v1_job_spec.rb +1 -1
  309. data/lib/kubernetes/models/v1_job_status.rb +1 -1
  310. data/lib/kubernetes/models/v1_job_template_spec.rb +1 -1
  311. data/lib/kubernetes/models/{v2_api_resource_discovery.rb → v1_json_patch.rb} +13 -109
  312. data/lib/kubernetes/models/v1_json_schema_props.rb +1 -1
  313. data/lib/kubernetes/models/v1_key_to_path.rb +1 -1
  314. data/lib/kubernetes/models/v1_label_selector.rb +1 -1
  315. data/lib/kubernetes/models/v1_label_selector_attributes.rb +1 -1
  316. data/lib/kubernetes/models/v1_label_selector_requirement.rb +1 -1
  317. data/lib/kubernetes/models/v1_lease.rb +1 -1
  318. data/lib/kubernetes/models/v1_lease_list.rb +1 -1
  319. data/lib/kubernetes/models/v1_lease_spec.rb +1 -1
  320. data/lib/kubernetes/models/v1_lifecycle.rb +1 -1
  321. data/lib/kubernetes/models/v1_lifecycle_handler.rb +1 -1
  322. data/lib/kubernetes/models/v1_limit_range.rb +1 -1
  323. data/lib/kubernetes/models/v1_limit_range_item.rb +1 -1
  324. data/lib/kubernetes/models/v1_limit_range_list.rb +1 -1
  325. data/lib/kubernetes/models/v1_limit_range_spec.rb +1 -1
  326. data/lib/kubernetes/models/v1_limit_response.rb +1 -1
  327. data/lib/kubernetes/models/v1_limited_priority_level_configuration.rb +1 -1
  328. data/lib/kubernetes/models/v1_linux_container_user.rb +1 -1
  329. data/lib/kubernetes/models/v1_list_meta.rb +14 -5
  330. data/lib/kubernetes/models/v1_load_balancer_ingress.rb +1 -1
  331. data/lib/kubernetes/models/v1_load_balancer_status.rb +1 -1
  332. data/lib/kubernetes/models/v1_local_object_reference.rb +1 -1
  333. data/lib/kubernetes/models/v1_local_subject_access_review.rb +1 -1
  334. data/lib/kubernetes/models/v1_local_volume_source.rb +1 -1
  335. data/lib/kubernetes/models/v1_managed_fields_entry.rb +1 -1
  336. data/lib/kubernetes/models/v1_match_condition.rb +3 -3
  337. data/lib/kubernetes/models/v1_match_resources.rb +3 -3
  338. data/lib/kubernetes/models/v1_modify_volume_status.rb +1 -1
  339. data/lib/kubernetes/models/{v2beta1_api_group_discovery.rb → v1_mutating_admission_policy.rb} +14 -14
  340. data/lib/kubernetes/models/v1_mutating_admission_policy_binding.rb +248 -0
  341. data/lib/kubernetes/models/v1_mutating_admission_policy_binding_list.rb +256 -0
  342. data/lib/kubernetes/models/v1_mutating_admission_policy_binding_spec.rb +238 -0
  343. data/lib/kubernetes/models/v1_mutating_admission_policy_list.rb +256 -0
  344. data/lib/kubernetes/models/v1_mutating_admission_policy_spec.rb +284 -0
  345. data/lib/kubernetes/models/v1_mutating_webhook.rb +8 -8
  346. data/lib/kubernetes/models/v1_mutating_webhook_configuration.rb +2 -2
  347. data/lib/kubernetes/models/v1_mutating_webhook_configuration_list.rb +1 -1
  348. data/lib/kubernetes/models/{v2_api_version_discovery.rb → v1_mutation.rb} +28 -31
  349. data/lib/kubernetes/models/v1_named_rule_with_operations.rb +6 -6
  350. data/lib/kubernetes/models/v1_namespace.rb +1 -1
  351. data/lib/kubernetes/models/v1_namespace_condition.rb +1 -1
  352. data/lib/kubernetes/models/v1_namespace_list.rb +1 -1
  353. data/lib/kubernetes/models/v1_namespace_spec.rb +1 -1
  354. data/lib/kubernetes/models/v1_namespace_status.rb +1 -1
  355. data/lib/kubernetes/models/v1_network_device_data.rb +3 -3
  356. data/lib/kubernetes/models/v1_network_policy.rb +1 -1
  357. data/lib/kubernetes/models/v1_network_policy_egress_rule.rb +1 -1
  358. data/lib/kubernetes/models/v1_network_policy_ingress_rule.rb +1 -1
  359. data/lib/kubernetes/models/v1_network_policy_list.rb +1 -1
  360. data/lib/kubernetes/models/v1_network_policy_peer.rb +1 -1
  361. data/lib/kubernetes/models/v1_network_policy_port.rb +1 -1
  362. data/lib/kubernetes/models/v1_network_policy_spec.rb +1 -1
  363. data/lib/kubernetes/models/v1_nfs_volume_source.rb +1 -1
  364. data/lib/kubernetes/models/v1_node.rb +1 -1
  365. data/lib/kubernetes/models/v1_node_address.rb +1 -1
  366. data/lib/kubernetes/models/v1_node_affinity.rb +1 -1
  367. data/lib/kubernetes/models/{v2beta1_api_subresource_discovery.rb → v1_node_allocatable_resource_claim_status.rb} +36 -44
  368. data/lib/kubernetes/models/v1_node_allocatable_resource_mapping.rb +230 -0
  369. data/lib/kubernetes/models/v1_node_condition.rb +1 -1
  370. data/lib/kubernetes/models/v1_node_config_source.rb +1 -1
  371. data/lib/kubernetes/models/v1_node_config_status.rb +1 -1
  372. data/lib/kubernetes/models/v1_node_daemon_endpoints.rb +1 -1
  373. data/lib/kubernetes/models/v1_node_features.rb +1 -1
  374. data/lib/kubernetes/models/v1_node_list.rb +1 -1
  375. data/lib/kubernetes/models/v1_node_runtime_handler.rb +1 -1
  376. data/lib/kubernetes/models/v1_node_runtime_handler_features.rb +1 -1
  377. data/lib/kubernetes/models/v1_node_selector.rb +1 -1
  378. data/lib/kubernetes/models/v1_node_selector_requirement.rb +1 -1
  379. data/lib/kubernetes/models/v1_node_selector_term.rb +1 -1
  380. data/lib/kubernetes/models/v1_node_spec.rb +1 -1
  381. data/lib/kubernetes/models/v1_node_status.rb +1 -1
  382. data/lib/kubernetes/models/v1_node_swap_status.rb +1 -1
  383. data/lib/kubernetes/models/v1_node_system_info.rb +1 -1
  384. data/lib/kubernetes/models/v1_non_resource_attributes.rb +3 -3
  385. data/lib/kubernetes/models/v1_non_resource_policy_rule.rb +1 -1
  386. data/lib/kubernetes/models/v1_non_resource_rule.rb +3 -3
  387. data/lib/kubernetes/models/v1_object_field_selector.rb +1 -1
  388. data/lib/kubernetes/models/v1_object_meta.rb +1 -1
  389. data/lib/kubernetes/models/v1_object_reference.rb +1 -1
  390. data/lib/kubernetes/models/v1_opaque_device_configuration.rb +1 -1
  391. data/lib/kubernetes/models/v1_overhead.rb +1 -1
  392. data/lib/kubernetes/models/v1_owner_reference.rb +1 -1
  393. data/lib/kubernetes/models/v1_param_kind.rb +3 -3
  394. data/lib/kubernetes/models/v1_param_ref.rb +2 -2
  395. data/lib/kubernetes/models/v1_parent_reference.rb +1 -1
  396. data/lib/kubernetes/models/v1_persistent_volume.rb +1 -1
  397. data/lib/kubernetes/models/v1_persistent_volume_claim.rb +1 -1
  398. data/lib/kubernetes/models/v1_persistent_volume_claim_condition.rb +1 -1
  399. data/lib/kubernetes/models/v1_persistent_volume_claim_list.rb +1 -1
  400. data/lib/kubernetes/models/v1_persistent_volume_claim_spec.rb +1 -1
  401. data/lib/kubernetes/models/v1_persistent_volume_claim_status.rb +1 -1
  402. data/lib/kubernetes/models/v1_persistent_volume_claim_template.rb +1 -1
  403. data/lib/kubernetes/models/v1_persistent_volume_claim_volume_source.rb +1 -1
  404. data/lib/kubernetes/models/v1_persistent_volume_list.rb +1 -1
  405. data/lib/kubernetes/models/v1_persistent_volume_spec.rb +1 -1
  406. data/lib/kubernetes/models/v1_persistent_volume_status.rb +1 -1
  407. data/lib/kubernetes/models/v1_photon_persistent_disk_volume_source.rb +1 -1
  408. data/lib/kubernetes/models/v1_pod.rb +1 -1
  409. data/lib/kubernetes/models/v1_pod_affinity.rb +1 -1
  410. data/lib/kubernetes/models/v1_pod_affinity_term.rb +1 -1
  411. data/lib/kubernetes/models/v1_pod_anti_affinity.rb +1 -1
  412. data/lib/kubernetes/models/v1_pod_certificate_projection.rb +1 -1
  413. data/lib/kubernetes/models/v1_pod_condition.rb +2 -2
  414. data/lib/kubernetes/models/v1_pod_disruption_budget.rb +1 -1
  415. data/lib/kubernetes/models/v1_pod_disruption_budget_list.rb +1 -1
  416. data/lib/kubernetes/models/v1_pod_disruption_budget_spec.rb +1 -1
  417. data/lib/kubernetes/models/v1_pod_disruption_budget_status.rb +1 -21
  418. data/lib/kubernetes/models/v1_pod_dns_config.rb +1 -1
  419. data/lib/kubernetes/models/v1_pod_dns_config_option.rb +1 -1
  420. data/lib/kubernetes/models/v1_pod_extended_resource_claim_status.rb +1 -1
  421. data/lib/kubernetes/models/v1_pod_failure_policy.rb +1 -1
  422. data/lib/kubernetes/models/v1_pod_failure_policy_on_exit_codes_requirement.rb +1 -1
  423. data/lib/kubernetes/models/v1_pod_failure_policy_on_pod_conditions_pattern.rb +1 -1
  424. data/lib/kubernetes/models/v1_pod_failure_policy_rule.rb +1 -1
  425. data/lib/kubernetes/models/v1_pod_ip.rb +1 -1
  426. data/lib/kubernetes/models/v1_pod_list.rb +1 -1
  427. data/lib/kubernetes/models/v1_pod_os.rb +1 -1
  428. data/lib/kubernetes/models/v1_pod_readiness_gate.rb +1 -1
  429. data/lib/kubernetes/models/v1_pod_resource_claim.rb +3 -3
  430. data/lib/kubernetes/models/v1_pod_resource_claim_status.rb +2 -2
  431. data/lib/kubernetes/models/v1_pod_scheduling_gate.rb +1 -1
  432. data/lib/kubernetes/models/v1_pod_scheduling_group.rb +220 -0
  433. data/lib/kubernetes/models/v1_pod_security_context.rb +1 -1
  434. data/lib/kubernetes/models/v1_pod_spec.rb +15 -15
  435. data/lib/kubernetes/models/v1_pod_status.rb +14 -2
  436. data/lib/kubernetes/models/v1_pod_template.rb +1 -1
  437. data/lib/kubernetes/models/v1_pod_template_list.rb +1 -1
  438. data/lib/kubernetes/models/v1_pod_template_spec.rb +1 -1
  439. data/lib/kubernetes/models/v1_policy_rule.rb +1 -1
  440. data/lib/kubernetes/models/v1_policy_rules_with_subjects.rb +1 -1
  441. data/lib/kubernetes/models/v1_port_status.rb +1 -1
  442. data/lib/kubernetes/models/v1_portworx_volume_source.rb +1 -1
  443. data/lib/kubernetes/models/v1_preconditions.rb +1 -1
  444. data/lib/kubernetes/models/v1_preferred_scheduling_term.rb +1 -1
  445. data/lib/kubernetes/models/v1_priority_class.rb +1 -6
  446. data/lib/kubernetes/models/v1_priority_class_list.rb +1 -1
  447. data/lib/kubernetes/models/v1_priority_level_configuration.rb +1 -1
  448. data/lib/kubernetes/models/v1_priority_level_configuration_condition.rb +1 -1
  449. data/lib/kubernetes/models/v1_priority_level_configuration_list.rb +1 -1
  450. data/lib/kubernetes/models/v1_priority_level_configuration_reference.rb +1 -1
  451. data/lib/kubernetes/models/v1_priority_level_configuration_spec.rb +1 -1
  452. data/lib/kubernetes/models/v1_priority_level_configuration_status.rb +1 -1
  453. data/lib/kubernetes/models/v1_probe.rb +1 -1
  454. data/lib/kubernetes/models/v1_projected_volume_source.rb +1 -1
  455. data/lib/kubernetes/models/v1_queuing_configuration.rb +1 -1
  456. data/lib/kubernetes/models/v1_quobyte_volume_source.rb +1 -1
  457. data/lib/kubernetes/models/v1_rbd_persistent_volume_source.rb +1 -1
  458. data/lib/kubernetes/models/v1_rbd_volume_source.rb +1 -1
  459. data/lib/kubernetes/models/v1_replica_set.rb +1 -1
  460. data/lib/kubernetes/models/v1_replica_set_condition.rb +1 -1
  461. data/lib/kubernetes/models/v1_replica_set_list.rb +1 -1
  462. data/lib/kubernetes/models/v1_replica_set_spec.rb +1 -1
  463. data/lib/kubernetes/models/v1_replica_set_status.rb +1 -1
  464. data/lib/kubernetes/models/v1_replication_controller.rb +1 -1
  465. data/lib/kubernetes/models/v1_replication_controller_condition.rb +1 -1
  466. data/lib/kubernetes/models/v1_replication_controller_list.rb +1 -1
  467. data/lib/kubernetes/models/v1_replication_controller_spec.rb +1 -1
  468. data/lib/kubernetes/models/v1_replication_controller_status.rb +1 -1
  469. data/lib/kubernetes/models/v1_resource_attributes.rb +8 -8
  470. data/lib/kubernetes/models/v1_resource_claim_consumer_reference.rb +1 -1
  471. data/lib/kubernetes/models/v1_resource_claim_list.rb +1 -1
  472. data/lib/kubernetes/models/v1_resource_claim_spec.rb +1 -1
  473. data/lib/kubernetes/models/v1_resource_claim_status.rb +1 -1
  474. data/lib/kubernetes/models/v1_resource_claim_template.rb +2 -2
  475. data/lib/kubernetes/models/v1_resource_claim_template_list.rb +1 -1
  476. data/lib/kubernetes/models/v1_resource_claim_template_spec.rb +1 -1
  477. data/lib/kubernetes/models/v1_resource_field_selector.rb +1 -1
  478. data/lib/kubernetes/models/v1_resource_health.rb +12 -2
  479. data/lib/kubernetes/models/v1_resource_policy_rule.rb +1 -1
  480. data/lib/kubernetes/models/v1_resource_pool.rb +1 -1
  481. data/lib/kubernetes/models/v1_resource_quota.rb +1 -1
  482. data/lib/kubernetes/models/v1_resource_quota_list.rb +1 -1
  483. data/lib/kubernetes/models/v1_resource_quota_spec.rb +1 -1
  484. data/lib/kubernetes/models/v1_resource_quota_status.rb +1 -1
  485. data/lib/kubernetes/models/v1_resource_requirements.rb +1 -1
  486. data/lib/kubernetes/models/v1_resource_rule.rb +5 -5
  487. data/lib/kubernetes/models/v1_resource_slice.rb +2 -2
  488. data/lib/kubernetes/models/v1_resource_slice_list.rb +1 -1
  489. data/lib/kubernetes/models/v1_resource_slice_spec.rb +1 -1
  490. data/lib/kubernetes/models/v1_resource_status.rb +1 -1
  491. data/lib/kubernetes/models/v1_role.rb +1 -1
  492. data/lib/kubernetes/models/v1_role_binding.rb +1 -1
  493. data/lib/kubernetes/models/v1_role_binding_list.rb +1 -1
  494. data/lib/kubernetes/models/v1_role_list.rb +1 -1
  495. data/lib/kubernetes/models/v1_role_ref.rb +1 -6
  496. data/lib/kubernetes/models/v1_rolling_update_daemon_set.rb +1 -1
  497. data/lib/kubernetes/models/v1_rolling_update_deployment.rb +1 -1
  498. data/lib/kubernetes/models/v1_rolling_update_stateful_set_strategy.rb +1 -1
  499. data/lib/kubernetes/models/v1_rule_with_operations.rb +5 -5
  500. data/lib/kubernetes/models/v1_runtime_class.rb +1 -1
  501. data/lib/kubernetes/models/v1_runtime_class_list.rb +1 -1
  502. data/lib/kubernetes/models/v1_scale.rb +1 -1
  503. data/lib/kubernetes/models/v1_scale_io_persistent_volume_source.rb +1 -1
  504. data/lib/kubernetes/models/v1_scale_io_volume_source.rb +1 -1
  505. data/lib/kubernetes/models/v1_scale_spec.rb +1 -1
  506. data/lib/kubernetes/models/v1_scale_status.rb +1 -1
  507. data/lib/kubernetes/models/v1_scheduling.rb +1 -1
  508. data/lib/kubernetes/models/v1_scope_selector.rb +1 -1
  509. data/lib/kubernetes/models/v1_scoped_resource_selector_requirement.rb +1 -1
  510. data/lib/kubernetes/models/v1_se_linux_options.rb +1 -1
  511. data/lib/kubernetes/models/v1_seccomp_profile.rb +1 -1
  512. data/lib/kubernetes/models/v1_secret.rb +1 -1
  513. data/lib/kubernetes/models/v1_secret_env_source.rb +1 -1
  514. data/lib/kubernetes/models/v1_secret_key_selector.rb +1 -1
  515. data/lib/kubernetes/models/v1_secret_list.rb +1 -1
  516. data/lib/kubernetes/models/v1_secret_projection.rb +1 -1
  517. data/lib/kubernetes/models/v1_secret_reference.rb +1 -1
  518. data/lib/kubernetes/models/v1_secret_volume_source.rb +1 -1
  519. data/lib/kubernetes/models/v1_security_context.rb +2 -2
  520. data/lib/kubernetes/models/v1_selectable_field.rb +1 -1
  521. data/lib/kubernetes/models/v1_self_subject_access_review.rb +1 -1
  522. data/lib/kubernetes/models/v1_self_subject_access_review_spec.rb +2 -2
  523. data/lib/kubernetes/models/v1_self_subject_review.rb +1 -1
  524. data/lib/kubernetes/models/v1_self_subject_review_status.rb +1 -1
  525. data/lib/kubernetes/models/v1_self_subject_rules_review.rb +1 -1
  526. data/lib/kubernetes/models/v1_self_subject_rules_review_spec.rb +2 -2
  527. data/lib/kubernetes/models/v1_server_address_by_client_cidr.rb +1 -1
  528. data/lib/kubernetes/models/v1_service.rb +1 -1
  529. data/lib/kubernetes/models/v1_service_account.rb +1 -1
  530. data/lib/kubernetes/models/v1_service_account_list.rb +1 -1
  531. data/lib/kubernetes/models/v1_service_account_subject.rb +1 -1
  532. data/lib/kubernetes/models/v1_service_account_token_projection.rb +1 -1
  533. data/lib/kubernetes/models/v1_service_backend_port.rb +1 -1
  534. data/lib/kubernetes/models/v1_service_cidr.rb +1 -1
  535. data/lib/kubernetes/models/v1_service_cidr_list.rb +1 -1
  536. data/lib/kubernetes/models/v1_service_cidr_spec.rb +1 -1
  537. data/lib/kubernetes/models/v1_service_cidr_status.rb +1 -1
  538. data/lib/kubernetes/models/v1_service_list.rb +1 -1
  539. data/lib/kubernetes/models/v1_service_port.rb +1 -1
  540. data/lib/kubernetes/models/v1_service_spec.rb +1 -1
  541. data/lib/kubernetes/models/v1_service_status.rb +1 -1
  542. data/lib/kubernetes/models/v1_session_affinity_config.rb +1 -1
  543. data/lib/kubernetes/models/v1_shard_info.rb +225 -0
  544. data/lib/kubernetes/models/v1_sleep_action.rb +1 -1
  545. data/lib/kubernetes/models/v1_stateful_set.rb +1 -1
  546. data/lib/kubernetes/models/v1_stateful_set_condition.rb +1 -1
  547. data/lib/kubernetes/models/v1_stateful_set_list.rb +1 -1
  548. data/lib/kubernetes/models/v1_stateful_set_ordinals.rb +1 -1
  549. data/lib/kubernetes/models/v1_stateful_set_persistent_volume_claim_retention_policy.rb +1 -1
  550. data/lib/kubernetes/models/v1_stateful_set_spec.rb +1 -1
  551. data/lib/kubernetes/models/v1_stateful_set_status.rb +1 -1
  552. data/lib/kubernetes/models/v1_stateful_set_update_strategy.rb +1 -1
  553. data/lib/kubernetes/models/v1_status.rb +1 -1
  554. data/lib/kubernetes/models/v1_status_cause.rb +1 -1
  555. data/lib/kubernetes/models/v1_status_details.rb +1 -1
  556. data/lib/kubernetes/models/v1_storage_class.rb +1 -1
  557. data/lib/kubernetes/models/v1_storage_class_list.rb +1 -1
  558. data/lib/kubernetes/models/v1_storage_os_persistent_volume_source.rb +1 -1
  559. data/lib/kubernetes/models/v1_storage_os_volume_source.rb +1 -1
  560. data/lib/kubernetes/models/v1_subject_access_review.rb +1 -1
  561. data/lib/kubernetes/models/v1_subject_access_review_spec.rb +6 -6
  562. data/lib/kubernetes/models/v1_subject_access_review_status.rb +5 -5
  563. data/lib/kubernetes/models/v1_subject_rules_review_status.rb +5 -5
  564. data/lib/kubernetes/models/v1_success_policy.rb +1 -1
  565. data/lib/kubernetes/models/v1_success_policy_rule.rb +1 -1
  566. data/lib/kubernetes/models/v1_sysctl.rb +1 -1
  567. data/lib/kubernetes/models/v1_taint.rb +1 -1
  568. data/lib/kubernetes/models/v1_tcp_socket_action.rb +1 -1
  569. data/lib/kubernetes/models/v1_token_request_spec.rb +3 -8
  570. data/lib/kubernetes/models/v1_token_request_status.rb +3 -13
  571. data/lib/kubernetes/models/v1_token_review.rb +1 -1
  572. data/lib/kubernetes/models/v1_token_review_spec.rb +8 -3
  573. data/lib/kubernetes/models/v1_token_review_status.rb +4 -4
  574. data/lib/kubernetes/models/v1_toleration.rb +1 -1
  575. data/lib/kubernetes/models/v1_topology_selector_label_requirement.rb +1 -1
  576. data/lib/kubernetes/models/v1_topology_selector_term.rb +1 -1
  577. data/lib/kubernetes/models/v1_topology_spread_constraint.rb +1 -1
  578. data/lib/kubernetes/models/v1_type_checking.rb +2 -2
  579. data/lib/kubernetes/models/v1_typed_local_object_reference.rb +1 -1
  580. data/lib/kubernetes/models/v1_typed_object_reference.rb +1 -1
  581. data/lib/kubernetes/models/v1_uncounted_terminated_pods.rb +1 -1
  582. data/lib/kubernetes/models/v1_user_info.rb +5 -5
  583. data/lib/kubernetes/models/v1_user_subject.rb +1 -1
  584. data/lib/kubernetes/models/v1_validating_admission_policy.rb +1 -1
  585. data/lib/kubernetes/models/v1_validating_admission_policy_binding.rb +6 -1
  586. data/lib/kubernetes/models/v1_validating_admission_policy_binding_list.rb +1 -1
  587. data/lib/kubernetes/models/v1_validating_admission_policy_binding_spec.rb +12 -2
  588. data/lib/kubernetes/models/v1_validating_admission_policy_list.rb +1 -1
  589. data/lib/kubernetes/models/v1_validating_admission_policy_spec.rb +4 -4
  590. data/lib/kubernetes/models/v1_validating_admission_policy_status.rb +3 -3
  591. data/lib/kubernetes/models/v1_validating_webhook.rb +8 -8
  592. data/lib/kubernetes/models/v1_validating_webhook_configuration.rb +2 -2
  593. data/lib/kubernetes/models/v1_validating_webhook_configuration_list.rb +1 -1
  594. data/lib/kubernetes/models/v1_validation.rb +4 -4
  595. data/lib/kubernetes/models/v1_validation_rule.rb +1 -1
  596. data/lib/kubernetes/models/v1_variable.rb +3 -3
  597. data/lib/kubernetes/models/v1_volume.rb +1 -1
  598. data/lib/kubernetes/models/v1_volume_attachment.rb +1 -1
  599. data/lib/kubernetes/models/v1_volume_attachment_list.rb +1 -1
  600. data/lib/kubernetes/models/v1_volume_attachment_source.rb +1 -1
  601. data/lib/kubernetes/models/v1_volume_attachment_spec.rb +1 -1
  602. data/lib/kubernetes/models/v1_volume_attachment_status.rb +1 -1
  603. data/lib/kubernetes/models/v1_volume_attributes_class.rb +1 -1
  604. data/lib/kubernetes/models/v1_volume_attributes_class_list.rb +1 -1
  605. data/lib/kubernetes/models/v1_volume_device.rb +1 -1
  606. data/lib/kubernetes/models/v1_volume_error.rb +2 -2
  607. data/lib/kubernetes/models/v1_volume_mount.rb +1 -1
  608. data/lib/kubernetes/models/v1_volume_mount_status.rb +14 -5
  609. data/lib/kubernetes/models/v1_volume_node_affinity.rb +1 -1
  610. data/lib/kubernetes/models/v1_volume_node_resources.rb +1 -1
  611. data/lib/kubernetes/models/v1_volume_projection.rb +1 -1
  612. data/lib/kubernetes/models/v1_volume_resource_requirements.rb +1 -1
  613. data/lib/kubernetes/models/v1_volume_status.rb +219 -0
  614. data/lib/kubernetes/models/v1_vsphere_virtual_disk_volume_source.rb +1 -1
  615. data/lib/kubernetes/models/v1_watch_event.rb +1 -1
  616. data/lib/kubernetes/models/v1_webhook_conversion.rb +1 -1
  617. data/lib/kubernetes/models/v1_weighted_pod_affinity_term.rb +1 -1
  618. data/lib/kubernetes/models/v1_windows_security_context_options.rb +1 -1
  619. data/lib/kubernetes/models/v1alpha1_apply_configuration.rb +1 -1
  620. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle.rb +1 -1
  621. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_list.rb +1 -1
  622. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_spec.rb +1 -1
  623. data/lib/kubernetes/models/v1alpha1_json_patch.rb +1 -1
  624. data/lib/kubernetes/models/v1alpha1_match_condition.rb +3 -3
  625. data/lib/kubernetes/models/v1alpha1_match_resources.rb +3 -3
  626. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy.rb +1 -1
  627. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding.rb +1 -1
  628. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_list.rb +1 -1
  629. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_spec.rb +1 -1
  630. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_list.rb +1 -1
  631. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_spec.rb +1 -1
  632. data/lib/kubernetes/models/v1alpha1_mutation.rb +1 -1
  633. data/lib/kubernetes/models/v1alpha1_named_rule_with_operations.rb +6 -6
  634. data/lib/kubernetes/models/v1alpha1_param_kind.rb +3 -3
  635. data/lib/kubernetes/models/v1alpha1_param_ref.rb +3 -3
  636. data/lib/kubernetes/models/v1alpha1_server_storage_version.rb +20 -5
  637. data/lib/kubernetes/models/v1alpha1_storage_version.rb +5 -10
  638. data/lib/kubernetes/models/v1alpha1_storage_version_condition.rb +7 -7
  639. data/lib/kubernetes/models/v1alpha1_storage_version_list.rb +1 -1
  640. data/lib/kubernetes/models/v1alpha1_storage_version_status.rb +4 -4
  641. data/lib/kubernetes/models/v1alpha1_variable.rb +3 -3
  642. data/lib/kubernetes/models/{v1alpha1_gang_scheduling_policy.rb → v1alpha2_gang_scheduling_policy.rb} +4 -4
  643. data/lib/kubernetes/models/v1alpha2_lease_candidate.rb +6 -1
  644. data/lib/kubernetes/models/v1alpha2_lease_candidate_list.rb +1 -1
  645. data/lib/kubernetes/models/v1alpha2_lease_candidate_spec.rb +1 -1
  646. data/lib/kubernetes/models/v1alpha2_pod_group.rb +262 -0
  647. data/lib/kubernetes/models/{v2_api_group_discovery_list.rb → v1alpha2_pod_group_list.rb} +23 -20
  648. data/lib/kubernetes/models/{v1_workload_reference.rb → v1alpha2_pod_group_resource_claim.rb} +21 -26
  649. data/lib/kubernetes/models/v1alpha2_pod_group_resource_claim_status.rb +235 -0
  650. data/lib/kubernetes/models/v1alpha2_pod_group_scheduling_constraints.rb +222 -0
  651. data/lib/kubernetes/models/{v1alpha1_pod_group_policy.rb → v1alpha2_pod_group_scheduling_policy.rb} +6 -6
  652. data/lib/kubernetes/models/{v2beta1_api_resource_discovery.rb → v1alpha2_pod_group_spec.rb} +56 -88
  653. data/lib/kubernetes/models/v1alpha2_pod_group_status.rb +234 -0
  654. data/lib/kubernetes/models/v1alpha2_pod_group_template.rb +290 -0
  655. data/lib/kubernetes/models/v1alpha2_pod_group_template_reference.rb +219 -0
  656. data/lib/kubernetes/models/v1alpha2_topology_constraint.rb +225 -0
  657. data/lib/kubernetes/models/{v1alpha1_typed_local_object_reference.rb → v1alpha2_typed_local_object_reference.rb} +4 -4
  658. data/lib/kubernetes/models/{v1alpha1_workload.rb → v1alpha2_workload.rb} +6 -6
  659. data/lib/kubernetes/models/{v1alpha1_workload_list.rb → v1alpha2_workload_list.rb} +5 -5
  660. data/lib/kubernetes/models/v1alpha2_workload_pod_group_template_reference.rb +240 -0
  661. data/lib/kubernetes/models/{v1alpha1_workload_spec.rb → v1alpha2_workload_spec.rb} +17 -17
  662. data/lib/kubernetes/models/v1alpha3_device_taint.rb +2 -2
  663. data/lib/kubernetes/models/v1alpha3_device_taint_rule.rb +1 -1
  664. data/lib/kubernetes/models/v1alpha3_device_taint_rule_list.rb +1 -1
  665. data/lib/kubernetes/models/v1alpha3_device_taint_rule_spec.rb +1 -1
  666. data/lib/kubernetes/models/v1alpha3_device_taint_rule_status.rb +1 -1
  667. data/lib/kubernetes/models/v1alpha3_device_taint_selector.rb +1 -1
  668. data/lib/kubernetes/models/v1alpha3_pool_status.rb +325 -0
  669. data/lib/kubernetes/models/v1alpha3_resource_pool_status_request.rb +267 -0
  670. data/lib/kubernetes/models/v1alpha3_resource_pool_status_request_list.rb +256 -0
  671. data/lib/kubernetes/models/v1alpha3_resource_pool_status_request_spec.rb +245 -0
  672. data/lib/kubernetes/models/{v2_api_subresource_discovery.rb → v1alpha3_resource_pool_status_request_status.rb} +33 -46
  673. data/lib/kubernetes/models/v1beta1_allocated_device_status.rb +1 -1
  674. data/lib/kubernetes/models/v1beta1_allocation_result.rb +2 -2
  675. data/lib/kubernetes/models/v1beta1_apply_configuration.rb +1 -1
  676. data/lib/kubernetes/models/v1beta1_basic_device.rb +18 -6
  677. data/lib/kubernetes/models/v1beta1_capacity_request_policy.rb +1 -1
  678. data/lib/kubernetes/models/v1beta1_capacity_request_policy_range.rb +1 -1
  679. data/lib/kubernetes/models/v1beta1_capacity_requirements.rb +1 -1
  680. data/lib/kubernetes/models/v1beta1_cel_device_selector.rb +2 -2
  681. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle.rb +1 -1
  682. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_list.rb +1 -1
  683. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_spec.rb +1 -1
  684. data/lib/kubernetes/models/v1beta1_counter.rb +1 -1
  685. data/lib/kubernetes/models/v1beta1_counter_set.rb +1 -1
  686. data/lib/kubernetes/models/v1beta1_device.rb +1 -1
  687. data/lib/kubernetes/models/v1beta1_device_allocation_configuration.rb +1 -1
  688. data/lib/kubernetes/models/v1beta1_device_allocation_result.rb +1 -1
  689. data/lib/kubernetes/models/v1beta1_device_attribute.rb +53 -5
  690. data/lib/kubernetes/models/v1beta1_device_capacity.rb +1 -1
  691. data/lib/kubernetes/models/v1beta1_device_claim.rb +1 -1
  692. data/lib/kubernetes/models/v1beta1_device_claim_configuration.rb +1 -1
  693. data/lib/kubernetes/models/v1beta1_device_class.rb +1 -1
  694. data/lib/kubernetes/models/v1beta1_device_class_configuration.rb +1 -1
  695. data/lib/kubernetes/models/v1beta1_device_class_list.rb +1 -1
  696. data/lib/kubernetes/models/v1beta1_device_class_spec.rb +2 -2
  697. data/lib/kubernetes/models/v1beta1_device_constraint.rb +3 -3
  698. data/lib/kubernetes/models/v1beta1_device_counter_consumption.rb +1 -1
  699. data/lib/kubernetes/models/v1beta1_device_request.rb +2 -2
  700. data/lib/kubernetes/models/v1beta1_device_request_allocation_result.rb +4 -4
  701. data/lib/kubernetes/models/v1beta1_device_selector.rb +1 -1
  702. data/lib/kubernetes/models/v1beta1_device_sub_request.rb +2 -2
  703. data/lib/kubernetes/models/v1beta1_device_taint.rb +2 -2
  704. data/lib/kubernetes/models/v1beta1_device_toleration.rb +1 -1
  705. data/lib/kubernetes/models/v1beta1_ip_address.rb +6 -1
  706. data/lib/kubernetes/models/v1beta1_ip_address_list.rb +1 -1
  707. data/lib/kubernetes/models/v1beta1_ip_address_spec.rb +1 -1
  708. data/lib/kubernetes/models/v1beta1_json_patch.rb +1 -1
  709. data/lib/kubernetes/models/v1beta1_lease_candidate.rb +6 -1
  710. data/lib/kubernetes/models/v1beta1_lease_candidate_list.rb +1 -1
  711. data/lib/kubernetes/models/v1beta1_lease_candidate_spec.rb +1 -1
  712. data/lib/kubernetes/models/v1beta1_match_condition.rb +3 -3
  713. data/lib/kubernetes/models/v1beta1_match_resources.rb +3 -3
  714. data/lib/kubernetes/models/v1beta1_mutating_admission_policy.rb +1 -1
  715. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding.rb +1 -1
  716. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_list.rb +1 -1
  717. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_spec.rb +1 -1
  718. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_list.rb +1 -1
  719. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_spec.rb +1 -1
  720. data/lib/kubernetes/models/v1beta1_mutation.rb +1 -1
  721. data/lib/kubernetes/models/v1beta1_named_rule_with_operations.rb +6 -6
  722. data/lib/kubernetes/models/v1beta1_network_device_data.rb +3 -3
  723. data/lib/kubernetes/models/v1beta1_node_allocatable_resource_mapping.rb +230 -0
  724. data/lib/kubernetes/models/v1beta1_opaque_device_configuration.rb +1 -1
  725. data/lib/kubernetes/models/v1beta1_param_kind.rb +3 -3
  726. data/lib/kubernetes/models/v1beta1_param_ref.rb +2 -2
  727. data/lib/kubernetes/models/v1beta1_parent_reference.rb +1 -1
  728. data/lib/kubernetes/models/v1beta1_pod_certificate_request.rb +1 -1
  729. data/lib/kubernetes/models/v1beta1_pod_certificate_request_list.rb +1 -1
  730. data/lib/kubernetes/models/v1beta1_pod_certificate_request_spec.rb +46 -28
  731. data/lib/kubernetes/models/v1beta1_pod_certificate_request_status.rb +1 -1
  732. data/lib/kubernetes/models/v1beta1_resource_claim.rb +1 -1
  733. data/lib/kubernetes/models/v1beta1_resource_claim_consumer_reference.rb +1 -1
  734. data/lib/kubernetes/models/v1beta1_resource_claim_list.rb +1 -1
  735. data/lib/kubernetes/models/v1beta1_resource_claim_spec.rb +1 -1
  736. data/lib/kubernetes/models/v1beta1_resource_claim_status.rb +1 -1
  737. data/lib/kubernetes/models/v1beta1_resource_claim_template.rb +1 -1
  738. data/lib/kubernetes/models/v1beta1_resource_claim_template_list.rb +1 -1
  739. data/lib/kubernetes/models/v1beta1_resource_claim_template_spec.rb +1 -1
  740. data/lib/kubernetes/models/v1beta1_resource_pool.rb +1 -1
  741. data/lib/kubernetes/models/v1beta1_resource_slice.rb +1 -1
  742. data/lib/kubernetes/models/v1beta1_resource_slice_list.rb +1 -1
  743. data/lib/kubernetes/models/v1beta1_resource_slice_spec.rb +1 -1
  744. data/lib/kubernetes/models/v1beta1_service_cidr.rb +1 -1
  745. data/lib/kubernetes/models/v1beta1_service_cidr_list.rb +1 -1
  746. data/lib/kubernetes/models/v1beta1_service_cidr_spec.rb +1 -1
  747. data/lib/kubernetes/models/v1beta1_service_cidr_status.rb +1 -1
  748. data/lib/kubernetes/models/v1beta1_storage_version_migration.rb +1 -1
  749. data/lib/kubernetes/models/v1beta1_storage_version_migration_list.rb +1 -1
  750. data/lib/kubernetes/models/v1beta1_storage_version_migration_spec.rb +1 -1
  751. data/lib/kubernetes/models/v1beta1_storage_version_migration_status.rb +1 -1
  752. data/lib/kubernetes/models/v1beta1_variable.rb +3 -3
  753. data/lib/kubernetes/models/v1beta1_volume_attributes_class.rb +1 -1
  754. data/lib/kubernetes/models/v1beta1_volume_attributes_class_list.rb +1 -1
  755. data/lib/kubernetes/models/v1beta2_allocated_device_status.rb +1 -1
  756. data/lib/kubernetes/models/v1beta2_allocation_result.rb +2 -2
  757. data/lib/kubernetes/models/v1beta2_capacity_request_policy.rb +1 -1
  758. data/lib/kubernetes/models/v1beta2_capacity_request_policy_range.rb +1 -1
  759. data/lib/kubernetes/models/v1beta2_capacity_requirements.rb +1 -1
  760. data/lib/kubernetes/models/v1beta2_cel_device_selector.rb +2 -2
  761. data/lib/kubernetes/models/v1beta2_counter.rb +1 -1
  762. data/lib/kubernetes/models/v1beta2_counter_set.rb +1 -1
  763. data/lib/kubernetes/models/v1beta2_device.rb +18 -6
  764. data/lib/kubernetes/models/v1beta2_device_allocation_configuration.rb +1 -1
  765. data/lib/kubernetes/models/v1beta2_device_allocation_result.rb +1 -1
  766. data/lib/kubernetes/models/v1beta2_device_attribute.rb +53 -5
  767. data/lib/kubernetes/models/v1beta2_device_capacity.rb +1 -1
  768. data/lib/kubernetes/models/v1beta2_device_claim.rb +1 -1
  769. data/lib/kubernetes/models/v1beta2_device_claim_configuration.rb +1 -1
  770. data/lib/kubernetes/models/v1beta2_device_class.rb +1 -1
  771. data/lib/kubernetes/models/v1beta2_device_class_configuration.rb +1 -1
  772. data/lib/kubernetes/models/v1beta2_device_class_list.rb +1 -1
  773. data/lib/kubernetes/models/v1beta2_device_class_spec.rb +2 -2
  774. data/lib/kubernetes/models/v1beta2_device_constraint.rb +3 -3
  775. data/lib/kubernetes/models/v1beta2_device_counter_consumption.rb +1 -1
  776. data/lib/kubernetes/models/v1beta2_device_request.rb +1 -1
  777. data/lib/kubernetes/models/v1beta2_device_request_allocation_result.rb +4 -4
  778. data/lib/kubernetes/models/v1beta2_device_selector.rb +1 -1
  779. data/lib/kubernetes/models/v1beta2_device_sub_request.rb +2 -2
  780. data/lib/kubernetes/models/v1beta2_device_taint.rb +2 -2
  781. data/lib/kubernetes/models/{v2_api_group_discovery.rb → v1beta2_device_taint_rule.rb} +28 -14
  782. data/lib/kubernetes/models/{v2beta1_api_group_discovery_list.rb → v1beta2_device_taint_rule_list.rb} +23 -20
  783. data/lib/kubernetes/models/{v1alpha1_pod_group.rb → v1beta2_device_taint_rule_spec.rb} +21 -27
  784. data/lib/kubernetes/models/v1beta2_device_taint_rule_status.rb +222 -0
  785. data/lib/kubernetes/models/{v2beta1_api_version_discovery.rb → v1beta2_device_taint_selector.rb} +27 -33
  786. data/lib/kubernetes/models/v1beta2_device_toleration.rb +1 -1
  787. data/lib/kubernetes/models/v1beta2_exact_device_request.rb +2 -2
  788. data/lib/kubernetes/models/v1beta2_network_device_data.rb +3 -3
  789. data/lib/kubernetes/models/v1beta2_node_allocatable_resource_mapping.rb +230 -0
  790. data/lib/kubernetes/models/v1beta2_opaque_device_configuration.rb +1 -1
  791. data/lib/kubernetes/models/v1beta2_resource_claim.rb +1 -1
  792. data/lib/kubernetes/models/v1beta2_resource_claim_consumer_reference.rb +1 -1
  793. data/lib/kubernetes/models/v1beta2_resource_claim_list.rb +1 -1
  794. data/lib/kubernetes/models/v1beta2_resource_claim_spec.rb +1 -1
  795. data/lib/kubernetes/models/v1beta2_resource_claim_status.rb +1 -1
  796. data/lib/kubernetes/models/v1beta2_resource_claim_template.rb +1 -1
  797. data/lib/kubernetes/models/v1beta2_resource_claim_template_list.rb +1 -1
  798. data/lib/kubernetes/models/v1beta2_resource_claim_template_spec.rb +1 -1
  799. data/lib/kubernetes/models/v1beta2_resource_pool.rb +1 -1
  800. data/lib/kubernetes/models/v1beta2_resource_slice.rb +1 -1
  801. data/lib/kubernetes/models/v1beta2_resource_slice_list.rb +1 -1
  802. data/lib/kubernetes/models/v1beta2_resource_slice_spec.rb +1 -1
  803. data/lib/kubernetes/models/v2_container_resource_metric_source.rb +1 -1
  804. data/lib/kubernetes/models/v2_container_resource_metric_status.rb +1 -1
  805. data/lib/kubernetes/models/v2_cross_version_object_reference.rb +1 -1
  806. data/lib/kubernetes/models/v2_external_metric_source.rb +1 -1
  807. data/lib/kubernetes/models/v2_external_metric_status.rb +1 -1
  808. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler.rb +6 -1
  809. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_behavior.rb +1 -1
  810. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_condition.rb +1 -1
  811. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_list.rb +1 -1
  812. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_spec.rb +1 -1
  813. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_status.rb +1 -1
  814. data/lib/kubernetes/models/v2_hpa_scaling_policy.rb +1 -1
  815. data/lib/kubernetes/models/v2_hpa_scaling_rules.rb +1 -1
  816. data/lib/kubernetes/models/v2_metric_identifier.rb +1 -1
  817. data/lib/kubernetes/models/v2_metric_spec.rb +1 -1
  818. data/lib/kubernetes/models/v2_metric_status.rb +1 -1
  819. data/lib/kubernetes/models/v2_metric_target.rb +1 -1
  820. data/lib/kubernetes/models/v2_metric_value_status.rb +1 -1
  821. data/lib/kubernetes/models/v2_object_metric_source.rb +1 -1
  822. data/lib/kubernetes/models/v2_object_metric_status.rb +1 -1
  823. data/lib/kubernetes/models/v2_pods_metric_source.rb +1 -1
  824. data/lib/kubernetes/models/v2_pods_metric_status.rb +1 -1
  825. data/lib/kubernetes/models/v2_resource_metric_source.rb +1 -1
  826. data/lib/kubernetes/models/v2_resource_metric_status.rb +1 -1
  827. data/lib/kubernetes/models/version_info.rb +1 -1
  828. data/lib/kubernetes/utils.rb +2 -2
  829. data/lib/kubernetes/version.rb +2 -2
  830. data/lib/kubernetes.rb +46 -20
  831. metadata +46 -20
  832. 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.35
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
@@ -19,6 +19,152 @@ module Kubernetes
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # create a MutatingAdmissionPolicy
23
+ # @param body [V1MutatingAdmissionPolicy]
24
+ # @param [Hash] opts the optional parameters
25
+ # @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).
26
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
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
+ # @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
+ # @return [V1MutatingAdmissionPolicy]
30
+ def create_mutating_admission_policy(body, opts = {})
31
+ data, _status_code, _headers = create_mutating_admission_policy_with_http_info(body, opts)
32
+ data
33
+ end
34
+
35
+ # create a MutatingAdmissionPolicy
36
+ # @param body [V1MutatingAdmissionPolicy]
37
+ # @param [Hash] opts the optional parameters
38
+ # @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).
39
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
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
+ # @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
+ # @return [Array<(V1MutatingAdmissionPolicy, Integer, Hash)>] V1MutatingAdmissionPolicy data, response status code and response headers
43
+ def create_mutating_admission_policy_with_http_info(body, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.create_mutating_admission_policy ...'
46
+ end
47
+ # verify the required parameter 'body' is set
48
+ if @api_client.config.client_side_validation && body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling AdmissionregistrationV1Api.create_mutating_admission_policy"
50
+ end
51
+ # resource path
52
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies'
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
57
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
58
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
59
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
71
+
72
+ # return_type
73
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicy'
74
+
75
+ # auth_names
76
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
77
+
78
+ new_options = opts.merge(
79
+ :operation => :"AdmissionregistrationV1Api.create_mutating_admission_policy",
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => return_type
86
+ )
87
+
88
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#create_mutating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ # create a MutatingAdmissionPolicyBinding
96
+ # @param body [V1MutatingAdmissionPolicyBinding]
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
99
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
100
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
101
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
102
+ # @return [V1MutatingAdmissionPolicyBinding]
103
+ def create_mutating_admission_policy_binding(body, opts = {})
104
+ data, _status_code, _headers = create_mutating_admission_policy_binding_with_http_info(body, opts)
105
+ data
106
+ end
107
+
108
+ # create a MutatingAdmissionPolicyBinding
109
+ # @param body [V1MutatingAdmissionPolicyBinding]
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
112
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
113
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
114
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
115
+ # @return [Array<(V1MutatingAdmissionPolicyBinding, Integer, Hash)>] V1MutatingAdmissionPolicyBinding data, response status code and response headers
116
+ def create_mutating_admission_policy_binding_with_http_info(body, opts = {})
117
+ if @api_client.config.debugging
118
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.create_mutating_admission_policy_binding ...'
119
+ end
120
+ # verify the required parameter 'body' is set
121
+ if @api_client.config.client_side_validation && body.nil?
122
+ fail ArgumentError, "Missing the required parameter 'body' when calling AdmissionregistrationV1Api.create_mutating_admission_policy_binding"
123
+ end
124
+ # resource path
125
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings'
126
+
127
+ # query parameters
128
+ query_params = opts[:query_params] || {}
129
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
130
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
131
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
132
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
133
+
134
+ # header parameters
135
+ header_params = opts[:header_params] || {}
136
+ # HTTP header 'Accept' (if needed)
137
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
138
+
139
+ # form parameters
140
+ form_params = opts[:form_params] || {}
141
+
142
+ # http body (model)
143
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
144
+
145
+ # return_type
146
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicyBinding'
147
+
148
+ # auth_names
149
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
150
+
151
+ new_options = opts.merge(
152
+ :operation => :"AdmissionregistrationV1Api.create_mutating_admission_policy_binding",
153
+ :header_params => header_params,
154
+ :query_params => query_params,
155
+ :form_params => form_params,
156
+ :body => post_body,
157
+ :auth_names => auth_names,
158
+ :return_type => return_type
159
+ )
160
+
161
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#create_mutating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
164
+ end
165
+ return data, status_code, headers
166
+ end
167
+
22
168
  # create a MutatingWebhookConfiguration
23
169
  # @param body [V1MutatingWebhookConfiguration]
24
170
  # @param [Hash] opts the optional parameters
@@ -311,7 +457,7 @@ module Kubernetes
311
457
  return data, status_code, headers
312
458
  end
313
459
 
314
- # delete collection of MutatingWebhookConfiguration
460
+ # delete collection of MutatingAdmissionPolicy
315
461
  # @param [Hash] opts the optional parameters
316
462
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
317
463
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -326,15 +472,16 @@ module Kubernetes
326
472
  # @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
327
473
  # @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
328
474
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
475
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
329
476
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
330
477
  # @option opts [V1DeleteOptions] :body
331
478
  # @return [V1Status]
332
- def delete_collection_mutating_webhook_configuration(opts = {})
333
- data, _status_code, _headers = delete_collection_mutating_webhook_configuration_with_http_info(opts)
479
+ def delete_collection_mutating_admission_policy(opts = {})
480
+ data, _status_code, _headers = delete_collection_mutating_admission_policy_with_http_info(opts)
334
481
  data
335
482
  end
336
483
 
337
- # delete collection of MutatingWebhookConfiguration
484
+ # delete collection of MutatingAdmissionPolicy
338
485
  # @param [Hash] opts the optional parameters
339
486
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
340
487
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -349,15 +496,16 @@ module Kubernetes
349
496
  # @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
350
497
  # @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
351
498
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
499
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
352
500
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
353
501
  # @option opts [V1DeleteOptions] :body
354
502
  # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
355
- def delete_collection_mutating_webhook_configuration_with_http_info(opts = {})
503
+ def delete_collection_mutating_admission_policy_with_http_info(opts = {})
356
504
  if @api_client.config.debugging
357
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_mutating_webhook_configuration ...'
505
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_mutating_admission_policy ...'
358
506
  end
359
507
  # resource path
360
- local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations'
508
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies'
361
509
 
362
510
  # query parameters
363
511
  query_params = opts[:query_params] || {}
@@ -374,6 +522,7 @@ module Kubernetes
374
522
  query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
375
523
  query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
376
524
  query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
525
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
377
526
  query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
378
527
 
379
528
  # header parameters
@@ -394,7 +543,7 @@ module Kubernetes
394
543
  auth_names = opts[:debug_auth_names] || ['BearerToken']
395
544
 
396
545
  new_options = opts.merge(
397
- :operation => :"AdmissionregistrationV1Api.delete_collection_mutating_webhook_configuration",
546
+ :operation => :"AdmissionregistrationV1Api.delete_collection_mutating_admission_policy",
398
547
  :header_params => header_params,
399
548
  :query_params => query_params,
400
549
  :form_params => form_params,
@@ -405,12 +554,12 @@ module Kubernetes
405
554
 
406
555
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
407
556
  if @api_client.config.debugging
408
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_mutating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
557
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_mutating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
409
558
  end
410
559
  return data, status_code, headers
411
560
  end
412
561
 
413
- # delete collection of ValidatingAdmissionPolicy
562
+ # delete collection of MutatingAdmissionPolicyBinding
414
563
  # @param [Hash] opts the optional parameters
415
564
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
416
565
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -425,15 +574,16 @@ module Kubernetes
425
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
426
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
427
576
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
428
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.
429
579
  # @option opts [V1DeleteOptions] :body
430
580
  # @return [V1Status]
431
- def delete_collection_validating_admission_policy(opts = {})
432
- data, _status_code, _headers = delete_collection_validating_admission_policy_with_http_info(opts)
581
+ def delete_collection_mutating_admission_policy_binding(opts = {})
582
+ data, _status_code, _headers = delete_collection_mutating_admission_policy_binding_with_http_info(opts)
433
583
  data
434
584
  end
435
585
 
436
- # delete collection of ValidatingAdmissionPolicy
586
+ # delete collection of MutatingAdmissionPolicyBinding
437
587
  # @param [Hash] opts the optional parameters
438
588
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
439
589
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -448,15 +598,16 @@ module Kubernetes
448
598
  # @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
449
599
  # @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
450
600
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
601
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
451
602
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
452
603
  # @option opts [V1DeleteOptions] :body
453
604
  # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
454
- def delete_collection_validating_admission_policy_with_http_info(opts = {})
605
+ def delete_collection_mutating_admission_policy_binding_with_http_info(opts = {})
455
606
  if @api_client.config.debugging
456
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_validating_admission_policy ...'
607
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_mutating_admission_policy_binding ...'
457
608
  end
458
609
  # resource path
459
- local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies'
610
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings'
460
611
 
461
612
  # query parameters
462
613
  query_params = opts[:query_params] || {}
@@ -473,6 +624,7 @@ module Kubernetes
473
624
  query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
474
625
  query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
475
626
  query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
627
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
476
628
  query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
477
629
 
478
630
  # header parameters
@@ -493,7 +645,7 @@ module Kubernetes
493
645
  auth_names = opts[:debug_auth_names] || ['BearerToken']
494
646
 
495
647
  new_options = opts.merge(
496
- :operation => :"AdmissionregistrationV1Api.delete_collection_validating_admission_policy",
648
+ :operation => :"AdmissionregistrationV1Api.delete_collection_mutating_admission_policy_binding",
497
649
  :header_params => header_params,
498
650
  :query_params => query_params,
499
651
  :form_params => form_params,
@@ -504,12 +656,12 @@ module Kubernetes
504
656
 
505
657
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
506
658
  if @api_client.config.debugging
507
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_validating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
659
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_mutating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
508
660
  end
509
661
  return data, status_code, headers
510
662
  end
511
663
 
512
- # delete collection of ValidatingAdmissionPolicyBinding
664
+ # delete collection of MutatingWebhookConfiguration
513
665
  # @param [Hash] opts the optional parameters
514
666
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
515
667
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -524,15 +676,16 @@ module Kubernetes
524
676
  # @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
525
677
  # @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
526
678
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
679
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
527
680
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
528
681
  # @option opts [V1DeleteOptions] :body
529
682
  # @return [V1Status]
530
- def delete_collection_validating_admission_policy_binding(opts = {})
531
- data, _status_code, _headers = delete_collection_validating_admission_policy_binding_with_http_info(opts)
683
+ def delete_collection_mutating_webhook_configuration(opts = {})
684
+ data, _status_code, _headers = delete_collection_mutating_webhook_configuration_with_http_info(opts)
532
685
  data
533
686
  end
534
687
 
535
- # delete collection of ValidatingAdmissionPolicyBinding
688
+ # delete collection of MutatingWebhookConfiguration
536
689
  # @param [Hash] opts the optional parameters
537
690
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
538
691
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -547,15 +700,16 @@ module Kubernetes
547
700
  # @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
548
701
  # @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
549
702
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
703
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
550
704
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
551
705
  # @option opts [V1DeleteOptions] :body
552
706
  # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
553
- def delete_collection_validating_admission_policy_binding_with_http_info(opts = {})
707
+ def delete_collection_mutating_webhook_configuration_with_http_info(opts = {})
554
708
  if @api_client.config.debugging
555
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_validating_admission_policy_binding ...'
709
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_mutating_webhook_configuration ...'
556
710
  end
557
711
  # resource path
558
- local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings'
712
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations'
559
713
 
560
714
  # query parameters
561
715
  query_params = opts[:query_params] || {}
@@ -572,6 +726,7 @@ module Kubernetes
572
726
  query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
573
727
  query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
574
728
  query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
729
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
575
730
  query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
576
731
 
577
732
  # header parameters
@@ -592,7 +747,7 @@ module Kubernetes
592
747
  auth_names = opts[:debug_auth_names] || ['BearerToken']
593
748
 
594
749
  new_options = opts.merge(
595
- :operation => :"AdmissionregistrationV1Api.delete_collection_validating_admission_policy_binding",
750
+ :operation => :"AdmissionregistrationV1Api.delete_collection_mutating_webhook_configuration",
596
751
  :header_params => header_params,
597
752
  :query_params => query_params,
598
753
  :form_params => form_params,
@@ -603,12 +758,12 @@ module Kubernetes
603
758
 
604
759
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
605
760
  if @api_client.config.debugging
606
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_validating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
761
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_mutating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
607
762
  end
608
763
  return data, status_code, headers
609
764
  end
610
765
 
611
- # delete collection of ValidatingWebhookConfiguration
766
+ # delete collection of ValidatingAdmissionPolicy
612
767
  # @param [Hash] opts the optional parameters
613
768
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
614
769
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -623,15 +778,16 @@ module Kubernetes
623
778
  # @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
624
779
  # @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
625
780
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
781
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
626
782
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
627
783
  # @option opts [V1DeleteOptions] :body
628
784
  # @return [V1Status]
629
- def delete_collection_validating_webhook_configuration(opts = {})
630
- data, _status_code, _headers = delete_collection_validating_webhook_configuration_with_http_info(opts)
785
+ def delete_collection_validating_admission_policy(opts = {})
786
+ data, _status_code, _headers = delete_collection_validating_admission_policy_with_http_info(opts)
631
787
  data
632
788
  end
633
789
 
634
- # delete collection of ValidatingWebhookConfiguration
790
+ # delete collection of ValidatingAdmissionPolicy
635
791
  # @param [Hash] opts the optional parameters
636
792
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
637
793
  # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
@@ -646,15 +802,16 @@ module Kubernetes
646
802
  # @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
647
803
  # @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
648
804
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
805
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
649
806
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
650
807
  # @option opts [V1DeleteOptions] :body
651
808
  # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
652
- def delete_collection_validating_webhook_configuration_with_http_info(opts = {})
809
+ def delete_collection_validating_admission_policy_with_http_info(opts = {})
653
810
  if @api_client.config.debugging
654
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_validating_webhook_configuration ...'
811
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_validating_admission_policy ...'
655
812
  end
656
813
  # resource path
657
- local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations'
814
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies'
658
815
 
659
816
  # query parameters
660
817
  query_params = opts[:query_params] || {}
@@ -671,6 +828,7 @@ module Kubernetes
671
828
  query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
672
829
  query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
673
830
  query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
831
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
674
832
  query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
675
833
 
676
834
  # header parameters
@@ -691,7 +849,7 @@ module Kubernetes
691
849
  auth_names = opts[:debug_auth_names] || ['BearerToken']
692
850
 
693
851
  new_options = opts.merge(
694
- :operation => :"AdmissionregistrationV1Api.delete_collection_validating_webhook_configuration",
852
+ :operation => :"AdmissionregistrationV1Api.delete_collection_validating_admission_policy",
695
853
  :header_params => header_params,
696
854
  :query_params => query_params,
697
855
  :form_params => form_params,
@@ -702,57 +860,78 @@ module Kubernetes
702
860
 
703
861
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
704
862
  if @api_client.config.debugging
705
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_validating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
863
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_validating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
706
864
  end
707
865
  return data, status_code, headers
708
866
  end
709
867
 
710
- # delete a MutatingWebhookConfiguration
711
- # @param name [String] name of the MutatingWebhookConfiguration
868
+ # delete collection of ValidatingAdmissionPolicyBinding
712
869
  # @param [Hash] opts the optional parameters
713
870
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
871
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
714
872
  # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
873
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
715
874
  # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
716
875
  # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
876
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
877
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
717
878
  # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
718
879
  # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
880
+ # @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
881
+ # @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
882
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
883
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
884
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
719
885
  # @option opts [V1DeleteOptions] :body
720
886
  # @return [V1Status]
721
- def delete_mutating_webhook_configuration(name, opts = {})
722
- data, _status_code, _headers = delete_mutating_webhook_configuration_with_http_info(name, opts)
887
+ def delete_collection_validating_admission_policy_binding(opts = {})
888
+ data, _status_code, _headers = delete_collection_validating_admission_policy_binding_with_http_info(opts)
723
889
  data
724
890
  end
725
891
 
726
- # delete a MutatingWebhookConfiguration
727
- # @param name [String] name of the MutatingWebhookConfiguration
892
+ # delete collection of ValidatingAdmissionPolicyBinding
728
893
  # @param [Hash] opts the optional parameters
729
894
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
895
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
730
896
  # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
897
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
731
898
  # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
732
899
  # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
900
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
901
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
733
902
  # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
734
903
  # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
904
+ # @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
905
+ # @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
906
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
907
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
908
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
735
909
  # @option opts [V1DeleteOptions] :body
736
910
  # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
737
- def delete_mutating_webhook_configuration_with_http_info(name, opts = {})
911
+ def delete_collection_validating_admission_policy_binding_with_http_info(opts = {})
738
912
  if @api_client.config.debugging
739
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_mutating_webhook_configuration ...'
740
- end
741
- # verify the required parameter 'name' is set
742
- if @api_client.config.client_side_validation && name.nil?
743
- fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_mutating_webhook_configuration"
913
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_validating_admission_policy_binding ...'
744
914
  end
745
915
  # resource path
746
- local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
916
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings'
747
917
 
748
918
  # query parameters
749
919
  query_params = opts[:query_params] || {}
750
920
  query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
921
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
751
922
  query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
923
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
752
924
  query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
753
925
  query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
926
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
927
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
754
928
  query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
755
929
  query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
930
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
931
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
932
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
933
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
934
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
756
935
 
757
936
  # header parameters
758
937
  header_params = opts[:header_params] || {}
@@ -772,7 +951,7 @@ module Kubernetes
772
951
  auth_names = opts[:debug_auth_names] || ['BearerToken']
773
952
 
774
953
  new_options = opts.merge(
775
- :operation => :"AdmissionregistrationV1Api.delete_mutating_webhook_configuration",
954
+ :operation => :"AdmissionregistrationV1Api.delete_collection_validating_admission_policy_binding",
776
955
  :header_params => header_params,
777
956
  :query_params => query_params,
778
957
  :form_params => form_params,
@@ -783,48 +962,393 @@ module Kubernetes
783
962
 
784
963
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
785
964
  if @api_client.config.debugging
786
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_mutating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
965
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_validating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
787
966
  end
788
967
  return data, status_code, headers
789
968
  end
790
969
 
791
- # delete a ValidatingAdmissionPolicy
792
- # @param name [String] name of the ValidatingAdmissionPolicy
970
+ # delete collection of ValidatingWebhookConfiguration
793
971
  # @param [Hash] opts the optional parameters
794
972
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
973
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
795
974
  # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
975
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
796
976
  # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
797
977
  # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
978
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
979
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
798
980
  # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
799
981
  # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
982
+ # @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
983
+ # @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
984
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
985
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
986
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
800
987
  # @option opts [V1DeleteOptions] :body
801
988
  # @return [V1Status]
802
- def delete_validating_admission_policy(name, opts = {})
803
- data, _status_code, _headers = delete_validating_admission_policy_with_http_info(name, opts)
989
+ def delete_collection_validating_webhook_configuration(opts = {})
990
+ data, _status_code, _headers = delete_collection_validating_webhook_configuration_with_http_info(opts)
804
991
  data
805
992
  end
806
993
 
807
- # delete a ValidatingAdmissionPolicy
808
- # @param name [String] name of the ValidatingAdmissionPolicy
994
+ # delete collection of ValidatingWebhookConfiguration
809
995
  # @param [Hash] opts the optional parameters
810
996
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
997
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
811
998
  # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
999
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
812
1000
  # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
813
1001
  # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1002
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1003
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
814
1004
  # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
815
1005
  # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1006
+ # @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
1007
+ # @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
1008
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1009
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1010
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
816
1011
  # @option opts [V1DeleteOptions] :body
817
1012
  # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
818
- def delete_validating_admission_policy_with_http_info(name, opts = {})
1013
+ def delete_collection_validating_webhook_configuration_with_http_info(opts = {})
819
1014
  if @api_client.config.debugging
820
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_validating_admission_policy ...'
821
- end
822
- # verify the required parameter 'name' is set
823
- if @api_client.config.client_side_validation && name.nil?
824
- fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_validating_admission_policy"
1015
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_collection_validating_webhook_configuration ...'
825
1016
  end
826
1017
  # resource path
827
- local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1018
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations'
1019
+
1020
+ # query parameters
1021
+ query_params = opts[:query_params] || {}
1022
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1023
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1024
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1025
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1026
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1027
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1028
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1029
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1030
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1031
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1032
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1033
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1034
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1035
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
1036
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1037
+
1038
+ # header parameters
1039
+ header_params = opts[:header_params] || {}
1040
+ # HTTP header 'Accept' (if needed)
1041
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1042
+
1043
+ # form parameters
1044
+ form_params = opts[:form_params] || {}
1045
+
1046
+ # http body (model)
1047
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1048
+
1049
+ # return_type
1050
+ return_type = opts[:debug_return_type] || 'V1Status'
1051
+
1052
+ # auth_names
1053
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1054
+
1055
+ new_options = opts.merge(
1056
+ :operation => :"AdmissionregistrationV1Api.delete_collection_validating_webhook_configuration",
1057
+ :header_params => header_params,
1058
+ :query_params => query_params,
1059
+ :form_params => form_params,
1060
+ :body => post_body,
1061
+ :auth_names => auth_names,
1062
+ :return_type => return_type
1063
+ )
1064
+
1065
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1066
+ if @api_client.config.debugging
1067
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_collection_validating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1068
+ end
1069
+ return data, status_code, headers
1070
+ end
1071
+
1072
+ # delete a MutatingAdmissionPolicy
1073
+ # @param name [String] name of the MutatingAdmissionPolicy
1074
+ # @param [Hash] opts the optional parameters
1075
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1076
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1077
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1078
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1079
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1080
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1081
+ # @option opts [V1DeleteOptions] :body
1082
+ # @return [V1Status]
1083
+ def delete_mutating_admission_policy(name, opts = {})
1084
+ data, _status_code, _headers = delete_mutating_admission_policy_with_http_info(name, opts)
1085
+ data
1086
+ end
1087
+
1088
+ # delete a MutatingAdmissionPolicy
1089
+ # @param name [String] name of the MutatingAdmissionPolicy
1090
+ # @param [Hash] opts the optional parameters
1091
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1092
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1093
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1094
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1095
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1096
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1097
+ # @option opts [V1DeleteOptions] :body
1098
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1099
+ def delete_mutating_admission_policy_with_http_info(name, opts = {})
1100
+ if @api_client.config.debugging
1101
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_mutating_admission_policy ...'
1102
+ end
1103
+ # verify the required parameter 'name' is set
1104
+ if @api_client.config.client_side_validation && name.nil?
1105
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_mutating_admission_policy"
1106
+ end
1107
+ # resource path
1108
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1109
+
1110
+ # query parameters
1111
+ query_params = opts[:query_params] || {}
1112
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1113
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1114
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1115
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1116
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1117
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1118
+
1119
+ # header parameters
1120
+ header_params = opts[:header_params] || {}
1121
+ # HTTP header 'Accept' (if needed)
1122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1123
+
1124
+ # form parameters
1125
+ form_params = opts[:form_params] || {}
1126
+
1127
+ # http body (model)
1128
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1129
+
1130
+ # return_type
1131
+ return_type = opts[:debug_return_type] || 'V1Status'
1132
+
1133
+ # auth_names
1134
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1135
+
1136
+ new_options = opts.merge(
1137
+ :operation => :"AdmissionregistrationV1Api.delete_mutating_admission_policy",
1138
+ :header_params => header_params,
1139
+ :query_params => query_params,
1140
+ :form_params => form_params,
1141
+ :body => post_body,
1142
+ :auth_names => auth_names,
1143
+ :return_type => return_type
1144
+ )
1145
+
1146
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1147
+ if @api_client.config.debugging
1148
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_mutating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1149
+ end
1150
+ return data, status_code, headers
1151
+ end
1152
+
1153
+ # delete a MutatingAdmissionPolicyBinding
1154
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
1155
+ # @param [Hash] opts the optional parameters
1156
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1157
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1158
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1159
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1160
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1161
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1162
+ # @option opts [V1DeleteOptions] :body
1163
+ # @return [V1Status]
1164
+ def delete_mutating_admission_policy_binding(name, opts = {})
1165
+ data, _status_code, _headers = delete_mutating_admission_policy_binding_with_http_info(name, opts)
1166
+ data
1167
+ end
1168
+
1169
+ # delete a MutatingAdmissionPolicyBinding
1170
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
1171
+ # @param [Hash] opts the optional parameters
1172
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1173
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1174
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1175
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1176
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1177
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1178
+ # @option opts [V1DeleteOptions] :body
1179
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1180
+ def delete_mutating_admission_policy_binding_with_http_info(name, opts = {})
1181
+ if @api_client.config.debugging
1182
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_mutating_admission_policy_binding ...'
1183
+ end
1184
+ # verify the required parameter 'name' is set
1185
+ if @api_client.config.client_side_validation && name.nil?
1186
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_mutating_admission_policy_binding"
1187
+ end
1188
+ # resource path
1189
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1190
+
1191
+ # query parameters
1192
+ query_params = opts[:query_params] || {}
1193
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1194
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1195
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1196
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1197
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1198
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1199
+
1200
+ # header parameters
1201
+ header_params = opts[:header_params] || {}
1202
+ # HTTP header 'Accept' (if needed)
1203
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1204
+
1205
+ # form parameters
1206
+ form_params = opts[:form_params] || {}
1207
+
1208
+ # http body (model)
1209
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1210
+
1211
+ # return_type
1212
+ return_type = opts[:debug_return_type] || 'V1Status'
1213
+
1214
+ # auth_names
1215
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1216
+
1217
+ new_options = opts.merge(
1218
+ :operation => :"AdmissionregistrationV1Api.delete_mutating_admission_policy_binding",
1219
+ :header_params => header_params,
1220
+ :query_params => query_params,
1221
+ :form_params => form_params,
1222
+ :body => post_body,
1223
+ :auth_names => auth_names,
1224
+ :return_type => return_type
1225
+ )
1226
+
1227
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1228
+ if @api_client.config.debugging
1229
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_mutating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1230
+ end
1231
+ return data, status_code, headers
1232
+ end
1233
+
1234
+ # delete a MutatingWebhookConfiguration
1235
+ # @param name [String] name of the MutatingWebhookConfiguration
1236
+ # @param [Hash] opts the optional parameters
1237
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1238
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1239
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1240
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1241
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1242
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1243
+ # @option opts [V1DeleteOptions] :body
1244
+ # @return [V1Status]
1245
+ def delete_mutating_webhook_configuration(name, opts = {})
1246
+ data, _status_code, _headers = delete_mutating_webhook_configuration_with_http_info(name, opts)
1247
+ data
1248
+ end
1249
+
1250
+ # delete a MutatingWebhookConfiguration
1251
+ # @param name [String] name of the MutatingWebhookConfiguration
1252
+ # @param [Hash] opts the optional parameters
1253
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1254
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1255
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1256
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1257
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1258
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1259
+ # @option opts [V1DeleteOptions] :body
1260
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1261
+ def delete_mutating_webhook_configuration_with_http_info(name, opts = {})
1262
+ if @api_client.config.debugging
1263
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_mutating_webhook_configuration ...'
1264
+ end
1265
+ # verify the required parameter 'name' is set
1266
+ if @api_client.config.client_side_validation && name.nil?
1267
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_mutating_webhook_configuration"
1268
+ end
1269
+ # resource path
1270
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1271
+
1272
+ # query parameters
1273
+ query_params = opts[:query_params] || {}
1274
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1275
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1276
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1277
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1278
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1279
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1280
+
1281
+ # header parameters
1282
+ header_params = opts[:header_params] || {}
1283
+ # HTTP header 'Accept' (if needed)
1284
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1285
+
1286
+ # form parameters
1287
+ form_params = opts[:form_params] || {}
1288
+
1289
+ # http body (model)
1290
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1291
+
1292
+ # return_type
1293
+ return_type = opts[:debug_return_type] || 'V1Status'
1294
+
1295
+ # auth_names
1296
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1297
+
1298
+ new_options = opts.merge(
1299
+ :operation => :"AdmissionregistrationV1Api.delete_mutating_webhook_configuration",
1300
+ :header_params => header_params,
1301
+ :query_params => query_params,
1302
+ :form_params => form_params,
1303
+ :body => post_body,
1304
+ :auth_names => auth_names,
1305
+ :return_type => return_type
1306
+ )
1307
+
1308
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1309
+ if @api_client.config.debugging
1310
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_mutating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1311
+ end
1312
+ return data, status_code, headers
1313
+ end
1314
+
1315
+ # delete a ValidatingAdmissionPolicy
1316
+ # @param name [String] name of the ValidatingAdmissionPolicy
1317
+ # @param [Hash] opts the optional parameters
1318
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1319
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1320
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1321
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1322
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1323
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1324
+ # @option opts [V1DeleteOptions] :body
1325
+ # @return [V1Status]
1326
+ def delete_validating_admission_policy(name, opts = {})
1327
+ data, _status_code, _headers = delete_validating_admission_policy_with_http_info(name, opts)
1328
+ data
1329
+ end
1330
+
1331
+ # delete a ValidatingAdmissionPolicy
1332
+ # @param name [String] name of the ValidatingAdmissionPolicy
1333
+ # @param [Hash] opts the optional parameters
1334
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1335
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1336
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1337
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1338
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1339
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1340
+ # @option opts [V1DeleteOptions] :body
1341
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1342
+ def delete_validating_admission_policy_with_http_info(name, opts = {})
1343
+ if @api_client.config.debugging
1344
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_validating_admission_policy ...'
1345
+ end
1346
+ # verify the required parameter 'name' is set
1347
+ if @api_client.config.client_side_validation && name.nil?
1348
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_validating_admission_policy"
1349
+ end
1350
+ # resource path
1351
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
828
1352
 
829
1353
  # query parameters
830
1354
  query_params = opts[:query_params] || {}
@@ -925,16 +1449,152 @@ module Kubernetes
925
1449
  form_params = opts[:form_params] || {}
926
1450
 
927
1451
  # http body (model)
928
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1452
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1453
+
1454
+ # return_type
1455
+ return_type = opts[:debug_return_type] || 'V1Status'
1456
+
1457
+ # auth_names
1458
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1459
+
1460
+ new_options = opts.merge(
1461
+ :operation => :"AdmissionregistrationV1Api.delete_validating_admission_policy_binding",
1462
+ :header_params => header_params,
1463
+ :query_params => query_params,
1464
+ :form_params => form_params,
1465
+ :body => post_body,
1466
+ :auth_names => auth_names,
1467
+ :return_type => return_type
1468
+ )
1469
+
1470
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1471
+ if @api_client.config.debugging
1472
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_validating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1473
+ end
1474
+ return data, status_code, headers
1475
+ end
1476
+
1477
+ # delete a ValidatingWebhookConfiguration
1478
+ # @param name [String] name of the ValidatingWebhookConfiguration
1479
+ # @param [Hash] opts the optional parameters
1480
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1481
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1482
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1483
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1484
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1485
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1486
+ # @option opts [V1DeleteOptions] :body
1487
+ # @return [V1Status]
1488
+ def delete_validating_webhook_configuration(name, opts = {})
1489
+ data, _status_code, _headers = delete_validating_webhook_configuration_with_http_info(name, opts)
1490
+ data
1491
+ end
1492
+
1493
+ # delete a ValidatingWebhookConfiguration
1494
+ # @param name [String] name of the ValidatingWebhookConfiguration
1495
+ # @param [Hash] opts the optional parameters
1496
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1497
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1498
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
1499
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1500
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
1501
+ # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
1502
+ # @option opts [V1DeleteOptions] :body
1503
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1504
+ def delete_validating_webhook_configuration_with_http_info(name, opts = {})
1505
+ if @api_client.config.debugging
1506
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_validating_webhook_configuration ...'
1507
+ end
1508
+ # verify the required parameter 'name' is set
1509
+ if @api_client.config.client_side_validation && name.nil?
1510
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_validating_webhook_configuration"
1511
+ end
1512
+ # resource path
1513
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1514
+
1515
+ # query parameters
1516
+ query_params = opts[:query_params] || {}
1517
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1518
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1519
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1520
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1521
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1522
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1523
+
1524
+ # header parameters
1525
+ header_params = opts[:header_params] || {}
1526
+ # HTTP header 'Accept' (if needed)
1527
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1528
+
1529
+ # form parameters
1530
+ form_params = opts[:form_params] || {}
1531
+
1532
+ # http body (model)
1533
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1534
+
1535
+ # return_type
1536
+ return_type = opts[:debug_return_type] || 'V1Status'
1537
+
1538
+ # auth_names
1539
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1540
+
1541
+ new_options = opts.merge(
1542
+ :operation => :"AdmissionregistrationV1Api.delete_validating_webhook_configuration",
1543
+ :header_params => header_params,
1544
+ :query_params => query_params,
1545
+ :form_params => form_params,
1546
+ :body => post_body,
1547
+ :auth_names => auth_names,
1548
+ :return_type => return_type
1549
+ )
1550
+
1551
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1552
+ if @api_client.config.debugging
1553
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_validating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1554
+ end
1555
+ return data, status_code, headers
1556
+ end
1557
+
1558
+ # get available resources
1559
+ # @param [Hash] opts the optional parameters
1560
+ # @return [V1APIResourceList]
1561
+ def get_api_resources_get_apis_admissionregistration_k8s_io_v1(opts = {})
1562
+ data, _status_code, _headers = get_api_resources_get_apis_admissionregistration_k8s_io_v1_with_http_info(opts)
1563
+ data
1564
+ end
1565
+
1566
+ # get available resources
1567
+ # @param [Hash] opts the optional parameters
1568
+ # @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
1569
+ def get_api_resources_get_apis_admissionregistration_k8s_io_v1_with_http_info(opts = {})
1570
+ if @api_client.config.debugging
1571
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.get_api_resources_get_apis_admissionregistration_k8s_io_v1 ...'
1572
+ end
1573
+ # resource path
1574
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/'
1575
+
1576
+ # query parameters
1577
+ query_params = opts[:query_params] || {}
1578
+
1579
+ # header parameters
1580
+ header_params = opts[:header_params] || {}
1581
+ # HTTP header 'Accept' (if needed)
1582
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1583
+
1584
+ # form parameters
1585
+ form_params = opts[:form_params] || {}
1586
+
1587
+ # http body (model)
1588
+ post_body = opts[:debug_body]
929
1589
 
930
1590
  # return_type
931
- return_type = opts[:debug_return_type] || 'V1Status'
1591
+ return_type = opts[:debug_return_type] || 'V1APIResourceList'
932
1592
 
933
1593
  # auth_names
934
1594
  auth_names = opts[:debug_auth_names] || ['BearerToken']
935
1595
 
936
1596
  new_options = opts.merge(
937
- :operation => :"AdmissionregistrationV1Api.delete_validating_admission_policy_binding",
1597
+ :operation => :"AdmissionregistrationV1Api.get_api_resources_get_apis_admissionregistration_k8s_io_v1",
938
1598
  :header_params => header_params,
939
1599
  :query_params => query_params,
940
1600
  :form_params => form_params,
@@ -943,79 +1603,89 @@ module Kubernetes
943
1603
  :return_type => return_type
944
1604
  )
945
1605
 
946
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1606
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
947
1607
  if @api_client.config.debugging
948
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_validating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1608
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#get_api_resources_get_apis_admissionregistration_k8s_io_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
949
1609
  end
950
1610
  return data, status_code, headers
951
1611
  end
952
1612
 
953
- # delete a ValidatingWebhookConfiguration
954
- # @param name [String] name of the ValidatingWebhookConfiguration
1613
+ # list or watch objects of kind MutatingAdmissionPolicy
955
1614
  # @param [Hash] opts the optional parameters
956
1615
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
957
- # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
958
- # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
959
- # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
960
- # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
961
- # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
962
- # @option opts [V1DeleteOptions] :body
963
- # @return [V1Status]
964
- def delete_validating_webhook_configuration(name, opts = {})
965
- data, _status_code, _headers = delete_validating_webhook_configuration_with_http_info(name, opts)
1616
+ # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
1617
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
1618
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1619
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1620
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
1621
+ # @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
1622
+ # @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
1623
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1624
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1625
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1626
+ # @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.
1627
+ # @return [V1MutatingAdmissionPolicyList]
1628
+ def list_mutating_admission_policy(opts = {})
1629
+ data, _status_code, _headers = list_mutating_admission_policy_with_http_info(opts)
966
1630
  data
967
1631
  end
968
1632
 
969
- # delete a ValidatingWebhookConfiguration
970
- # @param name [String] name of the ValidatingWebhookConfiguration
1633
+ # list or watch objects of kind MutatingAdmissionPolicy
971
1634
  # @param [Hash] opts the optional parameters
972
1635
  # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
973
- # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
974
- # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
975
- # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
976
- # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
977
- # @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: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
978
- # @option opts [V1DeleteOptions] :body
979
- # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
980
- def delete_validating_webhook_configuration_with_http_info(name, opts = {})
1636
+ # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
1637
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
1638
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1639
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1640
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
1641
+ # @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
1642
+ # @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
1643
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1644
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1645
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1646
+ # @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.
1647
+ # @return [Array<(V1MutatingAdmissionPolicyList, Integer, Hash)>] V1MutatingAdmissionPolicyList data, response status code and response headers
1648
+ def list_mutating_admission_policy_with_http_info(opts = {})
981
1649
  if @api_client.config.debugging
982
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.delete_validating_webhook_configuration ...'
983
- end
984
- # verify the required parameter 'name' is set
985
- if @api_client.config.client_side_validation && name.nil?
986
- fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.delete_validating_webhook_configuration"
1650
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.list_mutating_admission_policy ...'
987
1651
  end
988
1652
  # resource path
989
- local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1653
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies'
990
1654
 
991
1655
  # query parameters
992
1656
  query_params = opts[:query_params] || {}
993
1657
  query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
994
- query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
995
- query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
996
- query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
997
- query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
998
- query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1658
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1659
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1660
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1661
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1662
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1663
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1664
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1665
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1666
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
1667
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1668
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
999
1669
 
1000
1670
  # header parameters
1001
1671
  header_params = opts[:header_params] || {}
1002
1672
  # HTTP header 'Accept' (if needed)
1003
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1673
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1004
1674
 
1005
1675
  # form parameters
1006
1676
  form_params = opts[:form_params] || {}
1007
1677
 
1008
1678
  # http body (model)
1009
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1679
+ post_body = opts[:debug_body]
1010
1680
 
1011
1681
  # return_type
1012
- return_type = opts[:debug_return_type] || 'V1Status'
1682
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicyList'
1013
1683
 
1014
1684
  # auth_names
1015
1685
  auth_names = opts[:debug_auth_names] || ['BearerToken']
1016
1686
 
1017
1687
  new_options = opts.merge(
1018
- :operation => :"AdmissionregistrationV1Api.delete_validating_webhook_configuration",
1688
+ :operation => :"AdmissionregistrationV1Api.list_mutating_admission_policy",
1019
1689
  :header_params => header_params,
1020
1690
  :query_params => query_params,
1021
1691
  :form_params => form_params,
@@ -1024,38 +1694,74 @@ module Kubernetes
1024
1694
  :return_type => return_type
1025
1695
  )
1026
1696
 
1027
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1697
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1028
1698
  if @api_client.config.debugging
1029
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#delete_validating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1699
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#list_mutating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1030
1700
  end
1031
1701
  return data, status_code, headers
1032
1702
  end
1033
1703
 
1034
- # get available resources
1704
+ # list or watch objects of kind MutatingAdmissionPolicyBinding
1035
1705
  # @param [Hash] opts the optional parameters
1036
- # @return [V1APIResourceList]
1037
- def get_api_resources_admissionregistration_v1(opts = {})
1038
- data, _status_code, _headers = get_api_resources_admissionregistration_v1_with_http_info(opts)
1706
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1707
+ # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
1708
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
1709
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1710
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1711
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
1712
+ # @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
1713
+ # @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
1714
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1715
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1716
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1717
+ # @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.
1718
+ # @return [V1MutatingAdmissionPolicyBindingList]
1719
+ def list_mutating_admission_policy_binding(opts = {})
1720
+ data, _status_code, _headers = list_mutating_admission_policy_binding_with_http_info(opts)
1039
1721
  data
1040
1722
  end
1041
1723
 
1042
- # get available resources
1724
+ # list or watch objects of kind MutatingAdmissionPolicyBinding
1043
1725
  # @param [Hash] opts the optional parameters
1044
- # @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
1045
- def get_api_resources_admissionregistration_v1_with_http_info(opts = {})
1726
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1727
+ # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
1728
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
1729
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1730
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1731
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
1732
+ # @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
1733
+ # @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
1734
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1735
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1736
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1737
+ # @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.
1738
+ # @return [Array<(V1MutatingAdmissionPolicyBindingList, Integer, Hash)>] V1MutatingAdmissionPolicyBindingList data, response status code and response headers
1739
+ def list_mutating_admission_policy_binding_with_http_info(opts = {})
1046
1740
  if @api_client.config.debugging
1047
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.get_api_resources_admissionregistration_v1 ...'
1741
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.list_mutating_admission_policy_binding ...'
1048
1742
  end
1049
1743
  # resource path
1050
- local_var_path = '/apis/admissionregistration.k8s.io/v1/'
1744
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings'
1051
1745
 
1052
1746
  # query parameters
1053
1747
  query_params = opts[:query_params] || {}
1748
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1749
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1750
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1751
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1752
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1753
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1754
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1755
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1756
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1757
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
1758
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1759
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1054
1760
 
1055
1761
  # header parameters
1056
1762
  header_params = opts[:header_params] || {}
1057
1763
  # HTTP header 'Accept' (if needed)
1058
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1764
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1059
1765
 
1060
1766
  # form parameters
1061
1767
  form_params = opts[:form_params] || {}
@@ -1064,13 +1770,13 @@ module Kubernetes
1064
1770
  post_body = opts[:debug_body]
1065
1771
 
1066
1772
  # return_type
1067
- return_type = opts[:debug_return_type] || 'V1APIResourceList'
1773
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicyBindingList'
1068
1774
 
1069
1775
  # auth_names
1070
1776
  auth_names = opts[:debug_auth_names] || ['BearerToken']
1071
1777
 
1072
1778
  new_options = opts.merge(
1073
- :operation => :"AdmissionregistrationV1Api.get_api_resources_admissionregistration_v1",
1779
+ :operation => :"AdmissionregistrationV1Api.list_mutating_admission_policy_binding",
1074
1780
  :header_params => header_params,
1075
1781
  :query_params => query_params,
1076
1782
  :form_params => form_params,
@@ -1081,7 +1787,7 @@ module Kubernetes
1081
1787
 
1082
1788
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1083
1789
  if @api_client.config.debugging
1084
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#get_api_resources_admissionregistration_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1790
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#list_mutating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1085
1791
  end
1086
1792
  return data, status_code, headers
1087
1793
  end
@@ -1097,6 +1803,7 @@ module Kubernetes
1097
1803
  # @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
1098
1804
  # @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
1099
1805
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1806
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1100
1807
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1101
1808
  # @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.
1102
1809
  # @return [V1MutatingWebhookConfigurationList]
@@ -1116,6 +1823,7 @@ module Kubernetes
1116
1823
  # @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
1117
1824
  # @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
1118
1825
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1826
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1119
1827
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1120
1828
  # @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.
1121
1829
  # @return [Array<(V1MutatingWebhookConfigurationList, Integer, Hash)>] V1MutatingWebhookConfigurationList data, response status code and response headers
@@ -1137,6 +1845,7 @@ module Kubernetes
1137
1845
  query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1138
1846
  query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1139
1847
  query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1848
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
1140
1849
  query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1141
1850
  query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1142
1851
 
@@ -1185,6 +1894,7 @@ module Kubernetes
1185
1894
  # @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
1186
1895
  # @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
1187
1896
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1897
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1188
1898
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1189
1899
  # @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.
1190
1900
  # @return [V1ValidatingAdmissionPolicyList]
@@ -1204,6 +1914,7 @@ module Kubernetes
1204
1914
  # @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
1205
1915
  # @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
1206
1916
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1917
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1207
1918
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1208
1919
  # @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.
1209
1920
  # @return [Array<(V1ValidatingAdmissionPolicyList, Integer, Hash)>] V1ValidatingAdmissionPolicyList data, response status code and response headers
@@ -1225,6 +1936,7 @@ module Kubernetes
1225
1936
  query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1226
1937
  query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1227
1938
  query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1939
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
1228
1940
  query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1229
1941
  query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1230
1942
 
@@ -1273,6 +1985,7 @@ module Kubernetes
1273
1985
  # @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
1274
1986
  # @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
1275
1987
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1988
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1276
1989
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1277
1990
  # @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.
1278
1991
  # @return [V1ValidatingAdmissionPolicyBindingList]
@@ -1292,6 +2005,7 @@ module Kubernetes
1292
2005
  # @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
1293
2006
  # @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
1294
2007
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
2008
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1295
2009
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1296
2010
  # @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.
1297
2011
  # @return [Array<(V1ValidatingAdmissionPolicyBindingList, Integer, Hash)>] V1ValidatingAdmissionPolicyBindingList data, response status code and response headers
@@ -1313,6 +2027,7 @@ module Kubernetes
1313
2027
  query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1314
2028
  query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1315
2029
  query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
2030
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
1316
2031
  query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1317
2032
  query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1318
2033
 
@@ -1361,6 +2076,7 @@ module Kubernetes
1361
2076
  # @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
1362
2077
  # @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
1363
2078
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
2079
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1364
2080
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1365
2081
  # @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.
1366
2082
  # @return [V1ValidatingWebhookConfigurationList]
@@ -1380,49 +2096,219 @@ module Kubernetes
1380
2096
  # @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
1381
2097
  # @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
1382
2098
  # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. 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 \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
2099
+ # @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, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) shardRange(object.metadata.uid, &#39;0x0&#39;, &#39;0x8000000000000000&#39;) || shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) Field paths use CEL-style object-rooted syntax (e.g. \&quot;object.metadata.uid\&quot;), NOT the fieldSelector format (\&quot;metadata.uid\&quot;). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a &#39;0x&#39; 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, &#39;0x0000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0x10000000000000000&#39;) 4-shard split: shard 0: shardRange(object.metadata.uid, &#39;0x0000000000000000&#39;, &#39;0x4000000000000000&#39;) shard 1: shardRange(object.metadata.uid, &#39;0x4000000000000000&#39;, &#39;0x8000000000000000&#39;) shard 2: shardRange(object.metadata.uid, &#39;0x8000000000000000&#39;, &#39;0xc000000000000000&#39;) shard 3: shardRange(object.metadata.uid, &#39;0xc000000000000000&#39;, &#39;0x10000000000000000&#39;) This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
1383
2100
  # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1384
2101
  # @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.
1385
2102
  # @return [Array<(V1ValidatingWebhookConfigurationList, Integer, Hash)>] V1ValidatingWebhookConfigurationList data, response status code and response headers
1386
2103
  def list_validating_webhook_configuration_with_http_info(opts = {})
1387
2104
  if @api_client.config.debugging
1388
- @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.list_validating_webhook_configuration ...'
2105
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.list_validating_webhook_configuration ...'
2106
+ end
2107
+ # resource path
2108
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations'
2109
+
2110
+ # query parameters
2111
+ query_params = opts[:query_params] || {}
2112
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2113
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
2114
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
2115
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
2116
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
2117
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
2118
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
2119
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
2120
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
2121
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
2122
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
2123
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
2124
+
2125
+ # header parameters
2126
+ header_params = opts[:header_params] || {}
2127
+ # HTTP header 'Accept' (if needed)
2128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
2129
+
2130
+ # form parameters
2131
+ form_params = opts[:form_params] || {}
2132
+
2133
+ # http body (model)
2134
+ post_body = opts[:debug_body]
2135
+
2136
+ # return_type
2137
+ return_type = opts[:debug_return_type] || 'V1ValidatingWebhookConfigurationList'
2138
+
2139
+ # auth_names
2140
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2141
+
2142
+ new_options = opts.merge(
2143
+ :operation => :"AdmissionregistrationV1Api.list_validating_webhook_configuration",
2144
+ :header_params => header_params,
2145
+ :query_params => query_params,
2146
+ :form_params => form_params,
2147
+ :body => post_body,
2148
+ :auth_names => auth_names,
2149
+ :return_type => return_type
2150
+ )
2151
+
2152
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2153
+ if @api_client.config.debugging
2154
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#list_validating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2155
+ end
2156
+ return data, status_code, headers
2157
+ end
2158
+
2159
+ # partially update the specified MutatingAdmissionPolicy
2160
+ # @param name [String] name of the MutatingAdmissionPolicy
2161
+ # @param body [Object]
2162
+ # @param [Hash] opts the optional parameters
2163
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2164
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2165
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
2166
+ # @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.
2167
+ # @option opts [Boolean] :force Force is going to \&quot;force\&quot; Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
2168
+ # @return [V1MutatingAdmissionPolicy]
2169
+ def patch_mutating_admission_policy(name, body, opts = {})
2170
+ data, _status_code, _headers = patch_mutating_admission_policy_with_http_info(name, body, opts)
2171
+ data
2172
+ end
2173
+
2174
+ # partially update the specified MutatingAdmissionPolicy
2175
+ # @param name [String] name of the MutatingAdmissionPolicy
2176
+ # @param body [Object]
2177
+ # @param [Hash] opts the optional parameters
2178
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2179
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2180
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
2181
+ # @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.
2182
+ # @option opts [Boolean] :force Force is going to \&quot;force\&quot; Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
2183
+ # @return [Array<(V1MutatingAdmissionPolicy, Integer, Hash)>] V1MutatingAdmissionPolicy data, response status code and response headers
2184
+ def patch_mutating_admission_policy_with_http_info(name, body, opts = {})
2185
+ if @api_client.config.debugging
2186
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.patch_mutating_admission_policy ...'
2187
+ end
2188
+ # verify the required parameter 'name' is set
2189
+ if @api_client.config.client_side_validation && name.nil?
2190
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.patch_mutating_admission_policy"
2191
+ end
2192
+ # verify the required parameter 'body' is set
2193
+ if @api_client.config.client_side_validation && body.nil?
2194
+ fail ArgumentError, "Missing the required parameter 'body' when calling AdmissionregistrationV1Api.patch_mutating_admission_policy"
2195
+ end
2196
+ # resource path
2197
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2198
+
2199
+ # query parameters
2200
+ query_params = opts[:query_params] || {}
2201
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2202
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2203
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2204
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2205
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2206
+
2207
+ # header parameters
2208
+ header_params = opts[:header_params] || {}
2209
+ # HTTP header 'Accept' (if needed)
2210
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2211
+ # HTTP header 'Content-Type'
2212
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2213
+
2214
+ # form parameters
2215
+ form_params = opts[:form_params] || {}
2216
+
2217
+ # http body (model)
2218
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2219
+
2220
+ # return_type
2221
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicy'
2222
+
2223
+ # auth_names
2224
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2225
+
2226
+ new_options = opts.merge(
2227
+ :operation => :"AdmissionregistrationV1Api.patch_mutating_admission_policy",
2228
+ :header_params => header_params,
2229
+ :query_params => query_params,
2230
+ :form_params => form_params,
2231
+ :body => post_body,
2232
+ :auth_names => auth_names,
2233
+ :return_type => return_type
2234
+ )
2235
+
2236
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2237
+ if @api_client.config.debugging
2238
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#patch_mutating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2239
+ end
2240
+ return data, status_code, headers
2241
+ end
2242
+
2243
+ # partially update the specified MutatingAdmissionPolicyBinding
2244
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
2245
+ # @param body [Object]
2246
+ # @param [Hash] opts the optional parameters
2247
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2248
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2249
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
2250
+ # @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.
2251
+ # @option opts [Boolean] :force Force is going to \&quot;force\&quot; Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
2252
+ # @return [V1MutatingAdmissionPolicyBinding]
2253
+ def patch_mutating_admission_policy_binding(name, body, opts = {})
2254
+ data, _status_code, _headers = patch_mutating_admission_policy_binding_with_http_info(name, body, opts)
2255
+ data
2256
+ end
2257
+
2258
+ # partially update the specified MutatingAdmissionPolicyBinding
2259
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
2260
+ # @param body [Object]
2261
+ # @param [Hash] opts the optional parameters
2262
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2263
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
2264
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
2265
+ # @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.
2266
+ # @option opts [Boolean] :force Force is going to \&quot;force\&quot; Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
2267
+ # @return [Array<(V1MutatingAdmissionPolicyBinding, Integer, Hash)>] V1MutatingAdmissionPolicyBinding data, response status code and response headers
2268
+ def patch_mutating_admission_policy_binding_with_http_info(name, body, opts = {})
2269
+ if @api_client.config.debugging
2270
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.patch_mutating_admission_policy_binding ...'
2271
+ end
2272
+ # verify the required parameter 'name' is set
2273
+ if @api_client.config.client_side_validation && name.nil?
2274
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.patch_mutating_admission_policy_binding"
2275
+ end
2276
+ # verify the required parameter 'body' is set
2277
+ if @api_client.config.client_side_validation && body.nil?
2278
+ fail ArgumentError, "Missing the required parameter 'body' when calling AdmissionregistrationV1Api.patch_mutating_admission_policy_binding"
1389
2279
  end
1390
2280
  # resource path
1391
- local_var_path = '/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations'
2281
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1392
2282
 
1393
2283
  # query parameters
1394
2284
  query_params = opts[:query_params] || {}
1395
2285
  query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1396
- query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1397
- query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1398
- query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1399
- query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1400
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1401
- query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1402
- query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1403
- query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1404
- query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1405
- query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
2286
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2287
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2288
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2289
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1406
2290
 
1407
2291
  # header parameters
1408
2292
  header_params = opts[:header_params] || {}
1409
2293
  # HTTP header 'Accept' (if needed)
1410
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
2294
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2295
+ # HTTP header 'Content-Type'
2296
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
1411
2297
 
1412
2298
  # form parameters
1413
2299
  form_params = opts[:form_params] || {}
1414
2300
 
1415
2301
  # http body (model)
1416
- post_body = opts[:debug_body]
2302
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1417
2303
 
1418
2304
  # return_type
1419
- return_type = opts[:debug_return_type] || 'V1ValidatingWebhookConfigurationList'
2305
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicyBinding'
1420
2306
 
1421
2307
  # auth_names
1422
2308
  auth_names = opts[:debug_auth_names] || ['BearerToken']
1423
2309
 
1424
2310
  new_options = opts.merge(
1425
- :operation => :"AdmissionregistrationV1Api.list_validating_webhook_configuration",
2311
+ :operation => :"AdmissionregistrationV1Api.patch_mutating_admission_policy_binding",
1426
2312
  :header_params => header_params,
1427
2313
  :query_params => query_params,
1428
2314
  :form_params => form_params,
@@ -1431,9 +2317,9 @@ module Kubernetes
1431
2317
  :return_type => return_type
1432
2318
  )
1433
2319
 
1434
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2320
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1435
2321
  if @api_client.config.debugging
1436
- @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#list_validating_webhook_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2322
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#patch_mutating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1437
2323
  end
1438
2324
  return data, status_code, headers
1439
2325
  end
@@ -1858,6 +2744,134 @@ module Kubernetes
1858
2744
  return data, status_code, headers
1859
2745
  end
1860
2746
 
2747
+ # read the specified MutatingAdmissionPolicy
2748
+ # @param name [String] name of the MutatingAdmissionPolicy
2749
+ # @param [Hash] opts the optional parameters
2750
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2751
+ # @return [V1MutatingAdmissionPolicy]
2752
+ def read_mutating_admission_policy(name, opts = {})
2753
+ data, _status_code, _headers = read_mutating_admission_policy_with_http_info(name, opts)
2754
+ data
2755
+ end
2756
+
2757
+ # read the specified MutatingAdmissionPolicy
2758
+ # @param name [String] name of the MutatingAdmissionPolicy
2759
+ # @param [Hash] opts the optional parameters
2760
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2761
+ # @return [Array<(V1MutatingAdmissionPolicy, Integer, Hash)>] V1MutatingAdmissionPolicy data, response status code and response headers
2762
+ def read_mutating_admission_policy_with_http_info(name, opts = {})
2763
+ if @api_client.config.debugging
2764
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.read_mutating_admission_policy ...'
2765
+ end
2766
+ # verify the required parameter 'name' is set
2767
+ if @api_client.config.client_side_validation && name.nil?
2768
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.read_mutating_admission_policy"
2769
+ end
2770
+ # resource path
2771
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2772
+
2773
+ # query parameters
2774
+ query_params = opts[:query_params] || {}
2775
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2776
+
2777
+ # header parameters
2778
+ header_params = opts[:header_params] || {}
2779
+ # HTTP header 'Accept' (if needed)
2780
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2781
+
2782
+ # form parameters
2783
+ form_params = opts[:form_params] || {}
2784
+
2785
+ # http body (model)
2786
+ post_body = opts[:debug_body]
2787
+
2788
+ # return_type
2789
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicy'
2790
+
2791
+ # auth_names
2792
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2793
+
2794
+ new_options = opts.merge(
2795
+ :operation => :"AdmissionregistrationV1Api.read_mutating_admission_policy",
2796
+ :header_params => header_params,
2797
+ :query_params => query_params,
2798
+ :form_params => form_params,
2799
+ :body => post_body,
2800
+ :auth_names => auth_names,
2801
+ :return_type => return_type
2802
+ )
2803
+
2804
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2805
+ if @api_client.config.debugging
2806
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#read_mutating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2807
+ end
2808
+ return data, status_code, headers
2809
+ end
2810
+
2811
+ # read the specified MutatingAdmissionPolicyBinding
2812
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
2813
+ # @param [Hash] opts the optional parameters
2814
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2815
+ # @return [V1MutatingAdmissionPolicyBinding]
2816
+ def read_mutating_admission_policy_binding(name, opts = {})
2817
+ data, _status_code, _headers = read_mutating_admission_policy_binding_with_http_info(name, opts)
2818
+ data
2819
+ end
2820
+
2821
+ # read the specified MutatingAdmissionPolicyBinding
2822
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
2823
+ # @param [Hash] opts the optional parameters
2824
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2825
+ # @return [Array<(V1MutatingAdmissionPolicyBinding, Integer, Hash)>] V1MutatingAdmissionPolicyBinding data, response status code and response headers
2826
+ def read_mutating_admission_policy_binding_with_http_info(name, opts = {})
2827
+ if @api_client.config.debugging
2828
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.read_mutating_admission_policy_binding ...'
2829
+ end
2830
+ # verify the required parameter 'name' is set
2831
+ if @api_client.config.client_side_validation && name.nil?
2832
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.read_mutating_admission_policy_binding"
2833
+ end
2834
+ # resource path
2835
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2836
+
2837
+ # query parameters
2838
+ query_params = opts[:query_params] || {}
2839
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2840
+
2841
+ # header parameters
2842
+ header_params = opts[:header_params] || {}
2843
+ # HTTP header 'Accept' (if needed)
2844
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2845
+
2846
+ # form parameters
2847
+ form_params = opts[:form_params] || {}
2848
+
2849
+ # http body (model)
2850
+ post_body = opts[:debug_body]
2851
+
2852
+ # return_type
2853
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicyBinding'
2854
+
2855
+ # auth_names
2856
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2857
+
2858
+ new_options = opts.merge(
2859
+ :operation => :"AdmissionregistrationV1Api.read_mutating_admission_policy_binding",
2860
+ :header_params => header_params,
2861
+ :query_params => query_params,
2862
+ :form_params => form_params,
2863
+ :body => post_body,
2864
+ :auth_names => auth_names,
2865
+ :return_type => return_type
2866
+ )
2867
+
2868
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2869
+ if @api_client.config.debugging
2870
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#read_mutating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2871
+ end
2872
+ return data, status_code, headers
2873
+ end
2874
+
1861
2875
  # read the specified MutatingWebhookConfiguration
1862
2876
  # @param name [String] name of the MutatingWebhookConfiguration
1863
2877
  # @param [Hash] opts the optional parameters
@@ -2178,6 +3192,164 @@ module Kubernetes
2178
3192
  return data, status_code, headers
2179
3193
  end
2180
3194
 
3195
+ # replace the specified MutatingAdmissionPolicy
3196
+ # @param name [String] name of the MutatingAdmissionPolicy
3197
+ # @param body [V1MutatingAdmissionPolicy]
3198
+ # @param [Hash] opts the optional parameters
3199
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3200
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
3201
+ # @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.
3202
+ # @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.
3203
+ # @return [V1MutatingAdmissionPolicy]
3204
+ def replace_mutating_admission_policy(name, body, opts = {})
3205
+ data, _status_code, _headers = replace_mutating_admission_policy_with_http_info(name, body, opts)
3206
+ data
3207
+ end
3208
+
3209
+ # replace the specified MutatingAdmissionPolicy
3210
+ # @param name [String] name of the MutatingAdmissionPolicy
3211
+ # @param body [V1MutatingAdmissionPolicy]
3212
+ # @param [Hash] opts the optional parameters
3213
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3214
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
3215
+ # @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.
3216
+ # @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.
3217
+ # @return [Array<(V1MutatingAdmissionPolicy, Integer, Hash)>] V1MutatingAdmissionPolicy data, response status code and response headers
3218
+ def replace_mutating_admission_policy_with_http_info(name, body, opts = {})
3219
+ if @api_client.config.debugging
3220
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.replace_mutating_admission_policy ...'
3221
+ end
3222
+ # verify the required parameter 'name' is set
3223
+ if @api_client.config.client_side_validation && name.nil?
3224
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.replace_mutating_admission_policy"
3225
+ end
3226
+ # verify the required parameter 'body' is set
3227
+ if @api_client.config.client_side_validation && body.nil?
3228
+ fail ArgumentError, "Missing the required parameter 'body' when calling AdmissionregistrationV1Api.replace_mutating_admission_policy"
3229
+ end
3230
+ # resource path
3231
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
3232
+
3233
+ # query parameters
3234
+ query_params = opts[:query_params] || {}
3235
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3236
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3237
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3238
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3239
+
3240
+ # header parameters
3241
+ header_params = opts[:header_params] || {}
3242
+ # HTTP header 'Accept' (if needed)
3243
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3244
+
3245
+ # form parameters
3246
+ form_params = opts[:form_params] || {}
3247
+
3248
+ # http body (model)
3249
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3250
+
3251
+ # return_type
3252
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicy'
3253
+
3254
+ # auth_names
3255
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3256
+
3257
+ new_options = opts.merge(
3258
+ :operation => :"AdmissionregistrationV1Api.replace_mutating_admission_policy",
3259
+ :header_params => header_params,
3260
+ :query_params => query_params,
3261
+ :form_params => form_params,
3262
+ :body => post_body,
3263
+ :auth_names => auth_names,
3264
+ :return_type => return_type
3265
+ )
3266
+
3267
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3268
+ if @api_client.config.debugging
3269
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#replace_mutating_admission_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3270
+ end
3271
+ return data, status_code, headers
3272
+ end
3273
+
3274
+ # replace the specified MutatingAdmissionPolicyBinding
3275
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
3276
+ # @param body [V1MutatingAdmissionPolicyBinding]
3277
+ # @param [Hash] opts the optional parameters
3278
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3279
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
3280
+ # @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.
3281
+ # @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.
3282
+ # @return [V1MutatingAdmissionPolicyBinding]
3283
+ def replace_mutating_admission_policy_binding(name, body, opts = {})
3284
+ data, _status_code, _headers = replace_mutating_admission_policy_binding_with_http_info(name, body, opts)
3285
+ data
3286
+ end
3287
+
3288
+ # replace the specified MutatingAdmissionPolicyBinding
3289
+ # @param name [String] name of the MutatingAdmissionPolicyBinding
3290
+ # @param body [V1MutatingAdmissionPolicyBinding]
3291
+ # @param [Hash] opts the optional parameters
3292
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3293
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
3294
+ # @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.
3295
+ # @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.
3296
+ # @return [Array<(V1MutatingAdmissionPolicyBinding, Integer, Hash)>] V1MutatingAdmissionPolicyBinding data, response status code and response headers
3297
+ def replace_mutating_admission_policy_binding_with_http_info(name, body, opts = {})
3298
+ if @api_client.config.debugging
3299
+ @api_client.config.logger.debug 'Calling API: AdmissionregistrationV1Api.replace_mutating_admission_policy_binding ...'
3300
+ end
3301
+ # verify the required parameter 'name' is set
3302
+ if @api_client.config.client_side_validation && name.nil?
3303
+ fail ArgumentError, "Missing the required parameter 'name' when calling AdmissionregistrationV1Api.replace_mutating_admission_policy_binding"
3304
+ end
3305
+ # verify the required parameter 'body' is set
3306
+ if @api_client.config.client_side_validation && body.nil?
3307
+ fail ArgumentError, "Missing the required parameter 'body' when calling AdmissionregistrationV1Api.replace_mutating_admission_policy_binding"
3308
+ end
3309
+ # resource path
3310
+ local_var_path = '/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
3311
+
3312
+ # query parameters
3313
+ query_params = opts[:query_params] || {}
3314
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3315
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3316
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3317
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3318
+
3319
+ # header parameters
3320
+ header_params = opts[:header_params] || {}
3321
+ # HTTP header 'Accept' (if needed)
3322
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3323
+
3324
+ # form parameters
3325
+ form_params = opts[:form_params] || {}
3326
+
3327
+ # http body (model)
3328
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3329
+
3330
+ # return_type
3331
+ return_type = opts[:debug_return_type] || 'V1MutatingAdmissionPolicyBinding'
3332
+
3333
+ # auth_names
3334
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3335
+
3336
+ new_options = opts.merge(
3337
+ :operation => :"AdmissionregistrationV1Api.replace_mutating_admission_policy_binding",
3338
+ :header_params => header_params,
3339
+ :query_params => query_params,
3340
+ :form_params => form_params,
3341
+ :body => post_body,
3342
+ :auth_names => auth_names,
3343
+ :return_type => return_type
3344
+ )
3345
+
3346
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3347
+ if @api_client.config.debugging
3348
+ @api_client.config.logger.debug "API called: AdmissionregistrationV1Api#replace_mutating_admission_policy_binding\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3349
+ end
3350
+ return data, status_code, headers
3351
+ end
3352
+
2181
3353
  # replace the specified MutatingWebhookConfiguration
2182
3354
  # @param name [String] name of the MutatingWebhookConfiguration
2183
3355
  # @param body [V1MutatingWebhookConfiguration]