kruby 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (812) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +1722 -0
  4. data/lib/kruby.rb +3 -0
  5. data/lib/kubernetes/api/admissionregistration_api.rb +77 -0
  6. data/lib/kubernetes/api/admissionregistration_v1_api.rb +2576 -0
  7. data/lib/kubernetes/api/admissionregistration_v1alpha1_api.rb +1213 -0
  8. data/lib/kubernetes/api/admissionregistration_v1beta1_api.rb +1213 -0
  9. data/lib/kubernetes/api/apiextensions_api.rb +77 -0
  10. data/lib/kubernetes/api/apiextensions_v1_api.rb +872 -0
  11. data/lib/kubernetes/api/apiregistration_api.rb +77 -0
  12. data/lib/kubernetes/api/apiregistration_v1_api.rb +872 -0
  13. data/lib/kubernetes/api/apis_api.rb +77 -0
  14. data/lib/kubernetes/api/apps_api.rb +77 -0
  15. data/lib/kubernetes/api/apps_v1_api.rb +5282 -0
  16. data/lib/kubernetes/api/authentication_api.rb +77 -0
  17. data/lib/kubernetes/api/authentication_v1_api.rb +223 -0
  18. data/lib/kubernetes/api/authorization_api.rb +77 -0
  19. data/lib/kubernetes/api/authorization_v1_api.rb +375 -0
  20. data/lib/kubernetes/api/autoscaling_api.rb +77 -0
  21. data/lib/kubernetes/api/autoscaling_v1_api.rb +1020 -0
  22. data/lib/kubernetes/api/autoscaling_v2_api.rb +1020 -0
  23. data/lib/kubernetes/api/batch_api.rb +77 -0
  24. data/lib/kubernetes/api/batch_v1_api.rb +1963 -0
  25. data/lib/kubernetes/api/certificates_api.rb +77 -0
  26. data/lib/kubernetes/api/certificates_v1_api.rb +1099 -0
  27. data/lib/kubernetes/api/certificates_v1alpha1_api.rb +645 -0
  28. data/lib/kubernetes/api/certificates_v1beta1_api.rb +1588 -0
  29. data/lib/kubernetes/api/coordination_api.rb +77 -0
  30. data/lib/kubernetes/api/coordination_v1_api.rb +775 -0
  31. data/lib/kubernetes/api/coordination_v1alpha2_api.rb +775 -0
  32. data/lib/kubernetes/api/coordination_v1beta1_api.rb +775 -0
  33. data/lib/kubernetes/api/core_api.rb +77 -0
  34. data/lib/kubernetes/api/core_v1_api.rb +16817 -0
  35. data/lib/kubernetes/api/custom_objects_api.rb +2665 -0
  36. data/lib/kubernetes/api/discovery_api.rb +77 -0
  37. data/lib/kubernetes/api/discovery_v1_api.rb +775 -0
  38. data/lib/kubernetes/api/events_api.rb +77 -0
  39. data/lib/kubernetes/api/events_v1_api.rb +775 -0
  40. data/lib/kubernetes/api/flowcontrol_apiserver_api.rb +77 -0
  41. data/lib/kubernetes/api/flowcontrol_apiserver_v1_api.rb +1667 -0
  42. data/lib/kubernetes/api/internal_apiserver_api.rb +77 -0
  43. data/lib/kubernetes/api/internal_apiserver_v1alpha1_api.rb +872 -0
  44. data/lib/kubernetes/api/logs_api.rb +130 -0
  45. data/lib/kubernetes/api/networking_api.rb +77 -0
  46. data/lib/kubernetes/api/networking_v1_api.rb +3649 -0
  47. data/lib/kubernetes/api/networking_v1beta1_api.rb +1440 -0
  48. data/lib/kubernetes/api/node_api.rb +77 -0
  49. data/lib/kubernetes/api/node_v1_api.rb +645 -0
  50. data/lib/kubernetes/api/openid_api.rb +77 -0
  51. data/lib/kubernetes/api/policy_api.rb +77 -0
  52. data/lib/kubernetes/api/policy_v1_api.rb +1020 -0
  53. data/lib/kubernetes/api/rbac_authorization_api.rb +77 -0
  54. data/lib/kubernetes/api/rbac_authorization_v1_api.rb +2609 -0
  55. data/lib/kubernetes/api/resource_api.rb +77 -0
  56. data/lib/kubernetes/api/resource_v1_api.rb +2854 -0
  57. data/lib/kubernetes/api/resource_v1alpha3_api.rb +872 -0
  58. data/lib/kubernetes/api/resource_v1beta1_api.rb +2854 -0
  59. data/lib/kubernetes/api/resource_v1beta2_api.rb +2854 -0
  60. data/lib/kubernetes/api/scheduling_api.rb +77 -0
  61. data/lib/kubernetes/api/scheduling_v1_api.rb +645 -0
  62. data/lib/kubernetes/api/scheduling_v1alpha1_api.rb +775 -0
  63. data/lib/kubernetes/api/storage_api.rb +77 -0
  64. data/lib/kubernetes/api/storage_v1_api.rb +3842 -0
  65. data/lib/kubernetes/api/storage_v1beta1_api.rb +645 -0
  66. data/lib/kubernetes/api/storagemigration_api.rb +77 -0
  67. data/lib/kubernetes/api/storagemigration_v1beta1_api.rb +872 -0
  68. data/lib/kubernetes/api/version_api.rb +77 -0
  69. data/lib/kubernetes/api/well_known_api.rb +77 -0
  70. data/lib/kubernetes/api_client.rb +390 -0
  71. data/lib/kubernetes/api_error.rb +57 -0
  72. data/lib/kubernetes/config/error.rb +17 -0
  73. data/lib/kubernetes/config/incluster_config.rb +106 -0
  74. data/lib/kubernetes/config/kube_config.rb +171 -0
  75. data/lib/kubernetes/configuration.rb +277 -0
  76. data/lib/kubernetes/loader.rb +4 -0
  77. data/lib/kubernetes/models/admissionregistration_v1_service_reference.rb +260 -0
  78. data/lib/kubernetes/models/admissionregistration_v1_webhook_client_config.rb +256 -0
  79. data/lib/kubernetes/models/apiextensions_v1_service_reference.rb +260 -0
  80. data/lib/kubernetes/models/apiextensions_v1_webhook_client_config.rb +256 -0
  81. data/lib/kubernetes/models/apiregistration_v1_service_reference.rb +240 -0
  82. data/lib/kubernetes/models/authentication_v1_token_request.rb +262 -0
  83. data/lib/kubernetes/models/core_v1_endpoint_port.rb +255 -0
  84. data/lib/kubernetes/models/core_v1_event.rb +385 -0
  85. data/lib/kubernetes/models/core_v1_event_list.rb +256 -0
  86. data/lib/kubernetes/models/core_v1_event_series.rb +230 -0
  87. data/lib/kubernetes/models/core_v1_resource_claim.rb +235 -0
  88. data/lib/kubernetes/models/discovery_v1_endpoint_port.rb +250 -0
  89. data/lib/kubernetes/models/events_v1_event.rb +380 -0
  90. data/lib/kubernetes/models/events_v1_event_list.rb +256 -0
  91. data/lib/kubernetes/models/events_v1_event_series.rb +240 -0
  92. data/lib/kubernetes/models/flowcontrol_v1_subject.rb +252 -0
  93. data/lib/kubernetes/models/rbac_v1_subject.rb +260 -0
  94. data/lib/kubernetes/models/resource_v1_resource_claim.rb +262 -0
  95. data/lib/kubernetes/models/storage_v1_token_request.rb +235 -0
  96. data/lib/kubernetes/models/v1_affinity.rb +237 -0
  97. data/lib/kubernetes/models/v1_aggregation_rule.rb +222 -0
  98. data/lib/kubernetes/models/v1_allocated_device_status.rb +296 -0
  99. data/lib/kubernetes/models/v1_allocation_result.rb +238 -0
  100. data/lib/kubernetes/models/v1_api_group.rb +283 -0
  101. data/lib/kubernetes/models/v1_api_group_list.rb +247 -0
  102. data/lib/kubernetes/models/v1_api_resource.rb +341 -0
  103. data/lib/kubernetes/models/v1_api_resource_list.rb +262 -0
  104. data/lib/kubernetes/models/v1_api_service.rb +257 -0
  105. data/lib/kubernetes/models/v1_api_service_condition.rb +270 -0
  106. data/lib/kubernetes/models/v1_api_service_list.rb +256 -0
  107. data/lib/kubernetes/models/v1_api_service_spec.rb +306 -0
  108. data/lib/kubernetes/models/v1_api_service_status.rb +222 -0
  109. data/lib/kubernetes/models/v1_api_versions.rb +264 -0
  110. data/lib/kubernetes/models/v1_app_armor_profile.rb +235 -0
  111. data/lib/kubernetes/models/v1_attached_volume.rb +240 -0
  112. data/lib/kubernetes/models/v1_audit_annotation.rb +240 -0
  113. data/lib/kubernetes/models/v1_aws_elastic_block_store_volume_source.rb +255 -0
  114. data/lib/kubernetes/models/v1_azure_disk_volume_source.rb +280 -0
  115. data/lib/kubernetes/models/v1_azure_file_persistent_volume_source.rb +260 -0
  116. data/lib/kubernetes/models/v1_azure_file_volume_source.rb +250 -0
  117. data/lib/kubernetes/models/v1_binding.rb +253 -0
  118. data/lib/kubernetes/models/v1_bound_object_reference.rb +250 -0
  119. data/lib/kubernetes/models/v1_capabilities.rb +234 -0
  120. data/lib/kubernetes/models/v1_capacity_request_policy.rb +241 -0
  121. data/lib/kubernetes/models/v1_capacity_request_policy_range.rb +245 -0
  122. data/lib/kubernetes/models/v1_capacity_requirements.rb +222 -0
  123. data/lib/kubernetes/models/v1_cel_device_selector.rb +225 -0
  124. data/lib/kubernetes/models/v1_ceph_fs_persistent_volume_source.rb +276 -0
  125. data/lib/kubernetes/models/v1_ceph_fs_volume_source.rb +276 -0
  126. data/lib/kubernetes/models/v1_certificate_signing_request.rb +262 -0
  127. data/lib/kubernetes/models/v1_certificate_signing_request_condition.rb +280 -0
  128. data/lib/kubernetes/models/v1_certificate_signing_request_list.rb +256 -0
  129. data/lib/kubernetes/models/v1_certificate_signing_request_spec.rb +327 -0
  130. data/lib/kubernetes/models/v1_certificate_signing_request_status.rb +249 -0
  131. data/lib/kubernetes/models/v1_cinder_persistent_volume_source.rb +254 -0
  132. data/lib/kubernetes/models/v1_cinder_volume_source.rb +254 -0
  133. data/lib/kubernetes/models/v1_client_ip_config.rb +220 -0
  134. data/lib/kubernetes/models/v1_cluster_role.rb +260 -0
  135. data/lib/kubernetes/models/v1_cluster_role_binding.rb +265 -0
  136. data/lib/kubernetes/models/v1_cluster_role_binding_list.rb +256 -0
  137. data/lib/kubernetes/models/v1_cluster_role_list.rb +256 -0
  138. data/lib/kubernetes/models/v1_cluster_trust_bundle_projection.rb +264 -0
  139. data/lib/kubernetes/models/v1_component_condition.rb +260 -0
  140. data/lib/kubernetes/models/v1_component_status.rb +251 -0
  141. data/lib/kubernetes/models/v1_component_status_list.rb +256 -0
  142. data/lib/kubernetes/models/v1_condition.rb +295 -0
  143. data/lib/kubernetes/models/v1_config_map.rb +273 -0
  144. data/lib/kubernetes/models/v1_config_map_env_source.rb +230 -0
  145. data/lib/kubernetes/models/v1_config_map_key_selector.rb +245 -0
  146. data/lib/kubernetes/models/v1_config_map_list.rb +256 -0
  147. data/lib/kubernetes/models/v1_config_map_node_config_source.rb +275 -0
  148. data/lib/kubernetes/models/v1_config_map_projection.rb +242 -0
  149. data/lib/kubernetes/models/v1_config_map_volume_source.rb +252 -0
  150. data/lib/kubernetes/models/v1_container.rb +477 -0
  151. data/lib/kubernetes/models/v1_container_extended_resource_request.rb +255 -0
  152. data/lib/kubernetes/models/v1_container_image.rb +232 -0
  153. data/lib/kubernetes/models/v1_container_port.rb +265 -0
  154. data/lib/kubernetes/models/v1_container_resize_policy.rb +240 -0
  155. data/lib/kubernetes/models/v1_container_restart_rule.rb +234 -0
  156. data/lib/kubernetes/models/v1_container_restart_rule_on_exit_codes.rb +237 -0
  157. data/lib/kubernetes/models/v1_container_state.rb +237 -0
  158. data/lib/kubernetes/models/v1_container_state_running.rb +220 -0
  159. data/lib/kubernetes/models/v1_container_state_terminated.rb +285 -0
  160. data/lib/kubernetes/models/v1_container_state_waiting.rb +230 -0
  161. data/lib/kubernetes/models/v1_container_status.rb +387 -0
  162. data/lib/kubernetes/models/v1_container_user.rb +219 -0
  163. data/lib/kubernetes/models/v1_controller_revision.rb +264 -0
  164. data/lib/kubernetes/models/v1_controller_revision_list.rb +256 -0
  165. data/lib/kubernetes/models/v1_counter.rb +225 -0
  166. data/lib/kubernetes/models/v1_counter_set.rb +242 -0
  167. data/lib/kubernetes/models/v1_cron_job.rb +257 -0
  168. data/lib/kubernetes/models/v1_cron_job_list.rb +256 -0
  169. data/lib/kubernetes/models/v1_cron_job_spec.rb +299 -0
  170. data/lib/kubernetes/models/v1_cron_job_status.rb +242 -0
  171. data/lib/kubernetes/models/v1_cross_version_object_reference.rb +250 -0
  172. data/lib/kubernetes/models/v1_csi_driver.rb +253 -0
  173. data/lib/kubernetes/models/v1_csi_driver_list.rb +256 -0
  174. data/lib/kubernetes/models/v1_csi_driver_spec.rb +314 -0
  175. data/lib/kubernetes/models/v1_csi_node.rb +253 -0
  176. data/lib/kubernetes/models/v1_csi_node_driver.rb +261 -0
  177. data/lib/kubernetes/models/v1_csi_node_list.rb +256 -0
  178. data/lib/kubernetes/models/v1_csi_node_spec.rb +227 -0
  179. data/lib/kubernetes/models/v1_csi_persistent_volume_source.rb +317 -0
  180. data/lib/kubernetes/models/v1_csi_storage_capacity.rb +283 -0
  181. data/lib/kubernetes/models/v1_csi_storage_capacity_list.rb +256 -0
  182. data/lib/kubernetes/models/v1_csi_volume_source.rb +266 -0
  183. data/lib/kubernetes/models/v1_custom_resource_column_definition.rb +285 -0
  184. data/lib/kubernetes/models/v1_custom_resource_conversion.rb +234 -0
  185. data/lib/kubernetes/models/v1_custom_resource_definition.rb +262 -0
  186. data/lib/kubernetes/models/v1_custom_resource_definition_condition.rb +280 -0
  187. data/lib/kubernetes/models/v1_custom_resource_definition_list.rb +256 -0
  188. data/lib/kubernetes/models/v1_custom_resource_definition_names.rb +284 -0
  189. data/lib/kubernetes/models/v1_custom_resource_definition_spec.rb +290 -0
  190. data/lib/kubernetes/models/v1_custom_resource_definition_status.rb +253 -0
  191. data/lib/kubernetes/models/v1_custom_resource_definition_version.rb +317 -0
  192. data/lib/kubernetes/models/v1_custom_resource_subresource_scale.rb +250 -0
  193. data/lib/kubernetes/models/v1_custom_resource_subresources.rb +229 -0
  194. data/lib/kubernetes/models/v1_custom_resource_validation.rb +219 -0
  195. data/lib/kubernetes/models/v1_daemon_endpoint.rb +225 -0
  196. data/lib/kubernetes/models/v1_daemon_set.rb +257 -0
  197. data/lib/kubernetes/models/v1_daemon_set_condition.rb +270 -0
  198. data/lib/kubernetes/models/v1_daemon_set_list.rb +256 -0
  199. data/lib/kubernetes/models/v1_daemon_set_spec.rb +267 -0
  200. data/lib/kubernetes/models/v1_daemon_set_status.rb +332 -0
  201. data/lib/kubernetes/models/v1_daemon_set_update_strategy.rb +229 -0
  202. data/lib/kubernetes/models/v1_delete_options.rb +291 -0
  203. data/lib/kubernetes/models/v1_deployment.rb +257 -0
  204. data/lib/kubernetes/models/v1_deployment_condition.rb +280 -0
  205. data/lib/kubernetes/models/v1_deployment_list.rb +256 -0
  206. data/lib/kubernetes/models/v1_deployment_spec.rb +297 -0
  207. data/lib/kubernetes/models/v1_deployment_status.rb +302 -0
  208. data/lib/kubernetes/models/v1_deployment_strategy.rb +229 -0
  209. data/lib/kubernetes/models/v1_device.rb +346 -0
  210. data/lib/kubernetes/models/v1_device_allocation_configuration.rb +246 -0
  211. data/lib/kubernetes/models/v1_device_allocation_result.rb +234 -0
  212. data/lib/kubernetes/models/v1_device_attribute.rb +250 -0
  213. data/lib/kubernetes/models/v1_device_capacity.rb +234 -0
  214. data/lib/kubernetes/models/v1_device_claim.rb +246 -0
  215. data/lib/kubernetes/models/v1_device_claim_configuration.rb +231 -0
  216. data/lib/kubernetes/models/v1_device_class.rb +253 -0
  217. data/lib/kubernetes/models/v1_device_class_configuration.rb +219 -0
  218. data/lib/kubernetes/models/v1_device_class_list.rb +256 -0
  219. data/lib/kubernetes/models/v1_device_class_spec.rb +244 -0
  220. data/lib/kubernetes/models/v1_device_constraint.rb +242 -0
  221. data/lib/kubernetes/models/v1_device_counter_consumption.rb +242 -0
  222. data/lib/kubernetes/models/v1_device_request.rb +246 -0
  223. data/lib/kubernetes/models/v1_device_request_allocation_result.rb +338 -0
  224. data/lib/kubernetes/models/v1_device_selector.rb +219 -0
  225. data/lib/kubernetes/models/v1_device_sub_request.rb +293 -0
  226. data/lib/kubernetes/models/v1_device_taint.rb +260 -0
  227. data/lib/kubernetes/models/v1_device_toleration.rb +260 -0
  228. data/lib/kubernetes/models/v1_downward_api_projection.rb +222 -0
  229. data/lib/kubernetes/models/v1_downward_api_volume_file.rb +253 -0
  230. data/lib/kubernetes/models/v1_downward_api_volume_source.rb +232 -0
  231. data/lib/kubernetes/models/v1_empty_dir_volume_source.rb +230 -0
  232. data/lib/kubernetes/models/v1_endpoint.rb +296 -0
  233. data/lib/kubernetes/models/v1_endpoint_address.rb +254 -0
  234. data/lib/kubernetes/models/v1_endpoint_conditions.rb +240 -0
  235. data/lib/kubernetes/models/v1_endpoint_hints.rb +234 -0
  236. data/lib/kubernetes/models/v1_endpoint_slice.rb +283 -0
  237. data/lib/kubernetes/models/v1_endpoint_slice_list.rb +256 -0
  238. data/lib/kubernetes/models/v1_endpoint_subset.rb +246 -0
  239. data/lib/kubernetes/models/v1_endpoints.rb +251 -0
  240. data/lib/kubernetes/models/v1_endpoints_list.rb +256 -0
  241. data/lib/kubernetes/models/v1_env_from_source.rb +238 -0
  242. data/lib/kubernetes/models/v1_env_var.rb +244 -0
  243. data/lib/kubernetes/models/v1_env_var_source.rb +255 -0
  244. data/lib/kubernetes/models/v1_ephemeral_container.rb +487 -0
  245. data/lib/kubernetes/models/v1_ephemeral_volume_source.rb +219 -0
  246. data/lib/kubernetes/models/v1_event_source.rb +230 -0
  247. data/lib/kubernetes/models/v1_eviction.rb +248 -0
  248. data/lib/kubernetes/models/v1_exact_device_request.rb +288 -0
  249. data/lib/kubernetes/models/v1_exec_action.rb +222 -0
  250. data/lib/kubernetes/models/v1_exempt_priority_level_configuration.rb +230 -0
  251. data/lib/kubernetes/models/v1_expression_warning.rb +240 -0
  252. data/lib/kubernetes/models/v1_external_documentation.rb +228 -0
  253. data/lib/kubernetes/models/v1_fc_volume_source.rb +264 -0
  254. data/lib/kubernetes/models/v1_field_selector_attributes.rb +232 -0
  255. data/lib/kubernetes/models/v1_field_selector_requirement.rb +252 -0
  256. data/lib/kubernetes/models/v1_file_key_selector.rb +265 -0
  257. data/lib/kubernetes/models/v1_flex_persistent_volume_source.rb +266 -0
  258. data/lib/kubernetes/models/v1_flex_volume_source.rb +266 -0
  259. data/lib/kubernetes/models/v1_flocker_volume_source.rb +230 -0
  260. data/lib/kubernetes/models/v1_flow_distinguisher_method.rb +225 -0
  261. data/lib/kubernetes/models/v1_flow_schema.rb +257 -0
  262. data/lib/kubernetes/models/v1_flow_schema_condition.rb +260 -0
  263. data/lib/kubernetes/models/v1_flow_schema_list.rb +256 -0
  264. data/lib/kubernetes/models/v1_flow_schema_spec.rb +255 -0
  265. data/lib/kubernetes/models/v1_flow_schema_status.rb +222 -0
  266. data/lib/kubernetes/models/v1_for_node.rb +225 -0
  267. data/lib/kubernetes/models/v1_for_zone.rb +225 -0
  268. data/lib/kubernetes/models/v1_gce_persistent_disk_volume_source.rb +255 -0
  269. data/lib/kubernetes/models/v1_git_repo_volume_source.rb +245 -0
  270. data/lib/kubernetes/models/v1_glusterfs_persistent_volume_source.rb +260 -0
  271. data/lib/kubernetes/models/v1_glusterfs_volume_source.rb +250 -0
  272. data/lib/kubernetes/models/v1_group_resource.rb +238 -0
  273. data/lib/kubernetes/models/v1_group_subject.rb +225 -0
  274. data/lib/kubernetes/models/v1_group_version_for_discovery.rb +240 -0
  275. data/lib/kubernetes/models/v1_grpc_action.rb +235 -0
  276. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler.rb +257 -0
  277. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_list.rb +256 -0
  278. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_spec.rb +259 -0
  279. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_status.rb +270 -0
  280. data/lib/kubernetes/models/v1_host_alias.rb +237 -0
  281. data/lib/kubernetes/models/v1_host_ip.rb +225 -0
  282. data/lib/kubernetes/models/v1_host_path_volume_source.rb +235 -0
  283. data/lib/kubernetes/models/v1_http_get_action.rb +267 -0
  284. data/lib/kubernetes/models/v1_http_header.rb +240 -0
  285. data/lib/kubernetes/models/v1_http_ingress_path.rb +249 -0
  286. data/lib/kubernetes/models/v1_http_ingress_rule_value.rb +227 -0
  287. data/lib/kubernetes/models/v1_image_volume_source.rb +230 -0
  288. data/lib/kubernetes/models/v1_ingress.rb +257 -0
  289. data/lib/kubernetes/models/v1_ingress_backend.rb +228 -0
  290. data/lib/kubernetes/models/v1_ingress_class.rb +248 -0
  291. data/lib/kubernetes/models/v1_ingress_class_list.rb +256 -0
  292. data/lib/kubernetes/models/v1_ingress_class_parameters_reference.rb +270 -0
  293. data/lib/kubernetes/models/v1_ingress_class_spec.rb +229 -0
  294. data/lib/kubernetes/models/v1_ingress_list.rb +256 -0
  295. data/lib/kubernetes/models/v1_ingress_load_balancer_ingress.rb +242 -0
  296. data/lib/kubernetes/models/v1_ingress_load_balancer_status.rb +222 -0
  297. data/lib/kubernetes/models/v1_ingress_port_status.rb +250 -0
  298. data/lib/kubernetes/models/v1_ingress_rule.rb +229 -0
  299. data/lib/kubernetes/models/v1_ingress_service_backend.rb +234 -0
  300. data/lib/kubernetes/models/v1_ingress_spec.rb +253 -0
  301. data/lib/kubernetes/models/v1_ingress_status.rb +219 -0
  302. data/lib/kubernetes/models/v1_ingress_tls.rb +232 -0
  303. data/lib/kubernetes/models/v1_ip_address.rb +248 -0
  304. data/lib/kubernetes/models/v1_ip_address_list.rb +256 -0
  305. data/lib/kubernetes/models/v1_ip_address_spec.rb +224 -0
  306. data/lib/kubernetes/models/v1_ip_block.rb +237 -0
  307. data/lib/kubernetes/models/v1_iscsi_persistent_volume_source.rb +336 -0
  308. data/lib/kubernetes/models/v1_iscsi_volume_source.rb +336 -0
  309. data/lib/kubernetes/models/v1_job.rb +257 -0
  310. data/lib/kubernetes/models/v1_job_condition.rb +280 -0
  311. data/lib/kubernetes/models/v1_job_list.rb +256 -0
  312. data/lib/kubernetes/models/v1_job_spec.rb +371 -0
  313. data/lib/kubernetes/models/v1_job_status.rb +321 -0
  314. data/lib/kubernetes/models/v1_job_template_spec.rb +228 -0
  315. data/lib/kubernetes/models/v1_json_schema_props.rb +641 -0
  316. data/lib/kubernetes/models/v1_key_to_path.rb +250 -0
  317. data/lib/kubernetes/models/v1_label_selector.rb +234 -0
  318. data/lib/kubernetes/models/v1_label_selector_attributes.rb +232 -0
  319. data/lib/kubernetes/models/v1_label_selector_requirement.rb +252 -0
  320. data/lib/kubernetes/models/v1_lease.rb +248 -0
  321. data/lib/kubernetes/models/v1_lease_list.rb +256 -0
  322. data/lib/kubernetes/models/v1_lease_spec.rb +280 -0
  323. data/lib/kubernetes/models/v1_lifecycle.rb +238 -0
  324. data/lib/kubernetes/models/v1_lifecycle_handler.rb +246 -0
  325. data/lib/kubernetes/models/v1_limit_range.rb +248 -0
  326. data/lib/kubernetes/models/v1_limit_range_item.rb +285 -0
  327. data/lib/kubernetes/models/v1_limit_range_list.rb +256 -0
  328. data/lib/kubernetes/models/v1_limit_range_spec.rb +227 -0
  329. data/lib/kubernetes/models/v1_limit_response.rb +234 -0
  330. data/lib/kubernetes/models/v1_limited_priority_level_configuration.rb +249 -0
  331. data/lib/kubernetes/models/v1_linux_container_user.rb +252 -0
  332. data/lib/kubernetes/models/v1_list_meta.rb +250 -0
  333. data/lib/kubernetes/models/v1_load_balancer_ingress.rb +252 -0
  334. data/lib/kubernetes/models/v1_load_balancer_status.rb +222 -0
  335. data/lib/kubernetes/models/v1_local_object_reference.rb +220 -0
  336. data/lib/kubernetes/models/v1_local_subject_access_review.rb +262 -0
  337. data/lib/kubernetes/models/v1_local_volume_source.rb +235 -0
  338. data/lib/kubernetes/models/v1_managed_fields_entry.rb +280 -0
  339. data/lib/kubernetes/models/v1_match_condition.rb +240 -0
  340. data/lib/kubernetes/models/v1_match_resources.rb +262 -0
  341. data/lib/kubernetes/models/v1_modify_volume_status.rb +235 -0
  342. data/lib/kubernetes/models/v1_mutating_webhook.rb +353 -0
  343. data/lib/kubernetes/models/v1_mutating_webhook_configuration.rb +251 -0
  344. data/lib/kubernetes/models/v1_mutating_webhook_configuration_list.rb +256 -0
  345. data/lib/kubernetes/models/v1_named_rule_with_operations.rb +280 -0
  346. data/lib/kubernetes/models/v1_namespace.rb +257 -0
  347. data/lib/kubernetes/models/v1_namespace_condition.rb +270 -0
  348. data/lib/kubernetes/models/v1_namespace_list.rb +256 -0
  349. data/lib/kubernetes/models/v1_namespace_spec.rb +222 -0
  350. data/lib/kubernetes/models/v1_namespace_status.rb +232 -0
  351. data/lib/kubernetes/models/v1_network_device_data.rb +242 -0
  352. data/lib/kubernetes/models/v1_network_policy.rb +248 -0
  353. data/lib/kubernetes/models/v1_network_policy_egress_rule.rb +234 -0
  354. data/lib/kubernetes/models/v1_network_policy_ingress_rule.rb +234 -0
  355. data/lib/kubernetes/models/v1_network_policy_list.rb +256 -0
  356. data/lib/kubernetes/models/v1_network_policy_peer.rb +237 -0
  357. data/lib/kubernetes/models/v1_network_policy_port.rb +240 -0
  358. data/lib/kubernetes/models/v1_network_policy_spec.rb +255 -0
  359. data/lib/kubernetes/models/v1_nfs_volume_source.rb +250 -0
  360. data/lib/kubernetes/models/v1_node.rb +257 -0
  361. data/lib/kubernetes/models/v1_node_address.rb +240 -0
  362. data/lib/kubernetes/models/v1_node_affinity.rb +231 -0
  363. data/lib/kubernetes/models/v1_node_condition.rb +280 -0
  364. data/lib/kubernetes/models/v1_node_config_source.rb +219 -0
  365. data/lib/kubernetes/models/v1_node_config_status.rb +247 -0
  366. data/lib/kubernetes/models/v1_node_daemon_endpoints.rb +219 -0
  367. data/lib/kubernetes/models/v1_node_features.rb +220 -0
  368. data/lib/kubernetes/models/v1_node_list.rb +256 -0
  369. data/lib/kubernetes/models/v1_node_runtime_handler.rb +229 -0
  370. data/lib/kubernetes/models/v1_node_runtime_handler_features.rb +230 -0
  371. data/lib/kubernetes/models/v1_node_selector.rb +227 -0
  372. data/lib/kubernetes/models/v1_node_selector_requirement.rb +252 -0
  373. data/lib/kubernetes/models/v1_node_selector_term.rb +234 -0
  374. data/lib/kubernetes/models/v1_node_spec.rb +283 -0
  375. data/lib/kubernetes/models/v1_node_status.rb +364 -0
  376. data/lib/kubernetes/models/v1_node_swap_status.rb +220 -0
  377. data/lib/kubernetes/models/v1_node_system_info.rb +369 -0
  378. data/lib/kubernetes/models/v1_non_resource_attributes.rb +230 -0
  379. data/lib/kubernetes/models/v1_non_resource_policy_rule.rb +244 -0
  380. data/lib/kubernetes/models/v1_non_resource_rule.rb +239 -0
  381. data/lib/kubernetes/models/v1_object_field_selector.rb +235 -0
  382. data/lib/kubernetes/models/v1_object_meta.rb +370 -0
  383. data/lib/kubernetes/models/v1_object_reference.rb +280 -0
  384. data/lib/kubernetes/models/v1_opaque_device_configuration.rb +240 -0
  385. data/lib/kubernetes/models/v1_overhead.rb +222 -0
  386. data/lib/kubernetes/models/v1_owner_reference.rb +290 -0
  387. data/lib/kubernetes/models/v1_param_kind.rb +230 -0
  388. data/lib/kubernetes/models/v1_param_ref.rb +249 -0
  389. data/lib/kubernetes/models/v1_parent_reference.rb +260 -0
  390. data/lib/kubernetes/models/v1_persistent_volume.rb +257 -0
  391. data/lib/kubernetes/models/v1_persistent_volume_claim.rb +257 -0
  392. data/lib/kubernetes/models/v1_persistent_volume_claim_condition.rb +280 -0
  393. data/lib/kubernetes/models/v1_persistent_volume_claim_list.rb +256 -0
  394. data/lib/kubernetes/models/v1_persistent_volume_claim_spec.rb +298 -0
  395. data/lib/kubernetes/models/v1_persistent_volume_claim_status.rb +299 -0
  396. data/lib/kubernetes/models/v1_persistent_volume_claim_template.rb +233 -0
  397. data/lib/kubernetes/models/v1_persistent_volume_claim_volume_source.rb +235 -0
  398. data/lib/kubernetes/models/v1_persistent_volume_list.rb +256 -0
  399. data/lib/kubernetes/models/v1_persistent_volume_spec.rb +502 -0
  400. data/lib/kubernetes/models/v1_persistent_volume_status.rb +250 -0
  401. data/lib/kubernetes/models/v1_photon_persistent_disk_volume_source.rb +235 -0
  402. data/lib/kubernetes/models/v1_pod.rb +257 -0
  403. data/lib/kubernetes/models/v1_pod_affinity.rb +234 -0
  404. data/lib/kubernetes/models/v1_pod_affinity_term.rb +279 -0
  405. data/lib/kubernetes/models/v1_pod_anti_affinity.rb +234 -0
  406. data/lib/kubernetes/models/v1_pod_certificate_projection.rb +292 -0
  407. data/lib/kubernetes/models/v1_pod_condition.rb +290 -0
  408. data/lib/kubernetes/models/v1_pod_disruption_budget.rb +257 -0
  409. data/lib/kubernetes/models/v1_pod_disruption_budget_list.rb +256 -0
  410. data/lib/kubernetes/models/v1_pod_disruption_budget_spec.rb +249 -0
  411. data/lib/kubernetes/models/v1_pod_disruption_budget_status.rb +304 -0
  412. data/lib/kubernetes/models/v1_pod_dns_config.rb +246 -0
  413. data/lib/kubernetes/models/v1_pod_dns_config_option.rb +230 -0
  414. data/lib/kubernetes/models/v1_pod_extended_resource_claim_status.rb +242 -0
  415. data/lib/kubernetes/models/v1_pod_failure_policy.rb +227 -0
  416. data/lib/kubernetes/models/v1_pod_failure_policy_on_exit_codes_requirement.rb +252 -0
  417. data/lib/kubernetes/models/v1_pod_failure_policy_on_pod_conditions_pattern.rb +235 -0
  418. data/lib/kubernetes/models/v1_pod_failure_policy_rule.rb +246 -0
  419. data/lib/kubernetes/models/v1_pod_ip.rb +225 -0
  420. data/lib/kubernetes/models/v1_pod_list.rb +256 -0
  421. data/lib/kubernetes/models/v1_pod_os.rb +225 -0
  422. data/lib/kubernetes/models/v1_pod_readiness_gate.rb +225 -0
  423. data/lib/kubernetes/models/v1_pod_resource_claim.rb +245 -0
  424. data/lib/kubernetes/models/v1_pod_resource_claim_status.rb +235 -0
  425. data/lib/kubernetes/models/v1_pod_scheduling_gate.rb +225 -0
  426. data/lib/kubernetes/models/v1_pod_security_context.rb +340 -0
  427. data/lib/kubernetes/models/v1_pod_spec.rb +655 -0
  428. data/lib/kubernetes/models/v1_pod_status.rb +424 -0
  429. data/lib/kubernetes/models/v1_pod_template.rb +248 -0
  430. data/lib/kubernetes/models/v1_pod_template_list.rb +256 -0
  431. data/lib/kubernetes/models/v1_pod_template_spec.rb +228 -0
  432. data/lib/kubernetes/models/v1_policy_rule.rb +275 -0
  433. data/lib/kubernetes/models/v1_policy_rules_with_subjects.rb +251 -0
  434. data/lib/kubernetes/models/v1_port_status.rb +250 -0
  435. data/lib/kubernetes/models/v1_portworx_volume_source.rb +245 -0
  436. data/lib/kubernetes/models/v1_preconditions.rb +230 -0
  437. data/lib/kubernetes/models/v1_preferred_scheduling_term.rb +239 -0
  438. data/lib/kubernetes/models/v1_priority_class.rb +284 -0
  439. data/lib/kubernetes/models/v1_priority_class_list.rb +256 -0
  440. data/lib/kubernetes/models/v1_priority_level_configuration.rb +257 -0
  441. data/lib/kubernetes/models/v1_priority_level_configuration_condition.rb +260 -0
  442. data/lib/kubernetes/models/v1_priority_level_configuration_list.rb +256 -0
  443. data/lib/kubernetes/models/v1_priority_level_configuration_reference.rb +225 -0
  444. data/lib/kubernetes/models/v1_priority_level_configuration_spec.rb +243 -0
  445. data/lib/kubernetes/models/v1_priority_level_configuration_status.rb +222 -0
  446. data/lib/kubernetes/models/v1_probe.rb +306 -0
  447. data/lib/kubernetes/models/v1_projected_volume_source.rb +232 -0
  448. data/lib/kubernetes/models/v1_queuing_configuration.rb +240 -0
  449. data/lib/kubernetes/models/v1_quobyte_volume_source.rb +280 -0
  450. data/lib/kubernetes/models/v1_rbd_persistent_volume_source.rb +301 -0
  451. data/lib/kubernetes/models/v1_rbd_volume_source.rb +301 -0
  452. data/lib/kubernetes/models/v1_replica_set.rb +257 -0
  453. data/lib/kubernetes/models/v1_replica_set_condition.rb +270 -0
  454. data/lib/kubernetes/models/v1_replica_set_list.rb +256 -0
  455. data/lib/kubernetes/models/v1_replica_set_spec.rb +253 -0
  456. data/lib/kubernetes/models/v1_replica_set_status.rb +287 -0
  457. data/lib/kubernetes/models/v1_replication_controller.rb +257 -0
  458. data/lib/kubernetes/models/v1_replication_controller_condition.rb +270 -0
  459. data/lib/kubernetes/models/v1_replication_controller_list.rb +256 -0
  460. data/lib/kubernetes/models/v1_replication_controller_spec.rb +251 -0
  461. data/lib/kubernetes/models/v1_replication_controller_status.rb +277 -0
  462. data/lib/kubernetes/models/v1_resource_attributes.rb +298 -0
  463. data/lib/kubernetes/models/v1_resource_claim_consumer_reference.rb +265 -0
  464. data/lib/kubernetes/models/v1_resource_claim_list.rb +256 -0
  465. data/lib/kubernetes/models/v1_resource_claim_spec.rb +219 -0
  466. data/lib/kubernetes/models/v1_resource_claim_status.rb +243 -0
  467. data/lib/kubernetes/models/v1_resource_claim_template.rb +253 -0
  468. data/lib/kubernetes/models/v1_resource_claim_template_list.rb +256 -0
  469. data/lib/kubernetes/models/v1_resource_claim_template_spec.rb +233 -0
  470. data/lib/kubernetes/models/v1_resource_field_selector.rb +245 -0
  471. data/lib/kubernetes/models/v1_resource_health.rb +235 -0
  472. data/lib/kubernetes/models/v1_resource_policy_rule.rb +283 -0
  473. data/lib/kubernetes/models/v1_resource_pool.rb +255 -0
  474. data/lib/kubernetes/models/v1_resource_quota.rb +257 -0
  475. data/lib/kubernetes/models/v1_resource_quota_list.rb +256 -0
  476. data/lib/kubernetes/models/v1_resource_quota_spec.rb +243 -0
  477. data/lib/kubernetes/models/v1_resource_quota_status.rb +234 -0
  478. data/lib/kubernetes/models/v1_resource_requirements.rb +246 -0
  479. data/lib/kubernetes/models/v1_resource_rule.rb +263 -0
  480. data/lib/kubernetes/models/v1_resource_slice.rb +253 -0
  481. data/lib/kubernetes/models/v1_resource_slice_list.rb +256 -0
  482. data/lib/kubernetes/models/v1_resource_slice_spec.rb +302 -0
  483. data/lib/kubernetes/models/v1_resource_status.rb +237 -0
  484. data/lib/kubernetes/models/v1_role.rb +251 -0
  485. data/lib/kubernetes/models/v1_role_binding.rb +265 -0
  486. data/lib/kubernetes/models/v1_role_binding_list.rb +256 -0
  487. data/lib/kubernetes/models/v1_role_list.rb +256 -0
  488. data/lib/kubernetes/models/v1_role_ref.rb +255 -0
  489. data/lib/kubernetes/models/v1_rolling_update_daemon_set.rb +230 -0
  490. data/lib/kubernetes/models/v1_rolling_update_deployment.rb +230 -0
  491. data/lib/kubernetes/models/v1_rolling_update_stateful_set_strategy.rb +230 -0
  492. data/lib/kubernetes/models/v1_rule_with_operations.rb +268 -0
  493. data/lib/kubernetes/models/v1_runtime_class.rb +272 -0
  494. data/lib/kubernetes/models/v1_runtime_class_list.rb +256 -0
  495. data/lib/kubernetes/models/v1_scale.rb +257 -0
  496. data/lib/kubernetes/models/v1_scale_io_persistent_volume_source.rb +324 -0
  497. data/lib/kubernetes/models/v1_scale_io_volume_source.rb +324 -0
  498. data/lib/kubernetes/models/v1_scale_spec.rb +220 -0
  499. data/lib/kubernetes/models/v1_scale_status.rb +235 -0
  500. data/lib/kubernetes/models/v1_scheduling.rb +234 -0
  501. data/lib/kubernetes/models/v1_scope_selector.rb +222 -0
  502. data/lib/kubernetes/models/v1_scoped_resource_selector_requirement.rb +252 -0
  503. data/lib/kubernetes/models/v1_se_linux_options.rb +250 -0
  504. data/lib/kubernetes/models/v1_seccomp_profile.rb +235 -0
  505. data/lib/kubernetes/models/v1_secret.rb +283 -0
  506. data/lib/kubernetes/models/v1_secret_env_source.rb +230 -0
  507. data/lib/kubernetes/models/v1_secret_key_selector.rb +245 -0
  508. data/lib/kubernetes/models/v1_secret_list.rb +256 -0
  509. data/lib/kubernetes/models/v1_secret_projection.rb +242 -0
  510. data/lib/kubernetes/models/v1_secret_reference.rb +230 -0
  511. data/lib/kubernetes/models/v1_secret_volume_source.rb +252 -0
  512. data/lib/kubernetes/models/v1_security_context.rb +325 -0
  513. data/lib/kubernetes/models/v1_selectable_field.rb +225 -0
  514. data/lib/kubernetes/models/v1_self_subject_access_review.rb +262 -0
  515. data/lib/kubernetes/models/v1_self_subject_access_review_spec.rb +228 -0
  516. data/lib/kubernetes/models/v1_self_subject_review.rb +248 -0
  517. data/lib/kubernetes/models/v1_self_subject_review_status.rb +219 -0
  518. data/lib/kubernetes/models/v1_self_subject_rules_review.rb +262 -0
  519. data/lib/kubernetes/models/v1_self_subject_rules_review_spec.rb +220 -0
  520. data/lib/kubernetes/models/v1_server_address_by_client_cidr.rb +240 -0
  521. data/lib/kubernetes/models/v1_service.rb +257 -0
  522. data/lib/kubernetes/models/v1_service_account.rb +273 -0
  523. data/lib/kubernetes/models/v1_service_account_list.rb +256 -0
  524. data/lib/kubernetes/models/v1_service_account_subject.rb +240 -0
  525. data/lib/kubernetes/models/v1_service_account_token_projection.rb +245 -0
  526. data/lib/kubernetes/models/v1_service_backend_port.rb +230 -0
  527. data/lib/kubernetes/models/v1_service_cidr.rb +257 -0
  528. data/lib/kubernetes/models/v1_service_cidr_list.rb +256 -0
  529. data/lib/kubernetes/models/v1_service_cidr_spec.rb +222 -0
  530. data/lib/kubernetes/models/v1_service_cidr_status.rb +222 -0
  531. data/lib/kubernetes/models/v1_service_list.rb +256 -0
  532. data/lib/kubernetes/models/v1_service_port.rb +275 -0
  533. data/lib/kubernetes/models/v1_service_spec.rb +421 -0
  534. data/lib/kubernetes/models/v1_service_status.rb +231 -0
  535. data/lib/kubernetes/models/v1_session_affinity_config.rb +219 -0
  536. data/lib/kubernetes/models/v1_sleep_action.rb +225 -0
  537. data/lib/kubernetes/models/v1_stateful_set.rb +257 -0
  538. data/lib/kubernetes/models/v1_stateful_set_condition.rb +270 -0
  539. data/lib/kubernetes/models/v1_stateful_set_list.rb +256 -0
  540. data/lib/kubernetes/models/v1_stateful_set_ordinals.rb +220 -0
  541. data/lib/kubernetes/models/v1_stateful_set_persistent_volume_claim_retention_policy.rb +230 -0
  542. data/lib/kubernetes/models/v1_stateful_set_spec.rb +327 -0
  543. data/lib/kubernetes/models/v1_stateful_set_status.rb +317 -0
  544. data/lib/kubernetes/models/v1_stateful_set_update_strategy.rb +229 -0
  545. data/lib/kubernetes/models/v1_status.rb +288 -0
  546. data/lib/kubernetes/models/v1_status_cause.rb +240 -0
  547. data/lib/kubernetes/models/v1_status_details.rb +272 -0
  548. data/lib/kubernetes/models/v1_storage_class.rb +320 -0
  549. data/lib/kubernetes/models/v1_storage_class_list.rb +256 -0
  550. data/lib/kubernetes/models/v1_storage_os_persistent_volume_source.rb +259 -0
  551. data/lib/kubernetes/models/v1_storage_os_volume_source.rb +259 -0
  552. data/lib/kubernetes/models/v1_subject_access_review.rb +262 -0
  553. data/lib/kubernetes/models/v1_subject_access_review_spec.rb +272 -0
  554. data/lib/kubernetes/models/v1_subject_access_review_status.rb +255 -0
  555. data/lib/kubernetes/models/v1_subject_rules_review_status.rb +269 -0
  556. data/lib/kubernetes/models/v1_success_policy.rb +227 -0
  557. data/lib/kubernetes/models/v1_success_policy_rule.rb +230 -0
  558. data/lib/kubernetes/models/v1_sysctl.rb +240 -0
  559. data/lib/kubernetes/models/v1_taint.rb +260 -0
  560. data/lib/kubernetes/models/v1_tcp_socket_action.rb +235 -0
  561. data/lib/kubernetes/models/v1_token_request_spec.rb +246 -0
  562. data/lib/kubernetes/models/v1_token_request_status.rb +240 -0
  563. data/lib/kubernetes/models/v1_token_review.rb +262 -0
  564. data/lib/kubernetes/models/v1_token_review_spec.rb +232 -0
  565. data/lib/kubernetes/models/v1_token_review_status.rb +251 -0
  566. data/lib/kubernetes/models/v1_toleration.rb +260 -0
  567. data/lib/kubernetes/models/v1_topology_selector_label_requirement.rb +242 -0
  568. data/lib/kubernetes/models/v1_topology_selector_term.rb +222 -0
  569. data/lib/kubernetes/models/v1_topology_spread_constraint.rb +306 -0
  570. data/lib/kubernetes/models/v1_type_checking.rb +222 -0
  571. data/lib/kubernetes/models/v1_typed_local_object_reference.rb +250 -0
  572. data/lib/kubernetes/models/v1_typed_object_reference.rb +260 -0
  573. data/lib/kubernetes/models/v1_uncounted_terminated_pods.rb +234 -0
  574. data/lib/kubernetes/models/v1_user_info.rb +254 -0
  575. data/lib/kubernetes/models/v1_user_subject.rb +225 -0
  576. data/lib/kubernetes/models/v1_validating_admission_policy.rb +257 -0
  577. data/lib/kubernetes/models/v1_validating_admission_policy_binding.rb +248 -0
  578. data/lib/kubernetes/models/v1_validating_admission_policy_binding_list.rb +256 -0
  579. data/lib/kubernetes/models/v1_validating_admission_policy_binding_spec.rb +250 -0
  580. data/lib/kubernetes/models/v1_validating_admission_policy_list.rb +256 -0
  581. data/lib/kubernetes/models/v1_validating_admission_policy_spec.rb +286 -0
  582. data/lib/kubernetes/models/v1_validating_admission_policy_status.rb +241 -0
  583. data/lib/kubernetes/models/v1_validating_webhook.rb +343 -0
  584. data/lib/kubernetes/models/v1_validating_webhook_configuration.rb +251 -0
  585. data/lib/kubernetes/models/v1_validating_webhook_configuration_list.rb +256 -0
  586. data/lib/kubernetes/models/v1_validation.rb +255 -0
  587. data/lib/kubernetes/models/v1_validation_rule.rb +275 -0
  588. data/lib/kubernetes/models/v1_variable.rb +240 -0
  589. data/lib/kubernetes/models/v1_volume.rb +495 -0
  590. data/lib/kubernetes/models/v1_volume_attachment.rb +262 -0
  591. data/lib/kubernetes/models/v1_volume_attachment_list.rb +256 -0
  592. data/lib/kubernetes/models/v1_volume_attachment_source.rb +229 -0
  593. data/lib/kubernetes/models/v1_volume_attachment_spec.rb +254 -0
  594. data/lib/kubernetes/models/v1_volume_attachment_status.rb +255 -0
  595. data/lib/kubernetes/models/v1_volume_attributes_class.rb +266 -0
  596. data/lib/kubernetes/models/v1_volume_attributes_class_list.rb +256 -0
  597. data/lib/kubernetes/models/v1_volume_device.rb +240 -0
  598. data/lib/kubernetes/models/v1_volume_error.rb +240 -0
  599. data/lib/kubernetes/models/v1_volume_mount.rb +290 -0
  600. data/lib/kubernetes/models/v1_volume_mount_status.rb +260 -0
  601. data/lib/kubernetes/models/v1_volume_node_affinity.rb +219 -0
  602. data/lib/kubernetes/models/v1_volume_node_resources.rb +220 -0
  603. data/lib/kubernetes/models/v1_volume_projection.rb +264 -0
  604. data/lib/kubernetes/models/v1_volume_resource_requirements.rb +234 -0
  605. data/lib/kubernetes/models/v1_vsphere_virtual_disk_volume_source.rb +255 -0
  606. data/lib/kubernetes/models/v1_watch_event.rb +239 -0
  607. data/lib/kubernetes/models/v1_webhook_conversion.rb +236 -0
  608. data/lib/kubernetes/models/v1_weighted_pod_affinity_term.rb +239 -0
  609. data/lib/kubernetes/models/v1_windows_security_context_options.rb +250 -0
  610. data/lib/kubernetes/models/v1_workload_reference.rb +250 -0
  611. data/lib/kubernetes/models/v1alpha1_apply_configuration.rb +220 -0
  612. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle.rb +253 -0
  613. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_list.rb +256 -0
  614. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_spec.rb +235 -0
  615. data/lib/kubernetes/models/v1alpha1_gang_scheduling_policy.rb +225 -0
  616. data/lib/kubernetes/models/v1alpha1_json_patch.rb +220 -0
  617. data/lib/kubernetes/models/v1alpha1_match_condition.rb +239 -0
  618. data/lib/kubernetes/models/v1alpha1_match_resources.rb +262 -0
  619. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy.rb +248 -0
  620. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding.rb +248 -0
  621. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_list.rb +256 -0
  622. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_spec.rb +238 -0
  623. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_list.rb +256 -0
  624. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_spec.rb +284 -0
  625. data/lib/kubernetes/models/v1alpha1_mutation.rb +243 -0
  626. data/lib/kubernetes/models/v1alpha1_named_rule_with_operations.rb +280 -0
  627. data/lib/kubernetes/models/v1alpha1_param_kind.rb +230 -0
  628. data/lib/kubernetes/models/v1alpha1_param_ref.rb +249 -0
  629. data/lib/kubernetes/models/v1alpha1_pod_group.rb +239 -0
  630. data/lib/kubernetes/models/v1alpha1_pod_group_policy.rb +229 -0
  631. data/lib/kubernetes/models/v1alpha1_server_storage_version.rb +254 -0
  632. data/lib/kubernetes/models/v1alpha1_storage_version.rb +268 -0
  633. data/lib/kubernetes/models/v1alpha1_storage_version_condition.rb +290 -0
  634. data/lib/kubernetes/models/v1alpha1_storage_version_list.rb +256 -0
  635. data/lib/kubernetes/models/v1alpha1_storage_version_status.rb +244 -0
  636. data/lib/kubernetes/models/v1alpha1_typed_local_object_reference.rb +250 -0
  637. data/lib/kubernetes/models/v1alpha1_variable.rb +240 -0
  638. data/lib/kubernetes/models/v1alpha1_workload.rb +253 -0
  639. data/lib/kubernetes/models/v1alpha1_workload_list.rb +256 -0
  640. data/lib/kubernetes/models/v1alpha1_workload_spec.rb +236 -0
  641. data/lib/kubernetes/models/v1alpha2_lease_candidate.rb +248 -0
  642. data/lib/kubernetes/models/v1alpha2_lease_candidate_list.rb +256 -0
  643. data/lib/kubernetes/models/v1alpha2_lease_candidate_spec.rb +285 -0
  644. data/lib/kubernetes/models/v1alpha3_device_taint.rb +260 -0
  645. data/lib/kubernetes/models/v1alpha3_device_taint_rule.rb +262 -0
  646. data/lib/kubernetes/models/v1alpha3_device_taint_rule_list.rb +256 -0
  647. data/lib/kubernetes/models/v1alpha3_device_taint_rule_spec.rb +233 -0
  648. data/lib/kubernetes/models/v1alpha3_device_taint_rule_status.rb +222 -0
  649. data/lib/kubernetes/models/v1alpha3_device_taint_selector.rb +240 -0
  650. data/lib/kubernetes/models/v1beta1_allocated_device_status.rb +296 -0
  651. data/lib/kubernetes/models/v1beta1_allocation_result.rb +238 -0
  652. data/lib/kubernetes/models/v1beta1_apply_configuration.rb +220 -0
  653. data/lib/kubernetes/models/v1beta1_basic_device.rb +331 -0
  654. data/lib/kubernetes/models/v1beta1_capacity_request_policy.rb +241 -0
  655. data/lib/kubernetes/models/v1beta1_capacity_request_policy_range.rb +245 -0
  656. data/lib/kubernetes/models/v1beta1_capacity_requirements.rb +222 -0
  657. data/lib/kubernetes/models/v1beta1_cel_device_selector.rb +225 -0
  658. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle.rb +253 -0
  659. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_list.rb +256 -0
  660. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_spec.rb +235 -0
  661. data/lib/kubernetes/models/v1beta1_counter.rb +225 -0
  662. data/lib/kubernetes/models/v1beta1_counter_set.rb +242 -0
  663. data/lib/kubernetes/models/v1beta1_device.rb +234 -0
  664. data/lib/kubernetes/models/v1beta1_device_allocation_configuration.rb +246 -0
  665. data/lib/kubernetes/models/v1beta1_device_allocation_result.rb +234 -0
  666. data/lib/kubernetes/models/v1beta1_device_attribute.rb +250 -0
  667. data/lib/kubernetes/models/v1beta1_device_capacity.rb +234 -0
  668. data/lib/kubernetes/models/v1beta1_device_claim.rb +246 -0
  669. data/lib/kubernetes/models/v1beta1_device_claim_configuration.rb +231 -0
  670. data/lib/kubernetes/models/v1beta1_device_class.rb +253 -0
  671. data/lib/kubernetes/models/v1beta1_device_class_configuration.rb +219 -0
  672. data/lib/kubernetes/models/v1beta1_device_class_list.rb +256 -0
  673. data/lib/kubernetes/models/v1beta1_device_class_spec.rb +244 -0
  674. data/lib/kubernetes/models/v1beta1_device_constraint.rb +242 -0
  675. data/lib/kubernetes/models/v1beta1_device_counter_consumption.rb +242 -0
  676. data/lib/kubernetes/models/v1beta1_device_request.rb +310 -0
  677. data/lib/kubernetes/models/v1beta1_device_request_allocation_result.rb +338 -0
  678. data/lib/kubernetes/models/v1beta1_device_selector.rb +219 -0
  679. data/lib/kubernetes/models/v1beta1_device_sub_request.rb +293 -0
  680. data/lib/kubernetes/models/v1beta1_device_taint.rb +260 -0
  681. data/lib/kubernetes/models/v1beta1_device_toleration.rb +260 -0
  682. data/lib/kubernetes/models/v1beta1_ip_address.rb +248 -0
  683. data/lib/kubernetes/models/v1beta1_ip_address_list.rb +256 -0
  684. data/lib/kubernetes/models/v1beta1_ip_address_spec.rb +224 -0
  685. data/lib/kubernetes/models/v1beta1_json_patch.rb +220 -0
  686. data/lib/kubernetes/models/v1beta1_lease_candidate.rb +248 -0
  687. data/lib/kubernetes/models/v1beta1_lease_candidate_list.rb +256 -0
  688. data/lib/kubernetes/models/v1beta1_lease_candidate_spec.rb +285 -0
  689. data/lib/kubernetes/models/v1beta1_match_condition.rb +240 -0
  690. data/lib/kubernetes/models/v1beta1_match_resources.rb +262 -0
  691. data/lib/kubernetes/models/v1beta1_mutating_admission_policy.rb +248 -0
  692. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding.rb +248 -0
  693. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_list.rb +256 -0
  694. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_spec.rb +238 -0
  695. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_list.rb +256 -0
  696. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_spec.rb +284 -0
  697. data/lib/kubernetes/models/v1beta1_mutation.rb +243 -0
  698. data/lib/kubernetes/models/v1beta1_named_rule_with_operations.rb +280 -0
  699. data/lib/kubernetes/models/v1beta1_network_device_data.rb +242 -0
  700. data/lib/kubernetes/models/v1beta1_opaque_device_configuration.rb +240 -0
  701. data/lib/kubernetes/models/v1beta1_param_kind.rb +230 -0
  702. data/lib/kubernetes/models/v1beta1_param_ref.rb +249 -0
  703. data/lib/kubernetes/models/v1beta1_parent_reference.rb +260 -0
  704. data/lib/kubernetes/models/v1beta1_pod_certificate_request.rb +262 -0
  705. data/lib/kubernetes/models/v1beta1_pod_certificate_request_list.rb +256 -0
  706. data/lib/kubernetes/models/v1beta1_pod_certificate_request_spec.rb +409 -0
  707. data/lib/kubernetes/models/v1beta1_pod_certificate_request_status.rb +262 -0
  708. data/lib/kubernetes/models/v1beta1_resource_claim.rb +262 -0
  709. data/lib/kubernetes/models/v1beta1_resource_claim_consumer_reference.rb +265 -0
  710. data/lib/kubernetes/models/v1beta1_resource_claim_list.rb +256 -0
  711. data/lib/kubernetes/models/v1beta1_resource_claim_spec.rb +219 -0
  712. data/lib/kubernetes/models/v1beta1_resource_claim_status.rb +243 -0
  713. data/lib/kubernetes/models/v1beta1_resource_claim_template.rb +253 -0
  714. data/lib/kubernetes/models/v1beta1_resource_claim_template_list.rb +256 -0
  715. data/lib/kubernetes/models/v1beta1_resource_claim_template_spec.rb +233 -0
  716. data/lib/kubernetes/models/v1beta1_resource_pool.rb +255 -0
  717. data/lib/kubernetes/models/v1beta1_resource_slice.rb +253 -0
  718. data/lib/kubernetes/models/v1beta1_resource_slice_list.rb +256 -0
  719. data/lib/kubernetes/models/v1beta1_resource_slice_spec.rb +302 -0
  720. data/lib/kubernetes/models/v1beta1_service_cidr.rb +257 -0
  721. data/lib/kubernetes/models/v1beta1_service_cidr_list.rb +256 -0
  722. data/lib/kubernetes/models/v1beta1_service_cidr_spec.rb +222 -0
  723. data/lib/kubernetes/models/v1beta1_service_cidr_status.rb +222 -0
  724. data/lib/kubernetes/models/v1beta1_storage_version_migration.rb +257 -0
  725. data/lib/kubernetes/models/v1beta1_storage_version_migration_list.rb +256 -0
  726. data/lib/kubernetes/models/v1beta1_storage_version_migration_spec.rb +224 -0
  727. data/lib/kubernetes/models/v1beta1_storage_version_migration_status.rb +232 -0
  728. data/lib/kubernetes/models/v1beta1_variable.rb +240 -0
  729. data/lib/kubernetes/models/v1beta1_volume_attributes_class.rb +266 -0
  730. data/lib/kubernetes/models/v1beta1_volume_attributes_class_list.rb +256 -0
  731. data/lib/kubernetes/models/v1beta2_allocated_device_status.rb +296 -0
  732. data/lib/kubernetes/models/v1beta2_allocation_result.rb +238 -0
  733. data/lib/kubernetes/models/v1beta2_capacity_request_policy.rb +241 -0
  734. data/lib/kubernetes/models/v1beta2_capacity_request_policy_range.rb +245 -0
  735. data/lib/kubernetes/models/v1beta2_capacity_requirements.rb +222 -0
  736. data/lib/kubernetes/models/v1beta2_cel_device_selector.rb +225 -0
  737. data/lib/kubernetes/models/v1beta2_counter.rb +225 -0
  738. data/lib/kubernetes/models/v1beta2_counter_set.rb +242 -0
  739. data/lib/kubernetes/models/v1beta2_device.rb +346 -0
  740. data/lib/kubernetes/models/v1beta2_device_allocation_configuration.rb +246 -0
  741. data/lib/kubernetes/models/v1beta2_device_allocation_result.rb +234 -0
  742. data/lib/kubernetes/models/v1beta2_device_attribute.rb +250 -0
  743. data/lib/kubernetes/models/v1beta2_device_capacity.rb +234 -0
  744. data/lib/kubernetes/models/v1beta2_device_claim.rb +246 -0
  745. data/lib/kubernetes/models/v1beta2_device_claim_configuration.rb +231 -0
  746. data/lib/kubernetes/models/v1beta2_device_class.rb +253 -0
  747. data/lib/kubernetes/models/v1beta2_device_class_configuration.rb +219 -0
  748. data/lib/kubernetes/models/v1beta2_device_class_list.rb +256 -0
  749. data/lib/kubernetes/models/v1beta2_device_class_spec.rb +244 -0
  750. data/lib/kubernetes/models/v1beta2_device_constraint.rb +242 -0
  751. data/lib/kubernetes/models/v1beta2_device_counter_consumption.rb +242 -0
  752. data/lib/kubernetes/models/v1beta2_device_request.rb +246 -0
  753. data/lib/kubernetes/models/v1beta2_device_request_allocation_result.rb +338 -0
  754. data/lib/kubernetes/models/v1beta2_device_selector.rb +219 -0
  755. data/lib/kubernetes/models/v1beta2_device_sub_request.rb +293 -0
  756. data/lib/kubernetes/models/v1beta2_device_taint.rb +260 -0
  757. data/lib/kubernetes/models/v1beta2_device_toleration.rb +260 -0
  758. data/lib/kubernetes/models/v1beta2_exact_device_request.rb +288 -0
  759. data/lib/kubernetes/models/v1beta2_network_device_data.rb +242 -0
  760. data/lib/kubernetes/models/v1beta2_opaque_device_configuration.rb +240 -0
  761. data/lib/kubernetes/models/v1beta2_resource_claim.rb +262 -0
  762. data/lib/kubernetes/models/v1beta2_resource_claim_consumer_reference.rb +265 -0
  763. data/lib/kubernetes/models/v1beta2_resource_claim_list.rb +256 -0
  764. data/lib/kubernetes/models/v1beta2_resource_claim_spec.rb +219 -0
  765. data/lib/kubernetes/models/v1beta2_resource_claim_status.rb +243 -0
  766. data/lib/kubernetes/models/v1beta2_resource_claim_template.rb +253 -0
  767. data/lib/kubernetes/models/v1beta2_resource_claim_template_list.rb +256 -0
  768. data/lib/kubernetes/models/v1beta2_resource_claim_template_spec.rb +233 -0
  769. data/lib/kubernetes/models/v1beta2_resource_pool.rb +255 -0
  770. data/lib/kubernetes/models/v1beta2_resource_slice.rb +253 -0
  771. data/lib/kubernetes/models/v1beta2_resource_slice_list.rb +256 -0
  772. data/lib/kubernetes/models/v1beta2_resource_slice_spec.rb +302 -0
  773. data/lib/kubernetes/models/v2_api_group_discovery.rb +248 -0
  774. data/lib/kubernetes/models/v2_api_group_discovery_list.rb +253 -0
  775. data/lib/kubernetes/models/v2_api_resource_discovery.rb +316 -0
  776. data/lib/kubernetes/models/v2_api_subresource_discovery.rb +262 -0
  777. data/lib/kubernetes/models/v2_api_version_discovery.rb +246 -0
  778. data/lib/kubernetes/models/v2_container_resource_metric_source.rb +254 -0
  779. data/lib/kubernetes/models/v2_container_resource_metric_status.rb +254 -0
  780. data/lib/kubernetes/models/v2_cross_version_object_reference.rb +250 -0
  781. data/lib/kubernetes/models/v2_external_metric_source.rb +238 -0
  782. data/lib/kubernetes/models/v2_external_metric_status.rb +238 -0
  783. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler.rb +257 -0
  784. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_behavior.rb +228 -0
  785. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_condition.rb +270 -0
  786. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_list.rb +256 -0
  787. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_spec.rb +270 -0
  788. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_status.rb +279 -0
  789. data/lib/kubernetes/models/v2_hpa_scaling_policy.rb +255 -0
  790. data/lib/kubernetes/models/v2_hpa_scaling_rules.rb +252 -0
  791. data/lib/kubernetes/models/v2_metric_identifier.rb +234 -0
  792. data/lib/kubernetes/models/v2_metric_spec.rb +270 -0
  793. data/lib/kubernetes/models/v2_metric_status.rb +270 -0
  794. data/lib/kubernetes/models/v2_metric_target.rb +255 -0
  795. data/lib/kubernetes/models/v2_metric_value_status.rb +240 -0
  796. data/lib/kubernetes/models/v2_object_metric_source.rb +252 -0
  797. data/lib/kubernetes/models/v2_object_metric_status.rb +252 -0
  798. data/lib/kubernetes/models/v2_pods_metric_source.rb +238 -0
  799. data/lib/kubernetes/models/v2_pods_metric_status.rb +238 -0
  800. data/lib/kubernetes/models/v2_resource_metric_source.rb +239 -0
  801. data/lib/kubernetes/models/v2_resource_metric_status.rb +239 -0
  802. data/lib/kubernetes/models/v2beta1_api_group_discovery.rb +248 -0
  803. data/lib/kubernetes/models/v2beta1_api_group_discovery_list.rb +253 -0
  804. data/lib/kubernetes/models/v2beta1_api_resource_discovery.rb +316 -0
  805. data/lib/kubernetes/models/v2beta1_api_subresource_discovery.rb +262 -0
  806. data/lib/kubernetes/models/v2beta1_api_version_discovery.rb +246 -0
  807. data/lib/kubernetes/models/version_info.rb +378 -0
  808. data/lib/kubernetes/utils.rb +123 -0
  809. data/lib/kubernetes/version.rb +15 -0
  810. data/lib/kubernetes/watch.rb +4 -0
  811. data/lib/kubernetes.rb +836 -0
  812. metadata +914 -0
