kruby 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (812) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +1722 -0
  4. data/lib/kruby.rb +3 -0
  5. data/lib/kubernetes/api/admissionregistration_api.rb +77 -0
  6. data/lib/kubernetes/api/admissionregistration_v1_api.rb +2576 -0
  7. data/lib/kubernetes/api/admissionregistration_v1alpha1_api.rb +1213 -0
  8. data/lib/kubernetes/api/admissionregistration_v1beta1_api.rb +1213 -0
  9. data/lib/kubernetes/api/apiextensions_api.rb +77 -0
  10. data/lib/kubernetes/api/apiextensions_v1_api.rb +872 -0
  11. data/lib/kubernetes/api/apiregistration_api.rb +77 -0
  12. data/lib/kubernetes/api/apiregistration_v1_api.rb +872 -0
  13. data/lib/kubernetes/api/apis_api.rb +77 -0
  14. data/lib/kubernetes/api/apps_api.rb +77 -0
  15. data/lib/kubernetes/api/apps_v1_api.rb +5282 -0
  16. data/lib/kubernetes/api/authentication_api.rb +77 -0
  17. data/lib/kubernetes/api/authentication_v1_api.rb +223 -0
  18. data/lib/kubernetes/api/authorization_api.rb +77 -0
  19. data/lib/kubernetes/api/authorization_v1_api.rb +375 -0
  20. data/lib/kubernetes/api/autoscaling_api.rb +77 -0
  21. data/lib/kubernetes/api/autoscaling_v1_api.rb +1020 -0
  22. data/lib/kubernetes/api/autoscaling_v2_api.rb +1020 -0
  23. data/lib/kubernetes/api/batch_api.rb +77 -0
  24. data/lib/kubernetes/api/batch_v1_api.rb +1963 -0
  25. data/lib/kubernetes/api/certificates_api.rb +77 -0
  26. data/lib/kubernetes/api/certificates_v1_api.rb +1099 -0
  27. data/lib/kubernetes/api/certificates_v1alpha1_api.rb +645 -0
  28. data/lib/kubernetes/api/certificates_v1beta1_api.rb +1588 -0
  29. data/lib/kubernetes/api/coordination_api.rb +77 -0
  30. data/lib/kubernetes/api/coordination_v1_api.rb +775 -0
  31. data/lib/kubernetes/api/coordination_v1alpha2_api.rb +775 -0
  32. data/lib/kubernetes/api/coordination_v1beta1_api.rb +775 -0
  33. data/lib/kubernetes/api/core_api.rb +77 -0
  34. data/lib/kubernetes/api/core_v1_api.rb +16817 -0
  35. data/lib/kubernetes/api/custom_objects_api.rb +2665 -0
  36. data/lib/kubernetes/api/discovery_api.rb +77 -0
  37. data/lib/kubernetes/api/discovery_v1_api.rb +775 -0
  38. data/lib/kubernetes/api/events_api.rb +77 -0
  39. data/lib/kubernetes/api/events_v1_api.rb +775 -0
  40. data/lib/kubernetes/api/flowcontrol_apiserver_api.rb +77 -0
  41. data/lib/kubernetes/api/flowcontrol_apiserver_v1_api.rb +1667 -0
  42. data/lib/kubernetes/api/internal_apiserver_api.rb +77 -0
  43. data/lib/kubernetes/api/internal_apiserver_v1alpha1_api.rb +872 -0
  44. data/lib/kubernetes/api/logs_api.rb +130 -0
  45. data/lib/kubernetes/api/networking_api.rb +77 -0
  46. data/lib/kubernetes/api/networking_v1_api.rb +3649 -0
  47. data/lib/kubernetes/api/networking_v1beta1_api.rb +1440 -0
  48. data/lib/kubernetes/api/node_api.rb +77 -0
  49. data/lib/kubernetes/api/node_v1_api.rb +645 -0
  50. data/lib/kubernetes/api/openid_api.rb +77 -0
  51. data/lib/kubernetes/api/policy_api.rb +77 -0
  52. data/lib/kubernetes/api/policy_v1_api.rb +1020 -0
  53. data/lib/kubernetes/api/rbac_authorization_api.rb +77 -0
  54. data/lib/kubernetes/api/rbac_authorization_v1_api.rb +2609 -0
  55. data/lib/kubernetes/api/resource_api.rb +77 -0
  56. data/lib/kubernetes/api/resource_v1_api.rb +2854 -0
  57. data/lib/kubernetes/api/resource_v1alpha3_api.rb +872 -0
  58. data/lib/kubernetes/api/resource_v1beta1_api.rb +2854 -0
  59. data/lib/kubernetes/api/resource_v1beta2_api.rb +2854 -0
  60. data/lib/kubernetes/api/scheduling_api.rb +77 -0
  61. data/lib/kubernetes/api/scheduling_v1_api.rb +645 -0
  62. data/lib/kubernetes/api/scheduling_v1alpha1_api.rb +775 -0
  63. data/lib/kubernetes/api/storage_api.rb +77 -0
  64. data/lib/kubernetes/api/storage_v1_api.rb +3842 -0
  65. data/lib/kubernetes/api/storage_v1beta1_api.rb +645 -0
  66. data/lib/kubernetes/api/storagemigration_api.rb +77 -0
  67. data/lib/kubernetes/api/storagemigration_v1beta1_api.rb +872 -0
  68. data/lib/kubernetes/api/version_api.rb +77 -0
  69. data/lib/kubernetes/api/well_known_api.rb +77 -0
  70. data/lib/kubernetes/api_client.rb +390 -0
  71. data/lib/kubernetes/api_error.rb +57 -0
  72. data/lib/kubernetes/config/error.rb +17 -0
  73. data/lib/kubernetes/config/incluster_config.rb +106 -0
  74. data/lib/kubernetes/config/kube_config.rb +171 -0
  75. data/lib/kubernetes/configuration.rb +277 -0
  76. data/lib/kubernetes/loader.rb +4 -0
  77. data/lib/kubernetes/models/admissionregistration_v1_service_reference.rb +260 -0
  78. data/lib/kubernetes/models/admissionregistration_v1_webhook_client_config.rb +256 -0
  79. data/lib/kubernetes/models/apiextensions_v1_service_reference.rb +260 -0
  80. data/lib/kubernetes/models/apiextensions_v1_webhook_client_config.rb +256 -0
  81. data/lib/kubernetes/models/apiregistration_v1_service_reference.rb +240 -0
  82. data/lib/kubernetes/models/authentication_v1_token_request.rb +262 -0
  83. data/lib/kubernetes/models/core_v1_endpoint_port.rb +255 -0
  84. data/lib/kubernetes/models/core_v1_event.rb +385 -0
  85. data/lib/kubernetes/models/core_v1_event_list.rb +256 -0
  86. data/lib/kubernetes/models/core_v1_event_series.rb +230 -0
  87. data/lib/kubernetes/models/core_v1_resource_claim.rb +235 -0
  88. data/lib/kubernetes/models/discovery_v1_endpoint_port.rb +250 -0
  89. data/lib/kubernetes/models/events_v1_event.rb +380 -0
  90. data/lib/kubernetes/models/events_v1_event_list.rb +256 -0
  91. data/lib/kubernetes/models/events_v1_event_series.rb +240 -0
  92. data/lib/kubernetes/models/flowcontrol_v1_subject.rb +252 -0
  93. data/lib/kubernetes/models/rbac_v1_subject.rb +260 -0
  94. data/lib/kubernetes/models/resource_v1_resource_claim.rb +262 -0
  95. data/lib/kubernetes/models/storage_v1_token_request.rb +235 -0
  96. data/lib/kubernetes/models/v1_affinity.rb +237 -0
  97. data/lib/kubernetes/models/v1_aggregation_rule.rb +222 -0
  98. data/lib/kubernetes/models/v1_allocated_device_status.rb +296 -0
  99. data/lib/kubernetes/models/v1_allocation_result.rb +238 -0
  100. data/lib/kubernetes/models/v1_api_group.rb +283 -0
  101. data/lib/kubernetes/models/v1_api_group_list.rb +247 -0
  102. data/lib/kubernetes/models/v1_api_resource.rb +341 -0
  103. data/lib/kubernetes/models/v1_api_resource_list.rb +262 -0
  104. data/lib/kubernetes/models/v1_api_service.rb +257 -0
  105. data/lib/kubernetes/models/v1_api_service_condition.rb +270 -0
  106. data/lib/kubernetes/models/v1_api_service_list.rb +256 -0
  107. data/lib/kubernetes/models/v1_api_service_spec.rb +306 -0
  108. data/lib/kubernetes/models/v1_api_service_status.rb +222 -0
  109. data/lib/kubernetes/models/v1_api_versions.rb +264 -0
  110. data/lib/kubernetes/models/v1_app_armor_profile.rb +235 -0
  111. data/lib/kubernetes/models/v1_attached_volume.rb +240 -0
  112. data/lib/kubernetes/models/v1_audit_annotation.rb +240 -0
  113. data/lib/kubernetes/models/v1_aws_elastic_block_store_volume_source.rb +255 -0
  114. data/lib/kubernetes/models/v1_azure_disk_volume_source.rb +280 -0
  115. data/lib/kubernetes/models/v1_azure_file_persistent_volume_source.rb +260 -0
  116. data/lib/kubernetes/models/v1_azure_file_volume_source.rb +250 -0
  117. data/lib/kubernetes/models/v1_binding.rb +253 -0
  118. data/lib/kubernetes/models/v1_bound_object_reference.rb +250 -0
  119. data/lib/kubernetes/models/v1_capabilities.rb +234 -0
  120. data/lib/kubernetes/models/v1_capacity_request_policy.rb +241 -0
  121. data/lib/kubernetes/models/v1_capacity_request_policy_range.rb +245 -0
  122. data/lib/kubernetes/models/v1_capacity_requirements.rb +222 -0
  123. data/lib/kubernetes/models/v1_cel_device_selector.rb +225 -0
  124. data/lib/kubernetes/models/v1_ceph_fs_persistent_volume_source.rb +276 -0
  125. data/lib/kubernetes/models/v1_ceph_fs_volume_source.rb +276 -0
  126. data/lib/kubernetes/models/v1_certificate_signing_request.rb +262 -0
  127. data/lib/kubernetes/models/v1_certificate_signing_request_condition.rb +280 -0
  128. data/lib/kubernetes/models/v1_certificate_signing_request_list.rb +256 -0
  129. data/lib/kubernetes/models/v1_certificate_signing_request_spec.rb +327 -0
  130. data/lib/kubernetes/models/v1_certificate_signing_request_status.rb +249 -0
  131. data/lib/kubernetes/models/v1_cinder_persistent_volume_source.rb +254 -0
  132. data/lib/kubernetes/models/v1_cinder_volume_source.rb +254 -0
  133. data/lib/kubernetes/models/v1_client_ip_config.rb +220 -0
  134. data/lib/kubernetes/models/v1_cluster_role.rb +260 -0
  135. data/lib/kubernetes/models/v1_cluster_role_binding.rb +265 -0
  136. data/lib/kubernetes/models/v1_cluster_role_binding_list.rb +256 -0
  137. data/lib/kubernetes/models/v1_cluster_role_list.rb +256 -0
  138. data/lib/kubernetes/models/v1_cluster_trust_bundle_projection.rb +264 -0
  139. data/lib/kubernetes/models/v1_component_condition.rb +260 -0
  140. data/lib/kubernetes/models/v1_component_status.rb +251 -0
  141. data/lib/kubernetes/models/v1_component_status_list.rb +256 -0
  142. data/lib/kubernetes/models/v1_condition.rb +295 -0
  143. data/lib/kubernetes/models/v1_config_map.rb +273 -0
  144. data/lib/kubernetes/models/v1_config_map_env_source.rb +230 -0
  145. data/lib/kubernetes/models/v1_config_map_key_selector.rb +245 -0
  146. data/lib/kubernetes/models/v1_config_map_list.rb +256 -0
  147. data/lib/kubernetes/models/v1_config_map_node_config_source.rb +275 -0
  148. data/lib/kubernetes/models/v1_config_map_projection.rb +242 -0
  149. data/lib/kubernetes/models/v1_config_map_volume_source.rb +252 -0
  150. data/lib/kubernetes/models/v1_container.rb +477 -0
  151. data/lib/kubernetes/models/v1_container_extended_resource_request.rb +255 -0
  152. data/lib/kubernetes/models/v1_container_image.rb +232 -0
  153. data/lib/kubernetes/models/v1_container_port.rb +265 -0
  154. data/lib/kubernetes/models/v1_container_resize_policy.rb +240 -0
  155. data/lib/kubernetes/models/v1_container_restart_rule.rb +234 -0
  156. data/lib/kubernetes/models/v1_container_restart_rule_on_exit_codes.rb +237 -0
  157. data/lib/kubernetes/models/v1_container_state.rb +237 -0
  158. data/lib/kubernetes/models/v1_container_state_running.rb +220 -0
  159. data/lib/kubernetes/models/v1_container_state_terminated.rb +285 -0
  160. data/lib/kubernetes/models/v1_container_state_waiting.rb +230 -0
  161. data/lib/kubernetes/models/v1_container_status.rb +387 -0
  162. data/lib/kubernetes/models/v1_container_user.rb +219 -0
  163. data/lib/kubernetes/models/v1_controller_revision.rb +264 -0
  164. data/lib/kubernetes/models/v1_controller_revision_list.rb +256 -0
  165. data/lib/kubernetes/models/v1_counter.rb +225 -0
  166. data/lib/kubernetes/models/v1_counter_set.rb +242 -0
  167. data/lib/kubernetes/models/v1_cron_job.rb +257 -0
  168. data/lib/kubernetes/models/v1_cron_job_list.rb +256 -0
  169. data/lib/kubernetes/models/v1_cron_job_spec.rb +299 -0
  170. data/lib/kubernetes/models/v1_cron_job_status.rb +242 -0
  171. data/lib/kubernetes/models/v1_cross_version_object_reference.rb +250 -0
  172. data/lib/kubernetes/models/v1_csi_driver.rb +253 -0
  173. data/lib/kubernetes/models/v1_csi_driver_list.rb +256 -0
  174. data/lib/kubernetes/models/v1_csi_driver_spec.rb +314 -0
  175. data/lib/kubernetes/models/v1_csi_node.rb +253 -0
  176. data/lib/kubernetes/models/v1_csi_node_driver.rb +261 -0
  177. data/lib/kubernetes/models/v1_csi_node_list.rb +256 -0
  178. data/lib/kubernetes/models/v1_csi_node_spec.rb +227 -0
  179. data/lib/kubernetes/models/v1_csi_persistent_volume_source.rb +317 -0
  180. data/lib/kubernetes/models/v1_csi_storage_capacity.rb +283 -0
  181. data/lib/kubernetes/models/v1_csi_storage_capacity_list.rb +256 -0
  182. data/lib/kubernetes/models/v1_csi_volume_source.rb +266 -0
  183. data/lib/kubernetes/models/v1_custom_resource_column_definition.rb +285 -0
  184. data/lib/kubernetes/models/v1_custom_resource_conversion.rb +234 -0
  185. data/lib/kubernetes/models/v1_custom_resource_definition.rb +262 -0
  186. data/lib/kubernetes/models/v1_custom_resource_definition_condition.rb +280 -0
  187. data/lib/kubernetes/models/v1_custom_resource_definition_list.rb +256 -0
  188. data/lib/kubernetes/models/v1_custom_resource_definition_names.rb +284 -0
  189. data/lib/kubernetes/models/v1_custom_resource_definition_spec.rb +290 -0
  190. data/lib/kubernetes/models/v1_custom_resource_definition_status.rb +253 -0
  191. data/lib/kubernetes/models/v1_custom_resource_definition_version.rb +317 -0
  192. data/lib/kubernetes/models/v1_custom_resource_subresource_scale.rb +250 -0
  193. data/lib/kubernetes/models/v1_custom_resource_subresources.rb +229 -0
  194. data/lib/kubernetes/models/v1_custom_resource_validation.rb +219 -0
  195. data/lib/kubernetes/models/v1_daemon_endpoint.rb +225 -0
  196. data/lib/kubernetes/models/v1_daemon_set.rb +257 -0
  197. data/lib/kubernetes/models/v1_daemon_set_condition.rb +270 -0
  198. data/lib/kubernetes/models/v1_daemon_set_list.rb +256 -0
  199. data/lib/kubernetes/models/v1_daemon_set_spec.rb +267 -0
  200. data/lib/kubernetes/models/v1_daemon_set_status.rb +332 -0
  201. data/lib/kubernetes/models/v1_daemon_set_update_strategy.rb +229 -0
  202. data/lib/kubernetes/models/v1_delete_options.rb +291 -0
  203. data/lib/kubernetes/models/v1_deployment.rb +257 -0
  204. data/lib/kubernetes/models/v1_deployment_condition.rb +280 -0
  205. data/lib/kubernetes/models/v1_deployment_list.rb +256 -0
  206. data/lib/kubernetes/models/v1_deployment_spec.rb +297 -0
  207. data/lib/kubernetes/models/v1_deployment_status.rb +302 -0
  208. data/lib/kubernetes/models/v1_deployment_strategy.rb +229 -0
  209. data/lib/kubernetes/models/v1_device.rb +346 -0
  210. data/lib/kubernetes/models/v1_device_allocation_configuration.rb +246 -0
  211. data/lib/kubernetes/models/v1_device_allocation_result.rb +234 -0
  212. data/lib/kubernetes/models/v1_device_attribute.rb +250 -0
  213. data/lib/kubernetes/models/v1_device_capacity.rb +234 -0
  214. data/lib/kubernetes/models/v1_device_claim.rb +246 -0
  215. data/lib/kubernetes/models/v1_device_claim_configuration.rb +231 -0
  216. data/lib/kubernetes/models/v1_device_class.rb +253 -0
  217. data/lib/kubernetes/models/v1_device_class_configuration.rb +219 -0
  218. data/lib/kubernetes/models/v1_device_class_list.rb +256 -0
  219. data/lib/kubernetes/models/v1_device_class_spec.rb +244 -0
  220. data/lib/kubernetes/models/v1_device_constraint.rb +242 -0
  221. data/lib/kubernetes/models/v1_device_counter_consumption.rb +242 -0
  222. data/lib/kubernetes/models/v1_device_request.rb +246 -0
  223. data/lib/kubernetes/models/v1_device_request_allocation_result.rb +338 -0
  224. data/lib/kubernetes/models/v1_device_selector.rb +219 -0
  225. data/lib/kubernetes/models/v1_device_sub_request.rb +293 -0
  226. data/lib/kubernetes/models/v1_device_taint.rb +260 -0
  227. data/lib/kubernetes/models/v1_device_toleration.rb +260 -0
  228. data/lib/kubernetes/models/v1_downward_api_projection.rb +222 -0
  229. data/lib/kubernetes/models/v1_downward_api_volume_file.rb +253 -0
  230. data/lib/kubernetes/models/v1_downward_api_volume_source.rb +232 -0
  231. data/lib/kubernetes/models/v1_empty_dir_volume_source.rb +230 -0
  232. data/lib/kubernetes/models/v1_endpoint.rb +296 -0
  233. data/lib/kubernetes/models/v1_endpoint_address.rb +254 -0
  234. data/lib/kubernetes/models/v1_endpoint_conditions.rb +240 -0
  235. data/lib/kubernetes/models/v1_endpoint_hints.rb +234 -0
  236. data/lib/kubernetes/models/v1_endpoint_slice.rb +283 -0
  237. data/lib/kubernetes/models/v1_endpoint_slice_list.rb +256 -0
  238. data/lib/kubernetes/models/v1_endpoint_subset.rb +246 -0
  239. data/lib/kubernetes/models/v1_endpoints.rb +251 -0
  240. data/lib/kubernetes/models/v1_endpoints_list.rb +256 -0
  241. data/lib/kubernetes/models/v1_env_from_source.rb +238 -0
  242. data/lib/kubernetes/models/v1_env_var.rb +244 -0
  243. data/lib/kubernetes/models/v1_env_var_source.rb +255 -0
  244. data/lib/kubernetes/models/v1_ephemeral_container.rb +487 -0
  245. data/lib/kubernetes/models/v1_ephemeral_volume_source.rb +219 -0
  246. data/lib/kubernetes/models/v1_event_source.rb +230 -0
  247. data/lib/kubernetes/models/v1_eviction.rb +248 -0
  248. data/lib/kubernetes/models/v1_exact_device_request.rb +288 -0
  249. data/lib/kubernetes/models/v1_exec_action.rb +222 -0
  250. data/lib/kubernetes/models/v1_exempt_priority_level_configuration.rb +230 -0
  251. data/lib/kubernetes/models/v1_expression_warning.rb +240 -0
  252. data/lib/kubernetes/models/v1_external_documentation.rb +228 -0
  253. data/lib/kubernetes/models/v1_fc_volume_source.rb +264 -0
  254. data/lib/kubernetes/models/v1_field_selector_attributes.rb +232 -0
  255. data/lib/kubernetes/models/v1_field_selector_requirement.rb +252 -0
  256. data/lib/kubernetes/models/v1_file_key_selector.rb +265 -0
  257. data/lib/kubernetes/models/v1_flex_persistent_volume_source.rb +266 -0
  258. data/lib/kubernetes/models/v1_flex_volume_source.rb +266 -0
  259. data/lib/kubernetes/models/v1_flocker_volume_source.rb +230 -0
  260. data/lib/kubernetes/models/v1_flow_distinguisher_method.rb +225 -0
  261. data/lib/kubernetes/models/v1_flow_schema.rb +257 -0
  262. data/lib/kubernetes/models/v1_flow_schema_condition.rb +260 -0
  263. data/lib/kubernetes/models/v1_flow_schema_list.rb +256 -0
  264. data/lib/kubernetes/models/v1_flow_schema_spec.rb +255 -0
  265. data/lib/kubernetes/models/v1_flow_schema_status.rb +222 -0
  266. data/lib/kubernetes/models/v1_for_node.rb +225 -0
  267. data/lib/kubernetes/models/v1_for_zone.rb +225 -0
  268. data/lib/kubernetes/models/v1_gce_persistent_disk_volume_source.rb +255 -0
  269. data/lib/kubernetes/models/v1_git_repo_volume_source.rb +245 -0
  270. data/lib/kubernetes/models/v1_glusterfs_persistent_volume_source.rb +260 -0
  271. data/lib/kubernetes/models/v1_glusterfs_volume_source.rb +250 -0
  272. data/lib/kubernetes/models/v1_group_resource.rb +238 -0
  273. data/lib/kubernetes/models/v1_group_subject.rb +225 -0
  274. data/lib/kubernetes/models/v1_group_version_for_discovery.rb +240 -0
  275. data/lib/kubernetes/models/v1_grpc_action.rb +235 -0
  276. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler.rb +257 -0
  277. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_list.rb +256 -0
  278. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_spec.rb +259 -0
  279. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_status.rb +270 -0
  280. data/lib/kubernetes/models/v1_host_alias.rb +237 -0
  281. data/lib/kubernetes/models/v1_host_ip.rb +225 -0
  282. data/lib/kubernetes/models/v1_host_path_volume_source.rb +235 -0
  283. data/lib/kubernetes/models/v1_http_get_action.rb +267 -0
  284. data/lib/kubernetes/models/v1_http_header.rb +240 -0
  285. data/lib/kubernetes/models/v1_http_ingress_path.rb +249 -0
  286. data/lib/kubernetes/models/v1_http_ingress_rule_value.rb +227 -0
  287. data/lib/kubernetes/models/v1_image_volume_source.rb +230 -0
  288. data/lib/kubernetes/models/v1_ingress.rb +257 -0
  289. data/lib/kubernetes/models/v1_ingress_backend.rb +228 -0
  290. data/lib/kubernetes/models/v1_ingress_class.rb +248 -0
  291. data/lib/kubernetes/models/v1_ingress_class_list.rb +256 -0
  292. data/lib/kubernetes/models/v1_ingress_class_parameters_reference.rb +270 -0
  293. data/lib/kubernetes/models/v1_ingress_class_spec.rb +229 -0
  294. data/lib/kubernetes/models/v1_ingress_list.rb +256 -0
  295. data/lib/kubernetes/models/v1_ingress_load_balancer_ingress.rb +242 -0
  296. data/lib/kubernetes/models/v1_ingress_load_balancer_status.rb +222 -0
  297. data/lib/kubernetes/models/v1_ingress_port_status.rb +250 -0
  298. data/lib/kubernetes/models/v1_ingress_rule.rb +229 -0
  299. data/lib/kubernetes/models/v1_ingress_service_backend.rb +234 -0
  300. data/lib/kubernetes/models/v1_ingress_spec.rb +253 -0
  301. data/lib/kubernetes/models/v1_ingress_status.rb +219 -0
  302. data/lib/kubernetes/models/v1_ingress_tls.rb +232 -0
  303. data/lib/kubernetes/models/v1_ip_address.rb +248 -0
  304. data/lib/kubernetes/models/v1_ip_address_list.rb +256 -0
  305. data/lib/kubernetes/models/v1_ip_address_spec.rb +224 -0
  306. data/lib/kubernetes/models/v1_ip_block.rb +237 -0
  307. data/lib/kubernetes/models/v1_iscsi_persistent_volume_source.rb +336 -0
  308. data/lib/kubernetes/models/v1_iscsi_volume_source.rb +336 -0
  309. data/lib/kubernetes/models/v1_job.rb +257 -0
  310. data/lib/kubernetes/models/v1_job_condition.rb +280 -0
  311. data/lib/kubernetes/models/v1_job_list.rb +256 -0
  312. data/lib/kubernetes/models/v1_job_spec.rb +371 -0
  313. data/lib/kubernetes/models/v1_job_status.rb +321 -0
  314. data/lib/kubernetes/models/v1_job_template_spec.rb +228 -0
  315. data/lib/kubernetes/models/v1_json_schema_props.rb +641 -0
  316. data/lib/kubernetes/models/v1_key_to_path.rb +250 -0
  317. data/lib/kubernetes/models/v1_label_selector.rb +234 -0
  318. data/lib/kubernetes/models/v1_label_selector_attributes.rb +232 -0
  319. data/lib/kubernetes/models/v1_label_selector_requirement.rb +252 -0
  320. data/lib/kubernetes/models/v1_lease.rb +248 -0
  321. data/lib/kubernetes/models/v1_lease_list.rb +256 -0
  322. data/lib/kubernetes/models/v1_lease_spec.rb +280 -0
  323. data/lib/kubernetes/models/v1_lifecycle.rb +238 -0
  324. data/lib/kubernetes/models/v1_lifecycle_handler.rb +246 -0
  325. data/lib/kubernetes/models/v1_limit_range.rb +248 -0
  326. data/lib/kubernetes/models/v1_limit_range_item.rb +285 -0
  327. data/lib/kubernetes/models/v1_limit_range_list.rb +256 -0
  328. data/lib/kubernetes/models/v1_limit_range_spec.rb +227 -0
  329. data/lib/kubernetes/models/v1_limit_response.rb +234 -0
  330. data/lib/kubernetes/models/v1_limited_priority_level_configuration.rb +249 -0
  331. data/lib/kubernetes/models/v1_linux_container_user.rb +252 -0
  332. data/lib/kubernetes/models/v1_list_meta.rb +250 -0
  333. data/lib/kubernetes/models/v1_load_balancer_ingress.rb +252 -0
  334. data/lib/kubernetes/models/v1_load_balancer_status.rb +222 -0
  335. data/lib/kubernetes/models/v1_local_object_reference.rb +220 -0
  336. data/lib/kubernetes/models/v1_local_subject_access_review.rb +262 -0
  337. data/lib/kubernetes/models/v1_local_volume_source.rb +235 -0
  338. data/lib/kubernetes/models/v1_managed_fields_entry.rb +280 -0
  339. data/lib/kubernetes/models/v1_match_condition.rb +240 -0
  340. data/lib/kubernetes/models/v1_match_resources.rb +262 -0
  341. data/lib/kubernetes/models/v1_modify_volume_status.rb +235 -0
  342. data/lib/kubernetes/models/v1_mutating_webhook.rb +353 -0
  343. data/lib/kubernetes/models/v1_mutating_webhook_configuration.rb +251 -0
  344. data/lib/kubernetes/models/v1_mutating_webhook_configuration_list.rb +256 -0
  345. data/lib/kubernetes/models/v1_named_rule_with_operations.rb +280 -0
  346. data/lib/kubernetes/models/v1_namespace.rb +257 -0
  347. data/lib/kubernetes/models/v1_namespace_condition.rb +270 -0
  348. data/lib/kubernetes/models/v1_namespace_list.rb +256 -0
  349. data/lib/kubernetes/models/v1_namespace_spec.rb +222 -0
  350. data/lib/kubernetes/models/v1_namespace_status.rb +232 -0
  351. data/lib/kubernetes/models/v1_network_device_data.rb +242 -0
  352. data/lib/kubernetes/models/v1_network_policy.rb +248 -0
  353. data/lib/kubernetes/models/v1_network_policy_egress_rule.rb +234 -0
  354. data/lib/kubernetes/models/v1_network_policy_ingress_rule.rb +234 -0
  355. data/lib/kubernetes/models/v1_network_policy_list.rb +256 -0
  356. data/lib/kubernetes/models/v1_network_policy_peer.rb +237 -0
  357. data/lib/kubernetes/models/v1_network_policy_port.rb +240 -0
  358. data/lib/kubernetes/models/v1_network_policy_spec.rb +255 -0
  359. data/lib/kubernetes/models/v1_nfs_volume_source.rb +250 -0
  360. data/lib/kubernetes/models/v1_node.rb +257 -0
  361. data/lib/kubernetes/models/v1_node_address.rb +240 -0
  362. data/lib/kubernetes/models/v1_node_affinity.rb +231 -0
  363. data/lib/kubernetes/models/v1_node_condition.rb +280 -0
  364. data/lib/kubernetes/models/v1_node_config_source.rb +219 -0
  365. data/lib/kubernetes/models/v1_node_config_status.rb +247 -0
  366. data/lib/kubernetes/models/v1_node_daemon_endpoints.rb +219 -0
  367. data/lib/kubernetes/models/v1_node_features.rb +220 -0
  368. data/lib/kubernetes/models/v1_node_list.rb +256 -0
  369. data/lib/kubernetes/models/v1_node_runtime_handler.rb +229 -0
  370. data/lib/kubernetes/models/v1_node_runtime_handler_features.rb +230 -0
  371. data/lib/kubernetes/models/v1_node_selector.rb +227 -0
  372. data/lib/kubernetes/models/v1_node_selector_requirement.rb +252 -0
  373. data/lib/kubernetes/models/v1_node_selector_term.rb +234 -0
  374. data/lib/kubernetes/models/v1_node_spec.rb +283 -0
  375. data/lib/kubernetes/models/v1_node_status.rb +364 -0
  376. data/lib/kubernetes/models/v1_node_swap_status.rb +220 -0
  377. data/lib/kubernetes/models/v1_node_system_info.rb +369 -0
  378. data/lib/kubernetes/models/v1_non_resource_attributes.rb +230 -0
  379. data/lib/kubernetes/models/v1_non_resource_policy_rule.rb +244 -0
  380. data/lib/kubernetes/models/v1_non_resource_rule.rb +239 -0
  381. data/lib/kubernetes/models/v1_object_field_selector.rb +235 -0
  382. data/lib/kubernetes/models/v1_object_meta.rb +370 -0
  383. data/lib/kubernetes/models/v1_object_reference.rb +280 -0
  384. data/lib/kubernetes/models/v1_opaque_device_configuration.rb +240 -0
  385. data/lib/kubernetes/models/v1_overhead.rb +222 -0
  386. data/lib/kubernetes/models/v1_owner_reference.rb +290 -0
  387. data/lib/kubernetes/models/v1_param_kind.rb +230 -0
  388. data/lib/kubernetes/models/v1_param_ref.rb +249 -0
  389. data/lib/kubernetes/models/v1_parent_reference.rb +260 -0
  390. data/lib/kubernetes/models/v1_persistent_volume.rb +257 -0
  391. data/lib/kubernetes/models/v1_persistent_volume_claim.rb +257 -0
  392. data/lib/kubernetes/models/v1_persistent_volume_claim_condition.rb +280 -0
  393. data/lib/kubernetes/models/v1_persistent_volume_claim_list.rb +256 -0
  394. data/lib/kubernetes/models/v1_persistent_volume_claim_spec.rb +298 -0
  395. data/lib/kubernetes/models/v1_persistent_volume_claim_status.rb +299 -0
  396. data/lib/kubernetes/models/v1_persistent_volume_claim_template.rb +233 -0
  397. data/lib/kubernetes/models/v1_persistent_volume_claim_volume_source.rb +235 -0
  398. data/lib/kubernetes/models/v1_persistent_volume_list.rb +256 -0
  399. data/lib/kubernetes/models/v1_persistent_volume_spec.rb +502 -0
  400. data/lib/kubernetes/models/v1_persistent_volume_status.rb +250 -0
  401. data/lib/kubernetes/models/v1_photon_persistent_disk_volume_source.rb +235 -0
  402. data/lib/kubernetes/models/v1_pod.rb +257 -0
  403. data/lib/kubernetes/models/v1_pod_affinity.rb +234 -0
  404. data/lib/kubernetes/models/v1_pod_affinity_term.rb +279 -0
  405. data/lib/kubernetes/models/v1_pod_anti_affinity.rb +234 -0
  406. data/lib/kubernetes/models/v1_pod_certificate_projection.rb +292 -0
  407. data/lib/kubernetes/models/v1_pod_condition.rb +290 -0
  408. data/lib/kubernetes/models/v1_pod_disruption_budget.rb +257 -0
  409. data/lib/kubernetes/models/v1_pod_disruption_budget_list.rb +256 -0
  410. data/lib/kubernetes/models/v1_pod_disruption_budget_spec.rb +249 -0
  411. data/lib/kubernetes/models/v1_pod_disruption_budget_status.rb +304 -0
  412. data/lib/kubernetes/models/v1_pod_dns_config.rb +246 -0
  413. data/lib/kubernetes/models/v1_pod_dns_config_option.rb +230 -0
  414. data/lib/kubernetes/models/v1_pod_extended_resource_claim_status.rb +242 -0
  415. data/lib/kubernetes/models/v1_pod_failure_policy.rb +227 -0
  416. data/lib/kubernetes/models/v1_pod_failure_policy_on_exit_codes_requirement.rb +252 -0
  417. data/lib/kubernetes/models/v1_pod_failure_policy_on_pod_conditions_pattern.rb +235 -0
  418. data/lib/kubernetes/models/v1_pod_failure_policy_rule.rb +246 -0
  419. data/lib/kubernetes/models/v1_pod_ip.rb +225 -0
  420. data/lib/kubernetes/models/v1_pod_list.rb +256 -0
  421. data/lib/kubernetes/models/v1_pod_os.rb +225 -0
  422. data/lib/kubernetes/models/v1_pod_readiness_gate.rb +225 -0
  423. data/lib/kubernetes/models/v1_pod_resource_claim.rb +245 -0
  424. data/lib/kubernetes/models/v1_pod_resource_claim_status.rb +235 -0
  425. data/lib/kubernetes/models/v1_pod_scheduling_gate.rb +225 -0
  426. data/lib/kubernetes/models/v1_pod_security_context.rb +340 -0
  427. data/lib/kubernetes/models/v1_pod_spec.rb +655 -0
  428. data/lib/kubernetes/models/v1_pod_status.rb +424 -0
  429. data/lib/kubernetes/models/v1_pod_template.rb +248 -0
  430. data/lib/kubernetes/models/v1_pod_template_list.rb +256 -0
  431. data/lib/kubernetes/models/v1_pod_template_spec.rb +228 -0
  432. data/lib/kubernetes/models/v1_policy_rule.rb +275 -0
  433. data/lib/kubernetes/models/v1_policy_rules_with_subjects.rb +251 -0
  434. data/lib/kubernetes/models/v1_port_status.rb +250 -0
  435. data/lib/kubernetes/models/v1_portworx_volume_source.rb +245 -0
  436. data/lib/kubernetes/models/v1_preconditions.rb +230 -0
  437. data/lib/kubernetes/models/v1_preferred_scheduling_term.rb +239 -0
  438. data/lib/kubernetes/models/v1_priority_class.rb +284 -0
  439. data/lib/kubernetes/models/v1_priority_class_list.rb +256 -0
  440. data/lib/kubernetes/models/v1_priority_level_configuration.rb +257 -0
  441. data/lib/kubernetes/models/v1_priority_level_configuration_condition.rb +260 -0
  442. data/lib/kubernetes/models/v1_priority_level_configuration_list.rb +256 -0
  443. data/lib/kubernetes/models/v1_priority_level_configuration_reference.rb +225 -0
  444. data/lib/kubernetes/models/v1_priority_level_configuration_spec.rb +243 -0
  445. data/lib/kubernetes/models/v1_priority_level_configuration_status.rb +222 -0
  446. data/lib/kubernetes/models/v1_probe.rb +306 -0
  447. data/lib/kubernetes/models/v1_projected_volume_source.rb +232 -0
  448. data/lib/kubernetes/models/v1_queuing_configuration.rb +240 -0
  449. data/lib/kubernetes/models/v1_quobyte_volume_source.rb +280 -0
  450. data/lib/kubernetes/models/v1_rbd_persistent_volume_source.rb +301 -0
  451. data/lib/kubernetes/models/v1_rbd_volume_source.rb +301 -0
  452. data/lib/kubernetes/models/v1_replica_set.rb +257 -0
  453. data/lib/kubernetes/models/v1_replica_set_condition.rb +270 -0
  454. data/lib/kubernetes/models/v1_replica_set_list.rb +256 -0
  455. data/lib/kubernetes/models/v1_replica_set_spec.rb +253 -0
  456. data/lib/kubernetes/models/v1_replica_set_status.rb +287 -0
  457. data/lib/kubernetes/models/v1_replication_controller.rb +257 -0
  458. data/lib/kubernetes/models/v1_replication_controller_condition.rb +270 -0
  459. data/lib/kubernetes/models/v1_replication_controller_list.rb +256 -0
  460. data/lib/kubernetes/models/v1_replication_controller_spec.rb +251 -0
  461. data/lib/kubernetes/models/v1_replication_controller_status.rb +277 -0
  462. data/lib/kubernetes/models/v1_resource_attributes.rb +298 -0
  463. data/lib/kubernetes/models/v1_resource_claim_consumer_reference.rb +265 -0
  464. data/lib/kubernetes/models/v1_resource_claim_list.rb +256 -0
  465. data/lib/kubernetes/models/v1_resource_claim_spec.rb +219 -0
  466. data/lib/kubernetes/models/v1_resource_claim_status.rb +243 -0
  467. data/lib/kubernetes/models/v1_resource_claim_template.rb +253 -0
  468. data/lib/kubernetes/models/v1_resource_claim_template_list.rb +256 -0
  469. data/lib/kubernetes/models/v1_resource_claim_template_spec.rb +233 -0
  470. data/lib/kubernetes/models/v1_resource_field_selector.rb +245 -0
  471. data/lib/kubernetes/models/v1_resource_health.rb +235 -0
  472. data/lib/kubernetes/models/v1_resource_policy_rule.rb +283 -0
  473. data/lib/kubernetes/models/v1_resource_pool.rb +255 -0
  474. data/lib/kubernetes/models/v1_resource_quota.rb +257 -0
  475. data/lib/kubernetes/models/v1_resource_quota_list.rb +256 -0
  476. data/lib/kubernetes/models/v1_resource_quota_spec.rb +243 -0
  477. data/lib/kubernetes/models/v1_resource_quota_status.rb +234 -0
  478. data/lib/kubernetes/models/v1_resource_requirements.rb +246 -0
  479. data/lib/kubernetes/models/v1_resource_rule.rb +263 -0
  480. data/lib/kubernetes/models/v1_resource_slice.rb +253 -0
  481. data/lib/kubernetes/models/v1_resource_slice_list.rb +256 -0
  482. data/lib/kubernetes/models/v1_resource_slice_spec.rb +302 -0
  483. data/lib/kubernetes/models/v1_resource_status.rb +237 -0
  484. data/lib/kubernetes/models/v1_role.rb +251 -0
  485. data/lib/kubernetes/models/v1_role_binding.rb +265 -0
  486. data/lib/kubernetes/models/v1_role_binding_list.rb +256 -0
  487. data/lib/kubernetes/models/v1_role_list.rb +256 -0
  488. data/lib/kubernetes/models/v1_role_ref.rb +255 -0
  489. data/lib/kubernetes/models/v1_rolling_update_daemon_set.rb +230 -0
  490. data/lib/kubernetes/models/v1_rolling_update_deployment.rb +230 -0
  491. data/lib/kubernetes/models/v1_rolling_update_stateful_set_strategy.rb +230 -0
  492. data/lib/kubernetes/models/v1_rule_with_operations.rb +268 -0
  493. data/lib/kubernetes/models/v1_runtime_class.rb +272 -0
  494. data/lib/kubernetes/models/v1_runtime_class_list.rb +256 -0
  495. data/lib/kubernetes/models/v1_scale.rb +257 -0
  496. data/lib/kubernetes/models/v1_scale_io_persistent_volume_source.rb +324 -0
  497. data/lib/kubernetes/models/v1_scale_io_volume_source.rb +324 -0
  498. data/lib/kubernetes/models/v1_scale_spec.rb +220 -0
  499. data/lib/kubernetes/models/v1_scale_status.rb +235 -0
  500. data/lib/kubernetes/models/v1_scheduling.rb +234 -0
  501. data/lib/kubernetes/models/v1_scope_selector.rb +222 -0
  502. data/lib/kubernetes/models/v1_scoped_resource_selector_requirement.rb +252 -0
  503. data/lib/kubernetes/models/v1_se_linux_options.rb +250 -0
  504. data/lib/kubernetes/models/v1_seccomp_profile.rb +235 -0
  505. data/lib/kubernetes/models/v1_secret.rb +283 -0
  506. data/lib/kubernetes/models/v1_secret_env_source.rb +230 -0
  507. data/lib/kubernetes/models/v1_secret_key_selector.rb +245 -0
  508. data/lib/kubernetes/models/v1_secret_list.rb +256 -0
  509. data/lib/kubernetes/models/v1_secret_projection.rb +242 -0
  510. data/lib/kubernetes/models/v1_secret_reference.rb +230 -0
  511. data/lib/kubernetes/models/v1_secret_volume_source.rb +252 -0
  512. data/lib/kubernetes/models/v1_security_context.rb +325 -0
  513. data/lib/kubernetes/models/v1_selectable_field.rb +225 -0
  514. data/lib/kubernetes/models/v1_self_subject_access_review.rb +262 -0
  515. data/lib/kubernetes/models/v1_self_subject_access_review_spec.rb +228 -0
  516. data/lib/kubernetes/models/v1_self_subject_review.rb +248 -0
  517. data/lib/kubernetes/models/v1_self_subject_review_status.rb +219 -0
  518. data/lib/kubernetes/models/v1_self_subject_rules_review.rb +262 -0
  519. data/lib/kubernetes/models/v1_self_subject_rules_review_spec.rb +220 -0
  520. data/lib/kubernetes/models/v1_server_address_by_client_cidr.rb +240 -0
  521. data/lib/kubernetes/models/v1_service.rb +257 -0
  522. data/lib/kubernetes/models/v1_service_account.rb +273 -0
  523. data/lib/kubernetes/models/v1_service_account_list.rb +256 -0
  524. data/lib/kubernetes/models/v1_service_account_subject.rb +240 -0
  525. data/lib/kubernetes/models/v1_service_account_token_projection.rb +245 -0
  526. data/lib/kubernetes/models/v1_service_backend_port.rb +230 -0
  527. data/lib/kubernetes/models/v1_service_cidr.rb +257 -0
  528. data/lib/kubernetes/models/v1_service_cidr_list.rb +256 -0
  529. data/lib/kubernetes/models/v1_service_cidr_spec.rb +222 -0
  530. data/lib/kubernetes/models/v1_service_cidr_status.rb +222 -0
  531. data/lib/kubernetes/models/v1_service_list.rb +256 -0
  532. data/lib/kubernetes/models/v1_service_port.rb +275 -0
  533. data/lib/kubernetes/models/v1_service_spec.rb +421 -0
  534. data/lib/kubernetes/models/v1_service_status.rb +231 -0
  535. data/lib/kubernetes/models/v1_session_affinity_config.rb +219 -0
  536. data/lib/kubernetes/models/v1_sleep_action.rb +225 -0
  537. data/lib/kubernetes/models/v1_stateful_set.rb +257 -0
  538. data/lib/kubernetes/models/v1_stateful_set_condition.rb +270 -0
  539. data/lib/kubernetes/models/v1_stateful_set_list.rb +256 -0
  540. data/lib/kubernetes/models/v1_stateful_set_ordinals.rb +220 -0
  541. data/lib/kubernetes/models/v1_stateful_set_persistent_volume_claim_retention_policy.rb +230 -0
  542. data/lib/kubernetes/models/v1_stateful_set_spec.rb +327 -0
  543. data/lib/kubernetes/models/v1_stateful_set_status.rb +317 -0
  544. data/lib/kubernetes/models/v1_stateful_set_update_strategy.rb +229 -0
  545. data/lib/kubernetes/models/v1_status.rb +288 -0
  546. data/lib/kubernetes/models/v1_status_cause.rb +240 -0
  547. data/lib/kubernetes/models/v1_status_details.rb +272 -0
  548. data/lib/kubernetes/models/v1_storage_class.rb +320 -0
  549. data/lib/kubernetes/models/v1_storage_class_list.rb +256 -0
  550. data/lib/kubernetes/models/v1_storage_os_persistent_volume_source.rb +259 -0
  551. data/lib/kubernetes/models/v1_storage_os_volume_source.rb +259 -0
  552. data/lib/kubernetes/models/v1_subject_access_review.rb +262 -0
  553. data/lib/kubernetes/models/v1_subject_access_review_spec.rb +272 -0
  554. data/lib/kubernetes/models/v1_subject_access_review_status.rb +255 -0
  555. data/lib/kubernetes/models/v1_subject_rules_review_status.rb +269 -0
  556. data/lib/kubernetes/models/v1_success_policy.rb +227 -0
  557. data/lib/kubernetes/models/v1_success_policy_rule.rb +230 -0
  558. data/lib/kubernetes/models/v1_sysctl.rb +240 -0
  559. data/lib/kubernetes/models/v1_taint.rb +260 -0
  560. data/lib/kubernetes/models/v1_tcp_socket_action.rb +235 -0
  561. data/lib/kubernetes/models/v1_token_request_spec.rb +246 -0
  562. data/lib/kubernetes/models/v1_token_request_status.rb +240 -0
  563. data/lib/kubernetes/models/v1_token_review.rb +262 -0
  564. data/lib/kubernetes/models/v1_token_review_spec.rb +232 -0
  565. data/lib/kubernetes/models/v1_token_review_status.rb +251 -0
  566. data/lib/kubernetes/models/v1_toleration.rb +260 -0
  567. data/lib/kubernetes/models/v1_topology_selector_label_requirement.rb +242 -0
  568. data/lib/kubernetes/models/v1_topology_selector_term.rb +222 -0
  569. data/lib/kubernetes/models/v1_topology_spread_constraint.rb +306 -0
  570. data/lib/kubernetes/models/v1_type_checking.rb +222 -0
  571. data/lib/kubernetes/models/v1_typed_local_object_reference.rb +250 -0
  572. data/lib/kubernetes/models/v1_typed_object_reference.rb +260 -0
  573. data/lib/kubernetes/models/v1_uncounted_terminated_pods.rb +234 -0
  574. data/lib/kubernetes/models/v1_user_info.rb +254 -0
  575. data/lib/kubernetes/models/v1_user_subject.rb +225 -0
  576. data/lib/kubernetes/models/v1_validating_admission_policy.rb +257 -0
  577. data/lib/kubernetes/models/v1_validating_admission_policy_binding.rb +248 -0
  578. data/lib/kubernetes/models/v1_validating_admission_policy_binding_list.rb +256 -0
  579. data/lib/kubernetes/models/v1_validating_admission_policy_binding_spec.rb +250 -0
  580. data/lib/kubernetes/models/v1_validating_admission_policy_list.rb +256 -0
  581. data/lib/kubernetes/models/v1_validating_admission_policy_spec.rb +286 -0
  582. data/lib/kubernetes/models/v1_validating_admission_policy_status.rb +241 -0
  583. data/lib/kubernetes/models/v1_validating_webhook.rb +343 -0
  584. data/lib/kubernetes/models/v1_validating_webhook_configuration.rb +251 -0
  585. data/lib/kubernetes/models/v1_validating_webhook_configuration_list.rb +256 -0
  586. data/lib/kubernetes/models/v1_validation.rb +255 -0
  587. data/lib/kubernetes/models/v1_validation_rule.rb +275 -0
  588. data/lib/kubernetes/models/v1_variable.rb +240 -0
  589. data/lib/kubernetes/models/v1_volume.rb +495 -0
  590. data/lib/kubernetes/models/v1_volume_attachment.rb +262 -0
  591. data/lib/kubernetes/models/v1_volume_attachment_list.rb +256 -0
  592. data/lib/kubernetes/models/v1_volume_attachment_source.rb +229 -0
  593. data/lib/kubernetes/models/v1_volume_attachment_spec.rb +254 -0
  594. data/lib/kubernetes/models/v1_volume_attachment_status.rb +255 -0
  595. data/lib/kubernetes/models/v1_volume_attributes_class.rb +266 -0
  596. data/lib/kubernetes/models/v1_volume_attributes_class_list.rb +256 -0
  597. data/lib/kubernetes/models/v1_volume_device.rb +240 -0
  598. data/lib/kubernetes/models/v1_volume_error.rb +240 -0
  599. data/lib/kubernetes/models/v1_volume_mount.rb +290 -0
  600. data/lib/kubernetes/models/v1_volume_mount_status.rb +260 -0
  601. data/lib/kubernetes/models/v1_volume_node_affinity.rb +219 -0
  602. data/lib/kubernetes/models/v1_volume_node_resources.rb +220 -0
  603. data/lib/kubernetes/models/v1_volume_projection.rb +264 -0
  604. data/lib/kubernetes/models/v1_volume_resource_requirements.rb +234 -0
  605. data/lib/kubernetes/models/v1_vsphere_virtual_disk_volume_source.rb +255 -0
  606. data/lib/kubernetes/models/v1_watch_event.rb +239 -0
  607. data/lib/kubernetes/models/v1_webhook_conversion.rb +236 -0
  608. data/lib/kubernetes/models/v1_weighted_pod_affinity_term.rb +239 -0
  609. data/lib/kubernetes/models/v1_windows_security_context_options.rb +250 -0
  610. data/lib/kubernetes/models/v1_workload_reference.rb +250 -0
  611. data/lib/kubernetes/models/v1alpha1_apply_configuration.rb +220 -0
  612. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle.rb +253 -0
  613. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_list.rb +256 -0
  614. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_spec.rb +235 -0
  615. data/lib/kubernetes/models/v1alpha1_gang_scheduling_policy.rb +225 -0
  616. data/lib/kubernetes/models/v1alpha1_json_patch.rb +220 -0
  617. data/lib/kubernetes/models/v1alpha1_match_condition.rb +239 -0
  618. data/lib/kubernetes/models/v1alpha1_match_resources.rb +262 -0
  619. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy.rb +248 -0
  620. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding.rb +248 -0
  621. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_list.rb +256 -0
  622. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_spec.rb +238 -0
  623. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_list.rb +256 -0
  624. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_spec.rb +284 -0
  625. data/lib/kubernetes/models/v1alpha1_mutation.rb +243 -0
  626. data/lib/kubernetes/models/v1alpha1_named_rule_with_operations.rb +280 -0
  627. data/lib/kubernetes/models/v1alpha1_param_kind.rb +230 -0
  628. data/lib/kubernetes/models/v1alpha1_param_ref.rb +249 -0
  629. data/lib/kubernetes/models/v1alpha1_pod_group.rb +239 -0
  630. data/lib/kubernetes/models/v1alpha1_pod_group_policy.rb +229 -0
  631. data/lib/kubernetes/models/v1alpha1_server_storage_version.rb +254 -0
  632. data/lib/kubernetes/models/v1alpha1_storage_version.rb +268 -0
  633. data/lib/kubernetes/models/v1alpha1_storage_version_condition.rb +290 -0
  634. data/lib/kubernetes/models/v1alpha1_storage_version_list.rb +256 -0
  635. data/lib/kubernetes/models/v1alpha1_storage_version_status.rb +244 -0
  636. data/lib/kubernetes/models/v1alpha1_typed_local_object_reference.rb +250 -0
  637. data/lib/kubernetes/models/v1alpha1_variable.rb +240 -0
  638. data/lib/kubernetes/models/v1alpha1_workload.rb +253 -0
  639. data/lib/kubernetes/models/v1alpha1_workload_list.rb +256 -0
  640. data/lib/kubernetes/models/v1alpha1_workload_spec.rb +236 -0
  641. data/lib/kubernetes/models/v1alpha2_lease_candidate.rb +248 -0
  642. data/lib/kubernetes/models/v1alpha2_lease_candidate_list.rb +256 -0
  643. data/lib/kubernetes/models/v1alpha2_lease_candidate_spec.rb +285 -0
  644. data/lib/kubernetes/models/v1alpha3_device_taint.rb +260 -0
  645. data/lib/kubernetes/models/v1alpha3_device_taint_rule.rb +262 -0
  646. data/lib/kubernetes/models/v1alpha3_device_taint_rule_list.rb +256 -0
  647. data/lib/kubernetes/models/v1alpha3_device_taint_rule_spec.rb +233 -0
  648. data/lib/kubernetes/models/v1alpha3_device_taint_rule_status.rb +222 -0
  649. data/lib/kubernetes/models/v1alpha3_device_taint_selector.rb +240 -0
  650. data/lib/kubernetes/models/v1beta1_allocated_device_status.rb +296 -0
  651. data/lib/kubernetes/models/v1beta1_allocation_result.rb +238 -0
  652. data/lib/kubernetes/models/v1beta1_apply_configuration.rb +220 -0
  653. data/lib/kubernetes/models/v1beta1_basic_device.rb +331 -0
  654. data/lib/kubernetes/models/v1beta1_capacity_request_policy.rb +241 -0
  655. data/lib/kubernetes/models/v1beta1_capacity_request_policy_range.rb +245 -0
  656. data/lib/kubernetes/models/v1beta1_capacity_requirements.rb +222 -0
  657. data/lib/kubernetes/models/v1beta1_cel_device_selector.rb +225 -0
  658. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle.rb +253 -0
  659. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_list.rb +256 -0
  660. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_spec.rb +235 -0
  661. data/lib/kubernetes/models/v1beta1_counter.rb +225 -0
  662. data/lib/kubernetes/models/v1beta1_counter_set.rb +242 -0
  663. data/lib/kubernetes/models/v1beta1_device.rb +234 -0
  664. data/lib/kubernetes/models/v1beta1_device_allocation_configuration.rb +246 -0
  665. data/lib/kubernetes/models/v1beta1_device_allocation_result.rb +234 -0
  666. data/lib/kubernetes/models/v1beta1_device_attribute.rb +250 -0
  667. data/lib/kubernetes/models/v1beta1_device_capacity.rb +234 -0
  668. data/lib/kubernetes/models/v1beta1_device_claim.rb +246 -0
  669. data/lib/kubernetes/models/v1beta1_device_claim_configuration.rb +231 -0
  670. data/lib/kubernetes/models/v1beta1_device_class.rb +253 -0
  671. data/lib/kubernetes/models/v1beta1_device_class_configuration.rb +219 -0
  672. data/lib/kubernetes/models/v1beta1_device_class_list.rb +256 -0
  673. data/lib/kubernetes/models/v1beta1_device_class_spec.rb +244 -0
  674. data/lib/kubernetes/models/v1beta1_device_constraint.rb +242 -0
  675. data/lib/kubernetes/models/v1beta1_device_counter_consumption.rb +242 -0
  676. data/lib/kubernetes/models/v1beta1_device_request.rb +310 -0
  677. data/lib/kubernetes/models/v1beta1_device_request_allocation_result.rb +338 -0
  678. data/lib/kubernetes/models/v1beta1_device_selector.rb +219 -0
  679. data/lib/kubernetes/models/v1beta1_device_sub_request.rb +293 -0
  680. data/lib/kubernetes/models/v1beta1_device_taint.rb +260 -0
  681. data/lib/kubernetes/models/v1beta1_device_toleration.rb +260 -0
  682. data/lib/kubernetes/models/v1beta1_ip_address.rb +248 -0
  683. data/lib/kubernetes/models/v1beta1_ip_address_list.rb +256 -0
  684. data/lib/kubernetes/models/v1beta1_ip_address_spec.rb +224 -0
  685. data/lib/kubernetes/models/v1beta1_json_patch.rb +220 -0
  686. data/lib/kubernetes/models/v1beta1_lease_candidate.rb +248 -0
  687. data/lib/kubernetes/models/v1beta1_lease_candidate_list.rb +256 -0
  688. data/lib/kubernetes/models/v1beta1_lease_candidate_spec.rb +285 -0
  689. data/lib/kubernetes/models/v1beta1_match_condition.rb +240 -0
  690. data/lib/kubernetes/models/v1beta1_match_resources.rb +262 -0
  691. data/lib/kubernetes/models/v1beta1_mutating_admission_policy.rb +248 -0
  692. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding.rb +248 -0
  693. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_list.rb +256 -0
  694. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_spec.rb +238 -0
  695. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_list.rb +256 -0
  696. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_spec.rb +284 -0
  697. data/lib/kubernetes/models/v1beta1_mutation.rb +243 -0
  698. data/lib/kubernetes/models/v1beta1_named_rule_with_operations.rb +280 -0
  699. data/lib/kubernetes/models/v1beta1_network_device_data.rb +242 -0
  700. data/lib/kubernetes/models/v1beta1_opaque_device_configuration.rb +240 -0
  701. data/lib/kubernetes/models/v1beta1_param_kind.rb +230 -0
  702. data/lib/kubernetes/models/v1beta1_param_ref.rb +249 -0
  703. data/lib/kubernetes/models/v1beta1_parent_reference.rb +260 -0
  704. data/lib/kubernetes/models/v1beta1_pod_certificate_request.rb +262 -0
  705. data/lib/kubernetes/models/v1beta1_pod_certificate_request_list.rb +256 -0
  706. data/lib/kubernetes/models/v1beta1_pod_certificate_request_spec.rb +409 -0
  707. data/lib/kubernetes/models/v1beta1_pod_certificate_request_status.rb +262 -0
  708. data/lib/kubernetes/models/v1beta1_resource_claim.rb +262 -0
  709. data/lib/kubernetes/models/v1beta1_resource_claim_consumer_reference.rb +265 -0
  710. data/lib/kubernetes/models/v1beta1_resource_claim_list.rb +256 -0
  711. data/lib/kubernetes/models/v1beta1_resource_claim_spec.rb +219 -0
  712. data/lib/kubernetes/models/v1beta1_resource_claim_status.rb +243 -0
  713. data/lib/kubernetes/models/v1beta1_resource_claim_template.rb +253 -0
  714. data/lib/kubernetes/models/v1beta1_resource_claim_template_list.rb +256 -0
  715. data/lib/kubernetes/models/v1beta1_resource_claim_template_spec.rb +233 -0
  716. data/lib/kubernetes/models/v1beta1_resource_pool.rb +255 -0
  717. data/lib/kubernetes/models/v1beta1_resource_slice.rb +253 -0
  718. data/lib/kubernetes/models/v1beta1_resource_slice_list.rb +256 -0
  719. data/lib/kubernetes/models/v1beta1_resource_slice_spec.rb +302 -0
  720. data/lib/kubernetes/models/v1beta1_service_cidr.rb +257 -0
  721. data/lib/kubernetes/models/v1beta1_service_cidr_list.rb +256 -0
  722. data/lib/kubernetes/models/v1beta1_service_cidr_spec.rb +222 -0
  723. data/lib/kubernetes/models/v1beta1_service_cidr_status.rb +222 -0
  724. data/lib/kubernetes/models/v1beta1_storage_version_migration.rb +257 -0
  725. data/lib/kubernetes/models/v1beta1_storage_version_migration_list.rb +256 -0
  726. data/lib/kubernetes/models/v1beta1_storage_version_migration_spec.rb +224 -0
  727. data/lib/kubernetes/models/v1beta1_storage_version_migration_status.rb +232 -0
  728. data/lib/kubernetes/models/v1beta1_variable.rb +240 -0
  729. data/lib/kubernetes/models/v1beta1_volume_attributes_class.rb +266 -0
  730. data/lib/kubernetes/models/v1beta1_volume_attributes_class_list.rb +256 -0
  731. data/lib/kubernetes/models/v1beta2_allocated_device_status.rb +296 -0
  732. data/lib/kubernetes/models/v1beta2_allocation_result.rb +238 -0
  733. data/lib/kubernetes/models/v1beta2_capacity_request_policy.rb +241 -0
  734. data/lib/kubernetes/models/v1beta2_capacity_request_policy_range.rb +245 -0
  735. data/lib/kubernetes/models/v1beta2_capacity_requirements.rb +222 -0
  736. data/lib/kubernetes/models/v1beta2_cel_device_selector.rb +225 -0
  737. data/lib/kubernetes/models/v1beta2_counter.rb +225 -0
  738. data/lib/kubernetes/models/v1beta2_counter_set.rb +242 -0
  739. data/lib/kubernetes/models/v1beta2_device.rb +346 -0
  740. data/lib/kubernetes/models/v1beta2_device_allocation_configuration.rb +246 -0
  741. data/lib/kubernetes/models/v1beta2_device_allocation_result.rb +234 -0
  742. data/lib/kubernetes/models/v1beta2_device_attribute.rb +250 -0
  743. data/lib/kubernetes/models/v1beta2_device_capacity.rb +234 -0
  744. data/lib/kubernetes/models/v1beta2_device_claim.rb +246 -0
  745. data/lib/kubernetes/models/v1beta2_device_claim_configuration.rb +231 -0
  746. data/lib/kubernetes/models/v1beta2_device_class.rb +253 -0
  747. data/lib/kubernetes/models/v1beta2_device_class_configuration.rb +219 -0
  748. data/lib/kubernetes/models/v1beta2_device_class_list.rb +256 -0
  749. data/lib/kubernetes/models/v1beta2_device_class_spec.rb +244 -0
  750. data/lib/kubernetes/models/v1beta2_device_constraint.rb +242 -0
  751. data/lib/kubernetes/models/v1beta2_device_counter_consumption.rb +242 -0
  752. data/lib/kubernetes/models/v1beta2_device_request.rb +246 -0
  753. data/lib/kubernetes/models/v1beta2_device_request_allocation_result.rb +338 -0
  754. data/lib/kubernetes/models/v1beta2_device_selector.rb +219 -0
  755. data/lib/kubernetes/models/v1beta2_device_sub_request.rb +293 -0
  756. data/lib/kubernetes/models/v1beta2_device_taint.rb +260 -0
  757. data/lib/kubernetes/models/v1beta2_device_toleration.rb +260 -0
  758. data/lib/kubernetes/models/v1beta2_exact_device_request.rb +288 -0
  759. data/lib/kubernetes/models/v1beta2_network_device_data.rb +242 -0
  760. data/lib/kubernetes/models/v1beta2_opaque_device_configuration.rb +240 -0
  761. data/lib/kubernetes/models/v1beta2_resource_claim.rb +262 -0
  762. data/lib/kubernetes/models/v1beta2_resource_claim_consumer_reference.rb +265 -0
  763. data/lib/kubernetes/models/v1beta2_resource_claim_list.rb +256 -0
  764. data/lib/kubernetes/models/v1beta2_resource_claim_spec.rb +219 -0
  765. data/lib/kubernetes/models/v1beta2_resource_claim_status.rb +243 -0
  766. data/lib/kubernetes/models/v1beta2_resource_claim_template.rb +253 -0
  767. data/lib/kubernetes/models/v1beta2_resource_claim_template_list.rb +256 -0
  768. data/lib/kubernetes/models/v1beta2_resource_claim_template_spec.rb +233 -0
  769. data/lib/kubernetes/models/v1beta2_resource_pool.rb +255 -0
  770. data/lib/kubernetes/models/v1beta2_resource_slice.rb +253 -0
  771. data/lib/kubernetes/models/v1beta2_resource_slice_list.rb +256 -0
  772. data/lib/kubernetes/models/v1beta2_resource_slice_spec.rb +302 -0
  773. data/lib/kubernetes/models/v2_api_group_discovery.rb +248 -0
  774. data/lib/kubernetes/models/v2_api_group_discovery_list.rb +253 -0
  775. data/lib/kubernetes/models/v2_api_resource_discovery.rb +316 -0
  776. data/lib/kubernetes/models/v2_api_subresource_discovery.rb +262 -0
  777. data/lib/kubernetes/models/v2_api_version_discovery.rb +246 -0
  778. data/lib/kubernetes/models/v2_container_resource_metric_source.rb +254 -0
  779. data/lib/kubernetes/models/v2_container_resource_metric_status.rb +254 -0
  780. data/lib/kubernetes/models/v2_cross_version_object_reference.rb +250 -0
  781. data/lib/kubernetes/models/v2_external_metric_source.rb +238 -0
  782. data/lib/kubernetes/models/v2_external_metric_status.rb +238 -0
  783. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler.rb +257 -0
  784. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_behavior.rb +228 -0
  785. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_condition.rb +270 -0
  786. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_list.rb +256 -0
  787. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_spec.rb +270 -0
  788. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_status.rb +279 -0
  789. data/lib/kubernetes/models/v2_hpa_scaling_policy.rb +255 -0
  790. data/lib/kubernetes/models/v2_hpa_scaling_rules.rb +252 -0
  791. data/lib/kubernetes/models/v2_metric_identifier.rb +234 -0
  792. data/lib/kubernetes/models/v2_metric_spec.rb +270 -0
  793. data/lib/kubernetes/models/v2_metric_status.rb +270 -0
  794. data/lib/kubernetes/models/v2_metric_target.rb +255 -0
  795. data/lib/kubernetes/models/v2_metric_value_status.rb +240 -0
  796. data/lib/kubernetes/models/v2_object_metric_source.rb +252 -0
  797. data/lib/kubernetes/models/v2_object_metric_status.rb +252 -0
  798. data/lib/kubernetes/models/v2_pods_metric_source.rb +238 -0
  799. data/lib/kubernetes/models/v2_pods_metric_status.rb +238 -0
  800. data/lib/kubernetes/models/v2_resource_metric_source.rb +239 -0
  801. data/lib/kubernetes/models/v2_resource_metric_status.rb +239 -0
  802. data/lib/kubernetes/models/v2beta1_api_group_discovery.rb +248 -0
  803. data/lib/kubernetes/models/v2beta1_api_group_discovery_list.rb +253 -0
  804. data/lib/kubernetes/models/v2beta1_api_resource_discovery.rb +316 -0
  805. data/lib/kubernetes/models/v2beta1_api_subresource_discovery.rb +262 -0
  806. data/lib/kubernetes/models/v2beta1_api_version_discovery.rb +246 -0
  807. data/lib/kubernetes/models/version_info.rb +378 -0
  808. data/lib/kubernetes/utils.rb +123 -0
  809. data/lib/kubernetes/version.rb +15 -0
  810. data/lib/kubernetes/watch.rb +4 -0
  811. data/lib/kubernetes.rb +836 -0
  812. metadata +914 -0
