zilla 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (594) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +1684 -0
  3. data/.openapi-generator/VERSION +1 -0
  4. data/.openapi-generator-ignore +23 -0
  5. data/.rspec +0 -2
  6. data/.rubocop.yml +7 -38
  7. data/.rubocop_todo.yml +74 -0
  8. data/Gemfile +6 -14
  9. data/Gemfile.lock +26 -99
  10. data/README.md +1361 -19
  11. data/Rakefile +8 -8
  12. data/git_push.sh +57 -0
  13. data/lib/zilla/api/admissionregistration_api.rb +80 -0
  14. data/lib/zilla/api/admissionregistration_v1_api.rb +1653 -0
  15. data/lib/zilla/api/apiextensions_api.rb +80 -0
  16. data/lib/zilla/api/apiextensions_v1_api.rb +1100 -0
  17. data/lib/zilla/api/apiregistration_api.rb +80 -0
  18. data/lib/zilla/api/apiregistration_v1_api.rb +1097 -0
  19. data/lib/zilla/api/apis_api.rb +78 -0
  20. data/lib/zilla/api/apps_api.rb +78 -0
  21. data/lib/zilla/api/apps_v1_api.rb +7087 -0
  22. data/lib/zilla/api/authentication_api.rb +80 -0
  23. data/lib/zilla/api/authentication_v1_api.rb +157 -0
  24. data/lib/zilla/api/authorization_api.rb +80 -0
  25. data/lib/zilla/api/authorization_v1_api.rb +399 -0
  26. data/lib/zilla/api/autoscaling_api.rb +80 -0
  27. data/lib/zilla/api/autoscaling_v1_api.rb +1394 -0
  28. data/lib/zilla/api/autoscaling_v2_api.rb +1394 -0
  29. data/lib/zilla/api/autoscaling_v2beta2_api.rb +1400 -0
  30. data/lib/zilla/api/batch_api.rb +78 -0
  31. data/lib/zilla/api/batch_v1_api.rb +2663 -0
  32. data/lib/zilla/api/certificates_api.rb +80 -0
  33. data/lib/zilla/api/certificates_v1_api.rb +1352 -0
  34. data/lib/zilla/api/coordination_api.rb +80 -0
  35. data/lib/zilla/api/coordination_v1_api.rb +1101 -0
  36. data/lib/zilla/api/core_api.rb +78 -0
  37. data/lib/zilla/api/core_v1_api.rb +21829 -0
  38. data/lib/zilla/api/discovery_api.rb +80 -0
  39. data/lib/zilla/api/discovery_v1_api.rb +1104 -0
  40. data/lib/zilla/api/events_api.rb +78 -0
  41. data/lib/zilla/api/events_v1_api.rb +1100 -0
  42. data/lib/zilla/api/flowcontrol_apiserver_api.rb +80 -0
  43. data/lib/zilla/api/flowcontrol_apiserver_v1beta1_api.rb +2142 -0
  44. data/lib/zilla/api/flowcontrol_apiserver_v1beta2_api.rb +2142 -0
  45. data/lib/zilla/api/internal_apiserver_api.rb +80 -0
  46. data/lib/zilla/api/internal_apiserver_v1alpha1_api.rb +1100 -0
  47. data/lib/zilla/api/logs_api.rb +129 -0
  48. data/lib/zilla/api/networking_api.rb +80 -0
  49. data/lib/zilla/api/networking_v1_api.rb +3440 -0
  50. data/lib/zilla/api/networking_v1alpha1_api.rb +851 -0
  51. data/lib/zilla/api/node_api.rb +78 -0
  52. data/lib/zilla/api/node_v1_api.rb +846 -0
  53. data/lib/zilla/api/openid_api.rb +78 -0
  54. data/lib/zilla/api/policy_api.rb +78 -0
  55. data/lib/zilla/api/policy_v1_api.rb +1382 -0
  56. data/lib/zilla/api/rbac_authorization_api.rb +80 -0
  57. data/lib/zilla/api/rbac_authorization_v1_api.rb +3679 -0
  58. data/lib/zilla/api/scheduling_api.rb +80 -0
  59. data/lib/zilla/api/scheduling_v1_api.rb +851 -0
  60. data/lib/zilla/api/storage_api.rb +80 -0
  61. data/lib/zilla/api/storage_v1_api.rb +4425 -0
  62. data/lib/zilla/api/storage_v1beta1_api.rb +1115 -0
  63. data/lib/zilla/api/version_api.rb +76 -0
  64. data/lib/zilla/api/well_known_api.rb +78 -0
  65. data/lib/zilla/api_client.rb +423 -0
  66. data/lib/zilla/api_error.rb +58 -0
  67. data/lib/zilla/configuration.rb +379 -0
  68. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_mutating_webhook.rb +318 -0
  69. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_mutating_webhook_configuration.rb +248 -0
  70. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_mutating_webhook_configuration_list.rb +254 -0
  71. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_rule_with_operations.rb +264 -0
  72. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_service_reference.rb +256 -0
  73. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_validating_webhook.rb +310 -0
  74. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_validating_webhook_configuration.rb +248 -0
  75. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_validating_webhook_configuration_list.rb +254 -0
  76. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_webhook_client_config.rb +261 -0
  77. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_server_storage_version.rb +242 -0
  78. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version.rb +260 -0
  79. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version_condition.rb +275 -0
  80. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version_list.rb +254 -0
  81. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version_status.rb +243 -0
  82. data/lib/zilla/models/io_k8s_api_apps_v1_controller_revision.rb +260 -0
  83. data/lib/zilla/models/io_k8s_api_apps_v1_controller_revision_list.rb +254 -0
  84. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set.rb +249 -0
  85. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_condition.rb +264 -0
  86. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_list.rb +254 -0
  87. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_spec.rb +257 -0
  88. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_status.rb +323 -0
  89. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_update_strategy.rb +231 -0
  90. data/lib/zilla/models/io_k8s_api_apps_v1_deployment.rb +249 -0
  91. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_condition.rb +272 -0
  92. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_list.rb +254 -0
  93. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_spec.rb +284 -0
  94. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_status.rb +283 -0
  95. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_strategy.rb +231 -0
  96. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set.rb +249 -0
  97. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_condition.rb +264 -0
  98. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_list.rb +254 -0
  99. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_spec.rb +249 -0
  100. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_status.rb +271 -0
  101. data/lib/zilla/models/io_k8s_api_apps_v1_rolling_update_daemon_set.rb +232 -0
  102. data/lib/zilla/models/io_k8s_api_apps_v1_rolling_update_deployment.rb +232 -0
  103. data/lib/zilla/models/io_k8s_api_apps_v1_rolling_update_stateful_set_strategy.rb +232 -0
  104. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set.rb +249 -0
  105. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_condition.rb +264 -0
  106. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_list.rb +254 -0
  107. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_persistent_volume_claim_retention_policy.rb +232 -0
  108. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_spec.rb +301 -0
  109. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_status.rb +304 -0
  110. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_update_strategy.rb +231 -0
  111. data/lib/zilla/models/io_k8s_api_authentication_v1_bound_object_reference.rb +248 -0
  112. data/lib/zilla/models/io_k8s_api_authentication_v1_token_request.rb +254 -0
  113. data/lib/zilla/models/io_k8s_api_authentication_v1_token_request_spec.rb +246 -0
  114. data/lib/zilla/models/io_k8s_api_authentication_v1_token_request_status.rb +242 -0
  115. data/lib/zilla/models/io_k8s_api_authentication_v1_token_review.rb +254 -0
  116. data/lib/zilla/models/io_k8s_api_authentication_v1_token_review_spec.rb +234 -0
  117. data/lib/zilla/models/io_k8s_api_authentication_v1_token_review_status.rb +249 -0
  118. data/lib/zilla/models/io_k8s_api_authentication_v1_user_info.rb +252 -0
  119. data/lib/zilla/models/io_k8s_api_authorization_v1_local_subject_access_review.rb +254 -0
  120. data/lib/zilla/models/io_k8s_api_authorization_v1_non_resource_attributes.rb +232 -0
  121. data/lib/zilla/models/io_k8s_api_authorization_v1_non_resource_rule.rb +240 -0
  122. data/lib/zilla/models/io_k8s_api_authorization_v1_resource_attributes.rb +272 -0
  123. data/lib/zilla/models/io_k8s_api_authorization_v1_resource_rule.rb +260 -0
  124. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_access_review.rb +254 -0
  125. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_access_review_spec.rb +228 -0
  126. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_rules_review.rb +254 -0
  127. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_rules_review_spec.rb +224 -0
  128. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_access_review.rb +254 -0
  129. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_access_review_spec.rb +264 -0
  130. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_access_review_status.rb +253 -0
  131. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_rules_review_status.rb +266 -0
  132. data/lib/zilla/models/io_k8s_api_autoscaling_v1_cross_version_object_reference.rb +248 -0
  133. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler.rb +249 -0
  134. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler_list.rb +254 -0
  135. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler_spec.rb +257 -0
  136. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler_status.rb +271 -0
  137. data/lib/zilla/models/io_k8s_api_autoscaling_v1_scale.rb +249 -0
  138. data/lib/zilla/models/io_k8s_api_autoscaling_v1_scale_spec.rb +224 -0
  139. data/lib/zilla/models/io_k8s_api_autoscaling_v1_scale_status.rb +237 -0
  140. data/lib/zilla/models/io_k8s_api_autoscaling_v2_container_resource_metric_source.rb +250 -0
  141. data/lib/zilla/models/io_k8s_api_autoscaling_v2_container_resource_metric_status.rb +250 -0
  142. data/lib/zilla/models/io_k8s_api_autoscaling_v2_cross_version_object_reference.rb +248 -0
  143. data/lib/zilla/models/io_k8s_api_autoscaling_v2_external_metric_source.rb +236 -0
  144. data/lib/zilla/models/io_k8s_api_autoscaling_v2_external_metric_status.rb +236 -0
  145. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler.rb +249 -0
  146. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_behavior.rb +228 -0
  147. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_condition.rb +264 -0
  148. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_list.rb +254 -0
  149. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_spec.rb +264 -0
  150. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_status.rb +275 -0
  151. data/lib/zilla/models/io_k8s_api_autoscaling_v2_hpa_scaling_policy.rb +253 -0
  152. data/lib/zilla/models/io_k8s_api_autoscaling_v2_hpa_scaling_rules.rb +242 -0
  153. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_identifier.rb +236 -0
  154. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_spec.rb +256 -0
  155. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_status.rb +256 -0
  156. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_target.rb +253 -0
  157. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_value_status.rb +240 -0
  158. data/lib/zilla/models/io_k8s_api_autoscaling_v2_object_metric_source.rb +246 -0
  159. data/lib/zilla/models/io_k8s_api_autoscaling_v2_object_metric_status.rb +246 -0
  160. data/lib/zilla/models/io_k8s_api_autoscaling_v2_pods_metric_source.rb +236 -0
  161. data/lib/zilla/models/io_k8s_api_autoscaling_v2_pods_metric_status.rb +236 -0
  162. data/lib/zilla/models/io_k8s_api_autoscaling_v2_resource_metric_source.rb +239 -0
  163. data/lib/zilla/models/io_k8s_api_autoscaling_v2_resource_metric_status.rb +239 -0
  164. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_container_resource_metric_source.rb +250 -0
  165. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_container_resource_metric_status.rb +250 -0
  166. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_cross_version_object_reference.rb +248 -0
  167. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_external_metric_source.rb +236 -0
  168. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_external_metric_status.rb +236 -0
  169. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler.rb +249 -0
  170. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_behavior.rb +228 -0
  171. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_condition.rb +264 -0
  172. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_list.rb +254 -0
  173. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_spec.rb +264 -0
  174. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_status.rb +280 -0
  175. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_hpa_scaling_policy.rb +253 -0
  176. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_hpa_scaling_rules.rb +242 -0
  177. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_identifier.rb +236 -0
  178. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_spec.rb +256 -0
  179. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_status.rb +256 -0
  180. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_target.rb +253 -0
  181. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_value_status.rb +240 -0
  182. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_object_metric_source.rb +246 -0
  183. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_object_metric_status.rb +246 -0
  184. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_pods_metric_source.rb +236 -0
  185. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_pods_metric_status.rb +236 -0
  186. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_resource_metric_source.rb +239 -0
  187. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_resource_metric_status.rb +239 -0
  188. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job.rb +249 -0
  189. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job_list.rb +254 -0
  190. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job_spec.rb +294 -0
  191. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job_status.rb +242 -0
  192. data/lib/zilla/models/io_k8s_api_batch_v1_job.rb +249 -0
  193. data/lib/zilla/models/io_k8s_api_batch_v1_job_condition.rb +272 -0
  194. data/lib/zilla/models/io_k8s_api_batch_v1_job_list.rb +254 -0
  195. data/lib/zilla/models/io_k8s_api_batch_v1_job_spec.rb +303 -0
  196. data/lib/zilla/models/io_k8s_api_batch_v1_job_status.rb +290 -0
  197. data/lib/zilla/models/io_k8s_api_batch_v1_job_template_spec.rb +228 -0
  198. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy.rb +230 -0
  199. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy_on_exit_codes_requirement.rb +249 -0
  200. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy_on_pod_conditions_pattern.rb +240 -0
  201. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy_rule.rb +250 -0
  202. data/lib/zilla/models/io_k8s_api_batch_v1_uncounted_terminated_pods.rb +235 -0
  203. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request.rb +254 -0
  204. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_condition.rb +272 -0
  205. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_list.rb +254 -0
  206. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_spec.rb +314 -0
  207. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_status.rb +255 -0
  208. data/lib/zilla/models/io_k8s_api_coordination_v1_lease.rb +244 -0
  209. data/lib/zilla/models/io_k8s_api_coordination_v1_lease_list.rb +254 -0
  210. data/lib/zilla/models/io_k8s_api_coordination_v1_lease_spec.rb +256 -0
  211. data/lib/zilla/models/io_k8s_api_core_v1_affinity.rb +233 -0
  212. data/lib/zilla/models/io_k8s_api_core_v1_attached_volume.rb +240 -0
  213. data/lib/zilla/models/io_k8s_api_core_v1_aws_elastic_block_store_volume_source.rb +253 -0
  214. data/lib/zilla/models/io_k8s_api_core_v1_azure_disk_volume_source.rb +272 -0
  215. data/lib/zilla/models/io_k8s_api_core_v1_azure_file_persistent_volume_source.rb +256 -0
  216. data/lib/zilla/models/io_k8s_api_core_v1_azure_file_volume_source.rb +248 -0
  217. data/lib/zilla/models/io_k8s_api_core_v1_binding.rb +249 -0
  218. data/lib/zilla/models/io_k8s_api_core_v1_capabilities.rb +235 -0
  219. data/lib/zilla/models/io_k8s_api_core_v1_ceph_fs_persistent_volume_source.rb +270 -0
  220. data/lib/zilla/models/io_k8s_api_core_v1_ceph_fs_volume_source.rb +270 -0
  221. data/lib/zilla/models/io_k8s_api_core_v1_cinder_persistent_volume_source.rb +252 -0
  222. data/lib/zilla/models/io_k8s_api_core_v1_cinder_volume_source.rb +252 -0
  223. data/lib/zilla/models/io_k8s_api_core_v1_client_ip_config.rb +224 -0
  224. data/lib/zilla/models/io_k8s_api_core_v1_component_condition.rb +256 -0
  225. data/lib/zilla/models/io_k8s_api_core_v1_component_status.rb +249 -0
  226. data/lib/zilla/models/io_k8s_api_core_v1_component_status_list.rb +254 -0
  227. data/lib/zilla/models/io_k8s_api_core_v1_config_map.rb +267 -0
  228. data/lib/zilla/models/io_k8s_api_core_v1_config_map_env_source.rb +232 -0
  229. data/lib/zilla/models/io_k8s_api_core_v1_config_map_key_selector.rb +245 -0
  230. data/lib/zilla/models/io_k8s_api_core_v1_config_map_list.rb +254 -0
  231. data/lib/zilla/models/io_k8s_api_core_v1_config_map_node_config_source.rb +269 -0
  232. data/lib/zilla/models/io_k8s_api_core_v1_config_map_projection.rb +242 -0
  233. data/lib/zilla/models/io_k8s_api_core_v1_config_map_volume_source.rb +250 -0
  234. data/lib/zilla/models/io_k8s_api_core_v1_container.rb +400 -0
  235. data/lib/zilla/models/io_k8s_api_core_v1_container_image.rb +234 -0
  236. data/lib/zilla/models/io_k8s_api_core_v1_container_port.rb +263 -0
  237. data/lib/zilla/models/io_k8s_api_core_v1_container_state.rb +233 -0
  238. data/lib/zilla/models/io_k8s_api_core_v1_container_state_running.rb +224 -0
  239. data/lib/zilla/models/io_k8s_api_core_v1_container_state_terminated.rb +277 -0
  240. data/lib/zilla/models/io_k8s_api_core_v1_container_state_waiting.rb +232 -0
  241. data/lib/zilla/models/io_k8s_api_core_v1_container_status.rb +301 -0
  242. data/lib/zilla/models/io_k8s_api_core_v1_csi_persistent_volume_source.rb +299 -0
  243. data/lib/zilla/models/io_k8s_api_core_v1_csi_volume_source.rb +261 -0
  244. data/lib/zilla/models/io_k8s_api_core_v1_daemon_endpoint.rb +229 -0
  245. data/lib/zilla/models/io_k8s_api_core_v1_downward_api_projection.rb +225 -0
  246. data/lib/zilla/models/io_k8s_api_core_v1_downward_api_volume_file.rb +249 -0
  247. data/lib/zilla/models/io_k8s_api_core_v1_downward_api_volume_source.rb +233 -0
  248. data/lib/zilla/models/io_k8s_api_core_v1_empty_dir_volume_source.rb +232 -0
  249. data/lib/zilla/models/io_k8s_api_core_v1_endpoint_address.rb +252 -0
  250. data/lib/zilla/models/io_k8s_api_core_v1_endpoint_port.rb +253 -0
  251. data/lib/zilla/models/io_k8s_api_core_v1_endpoint_subset.rb +245 -0
  252. data/lib/zilla/models/io_k8s_api_core_v1_endpoints.rb +248 -0
  253. data/lib/zilla/models/io_k8s_api_core_v1_endpoints_list.rb +254 -0
  254. data/lib/zilla/models/io_k8s_api_core_v1_env_from_source.rb +236 -0
  255. data/lib/zilla/models/io_k8s_api_core_v1_env_var.rb +244 -0
  256. data/lib/zilla/models/io_k8s_api_core_v1_env_var_source.rb +238 -0
  257. data/lib/zilla/models/io_k8s_api_core_v1_ephemeral_container.rb +408 -0
  258. data/lib/zilla/models/io_k8s_api_core_v1_ephemeral_volume_source.rb +223 -0
  259. data/lib/zilla/models/io_k8s_api_core_v1_event.rb +350 -0
  260. data/lib/zilla/models/io_k8s_api_core_v1_event_list.rb +254 -0
  261. data/lib/zilla/models/io_k8s_api_core_v1_event_series.rb +232 -0
  262. data/lib/zilla/models/io_k8s_api_core_v1_event_source.rb +232 -0
  263. data/lib/zilla/models/io_k8s_api_core_v1_exec_action.rb +225 -0
  264. data/lib/zilla/models/io_k8s_api_core_v1_fc_volume_source.rb +259 -0
  265. data/lib/zilla/models/io_k8s_api_core_v1_flex_persistent_volume_source.rb +262 -0
  266. data/lib/zilla/models/io_k8s_api_core_v1_flex_volume_source.rb +262 -0
  267. data/lib/zilla/models/io_k8s_api_core_v1_flocker_volume_source.rb +232 -0
  268. data/lib/zilla/models/io_k8s_api_core_v1_gce_persistent_disk_volume_source.rb +253 -0
  269. data/lib/zilla/models/io_k8s_api_core_v1_git_repo_volume_source.rb +245 -0
  270. data/lib/zilla/models/io_k8s_api_core_v1_glusterfs_persistent_volume_source.rb +256 -0
  271. data/lib/zilla/models/io_k8s_api_core_v1_glusterfs_volume_source.rb +248 -0
  272. data/lib/zilla/models/io_k8s_api_core_v1_grpc_action.rb +236 -0
  273. data/lib/zilla/models/io_k8s_api_core_v1_host_alias.rb +234 -0
  274. data/lib/zilla/models/io_k8s_api_core_v1_host_path_volume_source.rb +237 -0
  275. data/lib/zilla/models/io_k8s_api_core_v1_http_get_action.rb +263 -0
  276. data/lib/zilla/models/io_k8s_api_core_v1_http_header.rb +240 -0
  277. data/lib/zilla/models/io_k8s_api_core_v1_iscsi_persistent_volume_source.rb +317 -0
  278. data/lib/zilla/models/io_k8s_api_core_v1_iscsi_volume_source.rb +317 -0
  279. data/lib/zilla/models/io_k8s_api_core_v1_key_to_path.rb +248 -0
  280. data/lib/zilla/models/io_k8s_api_core_v1_lifecycle.rb +228 -0
  281. data/lib/zilla/models/io_k8s_api_core_v1_lifecycle_handler.rb +233 -0
  282. data/lib/zilla/models/io_k8s_api_core_v1_limit_range.rb +244 -0
  283. data/lib/zilla/models/io_k8s_api_core_v1_limit_range_item.rb +279 -0
  284. data/lib/zilla/models/io_k8s_api_core_v1_limit_range_list.rb +254 -0
  285. data/lib/zilla/models/io_k8s_api_core_v1_limit_range_spec.rb +230 -0
  286. data/lib/zilla/models/io_k8s_api_core_v1_load_balancer_ingress.rb +241 -0
  287. data/lib/zilla/models/io_k8s_api_core_v1_load_balancer_status.rb +225 -0
  288. data/lib/zilla/models/io_k8s_api_core_v1_local_object_reference.rb +224 -0
  289. data/lib/zilla/models/io_k8s_api_core_v1_local_volume_source.rb +237 -0
  290. data/lib/zilla/models/io_k8s_api_core_v1_namespace.rb +249 -0
  291. data/lib/zilla/models/io_k8s_api_core_v1_namespace_condition.rb +260 -0
  292. data/lib/zilla/models/io_k8s_api_core_v1_namespace_list.rb +254 -0
  293. data/lib/zilla/models/io_k8s_api_core_v1_namespace_spec.rb +225 -0
  294. data/lib/zilla/models/io_k8s_api_core_v1_namespace_status.rb +234 -0
  295. data/lib/zilla/models/io_k8s_api_core_v1_nfs_volume_source.rb +248 -0
  296. data/lib/zilla/models/io_k8s_api_core_v1_node.rb +249 -0
  297. data/lib/zilla/models/io_k8s_api_core_v1_node_address.rb +240 -0
  298. data/lib/zilla/models/io_k8s_api_core_v1_node_affinity.rb +233 -0
  299. data/lib/zilla/models/io_k8s_api_core_v1_node_condition.rb +272 -0
  300. data/lib/zilla/models/io_k8s_api_core_v1_node_config_source.rb +223 -0
  301. data/lib/zilla/models/io_k8s_api_core_v1_node_config_status.rb +241 -0
  302. data/lib/zilla/models/io_k8s_api_core_v1_node_daemon_endpoints.rb +223 -0
  303. data/lib/zilla/models/io_k8s_api_core_v1_node_list.rb +254 -0
  304. data/lib/zilla/models/io_k8s_api_core_v1_node_selector.rb +232 -0
  305. data/lib/zilla/models/io_k8s_api_core_v1_node_selector_requirement.rb +249 -0
  306. data/lib/zilla/models/io_k8s_api_core_v1_node_selector_term.rb +235 -0
  307. data/lib/zilla/models/io_k8s_api_core_v1_node_spec.rb +275 -0
  308. data/lib/zilla/models/io_k8s_api_core_v1_node_status.rb +311 -0
  309. data/lib/zilla/models/io_k8s_api_core_v1_node_system_info.rb +341 -0
  310. data/lib/zilla/models/io_k8s_api_core_v1_object_field_selector.rb +237 -0
  311. data/lib/zilla/models/io_k8s_api_core_v1_object_reference.rb +272 -0
  312. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume.rb +249 -0
  313. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim.rb +249 -0
  314. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_condition.rb +268 -0
  315. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_list.rb +254 -0
  316. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_spec.rb +273 -0
  317. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_status.rb +272 -0
  318. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_template.rb +233 -0
  319. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_volume_source.rb +237 -0
  320. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_list.rb +254 -0
  321. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_spec.rb +396 -0
  322. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_status.rb +240 -0
  323. data/lib/zilla/models/io_k8s_api_core_v1_photon_persistent_disk_volume_source.rb +237 -0
  324. data/lib/zilla/models/io_k8s_api_core_v1_pod.rb +249 -0
  325. data/lib/zilla/models/io_k8s_api_core_v1_pod_affinity.rb +235 -0
  326. data/lib/zilla/models/io_k8s_api_core_v1_pod_affinity_term.rb +251 -0
  327. data/lib/zilla/models/io_k8s_api_core_v1_pod_anti_affinity.rb +235 -0
  328. data/lib/zilla/models/io_k8s_api_core_v1_pod_condition.rb +272 -0
  329. data/lib/zilla/models/io_k8s_api_core_v1_pod_dns_config.rb +245 -0
  330. data/lib/zilla/models/io_k8s_api_core_v1_pod_dns_config_option.rb +231 -0
  331. data/lib/zilla/models/io_k8s_api_core_v1_pod_ip.rb +224 -0
  332. data/lib/zilla/models/io_k8s_api_core_v1_pod_list.rb +254 -0
  333. data/lib/zilla/models/io_k8s_api_core_v1_pod_os.rb +229 -0
  334. data/lib/zilla/models/io_k8s_api_core_v1_pod_readiness_gate.rb +231 -0
  335. data/lib/zilla/models/io_k8s_api_core_v1_pod_security_context.rb +294 -0
  336. data/lib/zilla/models/io_k8s_api_core_v1_pod_spec.rb +533 -0
  337. data/lib/zilla/models/io_k8s_api_core_v1_pod_status.rb +331 -0
  338. data/lib/zilla/models/io_k8s_api_core_v1_pod_template.rb +244 -0
  339. data/lib/zilla/models/io_k8s_api_core_v1_pod_template_list.rb +254 -0
  340. data/lib/zilla/models/io_k8s_api_core_v1_pod_template_spec.rb +228 -0
  341. data/lib/zilla/models/io_k8s_api_core_v1_port_status.rb +247 -0
  342. data/lib/zilla/models/io_k8s_api_core_v1_portworx_volume_source.rb +245 -0
  343. data/lib/zilla/models/io_k8s_api_core_v1_preferred_scheduling_term.rb +239 -0
  344. data/lib/zilla/models/io_k8s_api_core_v1_probe.rb +289 -0
  345. data/lib/zilla/models/io_k8s_api_core_v1_projected_volume_source.rb +233 -0
  346. data/lib/zilla/models/io_k8s_api_core_v1_quobyte_volume_source.rb +272 -0
  347. data/lib/zilla/models/io_k8s_api_core_v1_rbd_persistent_volume_source.rb +289 -0
  348. data/lib/zilla/models/io_k8s_api_core_v1_rbd_volume_source.rb +289 -0
  349. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller.rb +249 -0
  350. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_condition.rb +264 -0
  351. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_list.rb +254 -0
  352. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_spec.rb +249 -0
  353. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_status.rb +271 -0
  354. data/lib/zilla/models/io_k8s_api_core_v1_resource_field_selector.rb +245 -0
  355. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota.rb +249 -0
  356. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota_list.rb +254 -0
  357. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota_spec.rb +242 -0
  358. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota_status.rb +235 -0
  359. data/lib/zilla/models/io_k8s_api_core_v1_resource_requirements.rb +235 -0
  360. data/lib/zilla/models/io_k8s_api_core_v1_scale_io_persistent_volume_source.rb +307 -0
  361. data/lib/zilla/models/io_k8s_api_core_v1_scale_io_volume_source.rb +307 -0
  362. data/lib/zilla/models/io_k8s_api_core_v1_scope_selector.rb +225 -0
  363. data/lib/zilla/models/io_k8s_api_core_v1_scoped_resource_selector_requirement.rb +249 -0
  364. data/lib/zilla/models/io_k8s_api_core_v1_se_linux_options.rb +248 -0
  365. data/lib/zilla/models/io_k8s_api_core_v1_seccomp_profile.rb +237 -0
  366. data/lib/zilla/models/io_k8s_api_core_v1_secret.rb +275 -0
  367. data/lib/zilla/models/io_k8s_api_core_v1_secret_env_source.rb +232 -0
  368. data/lib/zilla/models/io_k8s_api_core_v1_secret_key_selector.rb +245 -0
  369. data/lib/zilla/models/io_k8s_api_core_v1_secret_list.rb +254 -0
  370. data/lib/zilla/models/io_k8s_api_core_v1_secret_projection.rb +242 -0
  371. data/lib/zilla/models/io_k8s_api_core_v1_secret_reference.rb +232 -0
  372. data/lib/zilla/models/io_k8s_api_core_v1_secret_volume_source.rb +250 -0
  373. data/lib/zilla/models/io_k8s_api_core_v1_security_context.rb +299 -0
  374. data/lib/zilla/models/io_k8s_api_core_v1_service.rb +249 -0
  375. data/lib/zilla/models/io_k8s_api_core_v1_service_account.rb +268 -0
  376. data/lib/zilla/models/io_k8s_api_core_v1_service_account_list.rb +254 -0
  377. data/lib/zilla/models/io_k8s_api_core_v1_service_account_token_projection.rb +245 -0
  378. data/lib/zilla/models/io_k8s_api_core_v1_service_list.rb +254 -0
  379. data/lib/zilla/models/io_k8s_api_core_v1_service_port.rb +269 -0
  380. data/lib/zilla/models/io_k8s_api_core_v1_service_spec.rb +384 -0
  381. data/lib/zilla/models/io_k8s_api_core_v1_service_status.rb +233 -0
  382. data/lib/zilla/models/io_k8s_api_core_v1_session_affinity_config.rb +223 -0
  383. data/lib/zilla/models/io_k8s_api_core_v1_storage_os_persistent_volume_source.rb +255 -0
  384. data/lib/zilla/models/io_k8s_api_core_v1_storage_os_volume_source.rb +255 -0
  385. data/lib/zilla/models/io_k8s_api_core_v1_sysctl.rb +240 -0
  386. data/lib/zilla/models/io_k8s_api_core_v1_taint.rb +256 -0
  387. data/lib/zilla/models/io_k8s_api_core_v1_tcp_socket_action.rb +237 -0
  388. data/lib/zilla/models/io_k8s_api_core_v1_toleration.rb +256 -0
  389. data/lib/zilla/models/io_k8s_api_core_v1_topology_selector_label_requirement.rb +241 -0
  390. data/lib/zilla/models/io_k8s_api_core_v1_topology_selector_term.rb +225 -0
  391. data/lib/zilla/models/io_k8s_api_core_v1_topology_spread_constraint.rb +295 -0
  392. data/lib/zilla/models/io_k8s_api_core_v1_typed_local_object_reference.rb +248 -0
  393. data/lib/zilla/models/io_k8s_api_core_v1_volume.rb +378 -0
  394. data/lib/zilla/models/io_k8s_api_core_v1_volume_device.rb +240 -0
  395. data/lib/zilla/models/io_k8s_api_core_v1_volume_mount.rb +272 -0
  396. data/lib/zilla/models/io_k8s_api_core_v1_volume_node_affinity.rb +223 -0
  397. data/lib/zilla/models/io_k8s_api_core_v1_volume_projection.rb +238 -0
  398. data/lib/zilla/models/io_k8s_api_core_v1_vsphere_virtual_disk_volume_source.rb +253 -0
  399. data/lib/zilla/models/io_k8s_api_core_v1_weighted_pod_affinity_term.rb +241 -0
  400. data/lib/zilla/models/io_k8s_api_core_v1_windows_security_context_options.rb +250 -0
  401. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint.rb +282 -0
  402. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_conditions.rb +240 -0
  403. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_hints.rb +225 -0
  404. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_port.rb +248 -0
  405. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_slice.rb +274 -0
  406. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_slice_list.rb +254 -0
  407. data/lib/zilla/models/io_k8s_api_discovery_v1_for_zone.rb +229 -0
  408. data/lib/zilla/models/io_k8s_api_events_v1_event.rb +349 -0
  409. data/lib/zilla/models/io_k8s_api_events_v1_event_list.rb +254 -0
  410. data/lib/zilla/models/io_k8s_api_events_v1_event_series.rb +242 -0
  411. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_distinguisher_method.rb +229 -0
  412. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema.rb +249 -0
  413. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_condition.rb +256 -0
  414. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_list.rb +254 -0
  415. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_spec.rb +254 -0
  416. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_status.rb +225 -0
  417. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_group_subject.rb +229 -0
  418. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_limit_response.rb +236 -0
  419. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_limited_priority_level_configuration.rb +233 -0
  420. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_non_resource_policy_rule.rb +245 -0
  421. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_policy_rules_with_subjects.rb +250 -0
  422. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration.rb +249 -0
  423. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_condition.rb +256 -0
  424. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_list.rb +254 -0
  425. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_reference.rb +229 -0
  426. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_spec.rb +236 -0
  427. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_status.rb +225 -0
  428. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_queuing_configuration.rb +240 -0
  429. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_resource_policy_rule.rb +274 -0
  430. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_service_account_subject.rb +240 -0
  431. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_subject.rb +246 -0
  432. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_user_subject.rb +229 -0
  433. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_distinguisher_method.rb +229 -0
  434. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema.rb +249 -0
  435. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_condition.rb +256 -0
  436. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_list.rb +254 -0
  437. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_spec.rb +254 -0
  438. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_status.rb +225 -0
  439. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_group_subject.rb +229 -0
  440. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_limit_response.rb +236 -0
  441. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_limited_priority_level_configuration.rb +233 -0
  442. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_non_resource_policy_rule.rb +245 -0
  443. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_policy_rules_with_subjects.rb +250 -0
  444. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration.rb +249 -0
  445. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_condition.rb +256 -0
  446. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_list.rb +254 -0
  447. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_reference.rb +229 -0
  448. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_spec.rb +236 -0
  449. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_status.rb +225 -0
  450. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_queuing_configuration.rb +240 -0
  451. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_resource_policy_rule.rb +274 -0
  452. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_service_account_subject.rb +240 -0
  453. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_subject.rb +246 -0
  454. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_user_subject.rb +229 -0
  455. data/lib/zilla/models/io_k8s_api_networking_v1_http_ingress_path.rb +247 -0
  456. data/lib/zilla/models/io_k8s_api_networking_v1_http_ingress_rule_value.rb +230 -0
  457. data/lib/zilla/models/io_k8s_api_networking_v1_ingress.rb +249 -0
  458. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_backend.rb +228 -0
  459. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class.rb +244 -0
  460. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class_list.rb +254 -0
  461. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class_parameters_reference.rb +264 -0
  462. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class_spec.rb +231 -0
  463. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_list.rb +254 -0
  464. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_rule.rb +231 -0
  465. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_service_backend.rb +236 -0
  466. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_spec.rb +250 -0
  467. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_status.rb +223 -0
  468. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_tls.rb +234 -0
  469. data/lib/zilla/models/io_k8s_api_networking_v1_ip_block.rb +238 -0
  470. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy.rb +249 -0
  471. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_egress_rule.rb +235 -0
  472. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_ingress_rule.rb +235 -0
  473. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_list.rb +254 -0
  474. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_peer.rb +233 -0
  475. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_port.rb +240 -0
  476. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_spec.rb +257 -0
  477. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_status.rb +225 -0
  478. data/lib/zilla/models/io_k8s_api_networking_v1_service_backend_port.rb +232 -0
  479. data/lib/zilla/models/io_k8s_api_networking_v1alpha1_cluster_cidr.rb +244 -0
  480. data/lib/zilla/models/io_k8s_api_networking_v1alpha1_cluster_cidr_list.rb +254 -0
  481. data/lib/zilla/models/io_k8s_api_networking_v1alpha1_cluster_cidr_spec.rb +254 -0
  482. data/lib/zilla/models/io_k8s_api_node_v1_overhead.rb +225 -0
  483. data/lib/zilla/models/io_k8s_api_node_v1_runtime_class.rb +262 -0
  484. data/lib/zilla/models/io_k8s_api_node_v1_runtime_class_list.rb +254 -0
  485. data/lib/zilla/models/io_k8s_api_node_v1_scheduling.rb +235 -0
  486. data/lib/zilla/models/io_k8s_api_policy_v1_eviction.rb +244 -0
  487. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget.rb +249 -0
  488. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget_list.rb +254 -0
  489. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget_spec.rb +239 -0
  490. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget_status.rb +297 -0
  491. data/lib/zilla/models/io_k8s_api_rbac_v1_aggregation_rule.rb +225 -0
  492. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role.rb +253 -0
  493. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role_binding.rb +258 -0
  494. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role_binding_list.rb +254 -0
  495. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role_list.rb +254 -0
  496. data/lib/zilla/models/io_k8s_api_rbac_v1_policy_rule.rb +270 -0
  497. data/lib/zilla/models/io_k8s_api_rbac_v1_role.rb +248 -0
  498. data/lib/zilla/models/io_k8s_api_rbac_v1_role_binding.rb +258 -0
  499. data/lib/zilla/models/io_k8s_api_rbac_v1_role_binding_list.rb +254 -0
  500. data/lib/zilla/models/io_k8s_api_rbac_v1_role_list.rb +254 -0
  501. data/lib/zilla/models/io_k8s_api_rbac_v1_role_ref.rb +251 -0
  502. data/lib/zilla/models/io_k8s_api_rbac_v1_subject.rb +256 -0
  503. data/lib/zilla/models/io_k8s_api_scheduling_v1_priority_class.rb +276 -0
  504. data/lib/zilla/models/io_k8s_api_scheduling_v1_priority_class_list.rb +254 -0
  505. data/lib/zilla/models/io_k8s_api_storage_v1_csi_driver.rb +249 -0
  506. data/lib/zilla/models/io_k8s_api_storage_v1_csi_driver_list.rb +254 -0
  507. data/lib/zilla/models/io_k8s_api_storage_v1_csi_driver_spec.rb +284 -0
  508. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node.rb +249 -0
  509. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node_driver.rb +256 -0
  510. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node_list.rb +254 -0
  511. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node_spec.rb +230 -0
  512. data/lib/zilla/models/io_k8s_api_storage_v1_csi_storage_capacity.rb +275 -0
  513. data/lib/zilla/models/io_k8s_api_storage_v1_csi_storage_capacity_list.rb +254 -0
  514. data/lib/zilla/models/io_k8s_api_storage_v1_storage_class.rb +307 -0
  515. data/lib/zilla/models/io_k8s_api_storage_v1_storage_class_list.rb +254 -0
  516. data/lib/zilla/models/io_k8s_api_storage_v1_token_request.rb +237 -0
  517. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment.rb +254 -0
  518. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_list.rb +254 -0
  519. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_source.rb +231 -0
  520. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_spec.rb +250 -0
  521. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_status.rb +251 -0
  522. data/lib/zilla/models/io_k8s_api_storage_v1_volume_error.rb +232 -0
  523. data/lib/zilla/models/io_k8s_api_storage_v1_volume_node_resources.rb +224 -0
  524. data/lib/zilla/models/io_k8s_api_storage_v1beta1_csi_storage_capacity.rb +275 -0
  525. data/lib/zilla/models/io_k8s_api_storage_v1beta1_csi_storage_capacity_list.rb +254 -0
  526. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_column_definition.rb +275 -0
  527. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_conversion.rb +236 -0
  528. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition.rb +254 -0
  529. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_condition.rb +264 -0
  530. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_list.rb +254 -0
  531. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_names.rb +276 -0
  532. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_spec.rb +275 -0
  533. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_status.rb +242 -0
  534. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_version.rb +289 -0
  535. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_subresource_scale.rb +252 -0
  536. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_subresources.rb +231 -0
  537. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_validation.rb +223 -0
  538. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_external_documentation.rb +228 -0
  539. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_json_schema_props.rb +506 -0
  540. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_service_reference.rb +256 -0
  541. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_validation_rule.rb +237 -0
  542. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_webhook_client_config.rb +261 -0
  543. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_webhook_conversion.rb +239 -0
  544. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_group.rb +274 -0
  545. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_group_list.rb +247 -0
  546. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_resource.rb +319 -0
  547. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_resource_list.rb +257 -0
  548. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_versions.rb +261 -0
  549. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_condition.rb +283 -0
  550. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_delete_options.rb +273 -0
  551. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.rb +240 -0
  552. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_label_selector.rb +235 -0
  553. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_label_selector_requirement.rb +249 -0
  554. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_list_meta.rb +248 -0
  555. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_managed_fields_entry.rb +272 -0
  556. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_object_meta.rb +349 -0
  557. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_owner_reference.rb +278 -0
  558. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_preconditions.rb +232 -0
  559. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.rb +242 -0
  560. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_status.rb +276 -0
  561. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_status_cause.rb +240 -0
  562. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_status_details.rb +266 -0
  563. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_watch_event.rb +239 -0
  564. data/lib/zilla/models/io_k8s_apimachinery_pkg_version_info.rb +295 -0
  565. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service.rb +249 -0
  566. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_condition.rb +264 -0
  567. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_list.rb +254 -0
  568. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_spec.rb +305 -0
  569. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_status.rb +225 -0
  570. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_service_reference.rb +240 -0
  571. data/lib/zilla/version.rb +11 -4
  572. data/lib/zilla.rb +586 -17
  573. metadata +595 -73
  574. data/.overcommit.yml +0 -4
  575. data/.tool-versions +0 -1
  576. data/CODE_OF_CONDUCT.md +0 -84
  577. data/LICENSE.txt +0 -21
  578. data/exe/zilla +0 -4
  579. data/lib/zilla/client_factory.rb +0 -22
  580. data/lib/zilla/loader_factory.rb +0 -37
  581. data/lib/zilla/loaders/file.rb +0 -5
  582. data/lib/zilla/loaders/hash.rb +0 -5
  583. data/lib/zilla/loaders/http.rb +0 -10
  584. data/lib/zilla/loaders/loader.rb +0 -23
  585. data/lib/zilla/loaders/string.rb +0 -5
  586. data/lib/zilla/versions/v20/api.rb +0 -37
  587. data/lib/zilla/versions/v20/client.rb +0 -37
  588. data/lib/zilla/versions/v20/definition.rb +0 -17
  589. data/lib/zilla/versions/v20/endpoint.rb +0 -29
  590. data/lib/zilla/versions/v20/executor.rb +0 -48
  591. data/lib/zilla/versions/v20/parameter.rb +0 -29
  592. data/lib/zilla/versions/v20/parameters.rb +0 -95
  593. data/lib/zilla/versions/v20/path.rb +0 -29
  594. data/lib/zilla/versions/v20/path_template.rb +0 -49
