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