zilla 0.1.5 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (594) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +1684 -0
  3. data/.openapi-generator/VERSION +1 -0
  4. data/.openapi-generator-ignore +23 -0
  5. data/.rspec +0 -2
  6. data/.rubocop.yml +7 -38
  7. data/.rubocop_todo.yml +74 -0
  8. data/Gemfile +6 -14
  9. data/Gemfile.lock +26 -99
  10. data/README.md +1361 -19
  11. data/Rakefile +8 -8
  12. data/git_push.sh +57 -0
  13. data/lib/zilla/api/admissionregistration_api.rb +80 -0
  14. data/lib/zilla/api/admissionregistration_v1_api.rb +1653 -0
  15. data/lib/zilla/api/apiextensions_api.rb +80 -0
  16. data/lib/zilla/api/apiextensions_v1_api.rb +1100 -0
  17. data/lib/zilla/api/apiregistration_api.rb +80 -0
  18. data/lib/zilla/api/apiregistration_v1_api.rb +1097 -0
  19. data/lib/zilla/api/apis_api.rb +78 -0
  20. data/lib/zilla/api/apps_api.rb +78 -0
  21. data/lib/zilla/api/apps_v1_api.rb +7087 -0
  22. data/lib/zilla/api/authentication_api.rb +80 -0
  23. data/lib/zilla/api/authentication_v1_api.rb +157 -0
  24. data/lib/zilla/api/authorization_api.rb +80 -0
  25. data/lib/zilla/api/authorization_v1_api.rb +399 -0
  26. data/lib/zilla/api/autoscaling_api.rb +80 -0
  27. data/lib/zilla/api/autoscaling_v1_api.rb +1394 -0
  28. data/lib/zilla/api/autoscaling_v2_api.rb +1394 -0
  29. data/lib/zilla/api/autoscaling_v2beta2_api.rb +1400 -0
  30. data/lib/zilla/api/batch_api.rb +78 -0
  31. data/lib/zilla/api/batch_v1_api.rb +2663 -0
  32. data/lib/zilla/api/certificates_api.rb +80 -0
  33. data/lib/zilla/api/certificates_v1_api.rb +1352 -0
  34. data/lib/zilla/api/coordination_api.rb +80 -0
  35. data/lib/zilla/api/coordination_v1_api.rb +1101 -0
  36. data/lib/zilla/api/core_api.rb +78 -0
  37. data/lib/zilla/api/core_v1_api.rb +21829 -0
  38. data/lib/zilla/api/discovery_api.rb +80 -0
  39. data/lib/zilla/api/discovery_v1_api.rb +1104 -0
  40. data/lib/zilla/api/events_api.rb +78 -0
  41. data/lib/zilla/api/events_v1_api.rb +1100 -0
  42. data/lib/zilla/api/flowcontrol_apiserver_api.rb +80 -0
  43. data/lib/zilla/api/flowcontrol_apiserver_v1beta1_api.rb +2142 -0
  44. data/lib/zilla/api/flowcontrol_apiserver_v1beta2_api.rb +2142 -0
  45. data/lib/zilla/api/internal_apiserver_api.rb +80 -0
  46. data/lib/zilla/api/internal_apiserver_v1alpha1_api.rb +1100 -0
  47. data/lib/zilla/api/logs_api.rb +129 -0
  48. data/lib/zilla/api/networking_api.rb +80 -0
  49. data/lib/zilla/api/networking_v1_api.rb +3440 -0
  50. data/lib/zilla/api/networking_v1alpha1_api.rb +851 -0
  51. data/lib/zilla/api/node_api.rb +78 -0
  52. data/lib/zilla/api/node_v1_api.rb +846 -0
  53. data/lib/zilla/api/openid_api.rb +78 -0
  54. data/lib/zilla/api/policy_api.rb +78 -0
  55. data/lib/zilla/api/policy_v1_api.rb +1382 -0
  56. data/lib/zilla/api/rbac_authorization_api.rb +80 -0
  57. data/lib/zilla/api/rbac_authorization_v1_api.rb +3679 -0
  58. data/lib/zilla/api/scheduling_api.rb +80 -0
  59. data/lib/zilla/api/scheduling_v1_api.rb +851 -0
  60. data/lib/zilla/api/storage_api.rb +80 -0
  61. data/lib/zilla/api/storage_v1_api.rb +4425 -0
  62. data/lib/zilla/api/storage_v1beta1_api.rb +1115 -0
  63. data/lib/zilla/api/version_api.rb +76 -0
  64. data/lib/zilla/api/well_known_api.rb +78 -0
  65. data/lib/zilla/api_client.rb +423 -0
  66. data/lib/zilla/api_error.rb +58 -0
  67. data/lib/zilla/configuration.rb +379 -0
  68. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_mutating_webhook.rb +318 -0
  69. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_mutating_webhook_configuration.rb +248 -0
  70. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_mutating_webhook_configuration_list.rb +254 -0
  71. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_rule_with_operations.rb +264 -0
  72. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_service_reference.rb +256 -0
  73. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_validating_webhook.rb +310 -0
  74. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_validating_webhook_configuration.rb +248 -0
  75. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_validating_webhook_configuration_list.rb +254 -0
  76. data/lib/zilla/models/io_k8s_api_admissionregistration_v1_webhook_client_config.rb +261 -0
  77. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_server_storage_version.rb +242 -0
  78. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version.rb +260 -0
  79. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version_condition.rb +275 -0
  80. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version_list.rb +254 -0
  81. data/lib/zilla/models/io_k8s_api_apiserverinternal_v1alpha1_storage_version_status.rb +243 -0
  82. data/lib/zilla/models/io_k8s_api_apps_v1_controller_revision.rb +260 -0
  83. data/lib/zilla/models/io_k8s_api_apps_v1_controller_revision_list.rb +254 -0
  84. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set.rb +249 -0
  85. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_condition.rb +264 -0
  86. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_list.rb +254 -0
  87. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_spec.rb +257 -0
  88. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_status.rb +323 -0
  89. data/lib/zilla/models/io_k8s_api_apps_v1_daemon_set_update_strategy.rb +231 -0
  90. data/lib/zilla/models/io_k8s_api_apps_v1_deployment.rb +249 -0
  91. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_condition.rb +272 -0
  92. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_list.rb +254 -0
  93. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_spec.rb +284 -0
  94. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_status.rb +283 -0
  95. data/lib/zilla/models/io_k8s_api_apps_v1_deployment_strategy.rb +231 -0
  96. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set.rb +249 -0
  97. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_condition.rb +264 -0
  98. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_list.rb +254 -0
  99. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_spec.rb +249 -0
  100. data/lib/zilla/models/io_k8s_api_apps_v1_replica_set_status.rb +271 -0
  101. data/lib/zilla/models/io_k8s_api_apps_v1_rolling_update_daemon_set.rb +232 -0
  102. data/lib/zilla/models/io_k8s_api_apps_v1_rolling_update_deployment.rb +232 -0
  103. data/lib/zilla/models/io_k8s_api_apps_v1_rolling_update_stateful_set_strategy.rb +232 -0
  104. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set.rb +249 -0
  105. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_condition.rb +264 -0
  106. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_list.rb +254 -0
  107. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_persistent_volume_claim_retention_policy.rb +232 -0
  108. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_spec.rb +301 -0
  109. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_status.rb +304 -0
  110. data/lib/zilla/models/io_k8s_api_apps_v1_stateful_set_update_strategy.rb +231 -0
  111. data/lib/zilla/models/io_k8s_api_authentication_v1_bound_object_reference.rb +248 -0
  112. data/lib/zilla/models/io_k8s_api_authentication_v1_token_request.rb +254 -0
  113. data/lib/zilla/models/io_k8s_api_authentication_v1_token_request_spec.rb +246 -0
  114. data/lib/zilla/models/io_k8s_api_authentication_v1_token_request_status.rb +242 -0
  115. data/lib/zilla/models/io_k8s_api_authentication_v1_token_review.rb +254 -0
  116. data/lib/zilla/models/io_k8s_api_authentication_v1_token_review_spec.rb +234 -0
  117. data/lib/zilla/models/io_k8s_api_authentication_v1_token_review_status.rb +249 -0
  118. data/lib/zilla/models/io_k8s_api_authentication_v1_user_info.rb +252 -0
  119. data/lib/zilla/models/io_k8s_api_authorization_v1_local_subject_access_review.rb +254 -0
  120. data/lib/zilla/models/io_k8s_api_authorization_v1_non_resource_attributes.rb +232 -0
  121. data/lib/zilla/models/io_k8s_api_authorization_v1_non_resource_rule.rb +240 -0
  122. data/lib/zilla/models/io_k8s_api_authorization_v1_resource_attributes.rb +272 -0
  123. data/lib/zilla/models/io_k8s_api_authorization_v1_resource_rule.rb +260 -0
  124. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_access_review.rb +254 -0
  125. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_access_review_spec.rb +228 -0
  126. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_rules_review.rb +254 -0
  127. data/lib/zilla/models/io_k8s_api_authorization_v1_self_subject_rules_review_spec.rb +224 -0
  128. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_access_review.rb +254 -0
  129. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_access_review_spec.rb +264 -0
  130. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_access_review_status.rb +253 -0
  131. data/lib/zilla/models/io_k8s_api_authorization_v1_subject_rules_review_status.rb +266 -0
  132. data/lib/zilla/models/io_k8s_api_autoscaling_v1_cross_version_object_reference.rb +248 -0
  133. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler.rb +249 -0
  134. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler_list.rb +254 -0
  135. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler_spec.rb +257 -0
  136. data/lib/zilla/models/io_k8s_api_autoscaling_v1_horizontal_pod_autoscaler_status.rb +271 -0
  137. data/lib/zilla/models/io_k8s_api_autoscaling_v1_scale.rb +249 -0
  138. data/lib/zilla/models/io_k8s_api_autoscaling_v1_scale_spec.rb +224 -0
  139. data/lib/zilla/models/io_k8s_api_autoscaling_v1_scale_status.rb +237 -0
  140. data/lib/zilla/models/io_k8s_api_autoscaling_v2_container_resource_metric_source.rb +250 -0
  141. data/lib/zilla/models/io_k8s_api_autoscaling_v2_container_resource_metric_status.rb +250 -0
  142. data/lib/zilla/models/io_k8s_api_autoscaling_v2_cross_version_object_reference.rb +248 -0
  143. data/lib/zilla/models/io_k8s_api_autoscaling_v2_external_metric_source.rb +236 -0
  144. data/lib/zilla/models/io_k8s_api_autoscaling_v2_external_metric_status.rb +236 -0
  145. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler.rb +249 -0
  146. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_behavior.rb +228 -0
  147. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_condition.rb +264 -0
  148. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_list.rb +254 -0
  149. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_spec.rb +264 -0
  150. data/lib/zilla/models/io_k8s_api_autoscaling_v2_horizontal_pod_autoscaler_status.rb +275 -0
  151. data/lib/zilla/models/io_k8s_api_autoscaling_v2_hpa_scaling_policy.rb +253 -0
  152. data/lib/zilla/models/io_k8s_api_autoscaling_v2_hpa_scaling_rules.rb +242 -0
  153. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_identifier.rb +236 -0
  154. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_spec.rb +256 -0
  155. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_status.rb +256 -0
  156. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_target.rb +253 -0
  157. data/lib/zilla/models/io_k8s_api_autoscaling_v2_metric_value_status.rb +240 -0
  158. data/lib/zilla/models/io_k8s_api_autoscaling_v2_object_metric_source.rb +246 -0
  159. data/lib/zilla/models/io_k8s_api_autoscaling_v2_object_metric_status.rb +246 -0
  160. data/lib/zilla/models/io_k8s_api_autoscaling_v2_pods_metric_source.rb +236 -0
  161. data/lib/zilla/models/io_k8s_api_autoscaling_v2_pods_metric_status.rb +236 -0
  162. data/lib/zilla/models/io_k8s_api_autoscaling_v2_resource_metric_source.rb +239 -0
  163. data/lib/zilla/models/io_k8s_api_autoscaling_v2_resource_metric_status.rb +239 -0
  164. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_container_resource_metric_source.rb +250 -0
  165. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_container_resource_metric_status.rb +250 -0
  166. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_cross_version_object_reference.rb +248 -0
  167. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_external_metric_source.rb +236 -0
  168. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_external_metric_status.rb +236 -0
  169. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler.rb +249 -0
  170. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_behavior.rb +228 -0
  171. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_condition.rb +264 -0
  172. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_list.rb +254 -0
  173. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_spec.rb +264 -0
  174. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_horizontal_pod_autoscaler_status.rb +280 -0
  175. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_hpa_scaling_policy.rb +253 -0
  176. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_hpa_scaling_rules.rb +242 -0
  177. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_identifier.rb +236 -0
  178. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_spec.rb +256 -0
  179. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_status.rb +256 -0
  180. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_target.rb +253 -0
  181. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_metric_value_status.rb +240 -0
  182. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_object_metric_source.rb +246 -0
  183. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_object_metric_status.rb +246 -0
  184. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_pods_metric_source.rb +236 -0
  185. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_pods_metric_status.rb +236 -0
  186. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_resource_metric_source.rb +239 -0
  187. data/lib/zilla/models/io_k8s_api_autoscaling_v2beta2_resource_metric_status.rb +239 -0
  188. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job.rb +249 -0
  189. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job_list.rb +254 -0
  190. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job_spec.rb +294 -0
  191. data/lib/zilla/models/io_k8s_api_batch_v1_cron_job_status.rb +242 -0
  192. data/lib/zilla/models/io_k8s_api_batch_v1_job.rb +249 -0
  193. data/lib/zilla/models/io_k8s_api_batch_v1_job_condition.rb +272 -0
  194. data/lib/zilla/models/io_k8s_api_batch_v1_job_list.rb +254 -0
  195. data/lib/zilla/models/io_k8s_api_batch_v1_job_spec.rb +303 -0
  196. data/lib/zilla/models/io_k8s_api_batch_v1_job_status.rb +290 -0
  197. data/lib/zilla/models/io_k8s_api_batch_v1_job_template_spec.rb +228 -0
  198. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy.rb +230 -0
  199. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy_on_exit_codes_requirement.rb +249 -0
  200. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy_on_pod_conditions_pattern.rb +240 -0
  201. data/lib/zilla/models/io_k8s_api_batch_v1_pod_failure_policy_rule.rb +250 -0
  202. data/lib/zilla/models/io_k8s_api_batch_v1_uncounted_terminated_pods.rb +235 -0
  203. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request.rb +254 -0
  204. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_condition.rb +272 -0
  205. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_list.rb +254 -0
  206. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_spec.rb +314 -0
  207. data/lib/zilla/models/io_k8s_api_certificates_v1_certificate_signing_request_status.rb +255 -0
  208. data/lib/zilla/models/io_k8s_api_coordination_v1_lease.rb +244 -0
  209. data/lib/zilla/models/io_k8s_api_coordination_v1_lease_list.rb +254 -0
  210. data/lib/zilla/models/io_k8s_api_coordination_v1_lease_spec.rb +256 -0
  211. data/lib/zilla/models/io_k8s_api_core_v1_affinity.rb +233 -0
  212. data/lib/zilla/models/io_k8s_api_core_v1_attached_volume.rb +240 -0
  213. data/lib/zilla/models/io_k8s_api_core_v1_aws_elastic_block_store_volume_source.rb +253 -0
  214. data/lib/zilla/models/io_k8s_api_core_v1_azure_disk_volume_source.rb +272 -0
  215. data/lib/zilla/models/io_k8s_api_core_v1_azure_file_persistent_volume_source.rb +256 -0
  216. data/lib/zilla/models/io_k8s_api_core_v1_azure_file_volume_source.rb +248 -0
  217. data/lib/zilla/models/io_k8s_api_core_v1_binding.rb +249 -0
  218. data/lib/zilla/models/io_k8s_api_core_v1_capabilities.rb +235 -0
  219. data/lib/zilla/models/io_k8s_api_core_v1_ceph_fs_persistent_volume_source.rb +270 -0
  220. data/lib/zilla/models/io_k8s_api_core_v1_ceph_fs_volume_source.rb +270 -0
  221. data/lib/zilla/models/io_k8s_api_core_v1_cinder_persistent_volume_source.rb +252 -0
  222. data/lib/zilla/models/io_k8s_api_core_v1_cinder_volume_source.rb +252 -0
  223. data/lib/zilla/models/io_k8s_api_core_v1_client_ip_config.rb +224 -0
  224. data/lib/zilla/models/io_k8s_api_core_v1_component_condition.rb +256 -0
  225. data/lib/zilla/models/io_k8s_api_core_v1_component_status.rb +249 -0
  226. data/lib/zilla/models/io_k8s_api_core_v1_component_status_list.rb +254 -0
  227. data/lib/zilla/models/io_k8s_api_core_v1_config_map.rb +267 -0
  228. data/lib/zilla/models/io_k8s_api_core_v1_config_map_env_source.rb +232 -0
  229. data/lib/zilla/models/io_k8s_api_core_v1_config_map_key_selector.rb +245 -0
  230. data/lib/zilla/models/io_k8s_api_core_v1_config_map_list.rb +254 -0
  231. data/lib/zilla/models/io_k8s_api_core_v1_config_map_node_config_source.rb +269 -0
  232. data/lib/zilla/models/io_k8s_api_core_v1_config_map_projection.rb +242 -0
  233. data/lib/zilla/models/io_k8s_api_core_v1_config_map_volume_source.rb +250 -0
  234. data/lib/zilla/models/io_k8s_api_core_v1_container.rb +400 -0
  235. data/lib/zilla/models/io_k8s_api_core_v1_container_image.rb +234 -0
  236. data/lib/zilla/models/io_k8s_api_core_v1_container_port.rb +263 -0
  237. data/lib/zilla/models/io_k8s_api_core_v1_container_state.rb +233 -0
  238. data/lib/zilla/models/io_k8s_api_core_v1_container_state_running.rb +224 -0
  239. data/lib/zilla/models/io_k8s_api_core_v1_container_state_terminated.rb +277 -0
  240. data/lib/zilla/models/io_k8s_api_core_v1_container_state_waiting.rb +232 -0
  241. data/lib/zilla/models/io_k8s_api_core_v1_container_status.rb +301 -0
  242. data/lib/zilla/models/io_k8s_api_core_v1_csi_persistent_volume_source.rb +299 -0
  243. data/lib/zilla/models/io_k8s_api_core_v1_csi_volume_source.rb +261 -0
  244. data/lib/zilla/models/io_k8s_api_core_v1_daemon_endpoint.rb +229 -0
  245. data/lib/zilla/models/io_k8s_api_core_v1_downward_api_projection.rb +225 -0
  246. data/lib/zilla/models/io_k8s_api_core_v1_downward_api_volume_file.rb +249 -0
  247. data/lib/zilla/models/io_k8s_api_core_v1_downward_api_volume_source.rb +233 -0
  248. data/lib/zilla/models/io_k8s_api_core_v1_empty_dir_volume_source.rb +232 -0
  249. data/lib/zilla/models/io_k8s_api_core_v1_endpoint_address.rb +252 -0
  250. data/lib/zilla/models/io_k8s_api_core_v1_endpoint_port.rb +253 -0
  251. data/lib/zilla/models/io_k8s_api_core_v1_endpoint_subset.rb +245 -0
  252. data/lib/zilla/models/io_k8s_api_core_v1_endpoints.rb +248 -0
  253. data/lib/zilla/models/io_k8s_api_core_v1_endpoints_list.rb +254 -0
  254. data/lib/zilla/models/io_k8s_api_core_v1_env_from_source.rb +236 -0
  255. data/lib/zilla/models/io_k8s_api_core_v1_env_var.rb +244 -0
  256. data/lib/zilla/models/io_k8s_api_core_v1_env_var_source.rb +238 -0
  257. data/lib/zilla/models/io_k8s_api_core_v1_ephemeral_container.rb +408 -0
  258. data/lib/zilla/models/io_k8s_api_core_v1_ephemeral_volume_source.rb +223 -0
  259. data/lib/zilla/models/io_k8s_api_core_v1_event.rb +350 -0
  260. data/lib/zilla/models/io_k8s_api_core_v1_event_list.rb +254 -0
  261. data/lib/zilla/models/io_k8s_api_core_v1_event_series.rb +232 -0
  262. data/lib/zilla/models/io_k8s_api_core_v1_event_source.rb +232 -0
  263. data/lib/zilla/models/io_k8s_api_core_v1_exec_action.rb +225 -0
  264. data/lib/zilla/models/io_k8s_api_core_v1_fc_volume_source.rb +259 -0
  265. data/lib/zilla/models/io_k8s_api_core_v1_flex_persistent_volume_source.rb +262 -0
  266. data/lib/zilla/models/io_k8s_api_core_v1_flex_volume_source.rb +262 -0
  267. data/lib/zilla/models/io_k8s_api_core_v1_flocker_volume_source.rb +232 -0
  268. data/lib/zilla/models/io_k8s_api_core_v1_gce_persistent_disk_volume_source.rb +253 -0
  269. data/lib/zilla/models/io_k8s_api_core_v1_git_repo_volume_source.rb +245 -0
  270. data/lib/zilla/models/io_k8s_api_core_v1_glusterfs_persistent_volume_source.rb +256 -0
  271. data/lib/zilla/models/io_k8s_api_core_v1_glusterfs_volume_source.rb +248 -0
  272. data/lib/zilla/models/io_k8s_api_core_v1_grpc_action.rb +236 -0
  273. data/lib/zilla/models/io_k8s_api_core_v1_host_alias.rb +234 -0
  274. data/lib/zilla/models/io_k8s_api_core_v1_host_path_volume_source.rb +237 -0
  275. data/lib/zilla/models/io_k8s_api_core_v1_http_get_action.rb +263 -0
  276. data/lib/zilla/models/io_k8s_api_core_v1_http_header.rb +240 -0
  277. data/lib/zilla/models/io_k8s_api_core_v1_iscsi_persistent_volume_source.rb +317 -0
  278. data/lib/zilla/models/io_k8s_api_core_v1_iscsi_volume_source.rb +317 -0
  279. data/lib/zilla/models/io_k8s_api_core_v1_key_to_path.rb +248 -0
  280. data/lib/zilla/models/io_k8s_api_core_v1_lifecycle.rb +228 -0
  281. data/lib/zilla/models/io_k8s_api_core_v1_lifecycle_handler.rb +233 -0
  282. data/lib/zilla/models/io_k8s_api_core_v1_limit_range.rb +244 -0
  283. data/lib/zilla/models/io_k8s_api_core_v1_limit_range_item.rb +279 -0
  284. data/lib/zilla/models/io_k8s_api_core_v1_limit_range_list.rb +254 -0
  285. data/lib/zilla/models/io_k8s_api_core_v1_limit_range_spec.rb +230 -0
  286. data/lib/zilla/models/io_k8s_api_core_v1_load_balancer_ingress.rb +241 -0
  287. data/lib/zilla/models/io_k8s_api_core_v1_load_balancer_status.rb +225 -0
  288. data/lib/zilla/models/io_k8s_api_core_v1_local_object_reference.rb +224 -0
  289. data/lib/zilla/models/io_k8s_api_core_v1_local_volume_source.rb +237 -0
  290. data/lib/zilla/models/io_k8s_api_core_v1_namespace.rb +249 -0
  291. data/lib/zilla/models/io_k8s_api_core_v1_namespace_condition.rb +260 -0
  292. data/lib/zilla/models/io_k8s_api_core_v1_namespace_list.rb +254 -0
  293. data/lib/zilla/models/io_k8s_api_core_v1_namespace_spec.rb +225 -0
  294. data/lib/zilla/models/io_k8s_api_core_v1_namespace_status.rb +234 -0
  295. data/lib/zilla/models/io_k8s_api_core_v1_nfs_volume_source.rb +248 -0
  296. data/lib/zilla/models/io_k8s_api_core_v1_node.rb +249 -0
  297. data/lib/zilla/models/io_k8s_api_core_v1_node_address.rb +240 -0
  298. data/lib/zilla/models/io_k8s_api_core_v1_node_affinity.rb +233 -0
  299. data/lib/zilla/models/io_k8s_api_core_v1_node_condition.rb +272 -0
  300. data/lib/zilla/models/io_k8s_api_core_v1_node_config_source.rb +223 -0
  301. data/lib/zilla/models/io_k8s_api_core_v1_node_config_status.rb +241 -0
  302. data/lib/zilla/models/io_k8s_api_core_v1_node_daemon_endpoints.rb +223 -0
  303. data/lib/zilla/models/io_k8s_api_core_v1_node_list.rb +254 -0
  304. data/lib/zilla/models/io_k8s_api_core_v1_node_selector.rb +232 -0
  305. data/lib/zilla/models/io_k8s_api_core_v1_node_selector_requirement.rb +249 -0
  306. data/lib/zilla/models/io_k8s_api_core_v1_node_selector_term.rb +235 -0
  307. data/lib/zilla/models/io_k8s_api_core_v1_node_spec.rb +275 -0
  308. data/lib/zilla/models/io_k8s_api_core_v1_node_status.rb +311 -0
  309. data/lib/zilla/models/io_k8s_api_core_v1_node_system_info.rb +341 -0
  310. data/lib/zilla/models/io_k8s_api_core_v1_object_field_selector.rb +237 -0
  311. data/lib/zilla/models/io_k8s_api_core_v1_object_reference.rb +272 -0
  312. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume.rb +249 -0
  313. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim.rb +249 -0
  314. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_condition.rb +268 -0
  315. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_list.rb +254 -0
  316. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_spec.rb +273 -0
  317. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_status.rb +272 -0
  318. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_template.rb +233 -0
  319. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_claim_volume_source.rb +237 -0
  320. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_list.rb +254 -0
  321. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_spec.rb +396 -0
  322. data/lib/zilla/models/io_k8s_api_core_v1_persistent_volume_status.rb +240 -0
  323. data/lib/zilla/models/io_k8s_api_core_v1_photon_persistent_disk_volume_source.rb +237 -0
  324. data/lib/zilla/models/io_k8s_api_core_v1_pod.rb +249 -0
  325. data/lib/zilla/models/io_k8s_api_core_v1_pod_affinity.rb +235 -0
  326. data/lib/zilla/models/io_k8s_api_core_v1_pod_affinity_term.rb +251 -0
  327. data/lib/zilla/models/io_k8s_api_core_v1_pod_anti_affinity.rb +235 -0
  328. data/lib/zilla/models/io_k8s_api_core_v1_pod_condition.rb +272 -0
  329. data/lib/zilla/models/io_k8s_api_core_v1_pod_dns_config.rb +245 -0
  330. data/lib/zilla/models/io_k8s_api_core_v1_pod_dns_config_option.rb +231 -0
  331. data/lib/zilla/models/io_k8s_api_core_v1_pod_ip.rb +224 -0
  332. data/lib/zilla/models/io_k8s_api_core_v1_pod_list.rb +254 -0
  333. data/lib/zilla/models/io_k8s_api_core_v1_pod_os.rb +229 -0
  334. data/lib/zilla/models/io_k8s_api_core_v1_pod_readiness_gate.rb +231 -0
  335. data/lib/zilla/models/io_k8s_api_core_v1_pod_security_context.rb +294 -0
  336. data/lib/zilla/models/io_k8s_api_core_v1_pod_spec.rb +533 -0
  337. data/lib/zilla/models/io_k8s_api_core_v1_pod_status.rb +331 -0
  338. data/lib/zilla/models/io_k8s_api_core_v1_pod_template.rb +244 -0
  339. data/lib/zilla/models/io_k8s_api_core_v1_pod_template_list.rb +254 -0
  340. data/lib/zilla/models/io_k8s_api_core_v1_pod_template_spec.rb +228 -0
  341. data/lib/zilla/models/io_k8s_api_core_v1_port_status.rb +247 -0
  342. data/lib/zilla/models/io_k8s_api_core_v1_portworx_volume_source.rb +245 -0
  343. data/lib/zilla/models/io_k8s_api_core_v1_preferred_scheduling_term.rb +239 -0
  344. data/lib/zilla/models/io_k8s_api_core_v1_probe.rb +289 -0
  345. data/lib/zilla/models/io_k8s_api_core_v1_projected_volume_source.rb +233 -0
  346. data/lib/zilla/models/io_k8s_api_core_v1_quobyte_volume_source.rb +272 -0
  347. data/lib/zilla/models/io_k8s_api_core_v1_rbd_persistent_volume_source.rb +289 -0
  348. data/lib/zilla/models/io_k8s_api_core_v1_rbd_volume_source.rb +289 -0
  349. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller.rb +249 -0
  350. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_condition.rb +264 -0
  351. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_list.rb +254 -0
  352. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_spec.rb +249 -0
  353. data/lib/zilla/models/io_k8s_api_core_v1_replication_controller_status.rb +271 -0
  354. data/lib/zilla/models/io_k8s_api_core_v1_resource_field_selector.rb +245 -0
  355. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota.rb +249 -0
  356. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota_list.rb +254 -0
  357. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota_spec.rb +242 -0
  358. data/lib/zilla/models/io_k8s_api_core_v1_resource_quota_status.rb +235 -0
  359. data/lib/zilla/models/io_k8s_api_core_v1_resource_requirements.rb +235 -0
  360. data/lib/zilla/models/io_k8s_api_core_v1_scale_io_persistent_volume_source.rb +307 -0
  361. data/lib/zilla/models/io_k8s_api_core_v1_scale_io_volume_source.rb +307 -0
  362. data/lib/zilla/models/io_k8s_api_core_v1_scope_selector.rb +225 -0
  363. data/lib/zilla/models/io_k8s_api_core_v1_scoped_resource_selector_requirement.rb +249 -0
  364. data/lib/zilla/models/io_k8s_api_core_v1_se_linux_options.rb +248 -0
  365. data/lib/zilla/models/io_k8s_api_core_v1_seccomp_profile.rb +237 -0
  366. data/lib/zilla/models/io_k8s_api_core_v1_secret.rb +275 -0
  367. data/lib/zilla/models/io_k8s_api_core_v1_secret_env_source.rb +232 -0
  368. data/lib/zilla/models/io_k8s_api_core_v1_secret_key_selector.rb +245 -0
  369. data/lib/zilla/models/io_k8s_api_core_v1_secret_list.rb +254 -0
  370. data/lib/zilla/models/io_k8s_api_core_v1_secret_projection.rb +242 -0
  371. data/lib/zilla/models/io_k8s_api_core_v1_secret_reference.rb +232 -0
  372. data/lib/zilla/models/io_k8s_api_core_v1_secret_volume_source.rb +250 -0
  373. data/lib/zilla/models/io_k8s_api_core_v1_security_context.rb +299 -0
  374. data/lib/zilla/models/io_k8s_api_core_v1_service.rb +249 -0
  375. data/lib/zilla/models/io_k8s_api_core_v1_service_account.rb +268 -0
  376. data/lib/zilla/models/io_k8s_api_core_v1_service_account_list.rb +254 -0
  377. data/lib/zilla/models/io_k8s_api_core_v1_service_account_token_projection.rb +245 -0
  378. data/lib/zilla/models/io_k8s_api_core_v1_service_list.rb +254 -0
  379. data/lib/zilla/models/io_k8s_api_core_v1_service_port.rb +269 -0
  380. data/lib/zilla/models/io_k8s_api_core_v1_service_spec.rb +384 -0
  381. data/lib/zilla/models/io_k8s_api_core_v1_service_status.rb +233 -0
  382. data/lib/zilla/models/io_k8s_api_core_v1_session_affinity_config.rb +223 -0
  383. data/lib/zilla/models/io_k8s_api_core_v1_storage_os_persistent_volume_source.rb +255 -0
  384. data/lib/zilla/models/io_k8s_api_core_v1_storage_os_volume_source.rb +255 -0
  385. data/lib/zilla/models/io_k8s_api_core_v1_sysctl.rb +240 -0
  386. data/lib/zilla/models/io_k8s_api_core_v1_taint.rb +256 -0
  387. data/lib/zilla/models/io_k8s_api_core_v1_tcp_socket_action.rb +237 -0
  388. data/lib/zilla/models/io_k8s_api_core_v1_toleration.rb +256 -0
  389. data/lib/zilla/models/io_k8s_api_core_v1_topology_selector_label_requirement.rb +241 -0
  390. data/lib/zilla/models/io_k8s_api_core_v1_topology_selector_term.rb +225 -0
  391. data/lib/zilla/models/io_k8s_api_core_v1_topology_spread_constraint.rb +295 -0
  392. data/lib/zilla/models/io_k8s_api_core_v1_typed_local_object_reference.rb +248 -0
  393. data/lib/zilla/models/io_k8s_api_core_v1_volume.rb +378 -0
  394. data/lib/zilla/models/io_k8s_api_core_v1_volume_device.rb +240 -0
  395. data/lib/zilla/models/io_k8s_api_core_v1_volume_mount.rb +272 -0
  396. data/lib/zilla/models/io_k8s_api_core_v1_volume_node_affinity.rb +223 -0
  397. data/lib/zilla/models/io_k8s_api_core_v1_volume_projection.rb +238 -0
  398. data/lib/zilla/models/io_k8s_api_core_v1_vsphere_virtual_disk_volume_source.rb +253 -0
  399. data/lib/zilla/models/io_k8s_api_core_v1_weighted_pod_affinity_term.rb +241 -0
  400. data/lib/zilla/models/io_k8s_api_core_v1_windows_security_context_options.rb +250 -0
  401. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint.rb +282 -0
  402. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_conditions.rb +240 -0
  403. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_hints.rb +225 -0
  404. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_port.rb +248 -0
  405. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_slice.rb +274 -0
  406. data/lib/zilla/models/io_k8s_api_discovery_v1_endpoint_slice_list.rb +254 -0
  407. data/lib/zilla/models/io_k8s_api_discovery_v1_for_zone.rb +229 -0
  408. data/lib/zilla/models/io_k8s_api_events_v1_event.rb +349 -0
  409. data/lib/zilla/models/io_k8s_api_events_v1_event_list.rb +254 -0
  410. data/lib/zilla/models/io_k8s_api_events_v1_event_series.rb +242 -0
  411. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_distinguisher_method.rb +229 -0
  412. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema.rb +249 -0
  413. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_condition.rb +256 -0
  414. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_list.rb +254 -0
  415. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_spec.rb +254 -0
  416. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_flow_schema_status.rb +225 -0
  417. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_group_subject.rb +229 -0
  418. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_limit_response.rb +236 -0
  419. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_limited_priority_level_configuration.rb +233 -0
  420. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_non_resource_policy_rule.rb +245 -0
  421. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_policy_rules_with_subjects.rb +250 -0
  422. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration.rb +249 -0
  423. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_condition.rb +256 -0
  424. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_list.rb +254 -0
  425. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_reference.rb +229 -0
  426. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_spec.rb +236 -0
  427. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_priority_level_configuration_status.rb +225 -0
  428. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_queuing_configuration.rb +240 -0
  429. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_resource_policy_rule.rb +274 -0
  430. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_service_account_subject.rb +240 -0
  431. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_subject.rb +246 -0
  432. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta1_user_subject.rb +229 -0
  433. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_distinguisher_method.rb +229 -0
  434. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema.rb +249 -0
  435. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_condition.rb +256 -0
  436. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_list.rb +254 -0
  437. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_spec.rb +254 -0
  438. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_flow_schema_status.rb +225 -0
  439. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_group_subject.rb +229 -0
  440. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_limit_response.rb +236 -0
  441. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_limited_priority_level_configuration.rb +233 -0
  442. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_non_resource_policy_rule.rb +245 -0
  443. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_policy_rules_with_subjects.rb +250 -0
  444. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration.rb +249 -0
  445. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_condition.rb +256 -0
  446. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_list.rb +254 -0
  447. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_reference.rb +229 -0
  448. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_spec.rb +236 -0
  449. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_priority_level_configuration_status.rb +225 -0
  450. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_queuing_configuration.rb +240 -0
  451. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_resource_policy_rule.rb +274 -0
  452. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_service_account_subject.rb +240 -0
  453. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_subject.rb +246 -0
  454. data/lib/zilla/models/io_k8s_api_flowcontrol_v1beta2_user_subject.rb +229 -0
  455. data/lib/zilla/models/io_k8s_api_networking_v1_http_ingress_path.rb +247 -0
  456. data/lib/zilla/models/io_k8s_api_networking_v1_http_ingress_rule_value.rb +230 -0
  457. data/lib/zilla/models/io_k8s_api_networking_v1_ingress.rb +249 -0
  458. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_backend.rb +228 -0
  459. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class.rb +244 -0
  460. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class_list.rb +254 -0
  461. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class_parameters_reference.rb +264 -0
  462. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_class_spec.rb +231 -0
  463. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_list.rb +254 -0
  464. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_rule.rb +231 -0
  465. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_service_backend.rb +236 -0
  466. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_spec.rb +250 -0
  467. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_status.rb +223 -0
  468. data/lib/zilla/models/io_k8s_api_networking_v1_ingress_tls.rb +234 -0
  469. data/lib/zilla/models/io_k8s_api_networking_v1_ip_block.rb +238 -0
  470. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy.rb +249 -0
  471. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_egress_rule.rb +235 -0
  472. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_ingress_rule.rb +235 -0
  473. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_list.rb +254 -0
  474. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_peer.rb +233 -0
  475. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_port.rb +240 -0
  476. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_spec.rb +257 -0
  477. data/lib/zilla/models/io_k8s_api_networking_v1_network_policy_status.rb +225 -0
  478. data/lib/zilla/models/io_k8s_api_networking_v1_service_backend_port.rb +232 -0
  479. data/lib/zilla/models/io_k8s_api_networking_v1alpha1_cluster_cidr.rb +244 -0
  480. data/lib/zilla/models/io_k8s_api_networking_v1alpha1_cluster_cidr_list.rb +254 -0
  481. data/lib/zilla/models/io_k8s_api_networking_v1alpha1_cluster_cidr_spec.rb +254 -0
  482. data/lib/zilla/models/io_k8s_api_node_v1_overhead.rb +225 -0
  483. data/lib/zilla/models/io_k8s_api_node_v1_runtime_class.rb +262 -0
  484. data/lib/zilla/models/io_k8s_api_node_v1_runtime_class_list.rb +254 -0
  485. data/lib/zilla/models/io_k8s_api_node_v1_scheduling.rb +235 -0
  486. data/lib/zilla/models/io_k8s_api_policy_v1_eviction.rb +244 -0
  487. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget.rb +249 -0
  488. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget_list.rb +254 -0
  489. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget_spec.rb +239 -0
  490. data/lib/zilla/models/io_k8s_api_policy_v1_pod_disruption_budget_status.rb +297 -0
  491. data/lib/zilla/models/io_k8s_api_rbac_v1_aggregation_rule.rb +225 -0
  492. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role.rb +253 -0
  493. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role_binding.rb +258 -0
  494. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role_binding_list.rb +254 -0
  495. data/lib/zilla/models/io_k8s_api_rbac_v1_cluster_role_list.rb +254 -0
  496. data/lib/zilla/models/io_k8s_api_rbac_v1_policy_rule.rb +270 -0
  497. data/lib/zilla/models/io_k8s_api_rbac_v1_role.rb +248 -0
  498. data/lib/zilla/models/io_k8s_api_rbac_v1_role_binding.rb +258 -0
  499. data/lib/zilla/models/io_k8s_api_rbac_v1_role_binding_list.rb +254 -0
  500. data/lib/zilla/models/io_k8s_api_rbac_v1_role_list.rb +254 -0
  501. data/lib/zilla/models/io_k8s_api_rbac_v1_role_ref.rb +251 -0
  502. data/lib/zilla/models/io_k8s_api_rbac_v1_subject.rb +256 -0
  503. data/lib/zilla/models/io_k8s_api_scheduling_v1_priority_class.rb +276 -0
  504. data/lib/zilla/models/io_k8s_api_scheduling_v1_priority_class_list.rb +254 -0
  505. data/lib/zilla/models/io_k8s_api_storage_v1_csi_driver.rb +249 -0
  506. data/lib/zilla/models/io_k8s_api_storage_v1_csi_driver_list.rb +254 -0
  507. data/lib/zilla/models/io_k8s_api_storage_v1_csi_driver_spec.rb +284 -0
  508. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node.rb +249 -0
  509. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node_driver.rb +256 -0
  510. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node_list.rb +254 -0
  511. data/lib/zilla/models/io_k8s_api_storage_v1_csi_node_spec.rb +230 -0
  512. data/lib/zilla/models/io_k8s_api_storage_v1_csi_storage_capacity.rb +275 -0
  513. data/lib/zilla/models/io_k8s_api_storage_v1_csi_storage_capacity_list.rb +254 -0
  514. data/lib/zilla/models/io_k8s_api_storage_v1_storage_class.rb +307 -0
  515. data/lib/zilla/models/io_k8s_api_storage_v1_storage_class_list.rb +254 -0
  516. data/lib/zilla/models/io_k8s_api_storage_v1_token_request.rb +237 -0
  517. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment.rb +254 -0
  518. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_list.rb +254 -0
  519. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_source.rb +231 -0
  520. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_spec.rb +250 -0
  521. data/lib/zilla/models/io_k8s_api_storage_v1_volume_attachment_status.rb +251 -0
  522. data/lib/zilla/models/io_k8s_api_storage_v1_volume_error.rb +232 -0
  523. data/lib/zilla/models/io_k8s_api_storage_v1_volume_node_resources.rb +224 -0
  524. data/lib/zilla/models/io_k8s_api_storage_v1beta1_csi_storage_capacity.rb +275 -0
  525. data/lib/zilla/models/io_k8s_api_storage_v1beta1_csi_storage_capacity_list.rb +254 -0
  526. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_column_definition.rb +275 -0
  527. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_conversion.rb +236 -0
  528. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition.rb +254 -0
  529. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_condition.rb +264 -0
  530. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_list.rb +254 -0
  531. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_names.rb +276 -0
  532. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_spec.rb +275 -0
  533. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_status.rb +242 -0
  534. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_definition_version.rb +289 -0
  535. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_subresource_scale.rb +252 -0
  536. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_subresources.rb +231 -0
  537. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_custom_resource_validation.rb +223 -0
  538. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_external_documentation.rb +228 -0
  539. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_json_schema_props.rb +506 -0
  540. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_service_reference.rb +256 -0
  541. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_validation_rule.rb +237 -0
  542. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_webhook_client_config.rb +261 -0
  543. data/lib/zilla/models/io_k8s_apiextensions_apiserver_pkg_apis_apiextensions_v1_webhook_conversion.rb +239 -0
  544. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_group.rb +274 -0
  545. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_group_list.rb +247 -0
  546. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_resource.rb +319 -0
  547. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_resource_list.rb +257 -0
  548. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_api_versions.rb +261 -0
  549. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_condition.rb +283 -0
  550. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_delete_options.rb +273 -0
  551. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.rb +240 -0
  552. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_label_selector.rb +235 -0
  553. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_label_selector_requirement.rb +249 -0
  554. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_list_meta.rb +248 -0
  555. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_managed_fields_entry.rb +272 -0
  556. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_object_meta.rb +349 -0
  557. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_owner_reference.rb +278 -0
  558. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_preconditions.rb +232 -0
  559. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.rb +242 -0
  560. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_status.rb +276 -0
  561. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_status_cause.rb +240 -0
  562. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_status_details.rb +266 -0
  563. data/lib/zilla/models/io_k8s_apimachinery_pkg_apis_meta_v1_watch_event.rb +239 -0
  564. data/lib/zilla/models/io_k8s_apimachinery_pkg_version_info.rb +295 -0
  565. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service.rb +249 -0
  566. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_condition.rb +264 -0
  567. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_list.rb +254 -0
  568. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_spec.rb +305 -0
  569. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_api_service_status.rb +225 -0
  570. data/lib/zilla/models/io_k8s_kube_aggregator_pkg_apis_apiregistration_v1_service_reference.rb +240 -0
  571. data/lib/zilla/version.rb +11 -4
  572. data/lib/zilla.rb +586 -17
  573. metadata +595 -73
  574. data/.overcommit.yml +0 -4
  575. data/.tool-versions +0 -1
  576. data/CODE_OF_CONDUCT.md +0 -84
  577. data/LICENSE.txt +0 -21
  578. data/exe/zilla +0 -4
  579. data/lib/zilla/client_factory.rb +0 -22
  580. data/lib/zilla/loader_factory.rb +0 -37
  581. data/lib/zilla/loaders/file.rb +0 -5
  582. data/lib/zilla/loaders/hash.rb +0 -5
  583. data/lib/zilla/loaders/http.rb +0 -10
  584. data/lib/zilla/loaders/loader.rb +0 -23
  585. data/lib/zilla/loaders/string.rb +0 -5
  586. data/lib/zilla/versions/v20/api.rb +0 -37
  587. data/lib/zilla/versions/v20/client.rb +0 -37
  588. data/lib/zilla/versions/v20/definition.rb +0 -17
  589. data/lib/zilla/versions/v20/endpoint.rb +0 -29
  590. data/lib/zilla/versions/v20/executor.rb +0 -48
  591. data/lib/zilla/versions/v20/parameter.rb +0 -29
  592. data/lib/zilla/versions/v20/parameters.rb +0 -95
  593. data/lib/zilla/versions/v20/path.rb +0 -29
  594. data/lib/zilla/versions/v20/path_template.rb +0 -49
