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,1382 @@
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 PolicyV1Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # create a PodDisruptionBudget
24
+ # @param namespace [String] object name and auth scope, such as for teams and projects
25
+ # @param body [IoK8sApiPolicyV1PodDisruptionBudget]
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 [IoK8sApiPolicyV1PodDisruptionBudget]
32
+ def create_policy_v1_namespaced_pod_disruption_budget(namespace, body, opts = {})
33
+ data, _status_code, _headers = create_policy_v1_namespaced_pod_disruption_budget_with_http_info(namespace, body,
34
+ opts)
35
+ data
36
+ end
37
+
38
+ # create a PodDisruptionBudget
39
+ # @param namespace [String] object name and auth scope, such as for teams and projects
40
+ # @param body [IoK8sApiPolicyV1PodDisruptionBudget]
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
43
+ # @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
44
+ # @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.
45
+ # @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.
46
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudget, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudget data, response status code and response headers
47
+ def create_policy_v1_namespaced_pod_disruption_budget_with_http_info(namespace, body, opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.create_policy_v1_namespaced_pod_disruption_budget ...'
50
+ end
51
+ # verify the required parameter 'namespace' is set
52
+ if @api_client.config.client_side_validation && namespace.nil?
53
+ raise ArgumentError,
54
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.create_policy_v1_namespaced_pod_disruption_budget"
55
+ end
56
+ # verify the required parameter 'body' is set
57
+ if @api_client.config.client_side_validation && body.nil?
58
+ raise ArgumentError,
59
+ "Missing the required parameter 'body' when calling PolicyV1Api.create_policy_v1_namespaced_pod_disruption_budget"
60
+ end
61
+
62
+ # resource path
63
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets'.sub('{namespace}',
64
+ CGI.escape(namespace.to_s))
65
+
66
+ # query parameters
67
+ query_params = opts[:query_params] || {}
68
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
69
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
70
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
71
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
72
+
73
+ # header parameters
74
+ header_params = opts[:header_params] || {}
75
+ # HTTP header 'Accept' (if needed)
76
+ header_params['Accept'] =
77
+ @api_client.select_header_accept(['application/json', 'application/yaml',
78
+ 'application/vnd.kubernetes.protobuf'])
79
+
80
+ # form parameters
81
+ form_params = opts[:form_params] || {}
82
+
83
+ # http body (model)
84
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
85
+
86
+ # return_type
87
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudget'
88
+
89
+ # auth_names
90
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
91
+
92
+ new_options = opts.merge(
93
+ operation: :'PolicyV1Api.create_policy_v1_namespaced_pod_disruption_budget',
94
+ header_params:,
95
+ query_params:,
96
+ form_params:,
97
+ body: post_body,
98
+ auth_names:,
99
+ return_type:
100
+ )
101
+
102
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug "API called: PolicyV1Api#create_policy_v1_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
+ end
106
+ [data, status_code, headers]
107
+ end
108
+
109
+ # delete collection of PodDisruptionBudget
110
+ # @param namespace [String] object name and auth scope, such as for teams and projects
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] :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.
114
+ # @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
115
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
116
+ # @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.
117
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
118
+ # @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.
119
+ # @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.
120
+ # @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.
121
+ # @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
122
+ # @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
123
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
124
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
125
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
126
+ def delete_policy_v1_collection_namespaced_pod_disruption_budget(namespace, opts = {})
127
+ data, _status_code, _headers = delete_policy_v1_collection_namespaced_pod_disruption_budget_with_http_info(
128
+ namespace, opts
129
+ )
130
+ data
131
+ end
132
+
133
+ # delete collection of PodDisruptionBudget
134
+ # @param namespace [String] object name and auth scope, such as for teams and projects
135
+ # @param [Hash] opts the optional parameters
136
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
137
+ # @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.
138
+ # @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
139
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
140
+ # @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.
141
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
142
+ # @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.
143
+ # @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.
144
+ # @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.
145
+ # @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
146
+ # @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
147
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
148
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
149
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
150
+ def delete_policy_v1_collection_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {})
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.delete_policy_v1_collection_namespaced_pod_disruption_budget ...'
153
+ end
154
+ # verify the required parameter 'namespace' is set
155
+ if @api_client.config.client_side_validation && namespace.nil?
156
+ raise ArgumentError,
157
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.delete_policy_v1_collection_namespaced_pod_disruption_budget"
158
+ end
159
+
160
+ # resource path
161
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets'.sub('{namespace}',
162
+ CGI.escape(namespace.to_s))
163
+
164
+ # query parameters
165
+ query_params = opts[:query_params] || {}
166
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
167
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
168
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
169
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
170
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
171
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
172
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
173
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
174
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
175
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
176
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
177
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
178
+
179
+ # header parameters
180
+ header_params = opts[:header_params] || {}
181
+ # HTTP header 'Accept' (if needed)
182
+ header_params['Accept'] =
183
+ @api_client.select_header_accept(['application/json', 'application/yaml',
184
+ 'application/vnd.kubernetes.protobuf'])
185
+
186
+ # form parameters
187
+ form_params = opts[:form_params] || {}
188
+
189
+ # http body (model)
190
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
191
+
192
+ # return_type
193
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
194
+
195
+ # auth_names
196
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
197
+
198
+ new_options = opts.merge(
199
+ operation: :'PolicyV1Api.delete_policy_v1_collection_namespaced_pod_disruption_budget',
200
+ header_params:,
201
+ query_params:,
202
+ form_params:,
203
+ body: post_body,
204
+ auth_names:,
205
+ return_type:
206
+ )
207
+
208
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
209
+ if @api_client.config.debugging
210
+ @api_client.config.logger.debug "API called: PolicyV1Api#delete_policy_v1_collection_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
211
+ end
212
+ [data, status_code, headers]
213
+ end
214
+
215
+ # delete a PodDisruptionBudget
216
+ # @param name [String] name of the PodDisruptionBudget
217
+ # @param namespace [String] object name and auth scope, such as for teams and projects
218
+ # @param [Hash] opts the optional parameters
219
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
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 [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.
222
+ # @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.
223
+ # @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.
224
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
225
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
226
+ def delete_policy_v1_namespaced_pod_disruption_budget(name, namespace, opts = {})
227
+ data, _status_code, _headers = delete_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace,
228
+ opts)
229
+ data
230
+ end
231
+
232
+ # delete a PodDisruptionBudget
233
+ # @param name [String] name of the PodDisruptionBudget
234
+ # @param namespace [String] object name and auth scope, such as for teams and projects
235
+ # @param [Hash] opts the optional parameters
236
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
237
+ # @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
238
+ # @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.
239
+ # @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.
240
+ # @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.
241
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
242
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
243
+ def delete_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {})
244
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.delete_policy_v1_namespaced_pod_disruption_budget ...'
246
+ end
247
+ # verify the required parameter 'name' is set
248
+ if @api_client.config.client_side_validation && name.nil?
249
+ raise ArgumentError,
250
+ "Missing the required parameter 'name' when calling PolicyV1Api.delete_policy_v1_namespaced_pod_disruption_budget"
251
+ end
252
+ # verify the required parameter 'namespace' is set
253
+ if @api_client.config.client_side_validation && namespace.nil?
254
+ raise ArgumentError,
255
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.delete_policy_v1_namespaced_pod_disruption_budget"
256
+ end
257
+
258
+ # resource path
259
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
260
+ '{namespace}', CGI.escape(namespace.to_s)
261
+ )
262
+
263
+ # query parameters
264
+ query_params = opts[:query_params] || {}
265
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
266
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
267
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
268
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
269
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
270
+
271
+ # header parameters
272
+ header_params = opts[:header_params] || {}
273
+ # HTTP header 'Accept' (if needed)
274
+ header_params['Accept'] =
275
+ @api_client.select_header_accept(['application/json', 'application/yaml',
276
+ 'application/vnd.kubernetes.protobuf'])
277
+
278
+ # form parameters
279
+ form_params = opts[:form_params] || {}
280
+
281
+ # http body (model)
282
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
283
+
284
+ # return_type
285
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
286
+
287
+ # auth_names
288
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
289
+
290
+ new_options = opts.merge(
291
+ operation: :'PolicyV1Api.delete_policy_v1_namespaced_pod_disruption_budget',
292
+ header_params:,
293
+ query_params:,
294
+ form_params:,
295
+ body: post_body,
296
+ auth_names:,
297
+ return_type:
298
+ )
299
+
300
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug "API called: PolicyV1Api#delete_policy_v1_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
303
+ end
304
+ [data, status_code, headers]
305
+ end
306
+
307
+ # get available resources
308
+ # @param [Hash] opts the optional parameters
309
+ # @return [IoK8sApimachineryPkgApisMetaV1APIResourceList]
310
+ def get_policy_v1_api_resources(opts = {})
311
+ data, _status_code, _headers = get_policy_v1_api_resources_with_http_info(opts)
312
+ data
313
+ end
314
+
315
+ # get available resources
316
+ # @param [Hash] opts the optional parameters
317
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1APIResourceList, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1APIResourceList data, response status code and response headers
318
+ def get_policy_v1_api_resources_with_http_info(opts = {})
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.get_policy_v1_api_resources ...'
321
+ end
322
+ # resource path
323
+ local_var_path = '/apis/policy/v1/'
324
+
325
+ # query parameters
326
+ query_params = opts[:query_params] || {}
327
+
328
+ # header parameters
329
+ header_params = opts[:header_params] || {}
330
+ # HTTP header 'Accept' (if needed)
331
+ header_params['Accept'] =
332
+ @api_client.select_header_accept(['application/json', 'application/yaml',
333
+ 'application/vnd.kubernetes.protobuf'])
334
+
335
+ # form parameters
336
+ form_params = opts[:form_params] || {}
337
+
338
+ # http body (model)
339
+ post_body = opts[:debug_body]
340
+
341
+ # return_type
342
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1APIResourceList'
343
+
344
+ # auth_names
345
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
346
+
347
+ new_options = opts.merge(
348
+ operation: :'PolicyV1Api.get_policy_v1_api_resources',
349
+ header_params:,
350
+ query_params:,
351
+ form_params:,
352
+ body: post_body,
353
+ auth_names:,
354
+ return_type:
355
+ )
356
+
357
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
358
+ if @api_client.config.debugging
359
+ @api_client.config.logger.debug "API called: PolicyV1Api#get_policy_v1_api_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
360
+ end
361
+ [data, status_code, headers]
362
+ end
363
+
364
+ # list or watch objects of kind PodDisruptionBudget
365
+ # @param namespace [String] object name and auth scope, such as for teams and projects
366
+ # @param [Hash] opts the optional parameters
367
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
368
+ # @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.
369
+ # @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.
370
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
371
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
372
+ # @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.
373
+ # @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
374
+ # @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
375
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
376
+ # @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.
377
+ # @return [IoK8sApiPolicyV1PodDisruptionBudgetList]
378
+ def list_policy_v1_namespaced_pod_disruption_budget(namespace, opts = {})
379
+ data, _status_code, _headers = list_policy_v1_namespaced_pod_disruption_budget_with_http_info(namespace, opts)
380
+ data
381
+ end
382
+
383
+ # list or watch objects of kind PodDisruptionBudget
384
+ # @param namespace [String] object name and auth scope, such as for teams and projects
385
+ # @param [Hash] opts the optional parameters
386
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
387
+ # @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.
388
+ # @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.
389
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
390
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
391
+ # @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.
392
+ # @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
393
+ # @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
394
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
395
+ # @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.
396
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudgetList, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudgetList data, response status code and response headers
397
+ def list_policy_v1_namespaced_pod_disruption_budget_with_http_info(namespace, opts = {})
398
+ if @api_client.config.debugging
399
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.list_policy_v1_namespaced_pod_disruption_budget ...'
400
+ end
401
+ # verify the required parameter 'namespace' is set
402
+ if @api_client.config.client_side_validation && namespace.nil?
403
+ raise ArgumentError,
404
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.list_policy_v1_namespaced_pod_disruption_budget"
405
+ end
406
+
407
+ # resource path
408
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets'.sub('{namespace}',
409
+ CGI.escape(namespace.to_s))
410
+
411
+ # query parameters
412
+ query_params = opts[:query_params] || {}
413
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
414
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
415
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
416
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
417
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
418
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
419
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
420
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
421
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
422
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
423
+
424
+ # header parameters
425
+ header_params = opts[:header_params] || {}
426
+ # HTTP header 'Accept' (if needed)
427
+ header_params['Accept'] =
428
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
429
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
430
+
431
+ # form parameters
432
+ form_params = opts[:form_params] || {}
433
+
434
+ # http body (model)
435
+ post_body = opts[:debug_body]
436
+
437
+ # return_type
438
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudgetList'
439
+
440
+ # auth_names
441
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
442
+
443
+ new_options = opts.merge(
444
+ operation: :'PolicyV1Api.list_policy_v1_namespaced_pod_disruption_budget',
445
+ header_params:,
446
+ query_params:,
447
+ form_params:,
448
+ body: post_body,
449
+ auth_names:,
450
+ return_type:
451
+ )
452
+
453
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
454
+ if @api_client.config.debugging
455
+ @api_client.config.logger.debug "API called: PolicyV1Api#list_policy_v1_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
456
+ end
457
+ [data, status_code, headers]
458
+ end
459
+
460
+ # list or watch objects of kind PodDisruptionBudget
461
+ # @param [Hash] opts the optional parameters
462
+ # @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.
463
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
464
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
465
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
466
+ # @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.
467
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
468
+ # @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
469
+ # @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
470
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
471
+ # @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.
472
+ # @return [IoK8sApiPolicyV1PodDisruptionBudgetList]
473
+ def list_policy_v1_pod_disruption_budget_for_all_namespaces(opts = {})
474
+ data, _status_code, _headers = list_policy_v1_pod_disruption_budget_for_all_namespaces_with_http_info(opts)
475
+ data
476
+ end
477
+
478
+ # list or watch objects of kind PodDisruptionBudget
479
+ # @param [Hash] opts the optional parameters
480
+ # @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.
481
+ # @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.
482
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
483
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
484
+ # @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.
485
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
486
+ # @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
487
+ # @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
488
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
489
+ # @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.
490
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudgetList, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudgetList data, response status code and response headers
491
+ def list_policy_v1_pod_disruption_budget_for_all_namespaces_with_http_info(opts = {})
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.list_policy_v1_pod_disruption_budget_for_all_namespaces ...'
494
+ end
495
+ # resource path
496
+ local_var_path = '/apis/policy/v1/poddisruptionbudgets'
497
+
498
+ # query parameters
499
+ query_params = opts[:query_params] || {}
500
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
501
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
502
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
503
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
504
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
505
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
506
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
507
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
508
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
509
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
510
+
511
+ # header parameters
512
+ header_params = opts[:header_params] || {}
513
+ # HTTP header 'Accept' (if needed)
514
+ header_params['Accept'] =
515
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
516
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
517
+
518
+ # form parameters
519
+ form_params = opts[:form_params] || {}
520
+
521
+ # http body (model)
522
+ post_body = opts[:debug_body]
523
+
524
+ # return_type
525
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudgetList'
526
+
527
+ # auth_names
528
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
529
+
530
+ new_options = opts.merge(
531
+ operation: :'PolicyV1Api.list_policy_v1_pod_disruption_budget_for_all_namespaces',
532
+ header_params:,
533
+ query_params:,
534
+ form_params:,
535
+ body: post_body,
536
+ auth_names:,
537
+ return_type:
538
+ )
539
+
540
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
541
+ if @api_client.config.debugging
542
+ @api_client.config.logger.debug "API called: PolicyV1Api#list_policy_v1_pod_disruption_budget_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
543
+ end
544
+ [data, status_code, headers]
545
+ end
546
+
547
+ # partially update the specified PodDisruptionBudget
548
+ # @param name [String] name of the PodDisruptionBudget
549
+ # @param namespace [String] object name and auth scope, such as for teams and projects
550
+ # @param body [Object]
551
+ # @param [Hash] opts the optional parameters
552
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
553
+ # @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
554
+ # @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).
555
+ # @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.
556
+ # @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.
557
+ # @return [IoK8sApiPolicyV1PodDisruptionBudget]
558
+ def patch_policy_v1_namespaced_pod_disruption_budget(name, namespace, body, opts = {})
559
+ data, _status_code, _headers = patch_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace,
560
+ body, opts)
561
+ data
562
+ end
563
+
564
+ # partially update the specified PodDisruptionBudget
565
+ # @param name [String] name of the PodDisruptionBudget
566
+ # @param namespace [String] object name and auth scope, such as for teams and projects
567
+ # @param body [Object]
568
+ # @param [Hash] opts the optional parameters
569
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
570
+ # @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
571
+ # @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).
572
+ # @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.
573
+ # @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.
574
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudget, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudget data, response status code and response headers
575
+ def patch_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {})
576
+ if @api_client.config.debugging
577
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget ...'
578
+ end
579
+ # verify the required parameter 'name' is set
580
+ if @api_client.config.client_side_validation && name.nil?
581
+ raise ArgumentError,
582
+ "Missing the required parameter 'name' when calling PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget"
583
+ end
584
+ # verify the required parameter 'namespace' is set
585
+ if @api_client.config.client_side_validation && namespace.nil?
586
+ raise ArgumentError,
587
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget"
588
+ end
589
+ # verify the required parameter 'body' is set
590
+ if @api_client.config.client_side_validation && body.nil?
591
+ raise ArgumentError,
592
+ "Missing the required parameter 'body' when calling PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget"
593
+ end
594
+
595
+ # resource path
596
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
597
+ '{namespace}', CGI.escape(namespace.to_s)
598
+ )
599
+
600
+ # query parameters
601
+ query_params = opts[:query_params] || {}
602
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
603
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
604
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
605
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
606
+ query_params[:force] = opts[:force] unless opts[:force].nil?
607
+
608
+ # header parameters
609
+ header_params = opts[:header_params] || {}
610
+ # HTTP header 'Accept' (if needed)
611
+ header_params['Accept'] =
612
+ @api_client.select_header_accept(['application/json', 'application/yaml',
613
+ 'application/vnd.kubernetes.protobuf'])
614
+ # HTTP header 'Content-Type'
615
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
616
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
617
+ header_params['Content-Type'] = content_type unless content_type.nil?
618
+
619
+ # form parameters
620
+ form_params = opts[:form_params] || {}
621
+
622
+ # http body (model)
623
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
624
+
625
+ # return_type
626
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudget'
627
+
628
+ # auth_names
629
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
630
+
631
+ new_options = opts.merge(
632
+ operation: :'PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget',
633
+ header_params:,
634
+ query_params:,
635
+ form_params:,
636
+ body: post_body,
637
+ auth_names:,
638
+ return_type:
639
+ )
640
+
641
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
642
+ if @api_client.config.debugging
643
+ @api_client.config.logger.debug "API called: PolicyV1Api#patch_policy_v1_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
644
+ end
645
+ [data, status_code, headers]
646
+ end
647
+
648
+ # partially update status of the specified PodDisruptionBudget
649
+ # @param name [String] name of the PodDisruptionBudget
650
+ # @param namespace [String] object name and auth scope, such as for teams and projects
651
+ # @param body [Object]
652
+ # @param [Hash] opts the optional parameters
653
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
654
+ # @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
655
+ # @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).
656
+ # @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.
657
+ # @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.
658
+ # @return [IoK8sApiPolicyV1PodDisruptionBudget]
659
+ def patch_policy_v1_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {})
660
+ data, _status_code, _headers = patch_policy_v1_namespaced_pod_disruption_budget_status_with_http_info(name,
661
+ namespace, body, opts)
662
+ data
663
+ end
664
+
665
+ # partially update status of the specified PodDisruptionBudget
666
+ # @param name [String] name of the PodDisruptionBudget
667
+ # @param namespace [String] object name and auth scope, such as for teams and projects
668
+ # @param body [Object]
669
+ # @param [Hash] opts the optional parameters
670
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
671
+ # @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
672
+ # @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).
673
+ # @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.
674
+ # @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.
675
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudget, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudget data, response status code and response headers
676
+ def patch_policy_v1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {})
677
+ if @api_client.config.debugging
678
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget_status ...'
679
+ end
680
+ # verify the required parameter 'name' is set
681
+ if @api_client.config.client_side_validation && name.nil?
682
+ raise ArgumentError,
683
+ "Missing the required parameter 'name' when calling PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget_status"
684
+ end
685
+ # verify the required parameter 'namespace' is set
686
+ if @api_client.config.client_side_validation && namespace.nil?
687
+ raise ArgumentError,
688
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget_status"
689
+ end
690
+ # verify the required parameter 'body' is set
691
+ if @api_client.config.client_side_validation && body.nil?
692
+ raise ArgumentError,
693
+ "Missing the required parameter 'body' when calling PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget_status"
694
+ end
695
+
696
+ # resource path
697
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
698
+ '{namespace}', CGI.escape(namespace.to_s)
699
+ )
700
+
701
+ # query parameters
702
+ query_params = opts[:query_params] || {}
703
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
704
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
705
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
706
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
707
+ query_params[:force] = opts[:force] unless opts[:force].nil?
708
+
709
+ # header parameters
710
+ header_params = opts[:header_params] || {}
711
+ # HTTP header 'Accept' (if needed)
712
+ header_params['Accept'] =
713
+ @api_client.select_header_accept(['application/json', 'application/yaml',
714
+ 'application/vnd.kubernetes.protobuf'])
715
+ # HTTP header 'Content-Type'
716
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
717
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
718
+ header_params['Content-Type'] = content_type unless content_type.nil?
719
+
720
+ # form parameters
721
+ form_params = opts[:form_params] || {}
722
+
723
+ # http body (model)
724
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
725
+
726
+ # return_type
727
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudget'
728
+
729
+ # auth_names
730
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
731
+
732
+ new_options = opts.merge(
733
+ operation: :'PolicyV1Api.patch_policy_v1_namespaced_pod_disruption_budget_status',
734
+ header_params:,
735
+ query_params:,
736
+ form_params:,
737
+ body: post_body,
738
+ auth_names:,
739
+ return_type:
740
+ )
741
+
742
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
743
+ if @api_client.config.debugging
744
+ @api_client.config.logger.debug "API called: PolicyV1Api#patch_policy_v1_namespaced_pod_disruption_budget_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
745
+ end
746
+ [data, status_code, headers]
747
+ end
748
+
749
+ # read the specified PodDisruptionBudget
750
+ # @param name [String] name of the PodDisruptionBudget
751
+ # @param namespace [String] object name and auth scope, such as for teams and projects
752
+ # @param [Hash] opts the optional parameters
753
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
754
+ # @return [IoK8sApiPolicyV1PodDisruptionBudget]
755
+ def read_policy_v1_namespaced_pod_disruption_budget(name, namespace, opts = {})
756
+ data, _status_code, _headers = read_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace,
757
+ opts)
758
+ data
759
+ end
760
+
761
+ # read the specified PodDisruptionBudget
762
+ # @param name [String] name of the PodDisruptionBudget
763
+ # @param namespace [String] object name and auth scope, such as for teams and projects
764
+ # @param [Hash] opts the optional parameters
765
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
766
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudget, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudget data, response status code and response headers
767
+ def read_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {})
768
+ if @api_client.config.debugging
769
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget ...'
770
+ end
771
+ # verify the required parameter 'name' is set
772
+ if @api_client.config.client_side_validation && name.nil?
773
+ raise ArgumentError,
774
+ "Missing the required parameter 'name' when calling PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget"
775
+ end
776
+ # verify the required parameter 'namespace' is set
777
+ if @api_client.config.client_side_validation && namespace.nil?
778
+ raise ArgumentError,
779
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget"
780
+ end
781
+
782
+ # resource path
783
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
784
+ '{namespace}', CGI.escape(namespace.to_s)
785
+ )
786
+
787
+ # query parameters
788
+ query_params = opts[:query_params] || {}
789
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
790
+
791
+ # header parameters
792
+ header_params = opts[:header_params] || {}
793
+ # HTTP header 'Accept' (if needed)
794
+ header_params['Accept'] =
795
+ @api_client.select_header_accept(['application/json', 'application/yaml',
796
+ 'application/vnd.kubernetes.protobuf'])
797
+
798
+ # form parameters
799
+ form_params = opts[:form_params] || {}
800
+
801
+ # http body (model)
802
+ post_body = opts[:debug_body]
803
+
804
+ # return_type
805
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudget'
806
+
807
+ # auth_names
808
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
809
+
810
+ new_options = opts.merge(
811
+ operation: :'PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget',
812
+ header_params:,
813
+ query_params:,
814
+ form_params:,
815
+ body: post_body,
816
+ auth_names:,
817
+ return_type:
818
+ )
819
+
820
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
821
+ if @api_client.config.debugging
822
+ @api_client.config.logger.debug "API called: PolicyV1Api#read_policy_v1_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
823
+ end
824
+ [data, status_code, headers]
825
+ end
826
+
827
+ # read status of the specified PodDisruptionBudget
828
+ # @param name [String] name of the PodDisruptionBudget
829
+ # @param namespace [String] object name and auth scope, such as for teams and projects
830
+ # @param [Hash] opts the optional parameters
831
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
832
+ # @return [IoK8sApiPolicyV1PodDisruptionBudget]
833
+ def read_policy_v1_namespaced_pod_disruption_budget_status(name, namespace, opts = {})
834
+ data, _status_code, _headers = read_policy_v1_namespaced_pod_disruption_budget_status_with_http_info(name,
835
+ namespace, opts)
836
+ data
837
+ end
838
+
839
+ # read status of the specified PodDisruptionBudget
840
+ # @param name [String] name of the PodDisruptionBudget
841
+ # @param namespace [String] object name and auth scope, such as for teams and projects
842
+ # @param [Hash] opts the optional parameters
843
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
844
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudget, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudget data, response status code and response headers
845
+ def read_policy_v1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, opts = {})
846
+ if @api_client.config.debugging
847
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget_status ...'
848
+ end
849
+ # verify the required parameter 'name' is set
850
+ if @api_client.config.client_side_validation && name.nil?
851
+ raise ArgumentError,
852
+ "Missing the required parameter 'name' when calling PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget_status"
853
+ end
854
+ # verify the required parameter 'namespace' is set
855
+ if @api_client.config.client_side_validation && namespace.nil?
856
+ raise ArgumentError,
857
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget_status"
858
+ end
859
+
860
+ # resource path
861
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
862
+ '{namespace}', CGI.escape(namespace.to_s)
863
+ )
864
+
865
+ # query parameters
866
+ query_params = opts[:query_params] || {}
867
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
868
+
869
+ # header parameters
870
+ header_params = opts[:header_params] || {}
871
+ # HTTP header 'Accept' (if needed)
872
+ header_params['Accept'] =
873
+ @api_client.select_header_accept(['application/json', 'application/yaml',
874
+ 'application/vnd.kubernetes.protobuf'])
875
+
876
+ # form parameters
877
+ form_params = opts[:form_params] || {}
878
+
879
+ # http body (model)
880
+ post_body = opts[:debug_body]
881
+
882
+ # return_type
883
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudget'
884
+
885
+ # auth_names
886
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
887
+
888
+ new_options = opts.merge(
889
+ operation: :'PolicyV1Api.read_policy_v1_namespaced_pod_disruption_budget_status',
890
+ header_params:,
891
+ query_params:,
892
+ form_params:,
893
+ body: post_body,
894
+ auth_names:,
895
+ return_type:
896
+ )
897
+
898
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
899
+ if @api_client.config.debugging
900
+ @api_client.config.logger.debug "API called: PolicyV1Api#read_policy_v1_namespaced_pod_disruption_budget_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
901
+ end
902
+ [data, status_code, headers]
903
+ end
904
+
905
+ # replace the specified PodDisruptionBudget
906
+ # @param name [String] name of the PodDisruptionBudget
907
+ # @param namespace [String] object name and auth scope, such as for teams and projects
908
+ # @param body [IoK8sApiPolicyV1PodDisruptionBudget]
909
+ # @param [Hash] opts the optional parameters
910
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
911
+ # @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
912
+ # @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.
913
+ # @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.
914
+ # @return [IoK8sApiPolicyV1PodDisruptionBudget]
915
+ def replace_policy_v1_namespaced_pod_disruption_budget(name, namespace, body, opts = {})
916
+ data, _status_code, _headers = replace_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace,
917
+ body, opts)
918
+ data
919
+ end
920
+
921
+ # replace the specified PodDisruptionBudget
922
+ # @param name [String] name of the PodDisruptionBudget
923
+ # @param namespace [String] object name and auth scope, such as for teams and projects
924
+ # @param body [IoK8sApiPolicyV1PodDisruptionBudget]
925
+ # @param [Hash] opts the optional parameters
926
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
927
+ # @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
928
+ # @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.
929
+ # @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.
930
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudget, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudget data, response status code and response headers
931
+ def replace_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, opts = {})
932
+ if @api_client.config.debugging
933
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget ...'
934
+ end
935
+ # verify the required parameter 'name' is set
936
+ if @api_client.config.client_side_validation && name.nil?
937
+ raise ArgumentError,
938
+ "Missing the required parameter 'name' when calling PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget"
939
+ end
940
+ # verify the required parameter 'namespace' is set
941
+ if @api_client.config.client_side_validation && namespace.nil?
942
+ raise ArgumentError,
943
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget"
944
+ end
945
+ # verify the required parameter 'body' is set
946
+ if @api_client.config.client_side_validation && body.nil?
947
+ raise ArgumentError,
948
+ "Missing the required parameter 'body' when calling PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget"
949
+ end
950
+
951
+ # resource path
952
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
953
+ '{namespace}', CGI.escape(namespace.to_s)
954
+ )
955
+
956
+ # query parameters
957
+ query_params = opts[:query_params] || {}
958
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
959
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
960
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
961
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
962
+
963
+ # header parameters
964
+ header_params = opts[:header_params] || {}
965
+ # HTTP header 'Accept' (if needed)
966
+ header_params['Accept'] =
967
+ @api_client.select_header_accept(['application/json', 'application/yaml',
968
+ 'application/vnd.kubernetes.protobuf'])
969
+
970
+ # form parameters
971
+ form_params = opts[:form_params] || {}
972
+
973
+ # http body (model)
974
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
975
+
976
+ # return_type
977
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudget'
978
+
979
+ # auth_names
980
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
981
+
982
+ new_options = opts.merge(
983
+ operation: :'PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget',
984
+ header_params:,
985
+ query_params:,
986
+ form_params:,
987
+ body: post_body,
988
+ auth_names:,
989
+ return_type:
990
+ )
991
+
992
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
993
+ if @api_client.config.debugging
994
+ @api_client.config.logger.debug "API called: PolicyV1Api#replace_policy_v1_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
995
+ end
996
+ [data, status_code, headers]
997
+ end
998
+
999
+ # replace status of the specified PodDisruptionBudget
1000
+ # @param name [String] name of the PodDisruptionBudget
1001
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1002
+ # @param body [IoK8sApiPolicyV1PodDisruptionBudget]
1003
+ # @param [Hash] opts the optional parameters
1004
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1005
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1006
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
1007
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, 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.
1008
+ # @return [IoK8sApiPolicyV1PodDisruptionBudget]
1009
+ def replace_policy_v1_namespaced_pod_disruption_budget_status(name, namespace, body, opts = {})
1010
+ data, _status_code, _headers = replace_policy_v1_namespaced_pod_disruption_budget_status_with_http_info(name,
1011
+ namespace, body, opts)
1012
+ data
1013
+ end
1014
+
1015
+ # replace status of the specified PodDisruptionBudget
1016
+ # @param name [String] name of the PodDisruptionBudget
1017
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1018
+ # @param body [IoK8sApiPolicyV1PodDisruptionBudget]
1019
+ # @param [Hash] opts the optional parameters
1020
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1021
+ # @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
1022
+ # @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.
1023
+ # @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.
1024
+ # @return [Array<(IoK8sApiPolicyV1PodDisruptionBudget, Integer, Hash)>] IoK8sApiPolicyV1PodDisruptionBudget data, response status code and response headers
1025
+ def replace_policy_v1_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, opts = {})
1026
+ if @api_client.config.debugging
1027
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget_status ...'
1028
+ end
1029
+ # verify the required parameter 'name' is set
1030
+ if @api_client.config.client_side_validation && name.nil?
1031
+ raise ArgumentError,
1032
+ "Missing the required parameter 'name' when calling PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget_status"
1033
+ end
1034
+ # verify the required parameter 'namespace' is set
1035
+ if @api_client.config.client_side_validation && namespace.nil?
1036
+ raise ArgumentError,
1037
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget_status"
1038
+ end
1039
+ # verify the required parameter 'body' is set
1040
+ if @api_client.config.client_side_validation && body.nil?
1041
+ raise ArgumentError,
1042
+ "Missing the required parameter 'body' when calling PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget_status"
1043
+ end
1044
+
1045
+ # resource path
1046
+ local_var_path = '/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1047
+ '{namespace}', CGI.escape(namespace.to_s)
1048
+ )
1049
+
1050
+ # query parameters
1051
+ query_params = opts[:query_params] || {}
1052
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1053
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1054
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1055
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1056
+
1057
+ # header parameters
1058
+ header_params = opts[:header_params] || {}
1059
+ # HTTP header 'Accept' (if needed)
1060
+ header_params['Accept'] =
1061
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1062
+ 'application/vnd.kubernetes.protobuf'])
1063
+
1064
+ # form parameters
1065
+ form_params = opts[:form_params] || {}
1066
+
1067
+ # http body (model)
1068
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1069
+
1070
+ # return_type
1071
+ return_type = opts[:debug_return_type] || 'IoK8sApiPolicyV1PodDisruptionBudget'
1072
+
1073
+ # auth_names
1074
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1075
+
1076
+ new_options = opts.merge(
1077
+ operation: :'PolicyV1Api.replace_policy_v1_namespaced_pod_disruption_budget_status',
1078
+ header_params:,
1079
+ query_params:,
1080
+ form_params:,
1081
+ body: post_body,
1082
+ auth_names:,
1083
+ return_type:
1084
+ )
1085
+
1086
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1087
+ if @api_client.config.debugging
1088
+ @api_client.config.logger.debug "API called: PolicyV1Api#replace_policy_v1_namespaced_pod_disruption_budget_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1089
+ end
1090
+ [data, status_code, headers]
1091
+ end
1092
+
1093
+ # watch changes to an object of kind PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
1094
+ # @param name [String] name of the PodDisruptionBudget
1095
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1096
+ # @param [Hash] opts the optional parameters
1097
+ # @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.
1098
+ # @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.
1099
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1100
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1101
+ # @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.
1102
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1103
+ # @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
1104
+ # @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
1105
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1106
+ # @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.
1107
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
1108
+ def watch_policy_v1_namespaced_pod_disruption_budget(name, namespace, opts = {})
1109
+ data, _status_code, _headers = watch_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace,
1110
+ opts)
1111
+ data
1112
+ end
1113
+
1114
+ # watch changes to an object of kind PodDisruptionBudget. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
1115
+ # @param name [String] name of the PodDisruptionBudget
1116
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1117
+ # @param [Hash] opts the optional parameters
1118
+ # @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.
1119
+ # @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.
1120
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1121
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1122
+ # @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.
1123
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1124
+ # @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
1125
+ # @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
1126
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1127
+ # @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.
1128
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
1129
+ def watch_policy_v1_namespaced_pod_disruption_budget_with_http_info(name, namespace, opts = {})
1130
+ if @api_client.config.debugging
1131
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.watch_policy_v1_namespaced_pod_disruption_budget ...'
1132
+ end
1133
+ # verify the required parameter 'name' is set
1134
+ if @api_client.config.client_side_validation && name.nil?
1135
+ raise ArgumentError,
1136
+ "Missing the required parameter 'name' when calling PolicyV1Api.watch_policy_v1_namespaced_pod_disruption_budget"
1137
+ end
1138
+ # verify the required parameter 'namespace' is set
1139
+ if @api_client.config.client_side_validation && namespace.nil?
1140
+ raise ArgumentError,
1141
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.watch_policy_v1_namespaced_pod_disruption_budget"
1142
+ end
1143
+
1144
+ # resource path
1145
+ local_var_path = '/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1146
+ '{namespace}', CGI.escape(namespace.to_s)
1147
+ )
1148
+
1149
+ # query parameters
1150
+ query_params = opts[:query_params] || {}
1151
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1152
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1153
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1154
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1155
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1156
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1157
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1158
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1159
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1160
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1161
+
1162
+ # header parameters
1163
+ header_params = opts[:header_params] || {}
1164
+ # HTTP header 'Accept' (if needed)
1165
+ header_params['Accept'] =
1166
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1167
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1168
+
1169
+ # form parameters
1170
+ form_params = opts[:form_params] || {}
1171
+
1172
+ # http body (model)
1173
+ post_body = opts[:debug_body]
1174
+
1175
+ # return_type
1176
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
1177
+
1178
+ # auth_names
1179
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1180
+
1181
+ new_options = opts.merge(
1182
+ operation: :'PolicyV1Api.watch_policy_v1_namespaced_pod_disruption_budget',
1183
+ header_params:,
1184
+ query_params:,
1185
+ form_params:,
1186
+ body: post_body,
1187
+ auth_names:,
1188
+ return_type:
1189
+ )
1190
+
1191
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1192
+ if @api_client.config.debugging
1193
+ @api_client.config.logger.debug "API called: PolicyV1Api#watch_policy_v1_namespaced_pod_disruption_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1194
+ end
1195
+ [data, status_code, headers]
1196
+ end
1197
+
1198
+ # watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.
1199
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1200
+ # @param [Hash] opts the optional parameters
1201
+ # @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.
1202
+ # @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.
1203
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1204
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1205
+ # @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.
1206
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1207
+ # @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
1208
+ # @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
1209
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1210
+ # @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.
1211
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
1212
+ def watch_policy_v1_namespaced_pod_disruption_budget_list(namespace, opts = {})
1213
+ data, _status_code, _headers = watch_policy_v1_namespaced_pod_disruption_budget_list_with_http_info(namespace,
1214
+ opts)
1215
+ data
1216
+ end
1217
+
1218
+ # watch individual changes to a list of PodDisruptionBudget. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
1219
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1220
+ # @param [Hash] opts the optional parameters
1221
+ # @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.
1222
+ # @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.
1223
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1224
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1225
+ # @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.
1226
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1227
+ # @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
1228
+ # @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
1229
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1230
+ # @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.
1231
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
1232
+ def watch_policy_v1_namespaced_pod_disruption_budget_list_with_http_info(namespace, opts = {})
1233
+ if @api_client.config.debugging
1234
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.watch_policy_v1_namespaced_pod_disruption_budget_list ...'
1235
+ end
1236
+ # verify the required parameter 'namespace' is set
1237
+ if @api_client.config.client_side_validation && namespace.nil?
1238
+ raise ArgumentError,
1239
+ "Missing the required parameter 'namespace' when calling PolicyV1Api.watch_policy_v1_namespaced_pod_disruption_budget_list"
1240
+ end
1241
+
1242
+ # resource path
1243
+ local_var_path = '/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets'.sub('{namespace}',
1244
+ CGI.escape(namespace.to_s))
1245
+
1246
+ # query parameters
1247
+ query_params = opts[:query_params] || {}
1248
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1249
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1250
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1251
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1252
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1253
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1254
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1255
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1256
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1257
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1258
+
1259
+ # header parameters
1260
+ header_params = opts[:header_params] || {}
1261
+ # HTTP header 'Accept' (if needed)
1262
+ header_params['Accept'] =
1263
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1264
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1265
+
1266
+ # form parameters
1267
+ form_params = opts[:form_params] || {}
1268
+
1269
+ # http body (model)
1270
+ post_body = opts[:debug_body]
1271
+
1272
+ # return_type
1273
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
1274
+
1275
+ # auth_names
1276
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1277
+
1278
+ new_options = opts.merge(
1279
+ operation: :'PolicyV1Api.watch_policy_v1_namespaced_pod_disruption_budget_list',
1280
+ header_params:,
1281
+ query_params:,
1282
+ form_params:,
1283
+ body: post_body,
1284
+ auth_names:,
1285
+ return_type:
1286
+ )
1287
+
1288
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1289
+ if @api_client.config.debugging
1290
+ @api_client.config.logger.debug "API called: PolicyV1Api#watch_policy_v1_namespaced_pod_disruption_budget_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1291
+ end
1292
+ [data, status_code, headers]
1293
+ end
1294
+
1295
+ # watch individual changes to a list of PodDisruptionBudget. deprecated: use the 'watch' parameter with a list operation instead.
1296
+ # @param [Hash] opts the optional parameters
1297
+ # @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.
1298
+ # @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.
1299
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1300
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1301
+ # @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.
1302
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1303
+ # @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
1304
+ # @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
1305
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1306
+ # @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.
1307
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
1308
+ def watch_policy_v1_pod_disruption_budget_list_for_all_namespaces(opts = {})
1309
+ data, _status_code, _headers = watch_policy_v1_pod_disruption_budget_list_for_all_namespaces_with_http_info(opts)
1310
+ data
1311
+ end
1312
+
1313
+ # watch individual changes to a list of PodDisruptionBudget. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
1314
+ # @param [Hash] opts the optional parameters
1315
+ # @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.
1316
+ # @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.
1317
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1318
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1319
+ # @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.
1320
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1321
+ # @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
1322
+ # @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
1323
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1324
+ # @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.
1325
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
1326
+ def watch_policy_v1_pod_disruption_budget_list_for_all_namespaces_with_http_info(opts = {})
1327
+ if @api_client.config.debugging
1328
+ @api_client.config.logger.debug 'Calling API: PolicyV1Api.watch_policy_v1_pod_disruption_budget_list_for_all_namespaces ...'
1329
+ end
1330
+ # resource path
1331
+ local_var_path = '/apis/policy/v1/watch/poddisruptionbudgets'
1332
+
1333
+ # query parameters
1334
+ query_params = opts[:query_params] || {}
1335
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1336
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1337
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1338
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1339
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1340
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1341
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1342
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1343
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1344
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1345
+
1346
+ # header parameters
1347
+ header_params = opts[:header_params] || {}
1348
+ # HTTP header 'Accept' (if needed)
1349
+ header_params['Accept'] =
1350
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1351
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1352
+
1353
+ # form parameters
1354
+ form_params = opts[:form_params] || {}
1355
+
1356
+ # http body (model)
1357
+ post_body = opts[:debug_body]
1358
+
1359
+ # return_type
1360
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
1361
+
1362
+ # auth_names
1363
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1364
+
1365
+ new_options = opts.merge(
1366
+ operation: :'PolicyV1Api.watch_policy_v1_pod_disruption_budget_list_for_all_namespaces',
1367
+ header_params:,
1368
+ query_params:,
1369
+ form_params:,
1370
+ body: post_body,
1371
+ auth_names:,
1372
+ return_type:
1373
+ )
1374
+
1375
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1376
+ if @api_client.config.debugging
1377
+ @api_client.config.logger.debug "API called: PolicyV1Api#watch_policy_v1_pod_disruption_budget_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1378
+ end
1379
+ [data, status_code, headers]
1380
+ end
1381
+ end
1382
+ end