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,3440 @@
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 NetworkingV1Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # create an IngressClass
24
+ # @param body [IoK8sApiNetworkingV1IngressClass]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
27
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
28
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
29
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, 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.
30
+ # @return [IoK8sApiNetworkingV1IngressClass]
31
+ def create_networking_v1_ingress_class(body, opts = {})
32
+ data, _status_code, _headers = create_networking_v1_ingress_class_with_http_info(body, opts)
33
+ data
34
+ end
35
+
36
+ # create an IngressClass
37
+ # @param body [IoK8sApiNetworkingV1IngressClass]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
40
+ # @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
41
+ # @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.
42
+ # @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.
43
+ # @return [Array<(IoK8sApiNetworkingV1IngressClass, Integer, Hash)>] IoK8sApiNetworkingV1IngressClass data, response status code and response headers
44
+ def create_networking_v1_ingress_class_with_http_info(body, opts = {})
45
+ if @api_client.config.debugging
46
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_networking_v1_ingress_class ...'
47
+ end
48
+ # verify the required parameter 'body' is set
49
+ if @api_client.config.client_side_validation && body.nil?
50
+ raise ArgumentError,
51
+ "Missing the required parameter 'body' when calling NetworkingV1Api.create_networking_v1_ingress_class"
52
+ end
53
+
54
+ # resource path
55
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses'
56
+
57
+ # query parameters
58
+ query_params = opts[:query_params] || {}
59
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
60
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
61
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
62
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
63
+
64
+ # header parameters
65
+ header_params = opts[:header_params] || {}
66
+ # HTTP header 'Accept' (if needed)
67
+ header_params['Accept'] =
68
+ @api_client.select_header_accept(['application/json', 'application/yaml',
69
+ 'application/vnd.kubernetes.protobuf'])
70
+
71
+ # form parameters
72
+ form_params = opts[:form_params] || {}
73
+
74
+ # http body (model)
75
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
76
+
77
+ # return_type
78
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1IngressClass'
79
+
80
+ # auth_names
81
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
82
+
83
+ new_options = opts.merge(
84
+ operation: :'NetworkingV1Api.create_networking_v1_ingress_class',
85
+ header_params:,
86
+ query_params:,
87
+ form_params:,
88
+ body: post_body,
89
+ auth_names:,
90
+ return_type:
91
+ )
92
+
93
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_networking_v1_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ [data, status_code, headers]
98
+ end
99
+
100
+ # create an Ingress
101
+ # @param namespace [String] object name and auth scope, such as for teams and projects
102
+ # @param body [IoK8sApiNetworkingV1Ingress]
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
105
+ # @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
106
+ # @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.
107
+ # @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.
108
+ # @return [IoK8sApiNetworkingV1Ingress]
109
+ def create_networking_v1_namespaced_ingress(namespace, body, opts = {})
110
+ data, _status_code, _headers = create_networking_v1_namespaced_ingress_with_http_info(namespace, body, opts)
111
+ data
112
+ end
113
+
114
+ # create an Ingress
115
+ # @param namespace [String] object name and auth scope, such as for teams and projects
116
+ # @param body [IoK8sApiNetworkingV1Ingress]
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
119
+ # @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
120
+ # @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.
121
+ # @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.
122
+ # @return [Array<(IoK8sApiNetworkingV1Ingress, Integer, Hash)>] IoK8sApiNetworkingV1Ingress data, response status code and response headers
123
+ def create_networking_v1_namespaced_ingress_with_http_info(namespace, body, opts = {})
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_networking_v1_namespaced_ingress ...'
126
+ end
127
+ # verify the required parameter 'namespace' is set
128
+ if @api_client.config.client_side_validation && namespace.nil?
129
+ raise ArgumentError,
130
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.create_networking_v1_namespaced_ingress"
131
+ end
132
+ # verify the required parameter 'body' is set
133
+ if @api_client.config.client_side_validation && body.nil?
134
+ raise ArgumentError,
135
+ "Missing the required parameter 'body' when calling NetworkingV1Api.create_networking_v1_namespaced_ingress"
136
+ end
137
+
138
+ # resource path
139
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses'.sub('{namespace}',
140
+ CGI.escape(namespace.to_s))
141
+
142
+ # query parameters
143
+ query_params = opts[:query_params] || {}
144
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
145
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
146
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
147
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
148
+
149
+ # header parameters
150
+ header_params = opts[:header_params] || {}
151
+ # HTTP header 'Accept' (if needed)
152
+ header_params['Accept'] =
153
+ @api_client.select_header_accept(['application/json', 'application/yaml',
154
+ 'application/vnd.kubernetes.protobuf'])
155
+
156
+ # form parameters
157
+ form_params = opts[:form_params] || {}
158
+
159
+ # http body (model)
160
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
161
+
162
+ # return_type
163
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1Ingress'
164
+
165
+ # auth_names
166
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
167
+
168
+ new_options = opts.merge(
169
+ operation: :'NetworkingV1Api.create_networking_v1_namespaced_ingress',
170
+ header_params:,
171
+ query_params:,
172
+ form_params:,
173
+ body: post_body,
174
+ auth_names:,
175
+ return_type:
176
+ )
177
+
178
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_networking_v1_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ end
182
+ [data, status_code, headers]
183
+ end
184
+
185
+ # create a NetworkPolicy
186
+ # @param namespace [String] object name and auth scope, such as for teams and projects
187
+ # @param body [IoK8sApiNetworkingV1NetworkPolicy]
188
+ # @param [Hash] opts the optional parameters
189
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
190
+ # @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
191
+ # @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.
192
+ # @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.
193
+ # @return [IoK8sApiNetworkingV1NetworkPolicy]
194
+ def create_networking_v1_namespaced_network_policy(namespace, body, opts = {})
195
+ data, _status_code, _headers = create_networking_v1_namespaced_network_policy_with_http_info(namespace, body,
196
+ opts)
197
+ data
198
+ end
199
+
200
+ # create a NetworkPolicy
201
+ # @param namespace [String] object name and auth scope, such as for teams and projects
202
+ # @param body [IoK8sApiNetworkingV1NetworkPolicy]
203
+ # @param [Hash] opts the optional parameters
204
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
205
+ # @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
206
+ # @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.
207
+ # @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.
208
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicy, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicy data, response status code and response headers
209
+ def create_networking_v1_namespaced_network_policy_with_http_info(namespace, body, opts = {})
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_networking_v1_namespaced_network_policy ...'
212
+ end
213
+ # verify the required parameter 'namespace' is set
214
+ if @api_client.config.client_side_validation && namespace.nil?
215
+ raise ArgumentError,
216
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.create_networking_v1_namespaced_network_policy"
217
+ end
218
+ # verify the required parameter 'body' is set
219
+ if @api_client.config.client_side_validation && body.nil?
220
+ raise ArgumentError,
221
+ "Missing the required parameter 'body' when calling NetworkingV1Api.create_networking_v1_namespaced_network_policy"
222
+ end
223
+
224
+ # resource path
225
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies'.sub('{namespace}',
226
+ CGI.escape(namespace.to_s))
227
+
228
+ # query parameters
229
+ query_params = opts[:query_params] || {}
230
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
231
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
232
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
233
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
234
+
235
+ # header parameters
236
+ header_params = opts[:header_params] || {}
237
+ # HTTP header 'Accept' (if needed)
238
+ header_params['Accept'] =
239
+ @api_client.select_header_accept(['application/json', 'application/yaml',
240
+ 'application/vnd.kubernetes.protobuf'])
241
+
242
+ # form parameters
243
+ form_params = opts[:form_params] || {}
244
+
245
+ # http body (model)
246
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
247
+
248
+ # return_type
249
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicy'
250
+
251
+ # auth_names
252
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
253
+
254
+ new_options = opts.merge(
255
+ operation: :'NetworkingV1Api.create_networking_v1_namespaced_network_policy',
256
+ header_params:,
257
+ query_params:,
258
+ form_params:,
259
+ body: post_body,
260
+ auth_names:,
261
+ return_type:
262
+ )
263
+
264
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
265
+ if @api_client.config.debugging
266
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_networking_v1_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
267
+ end
268
+ [data, status_code, headers]
269
+ end
270
+
271
+ # delete collection of IngressClass
272
+ # @param [Hash] opts the optional parameters
273
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
274
+ # @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.
275
+ # @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
276
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
277
+ # @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.
278
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
279
+ # @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.
280
+ # @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.
281
+ # @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.
282
+ # @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
283
+ # @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
284
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
285
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
286
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
287
+ def delete_networking_v1_collection_ingress_class(opts = {})
288
+ data, _status_code, _headers = delete_networking_v1_collection_ingress_class_with_http_info(opts)
289
+ data
290
+ end
291
+
292
+ # delete collection of IngressClass
293
+ # @param [Hash] opts the optional parameters
294
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
295
+ # @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.
296
+ # @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
297
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
298
+ # @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.
299
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
300
+ # @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.
301
+ # @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.
302
+ # @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.
303
+ # @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
304
+ # @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
305
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
306
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
307
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
308
+ def delete_networking_v1_collection_ingress_class_with_http_info(opts = {})
309
+ if @api_client.config.debugging
310
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_networking_v1_collection_ingress_class ...'
311
+ end
312
+ # resource path
313
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses'
314
+
315
+ # query parameters
316
+ query_params = opts[:query_params] || {}
317
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
318
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
319
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
320
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
321
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
322
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
323
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
324
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
325
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
326
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
327
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
328
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
329
+
330
+ # header parameters
331
+ header_params = opts[:header_params] || {}
332
+ # HTTP header 'Accept' (if needed)
333
+ header_params['Accept'] =
334
+ @api_client.select_header_accept(['application/json', 'application/yaml',
335
+ 'application/vnd.kubernetes.protobuf'])
336
+
337
+ # form parameters
338
+ form_params = opts[:form_params] || {}
339
+
340
+ # http body (model)
341
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
342
+
343
+ # return_type
344
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
345
+
346
+ # auth_names
347
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
348
+
349
+ new_options = opts.merge(
350
+ operation: :'NetworkingV1Api.delete_networking_v1_collection_ingress_class',
351
+ header_params:,
352
+ query_params:,
353
+ form_params:,
354
+ body: post_body,
355
+ auth_names:,
356
+ return_type:
357
+ )
358
+
359
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
360
+ if @api_client.config.debugging
361
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_networking_v1_collection_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
362
+ end
363
+ [data, status_code, headers]
364
+ end
365
+
366
+ # delete collection of Ingress
367
+ # @param namespace [String] object name and auth scope, such as for teams and projects
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
370
+ # @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.
371
+ # @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
372
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
373
+ # @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.
374
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
375
+ # @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.
376
+ # @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.
377
+ # @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.
378
+ # @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
379
+ # @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
380
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
381
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
382
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
383
+ def delete_networking_v1_collection_namespaced_ingress(namespace, opts = {})
384
+ data, _status_code, _headers = delete_networking_v1_collection_namespaced_ingress_with_http_info(namespace, opts)
385
+ data
386
+ end
387
+
388
+ # delete collection of Ingress
389
+ # @param namespace [String] object name and auth scope, such as for teams and projects
390
+ # @param [Hash] opts the optional parameters
391
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
392
+ # @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.
393
+ # @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
394
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
395
+ # @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.
396
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
397
+ # @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.
398
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
399
+ # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
400
+ # @option opts [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
401
+ # @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
402
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
403
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
404
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
405
+ def delete_networking_v1_collection_namespaced_ingress_with_http_info(namespace, opts = {})
406
+ if @api_client.config.debugging
407
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_networking_v1_collection_namespaced_ingress ...'
408
+ end
409
+ # verify the required parameter 'namespace' is set
410
+ if @api_client.config.client_side_validation && namespace.nil?
411
+ raise ArgumentError,
412
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_networking_v1_collection_namespaced_ingress"
413
+ end
414
+
415
+ # resource path
416
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses'.sub('{namespace}',
417
+ CGI.escape(namespace.to_s))
418
+
419
+ # query parameters
420
+ query_params = opts[:query_params] || {}
421
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
422
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
423
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
424
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
425
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
426
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
427
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
428
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
429
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
430
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
431
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
432
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
433
+
434
+ # header parameters
435
+ header_params = opts[:header_params] || {}
436
+ # HTTP header 'Accept' (if needed)
437
+ header_params['Accept'] =
438
+ @api_client.select_header_accept(['application/json', 'application/yaml',
439
+ 'application/vnd.kubernetes.protobuf'])
440
+
441
+ # form parameters
442
+ form_params = opts[:form_params] || {}
443
+
444
+ # http body (model)
445
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
446
+
447
+ # return_type
448
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
449
+
450
+ # auth_names
451
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
452
+
453
+ new_options = opts.merge(
454
+ operation: :'NetworkingV1Api.delete_networking_v1_collection_namespaced_ingress',
455
+ header_params:,
456
+ query_params:,
457
+ form_params:,
458
+ body: post_body,
459
+ auth_names:,
460
+ return_type:
461
+ )
462
+
463
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
464
+ if @api_client.config.debugging
465
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_networking_v1_collection_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
466
+ end
467
+ [data, status_code, headers]
468
+ end
469
+
470
+ # delete collection of NetworkPolicy
471
+ # @param namespace [String] object name and auth scope, such as for teams and projects
472
+ # @param [Hash] opts the optional parameters
473
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
474
+ # @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.
475
+ # @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
476
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
477
+ # @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.
478
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
479
+ # @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.
480
+ # @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.
481
+ # @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.
482
+ # @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
483
+ # @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
484
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
485
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
486
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
487
+ def delete_networking_v1_collection_namespaced_network_policy(namespace, opts = {})
488
+ data, _status_code, _headers = delete_networking_v1_collection_namespaced_network_policy_with_http_info(
489
+ namespace, opts
490
+ )
491
+ data
492
+ end
493
+
494
+ # delete collection of NetworkPolicy
495
+ # @param namespace [String] object name and auth scope, such as for teams and projects
496
+ # @param [Hash] opts the optional parameters
497
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
498
+ # @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.
499
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
500
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
501
+ # @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.
502
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
503
+ # @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.
504
+ # @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.
505
+ # @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.
506
+ # @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
507
+ # @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
508
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
509
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
510
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
511
+ def delete_networking_v1_collection_namespaced_network_policy_with_http_info(namespace, opts = {})
512
+ if @api_client.config.debugging
513
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_networking_v1_collection_namespaced_network_policy ...'
514
+ end
515
+ # verify the required parameter 'namespace' is set
516
+ if @api_client.config.client_side_validation && namespace.nil?
517
+ raise ArgumentError,
518
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_networking_v1_collection_namespaced_network_policy"
519
+ end
520
+
521
+ # resource path
522
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies'.sub('{namespace}',
523
+ CGI.escape(namespace.to_s))
524
+
525
+ # query parameters
526
+ query_params = opts[:query_params] || {}
527
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
528
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
529
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
530
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
531
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
532
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
533
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
534
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
535
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
536
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
537
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
538
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
539
+
540
+ # header parameters
541
+ header_params = opts[:header_params] || {}
542
+ # HTTP header 'Accept' (if needed)
543
+ header_params['Accept'] =
544
+ @api_client.select_header_accept(['application/json', 'application/yaml',
545
+ 'application/vnd.kubernetes.protobuf'])
546
+
547
+ # form parameters
548
+ form_params = opts[:form_params] || {}
549
+
550
+ # http body (model)
551
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
552
+
553
+ # return_type
554
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
555
+
556
+ # auth_names
557
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
558
+
559
+ new_options = opts.merge(
560
+ operation: :'NetworkingV1Api.delete_networking_v1_collection_namespaced_network_policy',
561
+ header_params:,
562
+ query_params:,
563
+ form_params:,
564
+ body: post_body,
565
+ auth_names:,
566
+ return_type:
567
+ )
568
+
569
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
570
+ if @api_client.config.debugging
571
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_networking_v1_collection_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
572
+ end
573
+ [data, status_code, headers]
574
+ end
575
+
576
+ # delete an IngressClass
577
+ # @param name [String] name of the IngressClass
578
+ # @param [Hash] opts the optional parameters
579
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
580
+ # @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
581
+ # @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.
582
+ # @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.
583
+ # @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.
584
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
585
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
586
+ def delete_networking_v1_ingress_class(name, opts = {})
587
+ data, _status_code, _headers = delete_networking_v1_ingress_class_with_http_info(name, opts)
588
+ data
589
+ end
590
+
591
+ # delete an IngressClass
592
+ # @param name [String] name of the IngressClass
593
+ # @param [Hash] opts the optional parameters
594
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
595
+ # @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
596
+ # @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.
597
+ # @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.
598
+ # @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.
599
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
600
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
601
+ def delete_networking_v1_ingress_class_with_http_info(name, opts = {})
602
+ if @api_client.config.debugging
603
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_networking_v1_ingress_class ...'
604
+ end
605
+ # verify the required parameter 'name' is set
606
+ if @api_client.config.client_side_validation && name.nil?
607
+ raise ArgumentError,
608
+ "Missing the required parameter 'name' when calling NetworkingV1Api.delete_networking_v1_ingress_class"
609
+ end
610
+
611
+ # resource path
612
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{name}', CGI.escape(name.to_s))
613
+
614
+ # query parameters
615
+ query_params = opts[:query_params] || {}
616
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
617
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
618
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
619
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
620
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
621
+
622
+ # header parameters
623
+ header_params = opts[:header_params] || {}
624
+ # HTTP header 'Accept' (if needed)
625
+ header_params['Accept'] =
626
+ @api_client.select_header_accept(['application/json', 'application/yaml',
627
+ 'application/vnd.kubernetes.protobuf'])
628
+
629
+ # form parameters
630
+ form_params = opts[:form_params] || {}
631
+
632
+ # http body (model)
633
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
634
+
635
+ # return_type
636
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
637
+
638
+ # auth_names
639
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
640
+
641
+ new_options = opts.merge(
642
+ operation: :'NetworkingV1Api.delete_networking_v1_ingress_class',
643
+ header_params:,
644
+ query_params:,
645
+ form_params:,
646
+ body: post_body,
647
+ auth_names:,
648
+ return_type:
649
+ )
650
+
651
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
652
+ if @api_client.config.debugging
653
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_networking_v1_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
654
+ end
655
+ [data, status_code, headers]
656
+ end
657
+
658
+ # delete an Ingress
659
+ # @param name [String] name of the Ingress
660
+ # @param namespace [String] object name and auth scope, such as for teams and projects
661
+ # @param [Hash] opts the optional parameters
662
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
663
+ # @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
664
+ # @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.
665
+ # @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.
666
+ # @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.
667
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
668
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
669
+ def delete_networking_v1_namespaced_ingress(name, namespace, opts = {})
670
+ data, _status_code, _headers = delete_networking_v1_namespaced_ingress_with_http_info(name, namespace, opts)
671
+ data
672
+ end
673
+
674
+ # delete an Ingress
675
+ # @param name [String] name of the Ingress
676
+ # @param namespace [String] object name and auth scope, such as for teams and projects
677
+ # @param [Hash] opts the optional parameters
678
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
679
+ # @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
680
+ # @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.
681
+ # @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.
682
+ # @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.
683
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
684
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
685
+ def delete_networking_v1_namespaced_ingress_with_http_info(name, namespace, opts = {})
686
+ if @api_client.config.debugging
687
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_networking_v1_namespaced_ingress ...'
688
+ end
689
+ # verify the required parameter 'name' is set
690
+ if @api_client.config.client_side_validation && name.nil?
691
+ raise ArgumentError,
692
+ "Missing the required parameter 'name' when calling NetworkingV1Api.delete_networking_v1_namespaced_ingress"
693
+ end
694
+ # verify the required parameter 'namespace' is set
695
+ if @api_client.config.client_side_validation && namespace.nil?
696
+ raise ArgumentError,
697
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_networking_v1_namespaced_ingress"
698
+ end
699
+
700
+ # resource path
701
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
702
+ '{namespace}', CGI.escape(namespace.to_s)
703
+ )
704
+
705
+ # query parameters
706
+ query_params = opts[:query_params] || {}
707
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
708
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
709
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
710
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
711
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
712
+
713
+ # header parameters
714
+ header_params = opts[:header_params] || {}
715
+ # HTTP header 'Accept' (if needed)
716
+ header_params['Accept'] =
717
+ @api_client.select_header_accept(['application/json', 'application/yaml',
718
+ 'application/vnd.kubernetes.protobuf'])
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(opts[:body])
725
+
726
+ # return_type
727
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
728
+
729
+ # auth_names
730
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
731
+
732
+ new_options = opts.merge(
733
+ operation: :'NetworkingV1Api.delete_networking_v1_namespaced_ingress',
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(:DELETE, local_var_path, new_options)
743
+ if @api_client.config.debugging
744
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_networking_v1_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
745
+ end
746
+ [data, status_code, headers]
747
+ end
748
+
749
+ # delete a NetworkPolicy
750
+ # @param name [String] name of the NetworkPolicy
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
+ # @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
755
+ # @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.
756
+ # @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.
757
+ # @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.
758
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
759
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
760
+ def delete_networking_v1_namespaced_network_policy(name, namespace, opts = {})
761
+ data, _status_code, _headers = delete_networking_v1_namespaced_network_policy_with_http_info(name, namespace,
762
+ opts)
763
+ data
764
+ end
765
+
766
+ # delete a NetworkPolicy
767
+ # @param name [String] name of the NetworkPolicy
768
+ # @param namespace [String] object name and auth scope, such as for teams and projects
769
+ # @param [Hash] opts the optional parameters
770
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
771
+ # @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
772
+ # @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.
773
+ # @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.
774
+ # @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.
775
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
776
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
777
+ def delete_networking_v1_namespaced_network_policy_with_http_info(name, namespace, opts = {})
778
+ if @api_client.config.debugging
779
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_networking_v1_namespaced_network_policy ...'
780
+ end
781
+ # verify the required parameter 'name' is set
782
+ if @api_client.config.client_side_validation && name.nil?
783
+ raise ArgumentError,
784
+ "Missing the required parameter 'name' when calling NetworkingV1Api.delete_networking_v1_namespaced_network_policy"
785
+ end
786
+ # verify the required parameter 'namespace' is set
787
+ if @api_client.config.client_side_validation && namespace.nil?
788
+ raise ArgumentError,
789
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_networking_v1_namespaced_network_policy"
790
+ end
791
+
792
+ # resource path
793
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
794
+ '{namespace}', CGI.escape(namespace.to_s)
795
+ )
796
+
797
+ # query parameters
798
+ query_params = opts[:query_params] || {}
799
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
800
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
801
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
802
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
803
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
804
+
805
+ # header parameters
806
+ header_params = opts[:header_params] || {}
807
+ # HTTP header 'Accept' (if needed)
808
+ header_params['Accept'] =
809
+ @api_client.select_header_accept(['application/json', 'application/yaml',
810
+ 'application/vnd.kubernetes.protobuf'])
811
+
812
+ # form parameters
813
+ form_params = opts[:form_params] || {}
814
+
815
+ # http body (model)
816
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
817
+
818
+ # return_type
819
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
820
+
821
+ # auth_names
822
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
823
+
824
+ new_options = opts.merge(
825
+ operation: :'NetworkingV1Api.delete_networking_v1_namespaced_network_policy',
826
+ header_params:,
827
+ query_params:,
828
+ form_params:,
829
+ body: post_body,
830
+ auth_names:,
831
+ return_type:
832
+ )
833
+
834
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
835
+ if @api_client.config.debugging
836
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_networking_v1_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
+ end
838
+ [data, status_code, headers]
839
+ end
840
+
841
+ # get available resources
842
+ # @param [Hash] opts the optional parameters
843
+ # @return [IoK8sApimachineryPkgApisMetaV1APIResourceList]
844
+ def get_networking_v1_api_resources(opts = {})
845
+ data, _status_code, _headers = get_networking_v1_api_resources_with_http_info(opts)
846
+ data
847
+ end
848
+
849
+ # get available resources
850
+ # @param [Hash] opts the optional parameters
851
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1APIResourceList, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1APIResourceList data, response status code and response headers
852
+ def get_networking_v1_api_resources_with_http_info(opts = {})
853
+ if @api_client.config.debugging
854
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.get_networking_v1_api_resources ...'
855
+ end
856
+ # resource path
857
+ local_var_path = '/apis/networking.k8s.io/v1/'
858
+
859
+ # query parameters
860
+ query_params = opts[:query_params] || {}
861
+
862
+ # header parameters
863
+ header_params = opts[:header_params] || {}
864
+ # HTTP header 'Accept' (if needed)
865
+ header_params['Accept'] =
866
+ @api_client.select_header_accept(['application/json', 'application/yaml',
867
+ 'application/vnd.kubernetes.protobuf'])
868
+
869
+ # form parameters
870
+ form_params = opts[:form_params] || {}
871
+
872
+ # http body (model)
873
+ post_body = opts[:debug_body]
874
+
875
+ # return_type
876
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1APIResourceList'
877
+
878
+ # auth_names
879
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
880
+
881
+ new_options = opts.merge(
882
+ operation: :'NetworkingV1Api.get_networking_v1_api_resources',
883
+ header_params:,
884
+ query_params:,
885
+ form_params:,
886
+ body: post_body,
887
+ auth_names:,
888
+ return_type:
889
+ )
890
+
891
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
892
+ if @api_client.config.debugging
893
+ @api_client.config.logger.debug "API called: NetworkingV1Api#get_networking_v1_api_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
894
+ end
895
+ [data, status_code, headers]
896
+ end
897
+
898
+ # list or watch objects of kind IngressClass
899
+ # @param [Hash] opts the optional parameters
900
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
901
+ # @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.
902
+ # @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.
903
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
904
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
905
+ # @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.
906
+ # @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
907
+ # @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
908
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
909
+ # @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.
910
+ # @return [IoK8sApiNetworkingV1IngressClassList]
911
+ def list_networking_v1_ingress_class(opts = {})
912
+ data, _status_code, _headers = list_networking_v1_ingress_class_with_http_info(opts)
913
+ data
914
+ end
915
+
916
+ # list or watch objects of kind IngressClass
917
+ # @param [Hash] opts the optional parameters
918
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
919
+ # @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.
920
+ # @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.
921
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
922
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
923
+ # @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.
924
+ # @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
925
+ # @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
926
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
927
+ # @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.
928
+ # @return [Array<(IoK8sApiNetworkingV1IngressClassList, Integer, Hash)>] IoK8sApiNetworkingV1IngressClassList data, response status code and response headers
929
+ def list_networking_v1_ingress_class_with_http_info(opts = {})
930
+ if @api_client.config.debugging
931
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_networking_v1_ingress_class ...'
932
+ end
933
+ # resource path
934
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses'
935
+
936
+ # query parameters
937
+ query_params = opts[:query_params] || {}
938
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
939
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
940
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
941
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
942
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
943
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
944
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
945
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
946
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
947
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
948
+
949
+ # header parameters
950
+ header_params = opts[:header_params] || {}
951
+ # HTTP header 'Accept' (if needed)
952
+ header_params['Accept'] =
953
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
954
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
955
+
956
+ # form parameters
957
+ form_params = opts[:form_params] || {}
958
+
959
+ # http body (model)
960
+ post_body = opts[:debug_body]
961
+
962
+ # return_type
963
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1IngressClassList'
964
+
965
+ # auth_names
966
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
967
+
968
+ new_options = opts.merge(
969
+ operation: :'NetworkingV1Api.list_networking_v1_ingress_class',
970
+ header_params:,
971
+ query_params:,
972
+ form_params:,
973
+ body: post_body,
974
+ auth_names:,
975
+ return_type:
976
+ )
977
+
978
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
979
+ if @api_client.config.debugging
980
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_networking_v1_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
981
+ end
982
+ [data, status_code, headers]
983
+ end
984
+
985
+ # list or watch objects of kind Ingress
986
+ # @param [Hash] opts the optional parameters
987
+ # @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.
988
+ # @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.
989
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
990
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
991
+ # @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.
992
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
993
+ # @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
994
+ # @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
995
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
996
+ # @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.
997
+ # @return [IoK8sApiNetworkingV1IngressList]
998
+ def list_networking_v1_ingress_for_all_namespaces(opts = {})
999
+ data, _status_code, _headers = list_networking_v1_ingress_for_all_namespaces_with_http_info(opts)
1000
+ data
1001
+ end
1002
+
1003
+ # list or watch objects of kind Ingress
1004
+ # @param [Hash] opts the optional parameters
1005
+ # @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.
1006
+ # @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.
1007
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1008
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1009
+ # @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.
1010
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1011
+ # @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
1012
+ # @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
1013
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1014
+ # @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.
1015
+ # @return [Array<(IoK8sApiNetworkingV1IngressList, Integer, Hash)>] IoK8sApiNetworkingV1IngressList data, response status code and response headers
1016
+ def list_networking_v1_ingress_for_all_namespaces_with_http_info(opts = {})
1017
+ if @api_client.config.debugging
1018
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_networking_v1_ingress_for_all_namespaces ...'
1019
+ end
1020
+ # resource path
1021
+ local_var_path = '/apis/networking.k8s.io/v1/ingresses'
1022
+
1023
+ # query parameters
1024
+ query_params = opts[:query_params] || {}
1025
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1026
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1027
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1028
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1029
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1030
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1031
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1032
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1033
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1034
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1035
+
1036
+ # header parameters
1037
+ header_params = opts[:header_params] || {}
1038
+ # HTTP header 'Accept' (if needed)
1039
+ header_params['Accept'] =
1040
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1041
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1042
+
1043
+ # form parameters
1044
+ form_params = opts[:form_params] || {}
1045
+
1046
+ # http body (model)
1047
+ post_body = opts[:debug_body]
1048
+
1049
+ # return_type
1050
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1IngressList'
1051
+
1052
+ # auth_names
1053
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1054
+
1055
+ new_options = opts.merge(
1056
+ operation: :'NetworkingV1Api.list_networking_v1_ingress_for_all_namespaces',
1057
+ header_params:,
1058
+ query_params:,
1059
+ form_params:,
1060
+ body: post_body,
1061
+ auth_names:,
1062
+ return_type:
1063
+ )
1064
+
1065
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1066
+ if @api_client.config.debugging
1067
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_networking_v1_ingress_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1068
+ end
1069
+ [data, status_code, headers]
1070
+ end
1071
+
1072
+ # list or watch objects of kind Ingress
1073
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1074
+ # @param [Hash] opts the optional parameters
1075
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1076
+ # @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.
1077
+ # @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.
1078
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1079
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1080
+ # @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.
1081
+ # @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
1082
+ # @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
1083
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1084
+ # @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.
1085
+ # @return [IoK8sApiNetworkingV1IngressList]
1086
+ def list_networking_v1_namespaced_ingress(namespace, opts = {})
1087
+ data, _status_code, _headers = list_networking_v1_namespaced_ingress_with_http_info(namespace, opts)
1088
+ data
1089
+ end
1090
+
1091
+ # list or watch objects of kind Ingress
1092
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1093
+ # @param [Hash] opts the optional parameters
1094
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1095
+ # @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.
1096
+ # @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.
1097
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1098
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1099
+ # @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.
1100
+ # @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
1101
+ # @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
1102
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1103
+ # @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.
1104
+ # @return [Array<(IoK8sApiNetworkingV1IngressList, Integer, Hash)>] IoK8sApiNetworkingV1IngressList data, response status code and response headers
1105
+ def list_networking_v1_namespaced_ingress_with_http_info(namespace, opts = {})
1106
+ if @api_client.config.debugging
1107
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_networking_v1_namespaced_ingress ...'
1108
+ end
1109
+ # verify the required parameter 'namespace' is set
1110
+ if @api_client.config.client_side_validation && namespace.nil?
1111
+ raise ArgumentError,
1112
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.list_networking_v1_namespaced_ingress"
1113
+ end
1114
+
1115
+ # resource path
1116
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses'.sub('{namespace}',
1117
+ CGI.escape(namespace.to_s))
1118
+
1119
+ # query parameters
1120
+ query_params = opts[:query_params] || {}
1121
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1122
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1123
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1124
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1125
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1126
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1127
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1128
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1129
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1130
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1131
+
1132
+ # header parameters
1133
+ header_params = opts[:header_params] || {}
1134
+ # HTTP header 'Accept' (if needed)
1135
+ header_params['Accept'] =
1136
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1137
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1138
+
1139
+ # form parameters
1140
+ form_params = opts[:form_params] || {}
1141
+
1142
+ # http body (model)
1143
+ post_body = opts[:debug_body]
1144
+
1145
+ # return_type
1146
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1IngressList'
1147
+
1148
+ # auth_names
1149
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1150
+
1151
+ new_options = opts.merge(
1152
+ operation: :'NetworkingV1Api.list_networking_v1_namespaced_ingress',
1153
+ header_params:,
1154
+ query_params:,
1155
+ form_params:,
1156
+ body: post_body,
1157
+ auth_names:,
1158
+ return_type:
1159
+ )
1160
+
1161
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1162
+ if @api_client.config.debugging
1163
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_networking_v1_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1164
+ end
1165
+ [data, status_code, headers]
1166
+ end
1167
+
1168
+ # list or watch objects of kind NetworkPolicy
1169
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1170
+ # @param [Hash] opts the optional parameters
1171
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1172
+ # @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.
1173
+ # @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.
1174
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1175
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1176
+ # @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.
1177
+ # @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
1178
+ # @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
1179
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1180
+ # @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.
1181
+ # @return [IoK8sApiNetworkingV1NetworkPolicyList]
1182
+ def list_networking_v1_namespaced_network_policy(namespace, opts = {})
1183
+ data, _status_code, _headers = list_networking_v1_namespaced_network_policy_with_http_info(namespace, opts)
1184
+ data
1185
+ end
1186
+
1187
+ # list or watch objects of kind NetworkPolicy
1188
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1189
+ # @param [Hash] opts the optional parameters
1190
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1191
+ # @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.
1192
+ # @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.
1193
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1194
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1195
+ # @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.
1196
+ # @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
1197
+ # @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
1198
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1199
+ # @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.
1200
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicyList, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicyList data, response status code and response headers
1201
+ def list_networking_v1_namespaced_network_policy_with_http_info(namespace, opts = {})
1202
+ if @api_client.config.debugging
1203
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_networking_v1_namespaced_network_policy ...'
1204
+ end
1205
+ # verify the required parameter 'namespace' is set
1206
+ if @api_client.config.client_side_validation && namespace.nil?
1207
+ raise ArgumentError,
1208
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.list_networking_v1_namespaced_network_policy"
1209
+ end
1210
+
1211
+ # resource path
1212
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies'.sub('{namespace}',
1213
+ CGI.escape(namespace.to_s))
1214
+
1215
+ # query parameters
1216
+ query_params = opts[:query_params] || {}
1217
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1218
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1219
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1220
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1221
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1222
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1223
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1224
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1225
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1226
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1227
+
1228
+ # header parameters
1229
+ header_params = opts[:header_params] || {}
1230
+ # HTTP header 'Accept' (if needed)
1231
+ header_params['Accept'] =
1232
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1233
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1234
+
1235
+ # form parameters
1236
+ form_params = opts[:form_params] || {}
1237
+
1238
+ # http body (model)
1239
+ post_body = opts[:debug_body]
1240
+
1241
+ # return_type
1242
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicyList'
1243
+
1244
+ # auth_names
1245
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1246
+
1247
+ new_options = opts.merge(
1248
+ operation: :'NetworkingV1Api.list_networking_v1_namespaced_network_policy',
1249
+ header_params:,
1250
+ query_params:,
1251
+ form_params:,
1252
+ body: post_body,
1253
+ auth_names:,
1254
+ return_type:
1255
+ )
1256
+
1257
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1258
+ if @api_client.config.debugging
1259
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_networking_v1_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1260
+ end
1261
+ [data, status_code, headers]
1262
+ end
1263
+
1264
+ # list or watch objects of kind NetworkPolicy
1265
+ # @param [Hash] opts the optional parameters
1266
+ # @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.
1267
+ # @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.
1268
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1269
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1270
+ # @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.
1271
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1272
+ # @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
1273
+ # @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
1274
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1275
+ # @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.
1276
+ # @return [IoK8sApiNetworkingV1NetworkPolicyList]
1277
+ def list_networking_v1_network_policy_for_all_namespaces(opts = {})
1278
+ data, _status_code, _headers = list_networking_v1_network_policy_for_all_namespaces_with_http_info(opts)
1279
+ data
1280
+ end
1281
+
1282
+ # list or watch objects of kind NetworkPolicy
1283
+ # @param [Hash] opts the optional parameters
1284
+ # @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.
1285
+ # @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.
1286
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1287
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1288
+ # @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.
1289
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1290
+ # @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
1291
+ # @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
1292
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1293
+ # @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.
1294
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicyList, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicyList data, response status code and response headers
1295
+ def list_networking_v1_network_policy_for_all_namespaces_with_http_info(opts = {})
1296
+ if @api_client.config.debugging
1297
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_networking_v1_network_policy_for_all_namespaces ...'
1298
+ end
1299
+ # resource path
1300
+ local_var_path = '/apis/networking.k8s.io/v1/networkpolicies'
1301
+
1302
+ # query parameters
1303
+ query_params = opts[:query_params] || {}
1304
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1305
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1306
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1307
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1308
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1309
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1310
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1311
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1312
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1313
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1314
+
1315
+ # header parameters
1316
+ header_params = opts[:header_params] || {}
1317
+ # HTTP header 'Accept' (if needed)
1318
+ header_params['Accept'] =
1319
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1320
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1321
+
1322
+ # form parameters
1323
+ form_params = opts[:form_params] || {}
1324
+
1325
+ # http body (model)
1326
+ post_body = opts[:debug_body]
1327
+
1328
+ # return_type
1329
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicyList'
1330
+
1331
+ # auth_names
1332
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1333
+
1334
+ new_options = opts.merge(
1335
+ operation: :'NetworkingV1Api.list_networking_v1_network_policy_for_all_namespaces',
1336
+ header_params:,
1337
+ query_params:,
1338
+ form_params:,
1339
+ body: post_body,
1340
+ auth_names:,
1341
+ return_type:
1342
+ )
1343
+
1344
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1345
+ if @api_client.config.debugging
1346
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_networking_v1_network_policy_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1347
+ end
1348
+ [data, status_code, headers]
1349
+ end
1350
+
1351
+ # partially update the specified IngressClass
1352
+ # @param name [String] name of the IngressClass
1353
+ # @param body [Object]
1354
+ # @param [Hash] opts the optional parameters
1355
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1356
+ # @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
1357
+ # @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).
1358
+ # @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.
1359
+ # @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.
1360
+ # @return [IoK8sApiNetworkingV1IngressClass]
1361
+ def patch_networking_v1_ingress_class(name, body, opts = {})
1362
+ data, _status_code, _headers = patch_networking_v1_ingress_class_with_http_info(name, body, opts)
1363
+ data
1364
+ end
1365
+
1366
+ # partially update the specified IngressClass
1367
+ # @param name [String] name of the IngressClass
1368
+ # @param body [Object]
1369
+ # @param [Hash] opts the optional parameters
1370
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1371
+ # @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
1372
+ # @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).
1373
+ # @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.
1374
+ # @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.
1375
+ # @return [Array<(IoK8sApiNetworkingV1IngressClass, Integer, Hash)>] IoK8sApiNetworkingV1IngressClass data, response status code and response headers
1376
+ def patch_networking_v1_ingress_class_with_http_info(name, body, opts = {})
1377
+ if @api_client.config.debugging
1378
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_networking_v1_ingress_class ...'
1379
+ end
1380
+ # verify the required parameter 'name' is set
1381
+ if @api_client.config.client_side_validation && name.nil?
1382
+ raise ArgumentError,
1383
+ "Missing the required parameter 'name' when calling NetworkingV1Api.patch_networking_v1_ingress_class"
1384
+ end
1385
+ # verify the required parameter 'body' is set
1386
+ if @api_client.config.client_side_validation && body.nil?
1387
+ raise ArgumentError,
1388
+ "Missing the required parameter 'body' when calling NetworkingV1Api.patch_networking_v1_ingress_class"
1389
+ end
1390
+
1391
+ # resource path
1392
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{name}', CGI.escape(name.to_s))
1393
+
1394
+ # query parameters
1395
+ query_params = opts[:query_params] || {}
1396
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1397
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1398
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1399
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1400
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1401
+
1402
+ # header parameters
1403
+ header_params = opts[:header_params] || {}
1404
+ # HTTP header 'Accept' (if needed)
1405
+ header_params['Accept'] =
1406
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1407
+ 'application/vnd.kubernetes.protobuf'])
1408
+ # HTTP header 'Content-Type'
1409
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1410
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1411
+ header_params['Content-Type'] = content_type unless content_type.nil?
1412
+
1413
+ # form parameters
1414
+ form_params = opts[:form_params] || {}
1415
+
1416
+ # http body (model)
1417
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1418
+
1419
+ # return_type
1420
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1IngressClass'
1421
+
1422
+ # auth_names
1423
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1424
+
1425
+ new_options = opts.merge(
1426
+ operation: :'NetworkingV1Api.patch_networking_v1_ingress_class',
1427
+ header_params:,
1428
+ query_params:,
1429
+ form_params:,
1430
+ body: post_body,
1431
+ auth_names:,
1432
+ return_type:
1433
+ )
1434
+
1435
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1436
+ if @api_client.config.debugging
1437
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_networking_v1_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1438
+ end
1439
+ [data, status_code, headers]
1440
+ end
1441
+
1442
+ # partially update the specified Ingress
1443
+ # @param name [String] name of the Ingress
1444
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1445
+ # @param body [Object]
1446
+ # @param [Hash] opts the optional parameters
1447
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1448
+ # @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
1449
+ # @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).
1450
+ # @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.
1451
+ # @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.
1452
+ # @return [IoK8sApiNetworkingV1Ingress]
1453
+ def patch_networking_v1_namespaced_ingress(name, namespace, body, opts = {})
1454
+ data, _status_code, _headers = patch_networking_v1_namespaced_ingress_with_http_info(name, namespace, body, opts)
1455
+ data
1456
+ end
1457
+
1458
+ # partially update the specified Ingress
1459
+ # @param name [String] name of the Ingress
1460
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1461
+ # @param body [Object]
1462
+ # @param [Hash] opts the optional parameters
1463
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1464
+ # @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
1465
+ # @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).
1466
+ # @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.
1467
+ # @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.
1468
+ # @return [Array<(IoK8sApiNetworkingV1Ingress, Integer, Hash)>] IoK8sApiNetworkingV1Ingress data, response status code and response headers
1469
+ def patch_networking_v1_namespaced_ingress_with_http_info(name, namespace, body, opts = {})
1470
+ if @api_client.config.debugging
1471
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_networking_v1_namespaced_ingress ...'
1472
+ end
1473
+ # verify the required parameter 'name' is set
1474
+ if @api_client.config.client_side_validation && name.nil?
1475
+ raise ArgumentError,
1476
+ "Missing the required parameter 'name' when calling NetworkingV1Api.patch_networking_v1_namespaced_ingress"
1477
+ end
1478
+ # verify the required parameter 'namespace' is set
1479
+ if @api_client.config.client_side_validation && namespace.nil?
1480
+ raise ArgumentError,
1481
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.patch_networking_v1_namespaced_ingress"
1482
+ end
1483
+ # verify the required parameter 'body' is set
1484
+ if @api_client.config.client_side_validation && body.nil?
1485
+ raise ArgumentError,
1486
+ "Missing the required parameter 'body' when calling NetworkingV1Api.patch_networking_v1_namespaced_ingress"
1487
+ end
1488
+
1489
+ # resource path
1490
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1491
+ '{namespace}', CGI.escape(namespace.to_s)
1492
+ )
1493
+
1494
+ # query parameters
1495
+ query_params = opts[:query_params] || {}
1496
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1497
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1498
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1499
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1500
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1501
+
1502
+ # header parameters
1503
+ header_params = opts[:header_params] || {}
1504
+ # HTTP header 'Accept' (if needed)
1505
+ header_params['Accept'] =
1506
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1507
+ 'application/vnd.kubernetes.protobuf'])
1508
+ # HTTP header 'Content-Type'
1509
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1510
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1511
+ header_params['Content-Type'] = content_type unless content_type.nil?
1512
+
1513
+ # form parameters
1514
+ form_params = opts[:form_params] || {}
1515
+
1516
+ # http body (model)
1517
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1518
+
1519
+ # return_type
1520
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1Ingress'
1521
+
1522
+ # auth_names
1523
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1524
+
1525
+ new_options = opts.merge(
1526
+ operation: :'NetworkingV1Api.patch_networking_v1_namespaced_ingress',
1527
+ header_params:,
1528
+ query_params:,
1529
+ form_params:,
1530
+ body: post_body,
1531
+ auth_names:,
1532
+ return_type:
1533
+ )
1534
+
1535
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1536
+ if @api_client.config.debugging
1537
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_networking_v1_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1538
+ end
1539
+ [data, status_code, headers]
1540
+ end
1541
+
1542
+ # partially update status of the specified Ingress
1543
+ # @param name [String] name of the Ingress
1544
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1545
+ # @param body [Object]
1546
+ # @param [Hash] opts the optional parameters
1547
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1548
+ # @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
1549
+ # @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).
1550
+ # @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.
1551
+ # @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.
1552
+ # @return [IoK8sApiNetworkingV1Ingress]
1553
+ def patch_networking_v1_namespaced_ingress_status(name, namespace, body, opts = {})
1554
+ data, _status_code, _headers = patch_networking_v1_namespaced_ingress_status_with_http_info(name, namespace,
1555
+ body, opts)
1556
+ data
1557
+ end
1558
+
1559
+ # partially update status of the specified Ingress
1560
+ # @param name [String] name of the Ingress
1561
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1562
+ # @param body [Object]
1563
+ # @param [Hash] opts the optional parameters
1564
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1565
+ # @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
1566
+ # @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).
1567
+ # @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.
1568
+ # @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.
1569
+ # @return [Array<(IoK8sApiNetworkingV1Ingress, Integer, Hash)>] IoK8sApiNetworkingV1Ingress data, response status code and response headers
1570
+ def patch_networking_v1_namespaced_ingress_status_with_http_info(name, namespace, body, opts = {})
1571
+ if @api_client.config.debugging
1572
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_networking_v1_namespaced_ingress_status ...'
1573
+ end
1574
+ # verify the required parameter 'name' is set
1575
+ if @api_client.config.client_side_validation && name.nil?
1576
+ raise ArgumentError,
1577
+ "Missing the required parameter 'name' when calling NetworkingV1Api.patch_networking_v1_namespaced_ingress_status"
1578
+ end
1579
+ # verify the required parameter 'namespace' is set
1580
+ if @api_client.config.client_side_validation && namespace.nil?
1581
+ raise ArgumentError,
1582
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.patch_networking_v1_namespaced_ingress_status"
1583
+ end
1584
+ # verify the required parameter 'body' is set
1585
+ if @api_client.config.client_side_validation && body.nil?
1586
+ raise ArgumentError,
1587
+ "Missing the required parameter 'body' when calling NetworkingV1Api.patch_networking_v1_namespaced_ingress_status"
1588
+ end
1589
+
1590
+ # resource path
1591
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1592
+ '{namespace}', CGI.escape(namespace.to_s)
1593
+ )
1594
+
1595
+ # query parameters
1596
+ query_params = opts[:query_params] || {}
1597
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1598
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1599
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1600
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1601
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1602
+
1603
+ # header parameters
1604
+ header_params = opts[:header_params] || {}
1605
+ # HTTP header 'Accept' (if needed)
1606
+ header_params['Accept'] =
1607
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1608
+ 'application/vnd.kubernetes.protobuf'])
1609
+ # HTTP header 'Content-Type'
1610
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1611
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1612
+ header_params['Content-Type'] = content_type unless content_type.nil?
1613
+
1614
+ # form parameters
1615
+ form_params = opts[:form_params] || {}
1616
+
1617
+ # http body (model)
1618
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1619
+
1620
+ # return_type
1621
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1Ingress'
1622
+
1623
+ # auth_names
1624
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1625
+
1626
+ new_options = opts.merge(
1627
+ operation: :'NetworkingV1Api.patch_networking_v1_namespaced_ingress_status',
1628
+ header_params:,
1629
+ query_params:,
1630
+ form_params:,
1631
+ body: post_body,
1632
+ auth_names:,
1633
+ return_type:
1634
+ )
1635
+
1636
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1637
+ if @api_client.config.debugging
1638
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_networking_v1_namespaced_ingress_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1639
+ end
1640
+ [data, status_code, headers]
1641
+ end
1642
+
1643
+ # partially update the specified NetworkPolicy
1644
+ # @param name [String] name of the NetworkPolicy
1645
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1646
+ # @param body [Object]
1647
+ # @param [Hash] opts the optional parameters
1648
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1649
+ # @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
1650
+ # @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).
1651
+ # @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.
1652
+ # @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.
1653
+ # @return [IoK8sApiNetworkingV1NetworkPolicy]
1654
+ def patch_networking_v1_namespaced_network_policy(name, namespace, body, opts = {})
1655
+ data, _status_code, _headers = patch_networking_v1_namespaced_network_policy_with_http_info(name, namespace,
1656
+ body, opts)
1657
+ data
1658
+ end
1659
+
1660
+ # partially update the specified NetworkPolicy
1661
+ # @param name [String] name of the NetworkPolicy
1662
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1663
+ # @param body [Object]
1664
+ # @param [Hash] opts the optional parameters
1665
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1666
+ # @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
1667
+ # @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).
1668
+ # @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.
1669
+ # @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.
1670
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicy, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicy data, response status code and response headers
1671
+ def patch_networking_v1_namespaced_network_policy_with_http_info(name, namespace, body, opts = {})
1672
+ if @api_client.config.debugging
1673
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_networking_v1_namespaced_network_policy ...'
1674
+ end
1675
+ # verify the required parameter 'name' is set
1676
+ if @api_client.config.client_side_validation && name.nil?
1677
+ raise ArgumentError,
1678
+ "Missing the required parameter 'name' when calling NetworkingV1Api.patch_networking_v1_namespaced_network_policy"
1679
+ end
1680
+ # verify the required parameter 'namespace' is set
1681
+ if @api_client.config.client_side_validation && namespace.nil?
1682
+ raise ArgumentError,
1683
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.patch_networking_v1_namespaced_network_policy"
1684
+ end
1685
+ # verify the required parameter 'body' is set
1686
+ if @api_client.config.client_side_validation && body.nil?
1687
+ raise ArgumentError,
1688
+ "Missing the required parameter 'body' when calling NetworkingV1Api.patch_networking_v1_namespaced_network_policy"
1689
+ end
1690
+
1691
+ # resource path
1692
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1693
+ '{namespace}', CGI.escape(namespace.to_s)
1694
+ )
1695
+
1696
+ # query parameters
1697
+ query_params = opts[:query_params] || {}
1698
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1699
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1700
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1701
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1702
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1703
+
1704
+ # header parameters
1705
+ header_params = opts[:header_params] || {}
1706
+ # HTTP header 'Accept' (if needed)
1707
+ header_params['Accept'] =
1708
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1709
+ 'application/vnd.kubernetes.protobuf'])
1710
+ # HTTP header 'Content-Type'
1711
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1712
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1713
+ header_params['Content-Type'] = content_type unless content_type.nil?
1714
+
1715
+ # form parameters
1716
+ form_params = opts[:form_params] || {}
1717
+
1718
+ # http body (model)
1719
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1720
+
1721
+ # return_type
1722
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicy'
1723
+
1724
+ # auth_names
1725
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1726
+
1727
+ new_options = opts.merge(
1728
+ operation: :'NetworkingV1Api.patch_networking_v1_namespaced_network_policy',
1729
+ header_params:,
1730
+ query_params:,
1731
+ form_params:,
1732
+ body: post_body,
1733
+ auth_names:,
1734
+ return_type:
1735
+ )
1736
+
1737
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1738
+ if @api_client.config.debugging
1739
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_networking_v1_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1740
+ end
1741
+ [data, status_code, headers]
1742
+ end
1743
+
1744
+ # partially update status of the specified NetworkPolicy
1745
+ # @param name [String] name of the NetworkPolicy
1746
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1747
+ # @param body [Object]
1748
+ # @param [Hash] opts the optional parameters
1749
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1750
+ # @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
1751
+ # @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).
1752
+ # @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.
1753
+ # @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.
1754
+ # @return [IoK8sApiNetworkingV1NetworkPolicy]
1755
+ def patch_networking_v1_namespaced_network_policy_status(name, namespace, body, opts = {})
1756
+ data, _status_code, _headers = patch_networking_v1_namespaced_network_policy_status_with_http_info(name,
1757
+ namespace, body, opts)
1758
+ data
1759
+ end
1760
+
1761
+ # partially update status of the specified NetworkPolicy
1762
+ # @param name [String] name of the NetworkPolicy
1763
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1764
+ # @param body [Object]
1765
+ # @param [Hash] opts the optional parameters
1766
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1767
+ # @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
1768
+ # @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).
1769
+ # @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.
1770
+ # @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.
1771
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicy, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicy data, response status code and response headers
1772
+ def patch_networking_v1_namespaced_network_policy_status_with_http_info(name, namespace, body, opts = {})
1773
+ if @api_client.config.debugging
1774
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_networking_v1_namespaced_network_policy_status ...'
1775
+ end
1776
+ # verify the required parameter 'name' is set
1777
+ if @api_client.config.client_side_validation && name.nil?
1778
+ raise ArgumentError,
1779
+ "Missing the required parameter 'name' when calling NetworkingV1Api.patch_networking_v1_namespaced_network_policy_status"
1780
+ end
1781
+ # verify the required parameter 'namespace' is set
1782
+ if @api_client.config.client_side_validation && namespace.nil?
1783
+ raise ArgumentError,
1784
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.patch_networking_v1_namespaced_network_policy_status"
1785
+ end
1786
+ # verify the required parameter 'body' is set
1787
+ if @api_client.config.client_side_validation && body.nil?
1788
+ raise ArgumentError,
1789
+ "Missing the required parameter 'body' when calling NetworkingV1Api.patch_networking_v1_namespaced_network_policy_status"
1790
+ end
1791
+
1792
+ # resource path
1793
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
1794
+ '{namespace}', CGI.escape(namespace.to_s)
1795
+ )
1796
+
1797
+ # query parameters
1798
+ query_params = opts[:query_params] || {}
1799
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1800
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1801
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1802
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1803
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1804
+
1805
+ # header parameters
1806
+ header_params = opts[:header_params] || {}
1807
+ # HTTP header 'Accept' (if needed)
1808
+ header_params['Accept'] =
1809
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1810
+ 'application/vnd.kubernetes.protobuf'])
1811
+ # HTTP header 'Content-Type'
1812
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1813
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1814
+ header_params['Content-Type'] = content_type unless content_type.nil?
1815
+
1816
+ # form parameters
1817
+ form_params = opts[:form_params] || {}
1818
+
1819
+ # http body (model)
1820
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1821
+
1822
+ # return_type
1823
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicy'
1824
+
1825
+ # auth_names
1826
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1827
+
1828
+ new_options = opts.merge(
1829
+ operation: :'NetworkingV1Api.patch_networking_v1_namespaced_network_policy_status',
1830
+ header_params:,
1831
+ query_params:,
1832
+ form_params:,
1833
+ body: post_body,
1834
+ auth_names:,
1835
+ return_type:
1836
+ )
1837
+
1838
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1839
+ if @api_client.config.debugging
1840
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_networking_v1_namespaced_network_policy_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1841
+ end
1842
+ [data, status_code, headers]
1843
+ end
1844
+
1845
+ # read the specified IngressClass
1846
+ # @param name [String] name of the IngressClass
1847
+ # @param [Hash] opts the optional parameters
1848
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1849
+ # @return [IoK8sApiNetworkingV1IngressClass]
1850
+ def read_networking_v1_ingress_class(name, opts = {})
1851
+ data, _status_code, _headers = read_networking_v1_ingress_class_with_http_info(name, opts)
1852
+ data
1853
+ end
1854
+
1855
+ # read the specified IngressClass
1856
+ # @param name [String] name of the IngressClass
1857
+ # @param [Hash] opts the optional parameters
1858
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1859
+ # @return [Array<(IoK8sApiNetworkingV1IngressClass, Integer, Hash)>] IoK8sApiNetworkingV1IngressClass data, response status code and response headers
1860
+ def read_networking_v1_ingress_class_with_http_info(name, opts = {})
1861
+ if @api_client.config.debugging
1862
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_networking_v1_ingress_class ...'
1863
+ end
1864
+ # verify the required parameter 'name' is set
1865
+ if @api_client.config.client_side_validation && name.nil?
1866
+ raise ArgumentError,
1867
+ "Missing the required parameter 'name' when calling NetworkingV1Api.read_networking_v1_ingress_class"
1868
+ end
1869
+
1870
+ # resource path
1871
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{name}', CGI.escape(name.to_s))
1872
+
1873
+ # query parameters
1874
+ query_params = opts[:query_params] || {}
1875
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1876
+
1877
+ # header parameters
1878
+ header_params = opts[:header_params] || {}
1879
+ # HTTP header 'Accept' (if needed)
1880
+ header_params['Accept'] =
1881
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1882
+ 'application/vnd.kubernetes.protobuf'])
1883
+
1884
+ # form parameters
1885
+ form_params = opts[:form_params] || {}
1886
+
1887
+ # http body (model)
1888
+ post_body = opts[:debug_body]
1889
+
1890
+ # return_type
1891
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1IngressClass'
1892
+
1893
+ # auth_names
1894
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1895
+
1896
+ new_options = opts.merge(
1897
+ operation: :'NetworkingV1Api.read_networking_v1_ingress_class',
1898
+ header_params:,
1899
+ query_params:,
1900
+ form_params:,
1901
+ body: post_body,
1902
+ auth_names:,
1903
+ return_type:
1904
+ )
1905
+
1906
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1907
+ if @api_client.config.debugging
1908
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_networking_v1_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1909
+ end
1910
+ [data, status_code, headers]
1911
+ end
1912
+
1913
+ # read the specified Ingress
1914
+ # @param name [String] name of the Ingress
1915
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1916
+ # @param [Hash] opts the optional parameters
1917
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1918
+ # @return [IoK8sApiNetworkingV1Ingress]
1919
+ def read_networking_v1_namespaced_ingress(name, namespace, opts = {})
1920
+ data, _status_code, _headers = read_networking_v1_namespaced_ingress_with_http_info(name, namespace, opts)
1921
+ data
1922
+ end
1923
+
1924
+ # read the specified Ingress
1925
+ # @param name [String] name of the Ingress
1926
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1927
+ # @param [Hash] opts the optional parameters
1928
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1929
+ # @return [Array<(IoK8sApiNetworkingV1Ingress, Integer, Hash)>] IoK8sApiNetworkingV1Ingress data, response status code and response headers
1930
+ def read_networking_v1_namespaced_ingress_with_http_info(name, namespace, opts = {})
1931
+ if @api_client.config.debugging
1932
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_networking_v1_namespaced_ingress ...'
1933
+ end
1934
+ # verify the required parameter 'name' is set
1935
+ if @api_client.config.client_side_validation && name.nil?
1936
+ raise ArgumentError,
1937
+ "Missing the required parameter 'name' when calling NetworkingV1Api.read_networking_v1_namespaced_ingress"
1938
+ end
1939
+ # verify the required parameter 'namespace' is set
1940
+ if @api_client.config.client_side_validation && namespace.nil?
1941
+ raise ArgumentError,
1942
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.read_networking_v1_namespaced_ingress"
1943
+ end
1944
+
1945
+ # resource path
1946
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
1947
+ '{namespace}', CGI.escape(namespace.to_s)
1948
+ )
1949
+
1950
+ # query parameters
1951
+ query_params = opts[:query_params] || {}
1952
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1953
+
1954
+ # header parameters
1955
+ header_params = opts[:header_params] || {}
1956
+ # HTTP header 'Accept' (if needed)
1957
+ header_params['Accept'] =
1958
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1959
+ 'application/vnd.kubernetes.protobuf'])
1960
+
1961
+ # form parameters
1962
+ form_params = opts[:form_params] || {}
1963
+
1964
+ # http body (model)
1965
+ post_body = opts[:debug_body]
1966
+
1967
+ # return_type
1968
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1Ingress'
1969
+
1970
+ # auth_names
1971
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1972
+
1973
+ new_options = opts.merge(
1974
+ operation: :'NetworkingV1Api.read_networking_v1_namespaced_ingress',
1975
+ header_params:,
1976
+ query_params:,
1977
+ form_params:,
1978
+ body: post_body,
1979
+ auth_names:,
1980
+ return_type:
1981
+ )
1982
+
1983
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1984
+ if @api_client.config.debugging
1985
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_networking_v1_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1986
+ end
1987
+ [data, status_code, headers]
1988
+ end
1989
+
1990
+ # read status of the specified Ingress
1991
+ # @param name [String] name of the Ingress
1992
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1993
+ # @param [Hash] opts the optional parameters
1994
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1995
+ # @return [IoK8sApiNetworkingV1Ingress]
1996
+ def read_networking_v1_namespaced_ingress_status(name, namespace, opts = {})
1997
+ data, _status_code, _headers = read_networking_v1_namespaced_ingress_status_with_http_info(name, namespace, opts)
1998
+ data
1999
+ end
2000
+
2001
+ # read status of the specified Ingress
2002
+ # @param name [String] name of the Ingress
2003
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2004
+ # @param [Hash] opts the optional parameters
2005
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2006
+ # @return [Array<(IoK8sApiNetworkingV1Ingress, Integer, Hash)>] IoK8sApiNetworkingV1Ingress data, response status code and response headers
2007
+ def read_networking_v1_namespaced_ingress_status_with_http_info(name, namespace, opts = {})
2008
+ if @api_client.config.debugging
2009
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_networking_v1_namespaced_ingress_status ...'
2010
+ end
2011
+ # verify the required parameter 'name' is set
2012
+ if @api_client.config.client_side_validation && name.nil?
2013
+ raise ArgumentError,
2014
+ "Missing the required parameter 'name' when calling NetworkingV1Api.read_networking_v1_namespaced_ingress_status"
2015
+ end
2016
+ # verify the required parameter 'namespace' is set
2017
+ if @api_client.config.client_side_validation && namespace.nil?
2018
+ raise ArgumentError,
2019
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.read_networking_v1_namespaced_ingress_status"
2020
+ end
2021
+
2022
+ # resource path
2023
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
2024
+ '{namespace}', CGI.escape(namespace.to_s)
2025
+ )
2026
+
2027
+ # query parameters
2028
+ query_params = opts[:query_params] || {}
2029
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2030
+
2031
+ # header parameters
2032
+ header_params = opts[:header_params] || {}
2033
+ # HTTP header 'Accept' (if needed)
2034
+ header_params['Accept'] =
2035
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2036
+ 'application/vnd.kubernetes.protobuf'])
2037
+
2038
+ # form parameters
2039
+ form_params = opts[:form_params] || {}
2040
+
2041
+ # http body (model)
2042
+ post_body = opts[:debug_body]
2043
+
2044
+ # return_type
2045
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1Ingress'
2046
+
2047
+ # auth_names
2048
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2049
+
2050
+ new_options = opts.merge(
2051
+ operation: :'NetworkingV1Api.read_networking_v1_namespaced_ingress_status',
2052
+ header_params:,
2053
+ query_params:,
2054
+ form_params:,
2055
+ body: post_body,
2056
+ auth_names:,
2057
+ return_type:
2058
+ )
2059
+
2060
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2061
+ if @api_client.config.debugging
2062
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_networking_v1_namespaced_ingress_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2063
+ end
2064
+ [data, status_code, headers]
2065
+ end
2066
+
2067
+ # read the specified NetworkPolicy
2068
+ # @param name [String] name of the NetworkPolicy
2069
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2070
+ # @param [Hash] opts the optional parameters
2071
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2072
+ # @return [IoK8sApiNetworkingV1NetworkPolicy]
2073
+ def read_networking_v1_namespaced_network_policy(name, namespace, opts = {})
2074
+ data, _status_code, _headers = read_networking_v1_namespaced_network_policy_with_http_info(name, namespace, opts)
2075
+ data
2076
+ end
2077
+
2078
+ # read the specified NetworkPolicy
2079
+ # @param name [String] name of the NetworkPolicy
2080
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2081
+ # @param [Hash] opts the optional parameters
2082
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2083
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicy, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicy data, response status code and response headers
2084
+ def read_networking_v1_namespaced_network_policy_with_http_info(name, namespace, opts = {})
2085
+ if @api_client.config.debugging
2086
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_networking_v1_namespaced_network_policy ...'
2087
+ end
2088
+ # verify the required parameter 'name' is set
2089
+ if @api_client.config.client_side_validation && name.nil?
2090
+ raise ArgumentError,
2091
+ "Missing the required parameter 'name' when calling NetworkingV1Api.read_networking_v1_namespaced_network_policy"
2092
+ end
2093
+ # verify the required parameter 'namespace' is set
2094
+ if @api_client.config.client_side_validation && namespace.nil?
2095
+ raise ArgumentError,
2096
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.read_networking_v1_namespaced_network_policy"
2097
+ end
2098
+
2099
+ # resource path
2100
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
2101
+ '{namespace}', CGI.escape(namespace.to_s)
2102
+ )
2103
+
2104
+ # query parameters
2105
+ query_params = opts[:query_params] || {}
2106
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2107
+
2108
+ # header parameters
2109
+ header_params = opts[:header_params] || {}
2110
+ # HTTP header 'Accept' (if needed)
2111
+ header_params['Accept'] =
2112
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2113
+ 'application/vnd.kubernetes.protobuf'])
2114
+
2115
+ # form parameters
2116
+ form_params = opts[:form_params] || {}
2117
+
2118
+ # http body (model)
2119
+ post_body = opts[:debug_body]
2120
+
2121
+ # return_type
2122
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicy'
2123
+
2124
+ # auth_names
2125
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2126
+
2127
+ new_options = opts.merge(
2128
+ operation: :'NetworkingV1Api.read_networking_v1_namespaced_network_policy',
2129
+ header_params:,
2130
+ query_params:,
2131
+ form_params:,
2132
+ body: post_body,
2133
+ auth_names:,
2134
+ return_type:
2135
+ )
2136
+
2137
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2138
+ if @api_client.config.debugging
2139
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_networking_v1_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2140
+ end
2141
+ [data, status_code, headers]
2142
+ end
2143
+
2144
+ # read status of the specified NetworkPolicy
2145
+ # @param name [String] name of the NetworkPolicy
2146
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2147
+ # @param [Hash] opts the optional parameters
2148
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2149
+ # @return [IoK8sApiNetworkingV1NetworkPolicy]
2150
+ def read_networking_v1_namespaced_network_policy_status(name, namespace, opts = {})
2151
+ data, _status_code, _headers = read_networking_v1_namespaced_network_policy_status_with_http_info(name,
2152
+ namespace, opts)
2153
+ data
2154
+ end
2155
+
2156
+ # read status of the specified NetworkPolicy
2157
+ # @param name [String] name of the NetworkPolicy
2158
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2159
+ # @param [Hash] opts the optional parameters
2160
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2161
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicy, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicy data, response status code and response headers
2162
+ def read_networking_v1_namespaced_network_policy_status_with_http_info(name, namespace, opts = {})
2163
+ if @api_client.config.debugging
2164
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_networking_v1_namespaced_network_policy_status ...'
2165
+ end
2166
+ # verify the required parameter 'name' is set
2167
+ if @api_client.config.client_side_validation && name.nil?
2168
+ raise ArgumentError,
2169
+ "Missing the required parameter 'name' when calling NetworkingV1Api.read_networking_v1_namespaced_network_policy_status"
2170
+ end
2171
+ # verify the required parameter 'namespace' is set
2172
+ if @api_client.config.client_side_validation && namespace.nil?
2173
+ raise ArgumentError,
2174
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.read_networking_v1_namespaced_network_policy_status"
2175
+ end
2176
+
2177
+ # resource path
2178
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
2179
+ '{namespace}', CGI.escape(namespace.to_s)
2180
+ )
2181
+
2182
+ # query parameters
2183
+ query_params = opts[:query_params] || {}
2184
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2185
+
2186
+ # header parameters
2187
+ header_params = opts[:header_params] || {}
2188
+ # HTTP header 'Accept' (if needed)
2189
+ header_params['Accept'] =
2190
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2191
+ 'application/vnd.kubernetes.protobuf'])
2192
+
2193
+ # form parameters
2194
+ form_params = opts[:form_params] || {}
2195
+
2196
+ # http body (model)
2197
+ post_body = opts[:debug_body]
2198
+
2199
+ # return_type
2200
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicy'
2201
+
2202
+ # auth_names
2203
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2204
+
2205
+ new_options = opts.merge(
2206
+ operation: :'NetworkingV1Api.read_networking_v1_namespaced_network_policy_status',
2207
+ header_params:,
2208
+ query_params:,
2209
+ form_params:,
2210
+ body: post_body,
2211
+ auth_names:,
2212
+ return_type:
2213
+ )
2214
+
2215
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2216
+ if @api_client.config.debugging
2217
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_networking_v1_namespaced_network_policy_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2218
+ end
2219
+ [data, status_code, headers]
2220
+ end
2221
+
2222
+ # replace the specified IngressClass
2223
+ # @param name [String] name of the IngressClass
2224
+ # @param body [IoK8sApiNetworkingV1IngressClass]
2225
+ # @param [Hash] opts the optional parameters
2226
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2227
+ # @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
2228
+ # @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.
2229
+ # @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.
2230
+ # @return [IoK8sApiNetworkingV1IngressClass]
2231
+ def replace_networking_v1_ingress_class(name, body, opts = {})
2232
+ data, _status_code, _headers = replace_networking_v1_ingress_class_with_http_info(name, body, opts)
2233
+ data
2234
+ end
2235
+
2236
+ # replace the specified IngressClass
2237
+ # @param name [String] name of the IngressClass
2238
+ # @param body [IoK8sApiNetworkingV1IngressClass]
2239
+ # @param [Hash] opts the optional parameters
2240
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2241
+ # @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
2242
+ # @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.
2243
+ # @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.
2244
+ # @return [Array<(IoK8sApiNetworkingV1IngressClass, Integer, Hash)>] IoK8sApiNetworkingV1IngressClass data, response status code and response headers
2245
+ def replace_networking_v1_ingress_class_with_http_info(name, body, opts = {})
2246
+ if @api_client.config.debugging
2247
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_networking_v1_ingress_class ...'
2248
+ end
2249
+ # verify the required parameter 'name' is set
2250
+ if @api_client.config.client_side_validation && name.nil?
2251
+ raise ArgumentError,
2252
+ "Missing the required parameter 'name' when calling NetworkingV1Api.replace_networking_v1_ingress_class"
2253
+ end
2254
+ # verify the required parameter 'body' is set
2255
+ if @api_client.config.client_side_validation && body.nil?
2256
+ raise ArgumentError,
2257
+ "Missing the required parameter 'body' when calling NetworkingV1Api.replace_networking_v1_ingress_class"
2258
+ end
2259
+
2260
+ # resource path
2261
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{name}', CGI.escape(name.to_s))
2262
+
2263
+ # query parameters
2264
+ query_params = opts[:query_params] || {}
2265
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2266
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2267
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
2268
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
2269
+
2270
+ # header parameters
2271
+ header_params = opts[:header_params] || {}
2272
+ # HTTP header 'Accept' (if needed)
2273
+ header_params['Accept'] =
2274
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2275
+ 'application/vnd.kubernetes.protobuf'])
2276
+
2277
+ # form parameters
2278
+ form_params = opts[:form_params] || {}
2279
+
2280
+ # http body (model)
2281
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2282
+
2283
+ # return_type
2284
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1IngressClass'
2285
+
2286
+ # auth_names
2287
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2288
+
2289
+ new_options = opts.merge(
2290
+ operation: :'NetworkingV1Api.replace_networking_v1_ingress_class',
2291
+ header_params:,
2292
+ query_params:,
2293
+ form_params:,
2294
+ body: post_body,
2295
+ auth_names:,
2296
+ return_type:
2297
+ )
2298
+
2299
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2300
+ if @api_client.config.debugging
2301
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_networking_v1_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2302
+ end
2303
+ [data, status_code, headers]
2304
+ end
2305
+
2306
+ # replace the specified Ingress
2307
+ # @param name [String] name of the Ingress
2308
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2309
+ # @param body [IoK8sApiNetworkingV1Ingress]
2310
+ # @param [Hash] opts the optional parameters
2311
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2312
+ # @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
2313
+ # @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.
2314
+ # @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.
2315
+ # @return [IoK8sApiNetworkingV1Ingress]
2316
+ def replace_networking_v1_namespaced_ingress(name, namespace, body, opts = {})
2317
+ data, _status_code, _headers = replace_networking_v1_namespaced_ingress_with_http_info(name, namespace, body,
2318
+ opts)
2319
+ data
2320
+ end
2321
+
2322
+ # replace the specified Ingress
2323
+ # @param name [String] name of the Ingress
2324
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2325
+ # @param body [IoK8sApiNetworkingV1Ingress]
2326
+ # @param [Hash] opts the optional parameters
2327
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2328
+ # @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
2329
+ # @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.
2330
+ # @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.
2331
+ # @return [Array<(IoK8sApiNetworkingV1Ingress, Integer, Hash)>] IoK8sApiNetworkingV1Ingress data, response status code and response headers
2332
+ def replace_networking_v1_namespaced_ingress_with_http_info(name, namespace, body, opts = {})
2333
+ if @api_client.config.debugging
2334
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_networking_v1_namespaced_ingress ...'
2335
+ end
2336
+ # verify the required parameter 'name' is set
2337
+ if @api_client.config.client_side_validation && name.nil?
2338
+ raise ArgumentError,
2339
+ "Missing the required parameter 'name' when calling NetworkingV1Api.replace_networking_v1_namespaced_ingress"
2340
+ end
2341
+ # verify the required parameter 'namespace' is set
2342
+ if @api_client.config.client_side_validation && namespace.nil?
2343
+ raise ArgumentError,
2344
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.replace_networking_v1_namespaced_ingress"
2345
+ end
2346
+ # verify the required parameter 'body' is set
2347
+ if @api_client.config.client_side_validation && body.nil?
2348
+ raise ArgumentError,
2349
+ "Missing the required parameter 'body' when calling NetworkingV1Api.replace_networking_v1_namespaced_ingress"
2350
+ end
2351
+
2352
+ # resource path
2353
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
2354
+ '{namespace}', CGI.escape(namespace.to_s)
2355
+ )
2356
+
2357
+ # query parameters
2358
+ query_params = opts[:query_params] || {}
2359
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2360
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2361
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
2362
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
2363
+
2364
+ # header parameters
2365
+ header_params = opts[:header_params] || {}
2366
+ # HTTP header 'Accept' (if needed)
2367
+ header_params['Accept'] =
2368
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2369
+ 'application/vnd.kubernetes.protobuf'])
2370
+
2371
+ # form parameters
2372
+ form_params = opts[:form_params] || {}
2373
+
2374
+ # http body (model)
2375
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2376
+
2377
+ # return_type
2378
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1Ingress'
2379
+
2380
+ # auth_names
2381
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2382
+
2383
+ new_options = opts.merge(
2384
+ operation: :'NetworkingV1Api.replace_networking_v1_namespaced_ingress',
2385
+ header_params:,
2386
+ query_params:,
2387
+ form_params:,
2388
+ body: post_body,
2389
+ auth_names:,
2390
+ return_type:
2391
+ )
2392
+
2393
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2394
+ if @api_client.config.debugging
2395
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_networking_v1_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2396
+ end
2397
+ [data, status_code, headers]
2398
+ end
2399
+
2400
+ # replace status of the specified Ingress
2401
+ # @param name [String] name of the Ingress
2402
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2403
+ # @param body [IoK8sApiNetworkingV1Ingress]
2404
+ # @param [Hash] opts the optional parameters
2405
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2406
+ # @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
2407
+ # @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.
2408
+ # @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.
2409
+ # @return [IoK8sApiNetworkingV1Ingress]
2410
+ def replace_networking_v1_namespaced_ingress_status(name, namespace, body, opts = {})
2411
+ data, _status_code, _headers = replace_networking_v1_namespaced_ingress_status_with_http_info(name, namespace,
2412
+ body, opts)
2413
+ data
2414
+ end
2415
+
2416
+ # replace status of the specified Ingress
2417
+ # @param name [String] name of the Ingress
2418
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2419
+ # @param body [IoK8sApiNetworkingV1Ingress]
2420
+ # @param [Hash] opts the optional parameters
2421
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2422
+ # @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
2423
+ # @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.
2424
+ # @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.
2425
+ # @return [Array<(IoK8sApiNetworkingV1Ingress, Integer, Hash)>] IoK8sApiNetworkingV1Ingress data, response status code and response headers
2426
+ def replace_networking_v1_namespaced_ingress_status_with_http_info(name, namespace, body, opts = {})
2427
+ if @api_client.config.debugging
2428
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_networking_v1_namespaced_ingress_status ...'
2429
+ end
2430
+ # verify the required parameter 'name' is set
2431
+ if @api_client.config.client_side_validation && name.nil?
2432
+ raise ArgumentError,
2433
+ "Missing the required parameter 'name' when calling NetworkingV1Api.replace_networking_v1_namespaced_ingress_status"
2434
+ end
2435
+ # verify the required parameter 'namespace' is set
2436
+ if @api_client.config.client_side_validation && namespace.nil?
2437
+ raise ArgumentError,
2438
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.replace_networking_v1_namespaced_ingress_status"
2439
+ end
2440
+ # verify the required parameter 'body' is set
2441
+ if @api_client.config.client_side_validation && body.nil?
2442
+ raise ArgumentError,
2443
+ "Missing the required parameter 'body' when calling NetworkingV1Api.replace_networking_v1_namespaced_ingress_status"
2444
+ end
2445
+
2446
+ # resource path
2447
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
2448
+ '{namespace}', CGI.escape(namespace.to_s)
2449
+ )
2450
+
2451
+ # query parameters
2452
+ query_params = opts[:query_params] || {}
2453
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2454
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2455
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
2456
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
2457
+
2458
+ # header parameters
2459
+ header_params = opts[:header_params] || {}
2460
+ # HTTP header 'Accept' (if needed)
2461
+ header_params['Accept'] =
2462
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2463
+ 'application/vnd.kubernetes.protobuf'])
2464
+
2465
+ # form parameters
2466
+ form_params = opts[:form_params] || {}
2467
+
2468
+ # http body (model)
2469
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2470
+
2471
+ # return_type
2472
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1Ingress'
2473
+
2474
+ # auth_names
2475
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2476
+
2477
+ new_options = opts.merge(
2478
+ operation: :'NetworkingV1Api.replace_networking_v1_namespaced_ingress_status',
2479
+ header_params:,
2480
+ query_params:,
2481
+ form_params:,
2482
+ body: post_body,
2483
+ auth_names:,
2484
+ return_type:
2485
+ )
2486
+
2487
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2488
+ if @api_client.config.debugging
2489
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_networking_v1_namespaced_ingress_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2490
+ end
2491
+ [data, status_code, headers]
2492
+ end
2493
+
2494
+ # replace the specified NetworkPolicy
2495
+ # @param name [String] name of the NetworkPolicy
2496
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2497
+ # @param body [IoK8sApiNetworkingV1NetworkPolicy]
2498
+ # @param [Hash] opts the optional parameters
2499
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2500
+ # @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
2501
+ # @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.
2502
+ # @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.
2503
+ # @return [IoK8sApiNetworkingV1NetworkPolicy]
2504
+ def replace_networking_v1_namespaced_network_policy(name, namespace, body, opts = {})
2505
+ data, _status_code, _headers = replace_networking_v1_namespaced_network_policy_with_http_info(name, namespace,
2506
+ body, opts)
2507
+ data
2508
+ end
2509
+
2510
+ # replace the specified NetworkPolicy
2511
+ # @param name [String] name of the NetworkPolicy
2512
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2513
+ # @param body [IoK8sApiNetworkingV1NetworkPolicy]
2514
+ # @param [Hash] opts the optional parameters
2515
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2516
+ # @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
2517
+ # @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.
2518
+ # @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.
2519
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicy, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicy data, response status code and response headers
2520
+ def replace_networking_v1_namespaced_network_policy_with_http_info(name, namespace, body, opts = {})
2521
+ if @api_client.config.debugging
2522
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_networking_v1_namespaced_network_policy ...'
2523
+ end
2524
+ # verify the required parameter 'name' is set
2525
+ if @api_client.config.client_side_validation && name.nil?
2526
+ raise ArgumentError,
2527
+ "Missing the required parameter 'name' when calling NetworkingV1Api.replace_networking_v1_namespaced_network_policy"
2528
+ end
2529
+ # verify the required parameter 'namespace' is set
2530
+ if @api_client.config.client_side_validation && namespace.nil?
2531
+ raise ArgumentError,
2532
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.replace_networking_v1_namespaced_network_policy"
2533
+ end
2534
+ # verify the required parameter 'body' is set
2535
+ if @api_client.config.client_side_validation && body.nil?
2536
+ raise ArgumentError,
2537
+ "Missing the required parameter 'body' when calling NetworkingV1Api.replace_networking_v1_namespaced_network_policy"
2538
+ end
2539
+
2540
+ # resource path
2541
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
2542
+ '{namespace}', CGI.escape(namespace.to_s)
2543
+ )
2544
+
2545
+ # query parameters
2546
+ query_params = opts[:query_params] || {}
2547
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2548
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2549
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
2550
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
2551
+
2552
+ # header parameters
2553
+ header_params = opts[:header_params] || {}
2554
+ # HTTP header 'Accept' (if needed)
2555
+ header_params['Accept'] =
2556
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2557
+ 'application/vnd.kubernetes.protobuf'])
2558
+
2559
+ # form parameters
2560
+ form_params = opts[:form_params] || {}
2561
+
2562
+ # http body (model)
2563
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2564
+
2565
+ # return_type
2566
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicy'
2567
+
2568
+ # auth_names
2569
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2570
+
2571
+ new_options = opts.merge(
2572
+ operation: :'NetworkingV1Api.replace_networking_v1_namespaced_network_policy',
2573
+ header_params:,
2574
+ query_params:,
2575
+ form_params:,
2576
+ body: post_body,
2577
+ auth_names:,
2578
+ return_type:
2579
+ )
2580
+
2581
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2582
+ if @api_client.config.debugging
2583
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_networking_v1_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2584
+ end
2585
+ [data, status_code, headers]
2586
+ end
2587
+
2588
+ # replace status of the specified NetworkPolicy
2589
+ # @param name [String] name of the NetworkPolicy
2590
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2591
+ # @param body [IoK8sApiNetworkingV1NetworkPolicy]
2592
+ # @param [Hash] opts the optional parameters
2593
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2594
+ # @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
2595
+ # @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.
2596
+ # @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.
2597
+ # @return [IoK8sApiNetworkingV1NetworkPolicy]
2598
+ def replace_networking_v1_namespaced_network_policy_status(name, namespace, body, opts = {})
2599
+ data, _status_code, _headers = replace_networking_v1_namespaced_network_policy_status_with_http_info(name,
2600
+ namespace, body, opts)
2601
+ data
2602
+ end
2603
+
2604
+ # replace status of the specified NetworkPolicy
2605
+ # @param name [String] name of the NetworkPolicy
2606
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2607
+ # @param body [IoK8sApiNetworkingV1NetworkPolicy]
2608
+ # @param [Hash] opts the optional parameters
2609
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2610
+ # @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
2611
+ # @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.
2612
+ # @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.
2613
+ # @return [Array<(IoK8sApiNetworkingV1NetworkPolicy, Integer, Hash)>] IoK8sApiNetworkingV1NetworkPolicy data, response status code and response headers
2614
+ def replace_networking_v1_namespaced_network_policy_status_with_http_info(name, namespace, body, opts = {})
2615
+ if @api_client.config.debugging
2616
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_networking_v1_namespaced_network_policy_status ...'
2617
+ end
2618
+ # verify the required parameter 'name' is set
2619
+ if @api_client.config.client_side_validation && name.nil?
2620
+ raise ArgumentError,
2621
+ "Missing the required parameter 'name' when calling NetworkingV1Api.replace_networking_v1_namespaced_network_policy_status"
2622
+ end
2623
+ # verify the required parameter 'namespace' is set
2624
+ if @api_client.config.client_side_validation && namespace.nil?
2625
+ raise ArgumentError,
2626
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.replace_networking_v1_namespaced_network_policy_status"
2627
+ end
2628
+ # verify the required parameter 'body' is set
2629
+ if @api_client.config.client_side_validation && body.nil?
2630
+ raise ArgumentError,
2631
+ "Missing the required parameter 'body' when calling NetworkingV1Api.replace_networking_v1_namespaced_network_policy_status"
2632
+ end
2633
+
2634
+ # resource path
2635
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}/status'.sub('{name}', CGI.escape(name.to_s)).sub(
2636
+ '{namespace}', CGI.escape(namespace.to_s)
2637
+ )
2638
+
2639
+ # query parameters
2640
+ query_params = opts[:query_params] || {}
2641
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2642
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
2643
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
2644
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
2645
+
2646
+ # header parameters
2647
+ header_params = opts[:header_params] || {}
2648
+ # HTTP header 'Accept' (if needed)
2649
+ header_params['Accept'] =
2650
+ @api_client.select_header_accept(['application/json', 'application/yaml',
2651
+ 'application/vnd.kubernetes.protobuf'])
2652
+
2653
+ # form parameters
2654
+ form_params = opts[:form_params] || {}
2655
+
2656
+ # http body (model)
2657
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2658
+
2659
+ # return_type
2660
+ return_type = opts[:debug_return_type] || 'IoK8sApiNetworkingV1NetworkPolicy'
2661
+
2662
+ # auth_names
2663
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2664
+
2665
+ new_options = opts.merge(
2666
+ operation: :'NetworkingV1Api.replace_networking_v1_namespaced_network_policy_status',
2667
+ header_params:,
2668
+ query_params:,
2669
+ form_params:,
2670
+ body: post_body,
2671
+ auth_names:,
2672
+ return_type:
2673
+ )
2674
+
2675
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2676
+ if @api_client.config.debugging
2677
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_networking_v1_namespaced_network_policy_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2678
+ end
2679
+ [data, status_code, headers]
2680
+ end
2681
+
2682
+ # watch changes to an object of kind IngressClass. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
2683
+ # @param name [String] name of the IngressClass
2684
+ # @param [Hash] opts the optional parameters
2685
+ # @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.
2686
+ # @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.
2687
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2688
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2689
+ # @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.
2690
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2691
+ # @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
2692
+ # @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
2693
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2694
+ # @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.
2695
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2696
+ def watch_networking_v1_ingress_class(name, opts = {})
2697
+ data, _status_code, _headers = watch_networking_v1_ingress_class_with_http_info(name, opts)
2698
+ data
2699
+ end
2700
+
2701
+ # watch changes to an object of kind IngressClass. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
2702
+ # @param name [String] name of the IngressClass
2703
+ # @param [Hash] opts the optional parameters
2704
+ # @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.
2705
+ # @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.
2706
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2707
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2708
+ # @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.
2709
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2710
+ # @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
2711
+ # @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
2712
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2713
+ # @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.
2714
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2715
+ def watch_networking_v1_ingress_class_with_http_info(name, opts = {})
2716
+ if @api_client.config.debugging
2717
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_ingress_class ...'
2718
+ end
2719
+ # verify the required parameter 'name' is set
2720
+ if @api_client.config.client_side_validation && name.nil?
2721
+ raise ArgumentError,
2722
+ "Missing the required parameter 'name' when calling NetworkingV1Api.watch_networking_v1_ingress_class"
2723
+ end
2724
+
2725
+ # resource path
2726
+ local_var_path = '/apis/networking.k8s.io/v1/watch/ingressclasses/{name}'.sub('{name}',
2727
+ CGI.escape(name.to_s))
2728
+
2729
+ # query parameters
2730
+ query_params = opts[:query_params] || {}
2731
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2732
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2733
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2734
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2735
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2736
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2737
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2738
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2739
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2740
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2741
+
2742
+ # header parameters
2743
+ header_params = opts[:header_params] || {}
2744
+ # HTTP header 'Accept' (if needed)
2745
+ header_params['Accept'] =
2746
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2747
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2748
+
2749
+ # form parameters
2750
+ form_params = opts[:form_params] || {}
2751
+
2752
+ # http body (model)
2753
+ post_body = opts[:debug_body]
2754
+
2755
+ # return_type
2756
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2757
+
2758
+ # auth_names
2759
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2760
+
2761
+ new_options = opts.merge(
2762
+ operation: :'NetworkingV1Api.watch_networking_v1_ingress_class',
2763
+ header_params:,
2764
+ query_params:,
2765
+ form_params:,
2766
+ body: post_body,
2767
+ auth_names:,
2768
+ return_type:
2769
+ )
2770
+
2771
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2772
+ if @api_client.config.debugging
2773
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2774
+ end
2775
+ [data, status_code, headers]
2776
+ end
2777
+
2778
+ # watch individual changes to a list of IngressClass. deprecated: use the 'watch' parameter with a list operation instead.
2779
+ # @param [Hash] opts the optional parameters
2780
+ # @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.
2781
+ # @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.
2782
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2783
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2784
+ # @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.
2785
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2786
+ # @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
2787
+ # @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
2788
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2789
+ # @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.
2790
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2791
+ def watch_networking_v1_ingress_class_list(opts = {})
2792
+ data, _status_code, _headers = watch_networking_v1_ingress_class_list_with_http_info(opts)
2793
+ data
2794
+ end
2795
+
2796
+ # watch individual changes to a list of IngressClass. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
2797
+ # @param [Hash] opts the optional parameters
2798
+ # @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.
2799
+ # @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.
2800
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2801
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2802
+ # @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.
2803
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2804
+ # @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
2805
+ # @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
2806
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2807
+ # @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.
2808
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2809
+ def watch_networking_v1_ingress_class_list_with_http_info(opts = {})
2810
+ if @api_client.config.debugging
2811
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_ingress_class_list ...'
2812
+ end
2813
+ # resource path
2814
+ local_var_path = '/apis/networking.k8s.io/v1/watch/ingressclasses'
2815
+
2816
+ # query parameters
2817
+ query_params = opts[:query_params] || {}
2818
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2819
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2820
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2821
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2822
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2823
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2824
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2825
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2826
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2827
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2828
+
2829
+ # header parameters
2830
+ header_params = opts[:header_params] || {}
2831
+ # HTTP header 'Accept' (if needed)
2832
+ header_params['Accept'] =
2833
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2834
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2835
+
2836
+ # form parameters
2837
+ form_params = opts[:form_params] || {}
2838
+
2839
+ # http body (model)
2840
+ post_body = opts[:debug_body]
2841
+
2842
+ # return_type
2843
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2844
+
2845
+ # auth_names
2846
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2847
+
2848
+ new_options = opts.merge(
2849
+ operation: :'NetworkingV1Api.watch_networking_v1_ingress_class_list',
2850
+ header_params:,
2851
+ query_params:,
2852
+ form_params:,
2853
+ body: post_body,
2854
+ auth_names:,
2855
+ return_type:
2856
+ )
2857
+
2858
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2859
+ if @api_client.config.debugging
2860
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_ingress_class_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2861
+ end
2862
+ [data, status_code, headers]
2863
+ end
2864
+
2865
+ # watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.
2866
+ # @param [Hash] opts the optional parameters
2867
+ # @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.
2868
+ # @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.
2869
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2870
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2871
+ # @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.
2872
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2873
+ # @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
2874
+ # @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
2875
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2876
+ # @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.
2877
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2878
+ def watch_networking_v1_ingress_list_for_all_namespaces(opts = {})
2879
+ data, _status_code, _headers = watch_networking_v1_ingress_list_for_all_namespaces_with_http_info(opts)
2880
+ data
2881
+ end
2882
+
2883
+ # watch individual changes to a list of Ingress. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
2884
+ # @param [Hash] opts the optional parameters
2885
+ # @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.
2886
+ # @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.
2887
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2888
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2889
+ # @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.
2890
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2891
+ # @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
2892
+ # @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
2893
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2894
+ # @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.
2895
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2896
+ def watch_networking_v1_ingress_list_for_all_namespaces_with_http_info(opts = {})
2897
+ if @api_client.config.debugging
2898
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_ingress_list_for_all_namespaces ...'
2899
+ end
2900
+ # resource path
2901
+ local_var_path = '/apis/networking.k8s.io/v1/watch/ingresses'
2902
+
2903
+ # query parameters
2904
+ query_params = opts[:query_params] || {}
2905
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2906
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2907
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2908
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2909
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2910
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2911
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2912
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2913
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2914
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2915
+
2916
+ # header parameters
2917
+ header_params = opts[:header_params] || {}
2918
+ # HTTP header 'Accept' (if needed)
2919
+ header_params['Accept'] =
2920
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2921
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2922
+
2923
+ # form parameters
2924
+ form_params = opts[:form_params] || {}
2925
+
2926
+ # http body (model)
2927
+ post_body = opts[:debug_body]
2928
+
2929
+ # return_type
2930
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2931
+
2932
+ # auth_names
2933
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2934
+
2935
+ new_options = opts.merge(
2936
+ operation: :'NetworkingV1Api.watch_networking_v1_ingress_list_for_all_namespaces',
2937
+ header_params:,
2938
+ query_params:,
2939
+ form_params:,
2940
+ body: post_body,
2941
+ auth_names:,
2942
+ return_type:
2943
+ )
2944
+
2945
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2946
+ if @api_client.config.debugging
2947
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_ingress_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2948
+ end
2949
+ [data, status_code, headers]
2950
+ end
2951
+
2952
+ # watch changes to an object of kind Ingress. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
2953
+ # @param name [String] name of the Ingress
2954
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2955
+ # @param [Hash] opts the optional parameters
2956
+ # @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.
2957
+ # @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.
2958
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2959
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2960
+ # @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.
2961
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2962
+ # @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
2963
+ # @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
2964
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2965
+ # @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.
2966
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2967
+ def watch_networking_v1_namespaced_ingress(name, namespace, opts = {})
2968
+ data, _status_code, _headers = watch_networking_v1_namespaced_ingress_with_http_info(name, namespace, opts)
2969
+ data
2970
+ end
2971
+
2972
+ # watch changes to an object of kind Ingress. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
2973
+ # @param name [String] name of the Ingress
2974
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2975
+ # @param [Hash] opts the optional parameters
2976
+ # @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.
2977
+ # @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.
2978
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2979
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2980
+ # @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.
2981
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2982
+ # @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
2983
+ # @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
2984
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2985
+ # @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.
2986
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2987
+ def watch_networking_v1_namespaced_ingress_with_http_info(name, namespace, opts = {})
2988
+ if @api_client.config.debugging
2989
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_namespaced_ingress ...'
2990
+ end
2991
+ # verify the required parameter 'name' is set
2992
+ if @api_client.config.client_side_validation && name.nil?
2993
+ raise ArgumentError,
2994
+ "Missing the required parameter 'name' when calling NetworkingV1Api.watch_networking_v1_namespaced_ingress"
2995
+ end
2996
+ # verify the required parameter 'namespace' is set
2997
+ if @api_client.config.client_side_validation && namespace.nil?
2998
+ raise ArgumentError,
2999
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.watch_networking_v1_namespaced_ingress"
3000
+ end
3001
+
3002
+ # resource path
3003
+ local_var_path = '/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
3004
+ '{namespace}', CGI.escape(namespace.to_s)
3005
+ )
3006
+
3007
+ # query parameters
3008
+ query_params = opts[:query_params] || {}
3009
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
3010
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
3011
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
3012
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
3013
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
3014
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
3015
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
3016
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
3017
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
3018
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
3019
+
3020
+ # header parameters
3021
+ header_params = opts[:header_params] || {}
3022
+ # HTTP header 'Accept' (if needed)
3023
+ header_params['Accept'] =
3024
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
3025
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
3026
+
3027
+ # form parameters
3028
+ form_params = opts[:form_params] || {}
3029
+
3030
+ # http body (model)
3031
+ post_body = opts[:debug_body]
3032
+
3033
+ # return_type
3034
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
3035
+
3036
+ # auth_names
3037
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3038
+
3039
+ new_options = opts.merge(
3040
+ operation: :'NetworkingV1Api.watch_networking_v1_namespaced_ingress',
3041
+ header_params:,
3042
+ query_params:,
3043
+ form_params:,
3044
+ body: post_body,
3045
+ auth_names:,
3046
+ return_type:
3047
+ )
3048
+
3049
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3050
+ if @api_client.config.debugging
3051
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3052
+ end
3053
+ [data, status_code, headers]
3054
+ end
3055
+
3056
+ # watch individual changes to a list of Ingress. deprecated: use the 'watch' parameter with a list operation instead.
3057
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3058
+ # @param [Hash] opts the optional parameters
3059
+ # @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.
3060
+ # @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.
3061
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3062
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3063
+ # @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.
3064
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3065
+ # @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
3066
+ # @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
3067
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3068
+ # @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.
3069
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
3070
+ def watch_networking_v1_namespaced_ingress_list(namespace, opts = {})
3071
+ data, _status_code, _headers = watch_networking_v1_namespaced_ingress_list_with_http_info(namespace, opts)
3072
+ data
3073
+ end
3074
+
3075
+ # watch individual changes to a list of Ingress. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
3076
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3077
+ # @param [Hash] opts the optional parameters
3078
+ # @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.
3079
+ # @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.
3080
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3081
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3082
+ # @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.
3083
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3084
+ # @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
3085
+ # @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
3086
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3087
+ # @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.
3088
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
3089
+ def watch_networking_v1_namespaced_ingress_list_with_http_info(namespace, opts = {})
3090
+ if @api_client.config.debugging
3091
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_namespaced_ingress_list ...'
3092
+ end
3093
+ # verify the required parameter 'namespace' is set
3094
+ if @api_client.config.client_side_validation && namespace.nil?
3095
+ raise ArgumentError,
3096
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.watch_networking_v1_namespaced_ingress_list"
3097
+ end
3098
+
3099
+ # resource path
3100
+ local_var_path = '/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses'.sub('{namespace}',
3101
+ CGI.escape(namespace.to_s))
3102
+
3103
+ # query parameters
3104
+ query_params = opts[:query_params] || {}
3105
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
3106
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
3107
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
3108
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
3109
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
3110
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
3111
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
3112
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
3113
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
3114
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
3115
+
3116
+ # header parameters
3117
+ header_params = opts[:header_params] || {}
3118
+ # HTTP header 'Accept' (if needed)
3119
+ header_params['Accept'] =
3120
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
3121
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
3122
+
3123
+ # form parameters
3124
+ form_params = opts[:form_params] || {}
3125
+
3126
+ # http body (model)
3127
+ post_body = opts[:debug_body]
3128
+
3129
+ # return_type
3130
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
3131
+
3132
+ # auth_names
3133
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3134
+
3135
+ new_options = opts.merge(
3136
+ operation: :'NetworkingV1Api.watch_networking_v1_namespaced_ingress_list',
3137
+ header_params:,
3138
+ query_params:,
3139
+ form_params:,
3140
+ body: post_body,
3141
+ auth_names:,
3142
+ return_type:
3143
+ )
3144
+
3145
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3146
+ if @api_client.config.debugging
3147
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_namespaced_ingress_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3148
+ end
3149
+ [data, status_code, headers]
3150
+ end
3151
+
3152
+ # watch changes to an object of kind NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
3153
+ # @param name [String] name of the NetworkPolicy
3154
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3155
+ # @param [Hash] opts the optional parameters
3156
+ # @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.
3157
+ # @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.
3158
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3159
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3160
+ # @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.
3161
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3162
+ # @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
3163
+ # @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
3164
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3165
+ # @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.
3166
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
3167
+ def watch_networking_v1_namespaced_network_policy(name, namespace, opts = {})
3168
+ data, _status_code, _headers = watch_networking_v1_namespaced_network_policy_with_http_info(name, namespace, opts)
3169
+ data
3170
+ end
3171
+
3172
+ # watch changes to an object of kind NetworkPolicy. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
3173
+ # @param name [String] name of the NetworkPolicy
3174
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3175
+ # @param [Hash] opts the optional parameters
3176
+ # @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.
3177
+ # @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.
3178
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3179
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3180
+ # @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.
3181
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3182
+ # @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
3183
+ # @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
3184
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3185
+ # @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.
3186
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
3187
+ def watch_networking_v1_namespaced_network_policy_with_http_info(name, namespace, opts = {})
3188
+ if @api_client.config.debugging
3189
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_namespaced_network_policy ...'
3190
+ end
3191
+ # verify the required parameter 'name' is set
3192
+ if @api_client.config.client_side_validation && name.nil?
3193
+ raise ArgumentError,
3194
+ "Missing the required parameter 'name' when calling NetworkingV1Api.watch_networking_v1_namespaced_network_policy"
3195
+ end
3196
+ # verify the required parameter 'namespace' is set
3197
+ if @api_client.config.client_side_validation && namespace.nil?
3198
+ raise ArgumentError,
3199
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.watch_networking_v1_namespaced_network_policy"
3200
+ end
3201
+
3202
+ # resource path
3203
+ local_var_path = '/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}'.sub('{name}', CGI.escape(name.to_s)).sub(
3204
+ '{namespace}', CGI.escape(namespace.to_s)
3205
+ )
3206
+
3207
+ # query parameters
3208
+ query_params = opts[:query_params] || {}
3209
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
3210
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
3211
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
3212
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
3213
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
3214
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
3215
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
3216
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
3217
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
3218
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
3219
+
3220
+ # header parameters
3221
+ header_params = opts[:header_params] || {}
3222
+ # HTTP header 'Accept' (if needed)
3223
+ header_params['Accept'] =
3224
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
3225
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
3226
+
3227
+ # form parameters
3228
+ form_params = opts[:form_params] || {}
3229
+
3230
+ # http body (model)
3231
+ post_body = opts[:debug_body]
3232
+
3233
+ # return_type
3234
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
3235
+
3236
+ # auth_names
3237
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3238
+
3239
+ new_options = opts.merge(
3240
+ operation: :'NetworkingV1Api.watch_networking_v1_namespaced_network_policy',
3241
+ header_params:,
3242
+ query_params:,
3243
+ form_params:,
3244
+ body: post_body,
3245
+ auth_names:,
3246
+ return_type:
3247
+ )
3248
+
3249
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3250
+ if @api_client.config.debugging
3251
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3252
+ end
3253
+ [data, status_code, headers]
3254
+ end
3255
+
3256
+ # watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.
3257
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3258
+ # @param [Hash] opts the optional parameters
3259
+ # @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.
3260
+ # @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.
3261
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3262
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3263
+ # @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.
3264
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3265
+ # @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
3266
+ # @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
3267
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3268
+ # @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.
3269
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
3270
+ def watch_networking_v1_namespaced_network_policy_list(namespace, opts = {})
3271
+ data, _status_code, _headers = watch_networking_v1_namespaced_network_policy_list_with_http_info(namespace, opts)
3272
+ data
3273
+ end
3274
+
3275
+ # watch individual changes to a list of NetworkPolicy. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
3276
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3277
+ # @param [Hash] opts the optional parameters
3278
+ # @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.
3279
+ # @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.
3280
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3281
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3282
+ # @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.
3283
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3284
+ # @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
3285
+ # @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
3286
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3287
+ # @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.
3288
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
3289
+ def watch_networking_v1_namespaced_network_policy_list_with_http_info(namespace, opts = {})
3290
+ if @api_client.config.debugging
3291
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_namespaced_network_policy_list ...'
3292
+ end
3293
+ # verify the required parameter 'namespace' is set
3294
+ if @api_client.config.client_side_validation && namespace.nil?
3295
+ raise ArgumentError,
3296
+ "Missing the required parameter 'namespace' when calling NetworkingV1Api.watch_networking_v1_namespaced_network_policy_list"
3297
+ end
3298
+
3299
+ # resource path
3300
+ local_var_path = '/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies'.sub(
3301
+ '{namespace}', CGI.escape(namespace.to_s)
3302
+ )
3303
+
3304
+ # query parameters
3305
+ query_params = opts[:query_params] || {}
3306
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
3307
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
3308
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
3309
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
3310
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
3311
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
3312
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
3313
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
3314
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
3315
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
3316
+
3317
+ # header parameters
3318
+ header_params = opts[:header_params] || {}
3319
+ # HTTP header 'Accept' (if needed)
3320
+ header_params['Accept'] =
3321
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
3322
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
3323
+
3324
+ # form parameters
3325
+ form_params = opts[:form_params] || {}
3326
+
3327
+ # http body (model)
3328
+ post_body = opts[:debug_body]
3329
+
3330
+ # return_type
3331
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
3332
+
3333
+ # auth_names
3334
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3335
+
3336
+ new_options = opts.merge(
3337
+ operation: :'NetworkingV1Api.watch_networking_v1_namespaced_network_policy_list',
3338
+ header_params:,
3339
+ query_params:,
3340
+ form_params:,
3341
+ body: post_body,
3342
+ auth_names:,
3343
+ return_type:
3344
+ )
3345
+
3346
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3347
+ if @api_client.config.debugging
3348
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_namespaced_network_policy_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3349
+ end
3350
+ [data, status_code, headers]
3351
+ end
3352
+
3353
+ # watch individual changes to a list of NetworkPolicy. deprecated: use the 'watch' parameter with a list operation instead.
3354
+ # @param [Hash] opts the optional parameters
3355
+ # @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.
3356
+ # @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.
3357
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3358
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3359
+ # @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.
3360
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3361
+ # @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
3362
+ # @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
3363
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3364
+ # @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.
3365
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
3366
+ def watch_networking_v1_network_policy_list_for_all_namespaces(opts = {})
3367
+ data, _status_code, _headers = watch_networking_v1_network_policy_list_for_all_namespaces_with_http_info(opts)
3368
+ data
3369
+ end
3370
+
3371
+ # watch individual changes to a list of NetworkPolicy. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
3372
+ # @param [Hash] opts the optional parameters
3373
+ # @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.
3374
+ # @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.
3375
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
3376
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
3377
+ # @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.
3378
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
3379
+ # @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
3380
+ # @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
3381
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
3382
+ # @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.
3383
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
3384
+ def watch_networking_v1_network_policy_list_for_all_namespaces_with_http_info(opts = {})
3385
+ if @api_client.config.debugging
3386
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.watch_networking_v1_network_policy_list_for_all_namespaces ...'
3387
+ end
3388
+ # resource path
3389
+ local_var_path = '/apis/networking.k8s.io/v1/watch/networkpolicies'
3390
+
3391
+ # query parameters
3392
+ query_params = opts[:query_params] || {}
3393
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
3394
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
3395
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
3396
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
3397
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
3398
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
3399
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
3400
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
3401
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
3402
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
3403
+
3404
+ # header parameters
3405
+ header_params = opts[:header_params] || {}
3406
+ # HTTP header 'Accept' (if needed)
3407
+ header_params['Accept'] =
3408
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
3409
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
3410
+
3411
+ # form parameters
3412
+ form_params = opts[:form_params] || {}
3413
+
3414
+ # http body (model)
3415
+ post_body = opts[:debug_body]
3416
+
3417
+ # return_type
3418
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
3419
+
3420
+ # auth_names
3421
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3422
+
3423
+ new_options = opts.merge(
3424
+ operation: :'NetworkingV1Api.watch_networking_v1_network_policy_list_for_all_namespaces',
3425
+ header_params:,
3426
+ query_params:,
3427
+ form_params:,
3428
+ body: post_body,
3429
+ auth_names:,
3430
+ return_type:
3431
+ )
3432
+
3433
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3434
+ if @api_client.config.debugging
3435
+ @api_client.config.logger.debug "API called: NetworkingV1Api#watch_networking_v1_network_policy_list_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3436
+ end
3437
+ [data, status_code, headers]
3438
+ end
3439
+ end
3440
+ end