@@ -0,0 +1,3649 @@
1
+ =begin
2
+ #Kubernetes
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: release-1.35
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Kubernetes
16
+ class NetworkingV1Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # create an IngressClass
23
+ # @param body [V1IngressClass]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
26
+ # @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
27
+ # @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.
28
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
29
+ # @return [V1IngressClass]
30
+ def create_ingress_class(body, opts = {})
31
+ data, _status_code, _headers = create_ingress_class_with_http_info(body, opts)
32
+ data
33
+ end
34
+
35
+ # create an IngressClass
36
+ # @param body [V1IngressClass]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
39
+ # @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
40
+ # @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.
41
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
42
+ # @return [Array<(V1IngressClass, Integer, Hash)>] V1IngressClass data, response status code and response headers
43
+ def create_ingress_class_with_http_info(body, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_ingress_class ...'
46
+ end
47
+ # verify the required parameter 'body' is set
48
+ if @api_client.config.client_side_validation && body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.create_ingress_class"
50
+ end
51
+ # resource path
52
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses'
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
57
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
58
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
59
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
71
+
72
+ # return_type
73
+ return_type = opts[:debug_return_type] || 'V1IngressClass'
74
+
75
+ # auth_names
76
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
77
+
78
+ new_options = opts.merge(
79
+ :operation => :"NetworkingV1Api.create_ingress_class",
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => return_type
86
+ )
87
+
88
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ # create an IPAddress
96
+ # @param body [V1IPAddress]
97
+ # @param [Hash] opts the optional parameters
98
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
99
+ # @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
100
+ # @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.
101
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
102
+ # @return [V1IPAddress]
103
+ def create_ip_address_networking_v1(body, opts = {})
104
+ data, _status_code, _headers = create_ip_address_networking_v1_with_http_info(body, opts)
105
+ data
106
+ end
107
+
108
+ # create an IPAddress
109
+ # @param body [V1IPAddress]
110
+ # @param [Hash] opts the optional parameters
111
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
112
+ # @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
113
+ # @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.
114
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
115
+ # @return [Array<(V1IPAddress, Integer, Hash)>] V1IPAddress data, response status code and response headers
116
+ def create_ip_address_networking_v1_with_http_info(body, opts = {})
117
+ if @api_client.config.debugging
118
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_ip_address_networking_v1 ...'
119
+ end
120
+ # verify the required parameter 'body' is set
121
+ if @api_client.config.client_side_validation && body.nil?
122
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.create_ip_address_networking_v1"
123
+ end
124
+ # resource path
125
+ local_var_path = '/apis/networking.k8s.io/v1/ipaddresses'
126
+
127
+ # query parameters
128
+ query_params = opts[:query_params] || {}
129
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
130
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
131
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
132
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
133
+
134
+ # header parameters
135
+ header_params = opts[:header_params] || {}
136
+ # HTTP header 'Accept' (if needed)
137
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
138
+
139
+ # form parameters
140
+ form_params = opts[:form_params] || {}
141
+
142
+ # http body (model)
143
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
144
+
145
+ # return_type
146
+ return_type = opts[:debug_return_type] || 'V1IPAddress'
147
+
148
+ # auth_names
149
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
150
+
151
+ new_options = opts.merge(
152
+ :operation => :"NetworkingV1Api.create_ip_address_networking_v1",
153
+ :header_params => header_params,
154
+ :query_params => query_params,
155
+ :form_params => form_params,
156
+ :body => post_body,
157
+ :auth_names => auth_names,
158
+ :return_type => return_type
159
+ )
160
+
161
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_ip_address_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
164
+ end
165
+ return data, status_code, headers
166
+ end
167
+
168
+ # create an Ingress
169
+ # @param namespace [String] object name and auth scope, such as for teams and projects
170
+ # @param body [V1Ingress]
171
+ # @param [Hash] opts the optional parameters
172
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
173
+ # @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
174
+ # @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.
175
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
176
+ # @return [V1Ingress]
177
+ def create_namespaced_ingress(namespace, body, opts = {})
178
+ data, _status_code, _headers = create_namespaced_ingress_with_http_info(namespace, body, opts)
179
+ data
180
+ end
181
+
182
+ # create an Ingress
183
+ # @param namespace [String] object name and auth scope, such as for teams and projects
184
+ # @param body [V1Ingress]
185
+ # @param [Hash] opts the optional parameters
186
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
187
+ # @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
188
+ # @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.
189
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
190
+ # @return [Array<(V1Ingress, Integer, Hash)>] V1Ingress data, response status code and response headers
191
+ def create_namespaced_ingress_with_http_info(namespace, body, opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_namespaced_ingress ...'
194
+ end
195
+ # verify the required parameter 'namespace' is set
196
+ if @api_client.config.client_side_validation && namespace.nil?
197
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.create_namespaced_ingress"
198
+ end
199
+ # verify the required parameter 'body' is set
200
+ if @api_client.config.client_side_validation && body.nil?
201
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.create_namespaced_ingress"
202
+ end
203
+ # resource path
204
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
205
+
206
+ # query parameters
207
+ query_params = opts[:query_params] || {}
208
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
209
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
210
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
211
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
212
+
213
+ # header parameters
214
+ header_params = opts[:header_params] || {}
215
+ # HTTP header 'Accept' (if needed)
216
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
217
+
218
+ # form parameters
219
+ form_params = opts[:form_params] || {}
220
+
221
+ # http body (model)
222
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
223
+
224
+ # return_type
225
+ return_type = opts[:debug_return_type] || 'V1Ingress'
226
+
227
+ # auth_names
228
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
229
+
230
+ new_options = opts.merge(
231
+ :operation => :"NetworkingV1Api.create_namespaced_ingress",
232
+ :header_params => header_params,
233
+ :query_params => query_params,
234
+ :form_params => form_params,
235
+ :body => post_body,
236
+ :auth_names => auth_names,
237
+ :return_type => return_type
238
+ )
239
+
240
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
241
+ if @api_client.config.debugging
242
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
243
+ end
244
+ return data, status_code, headers
245
+ end
246
+
247
+ # create a NetworkPolicy
248
+ # @param namespace [String] object name and auth scope, such as for teams and projects
249
+ # @param body [V1NetworkPolicy]
250
+ # @param [Hash] opts the optional parameters
251
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
252
+ # @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
253
+ # @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.
254
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
255
+ # @return [V1NetworkPolicy]
256
+ def create_namespaced_network_policy(namespace, body, opts = {})
257
+ data, _status_code, _headers = create_namespaced_network_policy_with_http_info(namespace, body, opts)
258
+ data
259
+ end
260
+
261
+ # create a NetworkPolicy
262
+ # @param namespace [String] object name and auth scope, such as for teams and projects
263
+ # @param body [V1NetworkPolicy]
264
+ # @param [Hash] opts the optional parameters
265
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
266
+ # @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
267
+ # @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.
268
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
269
+ # @return [Array<(V1NetworkPolicy, Integer, Hash)>] V1NetworkPolicy data, response status code and response headers
270
+ def create_namespaced_network_policy_with_http_info(namespace, body, opts = {})
271
+ if @api_client.config.debugging
272
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_namespaced_network_policy ...'
273
+ end
274
+ # verify the required parameter 'namespace' is set
275
+ if @api_client.config.client_side_validation && namespace.nil?
276
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.create_namespaced_network_policy"
277
+ end
278
+ # verify the required parameter 'body' is set
279
+ if @api_client.config.client_side_validation && body.nil?
280
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.create_namespaced_network_policy"
281
+ end
282
+ # resource path
283
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
284
+
285
+ # query parameters
286
+ query_params = opts[:query_params] || {}
287
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
288
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
289
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
290
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
291
+
292
+ # header parameters
293
+ header_params = opts[:header_params] || {}
294
+ # HTTP header 'Accept' (if needed)
295
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
296
+
297
+ # form parameters
298
+ form_params = opts[:form_params] || {}
299
+
300
+ # http body (model)
301
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
302
+
303
+ # return_type
304
+ return_type = opts[:debug_return_type] || 'V1NetworkPolicy'
305
+
306
+ # auth_names
307
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
308
+
309
+ new_options = opts.merge(
310
+ :operation => :"NetworkingV1Api.create_namespaced_network_policy",
311
+ :header_params => header_params,
312
+ :query_params => query_params,
313
+ :form_params => form_params,
314
+ :body => post_body,
315
+ :auth_names => auth_names,
316
+ :return_type => return_type
317
+ )
318
+
319
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
320
+ if @api_client.config.debugging
321
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
322
+ end
323
+ return data, status_code, headers
324
+ end
325
+
326
+ # create a ServiceCIDR
327
+ # @param body [V1ServiceCIDR]
328
+ # @param [Hash] opts the optional parameters
329
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
330
+ # @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
331
+ # @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.
332
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
333
+ # @return [V1ServiceCIDR]
334
+ def create_service_cidr_networking_v1(body, opts = {})
335
+ data, _status_code, _headers = create_service_cidr_networking_v1_with_http_info(body, opts)
336
+ data
337
+ end
338
+
339
+ # create a ServiceCIDR
340
+ # @param body [V1ServiceCIDR]
341
+ # @param [Hash] opts the optional parameters
342
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
343
+ # @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
344
+ # @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.
345
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
346
+ # @return [Array<(V1ServiceCIDR, Integer, Hash)>] V1ServiceCIDR data, response status code and response headers
347
+ def create_service_cidr_networking_v1_with_http_info(body, opts = {})
348
+ if @api_client.config.debugging
349
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.create_service_cidr_networking_v1 ...'
350
+ end
351
+ # verify the required parameter 'body' is set
352
+ if @api_client.config.client_side_validation && body.nil?
353
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.create_service_cidr_networking_v1"
354
+ end
355
+ # resource path
356
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs'
357
+
358
+ # query parameters
359
+ query_params = opts[:query_params] || {}
360
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
361
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
362
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
363
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
364
+
365
+ # header parameters
366
+ header_params = opts[:header_params] || {}
367
+ # HTTP header 'Accept' (if needed)
368
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
369
+
370
+ # form parameters
371
+ form_params = opts[:form_params] || {}
372
+
373
+ # http body (model)
374
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
375
+
376
+ # return_type
377
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDR'
378
+
379
+ # auth_names
380
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
381
+
382
+ new_options = opts.merge(
383
+ :operation => :"NetworkingV1Api.create_service_cidr_networking_v1",
384
+ :header_params => header_params,
385
+ :query_params => query_params,
386
+ :form_params => form_params,
387
+ :body => post_body,
388
+ :auth_names => auth_names,
389
+ :return_type => return_type
390
+ )
391
+
392
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
393
+ if @api_client.config.debugging
394
+ @api_client.config.logger.debug "API called: NetworkingV1Api#create_service_cidr_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
395
+ end
396
+ return data, status_code, headers
397
+ end
398
+
399
+ # delete collection of IngressClass
400
+ # @param [Hash] opts the optional parameters
401
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
402
+ # @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.
403
+ # @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
404
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
405
+ # @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.
406
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
407
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
408
+ # @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.
409
+ # @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.
410
+ # @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.
411
+ # @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
412
+ # @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
413
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
414
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
415
+ # @option opts [V1DeleteOptions] :body
416
+ # @return [V1Status]
417
+ def delete_collection_ingress_class(opts = {})
418
+ data, _status_code, _headers = delete_collection_ingress_class_with_http_info(opts)
419
+ data
420
+ end
421
+
422
+ # delete collection of IngressClass
423
+ # @param [Hash] opts the optional parameters
424
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
425
+ # @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.
426
+ # @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
427
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
428
+ # @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.
429
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
430
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
431
+ # @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.
432
+ # @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.
433
+ # @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.
434
+ # @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
435
+ # @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
436
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
437
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
438
+ # @option opts [V1DeleteOptions] :body
439
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
440
+ def delete_collection_ingress_class_with_http_info(opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_collection_ingress_class ...'
443
+ end
444
+ # resource path
445
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses'
446
+
447
+ # query parameters
448
+ query_params = opts[:query_params] || {}
449
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
450
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
451
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
452
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
453
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
454
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
455
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
456
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
457
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
458
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
459
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
460
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
461
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
462
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
463
+
464
+ # header parameters
465
+ header_params = opts[:header_params] || {}
466
+ # HTTP header 'Accept' (if needed)
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
468
+
469
+ # form parameters
470
+ form_params = opts[:form_params] || {}
471
+
472
+ # http body (model)
473
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
474
+
475
+ # return_type
476
+ return_type = opts[:debug_return_type] || 'V1Status'
477
+
478
+ # auth_names
479
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
480
+
481
+ new_options = opts.merge(
482
+ :operation => :"NetworkingV1Api.delete_collection_ingress_class",
483
+ :header_params => header_params,
484
+ :query_params => query_params,
485
+ :form_params => form_params,
486
+ :body => post_body,
487
+ :auth_names => auth_names,
488
+ :return_type => return_type
489
+ )
490
+
491
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_collection_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
494
+ end
495
+ return data, status_code, headers
496
+ end
497
+
498
+ # delete collection of IPAddress
499
+ # @param [Hash] opts the optional parameters
500
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
501
+ # @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.
502
+ # @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
503
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
504
+ # @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.
505
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
506
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
507
+ # @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.
508
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
509
+ # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
510
+ # @option opts [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
511
+ # @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
512
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
513
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
514
+ # @option opts [V1DeleteOptions] :body
515
+ # @return [V1Status]
516
+ def delete_collection_ip_address_networking_v1(opts = {})
517
+ data, _status_code, _headers = delete_collection_ip_address_networking_v1_with_http_info(opts)
518
+ data
519
+ end
520
+
521
+ # delete collection of IPAddress
522
+ # @param [Hash] opts the optional parameters
523
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
524
+ # @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.
525
+ # @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
526
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
527
+ # @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.
528
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
529
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
530
+ # @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.
531
+ # @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.
532
+ # @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.
533
+ # @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
534
+ # @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
535
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
536
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
537
+ # @option opts [V1DeleteOptions] :body
538
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
539
+ def delete_collection_ip_address_networking_v1_with_http_info(opts = {})
540
+ if @api_client.config.debugging
541
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_collection_ip_address_networking_v1 ...'
542
+ end
543
+ # resource path
544
+ local_var_path = '/apis/networking.k8s.io/v1/ipaddresses'
545
+
546
+ # query parameters
547
+ query_params = opts[:query_params] || {}
548
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
549
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
550
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
551
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
552
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
553
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
554
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
555
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
556
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
557
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
558
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
559
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
560
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
561
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
562
+
563
+ # header parameters
564
+ header_params = opts[:header_params] || {}
565
+ # HTTP header 'Accept' (if needed)
566
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
567
+
568
+ # form parameters
569
+ form_params = opts[:form_params] || {}
570
+
571
+ # http body (model)
572
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
573
+
574
+ # return_type
575
+ return_type = opts[:debug_return_type] || 'V1Status'
576
+
577
+ # auth_names
578
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
579
+
580
+ new_options = opts.merge(
581
+ :operation => :"NetworkingV1Api.delete_collection_ip_address_networking_v1",
582
+ :header_params => header_params,
583
+ :query_params => query_params,
584
+ :form_params => form_params,
585
+ :body => post_body,
586
+ :auth_names => auth_names,
587
+ :return_type => return_type
588
+ )
589
+
590
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
591
+ if @api_client.config.debugging
592
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_collection_ip_address_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
593
+ end
594
+ return data, status_code, headers
595
+ end
596
+
597
+ # delete collection of Ingress
598
+ # @param namespace [String] object name and auth scope, such as for teams and projects
599
+ # @param [Hash] opts the optional parameters
600
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
601
+ # @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.
602
+ # @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
603
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
604
+ # @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.
605
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
606
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
607
+ # @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.
608
+ # @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.
609
+ # @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.
610
+ # @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
611
+ # @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
612
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
613
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
614
+ # @option opts [V1DeleteOptions] :body
615
+ # @return [V1Status]
616
+ def delete_collection_namespaced_ingress(namespace, opts = {})
617
+ data, _status_code, _headers = delete_collection_namespaced_ingress_with_http_info(namespace, opts)
618
+ data
619
+ end
620
+
621
+ # delete collection of Ingress
622
+ # @param namespace [String] object name and auth scope, such as for teams and projects
623
+ # @param [Hash] opts the optional parameters
624
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
625
+ # @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.
626
+ # @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
627
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
628
+ # @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.
629
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
630
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
631
+ # @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.
632
+ # @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.
633
+ # @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.
634
+ # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
635
+ # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
636
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
637
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
638
+ # @option opts [V1DeleteOptions] :body
639
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
640
+ def delete_collection_namespaced_ingress_with_http_info(namespace, opts = {})
641
+ if @api_client.config.debugging
642
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_collection_namespaced_ingress ...'
643
+ end
644
+ # verify the required parameter 'namespace' is set
645
+ if @api_client.config.client_side_validation && namespace.nil?
646
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_collection_namespaced_ingress"
647
+ end
648
+ # resource path
649
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
650
+
651
+ # query parameters
652
+ query_params = opts[:query_params] || {}
653
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
654
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
655
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
656
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
657
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
658
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
659
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
660
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
661
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
662
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
663
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
664
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
665
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
666
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
667
+
668
+ # header parameters
669
+ header_params = opts[:header_params] || {}
670
+ # HTTP header 'Accept' (if needed)
671
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
672
+
673
+ # form parameters
674
+ form_params = opts[:form_params] || {}
675
+
676
+ # http body (model)
677
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
678
+
679
+ # return_type
680
+ return_type = opts[:debug_return_type] || 'V1Status'
681
+
682
+ # auth_names
683
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
684
+
685
+ new_options = opts.merge(
686
+ :operation => :"NetworkingV1Api.delete_collection_namespaced_ingress",
687
+ :header_params => header_params,
688
+ :query_params => query_params,
689
+ :form_params => form_params,
690
+ :body => post_body,
691
+ :auth_names => auth_names,
692
+ :return_type => return_type
693
+ )
694
+
695
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
696
+ if @api_client.config.debugging
697
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_collection_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
698
+ end
699
+ return data, status_code, headers
700
+ end
701
+
702
+ # delete collection of NetworkPolicy
703
+ # @param namespace [String] object name and auth scope, such as for teams and projects
704
+ # @param [Hash] opts the optional parameters
705
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
706
+ # @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.
707
+ # @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
708
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
709
+ # @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.
710
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
711
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
712
+ # @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.
713
+ # @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.
714
+ # @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.
715
+ # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
716
+ # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
717
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
718
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
719
+ # @option opts [V1DeleteOptions] :body
720
+ # @return [V1Status]
721
+ def delete_collection_namespaced_network_policy(namespace, opts = {})
722
+ data, _status_code, _headers = delete_collection_namespaced_network_policy_with_http_info(namespace, opts)
723
+ data
724
+ end
725
+
726
+ # delete collection of NetworkPolicy
727
+ # @param namespace [String] object name and auth scope, such as for teams and projects
728
+ # @param [Hash] opts the optional parameters
729
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
730
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
731
+ # @option opts [String] :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
732
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
733
+ # @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.
734
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
735
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
736
+ # @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.
737
+ # @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.
738
+ # @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.
739
+ # @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
740
+ # @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
741
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
742
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
743
+ # @option opts [V1DeleteOptions] :body
744
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
745
+ def delete_collection_namespaced_network_policy_with_http_info(namespace, opts = {})
746
+ if @api_client.config.debugging
747
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_collection_namespaced_network_policy ...'
748
+ end
749
+ # verify the required parameter 'namespace' is set
750
+ if @api_client.config.client_side_validation && namespace.nil?
751
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_collection_namespaced_network_policy"
752
+ end
753
+ # resource path
754
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
755
+
756
+ # query parameters
757
+ query_params = opts[:query_params] || {}
758
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
759
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
760
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
761
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
762
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
763
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
764
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
765
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
766
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
767
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
768
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
769
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
770
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
771
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
772
+
773
+ # header parameters
774
+ header_params = opts[:header_params] || {}
775
+ # HTTP header 'Accept' (if needed)
776
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
777
+
778
+ # form parameters
779
+ form_params = opts[:form_params] || {}
780
+
781
+ # http body (model)
782
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
783
+
784
+ # return_type
785
+ return_type = opts[:debug_return_type] || 'V1Status'
786
+
787
+ # auth_names
788
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
789
+
790
+ new_options = opts.merge(
791
+ :operation => :"NetworkingV1Api.delete_collection_namespaced_network_policy",
792
+ :header_params => header_params,
793
+ :query_params => query_params,
794
+ :form_params => form_params,
795
+ :body => post_body,
796
+ :auth_names => auth_names,
797
+ :return_type => return_type
798
+ )
799
+
800
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
801
+ if @api_client.config.debugging
802
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_collection_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
803
+ end
804
+ return data, status_code, headers
805
+ end
806
+
807
+ # delete collection of ServiceCIDR
808
+ # @param [Hash] opts the optional parameters
809
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
810
+ # @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.
811
+ # @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
812
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
813
+ # @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.
814
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
815
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
816
+ # @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.
817
+ # @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.
818
+ # @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.
819
+ # @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
820
+ # @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
821
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
822
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
823
+ # @option opts [V1DeleteOptions] :body
824
+ # @return [V1Status]
825
+ def delete_collection_service_cidr_networking_v1(opts = {})
826
+ data, _status_code, _headers = delete_collection_service_cidr_networking_v1_with_http_info(opts)
827
+ data
828
+ end
829
+
830
+ # delete collection of ServiceCIDR
831
+ # @param [Hash] opts the optional parameters
832
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
833
+ # @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.
834
+ # @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
835
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
836
+ # @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.
837
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
838
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
839
+ # @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.
840
+ # @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.
841
+ # @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.
842
+ # @option opts [String] :resource_version resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
843
+ # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
844
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
845
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
846
+ # @option opts [V1DeleteOptions] :body
847
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
848
+ def delete_collection_service_cidr_networking_v1_with_http_info(opts = {})
849
+ if @api_client.config.debugging
850
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_collection_service_cidr_networking_v1 ...'
851
+ end
852
+ # resource path
853
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs'
854
+
855
+ # query parameters
856
+ query_params = opts[:query_params] || {}
857
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
858
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
859
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
860
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
861
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
862
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
863
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
864
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
865
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
866
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
867
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
868
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
869
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
870
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
871
+
872
+ # header parameters
873
+ header_params = opts[:header_params] || {}
874
+ # HTTP header 'Accept' (if needed)
875
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
876
+
877
+ # form parameters
878
+ form_params = opts[:form_params] || {}
879
+
880
+ # http body (model)
881
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
882
+
883
+ # return_type
884
+ return_type = opts[:debug_return_type] || 'V1Status'
885
+
886
+ # auth_names
887
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
888
+
889
+ new_options = opts.merge(
890
+ :operation => :"NetworkingV1Api.delete_collection_service_cidr_networking_v1",
891
+ :header_params => header_params,
892
+ :query_params => query_params,
893
+ :form_params => form_params,
894
+ :body => post_body,
895
+ :auth_names => auth_names,
896
+ :return_type => return_type
897
+ )
898
+
899
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
900
+ if @api_client.config.debugging
901
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_collection_service_cidr_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
902
+ end
903
+ return data, status_code, headers
904
+ end
905
+
906
+ # delete an IngressClass
907
+ # @param name [String] name of the IngressClass
908
+ # @param [Hash] opts the optional parameters
909
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
910
+ # @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
911
+ # @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.
912
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
913
+ # @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.
914
+ # @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.
915
+ # @option opts [V1DeleteOptions] :body
916
+ # @return [V1Status]
917
+ def delete_ingress_class(name, opts = {})
918
+ data, _status_code, _headers = delete_ingress_class_with_http_info(name, opts)
919
+ data
920
+ end
921
+
922
+ # delete an IngressClass
923
+ # @param name [String] name of the IngressClass
924
+ # @param [Hash] opts the optional parameters
925
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
926
+ # @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
927
+ # @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.
928
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
929
+ # @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.
930
+ # @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.
931
+ # @option opts [V1DeleteOptions] :body
932
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
933
+ def delete_ingress_class_with_http_info(name, opts = {})
934
+ if @api_client.config.debugging
935
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_ingress_class ...'
936
+ end
937
+ # verify the required parameter 'name' is set
938
+ if @api_client.config.client_side_validation && name.nil?
939
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.delete_ingress_class"
940
+ end
941
+ # resource path
942
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
943
+
944
+ # query parameters
945
+ query_params = opts[:query_params] || {}
946
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
947
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
948
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
949
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
950
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
951
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
952
+
953
+ # header parameters
954
+ header_params = opts[:header_params] || {}
955
+ # HTTP header 'Accept' (if needed)
956
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
957
+
958
+ # form parameters
959
+ form_params = opts[:form_params] || {}
960
+
961
+ # http body (model)
962
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
963
+
964
+ # return_type
965
+ return_type = opts[:debug_return_type] || 'V1Status'
966
+
967
+ # auth_names
968
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
969
+
970
+ new_options = opts.merge(
971
+ :operation => :"NetworkingV1Api.delete_ingress_class",
972
+ :header_params => header_params,
973
+ :query_params => query_params,
974
+ :form_params => form_params,
975
+ :body => post_body,
976
+ :auth_names => auth_names,
977
+ :return_type => return_type
978
+ )
979
+
980
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
981
+ if @api_client.config.debugging
982
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
983
+ end
984
+ return data, status_code, headers
985
+ end
986
+
987
+ # delete an IPAddress
988
+ # @param name [String] name of the IPAddress
989
+ # @param [Hash] opts the optional parameters
990
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
991
+ # @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
992
+ # @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.
993
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
994
+ # @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.
995
+ # @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.
996
+ # @option opts [V1DeleteOptions] :body
997
+ # @return [V1Status]
998
+ def delete_ip_address_networking_v1(name, opts = {})
999
+ data, _status_code, _headers = delete_ip_address_networking_v1_with_http_info(name, opts)
1000
+ data
1001
+ end
1002
+
1003
+ # delete an IPAddress
1004
+ # @param name [String] name of the IPAddress
1005
+ # @param [Hash] opts the optional parameters
1006
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1007
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
1008
+ # @option opts [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.
1009
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1010
+ # @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.
1011
+ # @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.
1012
+ # @option opts [V1DeleteOptions] :body
1013
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1014
+ def delete_ip_address_networking_v1_with_http_info(name, opts = {})
1015
+ if @api_client.config.debugging
1016
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_ip_address_networking_v1 ...'
1017
+ end
1018
+ # verify the required parameter 'name' is set
1019
+ if @api_client.config.client_side_validation && name.nil?
1020
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.delete_ip_address_networking_v1"
1021
+ end
1022
+ # resource path
1023
+ local_var_path = '/apis/networking.k8s.io/v1/ipaddresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1024
+
1025
+ # query parameters
1026
+ query_params = opts[:query_params] || {}
1027
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1028
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1029
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1030
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1031
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1032
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1033
+
1034
+ # header parameters
1035
+ header_params = opts[:header_params] || {}
1036
+ # HTTP header 'Accept' (if needed)
1037
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1038
+
1039
+ # form parameters
1040
+ form_params = opts[:form_params] || {}
1041
+
1042
+ # http body (model)
1043
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1044
+
1045
+ # return_type
1046
+ return_type = opts[:debug_return_type] || 'V1Status'
1047
+
1048
+ # auth_names
1049
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1050
+
1051
+ new_options = opts.merge(
1052
+ :operation => :"NetworkingV1Api.delete_ip_address_networking_v1",
1053
+ :header_params => header_params,
1054
+ :query_params => query_params,
1055
+ :form_params => form_params,
1056
+ :body => post_body,
1057
+ :auth_names => auth_names,
1058
+ :return_type => return_type
1059
+ )
1060
+
1061
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1062
+ if @api_client.config.debugging
1063
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_ip_address_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1064
+ end
1065
+ return data, status_code, headers
1066
+ end
1067
+
1068
+ # delete an Ingress
1069
+ # @param name [String] name of the Ingress
1070
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1071
+ # @param [Hash] opts the optional parameters
1072
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1073
+ # @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
1074
+ # @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.
1075
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1076
+ # @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.
1077
+ # @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.
1078
+ # @option opts [V1DeleteOptions] :body
1079
+ # @return [V1Status]
1080
+ def delete_namespaced_ingress(name, namespace, opts = {})
1081
+ data, _status_code, _headers = delete_namespaced_ingress_with_http_info(name, namespace, opts)
1082
+ data
1083
+ end
1084
+
1085
+ # delete an Ingress
1086
+ # @param name [String] name of the Ingress
1087
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1088
+ # @param [Hash] opts the optional parameters
1089
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1090
+ # @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
1091
+ # @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.
1092
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1093
+ # @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.
1094
+ # @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.
1095
+ # @option opts [V1DeleteOptions] :body
1096
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1097
+ def delete_namespaced_ingress_with_http_info(name, namespace, opts = {})
1098
+ if @api_client.config.debugging
1099
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_namespaced_ingress ...'
1100
+ end
1101
+ # verify the required parameter 'name' is set
1102
+ if @api_client.config.client_side_validation && name.nil?
1103
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.delete_namespaced_ingress"
1104
+ end
1105
+ # verify the required parameter 'namespace' is set
1106
+ if @api_client.config.client_side_validation && namespace.nil?
1107
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_namespaced_ingress"
1108
+ end
1109
+ # resource path
1110
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1111
+
1112
+ # query parameters
1113
+ query_params = opts[:query_params] || {}
1114
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1115
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1116
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1117
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1118
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1119
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1120
+
1121
+ # header parameters
1122
+ header_params = opts[:header_params] || {}
1123
+ # HTTP header 'Accept' (if needed)
1124
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1125
+
1126
+ # form parameters
1127
+ form_params = opts[:form_params] || {}
1128
+
1129
+ # http body (model)
1130
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1131
+
1132
+ # return_type
1133
+ return_type = opts[:debug_return_type] || 'V1Status'
1134
+
1135
+ # auth_names
1136
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1137
+
1138
+ new_options = opts.merge(
1139
+ :operation => :"NetworkingV1Api.delete_namespaced_ingress",
1140
+ :header_params => header_params,
1141
+ :query_params => query_params,
1142
+ :form_params => form_params,
1143
+ :body => post_body,
1144
+ :auth_names => auth_names,
1145
+ :return_type => return_type
1146
+ )
1147
+
1148
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1149
+ if @api_client.config.debugging
1150
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1151
+ end
1152
+ return data, status_code, headers
1153
+ end
1154
+
1155
+ # delete a NetworkPolicy
1156
+ # @param name [String] name of the NetworkPolicy
1157
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1158
+ # @param [Hash] opts the optional parameters
1159
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1160
+ # @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
1161
+ # @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.
1162
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1163
+ # @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.
1164
+ # @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.
1165
+ # @option opts [V1DeleteOptions] :body
1166
+ # @return [V1Status]
1167
+ def delete_namespaced_network_policy(name, namespace, opts = {})
1168
+ data, _status_code, _headers = delete_namespaced_network_policy_with_http_info(name, namespace, opts)
1169
+ data
1170
+ end
1171
+
1172
+ # delete a NetworkPolicy
1173
+ # @param name [String] name of the NetworkPolicy
1174
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1175
+ # @param [Hash] opts the optional parameters
1176
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1177
+ # @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
1178
+ # @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.
1179
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1180
+ # @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.
1181
+ # @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.
1182
+ # @option opts [V1DeleteOptions] :body
1183
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1184
+ def delete_namespaced_network_policy_with_http_info(name, namespace, opts = {})
1185
+ if @api_client.config.debugging
1186
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_namespaced_network_policy ...'
1187
+ end
1188
+ # verify the required parameter 'name' is set
1189
+ if @api_client.config.client_side_validation && name.nil?
1190
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.delete_namespaced_network_policy"
1191
+ end
1192
+ # verify the required parameter 'namespace' is set
1193
+ if @api_client.config.client_side_validation && namespace.nil?
1194
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.delete_namespaced_network_policy"
1195
+ end
1196
+ # resource path
1197
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1198
+
1199
+ # query parameters
1200
+ query_params = opts[:query_params] || {}
1201
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1202
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1203
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1204
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1205
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1206
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1207
+
1208
+ # header parameters
1209
+ header_params = opts[:header_params] || {}
1210
+ # HTTP header 'Accept' (if needed)
1211
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1212
+
1213
+ # form parameters
1214
+ form_params = opts[:form_params] || {}
1215
+
1216
+ # http body (model)
1217
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1218
+
1219
+ # return_type
1220
+ return_type = opts[:debug_return_type] || 'V1Status'
1221
+
1222
+ # auth_names
1223
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1224
+
1225
+ new_options = opts.merge(
1226
+ :operation => :"NetworkingV1Api.delete_namespaced_network_policy",
1227
+ :header_params => header_params,
1228
+ :query_params => query_params,
1229
+ :form_params => form_params,
1230
+ :body => post_body,
1231
+ :auth_names => auth_names,
1232
+ :return_type => return_type
1233
+ )
1234
+
1235
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1236
+ if @api_client.config.debugging
1237
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1238
+ end
1239
+ return data, status_code, headers
1240
+ end
1241
+
1242
+ # delete a ServiceCIDR
1243
+ # @param name [String] name of the ServiceCIDR
1244
+ # @param [Hash] opts the optional parameters
1245
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1246
+ # @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
1247
+ # @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.
1248
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1249
+ # @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.
1250
+ # @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.
1251
+ # @option opts [V1DeleteOptions] :body
1252
+ # @return [V1Status]
1253
+ def delete_service_cidr_networking_v1(name, opts = {})
1254
+ data, _status_code, _headers = delete_service_cidr_networking_v1_with_http_info(name, opts)
1255
+ data
1256
+ end
1257
+
1258
+ # delete a ServiceCIDR
1259
+ # @param name [String] name of the ServiceCIDR
1260
+ # @param [Hash] opts the optional parameters
1261
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1262
+ # @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
1263
+ # @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.
1264
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1265
+ # @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.
1266
+ # @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.
1267
+ # @option opts [V1DeleteOptions] :body
1268
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
1269
+ def delete_service_cidr_networking_v1_with_http_info(name, opts = {})
1270
+ if @api_client.config.debugging
1271
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.delete_service_cidr_networking_v1 ...'
1272
+ end
1273
+ # verify the required parameter 'name' is set
1274
+ if @api_client.config.client_side_validation && name.nil?
1275
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.delete_service_cidr_networking_v1"
1276
+ end
1277
+ # resource path
1278
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1279
+
1280
+ # query parameters
1281
+ query_params = opts[:query_params] || {}
1282
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1283
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1284
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1285
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1286
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1287
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1288
+
1289
+ # header parameters
1290
+ header_params = opts[:header_params] || {}
1291
+ # HTTP header 'Accept' (if needed)
1292
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1293
+
1294
+ # form parameters
1295
+ form_params = opts[:form_params] || {}
1296
+
1297
+ # http body (model)
1298
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1299
+
1300
+ # return_type
1301
+ return_type = opts[:debug_return_type] || 'V1Status'
1302
+
1303
+ # auth_names
1304
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1305
+
1306
+ new_options = opts.merge(
1307
+ :operation => :"NetworkingV1Api.delete_service_cidr_networking_v1",
1308
+ :header_params => header_params,
1309
+ :query_params => query_params,
1310
+ :form_params => form_params,
1311
+ :body => post_body,
1312
+ :auth_names => auth_names,
1313
+ :return_type => return_type
1314
+ )
1315
+
1316
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1317
+ if @api_client.config.debugging
1318
+ @api_client.config.logger.debug "API called: NetworkingV1Api#delete_service_cidr_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1319
+ end
1320
+ return data, status_code, headers
1321
+ end
1322
+
1323
+ # get available resources
1324
+ # @param [Hash] opts the optional parameters
1325
+ # @return [V1APIResourceList]
1326
+ def get_api_resources_networking_v1(opts = {})
1327
+ data, _status_code, _headers = get_api_resources_networking_v1_with_http_info(opts)
1328
+ data
1329
+ end
1330
+
1331
+ # get available resources
1332
+ # @param [Hash] opts the optional parameters
1333
+ # @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
1334
+ def get_api_resources_networking_v1_with_http_info(opts = {})
1335
+ if @api_client.config.debugging
1336
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.get_api_resources_networking_v1 ...'
1337
+ end
1338
+ # resource path
1339
+ local_var_path = '/apis/networking.k8s.io/v1/'
1340
+
1341
+ # query parameters
1342
+ query_params = opts[:query_params] || {}
1343
+
1344
+ # header parameters
1345
+ header_params = opts[:header_params] || {}
1346
+ # HTTP header 'Accept' (if needed)
1347
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1348
+
1349
+ # form parameters
1350
+ form_params = opts[:form_params] || {}
1351
+
1352
+ # http body (model)
1353
+ post_body = opts[:debug_body]
1354
+
1355
+ # return_type
1356
+ return_type = opts[:debug_return_type] || 'V1APIResourceList'
1357
+
1358
+ # auth_names
1359
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1360
+
1361
+ new_options = opts.merge(
1362
+ :operation => :"NetworkingV1Api.get_api_resources_networking_v1",
1363
+ :header_params => header_params,
1364
+ :query_params => query_params,
1365
+ :form_params => form_params,
1366
+ :body => post_body,
1367
+ :auth_names => auth_names,
1368
+ :return_type => return_type
1369
+ )
1370
+
1371
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1372
+ if @api_client.config.debugging
1373
+ @api_client.config.logger.debug "API called: NetworkingV1Api#get_api_resources_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1374
+ end
1375
+ return data, status_code, headers
1376
+ end
1377
+
1378
+ # list or watch objects of kind IngressClass
1379
+ # @param [Hash] opts the optional parameters
1380
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1381
+ # @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.
1382
+ # @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.
1383
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1384
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1385
+ # @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.
1386
+ # @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
1387
+ # @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
1388
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1389
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1390
+ # @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.
1391
+ # @return [V1IngressClassList]
1392
+ def list_ingress_class(opts = {})
1393
+ data, _status_code, _headers = list_ingress_class_with_http_info(opts)
1394
+ data
1395
+ end
1396
+
1397
+ # list or watch objects of kind IngressClass
1398
+ # @param [Hash] opts the optional parameters
1399
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1400
+ # @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.
1401
+ # @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.
1402
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1403
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1404
+ # @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.
1405
+ # @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
1406
+ # @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
1407
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1408
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1409
+ # @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.
1410
+ # @return [Array<(V1IngressClassList, Integer, Hash)>] V1IngressClassList data, response status code and response headers
1411
+ def list_ingress_class_with_http_info(opts = {})
1412
+ if @api_client.config.debugging
1413
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_ingress_class ...'
1414
+ end
1415
+ # resource path
1416
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses'
1417
+
1418
+ # query parameters
1419
+ query_params = opts[:query_params] || {}
1420
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1421
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1422
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1423
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1424
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1425
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1426
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1427
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1428
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1429
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1430
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1431
+
1432
+ # header parameters
1433
+ header_params = opts[:header_params] || {}
1434
+ # HTTP header 'Accept' (if needed)
1435
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1436
+
1437
+ # form parameters
1438
+ form_params = opts[:form_params] || {}
1439
+
1440
+ # http body (model)
1441
+ post_body = opts[:debug_body]
1442
+
1443
+ # return_type
1444
+ return_type = opts[:debug_return_type] || 'V1IngressClassList'
1445
+
1446
+ # auth_names
1447
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1448
+
1449
+ new_options = opts.merge(
1450
+ :operation => :"NetworkingV1Api.list_ingress_class",
1451
+ :header_params => header_params,
1452
+ :query_params => query_params,
1453
+ :form_params => form_params,
1454
+ :body => post_body,
1455
+ :auth_names => auth_names,
1456
+ :return_type => return_type
1457
+ )
1458
+
1459
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1460
+ if @api_client.config.debugging
1461
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1462
+ end
1463
+ return data, status_code, headers
1464
+ end
1465
+
1466
+ # list or watch objects of kind Ingress
1467
+ # @param [Hash] opts the optional parameters
1468
+ # @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.
1469
+ # @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.
1470
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1471
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1472
+ # @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.
1473
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1474
+ # @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
1475
+ # @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
1476
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1477
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1478
+ # @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.
1479
+ # @return [V1IngressList]
1480
+ def list_ingress_for_all_namespaces(opts = {})
1481
+ data, _status_code, _headers = list_ingress_for_all_namespaces_with_http_info(opts)
1482
+ data
1483
+ end
1484
+
1485
+ # list or watch objects of kind Ingress
1486
+ # @param [Hash] opts the optional parameters
1487
+ # @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.
1488
+ # @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.
1489
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1490
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1491
+ # @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.
1492
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1493
+ # @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
1494
+ # @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
1495
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1496
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1497
+ # @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.
1498
+ # @return [Array<(V1IngressList, Integer, Hash)>] V1IngressList data, response status code and response headers
1499
+ def list_ingress_for_all_namespaces_with_http_info(opts = {})
1500
+ if @api_client.config.debugging
1501
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_ingress_for_all_namespaces ...'
1502
+ end
1503
+ # resource path
1504
+ local_var_path = '/apis/networking.k8s.io/v1/ingresses'
1505
+
1506
+ # query parameters
1507
+ query_params = opts[:query_params] || {}
1508
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1509
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1510
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1511
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1512
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1513
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1514
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1515
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1516
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1517
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1518
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1519
+
1520
+ # header parameters
1521
+ header_params = opts[:header_params] || {}
1522
+ # HTTP header 'Accept' (if needed)
1523
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1524
+
1525
+ # form parameters
1526
+ form_params = opts[:form_params] || {}
1527
+
1528
+ # http body (model)
1529
+ post_body = opts[:debug_body]
1530
+
1531
+ # return_type
1532
+ return_type = opts[:debug_return_type] || 'V1IngressList'
1533
+
1534
+ # auth_names
1535
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1536
+
1537
+ new_options = opts.merge(
1538
+ :operation => :"NetworkingV1Api.list_ingress_for_all_namespaces",
1539
+ :header_params => header_params,
1540
+ :query_params => query_params,
1541
+ :form_params => form_params,
1542
+ :body => post_body,
1543
+ :auth_names => auth_names,
1544
+ :return_type => return_type
1545
+ )
1546
+
1547
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1548
+ if @api_client.config.debugging
1549
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_ingress_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1550
+ end
1551
+ return data, status_code, headers
1552
+ end
1553
+
1554
+ # list or watch objects of kind IPAddress
1555
+ # @param [Hash] opts the optional parameters
1556
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1557
+ # @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.
1558
+ # @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.
1559
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1560
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1561
+ # @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.
1562
+ # @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
1563
+ # @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
1564
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1565
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1566
+ # @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.
1567
+ # @return [V1IPAddressList]
1568
+ def list_ip_address_networking_v1(opts = {})
1569
+ data, _status_code, _headers = list_ip_address_networking_v1_with_http_info(opts)
1570
+ data
1571
+ end
1572
+
1573
+ # list or watch objects of kind IPAddress
1574
+ # @param [Hash] opts the optional parameters
1575
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1576
+ # @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.
1577
+ # @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.
1578
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1579
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1580
+ # @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.
1581
+ # @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
1582
+ # @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
1583
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1584
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1585
+ # @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.
1586
+ # @return [Array<(V1IPAddressList, Integer, Hash)>] V1IPAddressList data, response status code and response headers
1587
+ def list_ip_address_networking_v1_with_http_info(opts = {})
1588
+ if @api_client.config.debugging
1589
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_ip_address_networking_v1 ...'
1590
+ end
1591
+ # resource path
1592
+ local_var_path = '/apis/networking.k8s.io/v1/ipaddresses'
1593
+
1594
+ # query parameters
1595
+ query_params = opts[:query_params] || {}
1596
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1597
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1598
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1599
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1600
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1601
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1602
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1603
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1604
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1605
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1606
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1607
+
1608
+ # header parameters
1609
+ header_params = opts[:header_params] || {}
1610
+ # HTTP header 'Accept' (if needed)
1611
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1612
+
1613
+ # form parameters
1614
+ form_params = opts[:form_params] || {}
1615
+
1616
+ # http body (model)
1617
+ post_body = opts[:debug_body]
1618
+
1619
+ # return_type
1620
+ return_type = opts[:debug_return_type] || 'V1IPAddressList'
1621
+
1622
+ # auth_names
1623
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1624
+
1625
+ new_options = opts.merge(
1626
+ :operation => :"NetworkingV1Api.list_ip_address_networking_v1",
1627
+ :header_params => header_params,
1628
+ :query_params => query_params,
1629
+ :form_params => form_params,
1630
+ :body => post_body,
1631
+ :auth_names => auth_names,
1632
+ :return_type => return_type
1633
+ )
1634
+
1635
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1636
+ if @api_client.config.debugging
1637
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_ip_address_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1638
+ end
1639
+ return data, status_code, headers
1640
+ end
1641
+
1642
+ # list or watch objects of kind Ingress
1643
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1644
+ # @param [Hash] opts the optional parameters
1645
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1646
+ # @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.
1647
+ # @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.
1648
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1649
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1650
+ # @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.
1651
+ # @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
1652
+ # @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
1653
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1654
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1655
+ # @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.
1656
+ # @return [V1IngressList]
1657
+ def list_namespaced_ingress(namespace, opts = {})
1658
+ data, _status_code, _headers = list_namespaced_ingress_with_http_info(namespace, opts)
1659
+ data
1660
+ end
1661
+
1662
+ # list or watch objects of kind Ingress
1663
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1664
+ # @param [Hash] opts the optional parameters
1665
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1666
+ # @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.
1667
+ # @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.
1668
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1669
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1670
+ # @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.
1671
+ # @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
1672
+ # @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
1673
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1674
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1675
+ # @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.
1676
+ # @return [Array<(V1IngressList, Integer, Hash)>] V1IngressList data, response status code and response headers
1677
+ def list_namespaced_ingress_with_http_info(namespace, opts = {})
1678
+ if @api_client.config.debugging
1679
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_namespaced_ingress ...'
1680
+ end
1681
+ # verify the required parameter 'namespace' is set
1682
+ if @api_client.config.client_side_validation && namespace.nil?
1683
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.list_namespaced_ingress"
1684
+ end
1685
+ # resource path
1686
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1687
+
1688
+ # query parameters
1689
+ query_params = opts[:query_params] || {}
1690
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1691
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1692
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1693
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1694
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1695
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1696
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1697
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1698
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1699
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1700
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1701
+
1702
+ # header parameters
1703
+ header_params = opts[:header_params] || {}
1704
+ # HTTP header 'Accept' (if needed)
1705
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1706
+
1707
+ # form parameters
1708
+ form_params = opts[:form_params] || {}
1709
+
1710
+ # http body (model)
1711
+ post_body = opts[:debug_body]
1712
+
1713
+ # return_type
1714
+ return_type = opts[:debug_return_type] || 'V1IngressList'
1715
+
1716
+ # auth_names
1717
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1718
+
1719
+ new_options = opts.merge(
1720
+ :operation => :"NetworkingV1Api.list_namespaced_ingress",
1721
+ :header_params => header_params,
1722
+ :query_params => query_params,
1723
+ :form_params => form_params,
1724
+ :body => post_body,
1725
+ :auth_names => auth_names,
1726
+ :return_type => return_type
1727
+ )
1728
+
1729
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1730
+ if @api_client.config.debugging
1731
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1732
+ end
1733
+ return data, status_code, headers
1734
+ end
1735
+
1736
+ # list or watch objects of kind NetworkPolicy
1737
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1738
+ # @param [Hash] opts the optional parameters
1739
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1740
+ # @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.
1741
+ # @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.
1742
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1743
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1744
+ # @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.
1745
+ # @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
1746
+ # @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
1747
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1748
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1749
+ # @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.
1750
+ # @return [V1NetworkPolicyList]
1751
+ def list_namespaced_network_policy(namespace, opts = {})
1752
+ data, _status_code, _headers = list_namespaced_network_policy_with_http_info(namespace, opts)
1753
+ data
1754
+ end
1755
+
1756
+ # list or watch objects of kind NetworkPolicy
1757
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1758
+ # @param [Hash] opts the optional parameters
1759
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1760
+ # @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.
1761
+ # @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.
1762
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1763
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1764
+ # @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.
1765
+ # @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
1766
+ # @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
1767
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1768
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1769
+ # @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.
1770
+ # @return [Array<(V1NetworkPolicyList, Integer, Hash)>] V1NetworkPolicyList data, response status code and response headers
1771
+ def list_namespaced_network_policy_with_http_info(namespace, opts = {})
1772
+ if @api_client.config.debugging
1773
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_namespaced_network_policy ...'
1774
+ end
1775
+ # verify the required parameter 'namespace' is set
1776
+ if @api_client.config.client_side_validation && namespace.nil?
1777
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.list_namespaced_network_policy"
1778
+ end
1779
+ # resource path
1780
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1781
+
1782
+ # query parameters
1783
+ query_params = opts[:query_params] || {}
1784
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1785
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1786
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1787
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1788
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1789
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1790
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1791
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1792
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1793
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1794
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1795
+
1796
+ # header parameters
1797
+ header_params = opts[:header_params] || {}
1798
+ # HTTP header 'Accept' (if needed)
1799
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1800
+
1801
+ # form parameters
1802
+ form_params = opts[:form_params] || {}
1803
+
1804
+ # http body (model)
1805
+ post_body = opts[:debug_body]
1806
+
1807
+ # return_type
1808
+ return_type = opts[:debug_return_type] || 'V1NetworkPolicyList'
1809
+
1810
+ # auth_names
1811
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1812
+
1813
+ new_options = opts.merge(
1814
+ :operation => :"NetworkingV1Api.list_namespaced_network_policy",
1815
+ :header_params => header_params,
1816
+ :query_params => query_params,
1817
+ :form_params => form_params,
1818
+ :body => post_body,
1819
+ :auth_names => auth_names,
1820
+ :return_type => return_type
1821
+ )
1822
+
1823
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1824
+ if @api_client.config.debugging
1825
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1826
+ end
1827
+ return data, status_code, headers
1828
+ end
1829
+
1830
+ # list or watch objects of kind NetworkPolicy
1831
+ # @param [Hash] opts the optional parameters
1832
+ # @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.
1833
+ # @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.
1834
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1835
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1836
+ # @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.
1837
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1838
+ # @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
1839
+ # @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
1840
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1841
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1842
+ # @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.
1843
+ # @return [V1NetworkPolicyList]
1844
+ def list_network_policy_for_all_namespaces(opts = {})
1845
+ data, _status_code, _headers = list_network_policy_for_all_namespaces_with_http_info(opts)
1846
+ data
1847
+ end
1848
+
1849
+ # list or watch objects of kind NetworkPolicy
1850
+ # @param [Hash] opts the optional parameters
1851
+ # @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.
1852
+ # @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.
1853
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1854
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1855
+ # @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.
1856
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1857
+ # @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
1858
+ # @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
1859
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1860
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1861
+ # @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.
1862
+ # @return [Array<(V1NetworkPolicyList, Integer, Hash)>] V1NetworkPolicyList data, response status code and response headers
1863
+ def list_network_policy_for_all_namespaces_with_http_info(opts = {})
1864
+ if @api_client.config.debugging
1865
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_network_policy_for_all_namespaces ...'
1866
+ end
1867
+ # resource path
1868
+ local_var_path = '/apis/networking.k8s.io/v1/networkpolicies'
1869
+
1870
+ # query parameters
1871
+ query_params = opts[:query_params] || {}
1872
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1873
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1874
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1875
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1876
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1877
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1878
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1879
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1880
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1881
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1882
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1883
+
1884
+ # header parameters
1885
+ header_params = opts[:header_params] || {}
1886
+ # HTTP header 'Accept' (if needed)
1887
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1888
+
1889
+ # form parameters
1890
+ form_params = opts[:form_params] || {}
1891
+
1892
+ # http body (model)
1893
+ post_body = opts[:debug_body]
1894
+
1895
+ # return_type
1896
+ return_type = opts[:debug_return_type] || 'V1NetworkPolicyList'
1897
+
1898
+ # auth_names
1899
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1900
+
1901
+ new_options = opts.merge(
1902
+ :operation => :"NetworkingV1Api.list_network_policy_for_all_namespaces",
1903
+ :header_params => header_params,
1904
+ :query_params => query_params,
1905
+ :form_params => form_params,
1906
+ :body => post_body,
1907
+ :auth_names => auth_names,
1908
+ :return_type => return_type
1909
+ )
1910
+
1911
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1912
+ if @api_client.config.debugging
1913
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_network_policy_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1914
+ end
1915
+ return data, status_code, headers
1916
+ end
1917
+
1918
+ # list or watch objects of kind ServiceCIDR
1919
+ # @param [Hash] opts the optional parameters
1920
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1921
+ # @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.
1922
+ # @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.
1923
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1924
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1925
+ # @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.
1926
+ # @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
1927
+ # @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
1928
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1929
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1930
+ # @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.
1931
+ # @return [V1ServiceCIDRList]
1932
+ def list_service_cidr_networking_v1(opts = {})
1933
+ data, _status_code, _headers = list_service_cidr_networking_v1_with_http_info(opts)
1934
+ data
1935
+ end
1936
+
1937
+ # list or watch objects of kind ServiceCIDR
1938
+ # @param [Hash] opts the optional parameters
1939
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1940
+ # @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.
1941
+ # @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.
1942
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1943
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1944
+ # @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.
1945
+ # @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
1946
+ # @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
1947
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1948
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1949
+ # @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.
1950
+ # @return [Array<(V1ServiceCIDRList, Integer, Hash)>] V1ServiceCIDRList data, response status code and response headers
1951
+ def list_service_cidr_networking_v1_with_http_info(opts = {})
1952
+ if @api_client.config.debugging
1953
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.list_service_cidr_networking_v1 ...'
1954
+ end
1955
+ # resource path
1956
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs'
1957
+
1958
+ # query parameters
1959
+ query_params = opts[:query_params] || {}
1960
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1961
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1962
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1963
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1964
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1965
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1966
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1967
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1968
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1969
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1970
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1971
+
1972
+ # header parameters
1973
+ header_params = opts[:header_params] || {}
1974
+ # HTTP header 'Accept' (if needed)
1975
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1976
+
1977
+ # form parameters
1978
+ form_params = opts[:form_params] || {}
1979
+
1980
+ # http body (model)
1981
+ post_body = opts[:debug_body]
1982
+
1983
+ # return_type
1984
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDRList'
1985
+
1986
+ # auth_names
1987
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1988
+
1989
+ new_options = opts.merge(
1990
+ :operation => :"NetworkingV1Api.list_service_cidr_networking_v1",
1991
+ :header_params => header_params,
1992
+ :query_params => query_params,
1993
+ :form_params => form_params,
1994
+ :body => post_body,
1995
+ :auth_names => auth_names,
1996
+ :return_type => return_type
1997
+ )
1998
+
1999
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2000
+ if @api_client.config.debugging
2001
+ @api_client.config.logger.debug "API called: NetworkingV1Api#list_service_cidr_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2002
+ end
2003
+ return data, status_code, headers
2004
+ end
2005
+
2006
+ # partially update the specified IngressClass
2007
+ # @param name [String] name of the IngressClass
2008
+ # @param body [Object]
2009
+ # @param [Hash] opts the optional parameters
2010
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2011
+ # @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
2012
+ # @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).
2013
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2014
+ # @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.
2015
+ # @return [V1IngressClass]
2016
+ def patch_ingress_class(name, body, opts = {})
2017
+ data, _status_code, _headers = patch_ingress_class_with_http_info(name, body, opts)
2018
+ data
2019
+ end
2020
+
2021
+ # partially update the specified IngressClass
2022
+ # @param name [String] name of the IngressClass
2023
+ # @param body [Object]
2024
+ # @param [Hash] opts the optional parameters
2025
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2026
+ # @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
2027
+ # @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).
2028
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2029
+ # @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.
2030
+ # @return [Array<(V1IngressClass, Integer, Hash)>] V1IngressClass data, response status code and response headers
2031
+ def patch_ingress_class_with_http_info(name, body, opts = {})
2032
+ if @api_client.config.debugging
2033
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_ingress_class ...'
2034
+ end
2035
+ # verify the required parameter 'name' is set
2036
+ if @api_client.config.client_side_validation && name.nil?
2037
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.patch_ingress_class"
2038
+ end
2039
+ # verify the required parameter 'body' is set
2040
+ if @api_client.config.client_side_validation && body.nil?
2041
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.patch_ingress_class"
2042
+ end
2043
+ # resource path
2044
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2045
+
2046
+ # query parameters
2047
+ query_params = opts[:query_params] || {}
2048
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2049
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2050
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2051
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2052
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2053
+
2054
+ # header parameters
2055
+ header_params = opts[:header_params] || {}
2056
+ # HTTP header 'Accept' (if needed)
2057
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2058
+ # HTTP header 'Content-Type'
2059
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2060
+
2061
+ # form parameters
2062
+ form_params = opts[:form_params] || {}
2063
+
2064
+ # http body (model)
2065
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2066
+
2067
+ # return_type
2068
+ return_type = opts[:debug_return_type] || 'V1IngressClass'
2069
+
2070
+ # auth_names
2071
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2072
+
2073
+ new_options = opts.merge(
2074
+ :operation => :"NetworkingV1Api.patch_ingress_class",
2075
+ :header_params => header_params,
2076
+ :query_params => query_params,
2077
+ :form_params => form_params,
2078
+ :body => post_body,
2079
+ :auth_names => auth_names,
2080
+ :return_type => return_type
2081
+ )
2082
+
2083
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2084
+ if @api_client.config.debugging
2085
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2086
+ end
2087
+ return data, status_code, headers
2088
+ end
2089
+
2090
+ # partially update the specified IPAddress
2091
+ # @param name [String] name of the IPAddress
2092
+ # @param body [Object]
2093
+ # @param [Hash] opts the optional parameters
2094
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2095
+ # @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
2096
+ # @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).
2097
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2098
+ # @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.
2099
+ # @return [V1IPAddress]
2100
+ def patch_ip_address_networking_v1(name, body, opts = {})
2101
+ data, _status_code, _headers = patch_ip_address_networking_v1_with_http_info(name, body, opts)
2102
+ data
2103
+ end
2104
+
2105
+ # partially update the specified IPAddress
2106
+ # @param name [String] name of the IPAddress
2107
+ # @param body [Object]
2108
+ # @param [Hash] opts the optional parameters
2109
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2110
+ # @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
2111
+ # @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).
2112
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2113
+ # @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.
2114
+ # @return [Array<(V1IPAddress, Integer, Hash)>] V1IPAddress data, response status code and response headers
2115
+ def patch_ip_address_networking_v1_with_http_info(name, body, opts = {})
2116
+ if @api_client.config.debugging
2117
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_ip_address_networking_v1 ...'
2118
+ end
2119
+ # verify the required parameter 'name' is set
2120
+ if @api_client.config.client_side_validation && name.nil?
2121
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.patch_ip_address_networking_v1"
2122
+ end
2123
+ # verify the required parameter 'body' is set
2124
+ if @api_client.config.client_side_validation && body.nil?
2125
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.patch_ip_address_networking_v1"
2126
+ end
2127
+ # resource path
2128
+ local_var_path = '/apis/networking.k8s.io/v1/ipaddresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2129
+
2130
+ # query parameters
2131
+ query_params = opts[:query_params] || {}
2132
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2133
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2134
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2135
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2136
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2137
+
2138
+ # header parameters
2139
+ header_params = opts[:header_params] || {}
2140
+ # HTTP header 'Accept' (if needed)
2141
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2142
+ # HTTP header 'Content-Type'
2143
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2144
+
2145
+ # form parameters
2146
+ form_params = opts[:form_params] || {}
2147
+
2148
+ # http body (model)
2149
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2150
+
2151
+ # return_type
2152
+ return_type = opts[:debug_return_type] || 'V1IPAddress'
2153
+
2154
+ # auth_names
2155
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2156
+
2157
+ new_options = opts.merge(
2158
+ :operation => :"NetworkingV1Api.patch_ip_address_networking_v1",
2159
+ :header_params => header_params,
2160
+ :query_params => query_params,
2161
+ :form_params => form_params,
2162
+ :body => post_body,
2163
+ :auth_names => auth_names,
2164
+ :return_type => return_type
2165
+ )
2166
+
2167
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2168
+ if @api_client.config.debugging
2169
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_ip_address_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2170
+ end
2171
+ return data, status_code, headers
2172
+ end
2173
+
2174
+ # partially update the specified Ingress
2175
+ # @param name [String] name of the Ingress
2176
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2177
+ # @param body [Object]
2178
+ # @param [Hash] opts the optional parameters
2179
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2180
+ # @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
2181
+ # @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).
2182
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2183
+ # @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.
2184
+ # @return [V1Ingress]
2185
+ def patch_namespaced_ingress(name, namespace, body, opts = {})
2186
+ data, _status_code, _headers = patch_namespaced_ingress_with_http_info(name, namespace, body, opts)
2187
+ data
2188
+ end
2189
+
2190
+ # partially update the specified Ingress
2191
+ # @param name [String] name of the Ingress
2192
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2193
+ # @param body [Object]
2194
+ # @param [Hash] opts the optional parameters
2195
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2196
+ # @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
2197
+ # @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).
2198
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2199
+ # @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.
2200
+ # @return [Array<(V1Ingress, Integer, Hash)>] V1Ingress data, response status code and response headers
2201
+ def patch_namespaced_ingress_with_http_info(name, namespace, body, opts = {})
2202
+ if @api_client.config.debugging
2203
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_namespaced_ingress ...'
2204
+ end
2205
+ # verify the required parameter 'name' is set
2206
+ if @api_client.config.client_side_validation && name.nil?
2207
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.patch_namespaced_ingress"
2208
+ end
2209
+ # verify the required parameter 'namespace' is set
2210
+ if @api_client.config.client_side_validation && namespace.nil?
2211
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.patch_namespaced_ingress"
2212
+ end
2213
+ # verify the required parameter 'body' is set
2214
+ if @api_client.config.client_side_validation && body.nil?
2215
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.patch_namespaced_ingress"
2216
+ end
2217
+ # resource path
2218
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2219
+
2220
+ # query parameters
2221
+ query_params = opts[:query_params] || {}
2222
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2223
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2224
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2225
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2226
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2227
+
2228
+ # header parameters
2229
+ header_params = opts[:header_params] || {}
2230
+ # HTTP header 'Accept' (if needed)
2231
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2232
+ # HTTP header 'Content-Type'
2233
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2234
+
2235
+ # form parameters
2236
+ form_params = opts[:form_params] || {}
2237
+
2238
+ # http body (model)
2239
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2240
+
2241
+ # return_type
2242
+ return_type = opts[:debug_return_type] || 'V1Ingress'
2243
+
2244
+ # auth_names
2245
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2246
+
2247
+ new_options = opts.merge(
2248
+ :operation => :"NetworkingV1Api.patch_namespaced_ingress",
2249
+ :header_params => header_params,
2250
+ :query_params => query_params,
2251
+ :form_params => form_params,
2252
+ :body => post_body,
2253
+ :auth_names => auth_names,
2254
+ :return_type => return_type
2255
+ )
2256
+
2257
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2258
+ if @api_client.config.debugging
2259
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2260
+ end
2261
+ return data, status_code, headers
2262
+ end
2263
+
2264
+ # partially update status of the specified Ingress
2265
+ # @param name [String] name of the Ingress
2266
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2267
+ # @param body [Object]
2268
+ # @param [Hash] opts the optional parameters
2269
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2270
+ # @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
2271
+ # @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).
2272
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2273
+ # @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.
2274
+ # @return [V1Ingress]
2275
+ def patch_namespaced_ingress_status(name, namespace, body, opts = {})
2276
+ data, _status_code, _headers = patch_namespaced_ingress_status_with_http_info(name, namespace, body, opts)
2277
+ data
2278
+ end
2279
+
2280
+ # partially update status of the specified Ingress
2281
+ # @param name [String] name of the Ingress
2282
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2283
+ # @param body [Object]
2284
+ # @param [Hash] opts the optional parameters
2285
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2286
+ # @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
2287
+ # @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).
2288
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2289
+ # @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.
2290
+ # @return [Array<(V1Ingress, Integer, Hash)>] V1Ingress data, response status code and response headers
2291
+ def patch_namespaced_ingress_status_with_http_info(name, namespace, body, opts = {})
2292
+ if @api_client.config.debugging
2293
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_namespaced_ingress_status ...'
2294
+ end
2295
+ # verify the required parameter 'name' is set
2296
+ if @api_client.config.client_side_validation && name.nil?
2297
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.patch_namespaced_ingress_status"
2298
+ end
2299
+ # verify the required parameter 'namespace' is set
2300
+ if @api_client.config.client_side_validation && namespace.nil?
2301
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.patch_namespaced_ingress_status"
2302
+ end
2303
+ # verify the required parameter 'body' is set
2304
+ if @api_client.config.client_side_validation && body.nil?
2305
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.patch_namespaced_ingress_status"
2306
+ end
2307
+ # resource path
2308
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2309
+
2310
+ # query parameters
2311
+ query_params = opts[:query_params] || {}
2312
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2313
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2314
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2315
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2316
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2317
+
2318
+ # header parameters
2319
+ header_params = opts[:header_params] || {}
2320
+ # HTTP header 'Accept' (if needed)
2321
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2322
+ # HTTP header 'Content-Type'
2323
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2324
+
2325
+ # form parameters
2326
+ form_params = opts[:form_params] || {}
2327
+
2328
+ # http body (model)
2329
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2330
+
2331
+ # return_type
2332
+ return_type = opts[:debug_return_type] || 'V1Ingress'
2333
+
2334
+ # auth_names
2335
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2336
+
2337
+ new_options = opts.merge(
2338
+ :operation => :"NetworkingV1Api.patch_namespaced_ingress_status",
2339
+ :header_params => header_params,
2340
+ :query_params => query_params,
2341
+ :form_params => form_params,
2342
+ :body => post_body,
2343
+ :auth_names => auth_names,
2344
+ :return_type => return_type
2345
+ )
2346
+
2347
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2348
+ if @api_client.config.debugging
2349
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_namespaced_ingress_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2350
+ end
2351
+ return data, status_code, headers
2352
+ end
2353
+
2354
+ # partially update the specified NetworkPolicy
2355
+ # @param name [String] name of the NetworkPolicy
2356
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2357
+ # @param body [Object]
2358
+ # @param [Hash] opts the optional parameters
2359
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2360
+ # @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
2361
+ # @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).
2362
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2363
+ # @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.
2364
+ # @return [V1NetworkPolicy]
2365
+ def patch_namespaced_network_policy(name, namespace, body, opts = {})
2366
+ data, _status_code, _headers = patch_namespaced_network_policy_with_http_info(name, namespace, body, opts)
2367
+ data
2368
+ end
2369
+
2370
+ # partially update the specified NetworkPolicy
2371
+ # @param name [String] name of the NetworkPolicy
2372
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2373
+ # @param body [Object]
2374
+ # @param [Hash] opts the optional parameters
2375
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2376
+ # @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
2377
+ # @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).
2378
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2379
+ # @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.
2380
+ # @return [Array<(V1NetworkPolicy, Integer, Hash)>] V1NetworkPolicy data, response status code and response headers
2381
+ def patch_namespaced_network_policy_with_http_info(name, namespace, body, opts = {})
2382
+ if @api_client.config.debugging
2383
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_namespaced_network_policy ...'
2384
+ end
2385
+ # verify the required parameter 'name' is set
2386
+ if @api_client.config.client_side_validation && name.nil?
2387
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.patch_namespaced_network_policy"
2388
+ end
2389
+ # verify the required parameter 'namespace' is set
2390
+ if @api_client.config.client_side_validation && namespace.nil?
2391
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.patch_namespaced_network_policy"
2392
+ end
2393
+ # verify the required parameter 'body' is set
2394
+ if @api_client.config.client_side_validation && body.nil?
2395
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.patch_namespaced_network_policy"
2396
+ end
2397
+ # resource path
2398
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2399
+
2400
+ # query parameters
2401
+ query_params = opts[:query_params] || {}
2402
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2403
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2404
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2405
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2406
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2407
+
2408
+ # header parameters
2409
+ header_params = opts[:header_params] || {}
2410
+ # HTTP header 'Accept' (if needed)
2411
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2412
+ # HTTP header 'Content-Type'
2413
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2414
+
2415
+ # form parameters
2416
+ form_params = opts[:form_params] || {}
2417
+
2418
+ # http body (model)
2419
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2420
+
2421
+ # return_type
2422
+ return_type = opts[:debug_return_type] || 'V1NetworkPolicy'
2423
+
2424
+ # auth_names
2425
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2426
+
2427
+ new_options = opts.merge(
2428
+ :operation => :"NetworkingV1Api.patch_namespaced_network_policy",
2429
+ :header_params => header_params,
2430
+ :query_params => query_params,
2431
+ :form_params => form_params,
2432
+ :body => post_body,
2433
+ :auth_names => auth_names,
2434
+ :return_type => return_type
2435
+ )
2436
+
2437
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2438
+ if @api_client.config.debugging
2439
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2440
+ end
2441
+ return data, status_code, headers
2442
+ end
2443
+
2444
+ # partially update the specified ServiceCIDR
2445
+ # @param name [String] name of the ServiceCIDR
2446
+ # @param body [Object]
2447
+ # @param [Hash] opts the optional parameters
2448
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2449
+ # @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
2450
+ # @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).
2451
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2452
+ # @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.
2453
+ # @return [V1ServiceCIDR]
2454
+ def patch_service_cidr_networking_v1(name, body, opts = {})
2455
+ data, _status_code, _headers = patch_service_cidr_networking_v1_with_http_info(name, body, opts)
2456
+ data
2457
+ end
2458
+
2459
+ # partially update the specified ServiceCIDR
2460
+ # @param name [String] name of the ServiceCIDR
2461
+ # @param body [Object]
2462
+ # @param [Hash] opts the optional parameters
2463
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2464
+ # @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
2465
+ # @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).
2466
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2467
+ # @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.
2468
+ # @return [Array<(V1ServiceCIDR, Integer, Hash)>] V1ServiceCIDR data, response status code and response headers
2469
+ def patch_service_cidr_networking_v1_with_http_info(name, body, opts = {})
2470
+ if @api_client.config.debugging
2471
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_service_cidr_networking_v1 ...'
2472
+ end
2473
+ # verify the required parameter 'name' is set
2474
+ if @api_client.config.client_side_validation && name.nil?
2475
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.patch_service_cidr_networking_v1"
2476
+ end
2477
+ # verify the required parameter 'body' is set
2478
+ if @api_client.config.client_side_validation && body.nil?
2479
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.patch_service_cidr_networking_v1"
2480
+ end
2481
+ # resource path
2482
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2483
+
2484
+ # query parameters
2485
+ query_params = opts[:query_params] || {}
2486
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2487
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2488
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2489
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2490
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2491
+
2492
+ # header parameters
2493
+ header_params = opts[:header_params] || {}
2494
+ # HTTP header 'Accept' (if needed)
2495
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2496
+ # HTTP header 'Content-Type'
2497
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2498
+
2499
+ # form parameters
2500
+ form_params = opts[:form_params] || {}
2501
+
2502
+ # http body (model)
2503
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2504
+
2505
+ # return_type
2506
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDR'
2507
+
2508
+ # auth_names
2509
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2510
+
2511
+ new_options = opts.merge(
2512
+ :operation => :"NetworkingV1Api.patch_service_cidr_networking_v1",
2513
+ :header_params => header_params,
2514
+ :query_params => query_params,
2515
+ :form_params => form_params,
2516
+ :body => post_body,
2517
+ :auth_names => auth_names,
2518
+ :return_type => return_type
2519
+ )
2520
+
2521
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2522
+ if @api_client.config.debugging
2523
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_service_cidr_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2524
+ end
2525
+ return data, status_code, headers
2526
+ end
2527
+
2528
+ # partially update status of the specified ServiceCIDR
2529
+ # @param name [String] name of the ServiceCIDR
2530
+ # @param body [Object]
2531
+ # @param [Hash] opts the optional parameters
2532
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2533
+ # @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
2534
+ # @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).
2535
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2536
+ # @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.
2537
+ # @return [V1ServiceCIDR]
2538
+ def patch_service_cidr_status_networking_v1(name, body, opts = {})
2539
+ data, _status_code, _headers = patch_service_cidr_status_networking_v1_with_http_info(name, body, opts)
2540
+ data
2541
+ end
2542
+
2543
+ # partially update status of the specified ServiceCIDR
2544
+ # @param name [String] name of the ServiceCIDR
2545
+ # @param body [Object]
2546
+ # @param [Hash] opts the optional parameters
2547
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2548
+ # @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
2549
+ # @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).
2550
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2551
+ # @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.
2552
+ # @return [Array<(V1ServiceCIDR, Integer, Hash)>] V1ServiceCIDR data, response status code and response headers
2553
+ def patch_service_cidr_status_networking_v1_with_http_info(name, body, opts = {})
2554
+ if @api_client.config.debugging
2555
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.patch_service_cidr_status_networking_v1 ...'
2556
+ end
2557
+ # verify the required parameter 'name' is set
2558
+ if @api_client.config.client_side_validation && name.nil?
2559
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.patch_service_cidr_status_networking_v1"
2560
+ end
2561
+ # verify the required parameter 'body' is set
2562
+ if @api_client.config.client_side_validation && body.nil?
2563
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.patch_service_cidr_status_networking_v1"
2564
+ end
2565
+ # resource path
2566
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2567
+
2568
+ # query parameters
2569
+ query_params = opts[:query_params] || {}
2570
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2571
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2572
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2573
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2574
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2575
+
2576
+ # header parameters
2577
+ header_params = opts[:header_params] || {}
2578
+ # HTTP header 'Accept' (if needed)
2579
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2580
+ # HTTP header 'Content-Type'
2581
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2582
+
2583
+ # form parameters
2584
+ form_params = opts[:form_params] || {}
2585
+
2586
+ # http body (model)
2587
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2588
+
2589
+ # return_type
2590
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDR'
2591
+
2592
+ # auth_names
2593
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2594
+
2595
+ new_options = opts.merge(
2596
+ :operation => :"NetworkingV1Api.patch_service_cidr_status_networking_v1",
2597
+ :header_params => header_params,
2598
+ :query_params => query_params,
2599
+ :form_params => form_params,
2600
+ :body => post_body,
2601
+ :auth_names => auth_names,
2602
+ :return_type => return_type
2603
+ )
2604
+
2605
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2606
+ if @api_client.config.debugging
2607
+ @api_client.config.logger.debug "API called: NetworkingV1Api#patch_service_cidr_status_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2608
+ end
2609
+ return data, status_code, headers
2610
+ end
2611
+
2612
+ # read the specified IngressClass
2613
+ # @param name [String] name of the IngressClass
2614
+ # @param [Hash] opts the optional parameters
2615
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2616
+ # @return [V1IngressClass]
2617
+ def read_ingress_class(name, opts = {})
2618
+ data, _status_code, _headers = read_ingress_class_with_http_info(name, opts)
2619
+ data
2620
+ end
2621
+
2622
+ # read the specified IngressClass
2623
+ # @param name [String] name of the IngressClass
2624
+ # @param [Hash] opts the optional parameters
2625
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2626
+ # @return [Array<(V1IngressClass, Integer, Hash)>] V1IngressClass data, response status code and response headers
2627
+ def read_ingress_class_with_http_info(name, opts = {})
2628
+ if @api_client.config.debugging
2629
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_ingress_class ...'
2630
+ end
2631
+ # verify the required parameter 'name' is set
2632
+ if @api_client.config.client_side_validation && name.nil?
2633
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.read_ingress_class"
2634
+ end
2635
+ # resource path
2636
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2637
+
2638
+ # query parameters
2639
+ query_params = opts[:query_params] || {}
2640
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2641
+
2642
+ # header parameters
2643
+ header_params = opts[:header_params] || {}
2644
+ # HTTP header 'Accept' (if needed)
2645
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2646
+
2647
+ # form parameters
2648
+ form_params = opts[:form_params] || {}
2649
+
2650
+ # http body (model)
2651
+ post_body = opts[:debug_body]
2652
+
2653
+ # return_type
2654
+ return_type = opts[:debug_return_type] || 'V1IngressClass'
2655
+
2656
+ # auth_names
2657
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2658
+
2659
+ new_options = opts.merge(
2660
+ :operation => :"NetworkingV1Api.read_ingress_class",
2661
+ :header_params => header_params,
2662
+ :query_params => query_params,
2663
+ :form_params => form_params,
2664
+ :body => post_body,
2665
+ :auth_names => auth_names,
2666
+ :return_type => return_type
2667
+ )
2668
+
2669
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2670
+ if @api_client.config.debugging
2671
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2672
+ end
2673
+ return data, status_code, headers
2674
+ end
2675
+
2676
+ # read the specified IPAddress
2677
+ # @param name [String] name of the IPAddress
2678
+ # @param [Hash] opts the optional parameters
2679
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2680
+ # @return [V1IPAddress]
2681
+ def read_ip_address_networking_v1(name, opts = {})
2682
+ data, _status_code, _headers = read_ip_address_networking_v1_with_http_info(name, opts)
2683
+ data
2684
+ end
2685
+
2686
+ # read the specified IPAddress
2687
+ # @param name [String] name of the IPAddress
2688
+ # @param [Hash] opts the optional parameters
2689
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2690
+ # @return [Array<(V1IPAddress, Integer, Hash)>] V1IPAddress data, response status code and response headers
2691
+ def read_ip_address_networking_v1_with_http_info(name, opts = {})
2692
+ if @api_client.config.debugging
2693
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_ip_address_networking_v1 ...'
2694
+ end
2695
+ # verify the required parameter 'name' is set
2696
+ if @api_client.config.client_side_validation && name.nil?
2697
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.read_ip_address_networking_v1"
2698
+ end
2699
+ # resource path
2700
+ local_var_path = '/apis/networking.k8s.io/v1/ipaddresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2701
+
2702
+ # query parameters
2703
+ query_params = opts[:query_params] || {}
2704
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2705
+
2706
+ # header parameters
2707
+ header_params = opts[:header_params] || {}
2708
+ # HTTP header 'Accept' (if needed)
2709
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2710
+
2711
+ # form parameters
2712
+ form_params = opts[:form_params] || {}
2713
+
2714
+ # http body (model)
2715
+ post_body = opts[:debug_body]
2716
+
2717
+ # return_type
2718
+ return_type = opts[:debug_return_type] || 'V1IPAddress'
2719
+
2720
+ # auth_names
2721
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2722
+
2723
+ new_options = opts.merge(
2724
+ :operation => :"NetworkingV1Api.read_ip_address_networking_v1",
2725
+ :header_params => header_params,
2726
+ :query_params => query_params,
2727
+ :form_params => form_params,
2728
+ :body => post_body,
2729
+ :auth_names => auth_names,
2730
+ :return_type => return_type
2731
+ )
2732
+
2733
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2734
+ if @api_client.config.debugging
2735
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_ip_address_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2736
+ end
2737
+ return data, status_code, headers
2738
+ end
2739
+
2740
+ # read the specified Ingress
2741
+ # @param name [String] name of the Ingress
2742
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2743
+ # @param [Hash] opts the optional parameters
2744
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2745
+ # @return [V1Ingress]
2746
+ def read_namespaced_ingress(name, namespace, opts = {})
2747
+ data, _status_code, _headers = read_namespaced_ingress_with_http_info(name, namespace, opts)
2748
+ data
2749
+ end
2750
+
2751
+ # read the specified Ingress
2752
+ # @param name [String] name of the Ingress
2753
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2754
+ # @param [Hash] opts the optional parameters
2755
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2756
+ # @return [Array<(V1Ingress, Integer, Hash)>] V1Ingress data, response status code and response headers
2757
+ def read_namespaced_ingress_with_http_info(name, namespace, opts = {})
2758
+ if @api_client.config.debugging
2759
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_namespaced_ingress ...'
2760
+ end
2761
+ # verify the required parameter 'name' is set
2762
+ if @api_client.config.client_side_validation && name.nil?
2763
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.read_namespaced_ingress"
2764
+ end
2765
+ # verify the required parameter 'namespace' is set
2766
+ if @api_client.config.client_side_validation && namespace.nil?
2767
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.read_namespaced_ingress"
2768
+ end
2769
+ # resource path
2770
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2771
+
2772
+ # query parameters
2773
+ query_params = opts[:query_params] || {}
2774
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2775
+
2776
+ # header parameters
2777
+ header_params = opts[:header_params] || {}
2778
+ # HTTP header 'Accept' (if needed)
2779
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2780
+
2781
+ # form parameters
2782
+ form_params = opts[:form_params] || {}
2783
+
2784
+ # http body (model)
2785
+ post_body = opts[:debug_body]
2786
+
2787
+ # return_type
2788
+ return_type = opts[:debug_return_type] || 'V1Ingress'
2789
+
2790
+ # auth_names
2791
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2792
+
2793
+ new_options = opts.merge(
2794
+ :operation => :"NetworkingV1Api.read_namespaced_ingress",
2795
+ :header_params => header_params,
2796
+ :query_params => query_params,
2797
+ :form_params => form_params,
2798
+ :body => post_body,
2799
+ :auth_names => auth_names,
2800
+ :return_type => return_type
2801
+ )
2802
+
2803
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2804
+ if @api_client.config.debugging
2805
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2806
+ end
2807
+ return data, status_code, headers
2808
+ end
2809
+
2810
+ # read status of the specified Ingress
2811
+ # @param name [String] name of the Ingress
2812
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2813
+ # @param [Hash] opts the optional parameters
2814
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2815
+ # @return [V1Ingress]
2816
+ def read_namespaced_ingress_status(name, namespace, opts = {})
2817
+ data, _status_code, _headers = read_namespaced_ingress_status_with_http_info(name, namespace, opts)
2818
+ data
2819
+ end
2820
+
2821
+ # read status of the specified Ingress
2822
+ # @param name [String] name of the Ingress
2823
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2824
+ # @param [Hash] opts the optional parameters
2825
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2826
+ # @return [Array<(V1Ingress, Integer, Hash)>] V1Ingress data, response status code and response headers
2827
+ def read_namespaced_ingress_status_with_http_info(name, namespace, opts = {})
2828
+ if @api_client.config.debugging
2829
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_namespaced_ingress_status ...'
2830
+ end
2831
+ # verify the required parameter 'name' is set
2832
+ if @api_client.config.client_side_validation && name.nil?
2833
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.read_namespaced_ingress_status"
2834
+ end
2835
+ # verify the required parameter 'namespace' is set
2836
+ if @api_client.config.client_side_validation && namespace.nil?
2837
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.read_namespaced_ingress_status"
2838
+ end
2839
+ # resource path
2840
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2841
+
2842
+ # query parameters
2843
+ query_params = opts[:query_params] || {}
2844
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2845
+
2846
+ # header parameters
2847
+ header_params = opts[:header_params] || {}
2848
+ # HTTP header 'Accept' (if needed)
2849
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2850
+
2851
+ # form parameters
2852
+ form_params = opts[:form_params] || {}
2853
+
2854
+ # http body (model)
2855
+ post_body = opts[:debug_body]
2856
+
2857
+ # return_type
2858
+ return_type = opts[:debug_return_type] || 'V1Ingress'
2859
+
2860
+ # auth_names
2861
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2862
+
2863
+ new_options = opts.merge(
2864
+ :operation => :"NetworkingV1Api.read_namespaced_ingress_status",
2865
+ :header_params => header_params,
2866
+ :query_params => query_params,
2867
+ :form_params => form_params,
2868
+ :body => post_body,
2869
+ :auth_names => auth_names,
2870
+ :return_type => return_type
2871
+ )
2872
+
2873
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2874
+ if @api_client.config.debugging
2875
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_namespaced_ingress_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2876
+ end
2877
+ return data, status_code, headers
2878
+ end
2879
+
2880
+ # read the specified NetworkPolicy
2881
+ # @param name [String] name of the NetworkPolicy
2882
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2883
+ # @param [Hash] opts the optional parameters
2884
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2885
+ # @return [V1NetworkPolicy]
2886
+ def read_namespaced_network_policy(name, namespace, opts = {})
2887
+ data, _status_code, _headers = read_namespaced_network_policy_with_http_info(name, namespace, opts)
2888
+ data
2889
+ end
2890
+
2891
+ # read the specified NetworkPolicy
2892
+ # @param name [String] name of the NetworkPolicy
2893
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2894
+ # @param [Hash] opts the optional parameters
2895
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2896
+ # @return [Array<(V1NetworkPolicy, Integer, Hash)>] V1NetworkPolicy data, response status code and response headers
2897
+ def read_namespaced_network_policy_with_http_info(name, namespace, opts = {})
2898
+ if @api_client.config.debugging
2899
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_namespaced_network_policy ...'
2900
+ end
2901
+ # verify the required parameter 'name' is set
2902
+ if @api_client.config.client_side_validation && name.nil?
2903
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.read_namespaced_network_policy"
2904
+ end
2905
+ # verify the required parameter 'namespace' is set
2906
+ if @api_client.config.client_side_validation && namespace.nil?
2907
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.read_namespaced_network_policy"
2908
+ end
2909
+ # resource path
2910
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2911
+
2912
+ # query parameters
2913
+ query_params = opts[:query_params] || {}
2914
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2915
+
2916
+ # header parameters
2917
+ header_params = opts[:header_params] || {}
2918
+ # HTTP header 'Accept' (if needed)
2919
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2920
+
2921
+ # form parameters
2922
+ form_params = opts[:form_params] || {}
2923
+
2924
+ # http body (model)
2925
+ post_body = opts[:debug_body]
2926
+
2927
+ # return_type
2928
+ return_type = opts[:debug_return_type] || 'V1NetworkPolicy'
2929
+
2930
+ # auth_names
2931
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2932
+
2933
+ new_options = opts.merge(
2934
+ :operation => :"NetworkingV1Api.read_namespaced_network_policy",
2935
+ :header_params => header_params,
2936
+ :query_params => query_params,
2937
+ :form_params => form_params,
2938
+ :body => post_body,
2939
+ :auth_names => auth_names,
2940
+ :return_type => return_type
2941
+ )
2942
+
2943
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2944
+ if @api_client.config.debugging
2945
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2946
+ end
2947
+ return data, status_code, headers
2948
+ end
2949
+
2950
+ # read the specified ServiceCIDR
2951
+ # @param name [String] name of the ServiceCIDR
2952
+ # @param [Hash] opts the optional parameters
2953
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2954
+ # @return [V1ServiceCIDR]
2955
+ def read_service_cidr_networking_v1(name, opts = {})
2956
+ data, _status_code, _headers = read_service_cidr_networking_v1_with_http_info(name, opts)
2957
+ data
2958
+ end
2959
+
2960
+ # read the specified ServiceCIDR
2961
+ # @param name [String] name of the ServiceCIDR
2962
+ # @param [Hash] opts the optional parameters
2963
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2964
+ # @return [Array<(V1ServiceCIDR, Integer, Hash)>] V1ServiceCIDR data, response status code and response headers
2965
+ def read_service_cidr_networking_v1_with_http_info(name, opts = {})
2966
+ if @api_client.config.debugging
2967
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_service_cidr_networking_v1 ...'
2968
+ end
2969
+ # verify the required parameter 'name' is set
2970
+ if @api_client.config.client_side_validation && name.nil?
2971
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.read_service_cidr_networking_v1"
2972
+ end
2973
+ # resource path
2974
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2975
+
2976
+ # query parameters
2977
+ query_params = opts[:query_params] || {}
2978
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2979
+
2980
+ # header parameters
2981
+ header_params = opts[:header_params] || {}
2982
+ # HTTP header 'Accept' (if needed)
2983
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2984
+
2985
+ # form parameters
2986
+ form_params = opts[:form_params] || {}
2987
+
2988
+ # http body (model)
2989
+ post_body = opts[:debug_body]
2990
+
2991
+ # return_type
2992
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDR'
2993
+
2994
+ # auth_names
2995
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2996
+
2997
+ new_options = opts.merge(
2998
+ :operation => :"NetworkingV1Api.read_service_cidr_networking_v1",
2999
+ :header_params => header_params,
3000
+ :query_params => query_params,
3001
+ :form_params => form_params,
3002
+ :body => post_body,
3003
+ :auth_names => auth_names,
3004
+ :return_type => return_type
3005
+ )
3006
+
3007
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3008
+ if @api_client.config.debugging
3009
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_service_cidr_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3010
+ end
3011
+ return data, status_code, headers
3012
+ end
3013
+
3014
+ # read status of the specified ServiceCIDR
3015
+ # @param name [String] name of the ServiceCIDR
3016
+ # @param [Hash] opts the optional parameters
3017
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3018
+ # @return [V1ServiceCIDR]
3019
+ def read_service_cidr_status_networking_v1(name, opts = {})
3020
+ data, _status_code, _headers = read_service_cidr_status_networking_v1_with_http_info(name, opts)
3021
+ data
3022
+ end
3023
+
3024
+ # read status of the specified ServiceCIDR
3025
+ # @param name [String] name of the ServiceCIDR
3026
+ # @param [Hash] opts the optional parameters
3027
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3028
+ # @return [Array<(V1ServiceCIDR, Integer, Hash)>] V1ServiceCIDR data, response status code and response headers
3029
+ def read_service_cidr_status_networking_v1_with_http_info(name, opts = {})
3030
+ if @api_client.config.debugging
3031
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.read_service_cidr_status_networking_v1 ...'
3032
+ end
3033
+ # verify the required parameter 'name' is set
3034
+ if @api_client.config.client_side_validation && name.nil?
3035
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.read_service_cidr_status_networking_v1"
3036
+ end
3037
+ # resource path
3038
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
3039
+
3040
+ # query parameters
3041
+ query_params = opts[:query_params] || {}
3042
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3043
+
3044
+ # header parameters
3045
+ header_params = opts[:header_params] || {}
3046
+ # HTTP header 'Accept' (if needed)
3047
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3048
+
3049
+ # form parameters
3050
+ form_params = opts[:form_params] || {}
3051
+
3052
+ # http body (model)
3053
+ post_body = opts[:debug_body]
3054
+
3055
+ # return_type
3056
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDR'
3057
+
3058
+ # auth_names
3059
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3060
+
3061
+ new_options = opts.merge(
3062
+ :operation => :"NetworkingV1Api.read_service_cidr_status_networking_v1",
3063
+ :header_params => header_params,
3064
+ :query_params => query_params,
3065
+ :form_params => form_params,
3066
+ :body => post_body,
3067
+ :auth_names => auth_names,
3068
+ :return_type => return_type
3069
+ )
3070
+
3071
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3072
+ if @api_client.config.debugging
3073
+ @api_client.config.logger.debug "API called: NetworkingV1Api#read_service_cidr_status_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3074
+ end
3075
+ return data, status_code, headers
3076
+ end
3077
+
3078
+ # replace the specified IngressClass
3079
+ # @param name [String] name of the IngressClass
3080
+ # @param body [V1IngressClass]
3081
+ # @param [Hash] opts the optional parameters
3082
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3083
+ # @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
3084
+ # @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.
3085
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3086
+ # @return [V1IngressClass]
3087
+ def replace_ingress_class(name, body, opts = {})
3088
+ data, _status_code, _headers = replace_ingress_class_with_http_info(name, body, opts)
3089
+ data
3090
+ end
3091
+
3092
+ # replace the specified IngressClass
3093
+ # @param name [String] name of the IngressClass
3094
+ # @param body [V1IngressClass]
3095
+ # @param [Hash] opts the optional parameters
3096
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3097
+ # @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
3098
+ # @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.
3099
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3100
+ # @return [Array<(V1IngressClass, Integer, Hash)>] V1IngressClass data, response status code and response headers
3101
+ def replace_ingress_class_with_http_info(name, body, opts = {})
3102
+ if @api_client.config.debugging
3103
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_ingress_class ...'
3104
+ end
3105
+ # verify the required parameter 'name' is set
3106
+ if @api_client.config.client_side_validation && name.nil?
3107
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.replace_ingress_class"
3108
+ end
3109
+ # verify the required parameter 'body' is set
3110
+ if @api_client.config.client_side_validation && body.nil?
3111
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.replace_ingress_class"
3112
+ end
3113
+ # resource path
3114
+ local_var_path = '/apis/networking.k8s.io/v1/ingressclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
3115
+
3116
+ # query parameters
3117
+ query_params = opts[:query_params] || {}
3118
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3119
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3120
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3121
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3122
+
3123
+ # header parameters
3124
+ header_params = opts[:header_params] || {}
3125
+ # HTTP header 'Accept' (if needed)
3126
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3127
+
3128
+ # form parameters
3129
+ form_params = opts[:form_params] || {}
3130
+
3131
+ # http body (model)
3132
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3133
+
3134
+ # return_type
3135
+ return_type = opts[:debug_return_type] || 'V1IngressClass'
3136
+
3137
+ # auth_names
3138
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3139
+
3140
+ new_options = opts.merge(
3141
+ :operation => :"NetworkingV1Api.replace_ingress_class",
3142
+ :header_params => header_params,
3143
+ :query_params => query_params,
3144
+ :form_params => form_params,
3145
+ :body => post_body,
3146
+ :auth_names => auth_names,
3147
+ :return_type => return_type
3148
+ )
3149
+
3150
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3151
+ if @api_client.config.debugging
3152
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_ingress_class\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3153
+ end
3154
+ return data, status_code, headers
3155
+ end
3156
+
3157
+ # replace the specified IPAddress
3158
+ # @param name [String] name of the IPAddress
3159
+ # @param body [V1IPAddress]
3160
+ # @param [Hash] opts the optional parameters
3161
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3162
+ # @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
3163
+ # @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.
3164
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3165
+ # @return [V1IPAddress]
3166
+ def replace_ip_address_networking_v1(name, body, opts = {})
3167
+ data, _status_code, _headers = replace_ip_address_networking_v1_with_http_info(name, body, opts)
3168
+ data
3169
+ end
3170
+
3171
+ # replace the specified IPAddress
3172
+ # @param name [String] name of the IPAddress
3173
+ # @param body [V1IPAddress]
3174
+ # @param [Hash] opts the optional parameters
3175
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3176
+ # @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
3177
+ # @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.
3178
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3179
+ # @return [Array<(V1IPAddress, Integer, Hash)>] V1IPAddress data, response status code and response headers
3180
+ def replace_ip_address_networking_v1_with_http_info(name, body, opts = {})
3181
+ if @api_client.config.debugging
3182
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_ip_address_networking_v1 ...'
3183
+ end
3184
+ # verify the required parameter 'name' is set
3185
+ if @api_client.config.client_side_validation && name.nil?
3186
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.replace_ip_address_networking_v1"
3187
+ end
3188
+ # verify the required parameter 'body' is set
3189
+ if @api_client.config.client_side_validation && body.nil?
3190
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.replace_ip_address_networking_v1"
3191
+ end
3192
+ # resource path
3193
+ local_var_path = '/apis/networking.k8s.io/v1/ipaddresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
3194
+
3195
+ # query parameters
3196
+ query_params = opts[:query_params] || {}
3197
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3198
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3199
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3200
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3201
+
3202
+ # header parameters
3203
+ header_params = opts[:header_params] || {}
3204
+ # HTTP header 'Accept' (if needed)
3205
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3206
+
3207
+ # form parameters
3208
+ form_params = opts[:form_params] || {}
3209
+
3210
+ # http body (model)
3211
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3212
+
3213
+ # return_type
3214
+ return_type = opts[:debug_return_type] || 'V1IPAddress'
3215
+
3216
+ # auth_names
3217
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3218
+
3219
+ new_options = opts.merge(
3220
+ :operation => :"NetworkingV1Api.replace_ip_address_networking_v1",
3221
+ :header_params => header_params,
3222
+ :query_params => query_params,
3223
+ :form_params => form_params,
3224
+ :body => post_body,
3225
+ :auth_names => auth_names,
3226
+ :return_type => return_type
3227
+ )
3228
+
3229
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3230
+ if @api_client.config.debugging
3231
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_ip_address_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3232
+ end
3233
+ return data, status_code, headers
3234
+ end
3235
+
3236
+ # replace the specified Ingress
3237
+ # @param name [String] name of the Ingress
3238
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3239
+ # @param body [V1Ingress]
3240
+ # @param [Hash] opts the optional parameters
3241
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3242
+ # @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
3243
+ # @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.
3244
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3245
+ # @return [V1Ingress]
3246
+ def replace_namespaced_ingress(name, namespace, body, opts = {})
3247
+ data, _status_code, _headers = replace_namespaced_ingress_with_http_info(name, namespace, body, opts)
3248
+ data
3249
+ end
3250
+
3251
+ # replace the specified Ingress
3252
+ # @param name [String] name of the Ingress
3253
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3254
+ # @param body [V1Ingress]
3255
+ # @param [Hash] opts the optional parameters
3256
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3257
+ # @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
3258
+ # @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.
3259
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3260
+ # @return [Array<(V1Ingress, Integer, Hash)>] V1Ingress data, response status code and response headers
3261
+ def replace_namespaced_ingress_with_http_info(name, namespace, body, opts = {})
3262
+ if @api_client.config.debugging
3263
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_namespaced_ingress ...'
3264
+ end
3265
+ # verify the required parameter 'name' is set
3266
+ if @api_client.config.client_side_validation && name.nil?
3267
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.replace_namespaced_ingress"
3268
+ end
3269
+ # verify the required parameter 'namespace' is set
3270
+ if @api_client.config.client_side_validation && namespace.nil?
3271
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.replace_namespaced_ingress"
3272
+ end
3273
+ # verify the required parameter 'body' is set
3274
+ if @api_client.config.client_side_validation && body.nil?
3275
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.replace_namespaced_ingress"
3276
+ end
3277
+ # resource path
3278
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
3279
+
3280
+ # query parameters
3281
+ query_params = opts[:query_params] || {}
3282
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3283
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3284
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3285
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3286
+
3287
+ # header parameters
3288
+ header_params = opts[:header_params] || {}
3289
+ # HTTP header 'Accept' (if needed)
3290
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3291
+
3292
+ # form parameters
3293
+ form_params = opts[:form_params] || {}
3294
+
3295
+ # http body (model)
3296
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3297
+
3298
+ # return_type
3299
+ return_type = opts[:debug_return_type] || 'V1Ingress'
3300
+
3301
+ # auth_names
3302
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3303
+
3304
+ new_options = opts.merge(
3305
+ :operation => :"NetworkingV1Api.replace_namespaced_ingress",
3306
+ :header_params => header_params,
3307
+ :query_params => query_params,
3308
+ :form_params => form_params,
3309
+ :body => post_body,
3310
+ :auth_names => auth_names,
3311
+ :return_type => return_type
3312
+ )
3313
+
3314
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3315
+ if @api_client.config.debugging
3316
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_namespaced_ingress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3317
+ end
3318
+ return data, status_code, headers
3319
+ end
3320
+
3321
+ # replace status of the specified Ingress
3322
+ # @param name [String] name of the Ingress
3323
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3324
+ # @param body [V1Ingress]
3325
+ # @param [Hash] opts the optional parameters
3326
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3327
+ # @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
3328
+ # @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.
3329
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3330
+ # @return [V1Ingress]
3331
+ def replace_namespaced_ingress_status(name, namespace, body, opts = {})
3332
+ data, _status_code, _headers = replace_namespaced_ingress_status_with_http_info(name, namespace, body, opts)
3333
+ data
3334
+ end
3335
+
3336
+ # replace status of the specified Ingress
3337
+ # @param name [String] name of the Ingress
3338
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3339
+ # @param body [V1Ingress]
3340
+ # @param [Hash] opts the optional parameters
3341
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3342
+ # @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
3343
+ # @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.
3344
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3345
+ # @return [Array<(V1Ingress, Integer, Hash)>] V1Ingress data, response status code and response headers
3346
+ def replace_namespaced_ingress_status_with_http_info(name, namespace, body, opts = {})
3347
+ if @api_client.config.debugging
3348
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_namespaced_ingress_status ...'
3349
+ end
3350
+ # verify the required parameter 'name' is set
3351
+ if @api_client.config.client_side_validation && name.nil?
3352
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.replace_namespaced_ingress_status"
3353
+ end
3354
+ # verify the required parameter 'namespace' is set
3355
+ if @api_client.config.client_side_validation && namespace.nil?
3356
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.replace_namespaced_ingress_status"
3357
+ end
3358
+ # verify the required parameter 'body' is set
3359
+ if @api_client.config.client_side_validation && body.nil?
3360
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.replace_namespaced_ingress_status"
3361
+ end
3362
+ # resource path
3363
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
3364
+
3365
+ # query parameters
3366
+ query_params = opts[:query_params] || {}
3367
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3368
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3369
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3370
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3371
+
3372
+ # header parameters
3373
+ header_params = opts[:header_params] || {}
3374
+ # HTTP header 'Accept' (if needed)
3375
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3376
+
3377
+ # form parameters
3378
+ form_params = opts[:form_params] || {}
3379
+
3380
+ # http body (model)
3381
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3382
+
3383
+ # return_type
3384
+ return_type = opts[:debug_return_type] || 'V1Ingress'
3385
+
3386
+ # auth_names
3387
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3388
+
3389
+ new_options = opts.merge(
3390
+ :operation => :"NetworkingV1Api.replace_namespaced_ingress_status",
3391
+ :header_params => header_params,
3392
+ :query_params => query_params,
3393
+ :form_params => form_params,
3394
+ :body => post_body,
3395
+ :auth_names => auth_names,
3396
+ :return_type => return_type
3397
+ )
3398
+
3399
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3400
+ if @api_client.config.debugging
3401
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_namespaced_ingress_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3402
+ end
3403
+ return data, status_code, headers
3404
+ end
3405
+
3406
+ # replace the specified NetworkPolicy
3407
+ # @param name [String] name of the NetworkPolicy
3408
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3409
+ # @param body [V1NetworkPolicy]
3410
+ # @param [Hash] opts the optional parameters
3411
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3412
+ # @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
3413
+ # @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.
3414
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3415
+ # @return [V1NetworkPolicy]
3416
+ def replace_namespaced_network_policy(name, namespace, body, opts = {})
3417
+ data, _status_code, _headers = replace_namespaced_network_policy_with_http_info(name, namespace, body, opts)
3418
+ data
3419
+ end
3420
+
3421
+ # replace the specified NetworkPolicy
3422
+ # @param name [String] name of the NetworkPolicy
3423
+ # @param namespace [String] object name and auth scope, such as for teams and projects
3424
+ # @param body [V1NetworkPolicy]
3425
+ # @param [Hash] opts the optional parameters
3426
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3427
+ # @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
3428
+ # @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.
3429
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3430
+ # @return [Array<(V1NetworkPolicy, Integer, Hash)>] V1NetworkPolicy data, response status code and response headers
3431
+ def replace_namespaced_network_policy_with_http_info(name, namespace, body, opts = {})
3432
+ if @api_client.config.debugging
3433
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_namespaced_network_policy ...'
3434
+ end
3435
+ # verify the required parameter 'name' is set
3436
+ if @api_client.config.client_side_validation && name.nil?
3437
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.replace_namespaced_network_policy"
3438
+ end
3439
+ # verify the required parameter 'namespace' is set
3440
+ if @api_client.config.client_side_validation && namespace.nil?
3441
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling NetworkingV1Api.replace_namespaced_network_policy"
3442
+ end
3443
+ # verify the required parameter 'body' is set
3444
+ if @api_client.config.client_side_validation && body.nil?
3445
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.replace_namespaced_network_policy"
3446
+ end
3447
+ # resource path
3448
+ local_var_path = '/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
3449
+
3450
+ # query parameters
3451
+ query_params = opts[:query_params] || {}
3452
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3453
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3454
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3455
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3456
+
3457
+ # header parameters
3458
+ header_params = opts[:header_params] || {}
3459
+ # HTTP header 'Accept' (if needed)
3460
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3461
+
3462
+ # form parameters
3463
+ form_params = opts[:form_params] || {}
3464
+
3465
+ # http body (model)
3466
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3467
+
3468
+ # return_type
3469
+ return_type = opts[:debug_return_type] || 'V1NetworkPolicy'
3470
+
3471
+ # auth_names
3472
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3473
+
3474
+ new_options = opts.merge(
3475
+ :operation => :"NetworkingV1Api.replace_namespaced_network_policy",
3476
+ :header_params => header_params,
3477
+ :query_params => query_params,
3478
+ :form_params => form_params,
3479
+ :body => post_body,
3480
+ :auth_names => auth_names,
3481
+ :return_type => return_type
3482
+ )
3483
+
3484
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3485
+ if @api_client.config.debugging
3486
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_namespaced_network_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3487
+ end
3488
+ return data, status_code, headers
3489
+ end
3490
+
3491
+ # replace the specified ServiceCIDR
3492
+ # @param name [String] name of the ServiceCIDR
3493
+ # @param body [V1ServiceCIDR]
3494
+ # @param [Hash] opts the optional parameters
3495
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3496
+ # @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
3497
+ # @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.
3498
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3499
+ # @return [V1ServiceCIDR]
3500
+ def replace_service_cidr_networking_v1(name, body, opts = {})
3501
+ data, _status_code, _headers = replace_service_cidr_networking_v1_with_http_info(name, body, opts)
3502
+ data
3503
+ end
3504
+
3505
+ # replace the specified ServiceCIDR
3506
+ # @param name [String] name of the ServiceCIDR
3507
+ # @param body [V1ServiceCIDR]
3508
+ # @param [Hash] opts the optional parameters
3509
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3510
+ # @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
3511
+ # @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.
3512
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3513
+ # @return [Array<(V1ServiceCIDR, Integer, Hash)>] V1ServiceCIDR data, response status code and response headers
3514
+ def replace_service_cidr_networking_v1_with_http_info(name, body, opts = {})
3515
+ if @api_client.config.debugging
3516
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_service_cidr_networking_v1 ...'
3517
+ end
3518
+ # verify the required parameter 'name' is set
3519
+ if @api_client.config.client_side_validation && name.nil?
3520
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.replace_service_cidr_networking_v1"
3521
+ end
3522
+ # verify the required parameter 'body' is set
3523
+ if @api_client.config.client_side_validation && body.nil?
3524
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.replace_service_cidr_networking_v1"
3525
+ end
3526
+ # resource path
3527
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
3528
+
3529
+ # query parameters
3530
+ query_params = opts[:query_params] || {}
3531
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3532
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3533
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3534
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3535
+
3536
+ # header parameters
3537
+ header_params = opts[:header_params] || {}
3538
+ # HTTP header 'Accept' (if needed)
3539
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3540
+
3541
+ # form parameters
3542
+ form_params = opts[:form_params] || {}
3543
+
3544
+ # http body (model)
3545
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3546
+
3547
+ # return_type
3548
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDR'
3549
+
3550
+ # auth_names
3551
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3552
+
3553
+ new_options = opts.merge(
3554
+ :operation => :"NetworkingV1Api.replace_service_cidr_networking_v1",
3555
+ :header_params => header_params,
3556
+ :query_params => query_params,
3557
+ :form_params => form_params,
3558
+ :body => post_body,
3559
+ :auth_names => auth_names,
3560
+ :return_type => return_type
3561
+ )
3562
+
3563
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3564
+ if @api_client.config.debugging
3565
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_service_cidr_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3566
+ end
3567
+ return data, status_code, headers
3568
+ end
3569
+
3570
+ # replace status of the specified ServiceCIDR
3571
+ # @param name [String] name of the ServiceCIDR
3572
+ # @param body [V1ServiceCIDR]
3573
+ # @param [Hash] opts the optional parameters
3574
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3575
+ # @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
3576
+ # @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.
3577
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3578
+ # @return [V1ServiceCIDR]
3579
+ def replace_service_cidr_status_networking_v1(name, body, opts = {})
3580
+ data, _status_code, _headers = replace_service_cidr_status_networking_v1_with_http_info(name, body, opts)
3581
+ data
3582
+ end
3583
+
3584
+ # replace status of the specified ServiceCIDR
3585
+ # @param name [String] name of the ServiceCIDR
3586
+ # @param body [V1ServiceCIDR]
3587
+ # @param [Hash] opts the optional parameters
3588
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
3589
+ # @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
3590
+ # @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.
3591
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
3592
+ # @return [Array<(V1ServiceCIDR, Integer, Hash)>] V1ServiceCIDR data, response status code and response headers
3593
+ def replace_service_cidr_status_networking_v1_with_http_info(name, body, opts = {})
3594
+ if @api_client.config.debugging
3595
+ @api_client.config.logger.debug 'Calling API: NetworkingV1Api.replace_service_cidr_status_networking_v1 ...'
3596
+ end
3597
+ # verify the required parameter 'name' is set
3598
+ if @api_client.config.client_side_validation && name.nil?
3599
+ fail ArgumentError, "Missing the required parameter 'name' when calling NetworkingV1Api.replace_service_cidr_status_networking_v1"
3600
+ end
3601
+ # verify the required parameter 'body' is set
3602
+ if @api_client.config.client_side_validation && body.nil?
3603
+ fail ArgumentError, "Missing the required parameter 'body' when calling NetworkingV1Api.replace_service_cidr_status_networking_v1"
3604
+ end
3605
+ # resource path
3606
+ local_var_path = '/apis/networking.k8s.io/v1/servicecidrs/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
3607
+
3608
+ # query parameters
3609
+ query_params = opts[:query_params] || {}
3610
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
3611
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
3612
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
3613
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
3614
+
3615
+ # header parameters
3616
+ header_params = opts[:header_params] || {}
3617
+ # HTTP header 'Accept' (if needed)
3618
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
3619
+
3620
+ # form parameters
3621
+ form_params = opts[:form_params] || {}
3622
+
3623
+ # http body (model)
3624
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
3625
+
3626
+ # return_type
3627
+ return_type = opts[:debug_return_type] || 'V1ServiceCIDR'
3628
+
3629
+ # auth_names
3630
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
3631
+
3632
+ new_options = opts.merge(
3633
+ :operation => :"NetworkingV1Api.replace_service_cidr_status_networking_v1",
3634
+ :header_params => header_params,
3635
+ :query_params => query_params,
3636
+ :form_params => form_params,
3637
+ :body => post_body,
3638
+ :auth_names => auth_names,
3639
+ :return_type => return_type
3640
+ )
3641
+
3642
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3643
+ if @api_client.config.debugging
3644
+ @api_client.config.logger.debug "API called: NetworkingV1Api#replace_service_cidr_status_networking_v1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3645
+ end
3646
+ return data, status_code, headers
3647
+ end
3648
+ end
3649
+ end