kruby 1.35.0.5 → 1.36.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +54 -32
  832. data/lib/kubernetes/api/scheduling_v1alpha1_api.rb +0 -775
@@ -0,0 +1,1736 @@
1
+ =begin
2
+ #Kubernetes
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: release-1.36
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Kubernetes
16
+ class SchedulingV1alpha2Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # create a PodGroup
23
+ # @param namespace [String] object name and auth scope, such as for teams and projects
24
+ # @param body [V1alpha2PodGroup]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
27
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
28
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
29
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
30
+ # @return [V1alpha2PodGroup]
31
+ def create_namespaced_pod_group(namespace, body, opts = {})
32
+ data, _status_code, _headers = create_namespaced_pod_group_with_http_info(namespace, body, opts)
33
+ data
34
+ end
35
+
36
+ # create a PodGroup
37
+ # @param namespace [String] object name and auth scope, such as for teams and projects
38
+ # @param body [V1alpha2PodGroup]
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
41
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
42
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
43
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
44
+ # @return [Array<(V1alpha2PodGroup, Integer, Hash)>] V1alpha2PodGroup data, response status code and response headers
45
+ def create_namespaced_pod_group_with_http_info(namespace, body, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.create_namespaced_pod_group ...'
48
+ end
49
+ # verify the required parameter 'namespace' is set
50
+ if @api_client.config.client_side_validation && namespace.nil?
51
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.create_namespaced_pod_group"
52
+ end
53
+ # verify the required parameter 'body' is set
54
+ if @api_client.config.client_side_validation && body.nil?
55
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.create_namespaced_pod_group"
56
+ end
57
+ # resource path
58
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
59
+
60
+ # query parameters
61
+ query_params = opts[:query_params] || {}
62
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
63
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
64
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
65
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
66
+
67
+ # header parameters
68
+ header_params = opts[:header_params] || {}
69
+ # HTTP header 'Accept' (if needed)
70
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
71
+
72
+ # form parameters
73
+ form_params = opts[:form_params] || {}
74
+
75
+ # http body (model)
76
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
77
+
78
+ # return_type
79
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroup'
80
+
81
+ # auth_names
82
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
83
+
84
+ new_options = opts.merge(
85
+ :operation => :"SchedulingV1alpha2Api.create_namespaced_pod_group",
86
+ :header_params => header_params,
87
+ :query_params => query_params,
88
+ :form_params => form_params,
89
+ :body => post_body,
90
+ :auth_names => auth_names,
91
+ :return_type => return_type
92
+ )
93
+
94
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
95
+ if @api_client.config.debugging
96
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#create_namespaced_pod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ end
98
+ return data, status_code, headers
99
+ end
100
+
101
+ # create a Workload
102
+ # @param namespace [String] object name and auth scope, such as for teams and projects
103
+ # @param body [V1alpha2Workload]
104
+ # @param [Hash] opts the optional parameters
105
+ # @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).
106
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
107
+ # @option opts [String] :field_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.
108
+ # @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.
109
+ # @return [V1alpha2Workload]
110
+ def create_namespaced_workload(namespace, body, opts = {})
111
+ data, _status_code, _headers = create_namespaced_workload_with_http_info(namespace, body, opts)
112
+ data
113
+ end
114
+
115
+ # create a Workload
116
+ # @param namespace [String] object name and auth scope, such as for teams and projects
117
+ # @param body [V1alpha2Workload]
118
+ # @param [Hash] opts the optional parameters
119
+ # @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).
120
+ # @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
121
+ # @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.
122
+ # @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.
123
+ # @return [Array<(V1alpha2Workload, Integer, Hash)>] V1alpha2Workload data, response status code and response headers
124
+ def create_namespaced_workload_with_http_info(namespace, body, opts = {})
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.create_namespaced_workload ...'
127
+ end
128
+ # verify the required parameter 'namespace' is set
129
+ if @api_client.config.client_side_validation && namespace.nil?
130
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.create_namespaced_workload"
131
+ end
132
+ # verify the required parameter 'body' is set
133
+ if @api_client.config.client_side_validation && body.nil?
134
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.create_namespaced_workload"
135
+ end
136
+ # resource path
137
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
138
+
139
+ # query parameters
140
+ query_params = opts[:query_params] || {}
141
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
142
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
143
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
144
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
145
+
146
+ # header parameters
147
+ header_params = opts[:header_params] || {}
148
+ # HTTP header 'Accept' (if needed)
149
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
150
+
151
+ # form parameters
152
+ form_params = opts[:form_params] || {}
153
+
154
+ # http body (model)
155
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
156
+
157
+ # return_type
158
+ return_type = opts[:debug_return_type] || 'V1alpha2Workload'
159
+
160
+ # auth_names
161
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
162
+
163
+ new_options = opts.merge(
164
+ :operation => :"SchedulingV1alpha2Api.create_namespaced_workload",
165
+ :header_params => header_params,
166
+ :query_params => query_params,
167
+ :form_params => form_params,
168
+ :body => post_body,
169
+ :auth_names => auth_names,
170
+ :return_type => return_type
171
+ )
172
+
173
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#create_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+
180
+ # delete collection of PodGroup
181
+ # @param namespace [String] object name and auth scope, such as for teams and projects
182
+ # @param [Hash] opts the optional parameters
183
+ # @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).
184
+ # @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.
185
+ # @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
186
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
187
+ # @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.
188
+ # @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
189
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
190
+ # @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.
191
+ # @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.
192
+ # @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.
193
+ # @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
194
+ # @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
195
+ # @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.
196
+ # @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.
197
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
198
+ # @option opts [V1DeleteOptions] :body
199
+ # @return [V1Status]
200
+ def delete_collection_namespaced_pod_group(namespace, opts = {})
201
+ data, _status_code, _headers = delete_collection_namespaced_pod_group_with_http_info(namespace, opts)
202
+ data
203
+ end
204
+
205
+ # delete collection of PodGroup
206
+ # @param namespace [String] object name and auth scope, such as for teams and projects
207
+ # @param [Hash] opts the optional parameters
208
+ # @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).
209
+ # @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.
210
+ # @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
211
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
212
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
213
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
214
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
215
+ # @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.
216
+ # @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.
217
+ # @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.
218
+ # @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
219
+ # @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
220
+ # @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.
221
+ # @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.
222
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
223
+ # @option opts [V1DeleteOptions] :body
224
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
225
+ def delete_collection_namespaced_pod_group_with_http_info(namespace, opts = {})
226
+ if @api_client.config.debugging
227
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.delete_collection_namespaced_pod_group ...'
228
+ end
229
+ # verify the required parameter 'namespace' is set
230
+ if @api_client.config.client_side_validation && namespace.nil?
231
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.delete_collection_namespaced_pod_group"
232
+ end
233
+ # resource path
234
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
235
+
236
+ # query parameters
237
+ query_params = opts[:query_params] || {}
238
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
239
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
240
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
241
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
242
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
243
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
244
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
245
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
246
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
247
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
248
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
249
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
250
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
251
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
252
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
253
+
254
+ # header parameters
255
+ header_params = opts[:header_params] || {}
256
+ # HTTP header 'Accept' (if needed)
257
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
258
+
259
+ # form parameters
260
+ form_params = opts[:form_params] || {}
261
+
262
+ # http body (model)
263
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
264
+
265
+ # return_type
266
+ return_type = opts[:debug_return_type] || 'V1Status'
267
+
268
+ # auth_names
269
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
270
+
271
+ new_options = opts.merge(
272
+ :operation => :"SchedulingV1alpha2Api.delete_collection_namespaced_pod_group",
273
+ :header_params => header_params,
274
+ :query_params => query_params,
275
+ :form_params => form_params,
276
+ :body => post_body,
277
+ :auth_names => auth_names,
278
+ :return_type => return_type
279
+ )
280
+
281
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
282
+ if @api_client.config.debugging
283
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#delete_collection_namespaced_pod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
284
+ end
285
+ return data, status_code, headers
286
+ end
287
+
288
+ # delete collection of Workload
289
+ # @param namespace [String] object name and auth scope, such as for teams and projects
290
+ # @param [Hash] opts the optional parameters
291
+ # @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).
292
+ # @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.
293
+ # @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
294
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
295
+ # @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.
296
+ # @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
297
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
298
+ # @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.
299
+ # @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.
300
+ # @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.
301
+ # @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
302
+ # @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
303
+ # @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.
304
+ # @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.
305
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
306
+ # @option opts [V1DeleteOptions] :body
307
+ # @return [V1Status]
308
+ def delete_collection_namespaced_workload(namespace, opts = {})
309
+ data, _status_code, _headers = delete_collection_namespaced_workload_with_http_info(namespace, opts)
310
+ data
311
+ end
312
+
313
+ # delete collection of Workload
314
+ # @param namespace [String] object name and auth scope, such as for teams and projects
315
+ # @param [Hash] opts the optional parameters
316
+ # @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
+ # @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.
318
+ # @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
319
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
320
+ # @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.
321
+ # @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
322
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
323
+ # @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.
324
+ # @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.
325
+ # @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.
326
+ # @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
+ # @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
+ # @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.
329
+ # @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.
330
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
331
+ # @option opts [V1DeleteOptions] :body
332
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
333
+ def delete_collection_namespaced_workload_with_http_info(namespace, opts = {})
334
+ if @api_client.config.debugging
335
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.delete_collection_namespaced_workload ...'
336
+ end
337
+ # verify the required parameter 'namespace' is set
338
+ if @api_client.config.client_side_validation && namespace.nil?
339
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.delete_collection_namespaced_workload"
340
+ end
341
+ # resource path
342
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
343
+
344
+ # query parameters
345
+ query_params = opts[:query_params] || {}
346
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
347
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
348
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
349
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
350
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
351
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
352
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
353
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
354
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
355
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
356
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
357
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
358
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
359
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
360
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
361
+
362
+ # header parameters
363
+ header_params = opts[:header_params] || {}
364
+ # HTTP header 'Accept' (if needed)
365
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
366
+
367
+ # form parameters
368
+ form_params = opts[:form_params] || {}
369
+
370
+ # http body (model)
371
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
372
+
373
+ # return_type
374
+ return_type = opts[:debug_return_type] || 'V1Status'
375
+
376
+ # auth_names
377
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
378
+
379
+ new_options = opts.merge(
380
+ :operation => :"SchedulingV1alpha2Api.delete_collection_namespaced_workload",
381
+ :header_params => header_params,
382
+ :query_params => query_params,
383
+ :form_params => form_params,
384
+ :body => post_body,
385
+ :auth_names => auth_names,
386
+ :return_type => return_type
387
+ )
388
+
389
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#delete_collection_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ end
393
+ return data, status_code, headers
394
+ end
395
+
396
+ # delete a PodGroup
397
+ # @param name [String] name of the PodGroup
398
+ # @param namespace [String] object name and auth scope, such as for teams and projects
399
+ # @param [Hash] opts the optional parameters
400
+ # @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).
401
+ # @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
402
+ # @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.
403
+ # @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
404
+ # @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.
405
+ # @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.
406
+ # @option opts [V1DeleteOptions] :body
407
+ # @return [V1Status]
408
+ def delete_namespaced_pod_group(name, namespace, opts = {})
409
+ data, _status_code, _headers = delete_namespaced_pod_group_with_http_info(name, namespace, opts)
410
+ data
411
+ end
412
+
413
+ # delete a PodGroup
414
+ # @param name [String] name of the PodGroup
415
+ # @param namespace [String] object name and auth scope, such as for teams and projects
416
+ # @param [Hash] opts the optional parameters
417
+ # @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).
418
+ # @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
419
+ # @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.
420
+ # @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
421
+ # @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.
422
+ # @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.
423
+ # @option opts [V1DeleteOptions] :body
424
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
425
+ def delete_namespaced_pod_group_with_http_info(name, namespace, opts = {})
426
+ if @api_client.config.debugging
427
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.delete_namespaced_pod_group ...'
428
+ end
429
+ # verify the required parameter 'name' is set
430
+ if @api_client.config.client_side_validation && name.nil?
431
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.delete_namespaced_pod_group"
432
+ end
433
+ # verify the required parameter 'namespace' is set
434
+ if @api_client.config.client_side_validation && namespace.nil?
435
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.delete_namespaced_pod_group"
436
+ end
437
+ # resource path
438
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
439
+
440
+ # query parameters
441
+ query_params = opts[:query_params] || {}
442
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
443
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
444
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
445
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
446
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
447
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
448
+
449
+ # header parameters
450
+ header_params = opts[:header_params] || {}
451
+ # HTTP header 'Accept' (if needed)
452
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
453
+
454
+ # form parameters
455
+ form_params = opts[:form_params] || {}
456
+
457
+ # http body (model)
458
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
459
+
460
+ # return_type
461
+ return_type = opts[:debug_return_type] || 'V1Status'
462
+
463
+ # auth_names
464
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
465
+
466
+ new_options = opts.merge(
467
+ :operation => :"SchedulingV1alpha2Api.delete_namespaced_pod_group",
468
+ :header_params => header_params,
469
+ :query_params => query_params,
470
+ :form_params => form_params,
471
+ :body => post_body,
472
+ :auth_names => auth_names,
473
+ :return_type => return_type
474
+ )
475
+
476
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
477
+ if @api_client.config.debugging
478
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#delete_namespaced_pod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
479
+ end
480
+ return data, status_code, headers
481
+ end
482
+
483
+ # delete a Workload
484
+ # @param name [String] name of the Workload
485
+ # @param namespace [String] object name and auth scope, such as for teams and projects
486
+ # @param [Hash] opts the optional parameters
487
+ # @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).
488
+ # @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
489
+ # @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.
490
+ # @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
491
+ # @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.
492
+ # @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.
493
+ # @option opts [V1DeleteOptions] :body
494
+ # @return [V1Status]
495
+ def delete_namespaced_workload(name, namespace, opts = {})
496
+ data, _status_code, _headers = delete_namespaced_workload_with_http_info(name, namespace, opts)
497
+ data
498
+ end
499
+
500
+ # delete a Workload
501
+ # @param name [String] name of the Workload
502
+ # @param namespace [String] object name and auth scope, such as for teams and projects
503
+ # @param [Hash] opts the optional parameters
504
+ # @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).
505
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
506
+ # @option opts [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.
507
+ # @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
508
+ # @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.
509
+ # @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.
510
+ # @option opts [V1DeleteOptions] :body
511
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
512
+ def delete_namespaced_workload_with_http_info(name, namespace, opts = {})
513
+ if @api_client.config.debugging
514
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.delete_namespaced_workload ...'
515
+ end
516
+ # verify the required parameter 'name' is set
517
+ if @api_client.config.client_side_validation && name.nil?
518
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.delete_namespaced_workload"
519
+ end
520
+ # verify the required parameter 'namespace' is set
521
+ if @api_client.config.client_side_validation && namespace.nil?
522
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.delete_namespaced_workload"
523
+ end
524
+ # resource path
525
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
526
+
527
+ # query parameters
528
+ query_params = opts[:query_params] || {}
529
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
530
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
531
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
532
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
533
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
534
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
535
+
536
+ # header parameters
537
+ header_params = opts[:header_params] || {}
538
+ # HTTP header 'Accept' (if needed)
539
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
540
+
541
+ # form parameters
542
+ form_params = opts[:form_params] || {}
543
+
544
+ # http body (model)
545
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
546
+
547
+ # return_type
548
+ return_type = opts[:debug_return_type] || 'V1Status'
549
+
550
+ # auth_names
551
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
552
+
553
+ new_options = opts.merge(
554
+ :operation => :"SchedulingV1alpha2Api.delete_namespaced_workload",
555
+ :header_params => header_params,
556
+ :query_params => query_params,
557
+ :form_params => form_params,
558
+ :body => post_body,
559
+ :auth_names => auth_names,
560
+ :return_type => return_type
561
+ )
562
+
563
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
564
+ if @api_client.config.debugging
565
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#delete_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
566
+ end
567
+ return data, status_code, headers
568
+ end
569
+
570
+ # get available resources
571
+ # @param [Hash] opts the optional parameters
572
+ # @return [V1APIResourceList]
573
+ def get_api_resources_get_apis_scheduling_k8s_io_v1alpha2(opts = {})
574
+ data, _status_code, _headers = get_api_resources_get_apis_scheduling_k8s_io_v1alpha2_with_http_info(opts)
575
+ data
576
+ end
577
+
578
+ # get available resources
579
+ # @param [Hash] opts the optional parameters
580
+ # @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
581
+ def get_api_resources_get_apis_scheduling_k8s_io_v1alpha2_with_http_info(opts = {})
582
+ if @api_client.config.debugging
583
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.get_api_resources_get_apis_scheduling_k8s_io_v1alpha2 ...'
584
+ end
585
+ # resource path
586
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/'
587
+
588
+ # query parameters
589
+ query_params = opts[:query_params] || {}
590
+
591
+ # header parameters
592
+ header_params = opts[:header_params] || {}
593
+ # HTTP header 'Accept' (if needed)
594
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
595
+
596
+ # form parameters
597
+ form_params = opts[:form_params] || {}
598
+
599
+ # http body (model)
600
+ post_body = opts[:debug_body]
601
+
602
+ # return_type
603
+ return_type = opts[:debug_return_type] || 'V1APIResourceList'
604
+
605
+ # auth_names
606
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
607
+
608
+ new_options = opts.merge(
609
+ :operation => :"SchedulingV1alpha2Api.get_api_resources_get_apis_scheduling_k8s_io_v1alpha2",
610
+ :header_params => header_params,
611
+ :query_params => query_params,
612
+ :form_params => form_params,
613
+ :body => post_body,
614
+ :auth_names => auth_names,
615
+ :return_type => return_type
616
+ )
617
+
618
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
619
+ if @api_client.config.debugging
620
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#get_api_resources_get_apis_scheduling_k8s_io_v1alpha2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
621
+ end
622
+ return data, status_code, headers
623
+ end
624
+
625
+ # list or watch objects of kind PodGroup
626
+ # @param namespace [String] object name and auth scope, such as for teams and projects
627
+ # @param [Hash] opts the optional parameters
628
+ # @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).
629
+ # @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.
630
+ # @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.
631
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
632
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
633
+ # @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.
634
+ # @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
635
+ # @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
636
+ # @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.
637
+ # @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.
638
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
639
+ # @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.
640
+ # @return [V1alpha2PodGroupList]
641
+ def list_namespaced_pod_group(namespace, opts = {})
642
+ data, _status_code, _headers = list_namespaced_pod_group_with_http_info(namespace, opts)
643
+ data
644
+ end
645
+
646
+ # list or watch objects of kind PodGroup
647
+ # @param namespace [String] object name and auth scope, such as for teams and projects
648
+ # @param [Hash] opts the optional parameters
649
+ # @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).
650
+ # @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.
651
+ # @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.
652
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
653
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
654
+ # @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.
655
+ # @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
656
+ # @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
657
+ # @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.
658
+ # @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.
659
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
660
+ # @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.
661
+ # @return [Array<(V1alpha2PodGroupList, Integer, Hash)>] V1alpha2PodGroupList data, response status code and response headers
662
+ def list_namespaced_pod_group_with_http_info(namespace, opts = {})
663
+ if @api_client.config.debugging
664
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.list_namespaced_pod_group ...'
665
+ end
666
+ # verify the required parameter 'namespace' is set
667
+ if @api_client.config.client_side_validation && namespace.nil?
668
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.list_namespaced_pod_group"
669
+ end
670
+ # resource path
671
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
672
+
673
+ # query parameters
674
+ query_params = opts[:query_params] || {}
675
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
676
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
677
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
678
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
679
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
680
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
681
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
682
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
683
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
684
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
685
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
686
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
687
+
688
+ # header parameters
689
+ header_params = opts[:header_params] || {}
690
+ # HTTP header 'Accept' (if needed)
691
+ 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'])
692
+
693
+ # form parameters
694
+ form_params = opts[:form_params] || {}
695
+
696
+ # http body (model)
697
+ post_body = opts[:debug_body]
698
+
699
+ # return_type
700
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroupList'
701
+
702
+ # auth_names
703
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
704
+
705
+ new_options = opts.merge(
706
+ :operation => :"SchedulingV1alpha2Api.list_namespaced_pod_group",
707
+ :header_params => header_params,
708
+ :query_params => query_params,
709
+ :form_params => form_params,
710
+ :body => post_body,
711
+ :auth_names => auth_names,
712
+ :return_type => return_type
713
+ )
714
+
715
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
716
+ if @api_client.config.debugging
717
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#list_namespaced_pod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
718
+ end
719
+ return data, status_code, headers
720
+ end
721
+
722
+ # list or watch objects of kind Workload
723
+ # @param namespace [String] object name and auth scope, such as for teams and projects
724
+ # @param [Hash] opts the optional parameters
725
+ # @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).
726
+ # @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.
727
+ # @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.
728
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
729
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
730
+ # @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.
731
+ # @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
732
+ # @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
733
+ # @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.
734
+ # @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.
735
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
736
+ # @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.
737
+ # @return [V1alpha2WorkloadList]
738
+ def list_namespaced_workload(namespace, opts = {})
739
+ data, _status_code, _headers = list_namespaced_workload_with_http_info(namespace, opts)
740
+ data
741
+ end
742
+
743
+ # list or watch objects of kind Workload
744
+ # @param namespace [String] object name and auth scope, such as for teams and projects
745
+ # @param [Hash] opts the optional parameters
746
+ # @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).
747
+ # @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.
748
+ # @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.
749
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
750
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
751
+ # @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.
752
+ # @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
753
+ # @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
754
+ # @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.
755
+ # @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.
756
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
757
+ # @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.
758
+ # @return [Array<(V1alpha2WorkloadList, Integer, Hash)>] V1alpha2WorkloadList data, response status code and response headers
759
+ def list_namespaced_workload_with_http_info(namespace, opts = {})
760
+ if @api_client.config.debugging
761
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.list_namespaced_workload ...'
762
+ end
763
+ # verify the required parameter 'namespace' is set
764
+ if @api_client.config.client_side_validation && namespace.nil?
765
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.list_namespaced_workload"
766
+ end
767
+ # resource path
768
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
769
+
770
+ # query parameters
771
+ query_params = opts[:query_params] || {}
772
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
773
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
774
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
775
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
776
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
777
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
778
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
779
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
780
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
781
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
782
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
783
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
784
+
785
+ # header parameters
786
+ header_params = opts[:header_params] || {}
787
+ # HTTP header 'Accept' (if needed)
788
+ 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'])
789
+
790
+ # form parameters
791
+ form_params = opts[:form_params] || {}
792
+
793
+ # http body (model)
794
+ post_body = opts[:debug_body]
795
+
796
+ # return_type
797
+ return_type = opts[:debug_return_type] || 'V1alpha2WorkloadList'
798
+
799
+ # auth_names
800
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
801
+
802
+ new_options = opts.merge(
803
+ :operation => :"SchedulingV1alpha2Api.list_namespaced_workload",
804
+ :header_params => header_params,
805
+ :query_params => query_params,
806
+ :form_params => form_params,
807
+ :body => post_body,
808
+ :auth_names => auth_names,
809
+ :return_type => return_type
810
+ )
811
+
812
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
813
+ if @api_client.config.debugging
814
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#list_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
815
+ end
816
+ return data, status_code, headers
817
+ end
818
+
819
+ # list or watch objects of kind PodGroup
820
+ # @param [Hash] opts the optional parameters
821
+ # @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.
822
+ # @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.
823
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
824
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
825
+ # @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.
826
+ # @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).
827
+ # @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
828
+ # @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
829
+ # @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.
830
+ # @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.
831
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
832
+ # @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.
833
+ # @return [V1alpha2PodGroupList]
834
+ def list_pod_group_for_all_namespaces(opts = {})
835
+ data, _status_code, _headers = list_pod_group_for_all_namespaces_with_http_info(opts)
836
+ data
837
+ end
838
+
839
+ # list or watch objects of kind PodGroup
840
+ # @param [Hash] opts the optional parameters
841
+ # @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.
842
+ # @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.
843
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
844
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
845
+ # @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.
846
+ # @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).
847
+ # @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
848
+ # @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
849
+ # @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.
850
+ # @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.
851
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
852
+ # @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.
853
+ # @return [Array<(V1alpha2PodGroupList, Integer, Hash)>] V1alpha2PodGroupList data, response status code and response headers
854
+ def list_pod_group_for_all_namespaces_with_http_info(opts = {})
855
+ if @api_client.config.debugging
856
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.list_pod_group_for_all_namespaces ...'
857
+ end
858
+ # resource path
859
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/podgroups'
860
+
861
+ # query parameters
862
+ query_params = opts[:query_params] || {}
863
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
864
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
865
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
866
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
867
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
868
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
869
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
870
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
871
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
872
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
873
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
874
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
875
+
876
+ # header parameters
877
+ header_params = opts[:header_params] || {}
878
+ # HTTP header 'Accept' (if needed)
879
+ 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'])
880
+
881
+ # form parameters
882
+ form_params = opts[:form_params] || {}
883
+
884
+ # http body (model)
885
+ post_body = opts[:debug_body]
886
+
887
+ # return_type
888
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroupList'
889
+
890
+ # auth_names
891
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
892
+
893
+ new_options = opts.merge(
894
+ :operation => :"SchedulingV1alpha2Api.list_pod_group_for_all_namespaces",
895
+ :header_params => header_params,
896
+ :query_params => query_params,
897
+ :form_params => form_params,
898
+ :body => post_body,
899
+ :auth_names => auth_names,
900
+ :return_type => return_type
901
+ )
902
+
903
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
904
+ if @api_client.config.debugging
905
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#list_pod_group_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
906
+ end
907
+ return data, status_code, headers
908
+ end
909
+
910
+ # list or watch objects of kind Workload
911
+ # @param [Hash] opts the optional parameters
912
+ # @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.
913
+ # @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.
914
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
915
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
916
+ # @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.
917
+ # @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).
918
+ # @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
919
+ # @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
920
+ # @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.
921
+ # @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.
922
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
923
+ # @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.
924
+ # @return [V1alpha2WorkloadList]
925
+ def list_workload_for_all_namespaces(opts = {})
926
+ data, _status_code, _headers = list_workload_for_all_namespaces_with_http_info(opts)
927
+ data
928
+ end
929
+
930
+ # list or watch objects of kind Workload
931
+ # @param [Hash] opts the optional parameters
932
+ # @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.
933
+ # @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.
934
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
935
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
936
+ # @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.
937
+ # @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).
938
+ # @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
939
+ # @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
940
+ # @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.
941
+ # @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.
942
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
943
+ # @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.
944
+ # @return [Array<(V1alpha2WorkloadList, Integer, Hash)>] V1alpha2WorkloadList data, response status code and response headers
945
+ def list_workload_for_all_namespaces_with_http_info(opts = {})
946
+ if @api_client.config.debugging
947
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.list_workload_for_all_namespaces ...'
948
+ end
949
+ # resource path
950
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/workloads'
951
+
952
+ # query parameters
953
+ query_params = opts[:query_params] || {}
954
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
955
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
956
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
957
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
958
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
959
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
960
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
961
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
962
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
963
+ query_params[:'shardSelector'] = opts[:'shard_selector'] if !opts[:'shard_selector'].nil?
964
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
965
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
966
+
967
+ # header parameters
968
+ header_params = opts[:header_params] || {}
969
+ # HTTP header 'Accept' (if needed)
970
+ 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'])
971
+
972
+ # form parameters
973
+ form_params = opts[:form_params] || {}
974
+
975
+ # http body (model)
976
+ post_body = opts[:debug_body]
977
+
978
+ # return_type
979
+ return_type = opts[:debug_return_type] || 'V1alpha2WorkloadList'
980
+
981
+ # auth_names
982
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
983
+
984
+ new_options = opts.merge(
985
+ :operation => :"SchedulingV1alpha2Api.list_workload_for_all_namespaces",
986
+ :header_params => header_params,
987
+ :query_params => query_params,
988
+ :form_params => form_params,
989
+ :body => post_body,
990
+ :auth_names => auth_names,
991
+ :return_type => return_type
992
+ )
993
+
994
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
995
+ if @api_client.config.debugging
996
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#list_workload_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
997
+ end
998
+ return data, status_code, headers
999
+ end
1000
+
1001
+ # partially update the specified PodGroup
1002
+ # @param name [String] name of the PodGroup
1003
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1004
+ # @param body [Object]
1005
+ # @param [Hash] opts the optional parameters
1006
+ # @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).
1007
+ # @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
1008
+ # @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).
1009
+ # @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.
1010
+ # @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.
1011
+ # @return [V1alpha2PodGroup]
1012
+ def patch_namespaced_pod_group(name, namespace, body, opts = {})
1013
+ data, _status_code, _headers = patch_namespaced_pod_group_with_http_info(name, namespace, body, opts)
1014
+ data
1015
+ end
1016
+
1017
+ # partially update the specified PodGroup
1018
+ # @param name [String] name of the PodGroup
1019
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1020
+ # @param body [Object]
1021
+ # @param [Hash] opts the optional parameters
1022
+ # @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).
1023
+ # @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
1024
+ # @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).
1025
+ # @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.
1026
+ # @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.
1027
+ # @return [Array<(V1alpha2PodGroup, Integer, Hash)>] V1alpha2PodGroup data, response status code and response headers
1028
+ def patch_namespaced_pod_group_with_http_info(name, namespace, body, opts = {})
1029
+ if @api_client.config.debugging
1030
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.patch_namespaced_pod_group ...'
1031
+ end
1032
+ # verify the required parameter 'name' is set
1033
+ if @api_client.config.client_side_validation && name.nil?
1034
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.patch_namespaced_pod_group"
1035
+ end
1036
+ # verify the required parameter 'namespace' is set
1037
+ if @api_client.config.client_side_validation && namespace.nil?
1038
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.patch_namespaced_pod_group"
1039
+ end
1040
+ # verify the required parameter 'body' is set
1041
+ if @api_client.config.client_side_validation && body.nil?
1042
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.patch_namespaced_pod_group"
1043
+ end
1044
+ # resource path
1045
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1046
+
1047
+ # query parameters
1048
+ query_params = opts[:query_params] || {}
1049
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1050
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1051
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1052
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1053
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1054
+
1055
+ # header parameters
1056
+ header_params = opts[:header_params] || {}
1057
+ # HTTP header 'Accept' (if needed)
1058
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1059
+ # HTTP header 'Content-Type'
1060
+ 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'])
1061
+
1062
+ # form parameters
1063
+ form_params = opts[:form_params] || {}
1064
+
1065
+ # http body (model)
1066
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1067
+
1068
+ # return_type
1069
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroup'
1070
+
1071
+ # auth_names
1072
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1073
+
1074
+ new_options = opts.merge(
1075
+ :operation => :"SchedulingV1alpha2Api.patch_namespaced_pod_group",
1076
+ :header_params => header_params,
1077
+ :query_params => query_params,
1078
+ :form_params => form_params,
1079
+ :body => post_body,
1080
+ :auth_names => auth_names,
1081
+ :return_type => return_type
1082
+ )
1083
+
1084
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1085
+ if @api_client.config.debugging
1086
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#patch_namespaced_pod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
+ end
1088
+ return data, status_code, headers
1089
+ end
1090
+
1091
+ # partially update status of the specified PodGroup
1092
+ # @param name [String] name of the PodGroup
1093
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1094
+ # @param body [Object]
1095
+ # @param [Hash] opts the optional parameters
1096
+ # @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).
1097
+ # @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
1098
+ # @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).
1099
+ # @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.
1100
+ # @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.
1101
+ # @return [V1alpha2PodGroup]
1102
+ def patch_namespaced_pod_group_status(name, namespace, body, opts = {})
1103
+ data, _status_code, _headers = patch_namespaced_pod_group_status_with_http_info(name, namespace, body, opts)
1104
+ data
1105
+ end
1106
+
1107
+ # partially update status of the specified PodGroup
1108
+ # @param name [String] name of the PodGroup
1109
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1110
+ # @param body [Object]
1111
+ # @param [Hash] opts the optional parameters
1112
+ # @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).
1113
+ # @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
1114
+ # @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).
1115
+ # @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.
1116
+ # @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.
1117
+ # @return [Array<(V1alpha2PodGroup, Integer, Hash)>] V1alpha2PodGroup data, response status code and response headers
1118
+ def patch_namespaced_pod_group_status_with_http_info(name, namespace, body, opts = {})
1119
+ if @api_client.config.debugging
1120
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.patch_namespaced_pod_group_status ...'
1121
+ end
1122
+ # verify the required parameter 'name' is set
1123
+ if @api_client.config.client_side_validation && name.nil?
1124
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.patch_namespaced_pod_group_status"
1125
+ end
1126
+ # verify the required parameter 'namespace' is set
1127
+ if @api_client.config.client_side_validation && namespace.nil?
1128
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.patch_namespaced_pod_group_status"
1129
+ end
1130
+ # verify the required parameter 'body' is set
1131
+ if @api_client.config.client_side_validation && body.nil?
1132
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.patch_namespaced_pod_group_status"
1133
+ end
1134
+ # resource path
1135
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1136
+
1137
+ # query parameters
1138
+ query_params = opts[:query_params] || {}
1139
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1140
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1141
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1142
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1143
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1144
+
1145
+ # header parameters
1146
+ header_params = opts[:header_params] || {}
1147
+ # HTTP header 'Accept' (if needed)
1148
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1149
+ # HTTP header 'Content-Type'
1150
+ 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'])
1151
+
1152
+ # form parameters
1153
+ form_params = opts[:form_params] || {}
1154
+
1155
+ # http body (model)
1156
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1157
+
1158
+ # return_type
1159
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroup'
1160
+
1161
+ # auth_names
1162
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1163
+
1164
+ new_options = opts.merge(
1165
+ :operation => :"SchedulingV1alpha2Api.patch_namespaced_pod_group_status",
1166
+ :header_params => header_params,
1167
+ :query_params => query_params,
1168
+ :form_params => form_params,
1169
+ :body => post_body,
1170
+ :auth_names => auth_names,
1171
+ :return_type => return_type
1172
+ )
1173
+
1174
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1175
+ if @api_client.config.debugging
1176
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#patch_namespaced_pod_group_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1177
+ end
1178
+ return data, status_code, headers
1179
+ end
1180
+
1181
+ # partially update the specified Workload
1182
+ # @param name [String] name of the Workload
1183
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1184
+ # @param body [Object]
1185
+ # @param [Hash] opts the optional parameters
1186
+ # @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).
1187
+ # @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
1188
+ # @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).
1189
+ # @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.
1190
+ # @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.
1191
+ # @return [V1alpha2Workload]
1192
+ def patch_namespaced_workload(name, namespace, body, opts = {})
1193
+ data, _status_code, _headers = patch_namespaced_workload_with_http_info(name, namespace, body, opts)
1194
+ data
1195
+ end
1196
+
1197
+ # partially update the specified Workload
1198
+ # @param name [String] name of the Workload
1199
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1200
+ # @param body [Object]
1201
+ # @param [Hash] opts the optional parameters
1202
+ # @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).
1203
+ # @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
1204
+ # @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).
1205
+ # @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.
1206
+ # @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.
1207
+ # @return [Array<(V1alpha2Workload, Integer, Hash)>] V1alpha2Workload data, response status code and response headers
1208
+ def patch_namespaced_workload_with_http_info(name, namespace, body, opts = {})
1209
+ if @api_client.config.debugging
1210
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.patch_namespaced_workload ...'
1211
+ end
1212
+ # verify the required parameter 'name' is set
1213
+ if @api_client.config.client_side_validation && name.nil?
1214
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.patch_namespaced_workload"
1215
+ end
1216
+ # verify the required parameter 'namespace' is set
1217
+ if @api_client.config.client_side_validation && namespace.nil?
1218
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.patch_namespaced_workload"
1219
+ end
1220
+ # verify the required parameter 'body' is set
1221
+ if @api_client.config.client_side_validation && body.nil?
1222
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.patch_namespaced_workload"
1223
+ end
1224
+ # resource path
1225
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1226
+
1227
+ # query parameters
1228
+ query_params = opts[:query_params] || {}
1229
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1230
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1231
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1232
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1233
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1234
+
1235
+ # header parameters
1236
+ header_params = opts[:header_params] || {}
1237
+ # HTTP header 'Accept' (if needed)
1238
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1239
+ # HTTP header 'Content-Type'
1240
+ 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'])
1241
+
1242
+ # form parameters
1243
+ form_params = opts[:form_params] || {}
1244
+
1245
+ # http body (model)
1246
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1247
+
1248
+ # return_type
1249
+ return_type = opts[:debug_return_type] || 'V1alpha2Workload'
1250
+
1251
+ # auth_names
1252
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1253
+
1254
+ new_options = opts.merge(
1255
+ :operation => :"SchedulingV1alpha2Api.patch_namespaced_workload",
1256
+ :header_params => header_params,
1257
+ :query_params => query_params,
1258
+ :form_params => form_params,
1259
+ :body => post_body,
1260
+ :auth_names => auth_names,
1261
+ :return_type => return_type
1262
+ )
1263
+
1264
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1265
+ if @api_client.config.debugging
1266
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#patch_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1267
+ end
1268
+ return data, status_code, headers
1269
+ end
1270
+
1271
+ # read the specified PodGroup
1272
+ # @param name [String] name of the PodGroup
1273
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1274
+ # @param [Hash] opts the optional parameters
1275
+ # @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).
1276
+ # @return [V1alpha2PodGroup]
1277
+ def read_namespaced_pod_group(name, namespace, opts = {})
1278
+ data, _status_code, _headers = read_namespaced_pod_group_with_http_info(name, namespace, opts)
1279
+ data
1280
+ end
1281
+
1282
+ # read the specified PodGroup
1283
+ # @param name [String] name of the PodGroup
1284
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1285
+ # @param [Hash] opts the optional parameters
1286
+ # @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).
1287
+ # @return [Array<(V1alpha2PodGroup, Integer, Hash)>] V1alpha2PodGroup data, response status code and response headers
1288
+ def read_namespaced_pod_group_with_http_info(name, namespace, opts = {})
1289
+ if @api_client.config.debugging
1290
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.read_namespaced_pod_group ...'
1291
+ end
1292
+ # verify the required parameter 'name' is set
1293
+ if @api_client.config.client_side_validation && name.nil?
1294
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.read_namespaced_pod_group"
1295
+ end
1296
+ # verify the required parameter 'namespace' is set
1297
+ if @api_client.config.client_side_validation && namespace.nil?
1298
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.read_namespaced_pod_group"
1299
+ end
1300
+ # resource path
1301
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1302
+
1303
+ # query parameters
1304
+ query_params = opts[:query_params] || {}
1305
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1306
+
1307
+ # header parameters
1308
+ header_params = opts[:header_params] || {}
1309
+ # HTTP header 'Accept' (if needed)
1310
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1311
+
1312
+ # form parameters
1313
+ form_params = opts[:form_params] || {}
1314
+
1315
+ # http body (model)
1316
+ post_body = opts[:debug_body]
1317
+
1318
+ # return_type
1319
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroup'
1320
+
1321
+ # auth_names
1322
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1323
+
1324
+ new_options = opts.merge(
1325
+ :operation => :"SchedulingV1alpha2Api.read_namespaced_pod_group",
1326
+ :header_params => header_params,
1327
+ :query_params => query_params,
1328
+ :form_params => form_params,
1329
+ :body => post_body,
1330
+ :auth_names => auth_names,
1331
+ :return_type => return_type
1332
+ )
1333
+
1334
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1335
+ if @api_client.config.debugging
1336
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#read_namespaced_pod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1337
+ end
1338
+ return data, status_code, headers
1339
+ end
1340
+
1341
+ # read status of the specified PodGroup
1342
+ # @param name [String] name of the PodGroup
1343
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1344
+ # @param [Hash] opts the optional parameters
1345
+ # @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).
1346
+ # @return [V1alpha2PodGroup]
1347
+ def read_namespaced_pod_group_status(name, namespace, opts = {})
1348
+ data, _status_code, _headers = read_namespaced_pod_group_status_with_http_info(name, namespace, opts)
1349
+ data
1350
+ end
1351
+
1352
+ # read status of the specified PodGroup
1353
+ # @param name [String] name of the PodGroup
1354
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @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).
1357
+ # @return [Array<(V1alpha2PodGroup, Integer, Hash)>] V1alpha2PodGroup data, response status code and response headers
1358
+ def read_namespaced_pod_group_status_with_http_info(name, namespace, opts = {})
1359
+ if @api_client.config.debugging
1360
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.read_namespaced_pod_group_status ...'
1361
+ end
1362
+ # verify the required parameter 'name' is set
1363
+ if @api_client.config.client_side_validation && name.nil?
1364
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.read_namespaced_pod_group_status"
1365
+ end
1366
+ # verify the required parameter 'namespace' is set
1367
+ if @api_client.config.client_side_validation && namespace.nil?
1368
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.read_namespaced_pod_group_status"
1369
+ end
1370
+ # resource path
1371
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1372
+
1373
+ # query parameters
1374
+ query_params = opts[:query_params] || {}
1375
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1376
+
1377
+ # header parameters
1378
+ header_params = opts[:header_params] || {}
1379
+ # HTTP header 'Accept' (if needed)
1380
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1381
+
1382
+ # form parameters
1383
+ form_params = opts[:form_params] || {}
1384
+
1385
+ # http body (model)
1386
+ post_body = opts[:debug_body]
1387
+
1388
+ # return_type
1389
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroup'
1390
+
1391
+ # auth_names
1392
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1393
+
1394
+ new_options = opts.merge(
1395
+ :operation => :"SchedulingV1alpha2Api.read_namespaced_pod_group_status",
1396
+ :header_params => header_params,
1397
+ :query_params => query_params,
1398
+ :form_params => form_params,
1399
+ :body => post_body,
1400
+ :auth_names => auth_names,
1401
+ :return_type => return_type
1402
+ )
1403
+
1404
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1405
+ if @api_client.config.debugging
1406
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#read_namespaced_pod_group_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1407
+ end
1408
+ return data, status_code, headers
1409
+ end
1410
+
1411
+ # read the specified Workload
1412
+ # @param name [String] name of the Workload
1413
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1414
+ # @param [Hash] opts the optional parameters
1415
+ # @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).
1416
+ # @return [V1alpha2Workload]
1417
+ def read_namespaced_workload(name, namespace, opts = {})
1418
+ data, _status_code, _headers = read_namespaced_workload_with_http_info(name, namespace, opts)
1419
+ data
1420
+ end
1421
+
1422
+ # read the specified Workload
1423
+ # @param name [String] name of the Workload
1424
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1425
+ # @param [Hash] opts the optional parameters
1426
+ # @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).
1427
+ # @return [Array<(V1alpha2Workload, Integer, Hash)>] V1alpha2Workload data, response status code and response headers
1428
+ def read_namespaced_workload_with_http_info(name, namespace, opts = {})
1429
+ if @api_client.config.debugging
1430
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.read_namespaced_workload ...'
1431
+ end
1432
+ # verify the required parameter 'name' is set
1433
+ if @api_client.config.client_side_validation && name.nil?
1434
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.read_namespaced_workload"
1435
+ end
1436
+ # verify the required parameter 'namespace' is set
1437
+ if @api_client.config.client_side_validation && namespace.nil?
1438
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.read_namespaced_workload"
1439
+ end
1440
+ # resource path
1441
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1442
+
1443
+ # query parameters
1444
+ query_params = opts[:query_params] || {}
1445
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1446
+
1447
+ # header parameters
1448
+ header_params = opts[:header_params] || {}
1449
+ # HTTP header 'Accept' (if needed)
1450
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1451
+
1452
+ # form parameters
1453
+ form_params = opts[:form_params] || {}
1454
+
1455
+ # http body (model)
1456
+ post_body = opts[:debug_body]
1457
+
1458
+ # return_type
1459
+ return_type = opts[:debug_return_type] || 'V1alpha2Workload'
1460
+
1461
+ # auth_names
1462
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1463
+
1464
+ new_options = opts.merge(
1465
+ :operation => :"SchedulingV1alpha2Api.read_namespaced_workload",
1466
+ :header_params => header_params,
1467
+ :query_params => query_params,
1468
+ :form_params => form_params,
1469
+ :body => post_body,
1470
+ :auth_names => auth_names,
1471
+ :return_type => return_type
1472
+ )
1473
+
1474
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1475
+ if @api_client.config.debugging
1476
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#read_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1477
+ end
1478
+ return data, status_code, headers
1479
+ end
1480
+
1481
+ # replace the specified PodGroup
1482
+ # @param name [String] name of the PodGroup
1483
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1484
+ # @param body [V1alpha2PodGroup]
1485
+ # @param [Hash] opts the optional parameters
1486
+ # @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).
1487
+ # @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
1488
+ # @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.
1489
+ # @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.
1490
+ # @return [V1alpha2PodGroup]
1491
+ def replace_namespaced_pod_group(name, namespace, body, opts = {})
1492
+ data, _status_code, _headers = replace_namespaced_pod_group_with_http_info(name, namespace, body, opts)
1493
+ data
1494
+ end
1495
+
1496
+ # replace the specified PodGroup
1497
+ # @param name [String] name of the PodGroup
1498
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1499
+ # @param body [V1alpha2PodGroup]
1500
+ # @param [Hash] opts the optional parameters
1501
+ # @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).
1502
+ # @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
1503
+ # @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.
1504
+ # @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.
1505
+ # @return [Array<(V1alpha2PodGroup, Integer, Hash)>] V1alpha2PodGroup data, response status code and response headers
1506
+ def replace_namespaced_pod_group_with_http_info(name, namespace, body, opts = {})
1507
+ if @api_client.config.debugging
1508
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.replace_namespaced_pod_group ...'
1509
+ end
1510
+ # verify the required parameter 'name' is set
1511
+ if @api_client.config.client_side_validation && name.nil?
1512
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.replace_namespaced_pod_group"
1513
+ end
1514
+ # verify the required parameter 'namespace' is set
1515
+ if @api_client.config.client_side_validation && namespace.nil?
1516
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.replace_namespaced_pod_group"
1517
+ end
1518
+ # verify the required parameter 'body' is set
1519
+ if @api_client.config.client_side_validation && body.nil?
1520
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.replace_namespaced_pod_group"
1521
+ end
1522
+ # resource path
1523
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1524
+
1525
+ # query parameters
1526
+ query_params = opts[:query_params] || {}
1527
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1528
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1529
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1530
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1531
+
1532
+ # header parameters
1533
+ header_params = opts[:header_params] || {}
1534
+ # HTTP header 'Accept' (if needed)
1535
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1536
+
1537
+ # form parameters
1538
+ form_params = opts[:form_params] || {}
1539
+
1540
+ # http body (model)
1541
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1542
+
1543
+ # return_type
1544
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroup'
1545
+
1546
+ # auth_names
1547
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1548
+
1549
+ new_options = opts.merge(
1550
+ :operation => :"SchedulingV1alpha2Api.replace_namespaced_pod_group",
1551
+ :header_params => header_params,
1552
+ :query_params => query_params,
1553
+ :form_params => form_params,
1554
+ :body => post_body,
1555
+ :auth_names => auth_names,
1556
+ :return_type => return_type
1557
+ )
1558
+
1559
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1560
+ if @api_client.config.debugging
1561
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#replace_namespaced_pod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1562
+ end
1563
+ return data, status_code, headers
1564
+ end
1565
+
1566
+ # replace status of the specified PodGroup
1567
+ # @param name [String] name of the PodGroup
1568
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1569
+ # @param body [V1alpha2PodGroup]
1570
+ # @param [Hash] opts the optional parameters
1571
+ # @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).
1572
+ # @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
1573
+ # @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.
1574
+ # @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.
1575
+ # @return [V1alpha2PodGroup]
1576
+ def replace_namespaced_pod_group_status(name, namespace, body, opts = {})
1577
+ data, _status_code, _headers = replace_namespaced_pod_group_status_with_http_info(name, namespace, body, opts)
1578
+ data
1579
+ end
1580
+
1581
+ # replace status of the specified PodGroup
1582
+ # @param name [String] name of the PodGroup
1583
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1584
+ # @param body [V1alpha2PodGroup]
1585
+ # @param [Hash] opts the optional parameters
1586
+ # @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).
1587
+ # @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
1588
+ # @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.
1589
+ # @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.
1590
+ # @return [Array<(V1alpha2PodGroup, Integer, Hash)>] V1alpha2PodGroup data, response status code and response headers
1591
+ def replace_namespaced_pod_group_status_with_http_info(name, namespace, body, opts = {})
1592
+ if @api_client.config.debugging
1593
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.replace_namespaced_pod_group_status ...'
1594
+ end
1595
+ # verify the required parameter 'name' is set
1596
+ if @api_client.config.client_side_validation && name.nil?
1597
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.replace_namespaced_pod_group_status"
1598
+ end
1599
+ # verify the required parameter 'namespace' is set
1600
+ if @api_client.config.client_side_validation && namespace.nil?
1601
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.replace_namespaced_pod_group_status"
1602
+ end
1603
+ # verify the required parameter 'body' is set
1604
+ if @api_client.config.client_side_validation && body.nil?
1605
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.replace_namespaced_pod_group_status"
1606
+ end
1607
+ # resource path
1608
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1609
+
1610
+ # query parameters
1611
+ query_params = opts[:query_params] || {}
1612
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1613
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1614
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1615
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1616
+
1617
+ # header parameters
1618
+ header_params = opts[:header_params] || {}
1619
+ # HTTP header 'Accept' (if needed)
1620
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1621
+
1622
+ # form parameters
1623
+ form_params = opts[:form_params] || {}
1624
+
1625
+ # http body (model)
1626
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1627
+
1628
+ # return_type
1629
+ return_type = opts[:debug_return_type] || 'V1alpha2PodGroup'
1630
+
1631
+ # auth_names
1632
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1633
+
1634
+ new_options = opts.merge(
1635
+ :operation => :"SchedulingV1alpha2Api.replace_namespaced_pod_group_status",
1636
+ :header_params => header_params,
1637
+ :query_params => query_params,
1638
+ :form_params => form_params,
1639
+ :body => post_body,
1640
+ :auth_names => auth_names,
1641
+ :return_type => return_type
1642
+ )
1643
+
1644
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1645
+ if @api_client.config.debugging
1646
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#replace_namespaced_pod_group_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1647
+ end
1648
+ return data, status_code, headers
1649
+ end
1650
+
1651
+ # replace the specified Workload
1652
+ # @param name [String] name of the Workload
1653
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1654
+ # @param body [V1alpha2Workload]
1655
+ # @param [Hash] opts the optional parameters
1656
+ # @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).
1657
+ # @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
1658
+ # @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.
1659
+ # @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.
1660
+ # @return [V1alpha2Workload]
1661
+ def replace_namespaced_workload(name, namespace, body, opts = {})
1662
+ data, _status_code, _headers = replace_namespaced_workload_with_http_info(name, namespace, body, opts)
1663
+ data
1664
+ end
1665
+
1666
+ # replace the specified Workload
1667
+ # @param name [String] name of the Workload
1668
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1669
+ # @param body [V1alpha2Workload]
1670
+ # @param [Hash] opts the optional parameters
1671
+ # @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).
1672
+ # @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
1673
+ # @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.
1674
+ # @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.
1675
+ # @return [Array<(V1alpha2Workload, Integer, Hash)>] V1alpha2Workload data, response status code and response headers
1676
+ def replace_namespaced_workload_with_http_info(name, namespace, body, opts = {})
1677
+ if @api_client.config.debugging
1678
+ @api_client.config.logger.debug 'Calling API: SchedulingV1alpha2Api.replace_namespaced_workload ...'
1679
+ end
1680
+ # verify the required parameter 'name' is set
1681
+ if @api_client.config.client_side_validation && name.nil?
1682
+ fail ArgumentError, "Missing the required parameter 'name' when calling SchedulingV1alpha2Api.replace_namespaced_workload"
1683
+ end
1684
+ # verify the required parameter 'namespace' is set
1685
+ if @api_client.config.client_side_validation && namespace.nil?
1686
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling SchedulingV1alpha2Api.replace_namespaced_workload"
1687
+ end
1688
+ # verify the required parameter 'body' is set
1689
+ if @api_client.config.client_side_validation && body.nil?
1690
+ fail ArgumentError, "Missing the required parameter 'body' when calling SchedulingV1alpha2Api.replace_namespaced_workload"
1691
+ end
1692
+ # resource path
1693
+ local_var_path = '/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1694
+
1695
+ # query parameters
1696
+ query_params = opts[:query_params] || {}
1697
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1698
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1699
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1700
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1701
+
1702
+ # header parameters
1703
+ header_params = opts[:header_params] || {}
1704
+ # HTTP header 'Accept' (if needed)
1705
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1706
+
1707
+ # form parameters
1708
+ form_params = opts[:form_params] || {}
1709
+
1710
+ # http body (model)
1711
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1712
+
1713
+ # return_type
1714
+ return_type = opts[:debug_return_type] || 'V1alpha2Workload'
1715
+
1716
+ # auth_names
1717
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1718
+
1719
+ new_options = opts.merge(
1720
+ :operation => :"SchedulingV1alpha2Api.replace_namespaced_workload",
1721
+ :header_params => header_params,
1722
+ :query_params => query_params,
1723
+ :form_params => form_params,
1724
+ :body => post_body,
1725
+ :auth_names => auth_names,
1726
+ :return_type => return_type
1727
+ )
1728
+
1729
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1730
+ if @api_client.config.debugging
1731
+ @api_client.config.logger.debug "API called: SchedulingV1alpha2Api#replace_namespaced_workload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1732
+ end
1733
+ return data, status_code, headers
1734
+ end
1735
+ end
1736
+ end