@@ -0,0 +1,1963 @@
1
+ =begin
2
+ #Kubernetes
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: release-1.35
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Kubernetes
16
+ class BatchV1Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # create a CronJob
23
+ # @param namespace [String] object name and auth scope, such as for teams and projects
24
+ # @param body [V1CronJob]
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 [V1CronJob]
31
+ def create_namespaced_cron_job(namespace, body, opts = {})
32
+ data, _status_code, _headers = create_namespaced_cron_job_with_http_info(namespace, body, opts)
33
+ data
34
+ end
35
+
36
+ # create a CronJob
37
+ # @param namespace [String] object name and auth scope, such as for teams and projects
38
+ # @param body [V1CronJob]
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<(V1CronJob, Integer, Hash)>] V1CronJob data, response status code and response headers
45
+ def create_namespaced_cron_job_with_http_info(namespace, body, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.create_namespaced_cron_job ...'
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 BatchV1Api.create_namespaced_cron_job"
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 BatchV1Api.create_namespaced_cron_job"
56
+ end
57
+ # resource path
58
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs'.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] || 'V1CronJob'
80
+
81
+ # auth_names
82
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
83
+
84
+ new_options = opts.merge(
85
+ :operation => :"BatchV1Api.create_namespaced_cron_job",
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: BatchV1Api#create_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ end
98
+ return data, status_code, headers
99
+ end
100
+
101
+ # create a Job
102
+ # @param namespace [String] object name and auth scope, such as for teams and projects
103
+ # @param body [V1Job]
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 [V1Job]
110
+ def create_namespaced_job(namespace, body, opts = {})
111
+ data, _status_code, _headers = create_namespaced_job_with_http_info(namespace, body, opts)
112
+ data
113
+ end
114
+
115
+ # create a Job
116
+ # @param namespace [String] object name and auth scope, such as for teams and projects
117
+ # @param body [V1Job]
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<(V1Job, Integer, Hash)>] V1Job data, response status code and response headers
124
+ def create_namespaced_job_with_http_info(namespace, body, opts = {})
125
+ if @api_client.config.debugging
126
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.create_namespaced_job ...'
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 BatchV1Api.create_namespaced_job"
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 BatchV1Api.create_namespaced_job"
135
+ end
136
+ # resource path
137
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.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] || 'V1Job'
159
+
160
+ # auth_names
161
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
162
+
163
+ new_options = opts.merge(
164
+ :operation => :"BatchV1Api.create_namespaced_job",
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: BatchV1Api#create_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+
180
+ # delete collection of CronJob
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 [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
197
+ # @option opts [V1DeleteOptions] :body
198
+ # @return [V1Status]
199
+ def delete_collection_namespaced_cron_job(namespace, opts = {})
200
+ data, _status_code, _headers = delete_collection_namespaced_cron_job_with_http_info(namespace, opts)
201
+ data
202
+ end
203
+
204
+ # delete collection of CronJob
205
+ # @param namespace [String] object name and auth scope, such as for teams and projects
206
+ # @param [Hash] opts the optional parameters
207
+ # @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).
208
+ # @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.
209
+ # @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
210
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
211
+ # @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.
212
+ # @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
213
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
214
+ # @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.
215
+ # @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.
216
+ # @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.
217
+ # @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
218
+ # @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
219
+ # @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.
220
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
221
+ # @option opts [V1DeleteOptions] :body
222
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
223
+ def delete_collection_namespaced_cron_job_with_http_info(namespace, opts = {})
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_collection_namespaced_cron_job ...'
226
+ end
227
+ # verify the required parameter 'namespace' is set
228
+ if @api_client.config.client_side_validation && namespace.nil?
229
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.delete_collection_namespaced_cron_job"
230
+ end
231
+ # resource path
232
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
233
+
234
+ # query parameters
235
+ query_params = opts[:query_params] || {}
236
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
237
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
238
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
239
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
240
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
241
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
242
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
243
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
244
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
245
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
246
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
247
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
248
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
249
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
250
+
251
+ # header parameters
252
+ header_params = opts[:header_params] || {}
253
+ # HTTP header 'Accept' (if needed)
254
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
255
+
256
+ # form parameters
257
+ form_params = opts[:form_params] || {}
258
+
259
+ # http body (model)
260
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
261
+
262
+ # return_type
263
+ return_type = opts[:debug_return_type] || 'V1Status'
264
+
265
+ # auth_names
266
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
267
+
268
+ new_options = opts.merge(
269
+ :operation => :"BatchV1Api.delete_collection_namespaced_cron_job",
270
+ :header_params => header_params,
271
+ :query_params => query_params,
272
+ :form_params => form_params,
273
+ :body => post_body,
274
+ :auth_names => auth_names,
275
+ :return_type => return_type
276
+ )
277
+
278
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_collection_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
281
+ end
282
+ return data, status_code, headers
283
+ end
284
+
285
+ # delete collection of Job
286
+ # @param namespace [String] object name and auth scope, such as for teams and projects
287
+ # @param [Hash] opts the optional parameters
288
+ # @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).
289
+ # @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.
290
+ # @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
291
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
292
+ # @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.
293
+ # @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
294
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
295
+ # @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.
296
+ # @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.
297
+ # @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.
298
+ # @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
299
+ # @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
300
+ # @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.
301
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
302
+ # @option opts [V1DeleteOptions] :body
303
+ # @return [V1Status]
304
+ def delete_collection_namespaced_job(namespace, opts = {})
305
+ data, _status_code, _headers = delete_collection_namespaced_job_with_http_info(namespace, opts)
306
+ data
307
+ end
308
+
309
+ # delete collection of Job
310
+ # @param namespace [String] object name and auth scope, such as for teams and projects
311
+ # @param [Hash] opts the optional parameters
312
+ # @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).
313
+ # @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.
314
+ # @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
315
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
316
+ # @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.
317
+ # @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
318
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
319
+ # @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.
320
+ # @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.
321
+ # @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.
322
+ # @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
323
+ # @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
324
+ # @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.
325
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
326
+ # @option opts [V1DeleteOptions] :body
327
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
328
+ def delete_collection_namespaced_job_with_http_info(namespace, opts = {})
329
+ if @api_client.config.debugging
330
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_collection_namespaced_job ...'
331
+ end
332
+ # verify the required parameter 'namespace' is set
333
+ if @api_client.config.client_side_validation && namespace.nil?
334
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.delete_collection_namespaced_job"
335
+ end
336
+ # resource path
337
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
338
+
339
+ # query parameters
340
+ query_params = opts[:query_params] || {}
341
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
342
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
343
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
344
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
345
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
346
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
347
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
348
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
349
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
350
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
351
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
352
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
353
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
354
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
355
+
356
+ # header parameters
357
+ header_params = opts[:header_params] || {}
358
+ # HTTP header 'Accept' (if needed)
359
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
360
+
361
+ # form parameters
362
+ form_params = opts[:form_params] || {}
363
+
364
+ # http body (model)
365
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
366
+
367
+ # return_type
368
+ return_type = opts[:debug_return_type] || 'V1Status'
369
+
370
+ # auth_names
371
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
372
+
373
+ new_options = opts.merge(
374
+ :operation => :"BatchV1Api.delete_collection_namespaced_job",
375
+ :header_params => header_params,
376
+ :query_params => query_params,
377
+ :form_params => form_params,
378
+ :body => post_body,
379
+ :auth_names => auth_names,
380
+ :return_type => return_type
381
+ )
382
+
383
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
384
+ if @api_client.config.debugging
385
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_collection_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
386
+ end
387
+ return data, status_code, headers
388
+ end
389
+
390
+ # delete a CronJob
391
+ # @param name [String] name of the CronJob
392
+ # @param namespace [String] object name and auth scope, such as for teams and projects
393
+ # @param [Hash] opts the optional parameters
394
+ # @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).
395
+ # @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
396
+ # @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.
397
+ # @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
398
+ # @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.
399
+ # @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.
400
+ # @option opts [V1DeleteOptions] :body
401
+ # @return [V1Status]
402
+ def delete_namespaced_cron_job(name, namespace, opts = {})
403
+ data, _status_code, _headers = delete_namespaced_cron_job_with_http_info(name, namespace, opts)
404
+ data
405
+ end
406
+
407
+ # delete a CronJob
408
+ # @param name [String] name of the CronJob
409
+ # @param namespace [String] object name and auth scope, such as for teams and projects
410
+ # @param [Hash] opts the optional parameters
411
+ # @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).
412
+ # @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
413
+ # @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.
414
+ # @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
415
+ # @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.
416
+ # @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.
417
+ # @option opts [V1DeleteOptions] :body
418
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
419
+ def delete_namespaced_cron_job_with_http_info(name, namespace, opts = {})
420
+ if @api_client.config.debugging
421
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_namespaced_cron_job ...'
422
+ end
423
+ # verify the required parameter 'name' is set
424
+ if @api_client.config.client_side_validation && name.nil?
425
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.delete_namespaced_cron_job"
426
+ end
427
+ # verify the required parameter 'namespace' is set
428
+ if @api_client.config.client_side_validation && namespace.nil?
429
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.delete_namespaced_cron_job"
430
+ end
431
+ # resource path
432
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
433
+
434
+ # query parameters
435
+ query_params = opts[:query_params] || {}
436
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
437
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
438
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
439
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
440
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
441
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
442
+
443
+ # header parameters
444
+ header_params = opts[:header_params] || {}
445
+ # HTTP header 'Accept' (if needed)
446
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
447
+
448
+ # form parameters
449
+ form_params = opts[:form_params] || {}
450
+
451
+ # http body (model)
452
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
453
+
454
+ # return_type
455
+ return_type = opts[:debug_return_type] || 'V1Status'
456
+
457
+ # auth_names
458
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
459
+
460
+ new_options = opts.merge(
461
+ :operation => :"BatchV1Api.delete_namespaced_cron_job",
462
+ :header_params => header_params,
463
+ :query_params => query_params,
464
+ :form_params => form_params,
465
+ :body => post_body,
466
+ :auth_names => auth_names,
467
+ :return_type => return_type
468
+ )
469
+
470
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
471
+ if @api_client.config.debugging
472
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
473
+ end
474
+ return data, status_code, headers
475
+ end
476
+
477
+ # delete a Job
478
+ # @param name [String] name of the Job
479
+ # @param namespace [String] object name and auth scope, such as for teams and projects
480
+ # @param [Hash] opts the optional parameters
481
+ # @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).
482
+ # @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
483
+ # @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.
484
+ # @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
485
+ # @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.
486
+ # @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.
487
+ # @option opts [V1DeleteOptions] :body
488
+ # @return [V1Status]
489
+ def delete_namespaced_job(name, namespace, opts = {})
490
+ data, _status_code, _headers = delete_namespaced_job_with_http_info(name, namespace, opts)
491
+ data
492
+ end
493
+
494
+ # delete a Job
495
+ # @param name [String] name of the Job
496
+ # @param namespace [String] object name and auth scope, such as for teams and projects
497
+ # @param [Hash] opts the optional parameters
498
+ # @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).
499
+ # @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
500
+ # @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.
501
+ # @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
502
+ # @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.
503
+ # @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.
504
+ # @option opts [V1DeleteOptions] :body
505
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
506
+ def delete_namespaced_job_with_http_info(name, namespace, opts = {})
507
+ if @api_client.config.debugging
508
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_namespaced_job ...'
509
+ end
510
+ # verify the required parameter 'name' is set
511
+ if @api_client.config.client_side_validation && name.nil?
512
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.delete_namespaced_job"
513
+ end
514
+ # verify the required parameter 'namespace' is set
515
+ if @api_client.config.client_side_validation && namespace.nil?
516
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.delete_namespaced_job"
517
+ end
518
+ # resource path
519
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
520
+
521
+ # query parameters
522
+ query_params = opts[:query_params] || {}
523
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
524
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
525
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
526
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
527
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
528
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
529
+
530
+ # header parameters
531
+ header_params = opts[:header_params] || {}
532
+ # HTTP header 'Accept' (if needed)
533
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
534
+
535
+ # form parameters
536
+ form_params = opts[:form_params] || {}
537
+
538
+ # http body (model)
539
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
540
+
541
+ # return_type
542
+ return_type = opts[:debug_return_type] || 'V1Status'
543
+
544
+ # auth_names
545
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
546
+
547
+ new_options = opts.merge(
548
+ :operation => :"BatchV1Api.delete_namespaced_job",
549
+ :header_params => header_params,
550
+ :query_params => query_params,
551
+ :form_params => form_params,
552
+ :body => post_body,
553
+ :auth_names => auth_names,
554
+ :return_type => return_type
555
+ )
556
+
557
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
558
+ if @api_client.config.debugging
559
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
560
+ end
561
+ return data, status_code, headers
562
+ end
563
+
564
+ # get available resources
565
+ # @param [Hash] opts the optional parameters
566
+ # @return [V1APIResourceList]
567
+ def get_api_resources_batch_v1(opts = {})
568
+ data, _status_code, _headers = get_api_resources_batch_v1_with_http_info(opts)
569
+ data
570
+ end
571
+
572
+ # get available resources
573
+ # @param [Hash] opts the optional parameters
574
+ # @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
575
+ def get_api_resources_batch_v1_with_http_info(opts = {})
576
+ if @api_client.config.debugging
577
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.get_api_resources_batch_v1 ...'
578
+ end
579
+ # resource path
580
+ local_var_path = '/apis/batch/v1/'
581
+
582
+ # query parameters
583
+ query_params = opts[:query_params] || {}
584
+
585
+ # header parameters
586
+ header_params = opts[:header_params] || {}
587
+ # HTTP header 'Accept' (if needed)
588
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
589
+
590
+ # form parameters
591
+ form_params = opts[:form_params] || {}
592
+
593
+ # http body (model)
594
+ post_body = opts[:debug_body]
595
+
596
+ # return_type
597
+ return_type = opts[:debug_return_type] || 'V1APIResourceList'
598
+
599
+ # auth_names
600
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
601
+
602
+ new_options = opts.merge(
603
+ :operation => :"BatchV1Api.get_api_resources_batch_v1",
604
+ :header_params => header_params,
605
+ :query_params => query_params,
606
+ :form_params => form_params,
607
+ :body => post_body,
608
+ :auth_names => auth_names,
609
+ :return_type => return_type
610
+ )
611
+
612
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug "API called: BatchV1Api#get_api_resources_batch_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
615
+ end
616
+ return data, status_code, headers
617
+ end
618
+
619
+ # list or watch objects of kind CronJob
620
+ # @param [Hash] opts the optional parameters
621
+ # @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.
622
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
623
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
624
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
625
+ # @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.
626
+ # @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).
627
+ # @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
628
+ # @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
629
+ # @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.
630
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
631
+ # @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.
632
+ # @return [V1CronJobList]
633
+ def list_cron_job_for_all_namespaces(opts = {})
634
+ data, _status_code, _headers = list_cron_job_for_all_namespaces_with_http_info(opts)
635
+ data
636
+ end
637
+
638
+ # list or watch objects of kind CronJob
639
+ # @param [Hash] opts the optional parameters
640
+ # @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.
641
+ # @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.
642
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
643
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
644
+ # @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.
645
+ # @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).
646
+ # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
647
+ # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
648
+ # @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.
649
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
650
+ # @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.
651
+ # @return [Array<(V1CronJobList, Integer, Hash)>] V1CronJobList data, response status code and response headers
652
+ def list_cron_job_for_all_namespaces_with_http_info(opts = {})
653
+ if @api_client.config.debugging
654
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_cron_job_for_all_namespaces ...'
655
+ end
656
+ # resource path
657
+ local_var_path = '/apis/batch/v1/cronjobs'
658
+
659
+ # query parameters
660
+ query_params = opts[:query_params] || {}
661
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
662
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
663
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
664
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
665
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
666
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
667
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
668
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
669
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
670
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
671
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
672
+
673
+ # header parameters
674
+ header_params = opts[:header_params] || {}
675
+ # HTTP header 'Accept' (if needed)
676
+ 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'])
677
+
678
+ # form parameters
679
+ form_params = opts[:form_params] || {}
680
+
681
+ # http body (model)
682
+ post_body = opts[:debug_body]
683
+
684
+ # return_type
685
+ return_type = opts[:debug_return_type] || 'V1CronJobList'
686
+
687
+ # auth_names
688
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
689
+
690
+ new_options = opts.merge(
691
+ :operation => :"BatchV1Api.list_cron_job_for_all_namespaces",
692
+ :header_params => header_params,
693
+ :query_params => query_params,
694
+ :form_params => form_params,
695
+ :body => post_body,
696
+ :auth_names => auth_names,
697
+ :return_type => return_type
698
+ )
699
+
700
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
701
+ if @api_client.config.debugging
702
+ @api_client.config.logger.debug "API called: BatchV1Api#list_cron_job_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
703
+ end
704
+ return data, status_code, headers
705
+ end
706
+
707
+ # list or watch objects of kind Job
708
+ # @param [Hash] opts the optional parameters
709
+ # @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.
710
+ # @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.
711
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
712
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
713
+ # @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.
714
+ # @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).
715
+ # @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
716
+ # @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
717
+ # @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.
718
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
719
+ # @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.
720
+ # @return [V1JobList]
721
+ def list_job_for_all_namespaces(opts = {})
722
+ data, _status_code, _headers = list_job_for_all_namespaces_with_http_info(opts)
723
+ data
724
+ end
725
+
726
+ # list or watch objects of kind Job
727
+ # @param [Hash] opts the optional parameters
728
+ # @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.
729
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
730
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
731
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
732
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
733
+ # @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).
734
+ # @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
735
+ # @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
736
+ # @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.
737
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
738
+ # @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.
739
+ # @return [Array<(V1JobList, Integer, Hash)>] V1JobList data, response status code and response headers
740
+ def list_job_for_all_namespaces_with_http_info(opts = {})
741
+ if @api_client.config.debugging
742
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_job_for_all_namespaces ...'
743
+ end
744
+ # resource path
745
+ local_var_path = '/apis/batch/v1/jobs'
746
+
747
+ # query parameters
748
+ query_params = opts[:query_params] || {}
749
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
750
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
751
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
752
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
753
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
754
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
755
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
756
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
757
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
758
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
759
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
760
+
761
+ # header parameters
762
+ header_params = opts[:header_params] || {}
763
+ # HTTP header 'Accept' (if needed)
764
+ 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'])
765
+
766
+ # form parameters
767
+ form_params = opts[:form_params] || {}
768
+
769
+ # http body (model)
770
+ post_body = opts[:debug_body]
771
+
772
+ # return_type
773
+ return_type = opts[:debug_return_type] || 'V1JobList'
774
+
775
+ # auth_names
776
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
777
+
778
+ new_options = opts.merge(
779
+ :operation => :"BatchV1Api.list_job_for_all_namespaces",
780
+ :header_params => header_params,
781
+ :query_params => query_params,
782
+ :form_params => form_params,
783
+ :body => post_body,
784
+ :auth_names => auth_names,
785
+ :return_type => return_type
786
+ )
787
+
788
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
789
+ if @api_client.config.debugging
790
+ @api_client.config.logger.debug "API called: BatchV1Api#list_job_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
791
+ end
792
+ return data, status_code, headers
793
+ end
794
+
795
+ # list or watch objects of kind CronJob
796
+ # @param namespace [String] object name and auth scope, such as for teams and projects
797
+ # @param [Hash] opts the optional parameters
798
+ # @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).
799
+ # @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.
800
+ # @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.
801
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
802
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
803
+ # @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.
804
+ # @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
805
+ # @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
806
+ # @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.
807
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
808
+ # @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.
809
+ # @return [V1CronJobList]
810
+ def list_namespaced_cron_job(namespace, opts = {})
811
+ data, _status_code, _headers = list_namespaced_cron_job_with_http_info(namespace, opts)
812
+ data
813
+ end
814
+
815
+ # list or watch objects of kind CronJob
816
+ # @param namespace [String] object name and auth scope, such as for teams and projects
817
+ # @param [Hash] opts the optional parameters
818
+ # @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).
819
+ # @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.
820
+ # @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.
821
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
822
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
823
+ # @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.
824
+ # @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
825
+ # @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
826
+ # @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.
827
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
828
+ # @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.
829
+ # @return [Array<(V1CronJobList, Integer, Hash)>] V1CronJobList data, response status code and response headers
830
+ def list_namespaced_cron_job_with_http_info(namespace, opts = {})
831
+ if @api_client.config.debugging
832
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_namespaced_cron_job ...'
833
+ end
834
+ # verify the required parameter 'namespace' is set
835
+ if @api_client.config.client_side_validation && namespace.nil?
836
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.list_namespaced_cron_job"
837
+ end
838
+ # resource path
839
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
840
+
841
+ # query parameters
842
+ query_params = opts[:query_params] || {}
843
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
844
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
845
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
846
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
847
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
848
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
849
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
850
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
851
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
852
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
853
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
854
+
855
+ # header parameters
856
+ header_params = opts[:header_params] || {}
857
+ # HTTP header 'Accept' (if needed)
858
+ 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'])
859
+
860
+ # form parameters
861
+ form_params = opts[:form_params] || {}
862
+
863
+ # http body (model)
864
+ post_body = opts[:debug_body]
865
+
866
+ # return_type
867
+ return_type = opts[:debug_return_type] || 'V1CronJobList'
868
+
869
+ # auth_names
870
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
871
+
872
+ new_options = opts.merge(
873
+ :operation => :"BatchV1Api.list_namespaced_cron_job",
874
+ :header_params => header_params,
875
+ :query_params => query_params,
876
+ :form_params => form_params,
877
+ :body => post_body,
878
+ :auth_names => auth_names,
879
+ :return_type => return_type
880
+ )
881
+
882
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
883
+ if @api_client.config.debugging
884
+ @api_client.config.logger.debug "API called: BatchV1Api#list_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
885
+ end
886
+ return data, status_code, headers
887
+ end
888
+
889
+ # list or watch objects of kind Job
890
+ # @param namespace [String] object name and auth scope, such as for teams and projects
891
+ # @param [Hash] opts the optional parameters
892
+ # @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).
893
+ # @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.
894
+ # @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.
895
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
896
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
897
+ # @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.
898
+ # @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
899
+ # @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
900
+ # @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.
901
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
902
+ # @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.
903
+ # @return [V1JobList]
904
+ def list_namespaced_job(namespace, opts = {})
905
+ data, _status_code, _headers = list_namespaced_job_with_http_info(namespace, opts)
906
+ data
907
+ end
908
+
909
+ # list or watch objects of kind Job
910
+ # @param namespace [String] object name and auth scope, such as for teams and projects
911
+ # @param [Hash] opts the optional parameters
912
+ # @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).
913
+ # @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.
914
+ # @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.
915
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
916
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
917
+ # @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.
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 [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
922
+ # @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.
923
+ # @return [Array<(V1JobList, Integer, Hash)>] V1JobList data, response status code and response headers
924
+ def list_namespaced_job_with_http_info(namespace, opts = {})
925
+ if @api_client.config.debugging
926
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_namespaced_job ...'
927
+ end
928
+ # verify the required parameter 'namespace' is set
929
+ if @api_client.config.client_side_validation && namespace.nil?
930
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.list_namespaced_job"
931
+ end
932
+ # resource path
933
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
934
+
935
+ # query parameters
936
+ query_params = opts[:query_params] || {}
937
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
938
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
939
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
940
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
941
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
942
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
943
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
944
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
945
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
946
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
947
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
948
+
949
+ # header parameters
950
+ header_params = opts[:header_params] || {}
951
+ # HTTP header 'Accept' (if needed)
952
+ 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'])
953
+
954
+ # form parameters
955
+ form_params = opts[:form_params] || {}
956
+
957
+ # http body (model)
958
+ post_body = opts[:debug_body]
959
+
960
+ # return_type
961
+ return_type = opts[:debug_return_type] || 'V1JobList'
962
+
963
+ # auth_names
964
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
965
+
966
+ new_options = opts.merge(
967
+ :operation => :"BatchV1Api.list_namespaced_job",
968
+ :header_params => header_params,
969
+ :query_params => query_params,
970
+ :form_params => form_params,
971
+ :body => post_body,
972
+ :auth_names => auth_names,
973
+ :return_type => return_type
974
+ )
975
+
976
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
977
+ if @api_client.config.debugging
978
+ @api_client.config.logger.debug "API called: BatchV1Api#list_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
979
+ end
980
+ return data, status_code, headers
981
+ end
982
+
983
+ # partially update the specified CronJob
984
+ # @param name [String] name of the CronJob
985
+ # @param namespace [String] object name and auth scope, such as for teams and projects
986
+ # @param body [Object]
987
+ # @param [Hash] opts the optional parameters
988
+ # @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).
989
+ # @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
990
+ # @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).
991
+ # @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.
992
+ # @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.
993
+ # @return [V1CronJob]
994
+ def patch_namespaced_cron_job(name, namespace, body, opts = {})
995
+ data, _status_code, _headers = patch_namespaced_cron_job_with_http_info(name, namespace, body, opts)
996
+ data
997
+ end
998
+
999
+ # partially update the specified CronJob
1000
+ # @param name [String] name of the CronJob
1001
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1002
+ # @param body [Object]
1003
+ # @param [Hash] opts the optional parameters
1004
+ # @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).
1005
+ # @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
1006
+ # @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).
1007
+ # @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.
1008
+ # @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.
1009
+ # @return [Array<(V1CronJob, Integer, Hash)>] V1CronJob data, response status code and response headers
1010
+ def patch_namespaced_cron_job_with_http_info(name, namespace, body, opts = {})
1011
+ if @api_client.config.debugging
1012
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_namespaced_cron_job ...'
1013
+ end
1014
+ # verify the required parameter 'name' is set
1015
+ if @api_client.config.client_side_validation && name.nil?
1016
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.patch_namespaced_cron_job"
1017
+ end
1018
+ # verify the required parameter 'namespace' is set
1019
+ if @api_client.config.client_side_validation && namespace.nil?
1020
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.patch_namespaced_cron_job"
1021
+ end
1022
+ # verify the required parameter 'body' is set
1023
+ if @api_client.config.client_side_validation && body.nil?
1024
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.patch_namespaced_cron_job"
1025
+ end
1026
+ # resource path
1027
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1028
+
1029
+ # query parameters
1030
+ query_params = opts[:query_params] || {}
1031
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1032
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1033
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1034
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1035
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1036
+
1037
+ # header parameters
1038
+ header_params = opts[:header_params] || {}
1039
+ # HTTP header 'Accept' (if needed)
1040
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1041
+ # HTTP header 'Content-Type'
1042
+ 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'])
1043
+
1044
+ # form parameters
1045
+ form_params = opts[:form_params] || {}
1046
+
1047
+ # http body (model)
1048
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1049
+
1050
+ # return_type
1051
+ return_type = opts[:debug_return_type] || 'V1CronJob'
1052
+
1053
+ # auth_names
1054
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1055
+
1056
+ new_options = opts.merge(
1057
+ :operation => :"BatchV1Api.patch_namespaced_cron_job",
1058
+ :header_params => header_params,
1059
+ :query_params => query_params,
1060
+ :form_params => form_params,
1061
+ :body => post_body,
1062
+ :auth_names => auth_names,
1063
+ :return_type => return_type
1064
+ )
1065
+
1066
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1067
+ if @api_client.config.debugging
1068
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1069
+ end
1070
+ return data, status_code, headers
1071
+ end
1072
+
1073
+ # partially update status of the specified CronJob
1074
+ # @param name [String] name of the CronJob
1075
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1076
+ # @param body [Object]
1077
+ # @param [Hash] opts the optional parameters
1078
+ # @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).
1079
+ # @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
1080
+ # @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).
1081
+ # @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.
1082
+ # @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.
1083
+ # @return [V1CronJob]
1084
+ def patch_namespaced_cron_job_status(name, namespace, body, opts = {})
1085
+ data, _status_code, _headers = patch_namespaced_cron_job_status_with_http_info(name, namespace, body, opts)
1086
+ data
1087
+ end
1088
+
1089
+ # partially update status of the specified CronJob
1090
+ # @param name [String] name of the CronJob
1091
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1092
+ # @param body [Object]
1093
+ # @param [Hash] opts the optional parameters
1094
+ # @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).
1095
+ # @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
1096
+ # @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).
1097
+ # @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.
1098
+ # @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.
1099
+ # @return [Array<(V1CronJob, Integer, Hash)>] V1CronJob data, response status code and response headers
1100
+ def patch_namespaced_cron_job_status_with_http_info(name, namespace, body, opts = {})
1101
+ if @api_client.config.debugging
1102
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_namespaced_cron_job_status ...'
1103
+ end
1104
+ # verify the required parameter 'name' is set
1105
+ if @api_client.config.client_side_validation && name.nil?
1106
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.patch_namespaced_cron_job_status"
1107
+ end
1108
+ # verify the required parameter 'namespace' is set
1109
+ if @api_client.config.client_side_validation && namespace.nil?
1110
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.patch_namespaced_cron_job_status"
1111
+ end
1112
+ # verify the required parameter 'body' is set
1113
+ if @api_client.config.client_side_validation && body.nil?
1114
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.patch_namespaced_cron_job_status"
1115
+ end
1116
+ # resource path
1117
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1118
+
1119
+ # query parameters
1120
+ query_params = opts[:query_params] || {}
1121
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1122
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1123
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1124
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1125
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1126
+
1127
+ # header parameters
1128
+ header_params = opts[:header_params] || {}
1129
+ # HTTP header 'Accept' (if needed)
1130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1131
+ # HTTP header 'Content-Type'
1132
+ 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'])
1133
+
1134
+ # form parameters
1135
+ form_params = opts[:form_params] || {}
1136
+
1137
+ # http body (model)
1138
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1139
+
1140
+ # return_type
1141
+ return_type = opts[:debug_return_type] || 'V1CronJob'
1142
+
1143
+ # auth_names
1144
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1145
+
1146
+ new_options = opts.merge(
1147
+ :operation => :"BatchV1Api.patch_namespaced_cron_job_status",
1148
+ :header_params => header_params,
1149
+ :query_params => query_params,
1150
+ :form_params => form_params,
1151
+ :body => post_body,
1152
+ :auth_names => auth_names,
1153
+ :return_type => return_type
1154
+ )
1155
+
1156
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1157
+ if @api_client.config.debugging
1158
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_namespaced_cron_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1159
+ end
1160
+ return data, status_code, headers
1161
+ end
1162
+
1163
+ # partially update the specified Job
1164
+ # @param name [String] name of the Job
1165
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1166
+ # @param body [Object]
1167
+ # @param [Hash] opts the optional parameters
1168
+ # @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).
1169
+ # @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
1170
+ # @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).
1171
+ # @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.
1172
+ # @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.
1173
+ # @return [V1Job]
1174
+ def patch_namespaced_job(name, namespace, body, opts = {})
1175
+ data, _status_code, _headers = patch_namespaced_job_with_http_info(name, namespace, body, opts)
1176
+ data
1177
+ end
1178
+
1179
+ # partially update the specified Job
1180
+ # @param name [String] name of the Job
1181
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1182
+ # @param body [Object]
1183
+ # @param [Hash] opts the optional parameters
1184
+ # @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).
1185
+ # @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
1186
+ # @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).
1187
+ # @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.
1188
+ # @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.
1189
+ # @return [Array<(V1Job, Integer, Hash)>] V1Job data, response status code and response headers
1190
+ def patch_namespaced_job_with_http_info(name, namespace, body, opts = {})
1191
+ if @api_client.config.debugging
1192
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_namespaced_job ...'
1193
+ end
1194
+ # verify the required parameter 'name' is set
1195
+ if @api_client.config.client_side_validation && name.nil?
1196
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.patch_namespaced_job"
1197
+ end
1198
+ # verify the required parameter 'namespace' is set
1199
+ if @api_client.config.client_side_validation && namespace.nil?
1200
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.patch_namespaced_job"
1201
+ end
1202
+ # verify the required parameter 'body' is set
1203
+ if @api_client.config.client_side_validation && body.nil?
1204
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.patch_namespaced_job"
1205
+ end
1206
+ # resource path
1207
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1208
+
1209
+ # query parameters
1210
+ query_params = opts[:query_params] || {}
1211
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1212
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1213
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1214
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1215
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1216
+
1217
+ # header parameters
1218
+ header_params = opts[:header_params] || {}
1219
+ # HTTP header 'Accept' (if needed)
1220
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1221
+ # HTTP header 'Content-Type'
1222
+ 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'])
1223
+
1224
+ # form parameters
1225
+ form_params = opts[:form_params] || {}
1226
+
1227
+ # http body (model)
1228
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1229
+
1230
+ # return_type
1231
+ return_type = opts[:debug_return_type] || 'V1Job'
1232
+
1233
+ # auth_names
1234
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1235
+
1236
+ new_options = opts.merge(
1237
+ :operation => :"BatchV1Api.patch_namespaced_job",
1238
+ :header_params => header_params,
1239
+ :query_params => query_params,
1240
+ :form_params => form_params,
1241
+ :body => post_body,
1242
+ :auth_names => auth_names,
1243
+ :return_type => return_type
1244
+ )
1245
+
1246
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1247
+ if @api_client.config.debugging
1248
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1249
+ end
1250
+ return data, status_code, headers
1251
+ end
1252
+
1253
+ # partially update status of the specified Job
1254
+ # @param name [String] name of the Job
1255
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1256
+ # @param body [Object]
1257
+ # @param [Hash] opts the optional parameters
1258
+ # @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).
1259
+ # @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
1260
+ # @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).
1261
+ # @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.
1262
+ # @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.
1263
+ # @return [V1Job]
1264
+ def patch_namespaced_job_status(name, namespace, body, opts = {})
1265
+ data, _status_code, _headers = patch_namespaced_job_status_with_http_info(name, namespace, body, opts)
1266
+ data
1267
+ end
1268
+
1269
+ # partially update status of the specified Job
1270
+ # @param name [String] name of the Job
1271
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1272
+ # @param body [Object]
1273
+ # @param [Hash] opts the optional parameters
1274
+ # @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).
1275
+ # @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
1276
+ # @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).
1277
+ # @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.
1278
+ # @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.
1279
+ # @return [Array<(V1Job, Integer, Hash)>] V1Job data, response status code and response headers
1280
+ def patch_namespaced_job_status_with_http_info(name, namespace, body, opts = {})
1281
+ if @api_client.config.debugging
1282
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_namespaced_job_status ...'
1283
+ end
1284
+ # verify the required parameter 'name' is set
1285
+ if @api_client.config.client_side_validation && name.nil?
1286
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.patch_namespaced_job_status"
1287
+ end
1288
+ # verify the required parameter 'namespace' is set
1289
+ if @api_client.config.client_side_validation && namespace.nil?
1290
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.patch_namespaced_job_status"
1291
+ end
1292
+ # verify the required parameter 'body' is set
1293
+ if @api_client.config.client_side_validation && body.nil?
1294
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.patch_namespaced_job_status"
1295
+ end
1296
+ # resource path
1297
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1298
+
1299
+ # query parameters
1300
+ query_params = opts[:query_params] || {}
1301
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1302
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1303
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1304
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1305
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].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
+ # HTTP header 'Content-Type'
1312
+ 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'])
1313
+
1314
+ # form parameters
1315
+ form_params = opts[:form_params] || {}
1316
+
1317
+ # http body (model)
1318
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1319
+
1320
+ # return_type
1321
+ return_type = opts[:debug_return_type] || 'V1Job'
1322
+
1323
+ # auth_names
1324
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1325
+
1326
+ new_options = opts.merge(
1327
+ :operation => :"BatchV1Api.patch_namespaced_job_status",
1328
+ :header_params => header_params,
1329
+ :query_params => query_params,
1330
+ :form_params => form_params,
1331
+ :body => post_body,
1332
+ :auth_names => auth_names,
1333
+ :return_type => return_type
1334
+ )
1335
+
1336
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1337
+ if @api_client.config.debugging
1338
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_namespaced_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1339
+ end
1340
+ return data, status_code, headers
1341
+ end
1342
+
1343
+ # read the specified CronJob
1344
+ # @param name [String] name of the CronJob
1345
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1346
+ # @param [Hash] opts the optional parameters
1347
+ # @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).
1348
+ # @return [V1CronJob]
1349
+ def read_namespaced_cron_job(name, namespace, opts = {})
1350
+ data, _status_code, _headers = read_namespaced_cron_job_with_http_info(name, namespace, opts)
1351
+ data
1352
+ end
1353
+
1354
+ # read the specified CronJob
1355
+ # @param name [String] name of the CronJob
1356
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1357
+ # @param [Hash] opts the optional parameters
1358
+ # @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).
1359
+ # @return [Array<(V1CronJob, Integer, Hash)>] V1CronJob data, response status code and response headers
1360
+ def read_namespaced_cron_job_with_http_info(name, namespace, opts = {})
1361
+ if @api_client.config.debugging
1362
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_namespaced_cron_job ...'
1363
+ end
1364
+ # verify the required parameter 'name' is set
1365
+ if @api_client.config.client_side_validation && name.nil?
1366
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.read_namespaced_cron_job"
1367
+ end
1368
+ # verify the required parameter 'namespace' is set
1369
+ if @api_client.config.client_side_validation && namespace.nil?
1370
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.read_namespaced_cron_job"
1371
+ end
1372
+ # resource path
1373
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1374
+
1375
+ # query parameters
1376
+ query_params = opts[:query_params] || {}
1377
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1378
+
1379
+ # header parameters
1380
+ header_params = opts[:header_params] || {}
1381
+ # HTTP header 'Accept' (if needed)
1382
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1383
+
1384
+ # form parameters
1385
+ form_params = opts[:form_params] || {}
1386
+
1387
+ # http body (model)
1388
+ post_body = opts[:debug_body]
1389
+
1390
+ # return_type
1391
+ return_type = opts[:debug_return_type] || 'V1CronJob'
1392
+
1393
+ # auth_names
1394
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1395
+
1396
+ new_options = opts.merge(
1397
+ :operation => :"BatchV1Api.read_namespaced_cron_job",
1398
+ :header_params => header_params,
1399
+ :query_params => query_params,
1400
+ :form_params => form_params,
1401
+ :body => post_body,
1402
+ :auth_names => auth_names,
1403
+ :return_type => return_type
1404
+ )
1405
+
1406
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1407
+ if @api_client.config.debugging
1408
+ @api_client.config.logger.debug "API called: BatchV1Api#read_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1409
+ end
1410
+ return data, status_code, headers
1411
+ end
1412
+
1413
+ # read status of the specified CronJob
1414
+ # @param name [String] name of the CronJob
1415
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1416
+ # @param [Hash] opts the optional parameters
1417
+ # @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).
1418
+ # @return [V1CronJob]
1419
+ def read_namespaced_cron_job_status(name, namespace, opts = {})
1420
+ data, _status_code, _headers = read_namespaced_cron_job_status_with_http_info(name, namespace, opts)
1421
+ data
1422
+ end
1423
+
1424
+ # read status of the specified CronJob
1425
+ # @param name [String] name of the CronJob
1426
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1427
+ # @param [Hash] opts the optional parameters
1428
+ # @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).
1429
+ # @return [Array<(V1CronJob, Integer, Hash)>] V1CronJob data, response status code and response headers
1430
+ def read_namespaced_cron_job_status_with_http_info(name, namespace, opts = {})
1431
+ if @api_client.config.debugging
1432
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_namespaced_cron_job_status ...'
1433
+ end
1434
+ # verify the required parameter 'name' is set
1435
+ if @api_client.config.client_side_validation && name.nil?
1436
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.read_namespaced_cron_job_status"
1437
+ end
1438
+ # verify the required parameter 'namespace' is set
1439
+ if @api_client.config.client_side_validation && namespace.nil?
1440
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.read_namespaced_cron_job_status"
1441
+ end
1442
+ # resource path
1443
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1444
+
1445
+ # query parameters
1446
+ query_params = opts[:query_params] || {}
1447
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1448
+
1449
+ # header parameters
1450
+ header_params = opts[:header_params] || {}
1451
+ # HTTP header 'Accept' (if needed)
1452
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1453
+
1454
+ # form parameters
1455
+ form_params = opts[:form_params] || {}
1456
+
1457
+ # http body (model)
1458
+ post_body = opts[:debug_body]
1459
+
1460
+ # return_type
1461
+ return_type = opts[:debug_return_type] || 'V1CronJob'
1462
+
1463
+ # auth_names
1464
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1465
+
1466
+ new_options = opts.merge(
1467
+ :operation => :"BatchV1Api.read_namespaced_cron_job_status",
1468
+ :header_params => header_params,
1469
+ :query_params => query_params,
1470
+ :form_params => form_params,
1471
+ :body => post_body,
1472
+ :auth_names => auth_names,
1473
+ :return_type => return_type
1474
+ )
1475
+
1476
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1477
+ if @api_client.config.debugging
1478
+ @api_client.config.logger.debug "API called: BatchV1Api#read_namespaced_cron_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1479
+ end
1480
+ return data, status_code, headers
1481
+ end
1482
+
1483
+ # read the specified Job
1484
+ # @param name [String] name of the Job
1485
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1486
+ # @param [Hash] opts the optional parameters
1487
+ # @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).
1488
+ # @return [V1Job]
1489
+ def read_namespaced_job(name, namespace, opts = {})
1490
+ data, _status_code, _headers = read_namespaced_job_with_http_info(name, namespace, opts)
1491
+ data
1492
+ end
1493
+
1494
+ # read the specified Job
1495
+ # @param name [String] name of the Job
1496
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1497
+ # @param [Hash] opts the optional parameters
1498
+ # @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).
1499
+ # @return [Array<(V1Job, Integer, Hash)>] V1Job data, response status code and response headers
1500
+ def read_namespaced_job_with_http_info(name, namespace, opts = {})
1501
+ if @api_client.config.debugging
1502
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_namespaced_job ...'
1503
+ end
1504
+ # verify the required parameter 'name' is set
1505
+ if @api_client.config.client_side_validation && name.nil?
1506
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.read_namespaced_job"
1507
+ end
1508
+ # verify the required parameter 'namespace' is set
1509
+ if @api_client.config.client_side_validation && namespace.nil?
1510
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.read_namespaced_job"
1511
+ end
1512
+ # resource path
1513
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1514
+
1515
+ # query parameters
1516
+ query_params = opts[:query_params] || {}
1517
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1518
+
1519
+ # header parameters
1520
+ header_params = opts[:header_params] || {}
1521
+ # HTTP header 'Accept' (if needed)
1522
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1523
+
1524
+ # form parameters
1525
+ form_params = opts[:form_params] || {}
1526
+
1527
+ # http body (model)
1528
+ post_body = opts[:debug_body]
1529
+
1530
+ # return_type
1531
+ return_type = opts[:debug_return_type] || 'V1Job'
1532
+
1533
+ # auth_names
1534
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1535
+
1536
+ new_options = opts.merge(
1537
+ :operation => :"BatchV1Api.read_namespaced_job",
1538
+ :header_params => header_params,
1539
+ :query_params => query_params,
1540
+ :form_params => form_params,
1541
+ :body => post_body,
1542
+ :auth_names => auth_names,
1543
+ :return_type => return_type
1544
+ )
1545
+
1546
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1547
+ if @api_client.config.debugging
1548
+ @api_client.config.logger.debug "API called: BatchV1Api#read_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1549
+ end
1550
+ return data, status_code, headers
1551
+ end
1552
+
1553
+ # read status of the specified Job
1554
+ # @param name [String] name of the Job
1555
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1556
+ # @param [Hash] opts the optional parameters
1557
+ # @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).
1558
+ # @return [V1Job]
1559
+ def read_namespaced_job_status(name, namespace, opts = {})
1560
+ data, _status_code, _headers = read_namespaced_job_status_with_http_info(name, namespace, opts)
1561
+ data
1562
+ end
1563
+
1564
+ # read status of the specified Job
1565
+ # @param name [String] name of the Job
1566
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1567
+ # @param [Hash] opts the optional parameters
1568
+ # @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).
1569
+ # @return [Array<(V1Job, Integer, Hash)>] V1Job data, response status code and response headers
1570
+ def read_namespaced_job_status_with_http_info(name, namespace, opts = {})
1571
+ if @api_client.config.debugging
1572
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_namespaced_job_status ...'
1573
+ end
1574
+ # verify the required parameter 'name' is set
1575
+ if @api_client.config.client_side_validation && name.nil?
1576
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.read_namespaced_job_status"
1577
+ end
1578
+ # verify the required parameter 'namespace' is set
1579
+ if @api_client.config.client_side_validation && namespace.nil?
1580
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.read_namespaced_job_status"
1581
+ end
1582
+ # resource path
1583
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1584
+
1585
+ # query parameters
1586
+ query_params = opts[:query_params] || {}
1587
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1588
+
1589
+ # header parameters
1590
+ header_params = opts[:header_params] || {}
1591
+ # HTTP header 'Accept' (if needed)
1592
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1593
+
1594
+ # form parameters
1595
+ form_params = opts[:form_params] || {}
1596
+
1597
+ # http body (model)
1598
+ post_body = opts[:debug_body]
1599
+
1600
+ # return_type
1601
+ return_type = opts[:debug_return_type] || 'V1Job'
1602
+
1603
+ # auth_names
1604
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1605
+
1606
+ new_options = opts.merge(
1607
+ :operation => :"BatchV1Api.read_namespaced_job_status",
1608
+ :header_params => header_params,
1609
+ :query_params => query_params,
1610
+ :form_params => form_params,
1611
+ :body => post_body,
1612
+ :auth_names => auth_names,
1613
+ :return_type => return_type
1614
+ )
1615
+
1616
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1617
+ if @api_client.config.debugging
1618
+ @api_client.config.logger.debug "API called: BatchV1Api#read_namespaced_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1619
+ end
1620
+ return data, status_code, headers
1621
+ end
1622
+
1623
+ # replace the specified CronJob
1624
+ # @param name [String] name of the CronJob
1625
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1626
+ # @param body [V1CronJob]
1627
+ # @param [Hash] opts the optional parameters
1628
+ # @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).
1629
+ # @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
1630
+ # @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.
1631
+ # @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.
1632
+ # @return [V1CronJob]
1633
+ def replace_namespaced_cron_job(name, namespace, body, opts = {})
1634
+ data, _status_code, _headers = replace_namespaced_cron_job_with_http_info(name, namespace, body, opts)
1635
+ data
1636
+ end
1637
+
1638
+ # replace the specified CronJob
1639
+ # @param name [String] name of the CronJob
1640
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1641
+ # @param body [V1CronJob]
1642
+ # @param [Hash] opts the optional parameters
1643
+ # @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).
1644
+ # @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
1645
+ # @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.
1646
+ # @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.
1647
+ # @return [Array<(V1CronJob, Integer, Hash)>] V1CronJob data, response status code and response headers
1648
+ def replace_namespaced_cron_job_with_http_info(name, namespace, body, opts = {})
1649
+ if @api_client.config.debugging
1650
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_namespaced_cron_job ...'
1651
+ end
1652
+ # verify the required parameter 'name' is set
1653
+ if @api_client.config.client_side_validation && name.nil?
1654
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.replace_namespaced_cron_job"
1655
+ end
1656
+ # verify the required parameter 'namespace' is set
1657
+ if @api_client.config.client_side_validation && namespace.nil?
1658
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.replace_namespaced_cron_job"
1659
+ end
1660
+ # verify the required parameter 'body' is set
1661
+ if @api_client.config.client_side_validation && body.nil?
1662
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.replace_namespaced_cron_job"
1663
+ end
1664
+ # resource path
1665
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1666
+
1667
+ # query parameters
1668
+ query_params = opts[:query_params] || {}
1669
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1670
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1671
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1672
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1673
+
1674
+ # header parameters
1675
+ header_params = opts[:header_params] || {}
1676
+ # HTTP header 'Accept' (if needed)
1677
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1678
+
1679
+ # form parameters
1680
+ form_params = opts[:form_params] || {}
1681
+
1682
+ # http body (model)
1683
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1684
+
1685
+ # return_type
1686
+ return_type = opts[:debug_return_type] || 'V1CronJob'
1687
+
1688
+ # auth_names
1689
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1690
+
1691
+ new_options = opts.merge(
1692
+ :operation => :"BatchV1Api.replace_namespaced_cron_job",
1693
+ :header_params => header_params,
1694
+ :query_params => query_params,
1695
+ :form_params => form_params,
1696
+ :body => post_body,
1697
+ :auth_names => auth_names,
1698
+ :return_type => return_type
1699
+ )
1700
+
1701
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1702
+ if @api_client.config.debugging
1703
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1704
+ end
1705
+ return data, status_code, headers
1706
+ end
1707
+
1708
+ # replace status of the specified CronJob
1709
+ # @param name [String] name of the CronJob
1710
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1711
+ # @param body [V1CronJob]
1712
+ # @param [Hash] opts the optional parameters
1713
+ # @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).
1714
+ # @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
1715
+ # @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.
1716
+ # @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.
1717
+ # @return [V1CronJob]
1718
+ def replace_namespaced_cron_job_status(name, namespace, body, opts = {})
1719
+ data, _status_code, _headers = replace_namespaced_cron_job_status_with_http_info(name, namespace, body, opts)
1720
+ data
1721
+ end
1722
+
1723
+ # replace status of the specified CronJob
1724
+ # @param name [String] name of the CronJob
1725
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1726
+ # @param body [V1CronJob]
1727
+ # @param [Hash] opts the optional parameters
1728
+ # @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).
1729
+ # @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
1730
+ # @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.
1731
+ # @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.
1732
+ # @return [Array<(V1CronJob, Integer, Hash)>] V1CronJob data, response status code and response headers
1733
+ def replace_namespaced_cron_job_status_with_http_info(name, namespace, body, opts = {})
1734
+ if @api_client.config.debugging
1735
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_namespaced_cron_job_status ...'
1736
+ end
1737
+ # verify the required parameter 'name' is set
1738
+ if @api_client.config.client_side_validation && name.nil?
1739
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.replace_namespaced_cron_job_status"
1740
+ end
1741
+ # verify the required parameter 'namespace' is set
1742
+ if @api_client.config.client_side_validation && namespace.nil?
1743
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.replace_namespaced_cron_job_status"
1744
+ end
1745
+ # verify the required parameter 'body' is set
1746
+ if @api_client.config.client_side_validation && body.nil?
1747
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.replace_namespaced_cron_job_status"
1748
+ end
1749
+ # resource path
1750
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1751
+
1752
+ # query parameters
1753
+ query_params = opts[:query_params] || {}
1754
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1755
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1756
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1757
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1758
+
1759
+ # header parameters
1760
+ header_params = opts[:header_params] || {}
1761
+ # HTTP header 'Accept' (if needed)
1762
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1763
+
1764
+ # form parameters
1765
+ form_params = opts[:form_params] || {}
1766
+
1767
+ # http body (model)
1768
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1769
+
1770
+ # return_type
1771
+ return_type = opts[:debug_return_type] || 'V1CronJob'
1772
+
1773
+ # auth_names
1774
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1775
+
1776
+ new_options = opts.merge(
1777
+ :operation => :"BatchV1Api.replace_namespaced_cron_job_status",
1778
+ :header_params => header_params,
1779
+ :query_params => query_params,
1780
+ :form_params => form_params,
1781
+ :body => post_body,
1782
+ :auth_names => auth_names,
1783
+ :return_type => return_type
1784
+ )
1785
+
1786
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1787
+ if @api_client.config.debugging
1788
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_namespaced_cron_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1789
+ end
1790
+ return data, status_code, headers
1791
+ end
1792
+
1793
+ # replace the specified Job
1794
+ # @param name [String] name of the Job
1795
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1796
+ # @param body [V1Job]
1797
+ # @param [Hash] opts the optional parameters
1798
+ # @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).
1799
+ # @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
1800
+ # @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.
1801
+ # @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.
1802
+ # @return [V1Job]
1803
+ def replace_namespaced_job(name, namespace, body, opts = {})
1804
+ data, _status_code, _headers = replace_namespaced_job_with_http_info(name, namespace, body, opts)
1805
+ data
1806
+ end
1807
+
1808
+ # replace the specified Job
1809
+ # @param name [String] name of the Job
1810
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1811
+ # @param body [V1Job]
1812
+ # @param [Hash] opts the optional parameters
1813
+ # @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).
1814
+ # @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
1815
+ # @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.
1816
+ # @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.
1817
+ # @return [Array<(V1Job, Integer, Hash)>] V1Job data, response status code and response headers
1818
+ def replace_namespaced_job_with_http_info(name, namespace, body, opts = {})
1819
+ if @api_client.config.debugging
1820
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_namespaced_job ...'
1821
+ end
1822
+ # verify the required parameter 'name' is set
1823
+ if @api_client.config.client_side_validation && name.nil?
1824
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.replace_namespaced_job"
1825
+ end
1826
+ # verify the required parameter 'namespace' is set
1827
+ if @api_client.config.client_side_validation && namespace.nil?
1828
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.replace_namespaced_job"
1829
+ end
1830
+ # verify the required parameter 'body' is set
1831
+ if @api_client.config.client_side_validation && body.nil?
1832
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.replace_namespaced_job"
1833
+ end
1834
+ # resource path
1835
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1836
+
1837
+ # query parameters
1838
+ query_params = opts[:query_params] || {}
1839
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1840
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1841
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1842
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1843
+
1844
+ # header parameters
1845
+ header_params = opts[:header_params] || {}
1846
+ # HTTP header 'Accept' (if needed)
1847
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1848
+
1849
+ # form parameters
1850
+ form_params = opts[:form_params] || {}
1851
+
1852
+ # http body (model)
1853
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1854
+
1855
+ # return_type
1856
+ return_type = opts[:debug_return_type] || 'V1Job'
1857
+
1858
+ # auth_names
1859
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1860
+
1861
+ new_options = opts.merge(
1862
+ :operation => :"BatchV1Api.replace_namespaced_job",
1863
+ :header_params => header_params,
1864
+ :query_params => query_params,
1865
+ :form_params => form_params,
1866
+ :body => post_body,
1867
+ :auth_names => auth_names,
1868
+ :return_type => return_type
1869
+ )
1870
+
1871
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1872
+ if @api_client.config.debugging
1873
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1874
+ end
1875
+ return data, status_code, headers
1876
+ end
1877
+
1878
+ # replace status of the specified Job
1879
+ # @param name [String] name of the Job
1880
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1881
+ # @param body [V1Job]
1882
+ # @param [Hash] opts the optional parameters
1883
+ # @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).
1884
+ # @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
1885
+ # @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.
1886
+ # @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.
1887
+ # @return [V1Job]
1888
+ def replace_namespaced_job_status(name, namespace, body, opts = {})
1889
+ data, _status_code, _headers = replace_namespaced_job_status_with_http_info(name, namespace, body, opts)
1890
+ data
1891
+ end
1892
+
1893
+ # replace status of the specified Job
1894
+ # @param name [String] name of the Job
1895
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1896
+ # @param body [V1Job]
1897
+ # @param [Hash] opts the optional parameters
1898
+ # @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).
1899
+ # @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
1900
+ # @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.
1901
+ # @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.
1902
+ # @return [Array<(V1Job, Integer, Hash)>] V1Job data, response status code and response headers
1903
+ def replace_namespaced_job_status_with_http_info(name, namespace, body, opts = {})
1904
+ if @api_client.config.debugging
1905
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_namespaced_job_status ...'
1906
+ end
1907
+ # verify the required parameter 'name' is set
1908
+ if @api_client.config.client_side_validation && name.nil?
1909
+ fail ArgumentError, "Missing the required parameter 'name' when calling BatchV1Api.replace_namespaced_job_status"
1910
+ end
1911
+ # verify the required parameter 'namespace' is set
1912
+ if @api_client.config.client_side_validation && namespace.nil?
1913
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling BatchV1Api.replace_namespaced_job_status"
1914
+ end
1915
+ # verify the required parameter 'body' is set
1916
+ if @api_client.config.client_side_validation && body.nil?
1917
+ fail ArgumentError, "Missing the required parameter 'body' when calling BatchV1Api.replace_namespaced_job_status"
1918
+ end
1919
+ # resource path
1920
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1921
+
1922
+ # query parameters
1923
+ query_params = opts[:query_params] || {}
1924
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1925
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1926
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1927
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1928
+
1929
+ # header parameters
1930
+ header_params = opts[:header_params] || {}
1931
+ # HTTP header 'Accept' (if needed)
1932
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1933
+
1934
+ # form parameters
1935
+ form_params = opts[:form_params] || {}
1936
+
1937
+ # http body (model)
1938
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1939
+
1940
+ # return_type
1941
+ return_type = opts[:debug_return_type] || 'V1Job'
1942
+
1943
+ # auth_names
1944
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1945
+
1946
+ new_options = opts.merge(
1947
+ :operation => :"BatchV1Api.replace_namespaced_job_status",
1948
+ :header_params => header_params,
1949
+ :query_params => query_params,
1950
+ :form_params => form_params,
1951
+ :body => post_body,
1952
+ :auth_names => auth_names,
1953
+ :return_type => return_type
1954
+ )
1955
+
1956
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1957
+ if @api_client.config.debugging
1958
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_namespaced_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1959
+ end
1960
+ return data, status_code, headers
1961
+ end
1962
+ end
1963
+ end