@@ -0,0 +1,2142 @@
1
+ # frozen_string_literal: true
2
+
3
+ # #Kubernetes
4
+ #
5
+ # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ #
7
+ # The version of the OpenAPI document: unversioned
8
+ #
9
+ # Generated by: https://openapi-generator.tech
10
+ # OpenAPI Generator version: 6.5.0-SNAPSHOT
11
+ #
12
+
13
+ require 'cgi'
14
+
15
+ module Zilla
16
+ class FlowcontrolApiserverV1beta2Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # create a FlowSchema
24
+ # @param body [IoK8sApiFlowcontrolV1beta2FlowSchema]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
27
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
28
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
29
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
30
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchema]
31
+ def create_flowcontrol_apiserver_v1beta2_flow_schema(body, opts = {})
32
+ data, _status_code, _headers = create_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(body, opts)
33
+ data
34
+ end
35
+
36
+ # create a FlowSchema
37
+ # @param body [IoK8sApiFlowcontrolV1beta2FlowSchema]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
40
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
41
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
42
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the `ServerSideFieldValidation` feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the `ServerSideFieldValidation` feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the `ServerSideFieldValidation` feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
43
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchema, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchema data, response status code and response headers
44
+ def create_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(body, opts = {})
45
+ if @api_client.config.debugging
46
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.create_flowcontrol_apiserver_v1beta2_flow_schema ...'
47
+ end
48
+ # verify the required parameter 'body' is set
49
+ if @api_client.config.client_side_validation && body.nil?
50
+ raise ArgumentError,
51
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.create_flowcontrol_apiserver_v1beta2_flow_schema"
52
+ end
53
+
54
+ # resource path
55
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas'
56
+
57
+ # query parameters
58
+ query_params = opts[:query_params] || {}
59
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
60
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
61
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
62
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
63
+
64
+ # header parameters
65
+ header_params = opts[:header_params] || {}
66
+ # HTTP header 'Accept' (if needed)
67
+ header_params['Accept'] =
68
+ @api_client.select_header_accept(['application/json', 'application/yaml',
69
+ 'application/vnd.kubernetes.protobuf'])
70
+
71
+ # form parameters
72
+ form_params = opts[:form_params] || {}
73
+
74
+ # http body (model)
75
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
76
+
77
+ # return_type
78
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchema'
79
+
80
+ # auth_names
81
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
82
+
83
+ new_options = opts.merge(
84
+ operation: :'FlowcontrolApiserverV1beta2Api.create_flowcontrol_apiserver_v1beta2_flow_schema',
85
+ header_params:,
86
+ query_params:,
87
+ form_params:,
88
+ body: post_body,
89
+ auth_names:,
90
+ return_type:
91
+ )
92
+
93
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#create_flowcontrol_apiserver_v1beta2_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ end
97
+ [data, status_code, headers]
98
+ end
99
+
100
+ # create a PriorityLevelConfiguration
101
+ # @param body [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
102
+ # @param [Hash] opts the optional parameters
103
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
104
+ # @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
105
+ # @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.
106
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
107
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
108
+ def create_flowcontrol_apiserver_v1beta2_priority_level_configuration(body, opts = {})
109
+ data, _status_code, _headers = create_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(
110
+ body, opts
111
+ )
112
+ data
113
+ end
114
+
115
+ # create a PriorityLevelConfiguration
116
+ # @param body [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
117
+ # @param [Hash] opts the optional parameters
118
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
119
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
120
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
121
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
122
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration data, response status code and response headers
123
+ def create_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(body, opts = {})
124
+ if @api_client.config.debugging
125
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.create_flowcontrol_apiserver_v1beta2_priority_level_configuration ...'
126
+ end
127
+ # verify the required parameter 'body' is set
128
+ if @api_client.config.client_side_validation && body.nil?
129
+ raise ArgumentError,
130
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.create_flowcontrol_apiserver_v1beta2_priority_level_configuration"
131
+ end
132
+
133
+ # resource path
134
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations'
135
+
136
+ # query parameters
137
+ query_params = opts[:query_params] || {}
138
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
139
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
140
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
141
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
142
+
143
+ # header parameters
144
+ header_params = opts[:header_params] || {}
145
+ # HTTP header 'Accept' (if needed)
146
+ header_params['Accept'] =
147
+ @api_client.select_header_accept(['application/json', 'application/yaml',
148
+ 'application/vnd.kubernetes.protobuf'])
149
+
150
+ # form parameters
151
+ form_params = opts[:form_params] || {}
152
+
153
+ # http body (model)
154
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
155
+
156
+ # return_type
157
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration'
158
+
159
+ # auth_names
160
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
161
+
162
+ new_options = opts.merge(
163
+ operation: :'FlowcontrolApiserverV1beta2Api.create_flowcontrol_apiserver_v1beta2_priority_level_configuration',
164
+ header_params:,
165
+ query_params:,
166
+ form_params:,
167
+ body: post_body,
168
+ auth_names:,
169
+ return_type:
170
+ )
171
+
172
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#create_flowcontrol_apiserver_v1beta2_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ end
176
+ [data, status_code, headers]
177
+ end
178
+
179
+ # delete collection of FlowSchema
180
+ # @param [Hash] opts the optional parameters
181
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
182
+ # @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.
183
+ # @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
184
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
185
+ # @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.
186
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
187
+ # @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.
188
+ # @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.
189
+ # @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.
190
+ # @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
191
+ # @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
192
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
193
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
194
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
195
+ def delete_flowcontrol_apiserver_v1beta2_collection_flow_schema(opts = {})
196
+ data, _status_code, _headers = delete_flowcontrol_apiserver_v1beta2_collection_flow_schema_with_http_info(opts)
197
+ data
198
+ end
199
+
200
+ # delete collection of FlowSchema
201
+ # @param [Hash] opts the optional parameters
202
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
203
+ # @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.
204
+ # @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
205
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
206
+ # @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.
207
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
208
+ # @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.
209
+ # @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.
210
+ # @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.
211
+ # @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
212
+ # @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
213
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
214
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
215
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
216
+ def delete_flowcontrol_apiserver_v1beta2_collection_flow_schema_with_http_info(opts = {})
217
+ if @api_client.config.debugging
218
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_collection_flow_schema ...'
219
+ end
220
+ # resource path
221
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas'
222
+
223
+ # query parameters
224
+ query_params = opts[:query_params] || {}
225
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
226
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
227
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
228
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
229
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
230
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
231
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
232
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
233
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
234
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
235
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
236
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
237
+
238
+ # header parameters
239
+ header_params = opts[:header_params] || {}
240
+ # HTTP header 'Accept' (if needed)
241
+ header_params['Accept'] =
242
+ @api_client.select_header_accept(['application/json', 'application/yaml',
243
+ 'application/vnd.kubernetes.protobuf'])
244
+
245
+ # form parameters
246
+ form_params = opts[:form_params] || {}
247
+
248
+ # http body (model)
249
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
250
+
251
+ # return_type
252
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
253
+
254
+ # auth_names
255
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
256
+
257
+ new_options = opts.merge(
258
+ operation: :'FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_collection_flow_schema',
259
+ header_params:,
260
+ query_params:,
261
+ form_params:,
262
+ body: post_body,
263
+ auth_names:,
264
+ return_type:
265
+ )
266
+
267
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
268
+ if @api_client.config.debugging
269
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#delete_flowcontrol_apiserver_v1beta2_collection_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
+ end
271
+ [data, status_code, headers]
272
+ end
273
+
274
+ # delete collection of PriorityLevelConfiguration
275
+ # @param [Hash] opts the optional parameters
276
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
277
+ # @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.
278
+ # @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
279
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
280
+ # @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.
281
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
282
+ # @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.
283
+ # @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.
284
+ # @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.
285
+ # @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
286
+ # @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
287
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
288
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
289
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
290
+ def delete_flowcontrol_apiserver_v1beta2_collection_priority_level_configuration(opts = {})
291
+ data, _status_code, _headers = delete_flowcontrol_apiserver_v1beta2_collection_priority_level_configuration_with_http_info(opts)
292
+ data
293
+ end
294
+
295
+ # delete collection of PriorityLevelConfiguration
296
+ # @param [Hash] opts the optional parameters
297
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
298
+ # @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.
299
+ # @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
300
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
301
+ # @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.
302
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
303
+ # @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.
304
+ # @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.
305
+ # @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.
306
+ # @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
307
+ # @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
308
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
309
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
310
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
311
+ def delete_flowcontrol_apiserver_v1beta2_collection_priority_level_configuration_with_http_info(opts = {})
312
+ if @api_client.config.debugging
313
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_collection_priority_level_configuration ...'
314
+ end
315
+ # resource path
316
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations'
317
+
318
+ # query parameters
319
+ query_params = opts[:query_params] || {}
320
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
321
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
322
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
323
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
324
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
325
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
326
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
327
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
328
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
329
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
330
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
331
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
332
+
333
+ # header parameters
334
+ header_params = opts[:header_params] || {}
335
+ # HTTP header 'Accept' (if needed)
336
+ header_params['Accept'] =
337
+ @api_client.select_header_accept(['application/json', 'application/yaml',
338
+ 'application/vnd.kubernetes.protobuf'])
339
+
340
+ # form parameters
341
+ form_params = opts[:form_params] || {}
342
+
343
+ # http body (model)
344
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
345
+
346
+ # return_type
347
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
348
+
349
+ # auth_names
350
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
351
+
352
+ new_options = opts.merge(
353
+ operation: :'FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_collection_priority_level_configuration',
354
+ header_params:,
355
+ query_params:,
356
+ form_params:,
357
+ body: post_body,
358
+ auth_names:,
359
+ return_type:
360
+ )
361
+
362
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#delete_flowcontrol_apiserver_v1beta2_collection_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
365
+ end
366
+ [data, status_code, headers]
367
+ end
368
+
369
+ # delete a FlowSchema
370
+ # @param name [String] name of the FlowSchema
371
+ # @param [Hash] opts the optional parameters
372
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
373
+ # @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
374
+ # @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.
375
+ # @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.
376
+ # @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.
377
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
378
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
379
+ def delete_flowcontrol_apiserver_v1beta2_flow_schema(name, opts = {})
380
+ data, _status_code, _headers = delete_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, opts)
381
+ data
382
+ end
383
+
384
+ # delete a FlowSchema
385
+ # @param name [String] name of the FlowSchema
386
+ # @param [Hash] opts the optional parameters
387
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
388
+ # @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
389
+ # @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.
390
+ # @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.
391
+ # @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.
392
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
393
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
394
+ def delete_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, opts = {})
395
+ if @api_client.config.debugging
396
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_flow_schema ...'
397
+ end
398
+ # verify the required parameter 'name' is set
399
+ if @api_client.config.client_side_validation && name.nil?
400
+ raise ArgumentError,
401
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_flow_schema"
402
+ end
403
+
404
+ # resource path
405
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}'.sub('{name}',
406
+ CGI.escape(name.to_s))
407
+
408
+ # query parameters
409
+ query_params = opts[:query_params] || {}
410
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
411
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
412
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
413
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
414
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
415
+
416
+ # header parameters
417
+ header_params = opts[:header_params] || {}
418
+ # HTTP header 'Accept' (if needed)
419
+ header_params['Accept'] =
420
+ @api_client.select_header_accept(['application/json', 'application/yaml',
421
+ 'application/vnd.kubernetes.protobuf'])
422
+
423
+ # form parameters
424
+ form_params = opts[:form_params] || {}
425
+
426
+ # http body (model)
427
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
428
+
429
+ # return_type
430
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
431
+
432
+ # auth_names
433
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
434
+
435
+ new_options = opts.merge(
436
+ operation: :'FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_flow_schema',
437
+ header_params:,
438
+ query_params:,
439
+ form_params:,
440
+ body: post_body,
441
+ auth_names:,
442
+ return_type:
443
+ )
444
+
445
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#delete_flowcontrol_apiserver_v1beta2_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
448
+ end
449
+ [data, status_code, headers]
450
+ end
451
+
452
+ # delete a PriorityLevelConfiguration
453
+ # @param name [String] name of the PriorityLevelConfiguration
454
+ # @param [Hash] opts the optional parameters
455
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
456
+ # @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
457
+ # @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.
458
+ # @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.
459
+ # @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.
460
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
461
+ # @return [IoK8sApimachineryPkgApisMetaV1Status]
462
+ def delete_flowcontrol_apiserver_v1beta2_priority_level_configuration(name, opts = {})
463
+ data, _status_code, _headers = delete_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(
464
+ name, opts
465
+ )
466
+ data
467
+ end
468
+
469
+ # delete a PriorityLevelConfiguration
470
+ # @param name [String] name of the PriorityLevelConfiguration
471
+ # @param [Hash] opts the optional parameters
472
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
473
+ # @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
474
+ # @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.
475
+ # @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.
476
+ # @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.
477
+ # @option opts [IoK8sApimachineryPkgApisMetaV1DeleteOptions] :body
478
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1Status, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1Status data, response status code and response headers
479
+ def delete_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(name, opts = {})
480
+ if @api_client.config.debugging
481
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_priority_level_configuration ...'
482
+ end
483
+ # verify the required parameter 'name' is set
484
+ if @api_client.config.client_side_validation && name.nil?
485
+ raise ArgumentError,
486
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_priority_level_configuration"
487
+ end
488
+
489
+ # resource path
490
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}'.sub(
491
+ '{name}', CGI.escape(name.to_s)
492
+ )
493
+
494
+ # query parameters
495
+ query_params = opts[:query_params] || {}
496
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
497
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
498
+ query_params[:gracePeriodSeconds] = opts[:grace_period_seconds] unless opts[:grace_period_seconds].nil?
499
+ query_params[:orphanDependents] = opts[:orphan_dependents] unless opts[:orphan_dependents].nil?
500
+ query_params[:propagationPolicy] = opts[:propagation_policy] unless opts[:propagation_policy].nil?
501
+
502
+ # header parameters
503
+ header_params = opts[:header_params] || {}
504
+ # HTTP header 'Accept' (if needed)
505
+ header_params['Accept'] =
506
+ @api_client.select_header_accept(['application/json', 'application/yaml',
507
+ 'application/vnd.kubernetes.protobuf'])
508
+
509
+ # form parameters
510
+ form_params = opts[:form_params] || {}
511
+
512
+ # http body (model)
513
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:body])
514
+
515
+ # return_type
516
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1Status'
517
+
518
+ # auth_names
519
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
520
+
521
+ new_options = opts.merge(
522
+ operation: :'FlowcontrolApiserverV1beta2Api.delete_flowcontrol_apiserver_v1beta2_priority_level_configuration',
523
+ header_params:,
524
+ query_params:,
525
+ form_params:,
526
+ body: post_body,
527
+ auth_names:,
528
+ return_type:
529
+ )
530
+
531
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
532
+ if @api_client.config.debugging
533
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#delete_flowcontrol_apiserver_v1beta2_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
534
+ end
535
+ [data, status_code, headers]
536
+ end
537
+
538
+ # get available resources
539
+ # @param [Hash] opts the optional parameters
540
+ # @return [IoK8sApimachineryPkgApisMetaV1APIResourceList]
541
+ def get_flowcontrol_apiserver_v1beta2_api_resources(opts = {})
542
+ data, _status_code, _headers = get_flowcontrol_apiserver_v1beta2_api_resources_with_http_info(opts)
543
+ data
544
+ end
545
+
546
+ # get available resources
547
+ # @param [Hash] opts the optional parameters
548
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1APIResourceList, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1APIResourceList data, response status code and response headers
549
+ def get_flowcontrol_apiserver_v1beta2_api_resources_with_http_info(opts = {})
550
+ if @api_client.config.debugging
551
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.get_flowcontrol_apiserver_v1beta2_api_resources ...'
552
+ end
553
+ # resource path
554
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/'
555
+
556
+ # query parameters
557
+ query_params = opts[:query_params] || {}
558
+
559
+ # header parameters
560
+ header_params = opts[:header_params] || {}
561
+ # HTTP header 'Accept' (if needed)
562
+ header_params['Accept'] =
563
+ @api_client.select_header_accept(['application/json', 'application/yaml',
564
+ 'application/vnd.kubernetes.protobuf'])
565
+
566
+ # form parameters
567
+ form_params = opts[:form_params] || {}
568
+
569
+ # http body (model)
570
+ post_body = opts[:debug_body]
571
+
572
+ # return_type
573
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1APIResourceList'
574
+
575
+ # auth_names
576
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
577
+
578
+ new_options = opts.merge(
579
+ operation: :'FlowcontrolApiserverV1beta2Api.get_flowcontrol_apiserver_v1beta2_api_resources',
580
+ header_params:,
581
+ query_params:,
582
+ form_params:,
583
+ body: post_body,
584
+ auth_names:,
585
+ return_type:
586
+ )
587
+
588
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
589
+ if @api_client.config.debugging
590
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#get_flowcontrol_apiserver_v1beta2_api_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
591
+ end
592
+ [data, status_code, headers]
593
+ end
594
+
595
+ # list or watch objects of kind FlowSchema
596
+ # @param [Hash] opts the optional parameters
597
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
598
+ # @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.
599
+ # @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.
600
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
601
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
602
+ # @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.
603
+ # @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
604
+ # @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
605
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
606
+ # @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.
607
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchemaList]
608
+ def list_flowcontrol_apiserver_v1beta2_flow_schema(opts = {})
609
+ data, _status_code, _headers = list_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(opts)
610
+ data
611
+ end
612
+
613
+ # list or watch objects of kind FlowSchema
614
+ # @param [Hash] opts the optional parameters
615
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
616
+ # @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.
617
+ # @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.
618
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
619
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
620
+ # @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.
621
+ # @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
622
+ # @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
623
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
624
+ # @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.
625
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchemaList, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchemaList data, response status code and response headers
626
+ def list_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(opts = {})
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.list_flowcontrol_apiserver_v1beta2_flow_schema ...'
629
+ end
630
+ # resource path
631
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas'
632
+
633
+ # query parameters
634
+ query_params = opts[:query_params] || {}
635
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
636
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
637
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
638
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
639
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
640
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
641
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
642
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
643
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
644
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
645
+
646
+ # header parameters
647
+ header_params = opts[:header_params] || {}
648
+ # HTTP header 'Accept' (if needed)
649
+ header_params['Accept'] =
650
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
651
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
652
+
653
+ # form parameters
654
+ form_params = opts[:form_params] || {}
655
+
656
+ # http body (model)
657
+ post_body = opts[:debug_body]
658
+
659
+ # return_type
660
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchemaList'
661
+
662
+ # auth_names
663
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
664
+
665
+ new_options = opts.merge(
666
+ operation: :'FlowcontrolApiserverV1beta2Api.list_flowcontrol_apiserver_v1beta2_flow_schema',
667
+ header_params:,
668
+ query_params:,
669
+ form_params:,
670
+ body: post_body,
671
+ auth_names:,
672
+ return_type:
673
+ )
674
+
675
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
676
+ if @api_client.config.debugging
677
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#list_flowcontrol_apiserver_v1beta2_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
678
+ end
679
+ [data, status_code, headers]
680
+ end
681
+
682
+ # list or watch objects of kind PriorityLevelConfiguration
683
+ # @param [Hash] opts the optional parameters
684
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
685
+ # @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.
686
+ # @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.
687
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
688
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
689
+ # @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.
690
+ # @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
691
+ # @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
692
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
693
+ # @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.
694
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfigurationList]
695
+ def list_flowcontrol_apiserver_v1beta2_priority_level_configuration(opts = {})
696
+ data, _status_code, _headers = list_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(opts)
697
+ data
698
+ end
699
+
700
+ # list or watch objects of kind PriorityLevelConfiguration
701
+ # @param [Hash] opts the optional parameters
702
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
703
+ # @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.
704
+ # @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.
705
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
706
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
707
+ # @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.
708
+ # @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
709
+ # @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
710
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
711
+ # @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.
712
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfigurationList, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfigurationList data, response status code and response headers
713
+ def list_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(opts = {})
714
+ if @api_client.config.debugging
715
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.list_flowcontrol_apiserver_v1beta2_priority_level_configuration ...'
716
+ end
717
+ # resource path
718
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations'
719
+
720
+ # query parameters
721
+ query_params = opts[:query_params] || {}
722
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
723
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
724
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
725
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
726
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
727
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
728
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
729
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
730
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
731
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
732
+
733
+ # header parameters
734
+ header_params = opts[:header_params] || {}
735
+ # HTTP header 'Accept' (if needed)
736
+ header_params['Accept'] =
737
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
738
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
739
+
740
+ # form parameters
741
+ form_params = opts[:form_params] || {}
742
+
743
+ # http body (model)
744
+ post_body = opts[:debug_body]
745
+
746
+ # return_type
747
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfigurationList'
748
+
749
+ # auth_names
750
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
751
+
752
+ new_options = opts.merge(
753
+ operation: :'FlowcontrolApiserverV1beta2Api.list_flowcontrol_apiserver_v1beta2_priority_level_configuration',
754
+ header_params:,
755
+ query_params:,
756
+ form_params:,
757
+ body: post_body,
758
+ auth_names:,
759
+ return_type:
760
+ )
761
+
762
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
763
+ if @api_client.config.debugging
764
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#list_flowcontrol_apiserver_v1beta2_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
765
+ end
766
+ [data, status_code, headers]
767
+ end
768
+
769
+ # partially update the specified FlowSchema
770
+ # @param name [String] name of the FlowSchema
771
+ # @param body [Object]
772
+ # @param [Hash] opts the optional parameters
773
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
774
+ # @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
775
+ # @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).
776
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
777
+ # @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.
778
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchema]
779
+ def patch_flowcontrol_apiserver_v1beta2_flow_schema(name, body, opts = {})
780
+ data, _status_code, _headers = patch_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, body, opts)
781
+ data
782
+ end
783
+
784
+ # partially update the specified FlowSchema
785
+ # @param name [String] name of the FlowSchema
786
+ # @param body [Object]
787
+ # @param [Hash] opts the optional parameters
788
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
789
+ # @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
790
+ # @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).
791
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
792
+ # @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.
793
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchema, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchema data, response status code and response headers
794
+ def patch_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, body, opts = {})
795
+ if @api_client.config.debugging
796
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema ...'
797
+ end
798
+ # verify the required parameter 'name' is set
799
+ if @api_client.config.client_side_validation && name.nil?
800
+ raise ArgumentError,
801
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema"
802
+ end
803
+ # verify the required parameter 'body' is set
804
+ if @api_client.config.client_side_validation && body.nil?
805
+ raise ArgumentError,
806
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema"
807
+ end
808
+
809
+ # resource path
810
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}'.sub('{name}',
811
+ CGI.escape(name.to_s))
812
+
813
+ # query parameters
814
+ query_params = opts[:query_params] || {}
815
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
816
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
817
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
818
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
819
+ query_params[:force] = opts[:force] unless opts[:force].nil?
820
+
821
+ # header parameters
822
+ header_params = opts[:header_params] || {}
823
+ # HTTP header 'Accept' (if needed)
824
+ header_params['Accept'] =
825
+ @api_client.select_header_accept(['application/json', 'application/yaml',
826
+ 'application/vnd.kubernetes.protobuf'])
827
+ # HTTP header 'Content-Type'
828
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
829
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
830
+ header_params['Content-Type'] = content_type unless content_type.nil?
831
+
832
+ # form parameters
833
+ form_params = opts[:form_params] || {}
834
+
835
+ # http body (model)
836
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
837
+
838
+ # return_type
839
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchema'
840
+
841
+ # auth_names
842
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
843
+
844
+ new_options = opts.merge(
845
+ operation: :'FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema',
846
+ header_params:,
847
+ query_params:,
848
+ form_params:,
849
+ body: post_body,
850
+ auth_names:,
851
+ return_type:
852
+ )
853
+
854
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
855
+ if @api_client.config.debugging
856
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#patch_flowcontrol_apiserver_v1beta2_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
857
+ end
858
+ [data, status_code, headers]
859
+ end
860
+
861
+ # partially update status of the specified FlowSchema
862
+ # @param name [String] name of the FlowSchema
863
+ # @param body [Object]
864
+ # @param [Hash] opts the optional parameters
865
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
866
+ # @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
867
+ # @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).
868
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
869
+ # @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.
870
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchema]
871
+ def patch_flowcontrol_apiserver_v1beta2_flow_schema_status(name, body, opts = {})
872
+ data, _status_code, _headers = patch_flowcontrol_apiserver_v1beta2_flow_schema_status_with_http_info(name, body,
873
+ opts)
874
+ data
875
+ end
876
+
877
+ # partially update status of the specified FlowSchema
878
+ # @param name [String] name of the FlowSchema
879
+ # @param body [Object]
880
+ # @param [Hash] opts the optional parameters
881
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
882
+ # @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
883
+ # @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).
884
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
885
+ # @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.
886
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchema, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchema data, response status code and response headers
887
+ def patch_flowcontrol_apiserver_v1beta2_flow_schema_status_with_http_info(name, body, opts = {})
888
+ if @api_client.config.debugging
889
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema_status ...'
890
+ end
891
+ # verify the required parameter 'name' is set
892
+ if @api_client.config.client_side_validation && name.nil?
893
+ raise ArgumentError,
894
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema_status"
895
+ end
896
+ # verify the required parameter 'body' is set
897
+ if @api_client.config.client_side_validation && body.nil?
898
+ raise ArgumentError,
899
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema_status"
900
+ end
901
+
902
+ # resource path
903
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status'.sub('{name}',
904
+ CGI.escape(name.to_s))
905
+
906
+ # query parameters
907
+ query_params = opts[:query_params] || {}
908
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
909
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
910
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
911
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
912
+ query_params[:force] = opts[:force] unless opts[:force].nil?
913
+
914
+ # header parameters
915
+ header_params = opts[:header_params] || {}
916
+ # HTTP header 'Accept' (if needed)
917
+ header_params['Accept'] =
918
+ @api_client.select_header_accept(['application/json', 'application/yaml',
919
+ 'application/vnd.kubernetes.protobuf'])
920
+ # HTTP header 'Content-Type'
921
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
922
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
923
+ header_params['Content-Type'] = content_type unless content_type.nil?
924
+
925
+ # form parameters
926
+ form_params = opts[:form_params] || {}
927
+
928
+ # http body (model)
929
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
930
+
931
+ # return_type
932
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchema'
933
+
934
+ # auth_names
935
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
936
+
937
+ new_options = opts.merge(
938
+ operation: :'FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_flow_schema_status',
939
+ header_params:,
940
+ query_params:,
941
+ form_params:,
942
+ body: post_body,
943
+ auth_names:,
944
+ return_type:
945
+ )
946
+
947
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
948
+ if @api_client.config.debugging
949
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#patch_flowcontrol_apiserver_v1beta2_flow_schema_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
950
+ end
951
+ [data, status_code, headers]
952
+ end
953
+
954
+ # partially update the specified PriorityLevelConfiguration
955
+ # @param name [String] name of the PriorityLevelConfiguration
956
+ # @param body [Object]
957
+ # @param [Hash] opts the optional parameters
958
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
959
+ # @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
960
+ # @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).
961
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
962
+ # @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.
963
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
964
+ def patch_flowcontrol_apiserver_v1beta2_priority_level_configuration(name, body, opts = {})
965
+ data, _status_code, _headers = patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(
966
+ name, body, opts
967
+ )
968
+ data
969
+ end
970
+
971
+ # partially update the specified PriorityLevelConfiguration
972
+ # @param name [String] name of the PriorityLevelConfiguration
973
+ # @param body [Object]
974
+ # @param [Hash] opts the optional parameters
975
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
976
+ # @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
977
+ # @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).
978
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
979
+ # @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.
980
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration data, response status code and response headers
981
+ def patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(name, body, opts = {})
982
+ if @api_client.config.debugging
983
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration ...'
984
+ end
985
+ # verify the required parameter 'name' is set
986
+ if @api_client.config.client_side_validation && name.nil?
987
+ raise ArgumentError,
988
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration"
989
+ end
990
+ # verify the required parameter 'body' is set
991
+ if @api_client.config.client_side_validation && body.nil?
992
+ raise ArgumentError,
993
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration"
994
+ end
995
+
996
+ # resource path
997
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}'.sub(
998
+ '{name}', CGI.escape(name.to_s)
999
+ )
1000
+
1001
+ # query parameters
1002
+ query_params = opts[:query_params] || {}
1003
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1004
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1005
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1006
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1007
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1008
+
1009
+ # header parameters
1010
+ header_params = opts[:header_params] || {}
1011
+ # HTTP header 'Accept' (if needed)
1012
+ header_params['Accept'] =
1013
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1014
+ 'application/vnd.kubernetes.protobuf'])
1015
+ # HTTP header 'Content-Type'
1016
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1017
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1018
+ header_params['Content-Type'] = content_type unless content_type.nil?
1019
+
1020
+ # form parameters
1021
+ form_params = opts[:form_params] || {}
1022
+
1023
+ # http body (model)
1024
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1025
+
1026
+ # return_type
1027
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration'
1028
+
1029
+ # auth_names
1030
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1031
+
1032
+ new_options = opts.merge(
1033
+ operation: :'FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration',
1034
+ header_params:,
1035
+ query_params:,
1036
+ form_params:,
1037
+ body: post_body,
1038
+ auth_names:,
1039
+ return_type:
1040
+ )
1041
+
1042
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1043
+ if @api_client.config.debugging
1044
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#patch_flowcontrol_apiserver_v1beta2_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1045
+ end
1046
+ [data, status_code, headers]
1047
+ end
1048
+
1049
+ # partially update status of the specified PriorityLevelConfiguration
1050
+ # @param name [String] name of the PriorityLevelConfiguration
1051
+ # @param body [Object]
1052
+ # @param [Hash] opts the optional parameters
1053
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1054
+ # @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
1055
+ # @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).
1056
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1057
+ # @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.
1058
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1059
+ def patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status(name, body, opts = {})
1060
+ data, _status_code, _headers = patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status_with_http_info(
1061
+ name, body, opts
1062
+ )
1063
+ data
1064
+ end
1065
+
1066
+ # partially update status of the specified PriorityLevelConfiguration
1067
+ # @param name [String] name of the PriorityLevelConfiguration
1068
+ # @param body [Object]
1069
+ # @param [Hash] opts the optional parameters
1070
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1071
+ # @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
1072
+ # @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).
1073
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1074
+ # @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.
1075
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration data, response status code and response headers
1076
+ def patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status_with_http_info(name, body, opts = {})
1077
+ if @api_client.config.debugging
1078
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status ...'
1079
+ end
1080
+ # verify the required parameter 'name' is set
1081
+ if @api_client.config.client_side_validation && name.nil?
1082
+ raise ArgumentError,
1083
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status"
1084
+ end
1085
+ # verify the required parameter 'body' is set
1086
+ if @api_client.config.client_side_validation && body.nil?
1087
+ raise ArgumentError,
1088
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status"
1089
+ end
1090
+
1091
+ # resource path
1092
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status'.sub(
1093
+ '{name}', CGI.escape(name.to_s)
1094
+ )
1095
+
1096
+ # query parameters
1097
+ query_params = opts[:query_params] || {}
1098
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1099
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1100
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1101
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1102
+ query_params[:force] = opts[:force] unless opts[:force].nil?
1103
+
1104
+ # header parameters
1105
+ header_params = opts[:header_params] || {}
1106
+ # HTTP header 'Accept' (if needed)
1107
+ header_params['Accept'] =
1108
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1109
+ 'application/vnd.kubernetes.protobuf'])
1110
+ # HTTP header 'Content-Type'
1111
+ content_type = @api_client.select_header_content_type(['application/json-patch+json',
1112
+ 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml'])
1113
+ header_params['Content-Type'] = content_type unless content_type.nil?
1114
+
1115
+ # form parameters
1116
+ form_params = opts[:form_params] || {}
1117
+
1118
+ # http body (model)
1119
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1120
+
1121
+ # return_type
1122
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration'
1123
+
1124
+ # auth_names
1125
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1126
+
1127
+ new_options = opts.merge(
1128
+ operation: :'FlowcontrolApiserverV1beta2Api.patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status',
1129
+ header_params:,
1130
+ query_params:,
1131
+ form_params:,
1132
+ body: post_body,
1133
+ auth_names:,
1134
+ return_type:
1135
+ )
1136
+
1137
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1138
+ if @api_client.config.debugging
1139
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#patch_flowcontrol_apiserver_v1beta2_priority_level_configuration_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1140
+ end
1141
+ [data, status_code, headers]
1142
+ end
1143
+
1144
+ # read the specified FlowSchema
1145
+ # @param name [String] name of the FlowSchema
1146
+ # @param [Hash] opts the optional parameters
1147
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1148
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchema]
1149
+ def read_flowcontrol_apiserver_v1beta2_flow_schema(name, opts = {})
1150
+ data, _status_code, _headers = read_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, opts)
1151
+ data
1152
+ end
1153
+
1154
+ # read the specified FlowSchema
1155
+ # @param name [String] name of the FlowSchema
1156
+ # @param [Hash] opts the optional parameters
1157
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1158
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchema, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchema data, response status code and response headers
1159
+ def read_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, opts = {})
1160
+ if @api_client.config.debugging
1161
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_flow_schema ...'
1162
+ end
1163
+ # verify the required parameter 'name' is set
1164
+ if @api_client.config.client_side_validation && name.nil?
1165
+ raise ArgumentError,
1166
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_flow_schema"
1167
+ end
1168
+
1169
+ # resource path
1170
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}'.sub('{name}',
1171
+ CGI.escape(name.to_s))
1172
+
1173
+ # query parameters
1174
+ query_params = opts[:query_params] || {}
1175
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1176
+
1177
+ # header parameters
1178
+ header_params = opts[:header_params] || {}
1179
+ # HTTP header 'Accept' (if needed)
1180
+ header_params['Accept'] =
1181
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1182
+ 'application/vnd.kubernetes.protobuf'])
1183
+
1184
+ # form parameters
1185
+ form_params = opts[:form_params] || {}
1186
+
1187
+ # http body (model)
1188
+ post_body = opts[:debug_body]
1189
+
1190
+ # return_type
1191
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchema'
1192
+
1193
+ # auth_names
1194
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1195
+
1196
+ new_options = opts.merge(
1197
+ operation: :'FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_flow_schema',
1198
+ header_params:,
1199
+ query_params:,
1200
+ form_params:,
1201
+ body: post_body,
1202
+ auth_names:,
1203
+ return_type:
1204
+ )
1205
+
1206
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1207
+ if @api_client.config.debugging
1208
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#read_flowcontrol_apiserver_v1beta2_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1209
+ end
1210
+ [data, status_code, headers]
1211
+ end
1212
+
1213
+ # read status of the specified FlowSchema
1214
+ # @param name [String] name of the FlowSchema
1215
+ # @param [Hash] opts the optional parameters
1216
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1217
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchema]
1218
+ def read_flowcontrol_apiserver_v1beta2_flow_schema_status(name, opts = {})
1219
+ data, _status_code, _headers = read_flowcontrol_apiserver_v1beta2_flow_schema_status_with_http_info(name, opts)
1220
+ data
1221
+ end
1222
+
1223
+ # read status of the specified FlowSchema
1224
+ # @param name [String] name of the FlowSchema
1225
+ # @param [Hash] opts the optional parameters
1226
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1227
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchema, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchema data, response status code and response headers
1228
+ def read_flowcontrol_apiserver_v1beta2_flow_schema_status_with_http_info(name, opts = {})
1229
+ if @api_client.config.debugging
1230
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_flow_schema_status ...'
1231
+ end
1232
+ # verify the required parameter 'name' is set
1233
+ if @api_client.config.client_side_validation && name.nil?
1234
+ raise ArgumentError,
1235
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_flow_schema_status"
1236
+ end
1237
+
1238
+ # resource path
1239
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status'.sub('{name}',
1240
+ CGI.escape(name.to_s))
1241
+
1242
+ # query parameters
1243
+ query_params = opts[:query_params] || {}
1244
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1245
+
1246
+ # header parameters
1247
+ header_params = opts[:header_params] || {}
1248
+ # HTTP header 'Accept' (if needed)
1249
+ header_params['Accept'] =
1250
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1251
+ 'application/vnd.kubernetes.protobuf'])
1252
+
1253
+ # form parameters
1254
+ form_params = opts[:form_params] || {}
1255
+
1256
+ # http body (model)
1257
+ post_body = opts[:debug_body]
1258
+
1259
+ # return_type
1260
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchema'
1261
+
1262
+ # auth_names
1263
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1264
+
1265
+ new_options = opts.merge(
1266
+ operation: :'FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_flow_schema_status',
1267
+ header_params:,
1268
+ query_params:,
1269
+ form_params:,
1270
+ body: post_body,
1271
+ auth_names:,
1272
+ return_type:
1273
+ )
1274
+
1275
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1276
+ if @api_client.config.debugging
1277
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#read_flowcontrol_apiserver_v1beta2_flow_schema_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1278
+ end
1279
+ [data, status_code, headers]
1280
+ end
1281
+
1282
+ # read the specified PriorityLevelConfiguration
1283
+ # @param name [String] name of the PriorityLevelConfiguration
1284
+ # @param [Hash] opts the optional parameters
1285
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1286
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1287
+ def read_flowcontrol_apiserver_v1beta2_priority_level_configuration(name, opts = {})
1288
+ data, _status_code, _headers = read_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(
1289
+ name, opts
1290
+ )
1291
+ data
1292
+ end
1293
+
1294
+ # read the specified PriorityLevelConfiguration
1295
+ # @param name [String] name of the PriorityLevelConfiguration
1296
+ # @param [Hash] opts the optional parameters
1297
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1298
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration data, response status code and response headers
1299
+ def read_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(name, opts = {})
1300
+ if @api_client.config.debugging
1301
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_priority_level_configuration ...'
1302
+ end
1303
+ # verify the required parameter 'name' is set
1304
+ if @api_client.config.client_side_validation && name.nil?
1305
+ raise ArgumentError,
1306
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_priority_level_configuration"
1307
+ end
1308
+
1309
+ # resource path
1310
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}'.sub(
1311
+ '{name}', CGI.escape(name.to_s)
1312
+ )
1313
+
1314
+ # query parameters
1315
+ query_params = opts[:query_params] || {}
1316
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1317
+
1318
+ # header parameters
1319
+ header_params = opts[:header_params] || {}
1320
+ # HTTP header 'Accept' (if needed)
1321
+ header_params['Accept'] =
1322
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1323
+ 'application/vnd.kubernetes.protobuf'])
1324
+
1325
+ # form parameters
1326
+ form_params = opts[:form_params] || {}
1327
+
1328
+ # http body (model)
1329
+ post_body = opts[:debug_body]
1330
+
1331
+ # return_type
1332
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration'
1333
+
1334
+ # auth_names
1335
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1336
+
1337
+ new_options = opts.merge(
1338
+ operation: :'FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_priority_level_configuration',
1339
+ header_params:,
1340
+ query_params:,
1341
+ form_params:,
1342
+ body: post_body,
1343
+ auth_names:,
1344
+ return_type:
1345
+ )
1346
+
1347
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1348
+ if @api_client.config.debugging
1349
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#read_flowcontrol_apiserver_v1beta2_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1350
+ end
1351
+ [data, status_code, headers]
1352
+ end
1353
+
1354
+ # read status of the specified PriorityLevelConfiguration
1355
+ # @param name [String] name of the PriorityLevelConfiguration
1356
+ # @param [Hash] opts the optional parameters
1357
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1358
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1359
+ def read_flowcontrol_apiserver_v1beta2_priority_level_configuration_status(name, opts = {})
1360
+ data, _status_code, _headers = read_flowcontrol_apiserver_v1beta2_priority_level_configuration_status_with_http_info(
1361
+ name, opts
1362
+ )
1363
+ data
1364
+ end
1365
+
1366
+ # read status of the specified PriorityLevelConfiguration
1367
+ # @param name [String] name of the PriorityLevelConfiguration
1368
+ # @param [Hash] opts the optional parameters
1369
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1370
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration data, response status code and response headers
1371
+ def read_flowcontrol_apiserver_v1beta2_priority_level_configuration_status_with_http_info(name, opts = {})
1372
+ if @api_client.config.debugging
1373
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_priority_level_configuration_status ...'
1374
+ end
1375
+ # verify the required parameter 'name' is set
1376
+ if @api_client.config.client_side_validation && name.nil?
1377
+ raise ArgumentError,
1378
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_priority_level_configuration_status"
1379
+ end
1380
+
1381
+ # resource path
1382
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status'.sub(
1383
+ '{name}', CGI.escape(name.to_s)
1384
+ )
1385
+
1386
+ # query parameters
1387
+ query_params = opts[:query_params] || {}
1388
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1389
+
1390
+ # header parameters
1391
+ header_params = opts[:header_params] || {}
1392
+ # HTTP header 'Accept' (if needed)
1393
+ header_params['Accept'] =
1394
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1395
+ 'application/vnd.kubernetes.protobuf'])
1396
+
1397
+ # form parameters
1398
+ form_params = opts[:form_params] || {}
1399
+
1400
+ # http body (model)
1401
+ post_body = opts[:debug_body]
1402
+
1403
+ # return_type
1404
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration'
1405
+
1406
+ # auth_names
1407
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1408
+
1409
+ new_options = opts.merge(
1410
+ operation: :'FlowcontrolApiserverV1beta2Api.read_flowcontrol_apiserver_v1beta2_priority_level_configuration_status',
1411
+ header_params:,
1412
+ query_params:,
1413
+ form_params:,
1414
+ body: post_body,
1415
+ auth_names:,
1416
+ return_type:
1417
+ )
1418
+
1419
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1420
+ if @api_client.config.debugging
1421
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#read_flowcontrol_apiserver_v1beta2_priority_level_configuration_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1422
+ end
1423
+ [data, status_code, headers]
1424
+ end
1425
+
1426
+ # replace the specified FlowSchema
1427
+ # @param name [String] name of the FlowSchema
1428
+ # @param body [IoK8sApiFlowcontrolV1beta2FlowSchema]
1429
+ # @param [Hash] opts the optional parameters
1430
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1431
+ # @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
1432
+ # @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.
1433
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1434
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchema]
1435
+ def replace_flowcontrol_apiserver_v1beta2_flow_schema(name, body, opts = {})
1436
+ data, _status_code, _headers = replace_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, body, opts)
1437
+ data
1438
+ end
1439
+
1440
+ # replace the specified FlowSchema
1441
+ # @param name [String] name of the FlowSchema
1442
+ # @param body [IoK8sApiFlowcontrolV1beta2FlowSchema]
1443
+ # @param [Hash] opts the optional parameters
1444
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1445
+ # @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
1446
+ # @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.
1447
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1448
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchema, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchema data, response status code and response headers
1449
+ def replace_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, body, opts = {})
1450
+ if @api_client.config.debugging
1451
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema ...'
1452
+ end
1453
+ # verify the required parameter 'name' is set
1454
+ if @api_client.config.client_side_validation && name.nil?
1455
+ raise ArgumentError,
1456
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema"
1457
+ end
1458
+ # verify the required parameter 'body' is set
1459
+ if @api_client.config.client_side_validation && body.nil?
1460
+ raise ArgumentError,
1461
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema"
1462
+ end
1463
+
1464
+ # resource path
1465
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}'.sub('{name}',
1466
+ CGI.escape(name.to_s))
1467
+
1468
+ # query parameters
1469
+ query_params = opts[:query_params] || {}
1470
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1471
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1472
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1473
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1474
+
1475
+ # header parameters
1476
+ header_params = opts[:header_params] || {}
1477
+ # HTTP header 'Accept' (if needed)
1478
+ header_params['Accept'] =
1479
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1480
+ 'application/vnd.kubernetes.protobuf'])
1481
+
1482
+ # form parameters
1483
+ form_params = opts[:form_params] || {}
1484
+
1485
+ # http body (model)
1486
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1487
+
1488
+ # return_type
1489
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchema'
1490
+
1491
+ # auth_names
1492
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1493
+
1494
+ new_options = opts.merge(
1495
+ operation: :'FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema',
1496
+ header_params:,
1497
+ query_params:,
1498
+ form_params:,
1499
+ body: post_body,
1500
+ auth_names:,
1501
+ return_type:
1502
+ )
1503
+
1504
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1505
+ if @api_client.config.debugging
1506
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#replace_flowcontrol_apiserver_v1beta2_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1507
+ end
1508
+ [data, status_code, headers]
1509
+ end
1510
+
1511
+ # replace status of the specified FlowSchema
1512
+ # @param name [String] name of the FlowSchema
1513
+ # @param body [IoK8sApiFlowcontrolV1beta2FlowSchema]
1514
+ # @param [Hash] opts the optional parameters
1515
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1516
+ # @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
1517
+ # @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.
1518
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1519
+ # @return [IoK8sApiFlowcontrolV1beta2FlowSchema]
1520
+ def replace_flowcontrol_apiserver_v1beta2_flow_schema_status(name, body, opts = {})
1521
+ data, _status_code, _headers = replace_flowcontrol_apiserver_v1beta2_flow_schema_status_with_http_info(name,
1522
+ body, opts)
1523
+ data
1524
+ end
1525
+
1526
+ # replace status of the specified FlowSchema
1527
+ # @param name [String] name of the FlowSchema
1528
+ # @param body [IoK8sApiFlowcontrolV1beta2FlowSchema]
1529
+ # @param [Hash] opts the optional parameters
1530
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1531
+ # @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
1532
+ # @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.
1533
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1534
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2FlowSchema, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2FlowSchema data, response status code and response headers
1535
+ def replace_flowcontrol_apiserver_v1beta2_flow_schema_status_with_http_info(name, body, opts = {})
1536
+ if @api_client.config.debugging
1537
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema_status ...'
1538
+ end
1539
+ # verify the required parameter 'name' is set
1540
+ if @api_client.config.client_side_validation && name.nil?
1541
+ raise ArgumentError,
1542
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema_status"
1543
+ end
1544
+ # verify the required parameter 'body' is set
1545
+ if @api_client.config.client_side_validation && body.nil?
1546
+ raise ArgumentError,
1547
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema_status"
1548
+ end
1549
+
1550
+ # resource path
1551
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status'.sub('{name}',
1552
+ CGI.escape(name.to_s))
1553
+
1554
+ # query parameters
1555
+ query_params = opts[:query_params] || {}
1556
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1557
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1558
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1559
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1560
+
1561
+ # header parameters
1562
+ header_params = opts[:header_params] || {}
1563
+ # HTTP header 'Accept' (if needed)
1564
+ header_params['Accept'] =
1565
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1566
+ 'application/vnd.kubernetes.protobuf'])
1567
+
1568
+ # form parameters
1569
+ form_params = opts[:form_params] || {}
1570
+
1571
+ # http body (model)
1572
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1573
+
1574
+ # return_type
1575
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2FlowSchema'
1576
+
1577
+ # auth_names
1578
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1579
+
1580
+ new_options = opts.merge(
1581
+ operation: :'FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_flow_schema_status',
1582
+ header_params:,
1583
+ query_params:,
1584
+ form_params:,
1585
+ body: post_body,
1586
+ auth_names:,
1587
+ return_type:
1588
+ )
1589
+
1590
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1591
+ if @api_client.config.debugging
1592
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#replace_flowcontrol_apiserver_v1beta2_flow_schema_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1593
+ end
1594
+ [data, status_code, headers]
1595
+ end
1596
+
1597
+ # replace the specified PriorityLevelConfiguration
1598
+ # @param name [String] name of the PriorityLevelConfiguration
1599
+ # @param body [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1600
+ # @param [Hash] opts the optional parameters
1601
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1602
+ # @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
1603
+ # @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.
1604
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1605
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1606
+ def replace_flowcontrol_apiserver_v1beta2_priority_level_configuration(name, body, opts = {})
1607
+ data, _status_code, _headers = replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(
1608
+ name, body, opts
1609
+ )
1610
+ data
1611
+ end
1612
+
1613
+ # replace the specified PriorityLevelConfiguration
1614
+ # @param name [String] name of the PriorityLevelConfiguration
1615
+ # @param body [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1616
+ # @param [Hash] opts the optional parameters
1617
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1618
+ # @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
1619
+ # @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.
1620
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1621
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration data, response status code and response headers
1622
+ def replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(name, body, opts = {})
1623
+ if @api_client.config.debugging
1624
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration ...'
1625
+ end
1626
+ # verify the required parameter 'name' is set
1627
+ if @api_client.config.client_side_validation && name.nil?
1628
+ raise ArgumentError,
1629
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration"
1630
+ end
1631
+ # verify the required parameter 'body' is set
1632
+ if @api_client.config.client_side_validation && body.nil?
1633
+ raise ArgumentError,
1634
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration"
1635
+ end
1636
+
1637
+ # resource path
1638
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}'.sub(
1639
+ '{name}', CGI.escape(name.to_s)
1640
+ )
1641
+
1642
+ # query parameters
1643
+ query_params = opts[:query_params] || {}
1644
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1645
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1646
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1647
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1648
+
1649
+ # header parameters
1650
+ header_params = opts[:header_params] || {}
1651
+ # HTTP header 'Accept' (if needed)
1652
+ header_params['Accept'] =
1653
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1654
+ 'application/vnd.kubernetes.protobuf'])
1655
+
1656
+ # form parameters
1657
+ form_params = opts[:form_params] || {}
1658
+
1659
+ # http body (model)
1660
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1661
+
1662
+ # return_type
1663
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration'
1664
+
1665
+ # auth_names
1666
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1667
+
1668
+ new_options = opts.merge(
1669
+ operation: :'FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration',
1670
+ header_params:,
1671
+ query_params:,
1672
+ form_params:,
1673
+ body: post_body,
1674
+ auth_names:,
1675
+ return_type:
1676
+ )
1677
+
1678
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1679
+ if @api_client.config.debugging
1680
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#replace_flowcontrol_apiserver_v1beta2_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1681
+ end
1682
+ [data, status_code, headers]
1683
+ end
1684
+
1685
+ # replace status of the specified PriorityLevelConfiguration
1686
+ # @param name [String] name of the PriorityLevelConfiguration
1687
+ # @param body [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1688
+ # @param [Hash] opts the optional parameters
1689
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1690
+ # @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
1691
+ # @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.
1692
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1693
+ # @return [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1694
+ def replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status(name, body, opts = {})
1695
+ data, _status_code, _headers = replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status_with_http_info(
1696
+ name, body, opts
1697
+ )
1698
+ data
1699
+ end
1700
+
1701
+ # replace status of the specified PriorityLevelConfiguration
1702
+ # @param name [String] name of the PriorityLevelConfiguration
1703
+ # @param body [IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration]
1704
+ # @param [Hash] opts the optional parameters
1705
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1706
+ # @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
1707
+ # @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.
1708
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields, provided that the &#x60;ServerSideFieldValidation&#x60; feature gate is also enabled. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23 and is the default behavior when the &#x60;ServerSideFieldValidation&#x60; feature gate is disabled. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default when the &#x60;ServerSideFieldValidation&#x60; feature gate is enabled. - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1709
+ # @return [Array<(IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration, Integer, Hash)>] IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration data, response status code and response headers
1710
+ def replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status_with_http_info(name, body, opts = {})
1711
+ if @api_client.config.debugging
1712
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status ...'
1713
+ end
1714
+ # verify the required parameter 'name' is set
1715
+ if @api_client.config.client_side_validation && name.nil?
1716
+ raise ArgumentError,
1717
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status"
1718
+ end
1719
+ # verify the required parameter 'body' is set
1720
+ if @api_client.config.client_side_validation && body.nil?
1721
+ raise ArgumentError,
1722
+ "Missing the required parameter 'body' when calling FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status"
1723
+ end
1724
+
1725
+ # resource path
1726
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status'.sub(
1727
+ '{name}', CGI.escape(name.to_s)
1728
+ )
1729
+
1730
+ # query parameters
1731
+ query_params = opts[:query_params] || {}
1732
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1733
+ query_params[:dryRun] = opts[:dry_run] unless opts[:dry_run].nil?
1734
+ query_params[:fieldManager] = opts[:field_manager] unless opts[:field_manager].nil?
1735
+ query_params[:fieldValidation] = opts[:field_validation] unless opts[:field_validation].nil?
1736
+
1737
+ # header parameters
1738
+ header_params = opts[:header_params] || {}
1739
+ # HTTP header 'Accept' (if needed)
1740
+ header_params['Accept'] =
1741
+ @api_client.select_header_accept(['application/json', 'application/yaml',
1742
+ 'application/vnd.kubernetes.protobuf'])
1743
+
1744
+ # form parameters
1745
+ form_params = opts[:form_params] || {}
1746
+
1747
+ # http body (model)
1748
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1749
+
1750
+ # return_type
1751
+ return_type = opts[:debug_return_type] || 'IoK8sApiFlowcontrolV1beta2PriorityLevelConfiguration'
1752
+
1753
+ # auth_names
1754
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1755
+
1756
+ new_options = opts.merge(
1757
+ operation: :'FlowcontrolApiserverV1beta2Api.replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status',
1758
+ header_params:,
1759
+ query_params:,
1760
+ form_params:,
1761
+ body: post_body,
1762
+ auth_names:,
1763
+ return_type:
1764
+ )
1765
+
1766
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1767
+ if @api_client.config.debugging
1768
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#replace_flowcontrol_apiserver_v1beta2_priority_level_configuration_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1769
+ end
1770
+ [data, status_code, headers]
1771
+ end
1772
+
1773
+ # watch changes to an object of kind FlowSchema. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
1774
+ # @param name [String] name of the FlowSchema
1775
+ # @param [Hash] opts the optional parameters
1776
+ # @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.
1777
+ # @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.
1778
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1779
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1780
+ # @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.
1781
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1782
+ # @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
1783
+ # @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
1784
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1785
+ # @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.
1786
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
1787
+ def watch_flowcontrol_apiserver_v1beta2_flow_schema(name, opts = {})
1788
+ data, _status_code, _headers = watch_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, opts)
1789
+ data
1790
+ end
1791
+
1792
+ # watch changes to an object of kind FlowSchema. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
1793
+ # @param name [String] name of the FlowSchema
1794
+ # @param [Hash] opts the optional parameters
1795
+ # @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.
1796
+ # @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.
1797
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1798
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1799
+ # @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.
1800
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1801
+ # @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
1802
+ # @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
1803
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1804
+ # @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.
1805
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
1806
+ def watch_flowcontrol_apiserver_v1beta2_flow_schema_with_http_info(name, opts = {})
1807
+ if @api_client.config.debugging
1808
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_flow_schema ...'
1809
+ end
1810
+ # verify the required parameter 'name' is set
1811
+ if @api_client.config.client_side_validation && name.nil?
1812
+ raise ArgumentError,
1813
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_flow_schema"
1814
+ end
1815
+
1816
+ # resource path
1817
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}'.sub('{name}',
1818
+ CGI.escape(name.to_s))
1819
+
1820
+ # query parameters
1821
+ query_params = opts[:query_params] || {}
1822
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1823
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1824
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1825
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1826
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1827
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1828
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1829
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1830
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1831
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1832
+
1833
+ # header parameters
1834
+ header_params = opts[:header_params] || {}
1835
+ # HTTP header 'Accept' (if needed)
1836
+ header_params['Accept'] =
1837
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1838
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1839
+
1840
+ # form parameters
1841
+ form_params = opts[:form_params] || {}
1842
+
1843
+ # http body (model)
1844
+ post_body = opts[:debug_body]
1845
+
1846
+ # return_type
1847
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
1848
+
1849
+ # auth_names
1850
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1851
+
1852
+ new_options = opts.merge(
1853
+ operation: :'FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_flow_schema',
1854
+ header_params:,
1855
+ query_params:,
1856
+ form_params:,
1857
+ body: post_body,
1858
+ auth_names:,
1859
+ return_type:
1860
+ )
1861
+
1862
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1863
+ if @api_client.config.debugging
1864
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#watch_flowcontrol_apiserver_v1beta2_flow_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1865
+ end
1866
+ [data, status_code, headers]
1867
+ end
1868
+
1869
+ # watch individual changes to a list of FlowSchema. deprecated: use the 'watch' parameter with a list operation instead.
1870
+ # @param [Hash] opts the optional parameters
1871
+ # @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.
1872
+ # @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.
1873
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1874
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1875
+ # @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.
1876
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1877
+ # @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
1878
+ # @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
1879
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1880
+ # @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.
1881
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
1882
+ def watch_flowcontrol_apiserver_v1beta2_flow_schema_list(opts = {})
1883
+ data, _status_code, _headers = watch_flowcontrol_apiserver_v1beta2_flow_schema_list_with_http_info(opts)
1884
+ data
1885
+ end
1886
+
1887
+ # watch individual changes to a list of FlowSchema. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
1888
+ # @param [Hash] opts the optional parameters
1889
+ # @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.
1890
+ # @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.
1891
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1892
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1893
+ # @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.
1894
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1895
+ # @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
1896
+ # @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
1897
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1898
+ # @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.
1899
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
1900
+ def watch_flowcontrol_apiserver_v1beta2_flow_schema_list_with_http_info(opts = {})
1901
+ if @api_client.config.debugging
1902
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_flow_schema_list ...'
1903
+ end
1904
+ # resource path
1905
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas'
1906
+
1907
+ # query parameters
1908
+ query_params = opts[:query_params] || {}
1909
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
1910
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
1911
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
1912
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
1913
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
1914
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
1915
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
1916
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
1917
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
1918
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
1919
+
1920
+ # header parameters
1921
+ header_params = opts[:header_params] || {}
1922
+ # HTTP header 'Accept' (if needed)
1923
+ header_params['Accept'] =
1924
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
1925
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
1926
+
1927
+ # form parameters
1928
+ form_params = opts[:form_params] || {}
1929
+
1930
+ # http body (model)
1931
+ post_body = opts[:debug_body]
1932
+
1933
+ # return_type
1934
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
1935
+
1936
+ # auth_names
1937
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1938
+
1939
+ new_options = opts.merge(
1940
+ operation: :'FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_flow_schema_list',
1941
+ header_params:,
1942
+ query_params:,
1943
+ form_params:,
1944
+ body: post_body,
1945
+ auth_names:,
1946
+ return_type:
1947
+ )
1948
+
1949
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1950
+ if @api_client.config.debugging
1951
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#watch_flowcontrol_apiserver_v1beta2_flow_schema_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1952
+ end
1953
+ [data, status_code, headers]
1954
+ end
1955
+
1956
+ # watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
1957
+ # @param name [String] name of the PriorityLevelConfiguration
1958
+ # @param [Hash] opts the optional parameters
1959
+ # @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.
1960
+ # @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.
1961
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1962
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1963
+ # @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.
1964
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1965
+ # @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
1966
+ # @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
1967
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1968
+ # @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.
1969
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
1970
+ def watch_flowcontrol_apiserver_v1beta2_priority_level_configuration(name, opts = {})
1971
+ data, _status_code, _headers = watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(
1972
+ name, opts
1973
+ )
1974
+ data
1975
+ end
1976
+
1977
+ # watch changes to an object of kind PriorityLevelConfiguration. deprecated: use the &#39;watch&#39; parameter with a list operation instead, filtered to a single item with the &#39;fieldSelector&#39; parameter.
1978
+ # @param name [String] name of the PriorityLevelConfiguration
1979
+ # @param [Hash] opts the optional parameters
1980
+ # @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.
1981
+ # @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.
1982
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1983
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1984
+ # @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.
1985
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1986
+ # @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
1987
+ # @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
1988
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1989
+ # @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.
1990
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
1991
+ def watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_with_http_info(name, opts = {})
1992
+ if @api_client.config.debugging
1993
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_priority_level_configuration ...'
1994
+ end
1995
+ # verify the required parameter 'name' is set
1996
+ if @api_client.config.client_side_validation && name.nil?
1997
+ raise ArgumentError,
1998
+ "Missing the required parameter 'name' when calling FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_priority_level_configuration"
1999
+ end
2000
+
2001
+ # resource path
2002
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}'.sub(
2003
+ '{name}', CGI.escape(name.to_s)
2004
+ )
2005
+
2006
+ # query parameters
2007
+ query_params = opts[:query_params] || {}
2008
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2009
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2010
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2011
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2012
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2013
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2014
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2015
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2016
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2017
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2018
+
2019
+ # header parameters
2020
+ header_params = opts[:header_params] || {}
2021
+ # HTTP header 'Accept' (if needed)
2022
+ header_params['Accept'] =
2023
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2024
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2025
+
2026
+ # form parameters
2027
+ form_params = opts[:form_params] || {}
2028
+
2029
+ # http body (model)
2030
+ post_body = opts[:debug_body]
2031
+
2032
+ # return_type
2033
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2034
+
2035
+ # auth_names
2036
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2037
+
2038
+ new_options = opts.merge(
2039
+ operation: :'FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_priority_level_configuration',
2040
+ header_params:,
2041
+ query_params:,
2042
+ form_params:,
2043
+ body: post_body,
2044
+ auth_names:,
2045
+ return_type:
2046
+ )
2047
+
2048
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2049
+ if @api_client.config.debugging
2050
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#watch_flowcontrol_apiserver_v1beta2_priority_level_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2051
+ end
2052
+ [data, status_code, headers]
2053
+ end
2054
+
2055
+ # watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the 'watch' parameter with a list operation instead.
2056
+ # @param [Hash] opts the optional parameters
2057
+ # @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.
2058
+ # @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.
2059
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2060
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2061
+ # @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.
2062
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2063
+ # @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
2064
+ # @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
2065
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2066
+ # @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.
2067
+ # @return [IoK8sApimachineryPkgApisMetaV1WatchEvent]
2068
+ def watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_list(opts = {})
2069
+ data, _status_code, _headers = watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_list_with_http_info(opts)
2070
+ data
2071
+ end
2072
+
2073
+ # watch individual changes to a list of PriorityLevelConfiguration. deprecated: use the &#39;watch&#39; parameter with a list operation instead.
2074
+ # @param [Hash] opts the optional parameters
2075
+ # @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.
2076
+ # @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.
2077
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
2078
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
2079
+ # @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.
2080
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
2081
+ # @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
2082
+ # @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
2083
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
2084
+ # @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.
2085
+ # @return [Array<(IoK8sApimachineryPkgApisMetaV1WatchEvent, Integer, Hash)>] IoK8sApimachineryPkgApisMetaV1WatchEvent data, response status code and response headers
2086
+ def watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_list_with_http_info(opts = {})
2087
+ if @api_client.config.debugging
2088
+ @api_client.config.logger.debug 'Calling API: FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_list ...'
2089
+ end
2090
+ # resource path
2091
+ local_var_path = '/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations'
2092
+
2093
+ # query parameters
2094
+ query_params = opts[:query_params] || {}
2095
+ query_params[:allowWatchBookmarks] = opts[:allow_watch_bookmarks] unless opts[:allow_watch_bookmarks].nil?
2096
+ query_params[:continue] = opts[:continue] unless opts[:continue].nil?
2097
+ query_params[:fieldSelector] = opts[:field_selector] unless opts[:field_selector].nil?
2098
+ query_params[:labelSelector] = opts[:label_selector] unless opts[:label_selector].nil?
2099
+ query_params[:limit] = opts[:limit] unless opts[:limit].nil?
2100
+ query_params[:pretty] = opts[:pretty] unless opts[:pretty].nil?
2101
+ query_params[:resourceVersion] = opts[:resource_version] unless opts[:resource_version].nil?
2102
+ query_params[:resourceVersionMatch] = opts[:resource_version_match] unless opts[:resource_version_match].nil?
2103
+ query_params[:timeoutSeconds] = opts[:timeout_seconds] unless opts[:timeout_seconds].nil?
2104
+ query_params[:watch] = opts[:watch] unless opts[:watch].nil?
2105
+
2106
+ # header parameters
2107
+ header_params = opts[:header_params] || {}
2108
+ # HTTP header 'Accept' (if needed)
2109
+ header_params['Accept'] =
2110
+ @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf',
2111
+ 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch'])
2112
+
2113
+ # form parameters
2114
+ form_params = opts[:form_params] || {}
2115
+
2116
+ # http body (model)
2117
+ post_body = opts[:debug_body]
2118
+
2119
+ # return_type
2120
+ return_type = opts[:debug_return_type] || 'IoK8sApimachineryPkgApisMetaV1WatchEvent'
2121
+
2122
+ # auth_names
2123
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2124
+
2125
+ new_options = opts.merge(
2126
+ operation: :'FlowcontrolApiserverV1beta2Api.watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_list',
2127
+ header_params:,
2128
+ query_params:,
2129
+ form_params:,
2130
+ body: post_body,
2131
+ auth_names:,
2132
+ return_type:
2133
+ )
2134
+
2135
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2136
+ if @api_client.config.debugging
2137
+ @api_client.config.logger.debug "API called: FlowcontrolApiserverV1beta2Api#watch_flowcontrol_apiserver_v1beta2_priority_level_configuration_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2138
+ end
2139
+ [data, status_code, headers]
2140
+ end
2141
+ end
2142
+ end