@@ -0,0 +1,2663 @@
1
+ # frozen_string_literal: true
2
+
3
+ # #Kubernetes
4
+ #
5
+ # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ #
7
+ # The version of the OpenAPI document: unversioned
8
+ #
9
+ # Generated by: https://openapi-generator.tech
10
+ # OpenAPI Generator version: 6.5.0-SNAPSHOT
11
+ #
12
+
13
+ require 'cgi'
14
+
15
+ module Zilla
16
+ class BatchV1Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # create a CronJob
24
+ # @param namespace [String] object name and auth scope, such as for teams and projects
25
+ # @param body [IoK8sApiBatchV1CronJob]
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
28
+ # @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
29
+ # @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.
30
+ # @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, provided that the `ServerSideFieldValidation` feature gate is also enabled. 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 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - 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 when the `ServerSideFieldValidation` feature gate is enabled. - 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.
31
+ # @return [IoK8sApiBatchV1CronJob]
32
+ def create_batch_v1_namespaced_cron_job(namespace, body, opts = {})
33
+ data, _status_code, _headers = create_batch_v1_namespaced_cron_job_with_http_info(namespace, body, opts)
34
+ data
35
+ end
36
+
37
+ # create a CronJob
38
+ # @param namespace [String] object name and auth scope, such as for teams and projects
39
+ # @param body [IoK8sApiBatchV1CronJob]
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
42
+ # @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
43
+ # @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.
44
+ # @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, provided that the `ServerSideFieldValidation` feature gate is also enabled. 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 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - 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 when the `ServerSideFieldValidation` feature gate is enabled. - 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.
45
+ # @return [Array<(IoK8sApiBatchV1CronJob, Integer, Hash)>] IoK8sApiBatchV1CronJob data, response status code and response headers
46
+ def create_batch_v1_namespaced_cron_job_with_http_info(namespace, body, opts = {})
47
+ if @api_client.config.debugging
48
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.create_batch_v1_namespaced_cron_job ...'
49
+ end
50
+ # verify the required parameter 'namespace' is set
51
+ if @api_client.config.client_side_validation && namespace.nil?
52
+ raise ArgumentError,
53
+ "Missing the required parameter 'namespace' when calling BatchV1Api.create_batch_v1_namespaced_cron_job"
54
+ end
55
+ # verify the required parameter 'body' is set
56
+ if @api_client.config.client_side_validation && body.nil?
57
+ raise ArgumentError,
58
+ "Missing the required parameter 'body' when calling BatchV1Api.create_batch_v1_namespaced_cron_job"
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs'.sub('{namespace}',
63
+ CGI.escape(namespace.to_s))
64
+
65
+ # query parameters
66
+ query_params = opts[:query_params] || {}
67
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
68
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
69
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
70
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
71
+
72
+ # header parameters
73
+ header_params = opts[:header_params] || {}
74
+ # HTTP header 'Accept' (if needed)
75
+ header_params['Accept'] =
76
+ @api_client.select_header_accept(['application/json', 'application/yaml',
77
+ 'application/vnd.kubernetes.protobuf'])
78
+
79
+ # form parameters
80
+ form_params = opts[:form_params] || {}
81
+
82
+ # http body (model)
83
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
84
+
85
+ # return_type
86
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJob'
87
+
88
+ # auth_names
89
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
90
+
91
+ new_options = opts.merge(
92
+ operation: :'BatchV1Api.create_batch_v1_namespaced_cron_job',
93
+ header_params:,
94
+ query_params:,
95
+ form_params:,
96
+ body: post_body,
97
+ auth_names:,
98
+ return_type:
99
+ )
100
+
101
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug "API called: BatchV1Api#create_batch_v1_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
104
+ end
105
+ [data, status_code, headers]
106
+ end
107
+
108
+ # create a Job
109
+ # @param namespace [String] object name and auth scope, such as for teams and projects
110
+ # @param body [IoK8sApiBatchV1Job]
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
113
+ # @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
114
+ # @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.
115
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
116
+ # @return [IoK8sApiBatchV1Job]
117
+ def create_batch_v1_namespaced_job(namespace, body, opts = {})
118
+ data, _status_code, _headers = create_batch_v1_namespaced_job_with_http_info(namespace, body, opts)
119
+ data
120
+ end
121
+
122
+ # create a Job
123
+ # @param namespace [String] object name and auth scope, such as for teams and projects
124
+ # @param body [IoK8sApiBatchV1Job]
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
127
+ # @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
128
+ # @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.
129
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
130
+ # @return [Array<(IoK8sApiBatchV1Job, Integer, Hash)>] IoK8sApiBatchV1Job data, response status code and response headers
131
+ def create_batch_v1_namespaced_job_with_http_info(namespace, body, opts = {})
132
+ if @api_client.config.debugging
133
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.create_batch_v1_namespaced_job ...'
134
+ end
135
+ # verify the required parameter 'namespace' is set
136
+ if @api_client.config.client_side_validation && namespace.nil?
137
+ raise ArgumentError,
138
+ "Missing the required parameter 'namespace' when calling BatchV1Api.create_batch_v1_namespaced_job"
139
+ end
140
+ # verify the required parameter 'body' is set
141
+ if @api_client.config.client_side_validation && body.nil?
142
+ raise ArgumentError,
143
+ "Missing the required parameter 'body' when calling BatchV1Api.create_batch_v1_namespaced_job"
144
+ end
145
+
146
+ # resource path
147
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.sub('{namespace}',
148
+ CGI.escape(namespace.to_s))
149
+
150
+ # query parameters
151
+ query_params = opts[:query_params] || {}
152
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
153
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
154
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
155
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
156
+
157
+ # header parameters
158
+ header_params = opts[:header_params] || {}
159
+ # HTTP header 'Accept' (if needed)
160
+ header_params['Accept'] =
161
+ @api_client.select_header_accept(['application/json', 'application/yaml',
162
+ 'application/vnd.kubernetes.protobuf'])
163
+
164
+ # form parameters
165
+ form_params = opts[:form_params] || {}
166
+
167
+ # http body (model)
168
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
169
+
170
+ # return_type
171
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1Job'
172
+
173
+ # auth_names
174
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
175
+
176
+ new_options = opts.merge(
177
+ operation: :'BatchV1Api.create_batch_v1_namespaced_job',
178
+ header_params:,
179
+ query_params:,
180
+ form_params:,
181
+ body: post_body,
182
+ auth_names:,
183
+ return_type:
184
+ )
185
+
186
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: BatchV1Api#create_batch_v1_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ [data, status_code, headers]
191
+ end
192
+
193
+ # delete collection of CronJob
194
+ # @param namespace [String] object name and auth scope, such as for teams and projects
195
+ # @param [Hash] opts the optional parameters
196
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
197
+ # @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.
198
+ # @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
199
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
200
+ # @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.
201
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
202
+ # @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.
203
+ # @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.
204
+ # @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.
205
+ # @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
206
+ # @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
207
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
208
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
209
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
210
+ def delete_batch_v1_collection_namespaced_cron_job(namespace, opts = {})
211
+ data, _status_code, _headers = delete_batch_v1_collection_namespaced_cron_job_with_http_info(namespace, opts)
212
+ data
213
+ end
214
+
215
+ # delete collection of CronJob
216
+ # @param namespace [String] object name and auth scope, such as for teams and projects
217
+ # @param [Hash] opts the optional parameters
218
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
219
+ # @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.
220
+ # @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
221
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
222
+ # @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.
223
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
224
+ # @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.
225
+ # @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.
226
+ # @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.
227
+ # @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
228
+ # @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
229
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
230
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
231
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
232
+ def delete_batch_v1_collection_namespaced_cron_job_with_http_info(namespace, opts = {})
233
+ if @api_client.config.debugging
234
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_batch_v1_collection_namespaced_cron_job ...'
235
+ end
236
+ # verify the required parameter 'namespace' is set
237
+ if @api_client.config.client_side_validation && namespace.nil?
238
+ raise ArgumentError,
239
+ "Missing the required parameter 'namespace' when calling BatchV1Api.delete_batch_v1_collection_namespaced_cron_job"
240
+ end
241
+
242
+ # resource path
243
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs'.sub('{namespace}',
244
+ CGI.escape(namespace.to_s))
245
+
246
+ # query parameters
247
+ query_params = opts[:query_params] || {}
248
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
249
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
250
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
251
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
252
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
253
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
254
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
255
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
256
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
257
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
258
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
259
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
260
+
261
+ # header parameters
262
+ header_params = opts[:header_params] || {}
263
+ # HTTP header 'Accept' (if needed)
264
+ header_params['Accept'] =
265
+ @api_client.select_header_accept(['application/json', 'application/yaml',
266
+ 'application/vnd.kubernetes.protobuf'])
267
+
268
+ # form parameters
269
+ form_params = opts[:form_params] || {}
270
+
271
+ # http body (model)
272
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
273
+
274
+ # return_type
275
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
276
+
277
+ # auth_names
278
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
279
+
280
+ new_options = opts.merge(
281
+ operation: :'BatchV1Api.delete_batch_v1_collection_namespaced_cron_job',
282
+ header_params:,
283
+ query_params:,
284
+ form_params:,
285
+ body: post_body,
286
+ auth_names:,
287
+ return_type:
288
+ )
289
+
290
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
291
+ if @api_client.config.debugging
292
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_batch_v1_collection_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
+ end
294
+ [data, status_code, headers]
295
+ end
296
+
297
+ # delete collection of Job
298
+ # @param namespace [String] object name and auth scope, such as for teams and projects
299
+ # @param [Hash] opts the optional parameters
300
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
301
+ # @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.
302
+ # @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
303
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
304
+ # @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.
305
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
306
+ # @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.
307
+ # @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.
308
+ # @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.
309
+ # @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
310
+ # @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
311
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
312
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
313
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
314
+ def delete_batch_v1_collection_namespaced_job(namespace, opts = {})
315
+ data, _status_code, _headers = delete_batch_v1_collection_namespaced_job_with_http_info(namespace, opts)
316
+ data
317
+ end
318
+
319
+ # delete collection of Job
320
+ # @param namespace [String] object name and auth scope, such as for teams and projects
321
+ # @param [Hash] opts the optional parameters
322
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
323
+ # @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.
324
+ # @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
325
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
326
+ # @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.
327
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
328
+ # @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.
329
+ # @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.
330
+ # @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.
331
+ # @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
332
+ # @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
333
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
334
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
335
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
336
+ def delete_batch_v1_collection_namespaced_job_with_http_info(namespace, opts = {})
337
+ if @api_client.config.debugging
338
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_batch_v1_collection_namespaced_job ...'
339
+ end
340
+ # verify the required parameter 'namespace' is set
341
+ if @api_client.config.client_side_validation && namespace.nil?
342
+ raise ArgumentError,
343
+ "Missing the required parameter 'namespace' when calling BatchV1Api.delete_batch_v1_collection_namespaced_job"
344
+ end
345
+
346
+ # resource path
347
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.sub('{namespace}',
348
+ CGI.escape(namespace.to_s))
349
+
350
+ # query parameters
351
+ query_params = opts[:query_params] || {}
352
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
353
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
354
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
355
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
356
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
357
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
358
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
359
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
360
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
361
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
362
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
363
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
364
+
365
+ # header parameters
366
+ header_params = opts[:header_params] || {}
367
+ # HTTP header 'Accept' (if needed)
368
+ header_params['Accept'] =
369
+ @api_client.select_header_accept(['application/json', 'application/yaml',
370
+ 'application/vnd.kubernetes.protobuf'])
371
+
372
+ # form parameters
373
+ form_params = opts[:form_params] || {}
374
+
375
+ # http body (model)
376
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
377
+
378
+ # return_type
379
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
380
+
381
+ # auth_names
382
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
383
+
384
+ new_options = opts.merge(
385
+ operation: :'BatchV1Api.delete_batch_v1_collection_namespaced_job',
386
+ header_params:,
387
+ query_params:,
388
+ form_params:,
389
+ body: post_body,
390
+ auth_names:,
391
+ return_type:
392
+ )
393
+
394
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
395
+ if @api_client.config.debugging
396
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_batch_v1_collection_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
397
+ end
398
+ [data, status_code, headers]
399
+ end
400
+
401
+ # delete a CronJob
402
+ # @param name [String] name of the CronJob
403
+ # @param namespace [String] object name and auth scope, such as for teams and projects
404
+ # @param [Hash] opts the optional parameters
405
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
406
+ # @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
407
+ # @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.
408
+ # @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.
409
+ # @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.
410
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
411
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
412
+ def delete_batch_v1_namespaced_cron_job(name, namespace, opts = {})
413
+ data, _status_code, _headers = delete_batch_v1_namespaced_cron_job_with_http_info(name, namespace, opts)
414
+ data
415
+ end
416
+
417
+ # delete a CronJob
418
+ # @param name [String] name of the CronJob
419
+ # @param namespace [String] object name and auth scope, such as for teams and projects
420
+ # @param [Hash] opts the optional parameters
421
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
422
+ # @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
423
+ # @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.
424
+ # @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.
425
+ # @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.
426
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
427
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
428
+ def delete_batch_v1_namespaced_cron_job_with_http_info(name, namespace, opts = {})
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_batch_v1_namespaced_cron_job ...'
431
+ end
432
+ # verify the required parameter 'name' is set
433
+ if @api_client.config.client_side_validation && name.nil?
434
+ raise ArgumentError,
435
+ "Missing the required parameter 'name' when calling BatchV1Api.delete_batch_v1_namespaced_cron_job"
436
+ end
437
+ # verify the required parameter 'namespace' is set
438
+ if @api_client.config.client_side_validation && namespace.nil?
439
+ raise ArgumentError,
440
+ "Missing the required parameter 'namespace' when calling BatchV1Api.delete_batch_v1_namespaced_cron_job"
441
+ end
442
+
443
+ # resource path
444
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
445
+ '{namespace}', CGI.escape(namespace.to_s)
446
+ )
447
+
448
+ # query parameters
449
+ query_params = opts[:query_params] || {}
450
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
451
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
452
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
453
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
454
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
455
+
456
+ # header parameters
457
+ header_params = opts[:header_params] || {}
458
+ # HTTP header 'Accept' (if needed)
459
+ header_params['Accept'] =
460
+ @api_client.select_header_accept(['application/json', 'application/yaml',
461
+ 'application/vnd.kubernetes.protobuf'])
462
+
463
+ # form parameters
464
+ form_params = opts[:form_params] || {}
465
+
466
+ # http body (model)
467
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
468
+
469
+ # return_type
470
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
471
+
472
+ # auth_names
473
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
474
+
475
+ new_options = opts.merge(
476
+ operation: :'BatchV1Api.delete_batch_v1_namespaced_cron_job',
477
+ header_params:,
478
+ query_params:,
479
+ form_params:,
480
+ body: post_body,
481
+ auth_names:,
482
+ return_type:
483
+ )
484
+
485
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
486
+ if @api_client.config.debugging
487
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_batch_v1_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
488
+ end
489
+ [data, status_code, headers]
490
+ end
491
+
492
+ # delete a Job
493
+ # @param name [String] name of the Job
494
+ # @param namespace [String] object name and auth scope, such as for teams and projects
495
+ # @param [Hash] opts the optional parameters
496
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
497
+ # @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
498
+ # @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.
499
+ # @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.
500
+ # @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.
501
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
502
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
503
+ def delete_batch_v1_namespaced_job(name, namespace, opts = {})
504
+ data, _status_code, _headers = delete_batch_v1_namespaced_job_with_http_info(name, namespace, opts)
505
+ data
506
+ end
507
+
508
+ # delete a Job
509
+ # @param name [String] name of the Job
510
+ # @param namespace [String] object name and auth scope, such as for teams and projects
511
+ # @param [Hash] opts the optional parameters
512
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
513
+ # @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
514
+ # @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.
515
+ # @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.
516
+ # @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.
517
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
518
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
519
+ def delete_batch_v1_namespaced_job_with_http_info(name, namespace, opts = {})
520
+ if @api_client.config.debugging
521
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.delete_batch_v1_namespaced_job ...'
522
+ end
523
+ # verify the required parameter 'name' is set
524
+ if @api_client.config.client_side_validation && name.nil?
525
+ raise ArgumentError,
526
+ "Missing the required parameter 'name' when calling BatchV1Api.delete_batch_v1_namespaced_job"
527
+ end
528
+ # verify the required parameter 'namespace' is set
529
+ if @api_client.config.client_side_validation && namespace.nil?
530
+ raise ArgumentError,
531
+ "Missing the required parameter 'namespace' when calling BatchV1Api.delete_batch_v1_namespaced_job"
532
+ end
533
+
534
+ # resource path
535
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
536
+ '{namespace}', CGI.escape(namespace.to_s)
537
+ )
538
+
539
+ # query parameters
540
+ query_params = opts[:query_params] || {}
541
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
542
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
543
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
544
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
545
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
546
+
547
+ # header parameters
548
+ header_params = opts[:header_params] || {}
549
+ # HTTP header 'Accept' (if needed)
550
+ header_params['Accept'] =
551
+ @api_client.select_header_accept(['application/json', 'application/yaml',
552
+ 'application/vnd.kubernetes.protobuf'])
553
+
554
+ # form parameters
555
+ form_params = opts[:form_params] || {}
556
+
557
+ # http body (model)
558
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
559
+
560
+ # return_type
561
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
562
+
563
+ # auth_names
564
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
565
+
566
+ new_options = opts.merge(
567
+ operation: :'BatchV1Api.delete_batch_v1_namespaced_job',
568
+ header_params:,
569
+ query_params:,
570
+ form_params:,
571
+ body: post_body,
572
+ auth_names:,
573
+ return_type:
574
+ )
575
+
576
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
577
+ if @api_client.config.debugging
578
+ @api_client.config.logger.debug "API called: BatchV1Api#delete_batch_v1_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
579
+ end
580
+ [data, status_code, headers]
581
+ end
582
+
583
+ # get available resources
584
+ # @param [Hash] opts the optional parameters
585
+ # @return [IoK8sApimachineryPkgApisMetaV1APIResourceList]
586
+ def get_batch_v1_api_resources(opts = {})
587
+ data, _status_code, _headers = get_batch_v1_api_resources_with_http_info(opts)
588
+ data
589
+ end
590
+
591
+ # get available resources
592
+ # @param [Hash] opts the optional parameters
593
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1APIResourceList, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1APIResourceList data, response status code and response headers
594
+ def get_batch_v1_api_resources_with_http_info(opts = {})
595
+ if @api_client.config.debugging
596
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.get_batch_v1_api_resources ...'
597
+ end
598
+ # resource path
599
+ local_var_path = '/apis/batch/v1/'
600
+
601
+ # query parameters
602
+ query_params = opts[:query_params] || {}
603
+
604
+ # header parameters
605
+ header_params = opts[:header_params] || {}
606
+ # HTTP header 'Accept' (if needed)
607
+ header_params['Accept'] =
608
+ @api_client.select_header_accept(['application/json', 'application/yaml',
609
+ 'application/vnd.kubernetes.protobuf'])
610
+
611
+ # form parameters
612
+ form_params = opts[:form_params] || {}
613
+
614
+ # http body (model)
615
+ post_body = opts[:debug_body]
616
+
617
+ # return_type
618
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1APIResourceList'
619
+
620
+ # auth_names
621
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
622
+
623
+ new_options = opts.merge(
624
+ operation: :'BatchV1Api.get_batch_v1_api_resources',
625
+ header_params:,
626
+ query_params:,
627
+ form_params:,
628
+ body: post_body,
629
+ auth_names:,
630
+ return_type:
631
+ )
632
+
633
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
634
+ if @api_client.config.debugging
635
+ @api_client.config.logger.debug "API called: BatchV1Api#get_batch_v1_api_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
636
+ end
637
+ [data, status_code, headers]
638
+ end
639
+
640
+ # list or watch objects of kind CronJob
641
+ # @param [Hash] opts the optional parameters
642
+ # @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.
643
+ # @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.
644
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
645
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
646
+ # @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.
647
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
648
+ # @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
649
+ # @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
650
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
651
+ # @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.
652
+ # @return [IoK8sApiBatchV1CronJobList]
653
+ def list_batch_v1_cron_job_for_all_namespaces(opts = {})
654
+ data, _status_code, _headers = list_batch_v1_cron_job_for_all_namespaces_with_http_info(opts)
655
+ data
656
+ end
657
+
658
+ # list or watch objects of kind CronJob
659
+ # @param [Hash] opts the optional parameters
660
+ # @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.
661
+ # @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.
662
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
663
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
664
+ # @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.
665
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
666
+ # @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
667
+ # @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
668
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
669
+ # @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.
670
+ # @return [Array<(IoK8sApiBatchV1CronJobList, Integer, Hash)>] IoK8sApiBatchV1CronJobList data, response status code and response headers
671
+ def list_batch_v1_cron_job_for_all_namespaces_with_http_info(opts = {})
672
+ if @api_client.config.debugging
673
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_batch_v1_cron_job_for_all_namespaces ...'
674
+ end
675
+ # resource path
676
+ local_var_path = '/apis/batch/v1/cronjobs'
677
+
678
+ # query parameters
679
+ query_params = opts[:query_params] || {}
680
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
681
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
682
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
683
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
684
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
685
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
686
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
687
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
688
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
689
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
690
+
691
+ # header parameters
692
+ header_params = opts[:header_params] || {}
693
+ # HTTP header 'Accept' (if needed)
694
+ header_params['Accept'] =
695
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
696
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
697
+
698
+ # form parameters
699
+ form_params = opts[:form_params] || {}
700
+
701
+ # http body (model)
702
+ post_body = opts[:debug_body]
703
+
704
+ # return_type
705
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJobList'
706
+
707
+ # auth_names
708
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
709
+
710
+ new_options = opts.merge(
711
+ operation: :'BatchV1Api.list_batch_v1_cron_job_for_all_namespaces',
712
+ header_params:,
713
+ query_params:,
714
+ form_params:,
715
+ body: post_body,
716
+ auth_names:,
717
+ return_type:
718
+ )
719
+
720
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
721
+ if @api_client.config.debugging
722
+ @api_client.config.logger.debug "API called: BatchV1Api#list_batch_v1_cron_job_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
723
+ end
724
+ [data, status_code, headers]
725
+ end
726
+
727
+ # list or watch objects of kind Job
728
+ # @param [Hash] opts the optional parameters
729
+ # @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.
730
+ # @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.
731
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
732
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
733
+ # @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.
734
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
735
+ # @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
736
+ # @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
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 [IoK8sApiBatchV1JobList]
740
+ def list_batch_v1_job_for_all_namespaces(opts = {})
741
+ data, _status_code, _headers = list_batch_v1_job_for_all_namespaces_with_http_info(opts)
742
+ data
743
+ end
744
+
745
+ # list or watch objects of kind Job
746
+ # @param [Hash] opts the optional parameters
747
+ # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
748
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
749
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
750
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
751
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
752
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
753
+ # @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
754
+ # @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
755
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
756
+ # @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.
757
+ # @return [Array<(IoK8sApiBatchV1JobList, Integer, Hash)>] IoK8sApiBatchV1JobList data, response status code and response headers
758
+ def list_batch_v1_job_for_all_namespaces_with_http_info(opts = {})
759
+ if @api_client.config.debugging
760
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_batch_v1_job_for_all_namespaces ...'
761
+ end
762
+ # resource path
763
+ local_var_path = '/apis/batch/v1/jobs'
764
+
765
+ # query parameters
766
+ query_params = opts[:query_params] || {}
767
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
768
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
769
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
770
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
771
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
772
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
773
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
774
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
775
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
776
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
777
+
778
+ # header parameters
779
+ header_params = opts[:header_params] || {}
780
+ # HTTP header 'Accept' (if needed)
781
+ header_params['Accept'] =
782
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
783
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
784
+
785
+ # form parameters
786
+ form_params = opts[:form_params] || {}
787
+
788
+ # http body (model)
789
+ post_body = opts[:debug_body]
790
+
791
+ # return_type
792
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1JobList'
793
+
794
+ # auth_names
795
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
796
+
797
+ new_options = opts.merge(
798
+ operation: :'BatchV1Api.list_batch_v1_job_for_all_namespaces',
799
+ header_params:,
800
+ query_params:,
801
+ form_params:,
802
+ body: post_body,
803
+ auth_names:,
804
+ return_type:
805
+ )
806
+
807
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
808
+ if @api_client.config.debugging
809
+ @api_client.config.logger.debug "API called: BatchV1Api#list_batch_v1_job_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
810
+ end
811
+ [data, status_code, headers]
812
+ end
813
+
814
+ # list or watch objects of kind CronJob
815
+ # @param namespace [String] object name and auth scope, such as for teams and projects
816
+ # @param [Hash] opts the optional parameters
817
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
818
+ # @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.
819
+ # @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.
820
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
821
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
822
+ # @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.
823
+ # @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
824
+ # @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
825
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
826
+ # @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.
827
+ # @return [IoK8sApiBatchV1CronJobList]
828
+ def list_batch_v1_namespaced_cron_job(namespace, opts = {})
829
+ data, _status_code, _headers = list_batch_v1_namespaced_cron_job_with_http_info(namespace, opts)
830
+ data
831
+ end
832
+
833
+ # list or watch objects of kind CronJob
834
+ # @param namespace [String] object name and auth scope, such as for teams and projects
835
+ # @param [Hash] opts the optional parameters
836
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
837
+ # @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.
838
+ # @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.
839
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
840
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
841
+ # @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.
842
+ # @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
843
+ # @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
844
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
845
+ # @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.
846
+ # @return [Array<(IoK8sApiBatchV1CronJobList, Integer, Hash)>] IoK8sApiBatchV1CronJobList data, response status code and response headers
847
+ def list_batch_v1_namespaced_cron_job_with_http_info(namespace, opts = {})
848
+ if @api_client.config.debugging
849
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_batch_v1_namespaced_cron_job ...'
850
+ end
851
+ # verify the required parameter 'namespace' is set
852
+ if @api_client.config.client_side_validation && namespace.nil?
853
+ raise ArgumentError,
854
+ "Missing the required parameter 'namespace' when calling BatchV1Api.list_batch_v1_namespaced_cron_job"
855
+ end
856
+
857
+ # resource path
858
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs'.sub('{namespace}',
859
+ CGI.escape(namespace.to_s))
860
+
861
+ # query parameters
862
+ query_params = opts[:query_params] || {}
863
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
864
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
865
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
866
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
867
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
868
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
869
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
870
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
871
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
872
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
873
+
874
+ # header parameters
875
+ header_params = opts[:header_params] || {}
876
+ # HTTP header 'Accept' (if needed)
877
+ header_params['Accept'] =
878
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
879
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
880
+
881
+ # form parameters
882
+ form_params = opts[:form_params] || {}
883
+
884
+ # http body (model)
885
+ post_body = opts[:debug_body]
886
+
887
+ # return_type
888
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJobList'
889
+
890
+ # auth_names
891
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
892
+
893
+ new_options = opts.merge(
894
+ operation: :'BatchV1Api.list_batch_v1_namespaced_cron_job',
895
+ header_params:,
896
+ query_params:,
897
+ form_params:,
898
+ body: post_body,
899
+ auth_names:,
900
+ return_type:
901
+ )
902
+
903
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
904
+ if @api_client.config.debugging
905
+ @api_client.config.logger.debug "API called: BatchV1Api#list_batch_v1_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
906
+ end
907
+ [data, status_code, headers]
908
+ end
909
+
910
+ # list or watch objects of kind Job
911
+ # @param namespace [String] object name and auth scope, such as for teams and projects
912
+ # @param [Hash] opts the optional parameters
913
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
914
+ # @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.
915
+ # @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.
916
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
917
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
918
+ # @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.
919
+ # @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
920
+ # @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
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 [IoK8sApiBatchV1JobList]
924
+ def list_batch_v1_namespaced_job(namespace, opts = {})
925
+ data, _status_code, _headers = list_batch_v1_namespaced_job_with_http_info(namespace, opts)
926
+ data
927
+ end
928
+
929
+ # list or watch objects of kind Job
930
+ # @param namespace [String] object name and auth scope, such as for teams and projects
931
+ # @param [Hash] opts the optional parameters
932
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
933
+ # @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.
934
+ # @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.
935
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
936
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
937
+ # @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.
938
+ # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
939
+ # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
940
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
941
+ # @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.
942
+ # @return [Array<(IoK8sApiBatchV1JobList, Integer, Hash)>] IoK8sApiBatchV1JobList data, response status code and response headers
943
+ def list_batch_v1_namespaced_job_with_http_info(namespace, opts = {})
944
+ if @api_client.config.debugging
945
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.list_batch_v1_namespaced_job ...'
946
+ end
947
+ # verify the required parameter 'namespace' is set
948
+ if @api_client.config.client_side_validation && namespace.nil?
949
+ raise ArgumentError,
950
+ "Missing the required parameter 'namespace' when calling BatchV1Api.list_batch_v1_namespaced_job"
951
+ end
952
+
953
+ # resource path
954
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs'.sub('{namespace}',
955
+ CGI.escape(namespace.to_s))
956
+
957
+ # query parameters
958
+ query_params = opts[:query_params] || {}
959
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
960
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
961
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
962
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
963
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
964
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
965
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
966
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
967
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
968
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
969
+
970
+ # header parameters
971
+ header_params = opts[:header_params] || {}
972
+ # HTTP header 'Accept' (if needed)
973
+ header_params['Accept'] =
974
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
975
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
976
+
977
+ # form parameters
978
+ form_params = opts[:form_params] || {}
979
+
980
+ # http body (model)
981
+ post_body = opts[:debug_body]
982
+
983
+ # return_type
984
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1JobList'
985
+
986
+ # auth_names
987
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
988
+
989
+ new_options = opts.merge(
990
+ operation: :'BatchV1Api.list_batch_v1_namespaced_job',
991
+ header_params:,
992
+ query_params:,
993
+ form_params:,
994
+ body: post_body,
995
+ auth_names:,
996
+ return_type:
997
+ )
998
+
999
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1000
+ if @api_client.config.debugging
1001
+ @api_client.config.logger.debug "API called: BatchV1Api#list_batch_v1_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1002
+ end
1003
+ [data, status_code, headers]
1004
+ end
1005
+
1006
+ # partially update the specified CronJob
1007
+ # @param name [String] name of the CronJob
1008
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1009
+ # @param body [Object]
1010
+ # @param [Hash] opts the optional parameters
1011
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1012
+ # @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
1013
+ # @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).
1014
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1015
+ # @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.
1016
+ # @return [IoK8sApiBatchV1CronJob]
1017
+ def patch_batch_v1_namespaced_cron_job(name, namespace, body, opts = {})
1018
+ data, _status_code, _headers = patch_batch_v1_namespaced_cron_job_with_http_info(name, namespace, body, opts)
1019
+ data
1020
+ end
1021
+
1022
+ # partially update the specified CronJob
1023
+ # @param name [String] name of the CronJob
1024
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1025
+ # @param body [Object]
1026
+ # @param [Hash] opts the optional parameters
1027
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1028
+ # @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
1029
+ # @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).
1030
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1031
+ # @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.
1032
+ # @return [Array<(IoK8sApiBatchV1CronJob, Integer, Hash)>] IoK8sApiBatchV1CronJob data, response status code and response headers
1033
+ def patch_batch_v1_namespaced_cron_job_with_http_info(name, namespace, body, opts = {})
1034
+ if @api_client.config.debugging
1035
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_batch_v1_namespaced_cron_job ...'
1036
+ end
1037
+ # verify the required parameter 'name' is set
1038
+ if @api_client.config.client_side_validation && name.nil?
1039
+ raise ArgumentError,
1040
+ "Missing the required parameter 'name' when calling BatchV1Api.patch_batch_v1_namespaced_cron_job"
1041
+ end
1042
+ # verify the required parameter 'namespace' is set
1043
+ if @api_client.config.client_side_validation && namespace.nil?
1044
+ raise ArgumentError,
1045
+ "Missing the required parameter 'namespace' when calling BatchV1Api.patch_batch_v1_namespaced_cron_job"
1046
+ end
1047
+ # verify the required parameter 'body' is set
1048
+ if @api_client.config.client_side_validation && body.nil?
1049
+ raise ArgumentError,
1050
+ "Missing the required parameter 'body' when calling BatchV1Api.patch_batch_v1_namespaced_cron_job"
1051
+ end
1052
+
1053
+ # resource path
1054
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1055
+ '{namespace}', CGI.escape(namespace.to_s)
1056
+ )
1057
+
1058
+ # query parameters
1059
+ query_params = opts[:query_params] || {}
1060
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1061
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1062
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1063
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1064
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1065
+
1066
+ # header parameters
1067
+ header_params = opts[:header_params] || {}
1068
+ # HTTP header 'Accept' (if needed)
1069
+ header_params['Accept'] =
1070
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1071
+ 'application/vnd.kubernetes.protobuf'])
1072
+ # HTTP header 'Content-Type'
1073
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1074
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1075
+ header_params['Content-Type'] = content_type unless content_type.nil?
1076
+
1077
+ # form parameters
1078
+ form_params = opts[:form_params] || {}
1079
+
1080
+ # http body (model)
1081
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1082
+
1083
+ # return_type
1084
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJob'
1085
+
1086
+ # auth_names
1087
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1088
+
1089
+ new_options = opts.merge(
1090
+ operation: :'BatchV1Api.patch_batch_v1_namespaced_cron_job',
1091
+ header_params:,
1092
+ query_params:,
1093
+ form_params:,
1094
+ body: post_body,
1095
+ auth_names:,
1096
+ return_type:
1097
+ )
1098
+
1099
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1100
+ if @api_client.config.debugging
1101
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_batch_v1_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1102
+ end
1103
+ [data, status_code, headers]
1104
+ end
1105
+
1106
+ # partially update status of the specified CronJob
1107
+ # @param name [String] name of the CronJob
1108
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1109
+ # @param body [Object]
1110
+ # @param [Hash] opts the optional parameters
1111
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1112
+ # @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
1113
+ # @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).
1114
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1115
+ # @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.
1116
+ # @return [IoK8sApiBatchV1CronJob]
1117
+ def patch_batch_v1_namespaced_cron_job_status(name, namespace, body, opts = {})
1118
+ data, _status_code, _headers = patch_batch_v1_namespaced_cron_job_status_with_http_info(name, namespace, body,
1119
+ opts)
1120
+ data
1121
+ end
1122
+
1123
+ # partially update status of the specified CronJob
1124
+ # @param name [String] name of the CronJob
1125
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1126
+ # @param body [Object]
1127
+ # @param [Hash] opts the optional parameters
1128
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1129
+ # @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
1130
+ # @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).
1131
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1132
+ # @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.
1133
+ # @return [Array<(IoK8sApiBatchV1CronJob, Integer, Hash)>] IoK8sApiBatchV1CronJob data, response status code and response headers
1134
+ def patch_batch_v1_namespaced_cron_job_status_with_http_info(name, namespace, body, opts = {})
1135
+ if @api_client.config.debugging
1136
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_batch_v1_namespaced_cron_job_status ...'
1137
+ end
1138
+ # verify the required parameter 'name' is set
1139
+ if @api_client.config.client_side_validation && name.nil?
1140
+ raise ArgumentError,
1141
+ "Missing the required parameter 'name' when calling BatchV1Api.patch_batch_v1_namespaced_cron_job_status"
1142
+ end
1143
+ # verify the required parameter 'namespace' is set
1144
+ if @api_client.config.client_side_validation && namespace.nil?
1145
+ raise ArgumentError,
1146
+ "Missing the required parameter 'namespace' when calling BatchV1Api.patch_batch_v1_namespaced_cron_job_status"
1147
+ end
1148
+ # verify the required parameter 'body' is set
1149
+ if @api_client.config.client_side_validation && body.nil?
1150
+ raise ArgumentError,
1151
+ "Missing the required parameter 'body' when calling BatchV1Api.patch_batch_v1_namespaced_cron_job_status"
1152
+ end
1153
+
1154
+ # resource path
1155
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1156
+ '{namespace}', CGI.escape(namespace.to_s)
1157
+ )
1158
+
1159
+ # query parameters
1160
+ query_params = opts[:query_params] || {}
1161
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1162
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1163
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1164
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1165
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1166
+
1167
+ # header parameters
1168
+ header_params = opts[:header_params] || {}
1169
+ # HTTP header 'Accept' (if needed)
1170
+ header_params['Accept'] =
1171
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1172
+ 'application/vnd.kubernetes.protobuf'])
1173
+ # HTTP header 'Content-Type'
1174
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1175
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1176
+ header_params['Content-Type'] = content_type unless content_type.nil?
1177
+
1178
+ # form parameters
1179
+ form_params = opts[:form_params] || {}
1180
+
1181
+ # http body (model)
1182
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1183
+
1184
+ # return_type
1185
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJob'
1186
+
1187
+ # auth_names
1188
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1189
+
1190
+ new_options = opts.merge(
1191
+ operation: :'BatchV1Api.patch_batch_v1_namespaced_cron_job_status',
1192
+ header_params:,
1193
+ query_params:,
1194
+ form_params:,
1195
+ body: post_body,
1196
+ auth_names:,
1197
+ return_type:
1198
+ )
1199
+
1200
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1201
+ if @api_client.config.debugging
1202
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_batch_v1_namespaced_cron_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1203
+ end
1204
+ [data, status_code, headers]
1205
+ end
1206
+
1207
+ # partially update the specified Job
1208
+ # @param name [String] name of the Job
1209
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1210
+ # @param body [Object]
1211
+ # @param [Hash] opts the optional parameters
1212
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1213
+ # @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
1214
+ # @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).
1215
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1216
+ # @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.
1217
+ # @return [IoK8sApiBatchV1Job]
1218
+ def patch_batch_v1_namespaced_job(name, namespace, body, opts = {})
1219
+ data, _status_code, _headers = patch_batch_v1_namespaced_job_with_http_info(name, namespace, body, opts)
1220
+ data
1221
+ end
1222
+
1223
+ # partially update the specified Job
1224
+ # @param name [String] name of the Job
1225
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1226
+ # @param body [Object]
1227
+ # @param [Hash] opts the optional parameters
1228
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1229
+ # @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
1230
+ # @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).
1231
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1232
+ # @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.
1233
+ # @return [Array<(IoK8sApiBatchV1Job, Integer, Hash)>] IoK8sApiBatchV1Job data, response status code and response headers
1234
+ def patch_batch_v1_namespaced_job_with_http_info(name, namespace, body, opts = {})
1235
+ if @api_client.config.debugging
1236
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_batch_v1_namespaced_job ...'
1237
+ end
1238
+ # verify the required parameter 'name' is set
1239
+ if @api_client.config.client_side_validation && name.nil?
1240
+ raise ArgumentError,
1241
+ "Missing the required parameter 'name' when calling BatchV1Api.patch_batch_v1_namespaced_job"
1242
+ end
1243
+ # verify the required parameter 'namespace' is set
1244
+ if @api_client.config.client_side_validation && namespace.nil?
1245
+ raise ArgumentError,
1246
+ "Missing the required parameter 'namespace' when calling BatchV1Api.patch_batch_v1_namespaced_job"
1247
+ end
1248
+ # verify the required parameter 'body' is set
1249
+ if @api_client.config.client_side_validation && body.nil?
1250
+ raise ArgumentError,
1251
+ "Missing the required parameter 'body' when calling BatchV1Api.patch_batch_v1_namespaced_job"
1252
+ end
1253
+
1254
+ # resource path
1255
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1256
+ '{namespace}', CGI.escape(namespace.to_s)
1257
+ )
1258
+
1259
+ # query parameters
1260
+ query_params = opts[:query_params] || {}
1261
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1262
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1263
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1264
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1265
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1266
+
1267
+ # header parameters
1268
+ header_params = opts[:header_params] || {}
1269
+ # HTTP header 'Accept' (if needed)
1270
+ header_params['Accept'] =
1271
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1272
+ 'application/vnd.kubernetes.protobuf'])
1273
+ # HTTP header 'Content-Type'
1274
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1275
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1276
+ header_params['Content-Type'] = content_type unless content_type.nil?
1277
+
1278
+ # form parameters
1279
+ form_params = opts[:form_params] || {}
1280
+
1281
+ # http body (model)
1282
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1283
+
1284
+ # return_type
1285
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1Job'
1286
+
1287
+ # auth_names
1288
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1289
+
1290
+ new_options = opts.merge(
1291
+ operation: :'BatchV1Api.patch_batch_v1_namespaced_job',
1292
+ header_params:,
1293
+ query_params:,
1294
+ form_params:,
1295
+ body: post_body,
1296
+ auth_names:,
1297
+ return_type:
1298
+ )
1299
+
1300
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1301
+ if @api_client.config.debugging
1302
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_batch_v1_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1303
+ end
1304
+ [data, status_code, headers]
1305
+ end
1306
+
1307
+ # partially update status of the specified Job
1308
+ # @param name [String] name of the Job
1309
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1310
+ # @param body [Object]
1311
+ # @param [Hash] opts the optional parameters
1312
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1313
+ # @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
1314
+ # @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).
1315
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1316
+ # @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.
1317
+ # @return [IoK8sApiBatchV1Job]
1318
+ def patch_batch_v1_namespaced_job_status(name, namespace, body, opts = {})
1319
+ data, _status_code, _headers = patch_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, opts)
1320
+ data
1321
+ end
1322
+
1323
+ # partially update status of the specified Job
1324
+ # @param name [String] name of the Job
1325
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1326
+ # @param body [Object]
1327
+ # @param [Hash] opts the optional parameters
1328
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1329
+ # @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
1330
+ # @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).
1331
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1332
+ # @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.
1333
+ # @return [Array<(IoK8sApiBatchV1Job, Integer, Hash)>] IoK8sApiBatchV1Job data, response status code and response headers
1334
+ def patch_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, opts = {})
1335
+ if @api_client.config.debugging
1336
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.patch_batch_v1_namespaced_job_status ...'
1337
+ end
1338
+ # verify the required parameter 'name' is set
1339
+ if @api_client.config.client_side_validation && name.nil?
1340
+ raise ArgumentError,
1341
+ "Missing the required parameter 'name' when calling BatchV1Api.patch_batch_v1_namespaced_job_status"
1342
+ end
1343
+ # verify the required parameter 'namespace' is set
1344
+ if @api_client.config.client_side_validation && namespace.nil?
1345
+ raise ArgumentError,
1346
+ "Missing the required parameter 'namespace' when calling BatchV1Api.patch_batch_v1_namespaced_job_status"
1347
+ end
1348
+ # verify the required parameter 'body' is set
1349
+ if @api_client.config.client_side_validation && body.nil?
1350
+ raise ArgumentError,
1351
+ "Missing the required parameter 'body' when calling BatchV1Api.patch_batch_v1_namespaced_job_status"
1352
+ end
1353
+
1354
+ # resource path
1355
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1356
+ '{namespace}', CGI.escape(namespace.to_s)
1357
+ )
1358
+
1359
+ # query parameters
1360
+ query_params = opts[:query_params] || {}
1361
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1362
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1363
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1364
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1365
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1366
+
1367
+ # header parameters
1368
+ header_params = opts[:header_params] || {}
1369
+ # HTTP header 'Accept' (if needed)
1370
+ header_params['Accept'] =
1371
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1372
+ 'application/vnd.kubernetes.protobuf'])
1373
+ # HTTP header 'Content-Type'
1374
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1375
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1376
+ header_params['Content-Type'] = content_type unless content_type.nil?
1377
+
1378
+ # form parameters
1379
+ form_params = opts[:form_params] || {}
1380
+
1381
+ # http body (model)
1382
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1383
+
1384
+ # return_type
1385
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1Job'
1386
+
1387
+ # auth_names
1388
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1389
+
1390
+ new_options = opts.merge(
1391
+ operation: :'BatchV1Api.patch_batch_v1_namespaced_job_status',
1392
+ header_params:,
1393
+ query_params:,
1394
+ form_params:,
1395
+ body: post_body,
1396
+ auth_names:,
1397
+ return_type:
1398
+ )
1399
+
1400
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1401
+ if @api_client.config.debugging
1402
+ @api_client.config.logger.debug "API called: BatchV1Api#patch_batch_v1_namespaced_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1403
+ end
1404
+ [data, status_code, headers]
1405
+ end
1406
+
1407
+ # read the specified CronJob
1408
+ # @param name [String] name of the CronJob
1409
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1410
+ # @param [Hash] opts the optional parameters
1411
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1412
+ # @return [IoK8sApiBatchV1CronJob]
1413
+ def read_batch_v1_namespaced_cron_job(name, namespace, opts = {})
1414
+ data, _status_code, _headers = read_batch_v1_namespaced_cron_job_with_http_info(name, namespace, opts)
1415
+ data
1416
+ end
1417
+
1418
+ # read the specified CronJob
1419
+ # @param name [String] name of the CronJob
1420
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1421
+ # @param [Hash] opts the optional parameters
1422
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1423
+ # @return [Array<(IoK8sApiBatchV1CronJob, Integer, Hash)>] IoK8sApiBatchV1CronJob data, response status code and response headers
1424
+ def read_batch_v1_namespaced_cron_job_with_http_info(name, namespace, opts = {})
1425
+ if @api_client.config.debugging
1426
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_batch_v1_namespaced_cron_job ...'
1427
+ end
1428
+ # verify the required parameter 'name' is set
1429
+ if @api_client.config.client_side_validation && name.nil?
1430
+ raise ArgumentError,
1431
+ "Missing the required parameter 'name' when calling BatchV1Api.read_batch_v1_namespaced_cron_job"
1432
+ end
1433
+ # verify the required parameter 'namespace' is set
1434
+ if @api_client.config.client_side_validation && namespace.nil?
1435
+ raise ArgumentError,
1436
+ "Missing the required parameter 'namespace' when calling BatchV1Api.read_batch_v1_namespaced_cron_job"
1437
+ end
1438
+
1439
+ # resource path
1440
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1441
+ '{namespace}', CGI.escape(namespace.to_s)
1442
+ )
1443
+
1444
+ # query parameters
1445
+ query_params = opts[:query_params] || {}
1446
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1447
+
1448
+ # header parameters
1449
+ header_params = opts[:header_params] || {}
1450
+ # HTTP header 'Accept' (if needed)
1451
+ header_params['Accept'] =
1452
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1453
+ 'application/vnd.kubernetes.protobuf'])
1454
+
1455
+ # form parameters
1456
+ form_params = opts[:form_params] || {}
1457
+
1458
+ # http body (model)
1459
+ post_body = opts[:debug_body]
1460
+
1461
+ # return_type
1462
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJob'
1463
+
1464
+ # auth_names
1465
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1466
+
1467
+ new_options = opts.merge(
1468
+ operation: :'BatchV1Api.read_batch_v1_namespaced_cron_job',
1469
+ header_params:,
1470
+ query_params:,
1471
+ form_params:,
1472
+ body: post_body,
1473
+ auth_names:,
1474
+ return_type:
1475
+ )
1476
+
1477
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1478
+ if @api_client.config.debugging
1479
+ @api_client.config.logger.debug "API called: BatchV1Api#read_batch_v1_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1480
+ end
1481
+ [data, status_code, headers]
1482
+ end
1483
+
1484
+ # read status of the specified CronJob
1485
+ # @param name [String] name of the CronJob
1486
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1487
+ # @param [Hash] opts the optional parameters
1488
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1489
+ # @return [IoK8sApiBatchV1CronJob]
1490
+ def read_batch_v1_namespaced_cron_job_status(name, namespace, opts = {})
1491
+ data, _status_code, _headers = read_batch_v1_namespaced_cron_job_status_with_http_info(name, namespace, opts)
1492
+ data
1493
+ end
1494
+
1495
+ # read status of the specified CronJob
1496
+ # @param name [String] name of the CronJob
1497
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1498
+ # @param [Hash] opts the optional parameters
1499
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1500
+ # @return [Array<(IoK8sApiBatchV1CronJob, Integer, Hash)>] IoK8sApiBatchV1CronJob data, response status code and response headers
1501
+ def read_batch_v1_namespaced_cron_job_status_with_http_info(name, namespace, opts = {})
1502
+ if @api_client.config.debugging
1503
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_batch_v1_namespaced_cron_job_status ...'
1504
+ end
1505
+ # verify the required parameter 'name' is set
1506
+ if @api_client.config.client_side_validation && name.nil?
1507
+ raise ArgumentError,
1508
+ "Missing the required parameter 'name' when calling BatchV1Api.read_batch_v1_namespaced_cron_job_status"
1509
+ end
1510
+ # verify the required parameter 'namespace' is set
1511
+ if @api_client.config.client_side_validation && namespace.nil?
1512
+ raise ArgumentError,
1513
+ "Missing the required parameter 'namespace' when calling BatchV1Api.read_batch_v1_namespaced_cron_job_status"
1514
+ end
1515
+
1516
+ # resource path
1517
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1518
+ '{namespace}', CGI.escape(namespace.to_s)
1519
+ )
1520
+
1521
+ # query parameters
1522
+ query_params = opts[:query_params] || {}
1523
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1524
+
1525
+ # header parameters
1526
+ header_params = opts[:header_params] || {}
1527
+ # HTTP header 'Accept' (if needed)
1528
+ header_params['Accept'] =
1529
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1530
+ 'application/vnd.kubernetes.protobuf'])
1531
+
1532
+ # form parameters
1533
+ form_params = opts[:form_params] || {}
1534
+
1535
+ # http body (model)
1536
+ post_body = opts[:debug_body]
1537
+
1538
+ # return_type
1539
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJob'
1540
+
1541
+ # auth_names
1542
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1543
+
1544
+ new_options = opts.merge(
1545
+ operation: :'BatchV1Api.read_batch_v1_namespaced_cron_job_status',
1546
+ header_params:,
1547
+ query_params:,
1548
+ form_params:,
1549
+ body: post_body,
1550
+ auth_names:,
1551
+ return_type:
1552
+ )
1553
+
1554
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1555
+ if @api_client.config.debugging
1556
+ @api_client.config.logger.debug "API called: BatchV1Api#read_batch_v1_namespaced_cron_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1557
+ end
1558
+ [data, status_code, headers]
1559
+ end
1560
+
1561
+ # read the specified Job
1562
+ # @param name [String] name of the Job
1563
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1564
+ # @param [Hash] opts the optional parameters
1565
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1566
+ # @return [IoK8sApiBatchV1Job]
1567
+ def read_batch_v1_namespaced_job(name, namespace, opts = {})
1568
+ data, _status_code, _headers = read_batch_v1_namespaced_job_with_http_info(name, namespace, opts)
1569
+ data
1570
+ end
1571
+
1572
+ # read the specified Job
1573
+ # @param name [String] name of the Job
1574
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1575
+ # @param [Hash] opts the optional parameters
1576
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1577
+ # @return [Array<(IoK8sApiBatchV1Job, Integer, Hash)>] IoK8sApiBatchV1Job data, response status code and response headers
1578
+ def read_batch_v1_namespaced_job_with_http_info(name, namespace, opts = {})
1579
+ if @api_client.config.debugging
1580
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_batch_v1_namespaced_job ...'
1581
+ end
1582
+ # verify the required parameter 'name' is set
1583
+ if @api_client.config.client_side_validation && name.nil?
1584
+ raise ArgumentError,
1585
+ "Missing the required parameter 'name' when calling BatchV1Api.read_batch_v1_namespaced_job"
1586
+ end
1587
+
1588
+ # verify the required parameter 'namespace' is set
1589
+ if @api_client.config.client_side_validation && namespace.nil?
1590
+ raise ArgumentError,
1591
+ "Missing the required parameter 'namespace' when calling BatchV1Api.read_batch_v1_namespaced_job"
1592
+ end
1593
+
1594
+ # resource path
1595
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1596
+ '{namespace}', CGI.escape(namespace.to_s)
1597
+ )
1598
+
1599
+ # query parameters
1600
+ query_params = opts[:query_params] || {}
1601
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1602
+
1603
+ # header parameters
1604
+ header_params = opts[:header_params] || {}
1605
+ # HTTP header 'Accept' (if needed)
1606
+ header_params['Accept'] =
1607
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1608
+ 'application/vnd.kubernetes.protobuf'])
1609
+
1610
+ # form parameters
1611
+ form_params = opts[:form_params] || {}
1612
+
1613
+ # http body (model)
1614
+ post_body = opts[:debug_body]
1615
+
1616
+ # return_type
1617
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1Job'
1618
+
1619
+ # auth_names
1620
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1621
+
1622
+ new_options = opts.merge(
1623
+ operation: :'BatchV1Api.read_batch_v1_namespaced_job',
1624
+ header_params:,
1625
+ query_params:,
1626
+ form_params:,
1627
+ body: post_body,
1628
+ auth_names:,
1629
+ return_type:
1630
+ )
1631
+
1632
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1633
+ if @api_client.config.debugging
1634
+ @api_client.config.logger.debug "API called: BatchV1Api#read_batch_v1_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1635
+ end
1636
+ [data, status_code, headers]
1637
+ end
1638
+
1639
+ # read status of the specified Job
1640
+ # @param name [String] name of the Job
1641
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1642
+ # @param [Hash] opts the optional parameters
1643
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1644
+ # @return [IoK8sApiBatchV1Job]
1645
+ def read_batch_v1_namespaced_job_status(name, namespace, opts = {})
1646
+ data, _status_code, _headers = read_batch_v1_namespaced_job_status_with_http_info(name, namespace, opts)
1647
+ data
1648
+ end
1649
+
1650
+ # read status of the specified Job
1651
+ # @param name [String] name of the Job
1652
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1653
+ # @param [Hash] opts the optional parameters
1654
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1655
+ # @return [Array<(IoK8sApiBatchV1Job, Integer, Hash)>] IoK8sApiBatchV1Job data, response status code and response headers
1656
+ def read_batch_v1_namespaced_job_status_with_http_info(name, namespace, opts = {})
1657
+ if @api_client.config.debugging
1658
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.read_batch_v1_namespaced_job_status ...'
1659
+ end
1660
+ # verify the required parameter 'name' is set
1661
+ if @api_client.config.client_side_validation && name.nil?
1662
+ raise ArgumentError,
1663
+ "Missing the required parameter 'name' when calling BatchV1Api.read_batch_v1_namespaced_job_status"
1664
+ end
1665
+ # verify the required parameter 'namespace' is set
1666
+ if @api_client.config.client_side_validation && namespace.nil?
1667
+ raise ArgumentError,
1668
+ "Missing the required parameter 'namespace' when calling BatchV1Api.read_batch_v1_namespaced_job_status"
1669
+ end
1670
+
1671
+ # resource path
1672
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1673
+ '{namespace}', CGI.escape(namespace.to_s)
1674
+ )
1675
+
1676
+ # query parameters
1677
+ query_params = opts[:query_params] || {}
1678
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1679
+
1680
+ # header parameters
1681
+ header_params = opts[:header_params] || {}
1682
+ # HTTP header 'Accept' (if needed)
1683
+ header_params['Accept'] =
1684
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1685
+ 'application/vnd.kubernetes.protobuf'])
1686
+
1687
+ # form parameters
1688
+ form_params = opts[:form_params] || {}
1689
+
1690
+ # http body (model)
1691
+ post_body = opts[:debug_body]
1692
+
1693
+ # return_type
1694
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1Job'
1695
+
1696
+ # auth_names
1697
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1698
+
1699
+ new_options = opts.merge(
1700
+ operation: :'BatchV1Api.read_batch_v1_namespaced_job_status',
1701
+ header_params:,
1702
+ query_params:,
1703
+ form_params:,
1704
+ body: post_body,
1705
+ auth_names:,
1706
+ return_type:
1707
+ )
1708
+
1709
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1710
+ if @api_client.config.debugging
1711
+ @api_client.config.logger.debug "API called: BatchV1Api#read_batch_v1_namespaced_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1712
+ end
1713
+ [data, status_code, headers]
1714
+ end
1715
+
1716
+ # replace the specified CronJob
1717
+ # @param name [String] name of the CronJob
1718
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1719
+ # @param body [IoK8sApiBatchV1CronJob]
1720
+ # @param [Hash] opts the optional parameters
1721
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1722
+ # @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
1723
+ # @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.
1724
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1725
+ # @return [IoK8sApiBatchV1CronJob]
1726
+ def replace_batch_v1_namespaced_cron_job(name, namespace, body, opts = {})
1727
+ data, _status_code, _headers = replace_batch_v1_namespaced_cron_job_with_http_info(name, namespace, body, opts)
1728
+ data
1729
+ end
1730
+
1731
+ # replace the specified CronJob
1732
+ # @param name [String] name of the CronJob
1733
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1734
+ # @param body [IoK8sApiBatchV1CronJob]
1735
+ # @param [Hash] opts the optional parameters
1736
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1737
+ # @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
1738
+ # @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.
1739
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1740
+ # @return [Array<(IoK8sApiBatchV1CronJob, Integer, Hash)>] IoK8sApiBatchV1CronJob data, response status code and response headers
1741
+ def replace_batch_v1_namespaced_cron_job_with_http_info(name, namespace, body, opts = {})
1742
+ if @api_client.config.debugging
1743
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_batch_v1_namespaced_cron_job ...'
1744
+ end
1745
+ # verify the required parameter 'name' is set
1746
+ if @api_client.config.client_side_validation && name.nil?
1747
+ raise ArgumentError,
1748
+ "Missing the required parameter 'name' when calling BatchV1Api.replace_batch_v1_namespaced_cron_job"
1749
+ end
1750
+ # verify the required parameter 'namespace' is set
1751
+ if @api_client.config.client_side_validation && namespace.nil?
1752
+ raise ArgumentError,
1753
+ "Missing the required parameter 'namespace' when calling BatchV1Api.replace_batch_v1_namespaced_cron_job"
1754
+ end
1755
+ # verify the required parameter 'body' is set
1756
+ if @api_client.config.client_side_validation && body.nil?
1757
+ raise ArgumentError,
1758
+ "Missing the required parameter 'body' when calling BatchV1Api.replace_batch_v1_namespaced_cron_job"
1759
+ end
1760
+
1761
+ # resource path
1762
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1763
+ '{namespace}', CGI.escape(namespace.to_s)
1764
+ )
1765
+
1766
+ # query parameters
1767
+ query_params = opts[:query_params] || {}
1768
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1769
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1770
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1771
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1772
+
1773
+ # header parameters
1774
+ header_params = opts[:header_params] || {}
1775
+ # HTTP header 'Accept' (if needed)
1776
+ header_params['Accept'] =
1777
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1778
+ 'application/vnd.kubernetes.protobuf'])
1779
+
1780
+ # form parameters
1781
+ form_params = opts[:form_params] || {}
1782
+
1783
+ # http body (model)
1784
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1785
+
1786
+ # return_type
1787
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJob'
1788
+
1789
+ # auth_names
1790
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1791
+
1792
+ new_options = opts.merge(
1793
+ operation: :'BatchV1Api.replace_batch_v1_namespaced_cron_job',
1794
+ header_params:,
1795
+ query_params:,
1796
+ form_params:,
1797
+ body: post_body,
1798
+ auth_names:,
1799
+ return_type:
1800
+ )
1801
+
1802
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1803
+ if @api_client.config.debugging
1804
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_batch_v1_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1805
+ end
1806
+ [data, status_code, headers]
1807
+ end
1808
+
1809
+ # replace status of the specified CronJob
1810
+ # @param name [String] name of the CronJob
1811
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1812
+ # @param body [IoK8sApiBatchV1CronJob]
1813
+ # @param [Hash] opts the optional parameters
1814
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1815
+ # @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
1816
+ # @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.
1817
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1818
+ # @return [IoK8sApiBatchV1CronJob]
1819
+ def replace_batch_v1_namespaced_cron_job_status(name, namespace, body, opts = {})
1820
+ data, _status_code, _headers = replace_batch_v1_namespaced_cron_job_status_with_http_info(name, namespace, body,
1821
+ opts)
1822
+ data
1823
+ end
1824
+
1825
+ # replace status of the specified CronJob
1826
+ # @param name [String] name of the CronJob
1827
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1828
+ # @param body [IoK8sApiBatchV1CronJob]
1829
+ # @param [Hash] opts the optional parameters
1830
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1831
+ # @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
1832
+ # @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.
1833
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1834
+ # @return [Array<(IoK8sApiBatchV1CronJob, Integer, Hash)>] IoK8sApiBatchV1CronJob data, response status code and response headers
1835
+ def replace_batch_v1_namespaced_cron_job_status_with_http_info(name, namespace, body, opts = {})
1836
+ if @api_client.config.debugging
1837
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_batch_v1_namespaced_cron_job_status ...'
1838
+ end
1839
+ # verify the required parameter 'name' is set
1840
+ if @api_client.config.client_side_validation && name.nil?
1841
+ raise ArgumentError,
1842
+ "Missing the required parameter 'name' when calling BatchV1Api.replace_batch_v1_namespaced_cron_job_status"
1843
+ end
1844
+ # verify the required parameter 'namespace' is set
1845
+ if @api_client.config.client_side_validation && namespace.nil?
1846
+ raise ArgumentError,
1847
+ "Missing the required parameter 'namespace' when calling BatchV1Api.replace_batch_v1_namespaced_cron_job_status"
1848
+ end
1849
+ # verify the required parameter 'body' is set
1850
+ if @api_client.config.client_side_validation && body.nil?
1851
+ raise ArgumentError,
1852
+ "Missing the required parameter 'body' when calling BatchV1Api.replace_batch_v1_namespaced_cron_job_status"
1853
+ end
1854
+
1855
+ # resource path
1856
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1857
+ '{namespace}', CGI.escape(namespace.to_s)
1858
+ )
1859
+
1860
+ # query parameters
1861
+ query_params = opts[:query_params] || {}
1862
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1863
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1864
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1865
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1866
+
1867
+ # header parameters
1868
+ header_params = opts[:header_params] || {}
1869
+ # HTTP header 'Accept' (if needed)
1870
+ header_params['Accept'] =
1871
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1872
+ 'application/vnd.kubernetes.protobuf'])
1873
+
1874
+ # form parameters
1875
+ form_params = opts[:form_params] || {}
1876
+
1877
+ # http body (model)
1878
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1879
+
1880
+ # return_type
1881
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1CronJob'
1882
+
1883
+ # auth_names
1884
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1885
+
1886
+ new_options = opts.merge(
1887
+ operation: :'BatchV1Api.replace_batch_v1_namespaced_cron_job_status',
1888
+ header_params:,
1889
+ query_params:,
1890
+ form_params:,
1891
+ body: post_body,
1892
+ auth_names:,
1893
+ return_type:
1894
+ )
1895
+
1896
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1897
+ if @api_client.config.debugging
1898
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_batch_v1_namespaced_cron_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1899
+ end
1900
+ [data, status_code, headers]
1901
+ end
1902
+
1903
+ # replace the specified Job
1904
+ # @param name [String] name of the Job
1905
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1906
+ # @param body [IoK8sApiBatchV1Job]
1907
+ # @param [Hash] opts the optional parameters
1908
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1909
+ # @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
1910
+ # @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.
1911
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1912
+ # @return [IoK8sApiBatchV1Job]
1913
+ def replace_batch_v1_namespaced_job(name, namespace, body, opts = {})
1914
+ data, _status_code, _headers = replace_batch_v1_namespaced_job_with_http_info(name, namespace, body, opts)
1915
+ data
1916
+ end
1917
+
1918
+ # replace the specified Job
1919
+ # @param name [String] name of the Job
1920
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1921
+ # @param body [IoK8sApiBatchV1Job]
1922
+ # @param [Hash] opts the optional parameters
1923
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1924
+ # @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
1925
+ # @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.
1926
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
1927
+ # @return [Array<(IoK8sApiBatchV1Job, Integer, Hash)>] IoK8sApiBatchV1Job data, response status code and response headers
1928
+ def replace_batch_v1_namespaced_job_with_http_info(name, namespace, body, opts = {})
1929
+ if @api_client.config.debugging
1930
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_batch_v1_namespaced_job ...'
1931
+ end
1932
+ # verify the required parameter 'name' is set
1933
+ if @api_client.config.client_side_validation && name.nil?
1934
+ raise ArgumentError,
1935
+ "Missing the required parameter 'name' when calling BatchV1Api.replace_batch_v1_namespaced_job"
1936
+ end
1937
+ # verify the required parameter 'namespace' is set
1938
+ if @api_client.config.client_side_validation && namespace.nil?
1939
+ raise ArgumentError,
1940
+ "Missing the required parameter 'namespace' when calling BatchV1Api.replace_batch_v1_namespaced_job"
1941
+ end
1942
+ # verify the required parameter 'body' is set
1943
+ if @api_client.config.client_side_validation && body.nil?
1944
+ raise ArgumentError,
1945
+ "Missing the required parameter 'body' when calling BatchV1Api.replace_batch_v1_namespaced_job"
1946
+ end
1947
+
1948
+ # resource path
1949
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1950
+ '{namespace}', CGI.escape(namespace.to_s)
1951
+ )
1952
+
1953
+ # query parameters
1954
+ query_params = opts[:query_params] || {}
1955
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1956
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1957
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1958
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1959
+
1960
+ # header parameters
1961
+ header_params = opts[:header_params] || {}
1962
+ # HTTP header 'Accept' (if needed)
1963
+ header_params['Accept'] =
1964
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1965
+ 'application/vnd.kubernetes.protobuf'])
1966
+
1967
+ # form parameters
1968
+ form_params = opts[:form_params] || {}
1969
+
1970
+ # http body (model)
1971
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1972
+
1973
+ # return_type
1974
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1Job'
1975
+
1976
+ # auth_names
1977
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1978
+
1979
+ new_options = opts.merge(
1980
+ operation: :'BatchV1Api.replace_batch_v1_namespaced_job',
1981
+ header_params:,
1982
+ query_params:,
1983
+ form_params:,
1984
+ body: post_body,
1985
+ auth_names:,
1986
+ return_type:
1987
+ )
1988
+
1989
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1990
+ if @api_client.config.debugging
1991
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_batch_v1_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1992
+ end
1993
+ [data, status_code, headers]
1994
+ end
1995
+
1996
+ # replace status of the specified Job
1997
+ # @param name [String] name of the Job
1998
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1999
+ # @param body [IoK8sApiBatchV1Job]
2000
+ # @param [Hash] opts the optional parameters
2001
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2002
+ # @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
2003
+ # @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.
2004
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
2005
+ # @return [IoK8sApiBatchV1Job]
2006
+ def replace_batch_v1_namespaced_job_status(name, namespace, body, opts = {})
2007
+ data, _status_code, _headers = replace_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, opts)
2008
+ data
2009
+ end
2010
+
2011
+ # replace status of the specified Job
2012
+ # @param name [String] name of the Job
2013
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2014
+ # @param body [IoK8sApiBatchV1Job]
2015
+ # @param [Hash] opts the optional parameters
2016
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2017
+ # @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
2018
+ # @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.
2019
+ # @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, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. 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 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - 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 when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - 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.
2020
+ # @return [Array<(IoK8sApiBatchV1Job, Integer, Hash)>] IoK8sApiBatchV1Job data, response status code and response headers
2021
+ def replace_batch_v1_namespaced_job_status_with_http_info(name, namespace, body, opts = {})
2022
+ if @api_client.config.debugging
2023
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.replace_batch_v1_namespaced_job_status ...'
2024
+ end
2025
+ # verify the required parameter 'name' is set
2026
+ if @api_client.config.client_side_validation && name.nil?
2027
+ raise ArgumentError,
2028
+ "Missing the required parameter 'name' when calling BatchV1Api.replace_batch_v1_namespaced_job_status"
2029
+ end
2030
+ # verify the required parameter 'namespace' is set
2031
+ if @api_client.config.client_side_validation && namespace.nil?
2032
+ raise ArgumentError,
2033
+ "Missing the required parameter 'namespace' when calling BatchV1Api.replace_batch_v1_namespaced_job_status"
2034
+ end
2035
+ # verify the required parameter 'body' is set
2036
+ if @api_client.config.client_side_validation && body.nil?
2037
+ raise ArgumentError,
2038
+ "Missing the required parameter 'body' when calling BatchV1Api.replace_batch_v1_namespaced_job_status"
2039
+ end
2040
+
2041
+ # resource path
2042
+ local_var_path = '/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
2043
+ '{namespace}', CGI.escape(namespace.to_s)
2044
+ )
2045
+
2046
+ # query parameters
2047
+ query_params = opts[:query_params] || {}
2048
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2049
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2050
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
2051
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
2052
+
2053
+ # header parameters
2054
+ header_params = opts[:header_params] || {}
2055
+ # HTTP header 'Accept' (if needed)
2056
+ header_params['Accept'] =
2057
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2058
+ 'application/vnd.kubernetes.protobuf'])
2059
+
2060
+ # form parameters
2061
+ form_params = opts[:form_params] || {}
2062
+
2063
+ # http body (model)
2064
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2065
+
2066
+ # return_type
2067
+ return_type = opts[:debug_return_type] || 'IoK8sApiBatchV1Job'
2068
+
2069
+ # auth_names
2070
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2071
+
2072
+ new_options = opts.merge(
2073
+ operation: :'BatchV1Api.replace_batch_v1_namespaced_job_status',
2074
+ header_params:,
2075
+ query_params:,
2076
+ form_params:,
2077
+ body: post_body,
2078
+ auth_names:,
2079
+ return_type:
2080
+ )
2081
+
2082
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2083
+ if @api_client.config.debugging
2084
+ @api_client.config.logger.debug "API called: BatchV1Api#replace_batch_v1_namespaced_job_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2085
+ end
2086
+ [data, status_code, headers]
2087
+ end
2088
+
2089
+ # watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.
2090
+ # @param [Hash] opts the optional parameters
2091
+ # @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.
2092
+ # @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.
2093
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2094
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2095
+ # @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.
2096
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2097
+ # @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
2098
+ # @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
2099
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2100
+ # @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.
2101
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2102
+ def watch_batch_v1_cron_job_list_for_all_namespaces(opts = {})
2103
+ data, _status_code, _headers = watch_batch_v1_cron_job_list_for_all_namespaces_with_http_info(opts)
2104
+ data
2105
+ end
2106
+
2107
+ # watch individual changes to a list of CronJob. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
2108
+ # @param [Hash] opts the optional parameters
2109
+ # @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.
2110
+ # @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.
2111
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2112
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2113
+ # @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.
2114
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2115
+ # @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
2116
+ # @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
2117
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2118
+ # @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.
2119
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2120
+ def watch_batch_v1_cron_job_list_for_all_namespaces_with_http_info(opts = {})
2121
+ if @api_client.config.debugging
2122
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.watch_batch_v1_cron_job_list_for_all_namespaces ...'
2123
+ end
2124
+ # resource path
2125
+ local_var_path = '/apis/batch/v1/watch/cronjobs'
2126
+
2127
+ # query parameters
2128
+ query_params = opts[:query_params] || {}
2129
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2130
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2131
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2132
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2133
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2134
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2135
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2136
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2137
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2138
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2139
+
2140
+ # header parameters
2141
+ header_params = opts[:header_params] || {}
2142
+ # HTTP header 'Accept' (if needed)
2143
+ header_params['Accept'] =
2144
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2145
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2146
+
2147
+ # form parameters
2148
+ form_params = opts[:form_params] || {}
2149
+
2150
+ # http body (model)
2151
+ post_body = opts[:debug_body]
2152
+
2153
+ # return_type
2154
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2155
+
2156
+ # auth_names
2157
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2158
+
2159
+ new_options = opts.merge(
2160
+ operation: :'BatchV1Api.watch_batch_v1_cron_job_list_for_all_namespaces',
2161
+ header_params:,
2162
+ query_params:,
2163
+ form_params:,
2164
+ body: post_body,
2165
+ auth_names:,
2166
+ return_type:
2167
+ )
2168
+
2169
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2170
+ if @api_client.config.debugging
2171
+ @api_client.config.logger.debug "API called: BatchV1Api#watch_batch_v1_cron_job_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2172
+ end
2173
+ [data, status_code, headers]
2174
+ end
2175
+
2176
+ # watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list operation instead.
2177
+ # @param [Hash] opts the optional parameters
2178
+ # @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.
2179
+ # @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.
2180
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2181
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2182
+ # @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.
2183
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2184
+ # @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
2185
+ # @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
2186
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2187
+ # @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.
2188
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2189
+ def watch_batch_v1_job_list_for_all_namespaces(opts = {})
2190
+ data, _status_code, _headers = watch_batch_v1_job_list_for_all_namespaces_with_http_info(opts)
2191
+ data
2192
+ end
2193
+
2194
+ # watch individual changes to a list of Job. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
2195
+ # @param [Hash] opts the optional parameters
2196
+ # @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.
2197
+ # @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.
2198
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2199
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2200
+ # @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.
2201
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2202
+ # @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
2203
+ # @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
2204
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2205
+ # @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.
2206
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2207
+ def watch_batch_v1_job_list_for_all_namespaces_with_http_info(opts = {})
2208
+ if @api_client.config.debugging
2209
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.watch_batch_v1_job_list_for_all_namespaces ...'
2210
+ end
2211
+ # resource path
2212
+ local_var_path = '/apis/batch/v1/watch/jobs'
2213
+
2214
+ # query parameters
2215
+ query_params = opts[:query_params] || {}
2216
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2217
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2218
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2219
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2220
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2221
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2222
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2223
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2224
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2225
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2226
+
2227
+ # header parameters
2228
+ header_params = opts[:header_params] || {}
2229
+ # HTTP header 'Accept' (if needed)
2230
+ header_params['Accept'] =
2231
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2232
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2233
+
2234
+ # form parameters
2235
+ form_params = opts[:form_params] || {}
2236
+
2237
+ # http body (model)
2238
+ post_body = opts[:debug_body]
2239
+
2240
+ # return_type
2241
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2242
+
2243
+ # auth_names
2244
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2245
+
2246
+ new_options = opts.merge(
2247
+ operation: :'BatchV1Api.watch_batch_v1_job_list_for_all_namespaces',
2248
+ header_params:,
2249
+ query_params:,
2250
+ form_params:,
2251
+ body: post_body,
2252
+ auth_names:,
2253
+ return_type:
2254
+ )
2255
+
2256
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2257
+ if @api_client.config.debugging
2258
+ @api_client.config.logger.debug "API called: BatchV1Api#watch_batch_v1_job_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2259
+ end
2260
+ [data, status_code, headers]
2261
+ end
2262
+
2263
+ # watch changes to an object of kind CronJob. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
2264
+ # @param name [String] name of the CronJob
2265
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2266
+ # @param [Hash] opts the optional parameters
2267
+ # @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.
2268
+ # @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.
2269
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2270
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2271
+ # @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.
2272
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2273
+ # @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
2274
+ # @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
2275
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2276
+ # @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.
2277
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2278
+ def watch_batch_v1_namespaced_cron_job(name, namespace, opts = {})
2279
+ data, _status_code, _headers = watch_batch_v1_namespaced_cron_job_with_http_info(name, namespace, opts)
2280
+ data
2281
+ end
2282
+
2283
+ # watch changes to an object of kind CronJob. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
2284
+ # @param name [String] name of the CronJob
2285
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2286
+ # @param [Hash] opts the optional parameters
2287
+ # @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.
2288
+ # @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.
2289
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2290
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2291
+ # @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.
2292
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2293
+ # @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
2294
+ # @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
2295
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2296
+ # @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.
2297
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2298
+ def watch_batch_v1_namespaced_cron_job_with_http_info(name, namespace, opts = {})
2299
+ if @api_client.config.debugging
2300
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.watch_batch_v1_namespaced_cron_job ...'
2301
+ end
2302
+ # verify the required parameter 'name' is set
2303
+ if @api_client.config.client_side_validation && name.nil?
2304
+ raise ArgumentError,
2305
+ "Missing the required parameter 'name' when calling BatchV1Api.watch_batch_v1_namespaced_cron_job"
2306
+ end
2307
+ # verify the required parameter 'namespace' is set
2308
+ if @api_client.config.client_side_validation && namespace.nil?
2309
+ raise ArgumentError,
2310
+ "Missing the required parameter 'namespace' when calling BatchV1Api.watch_batch_v1_namespaced_cron_job"
2311
+ end
2312
+
2313
+ # resource path
2314
+ local_var_path = '/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
2315
+ '{namespace}', CGI.escape(namespace.to_s)
2316
+ )
2317
+
2318
+ # query parameters
2319
+ query_params = opts[:query_params] || {}
2320
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2321
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2322
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2323
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2324
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2325
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2326
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2327
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2328
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2329
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2330
+
2331
+ # header parameters
2332
+ header_params = opts[:header_params] || {}
2333
+ # HTTP header 'Accept' (if needed)
2334
+ header_params['Accept'] =
2335
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2336
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2337
+
2338
+ # form parameters
2339
+ form_params = opts[:form_params] || {}
2340
+
2341
+ # http body (model)
2342
+ post_body = opts[:debug_body]
2343
+
2344
+ # return_type
2345
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2346
+
2347
+ # auth_names
2348
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2349
+
2350
+ new_options = opts.merge(
2351
+ operation: :'BatchV1Api.watch_batch_v1_namespaced_cron_job',
2352
+ header_params:,
2353
+ query_params:,
2354
+ form_params:,
2355
+ body: post_body,
2356
+ auth_names:,
2357
+ return_type:
2358
+ )
2359
+
2360
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2361
+ if @api_client.config.debugging
2362
+ @api_client.config.logger.debug "API called: BatchV1Api#watch_batch_v1_namespaced_cron_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2363
+ end
2364
+ [data, status_code, headers]
2365
+ end
2366
+
2367
+ # watch individual changes to a list of CronJob. deprecated: use the 'watch' parameter with a list operation instead.
2368
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2369
+ # @param [Hash] opts the optional parameters
2370
+ # @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.
2371
+ # @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.
2372
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2373
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2374
+ # @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.
2375
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2376
+ # @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
2377
+ # @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
2378
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2379
+ # @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.
2380
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2381
+ def watch_batch_v1_namespaced_cron_job_list(namespace, opts = {})
2382
+ data, _status_code, _headers = watch_batch_v1_namespaced_cron_job_list_with_http_info(namespace, opts)
2383
+ data
2384
+ end
2385
+
2386
+ # watch individual changes to a list of CronJob. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
2387
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2388
+ # @param [Hash] opts the optional parameters
2389
+ # @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.
2390
+ # @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.
2391
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2392
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2393
+ # @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.
2394
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2395
+ # @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
2396
+ # @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
2397
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2398
+ # @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.
2399
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2400
+ def watch_batch_v1_namespaced_cron_job_list_with_http_info(namespace, opts = {})
2401
+ if @api_client.config.debugging
2402
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.watch_batch_v1_namespaced_cron_job_list ...'
2403
+ end
2404
+ # verify the required parameter 'namespace' is set
2405
+ if @api_client.config.client_side_validation && namespace.nil?
2406
+ raise ArgumentError,
2407
+ "Missing the required parameter 'namespace' when calling BatchV1Api.watch_batch_v1_namespaced_cron_job_list"
2408
+ end
2409
+
2410
+ # resource path
2411
+ local_var_path = '/apis/batch/v1/watch/namespaces/{namespace}/cronjobs'.sub('{namespace}',
2412
+ CGI.escape(namespace.to_s))
2413
+
2414
+ # query parameters
2415
+ query_params = opts[:query_params] || {}
2416
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2417
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2418
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2419
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2420
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2421
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2422
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2423
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2424
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2425
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2426
+
2427
+ # header parameters
2428
+ header_params = opts[:header_params] || {}
2429
+ # HTTP header 'Accept' (if needed)
2430
+ header_params['Accept'] =
2431
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2432
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2433
+
2434
+ # form parameters
2435
+ form_params = opts[:form_params] || {}
2436
+
2437
+ # http body (model)
2438
+ post_body = opts[:debug_body]
2439
+
2440
+ # return_type
2441
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2442
+
2443
+ # auth_names
2444
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2445
+
2446
+ new_options = opts.merge(
2447
+ operation: :'BatchV1Api.watch_batch_v1_namespaced_cron_job_list',
2448
+ header_params:,
2449
+ query_params:,
2450
+ form_params:,
2451
+ body: post_body,
2452
+ auth_names:,
2453
+ return_type:
2454
+ )
2455
+
2456
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2457
+ if @api_client.config.debugging
2458
+ @api_client.config.logger.debug "API called: BatchV1Api#watch_batch_v1_namespaced_cron_job_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2459
+ end
2460
+ [data, status_code, headers]
2461
+ end
2462
+
2463
+ # watch changes to an object of kind Job. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
2464
+ # @param name [String] name of the Job
2465
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2466
+ # @param [Hash] opts the optional parameters
2467
+ # @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.
2468
+ # @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.
2469
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2470
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2471
+ # @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.
2472
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2473
+ # @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
2474
+ # @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
2475
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2476
+ # @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.
2477
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2478
+ def watch_batch_v1_namespaced_job(name, namespace, opts = {})
2479
+ data, _status_code, _headers = watch_batch_v1_namespaced_job_with_http_info(name, namespace, opts)
2480
+ data
2481
+ end
2482
+
2483
+ # watch changes to an object of kind Job. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
2484
+ # @param name [String] name of the Job
2485
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2486
+ # @param [Hash] opts the optional parameters
2487
+ # @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.
2488
+ # @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.
2489
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2490
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2491
+ # @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.
2492
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2493
+ # @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
2494
+ # @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
2495
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2496
+ # @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.
2497
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2498
+ def watch_batch_v1_namespaced_job_with_http_info(name, namespace, opts = {})
2499
+ if @api_client.config.debugging
2500
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.watch_batch_v1_namespaced_job ...'
2501
+ end
2502
+ # verify the required parameter 'name' is set
2503
+ if @api_client.config.client_side_validation && name.nil?
2504
+ raise ArgumentError,
2505
+ "Missing the required parameter 'name' when calling BatchV1Api.watch_batch_v1_namespaced_job"
2506
+ end
2507
+ # verify the required parameter 'namespace' is set
2508
+ if @api_client.config.client_side_validation && namespace.nil?
2509
+ raise ArgumentError,
2510
+ "Missing the required parameter 'namespace' when calling BatchV1Api.watch_batch_v1_namespaced_job"
2511
+ end
2512
+
2513
+ # resource path
2514
+ local_var_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
2515
+ '{namespace}', CGI.escape(namespace.to_s)
2516
+ )
2517
+
2518
+ # query parameters
2519
+ query_params = opts[:query_params] || {}
2520
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2521
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2522
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2523
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2524
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2525
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2526
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2527
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2528
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2529
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2530
+
2531
+ # header parameters
2532
+ header_params = opts[:header_params] || {}
2533
+ # HTTP header 'Accept' (if needed)
2534
+ header_params['Accept'] =
2535
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2536
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2537
+
2538
+ # form parameters
2539
+ form_params = opts[:form_params] || {}
2540
+
2541
+ # http body (model)
2542
+ post_body = opts[:debug_body]
2543
+
2544
+ # return_type
2545
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2546
+
2547
+ # auth_names
2548
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2549
+
2550
+ new_options = opts.merge(
2551
+ operation: :'BatchV1Api.watch_batch_v1_namespaced_job',
2552
+ header_params:,
2553
+ query_params:,
2554
+ form_params:,
2555
+ body: post_body,
2556
+ auth_names:,
2557
+ return_type:
2558
+ )
2559
+
2560
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2561
+ if @api_client.config.debugging
2562
+ @api_client.config.logger.debug "API called: BatchV1Api#watch_batch_v1_namespaced_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2563
+ end
2564
+ [data, status_code, headers]
2565
+ end
2566
+
2567
+ # watch individual changes to a list of Job. deprecated: use the 'watch' parameter with a list operation instead.
2568
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2569
+ # @param [Hash] opts the optional parameters
2570
+ # @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.
2571
+ # @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.
2572
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2573
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2574
+ # @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.
2575
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2576
+ # @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
2577
+ # @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
2578
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2579
+ # @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.
2580
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2581
+ def watch_batch_v1_namespaced_job_list(namespace, opts = {})
2582
+ data, _status_code, _headers = watch_batch_v1_namespaced_job_list_with_http_info(namespace, opts)
2583
+ data
2584
+ end
2585
+
2586
+ # watch individual changes to a list of Job. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
2587
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2588
+ # @param [Hash] opts the optional parameters
2589
+ # @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.
2590
+ # @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.
2591
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2592
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2593
+ # @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.
2594
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2595
+ # @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
2596
+ # @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
2597
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2598
+ # @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.
2599
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2600
+ def watch_batch_v1_namespaced_job_list_with_http_info(namespace, opts = {})
2601
+ if @api_client.config.debugging
2602
+ @api_client.config.logger.debug 'Calling API: BatchV1Api.watch_batch_v1_namespaced_job_list ...'
2603
+ end
2604
+ # verify the required parameter 'namespace' is set
2605
+ if @api_client.config.client_side_validation && namespace.nil?
2606
+ raise ArgumentError,
2607
+ "Missing the required parameter 'namespace' when calling BatchV1Api.watch_batch_v1_namespaced_job_list"
2608
+ end
2609
+
2610
+ # resource path
2611
+ local_var_path = '/apis/batch/v1/watch/namespaces/{namespace}/jobs'.sub('{namespace}',
2612
+ CGI.escape(namespace.to_s))
2613
+
2614
+ # query parameters
2615
+ query_params = opts[:query_params] || {}
2616
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2617
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2618
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2619
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2620
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2621
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2622
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2623
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2624
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2625
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2626
+
2627
+ # header parameters
2628
+ header_params = opts[:header_params] || {}
2629
+ # HTTP header 'Accept' (if needed)
2630
+ header_params['Accept'] =
2631
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2632
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2633
+
2634
+ # form parameters
2635
+ form_params = opts[:form_params] || {}
2636
+
2637
+ # http body (model)
2638
+ post_body = opts[:debug_body]
2639
+
2640
+ # return_type
2641
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2642
+
2643
+ # auth_names
2644
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2645
+
2646
+ new_options = opts.merge(
2647
+ operation: :'BatchV1Api.watch_batch_v1_namespaced_job_list',
2648
+ header_params:,
2649
+ query_params:,
2650
+ form_params:,
2651
+ body: post_body,
2652
+ auth_names:,
2653
+ return_type:
2654
+ )
2655
+
2656
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2657
+ if @api_client.config.debugging
2658
+ @api_client.config.logger.debug "API called: BatchV1Api#watch_batch_v1_namespaced_job_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2659
+ end
2660
+ [data, status_code, headers]
2661
+ end
2662
+ end
2663
+ end