kruby 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (812) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/README.md +1722 -0
  4. data/lib/kruby.rb +3 -0
  5. data/lib/kubernetes/api/admissionregistration_api.rb +77 -0
  6. data/lib/kubernetes/api/admissionregistration_v1_api.rb +2576 -0
  7. data/lib/kubernetes/api/admissionregistration_v1alpha1_api.rb +1213 -0
  8. data/lib/kubernetes/api/admissionregistration_v1beta1_api.rb +1213 -0
  9. data/lib/kubernetes/api/apiextensions_api.rb +77 -0
  10. data/lib/kubernetes/api/apiextensions_v1_api.rb +872 -0
  11. data/lib/kubernetes/api/apiregistration_api.rb +77 -0
  12. data/lib/kubernetes/api/apiregistration_v1_api.rb +872 -0
  13. data/lib/kubernetes/api/apis_api.rb +77 -0
  14. data/lib/kubernetes/api/apps_api.rb +77 -0
  15. data/lib/kubernetes/api/apps_v1_api.rb +5282 -0
  16. data/lib/kubernetes/api/authentication_api.rb +77 -0
  17. data/lib/kubernetes/api/authentication_v1_api.rb +223 -0
  18. data/lib/kubernetes/api/authorization_api.rb +77 -0
  19. data/lib/kubernetes/api/authorization_v1_api.rb +375 -0
  20. data/lib/kubernetes/api/autoscaling_api.rb +77 -0
  21. data/lib/kubernetes/api/autoscaling_v1_api.rb +1020 -0
  22. data/lib/kubernetes/api/autoscaling_v2_api.rb +1020 -0
  23. data/lib/kubernetes/api/batch_api.rb +77 -0
  24. data/lib/kubernetes/api/batch_v1_api.rb +1963 -0
  25. data/lib/kubernetes/api/certificates_api.rb +77 -0
  26. data/lib/kubernetes/api/certificates_v1_api.rb +1099 -0
  27. data/lib/kubernetes/api/certificates_v1alpha1_api.rb +645 -0
  28. data/lib/kubernetes/api/certificates_v1beta1_api.rb +1588 -0
  29. data/lib/kubernetes/api/coordination_api.rb +77 -0
  30. data/lib/kubernetes/api/coordination_v1_api.rb +775 -0
  31. data/lib/kubernetes/api/coordination_v1alpha2_api.rb +775 -0
  32. data/lib/kubernetes/api/coordination_v1beta1_api.rb +775 -0
  33. data/lib/kubernetes/api/core_api.rb +77 -0
  34. data/lib/kubernetes/api/core_v1_api.rb +16817 -0
  35. data/lib/kubernetes/api/custom_objects_api.rb +2665 -0
  36. data/lib/kubernetes/api/discovery_api.rb +77 -0
  37. data/lib/kubernetes/api/discovery_v1_api.rb +775 -0
  38. data/lib/kubernetes/api/events_api.rb +77 -0
  39. data/lib/kubernetes/api/events_v1_api.rb +775 -0
  40. data/lib/kubernetes/api/flowcontrol_apiserver_api.rb +77 -0
  41. data/lib/kubernetes/api/flowcontrol_apiserver_v1_api.rb +1667 -0
  42. data/lib/kubernetes/api/internal_apiserver_api.rb +77 -0
  43. data/lib/kubernetes/api/internal_apiserver_v1alpha1_api.rb +872 -0
  44. data/lib/kubernetes/api/logs_api.rb +130 -0
  45. data/lib/kubernetes/api/networking_api.rb +77 -0
  46. data/lib/kubernetes/api/networking_v1_api.rb +3649 -0
  47. data/lib/kubernetes/api/networking_v1beta1_api.rb +1440 -0
  48. data/lib/kubernetes/api/node_api.rb +77 -0
  49. data/lib/kubernetes/api/node_v1_api.rb +645 -0
  50. data/lib/kubernetes/api/openid_api.rb +77 -0
  51. data/lib/kubernetes/api/policy_api.rb +77 -0
  52. data/lib/kubernetes/api/policy_v1_api.rb +1020 -0
  53. data/lib/kubernetes/api/rbac_authorization_api.rb +77 -0
  54. data/lib/kubernetes/api/rbac_authorization_v1_api.rb +2609 -0
  55. data/lib/kubernetes/api/resource_api.rb +77 -0
  56. data/lib/kubernetes/api/resource_v1_api.rb +2854 -0
  57. data/lib/kubernetes/api/resource_v1alpha3_api.rb +872 -0
  58. data/lib/kubernetes/api/resource_v1beta1_api.rb +2854 -0
  59. data/lib/kubernetes/api/resource_v1beta2_api.rb +2854 -0
  60. data/lib/kubernetes/api/scheduling_api.rb +77 -0
  61. data/lib/kubernetes/api/scheduling_v1_api.rb +645 -0
  62. data/lib/kubernetes/api/scheduling_v1alpha1_api.rb +775 -0
  63. data/lib/kubernetes/api/storage_api.rb +77 -0
  64. data/lib/kubernetes/api/storage_v1_api.rb +3842 -0
  65. data/lib/kubernetes/api/storage_v1beta1_api.rb +645 -0
  66. data/lib/kubernetes/api/storagemigration_api.rb +77 -0
  67. data/lib/kubernetes/api/storagemigration_v1beta1_api.rb +872 -0
  68. data/lib/kubernetes/api/version_api.rb +77 -0
  69. data/lib/kubernetes/api/well_known_api.rb +77 -0
  70. data/lib/kubernetes/api_client.rb +390 -0
  71. data/lib/kubernetes/api_error.rb +57 -0
  72. data/lib/kubernetes/config/error.rb +17 -0
  73. data/lib/kubernetes/config/incluster_config.rb +106 -0
  74. data/lib/kubernetes/config/kube_config.rb +171 -0
  75. data/lib/kubernetes/configuration.rb +277 -0
  76. data/lib/kubernetes/loader.rb +4 -0
  77. data/lib/kubernetes/models/admissionregistration_v1_service_reference.rb +260 -0
  78. data/lib/kubernetes/models/admissionregistration_v1_webhook_client_config.rb +256 -0
  79. data/lib/kubernetes/models/apiextensions_v1_service_reference.rb +260 -0
  80. data/lib/kubernetes/models/apiextensions_v1_webhook_client_config.rb +256 -0
  81. data/lib/kubernetes/models/apiregistration_v1_service_reference.rb +240 -0
  82. data/lib/kubernetes/models/authentication_v1_token_request.rb +262 -0
  83. data/lib/kubernetes/models/core_v1_endpoint_port.rb +255 -0
  84. data/lib/kubernetes/models/core_v1_event.rb +385 -0
  85. data/lib/kubernetes/models/core_v1_event_list.rb +256 -0
  86. data/lib/kubernetes/models/core_v1_event_series.rb +230 -0
  87. data/lib/kubernetes/models/core_v1_resource_claim.rb +235 -0
  88. data/lib/kubernetes/models/discovery_v1_endpoint_port.rb +250 -0
  89. data/lib/kubernetes/models/events_v1_event.rb +380 -0
  90. data/lib/kubernetes/models/events_v1_event_list.rb +256 -0
  91. data/lib/kubernetes/models/events_v1_event_series.rb +240 -0
  92. data/lib/kubernetes/models/flowcontrol_v1_subject.rb +252 -0
  93. data/lib/kubernetes/models/rbac_v1_subject.rb +260 -0
  94. data/lib/kubernetes/models/resource_v1_resource_claim.rb +262 -0
  95. data/lib/kubernetes/models/storage_v1_token_request.rb +235 -0
  96. data/lib/kubernetes/models/v1_affinity.rb +237 -0
  97. data/lib/kubernetes/models/v1_aggregation_rule.rb +222 -0
  98. data/lib/kubernetes/models/v1_allocated_device_status.rb +296 -0
  99. data/lib/kubernetes/models/v1_allocation_result.rb +238 -0
  100. data/lib/kubernetes/models/v1_api_group.rb +283 -0
  101. data/lib/kubernetes/models/v1_api_group_list.rb +247 -0
  102. data/lib/kubernetes/models/v1_api_resource.rb +341 -0
  103. data/lib/kubernetes/models/v1_api_resource_list.rb +262 -0
  104. data/lib/kubernetes/models/v1_api_service.rb +257 -0
  105. data/lib/kubernetes/models/v1_api_service_condition.rb +270 -0
  106. data/lib/kubernetes/models/v1_api_service_list.rb +256 -0
  107. data/lib/kubernetes/models/v1_api_service_spec.rb +306 -0
  108. data/lib/kubernetes/models/v1_api_service_status.rb +222 -0
  109. data/lib/kubernetes/models/v1_api_versions.rb +264 -0
  110. data/lib/kubernetes/models/v1_app_armor_profile.rb +235 -0
  111. data/lib/kubernetes/models/v1_attached_volume.rb +240 -0
  112. data/lib/kubernetes/models/v1_audit_annotation.rb +240 -0
  113. data/lib/kubernetes/models/v1_aws_elastic_block_store_volume_source.rb +255 -0
  114. data/lib/kubernetes/models/v1_azure_disk_volume_source.rb +280 -0
  115. data/lib/kubernetes/models/v1_azure_file_persistent_volume_source.rb +260 -0
  116. data/lib/kubernetes/models/v1_azure_file_volume_source.rb +250 -0
  117. data/lib/kubernetes/models/v1_binding.rb +253 -0
  118. data/lib/kubernetes/models/v1_bound_object_reference.rb +250 -0
  119. data/lib/kubernetes/models/v1_capabilities.rb +234 -0
  120. data/lib/kubernetes/models/v1_capacity_request_policy.rb +241 -0
  121. data/lib/kubernetes/models/v1_capacity_request_policy_range.rb +245 -0
  122. data/lib/kubernetes/models/v1_capacity_requirements.rb +222 -0
  123. data/lib/kubernetes/models/v1_cel_device_selector.rb +225 -0
  124. data/lib/kubernetes/models/v1_ceph_fs_persistent_volume_source.rb +276 -0
  125. data/lib/kubernetes/models/v1_ceph_fs_volume_source.rb +276 -0
  126. data/lib/kubernetes/models/v1_certificate_signing_request.rb +262 -0
  127. data/lib/kubernetes/models/v1_certificate_signing_request_condition.rb +280 -0
  128. data/lib/kubernetes/models/v1_certificate_signing_request_list.rb +256 -0
  129. data/lib/kubernetes/models/v1_certificate_signing_request_spec.rb +327 -0
  130. data/lib/kubernetes/models/v1_certificate_signing_request_status.rb +249 -0
  131. data/lib/kubernetes/models/v1_cinder_persistent_volume_source.rb +254 -0
  132. data/lib/kubernetes/models/v1_cinder_volume_source.rb +254 -0
  133. data/lib/kubernetes/models/v1_client_ip_config.rb +220 -0
  134. data/lib/kubernetes/models/v1_cluster_role.rb +260 -0
  135. data/lib/kubernetes/models/v1_cluster_role_binding.rb +265 -0
  136. data/lib/kubernetes/models/v1_cluster_role_binding_list.rb +256 -0
  137. data/lib/kubernetes/models/v1_cluster_role_list.rb +256 -0
  138. data/lib/kubernetes/models/v1_cluster_trust_bundle_projection.rb +264 -0
  139. data/lib/kubernetes/models/v1_component_condition.rb +260 -0
  140. data/lib/kubernetes/models/v1_component_status.rb +251 -0
  141. data/lib/kubernetes/models/v1_component_status_list.rb +256 -0
  142. data/lib/kubernetes/models/v1_condition.rb +295 -0
  143. data/lib/kubernetes/models/v1_config_map.rb +273 -0
  144. data/lib/kubernetes/models/v1_config_map_env_source.rb +230 -0
  145. data/lib/kubernetes/models/v1_config_map_key_selector.rb +245 -0
  146. data/lib/kubernetes/models/v1_config_map_list.rb +256 -0
  147. data/lib/kubernetes/models/v1_config_map_node_config_source.rb +275 -0
  148. data/lib/kubernetes/models/v1_config_map_projection.rb +242 -0
  149. data/lib/kubernetes/models/v1_config_map_volume_source.rb +252 -0
  150. data/lib/kubernetes/models/v1_container.rb +477 -0
  151. data/lib/kubernetes/models/v1_container_extended_resource_request.rb +255 -0
  152. data/lib/kubernetes/models/v1_container_image.rb +232 -0
  153. data/lib/kubernetes/models/v1_container_port.rb +265 -0
  154. data/lib/kubernetes/models/v1_container_resize_policy.rb +240 -0
  155. data/lib/kubernetes/models/v1_container_restart_rule.rb +234 -0
  156. data/lib/kubernetes/models/v1_container_restart_rule_on_exit_codes.rb +237 -0
  157. data/lib/kubernetes/models/v1_container_state.rb +237 -0
  158. data/lib/kubernetes/models/v1_container_state_running.rb +220 -0
  159. data/lib/kubernetes/models/v1_container_state_terminated.rb +285 -0
  160. data/lib/kubernetes/models/v1_container_state_waiting.rb +230 -0
  161. data/lib/kubernetes/models/v1_container_status.rb +387 -0
  162. data/lib/kubernetes/models/v1_container_user.rb +219 -0
  163. data/lib/kubernetes/models/v1_controller_revision.rb +264 -0
  164. data/lib/kubernetes/models/v1_controller_revision_list.rb +256 -0
  165. data/lib/kubernetes/models/v1_counter.rb +225 -0
  166. data/lib/kubernetes/models/v1_counter_set.rb +242 -0
  167. data/lib/kubernetes/models/v1_cron_job.rb +257 -0
  168. data/lib/kubernetes/models/v1_cron_job_list.rb +256 -0
  169. data/lib/kubernetes/models/v1_cron_job_spec.rb +299 -0
  170. data/lib/kubernetes/models/v1_cron_job_status.rb +242 -0
  171. data/lib/kubernetes/models/v1_cross_version_object_reference.rb +250 -0
  172. data/lib/kubernetes/models/v1_csi_driver.rb +253 -0
  173. data/lib/kubernetes/models/v1_csi_driver_list.rb +256 -0
  174. data/lib/kubernetes/models/v1_csi_driver_spec.rb +314 -0
  175. data/lib/kubernetes/models/v1_csi_node.rb +253 -0
  176. data/lib/kubernetes/models/v1_csi_node_driver.rb +261 -0
  177. data/lib/kubernetes/models/v1_csi_node_list.rb +256 -0
  178. data/lib/kubernetes/models/v1_csi_node_spec.rb +227 -0
  179. data/lib/kubernetes/models/v1_csi_persistent_volume_source.rb +317 -0
  180. data/lib/kubernetes/models/v1_csi_storage_capacity.rb +283 -0
  181. data/lib/kubernetes/models/v1_csi_storage_capacity_list.rb +256 -0
  182. data/lib/kubernetes/models/v1_csi_volume_source.rb +266 -0
  183. data/lib/kubernetes/models/v1_custom_resource_column_definition.rb +285 -0
  184. data/lib/kubernetes/models/v1_custom_resource_conversion.rb +234 -0
  185. data/lib/kubernetes/models/v1_custom_resource_definition.rb +262 -0
  186. data/lib/kubernetes/models/v1_custom_resource_definition_condition.rb +280 -0
  187. data/lib/kubernetes/models/v1_custom_resource_definition_list.rb +256 -0
  188. data/lib/kubernetes/models/v1_custom_resource_definition_names.rb +284 -0
  189. data/lib/kubernetes/models/v1_custom_resource_definition_spec.rb +290 -0
  190. data/lib/kubernetes/models/v1_custom_resource_definition_status.rb +253 -0
  191. data/lib/kubernetes/models/v1_custom_resource_definition_version.rb +317 -0
  192. data/lib/kubernetes/models/v1_custom_resource_subresource_scale.rb +250 -0
  193. data/lib/kubernetes/models/v1_custom_resource_subresources.rb +229 -0
  194. data/lib/kubernetes/models/v1_custom_resource_validation.rb +219 -0
  195. data/lib/kubernetes/models/v1_daemon_endpoint.rb +225 -0
  196. data/lib/kubernetes/models/v1_daemon_set.rb +257 -0
  197. data/lib/kubernetes/models/v1_daemon_set_condition.rb +270 -0
  198. data/lib/kubernetes/models/v1_daemon_set_list.rb +256 -0
  199. data/lib/kubernetes/models/v1_daemon_set_spec.rb +267 -0
  200. data/lib/kubernetes/models/v1_daemon_set_status.rb +332 -0
  201. data/lib/kubernetes/models/v1_daemon_set_update_strategy.rb +229 -0
  202. data/lib/kubernetes/models/v1_delete_options.rb +291 -0
  203. data/lib/kubernetes/models/v1_deployment.rb +257 -0
  204. data/lib/kubernetes/models/v1_deployment_condition.rb +280 -0
  205. data/lib/kubernetes/models/v1_deployment_list.rb +256 -0
  206. data/lib/kubernetes/models/v1_deployment_spec.rb +297 -0
  207. data/lib/kubernetes/models/v1_deployment_status.rb +302 -0
  208. data/lib/kubernetes/models/v1_deployment_strategy.rb +229 -0
  209. data/lib/kubernetes/models/v1_device.rb +346 -0
  210. data/lib/kubernetes/models/v1_device_allocation_configuration.rb +246 -0
  211. data/lib/kubernetes/models/v1_device_allocation_result.rb +234 -0
  212. data/lib/kubernetes/models/v1_device_attribute.rb +250 -0
  213. data/lib/kubernetes/models/v1_device_capacity.rb +234 -0
  214. data/lib/kubernetes/models/v1_device_claim.rb +246 -0
  215. data/lib/kubernetes/models/v1_device_claim_configuration.rb +231 -0
  216. data/lib/kubernetes/models/v1_device_class.rb +253 -0
  217. data/lib/kubernetes/models/v1_device_class_configuration.rb +219 -0
  218. data/lib/kubernetes/models/v1_device_class_list.rb +256 -0
  219. data/lib/kubernetes/models/v1_device_class_spec.rb +244 -0
  220. data/lib/kubernetes/models/v1_device_constraint.rb +242 -0
  221. data/lib/kubernetes/models/v1_device_counter_consumption.rb +242 -0
  222. data/lib/kubernetes/models/v1_device_request.rb +246 -0
  223. data/lib/kubernetes/models/v1_device_request_allocation_result.rb +338 -0
  224. data/lib/kubernetes/models/v1_device_selector.rb +219 -0
  225. data/lib/kubernetes/models/v1_device_sub_request.rb +293 -0
  226. data/lib/kubernetes/models/v1_device_taint.rb +260 -0
  227. data/lib/kubernetes/models/v1_device_toleration.rb +260 -0
  228. data/lib/kubernetes/models/v1_downward_api_projection.rb +222 -0
  229. data/lib/kubernetes/models/v1_downward_api_volume_file.rb +253 -0
  230. data/lib/kubernetes/models/v1_downward_api_volume_source.rb +232 -0
  231. data/lib/kubernetes/models/v1_empty_dir_volume_source.rb +230 -0
  232. data/lib/kubernetes/models/v1_endpoint.rb +296 -0
  233. data/lib/kubernetes/models/v1_endpoint_address.rb +254 -0
  234. data/lib/kubernetes/models/v1_endpoint_conditions.rb +240 -0
  235. data/lib/kubernetes/models/v1_endpoint_hints.rb +234 -0
  236. data/lib/kubernetes/models/v1_endpoint_slice.rb +283 -0
  237. data/lib/kubernetes/models/v1_endpoint_slice_list.rb +256 -0
  238. data/lib/kubernetes/models/v1_endpoint_subset.rb +246 -0
  239. data/lib/kubernetes/models/v1_endpoints.rb +251 -0
  240. data/lib/kubernetes/models/v1_endpoints_list.rb +256 -0
  241. data/lib/kubernetes/models/v1_env_from_source.rb +238 -0
  242. data/lib/kubernetes/models/v1_env_var.rb +244 -0
  243. data/lib/kubernetes/models/v1_env_var_source.rb +255 -0
  244. data/lib/kubernetes/models/v1_ephemeral_container.rb +487 -0
  245. data/lib/kubernetes/models/v1_ephemeral_volume_source.rb +219 -0
  246. data/lib/kubernetes/models/v1_event_source.rb +230 -0
  247. data/lib/kubernetes/models/v1_eviction.rb +248 -0
  248. data/lib/kubernetes/models/v1_exact_device_request.rb +288 -0
  249. data/lib/kubernetes/models/v1_exec_action.rb +222 -0
  250. data/lib/kubernetes/models/v1_exempt_priority_level_configuration.rb +230 -0
  251. data/lib/kubernetes/models/v1_expression_warning.rb +240 -0
  252. data/lib/kubernetes/models/v1_external_documentation.rb +228 -0
  253. data/lib/kubernetes/models/v1_fc_volume_source.rb +264 -0
  254. data/lib/kubernetes/models/v1_field_selector_attributes.rb +232 -0
  255. data/lib/kubernetes/models/v1_field_selector_requirement.rb +252 -0
  256. data/lib/kubernetes/models/v1_file_key_selector.rb +265 -0
  257. data/lib/kubernetes/models/v1_flex_persistent_volume_source.rb +266 -0
  258. data/lib/kubernetes/models/v1_flex_volume_source.rb +266 -0
  259. data/lib/kubernetes/models/v1_flocker_volume_source.rb +230 -0
  260. data/lib/kubernetes/models/v1_flow_distinguisher_method.rb +225 -0
  261. data/lib/kubernetes/models/v1_flow_schema.rb +257 -0
  262. data/lib/kubernetes/models/v1_flow_schema_condition.rb +260 -0
  263. data/lib/kubernetes/models/v1_flow_schema_list.rb +256 -0
  264. data/lib/kubernetes/models/v1_flow_schema_spec.rb +255 -0
  265. data/lib/kubernetes/models/v1_flow_schema_status.rb +222 -0
  266. data/lib/kubernetes/models/v1_for_node.rb +225 -0
  267. data/lib/kubernetes/models/v1_for_zone.rb +225 -0
  268. data/lib/kubernetes/models/v1_gce_persistent_disk_volume_source.rb +255 -0
  269. data/lib/kubernetes/models/v1_git_repo_volume_source.rb +245 -0
  270. data/lib/kubernetes/models/v1_glusterfs_persistent_volume_source.rb +260 -0
  271. data/lib/kubernetes/models/v1_glusterfs_volume_source.rb +250 -0
  272. data/lib/kubernetes/models/v1_group_resource.rb +238 -0
  273. data/lib/kubernetes/models/v1_group_subject.rb +225 -0
  274. data/lib/kubernetes/models/v1_group_version_for_discovery.rb +240 -0
  275. data/lib/kubernetes/models/v1_grpc_action.rb +235 -0
  276. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler.rb +257 -0
  277. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_list.rb +256 -0
  278. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_spec.rb +259 -0
  279. data/lib/kubernetes/models/v1_horizontal_pod_autoscaler_status.rb +270 -0
  280. data/lib/kubernetes/models/v1_host_alias.rb +237 -0
  281. data/lib/kubernetes/models/v1_host_ip.rb +225 -0
  282. data/lib/kubernetes/models/v1_host_path_volume_source.rb +235 -0
  283. data/lib/kubernetes/models/v1_http_get_action.rb +267 -0
  284. data/lib/kubernetes/models/v1_http_header.rb +240 -0
  285. data/lib/kubernetes/models/v1_http_ingress_path.rb +249 -0
  286. data/lib/kubernetes/models/v1_http_ingress_rule_value.rb +227 -0
  287. data/lib/kubernetes/models/v1_image_volume_source.rb +230 -0
  288. data/lib/kubernetes/models/v1_ingress.rb +257 -0
  289. data/lib/kubernetes/models/v1_ingress_backend.rb +228 -0
  290. data/lib/kubernetes/models/v1_ingress_class.rb +248 -0
  291. data/lib/kubernetes/models/v1_ingress_class_list.rb +256 -0
  292. data/lib/kubernetes/models/v1_ingress_class_parameters_reference.rb +270 -0
  293. data/lib/kubernetes/models/v1_ingress_class_spec.rb +229 -0
  294. data/lib/kubernetes/models/v1_ingress_list.rb +256 -0
  295. data/lib/kubernetes/models/v1_ingress_load_balancer_ingress.rb +242 -0
  296. data/lib/kubernetes/models/v1_ingress_load_balancer_status.rb +222 -0
  297. data/lib/kubernetes/models/v1_ingress_port_status.rb +250 -0
  298. data/lib/kubernetes/models/v1_ingress_rule.rb +229 -0
  299. data/lib/kubernetes/models/v1_ingress_service_backend.rb +234 -0
  300. data/lib/kubernetes/models/v1_ingress_spec.rb +253 -0
  301. data/lib/kubernetes/models/v1_ingress_status.rb +219 -0
  302. data/lib/kubernetes/models/v1_ingress_tls.rb +232 -0
  303. data/lib/kubernetes/models/v1_ip_address.rb +248 -0
  304. data/lib/kubernetes/models/v1_ip_address_list.rb +256 -0
  305. data/lib/kubernetes/models/v1_ip_address_spec.rb +224 -0
  306. data/lib/kubernetes/models/v1_ip_block.rb +237 -0
  307. data/lib/kubernetes/models/v1_iscsi_persistent_volume_source.rb +336 -0
  308. data/lib/kubernetes/models/v1_iscsi_volume_source.rb +336 -0
  309. data/lib/kubernetes/models/v1_job.rb +257 -0
  310. data/lib/kubernetes/models/v1_job_condition.rb +280 -0
  311. data/lib/kubernetes/models/v1_job_list.rb +256 -0
  312. data/lib/kubernetes/models/v1_job_spec.rb +371 -0
  313. data/lib/kubernetes/models/v1_job_status.rb +321 -0
  314. data/lib/kubernetes/models/v1_job_template_spec.rb +228 -0
  315. data/lib/kubernetes/models/v1_json_schema_props.rb +641 -0
  316. data/lib/kubernetes/models/v1_key_to_path.rb +250 -0
  317. data/lib/kubernetes/models/v1_label_selector.rb +234 -0
  318. data/lib/kubernetes/models/v1_label_selector_attributes.rb +232 -0
  319. data/lib/kubernetes/models/v1_label_selector_requirement.rb +252 -0
  320. data/lib/kubernetes/models/v1_lease.rb +248 -0
  321. data/lib/kubernetes/models/v1_lease_list.rb +256 -0
  322. data/lib/kubernetes/models/v1_lease_spec.rb +280 -0
  323. data/lib/kubernetes/models/v1_lifecycle.rb +238 -0
  324. data/lib/kubernetes/models/v1_lifecycle_handler.rb +246 -0
  325. data/lib/kubernetes/models/v1_limit_range.rb +248 -0
  326. data/lib/kubernetes/models/v1_limit_range_item.rb +285 -0
  327. data/lib/kubernetes/models/v1_limit_range_list.rb +256 -0
  328. data/lib/kubernetes/models/v1_limit_range_spec.rb +227 -0
  329. data/lib/kubernetes/models/v1_limit_response.rb +234 -0
  330. data/lib/kubernetes/models/v1_limited_priority_level_configuration.rb +249 -0
  331. data/lib/kubernetes/models/v1_linux_container_user.rb +252 -0
  332. data/lib/kubernetes/models/v1_list_meta.rb +250 -0
  333. data/lib/kubernetes/models/v1_load_balancer_ingress.rb +252 -0
  334. data/lib/kubernetes/models/v1_load_balancer_status.rb +222 -0
  335. data/lib/kubernetes/models/v1_local_object_reference.rb +220 -0
  336. data/lib/kubernetes/models/v1_local_subject_access_review.rb +262 -0
  337. data/lib/kubernetes/models/v1_local_volume_source.rb +235 -0
  338. data/lib/kubernetes/models/v1_managed_fields_entry.rb +280 -0
  339. data/lib/kubernetes/models/v1_match_condition.rb +240 -0
  340. data/lib/kubernetes/models/v1_match_resources.rb +262 -0
  341. data/lib/kubernetes/models/v1_modify_volume_status.rb +235 -0
  342. data/lib/kubernetes/models/v1_mutating_webhook.rb +353 -0
  343. data/lib/kubernetes/models/v1_mutating_webhook_configuration.rb +251 -0
  344. data/lib/kubernetes/models/v1_mutating_webhook_configuration_list.rb +256 -0
  345. data/lib/kubernetes/models/v1_named_rule_with_operations.rb +280 -0
  346. data/lib/kubernetes/models/v1_namespace.rb +257 -0
  347. data/lib/kubernetes/models/v1_namespace_condition.rb +270 -0
  348. data/lib/kubernetes/models/v1_namespace_list.rb +256 -0
  349. data/lib/kubernetes/models/v1_namespace_spec.rb +222 -0
  350. data/lib/kubernetes/models/v1_namespace_status.rb +232 -0
  351. data/lib/kubernetes/models/v1_network_device_data.rb +242 -0
  352. data/lib/kubernetes/models/v1_network_policy.rb +248 -0
  353. data/lib/kubernetes/models/v1_network_policy_egress_rule.rb +234 -0
  354. data/lib/kubernetes/models/v1_network_policy_ingress_rule.rb +234 -0
  355. data/lib/kubernetes/models/v1_network_policy_list.rb +256 -0
  356. data/lib/kubernetes/models/v1_network_policy_peer.rb +237 -0
  357. data/lib/kubernetes/models/v1_network_policy_port.rb +240 -0
  358. data/lib/kubernetes/models/v1_network_policy_spec.rb +255 -0
  359. data/lib/kubernetes/models/v1_nfs_volume_source.rb +250 -0
  360. data/lib/kubernetes/models/v1_node.rb +257 -0
  361. data/lib/kubernetes/models/v1_node_address.rb +240 -0
  362. data/lib/kubernetes/models/v1_node_affinity.rb +231 -0
  363. data/lib/kubernetes/models/v1_node_condition.rb +280 -0
  364. data/lib/kubernetes/models/v1_node_config_source.rb +219 -0
  365. data/lib/kubernetes/models/v1_node_config_status.rb +247 -0
  366. data/lib/kubernetes/models/v1_node_daemon_endpoints.rb +219 -0
  367. data/lib/kubernetes/models/v1_node_features.rb +220 -0
  368. data/lib/kubernetes/models/v1_node_list.rb +256 -0
  369. data/lib/kubernetes/models/v1_node_runtime_handler.rb +229 -0
  370. data/lib/kubernetes/models/v1_node_runtime_handler_features.rb +230 -0
  371. data/lib/kubernetes/models/v1_node_selector.rb +227 -0
  372. data/lib/kubernetes/models/v1_node_selector_requirement.rb +252 -0
  373. data/lib/kubernetes/models/v1_node_selector_term.rb +234 -0
  374. data/lib/kubernetes/models/v1_node_spec.rb +283 -0
  375. data/lib/kubernetes/models/v1_node_status.rb +364 -0
  376. data/lib/kubernetes/models/v1_node_swap_status.rb +220 -0
  377. data/lib/kubernetes/models/v1_node_system_info.rb +369 -0
  378. data/lib/kubernetes/models/v1_non_resource_attributes.rb +230 -0
  379. data/lib/kubernetes/models/v1_non_resource_policy_rule.rb +244 -0
  380. data/lib/kubernetes/models/v1_non_resource_rule.rb +239 -0
  381. data/lib/kubernetes/models/v1_object_field_selector.rb +235 -0
  382. data/lib/kubernetes/models/v1_object_meta.rb +370 -0
  383. data/lib/kubernetes/models/v1_object_reference.rb +280 -0
  384. data/lib/kubernetes/models/v1_opaque_device_configuration.rb +240 -0
  385. data/lib/kubernetes/models/v1_overhead.rb +222 -0
  386. data/lib/kubernetes/models/v1_owner_reference.rb +290 -0
  387. data/lib/kubernetes/models/v1_param_kind.rb +230 -0
  388. data/lib/kubernetes/models/v1_param_ref.rb +249 -0
  389. data/lib/kubernetes/models/v1_parent_reference.rb +260 -0
  390. data/lib/kubernetes/models/v1_persistent_volume.rb +257 -0
  391. data/lib/kubernetes/models/v1_persistent_volume_claim.rb +257 -0
  392. data/lib/kubernetes/models/v1_persistent_volume_claim_condition.rb +280 -0
  393. data/lib/kubernetes/models/v1_persistent_volume_claim_list.rb +256 -0
  394. data/lib/kubernetes/models/v1_persistent_volume_claim_spec.rb +298 -0
  395. data/lib/kubernetes/models/v1_persistent_volume_claim_status.rb +299 -0
  396. data/lib/kubernetes/models/v1_persistent_volume_claim_template.rb +233 -0
  397. data/lib/kubernetes/models/v1_persistent_volume_claim_volume_source.rb +235 -0
  398. data/lib/kubernetes/models/v1_persistent_volume_list.rb +256 -0
  399. data/lib/kubernetes/models/v1_persistent_volume_spec.rb +502 -0
  400. data/lib/kubernetes/models/v1_persistent_volume_status.rb +250 -0
  401. data/lib/kubernetes/models/v1_photon_persistent_disk_volume_source.rb +235 -0
  402. data/lib/kubernetes/models/v1_pod.rb +257 -0
  403. data/lib/kubernetes/models/v1_pod_affinity.rb +234 -0
  404. data/lib/kubernetes/models/v1_pod_affinity_term.rb +279 -0
  405. data/lib/kubernetes/models/v1_pod_anti_affinity.rb +234 -0
  406. data/lib/kubernetes/models/v1_pod_certificate_projection.rb +292 -0
  407. data/lib/kubernetes/models/v1_pod_condition.rb +290 -0
  408. data/lib/kubernetes/models/v1_pod_disruption_budget.rb +257 -0
  409. data/lib/kubernetes/models/v1_pod_disruption_budget_list.rb +256 -0
  410. data/lib/kubernetes/models/v1_pod_disruption_budget_spec.rb +249 -0
  411. data/lib/kubernetes/models/v1_pod_disruption_budget_status.rb +304 -0
  412. data/lib/kubernetes/models/v1_pod_dns_config.rb +246 -0
  413. data/lib/kubernetes/models/v1_pod_dns_config_option.rb +230 -0
  414. data/lib/kubernetes/models/v1_pod_extended_resource_claim_status.rb +242 -0
  415. data/lib/kubernetes/models/v1_pod_failure_policy.rb +227 -0
  416. data/lib/kubernetes/models/v1_pod_failure_policy_on_exit_codes_requirement.rb +252 -0
  417. data/lib/kubernetes/models/v1_pod_failure_policy_on_pod_conditions_pattern.rb +235 -0
  418. data/lib/kubernetes/models/v1_pod_failure_policy_rule.rb +246 -0
  419. data/lib/kubernetes/models/v1_pod_ip.rb +225 -0
  420. data/lib/kubernetes/models/v1_pod_list.rb +256 -0
  421. data/lib/kubernetes/models/v1_pod_os.rb +225 -0
  422. data/lib/kubernetes/models/v1_pod_readiness_gate.rb +225 -0
  423. data/lib/kubernetes/models/v1_pod_resource_claim.rb +245 -0
  424. data/lib/kubernetes/models/v1_pod_resource_claim_status.rb +235 -0
  425. data/lib/kubernetes/models/v1_pod_scheduling_gate.rb +225 -0
  426. data/lib/kubernetes/models/v1_pod_security_context.rb +340 -0
  427. data/lib/kubernetes/models/v1_pod_spec.rb +655 -0
  428. data/lib/kubernetes/models/v1_pod_status.rb +424 -0
  429. data/lib/kubernetes/models/v1_pod_template.rb +248 -0
  430. data/lib/kubernetes/models/v1_pod_template_list.rb +256 -0
  431. data/lib/kubernetes/models/v1_pod_template_spec.rb +228 -0
  432. data/lib/kubernetes/models/v1_policy_rule.rb +275 -0
  433. data/lib/kubernetes/models/v1_policy_rules_with_subjects.rb +251 -0
  434. data/lib/kubernetes/models/v1_port_status.rb +250 -0
  435. data/lib/kubernetes/models/v1_portworx_volume_source.rb +245 -0
  436. data/lib/kubernetes/models/v1_preconditions.rb +230 -0
  437. data/lib/kubernetes/models/v1_preferred_scheduling_term.rb +239 -0
  438. data/lib/kubernetes/models/v1_priority_class.rb +284 -0
  439. data/lib/kubernetes/models/v1_priority_class_list.rb +256 -0
  440. data/lib/kubernetes/models/v1_priority_level_configuration.rb +257 -0
  441. data/lib/kubernetes/models/v1_priority_level_configuration_condition.rb +260 -0
  442. data/lib/kubernetes/models/v1_priority_level_configuration_list.rb +256 -0
  443. data/lib/kubernetes/models/v1_priority_level_configuration_reference.rb +225 -0
  444. data/lib/kubernetes/models/v1_priority_level_configuration_spec.rb +243 -0
  445. data/lib/kubernetes/models/v1_priority_level_configuration_status.rb +222 -0
  446. data/lib/kubernetes/models/v1_probe.rb +306 -0
  447. data/lib/kubernetes/models/v1_projected_volume_source.rb +232 -0
  448. data/lib/kubernetes/models/v1_queuing_configuration.rb +240 -0
  449. data/lib/kubernetes/models/v1_quobyte_volume_source.rb +280 -0
  450. data/lib/kubernetes/models/v1_rbd_persistent_volume_source.rb +301 -0
  451. data/lib/kubernetes/models/v1_rbd_volume_source.rb +301 -0
  452. data/lib/kubernetes/models/v1_replica_set.rb +257 -0
  453. data/lib/kubernetes/models/v1_replica_set_condition.rb +270 -0
  454. data/lib/kubernetes/models/v1_replica_set_list.rb +256 -0
  455. data/lib/kubernetes/models/v1_replica_set_spec.rb +253 -0
  456. data/lib/kubernetes/models/v1_replica_set_status.rb +287 -0
  457. data/lib/kubernetes/models/v1_replication_controller.rb +257 -0
  458. data/lib/kubernetes/models/v1_replication_controller_condition.rb +270 -0
  459. data/lib/kubernetes/models/v1_replication_controller_list.rb +256 -0
  460. data/lib/kubernetes/models/v1_replication_controller_spec.rb +251 -0
  461. data/lib/kubernetes/models/v1_replication_controller_status.rb +277 -0
  462. data/lib/kubernetes/models/v1_resource_attributes.rb +298 -0
  463. data/lib/kubernetes/models/v1_resource_claim_consumer_reference.rb +265 -0
  464. data/lib/kubernetes/models/v1_resource_claim_list.rb +256 -0
  465. data/lib/kubernetes/models/v1_resource_claim_spec.rb +219 -0
  466. data/lib/kubernetes/models/v1_resource_claim_status.rb +243 -0
  467. data/lib/kubernetes/models/v1_resource_claim_template.rb +253 -0
  468. data/lib/kubernetes/models/v1_resource_claim_template_list.rb +256 -0
  469. data/lib/kubernetes/models/v1_resource_claim_template_spec.rb +233 -0
  470. data/lib/kubernetes/models/v1_resource_field_selector.rb +245 -0
  471. data/lib/kubernetes/models/v1_resource_health.rb +235 -0
  472. data/lib/kubernetes/models/v1_resource_policy_rule.rb +283 -0
  473. data/lib/kubernetes/models/v1_resource_pool.rb +255 -0
  474. data/lib/kubernetes/models/v1_resource_quota.rb +257 -0
  475. data/lib/kubernetes/models/v1_resource_quota_list.rb +256 -0
  476. data/lib/kubernetes/models/v1_resource_quota_spec.rb +243 -0
  477. data/lib/kubernetes/models/v1_resource_quota_status.rb +234 -0
  478. data/lib/kubernetes/models/v1_resource_requirements.rb +246 -0
  479. data/lib/kubernetes/models/v1_resource_rule.rb +263 -0
  480. data/lib/kubernetes/models/v1_resource_slice.rb +253 -0
  481. data/lib/kubernetes/models/v1_resource_slice_list.rb +256 -0
  482. data/lib/kubernetes/models/v1_resource_slice_spec.rb +302 -0
  483. data/lib/kubernetes/models/v1_resource_status.rb +237 -0
  484. data/lib/kubernetes/models/v1_role.rb +251 -0
  485. data/lib/kubernetes/models/v1_role_binding.rb +265 -0
  486. data/lib/kubernetes/models/v1_role_binding_list.rb +256 -0
  487. data/lib/kubernetes/models/v1_role_list.rb +256 -0
  488. data/lib/kubernetes/models/v1_role_ref.rb +255 -0
  489. data/lib/kubernetes/models/v1_rolling_update_daemon_set.rb +230 -0
  490. data/lib/kubernetes/models/v1_rolling_update_deployment.rb +230 -0
  491. data/lib/kubernetes/models/v1_rolling_update_stateful_set_strategy.rb +230 -0
  492. data/lib/kubernetes/models/v1_rule_with_operations.rb +268 -0
  493. data/lib/kubernetes/models/v1_runtime_class.rb +272 -0
  494. data/lib/kubernetes/models/v1_runtime_class_list.rb +256 -0
  495. data/lib/kubernetes/models/v1_scale.rb +257 -0
  496. data/lib/kubernetes/models/v1_scale_io_persistent_volume_source.rb +324 -0
  497. data/lib/kubernetes/models/v1_scale_io_volume_source.rb +324 -0
  498. data/lib/kubernetes/models/v1_scale_spec.rb +220 -0
  499. data/lib/kubernetes/models/v1_scale_status.rb +235 -0
  500. data/lib/kubernetes/models/v1_scheduling.rb +234 -0
  501. data/lib/kubernetes/models/v1_scope_selector.rb +222 -0
  502. data/lib/kubernetes/models/v1_scoped_resource_selector_requirement.rb +252 -0
  503. data/lib/kubernetes/models/v1_se_linux_options.rb +250 -0
  504. data/lib/kubernetes/models/v1_seccomp_profile.rb +235 -0
  505. data/lib/kubernetes/models/v1_secret.rb +283 -0
  506. data/lib/kubernetes/models/v1_secret_env_source.rb +230 -0
  507. data/lib/kubernetes/models/v1_secret_key_selector.rb +245 -0
  508. data/lib/kubernetes/models/v1_secret_list.rb +256 -0
  509. data/lib/kubernetes/models/v1_secret_projection.rb +242 -0
  510. data/lib/kubernetes/models/v1_secret_reference.rb +230 -0
  511. data/lib/kubernetes/models/v1_secret_volume_source.rb +252 -0
  512. data/lib/kubernetes/models/v1_security_context.rb +325 -0
  513. data/lib/kubernetes/models/v1_selectable_field.rb +225 -0
  514. data/lib/kubernetes/models/v1_self_subject_access_review.rb +262 -0
  515. data/lib/kubernetes/models/v1_self_subject_access_review_spec.rb +228 -0
  516. data/lib/kubernetes/models/v1_self_subject_review.rb +248 -0
  517. data/lib/kubernetes/models/v1_self_subject_review_status.rb +219 -0
  518. data/lib/kubernetes/models/v1_self_subject_rules_review.rb +262 -0
  519. data/lib/kubernetes/models/v1_self_subject_rules_review_spec.rb +220 -0
  520. data/lib/kubernetes/models/v1_server_address_by_client_cidr.rb +240 -0
  521. data/lib/kubernetes/models/v1_service.rb +257 -0
  522. data/lib/kubernetes/models/v1_service_account.rb +273 -0
  523. data/lib/kubernetes/models/v1_service_account_list.rb +256 -0
  524. data/lib/kubernetes/models/v1_service_account_subject.rb +240 -0
  525. data/lib/kubernetes/models/v1_service_account_token_projection.rb +245 -0
  526. data/lib/kubernetes/models/v1_service_backend_port.rb +230 -0
  527. data/lib/kubernetes/models/v1_service_cidr.rb +257 -0
  528. data/lib/kubernetes/models/v1_service_cidr_list.rb +256 -0
  529. data/lib/kubernetes/models/v1_service_cidr_spec.rb +222 -0
  530. data/lib/kubernetes/models/v1_service_cidr_status.rb +222 -0
  531. data/lib/kubernetes/models/v1_service_list.rb +256 -0
  532. data/lib/kubernetes/models/v1_service_port.rb +275 -0
  533. data/lib/kubernetes/models/v1_service_spec.rb +421 -0
  534. data/lib/kubernetes/models/v1_service_status.rb +231 -0
  535. data/lib/kubernetes/models/v1_session_affinity_config.rb +219 -0
  536. data/lib/kubernetes/models/v1_sleep_action.rb +225 -0
  537. data/lib/kubernetes/models/v1_stateful_set.rb +257 -0
  538. data/lib/kubernetes/models/v1_stateful_set_condition.rb +270 -0
  539. data/lib/kubernetes/models/v1_stateful_set_list.rb +256 -0
  540. data/lib/kubernetes/models/v1_stateful_set_ordinals.rb +220 -0
  541. data/lib/kubernetes/models/v1_stateful_set_persistent_volume_claim_retention_policy.rb +230 -0
  542. data/lib/kubernetes/models/v1_stateful_set_spec.rb +327 -0
  543. data/lib/kubernetes/models/v1_stateful_set_status.rb +317 -0
  544. data/lib/kubernetes/models/v1_stateful_set_update_strategy.rb +229 -0
  545. data/lib/kubernetes/models/v1_status.rb +288 -0
  546. data/lib/kubernetes/models/v1_status_cause.rb +240 -0
  547. data/lib/kubernetes/models/v1_status_details.rb +272 -0
  548. data/lib/kubernetes/models/v1_storage_class.rb +320 -0
  549. data/lib/kubernetes/models/v1_storage_class_list.rb +256 -0
  550. data/lib/kubernetes/models/v1_storage_os_persistent_volume_source.rb +259 -0
  551. data/lib/kubernetes/models/v1_storage_os_volume_source.rb +259 -0
  552. data/lib/kubernetes/models/v1_subject_access_review.rb +262 -0
  553. data/lib/kubernetes/models/v1_subject_access_review_spec.rb +272 -0
  554. data/lib/kubernetes/models/v1_subject_access_review_status.rb +255 -0
  555. data/lib/kubernetes/models/v1_subject_rules_review_status.rb +269 -0
  556. data/lib/kubernetes/models/v1_success_policy.rb +227 -0
  557. data/lib/kubernetes/models/v1_success_policy_rule.rb +230 -0
  558. data/lib/kubernetes/models/v1_sysctl.rb +240 -0
  559. data/lib/kubernetes/models/v1_taint.rb +260 -0
  560. data/lib/kubernetes/models/v1_tcp_socket_action.rb +235 -0
  561. data/lib/kubernetes/models/v1_token_request_spec.rb +246 -0
  562. data/lib/kubernetes/models/v1_token_request_status.rb +240 -0
  563. data/lib/kubernetes/models/v1_token_review.rb +262 -0
  564. data/lib/kubernetes/models/v1_token_review_spec.rb +232 -0
  565. data/lib/kubernetes/models/v1_token_review_status.rb +251 -0
  566. data/lib/kubernetes/models/v1_toleration.rb +260 -0
  567. data/lib/kubernetes/models/v1_topology_selector_label_requirement.rb +242 -0
  568. data/lib/kubernetes/models/v1_topology_selector_term.rb +222 -0
  569. data/lib/kubernetes/models/v1_topology_spread_constraint.rb +306 -0
  570. data/lib/kubernetes/models/v1_type_checking.rb +222 -0
  571. data/lib/kubernetes/models/v1_typed_local_object_reference.rb +250 -0
  572. data/lib/kubernetes/models/v1_typed_object_reference.rb +260 -0
  573. data/lib/kubernetes/models/v1_uncounted_terminated_pods.rb +234 -0
  574. data/lib/kubernetes/models/v1_user_info.rb +254 -0
  575. data/lib/kubernetes/models/v1_user_subject.rb +225 -0
  576. data/lib/kubernetes/models/v1_validating_admission_policy.rb +257 -0
  577. data/lib/kubernetes/models/v1_validating_admission_policy_binding.rb +248 -0
  578. data/lib/kubernetes/models/v1_validating_admission_policy_binding_list.rb +256 -0
  579. data/lib/kubernetes/models/v1_validating_admission_policy_binding_spec.rb +250 -0
  580. data/lib/kubernetes/models/v1_validating_admission_policy_list.rb +256 -0
  581. data/lib/kubernetes/models/v1_validating_admission_policy_spec.rb +286 -0
  582. data/lib/kubernetes/models/v1_validating_admission_policy_status.rb +241 -0
  583. data/lib/kubernetes/models/v1_validating_webhook.rb +343 -0
  584. data/lib/kubernetes/models/v1_validating_webhook_configuration.rb +251 -0
  585. data/lib/kubernetes/models/v1_validating_webhook_configuration_list.rb +256 -0
  586. data/lib/kubernetes/models/v1_validation.rb +255 -0
  587. data/lib/kubernetes/models/v1_validation_rule.rb +275 -0
  588. data/lib/kubernetes/models/v1_variable.rb +240 -0
  589. data/lib/kubernetes/models/v1_volume.rb +495 -0
  590. data/lib/kubernetes/models/v1_volume_attachment.rb +262 -0
  591. data/lib/kubernetes/models/v1_volume_attachment_list.rb +256 -0
  592. data/lib/kubernetes/models/v1_volume_attachment_source.rb +229 -0
  593. data/lib/kubernetes/models/v1_volume_attachment_spec.rb +254 -0
  594. data/lib/kubernetes/models/v1_volume_attachment_status.rb +255 -0
  595. data/lib/kubernetes/models/v1_volume_attributes_class.rb +266 -0
  596. data/lib/kubernetes/models/v1_volume_attributes_class_list.rb +256 -0
  597. data/lib/kubernetes/models/v1_volume_device.rb +240 -0
  598. data/lib/kubernetes/models/v1_volume_error.rb +240 -0
  599. data/lib/kubernetes/models/v1_volume_mount.rb +290 -0
  600. data/lib/kubernetes/models/v1_volume_mount_status.rb +260 -0
  601. data/lib/kubernetes/models/v1_volume_node_affinity.rb +219 -0
  602. data/lib/kubernetes/models/v1_volume_node_resources.rb +220 -0
  603. data/lib/kubernetes/models/v1_volume_projection.rb +264 -0
  604. data/lib/kubernetes/models/v1_volume_resource_requirements.rb +234 -0
  605. data/lib/kubernetes/models/v1_vsphere_virtual_disk_volume_source.rb +255 -0
  606. data/lib/kubernetes/models/v1_watch_event.rb +239 -0
  607. data/lib/kubernetes/models/v1_webhook_conversion.rb +236 -0
  608. data/lib/kubernetes/models/v1_weighted_pod_affinity_term.rb +239 -0
  609. data/lib/kubernetes/models/v1_windows_security_context_options.rb +250 -0
  610. data/lib/kubernetes/models/v1_workload_reference.rb +250 -0
  611. data/lib/kubernetes/models/v1alpha1_apply_configuration.rb +220 -0
  612. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle.rb +253 -0
  613. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_list.rb +256 -0
  614. data/lib/kubernetes/models/v1alpha1_cluster_trust_bundle_spec.rb +235 -0
  615. data/lib/kubernetes/models/v1alpha1_gang_scheduling_policy.rb +225 -0
  616. data/lib/kubernetes/models/v1alpha1_json_patch.rb +220 -0
  617. data/lib/kubernetes/models/v1alpha1_match_condition.rb +239 -0
  618. data/lib/kubernetes/models/v1alpha1_match_resources.rb +262 -0
  619. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy.rb +248 -0
  620. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding.rb +248 -0
  621. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_list.rb +256 -0
  622. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_binding_spec.rb +238 -0
  623. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_list.rb +256 -0
  624. data/lib/kubernetes/models/v1alpha1_mutating_admission_policy_spec.rb +284 -0
  625. data/lib/kubernetes/models/v1alpha1_mutation.rb +243 -0
  626. data/lib/kubernetes/models/v1alpha1_named_rule_with_operations.rb +280 -0
  627. data/lib/kubernetes/models/v1alpha1_param_kind.rb +230 -0
  628. data/lib/kubernetes/models/v1alpha1_param_ref.rb +249 -0
  629. data/lib/kubernetes/models/v1alpha1_pod_group.rb +239 -0
  630. data/lib/kubernetes/models/v1alpha1_pod_group_policy.rb +229 -0
  631. data/lib/kubernetes/models/v1alpha1_server_storage_version.rb +254 -0
  632. data/lib/kubernetes/models/v1alpha1_storage_version.rb +268 -0
  633. data/lib/kubernetes/models/v1alpha1_storage_version_condition.rb +290 -0
  634. data/lib/kubernetes/models/v1alpha1_storage_version_list.rb +256 -0
  635. data/lib/kubernetes/models/v1alpha1_storage_version_status.rb +244 -0
  636. data/lib/kubernetes/models/v1alpha1_typed_local_object_reference.rb +250 -0
  637. data/lib/kubernetes/models/v1alpha1_variable.rb +240 -0
  638. data/lib/kubernetes/models/v1alpha1_workload.rb +253 -0
  639. data/lib/kubernetes/models/v1alpha1_workload_list.rb +256 -0
  640. data/lib/kubernetes/models/v1alpha1_workload_spec.rb +236 -0
  641. data/lib/kubernetes/models/v1alpha2_lease_candidate.rb +248 -0
  642. data/lib/kubernetes/models/v1alpha2_lease_candidate_list.rb +256 -0
  643. data/lib/kubernetes/models/v1alpha2_lease_candidate_spec.rb +285 -0
  644. data/lib/kubernetes/models/v1alpha3_device_taint.rb +260 -0
  645. data/lib/kubernetes/models/v1alpha3_device_taint_rule.rb +262 -0
  646. data/lib/kubernetes/models/v1alpha3_device_taint_rule_list.rb +256 -0
  647. data/lib/kubernetes/models/v1alpha3_device_taint_rule_spec.rb +233 -0
  648. data/lib/kubernetes/models/v1alpha3_device_taint_rule_status.rb +222 -0
  649. data/lib/kubernetes/models/v1alpha3_device_taint_selector.rb +240 -0
  650. data/lib/kubernetes/models/v1beta1_allocated_device_status.rb +296 -0
  651. data/lib/kubernetes/models/v1beta1_allocation_result.rb +238 -0
  652. data/lib/kubernetes/models/v1beta1_apply_configuration.rb +220 -0
  653. data/lib/kubernetes/models/v1beta1_basic_device.rb +331 -0
  654. data/lib/kubernetes/models/v1beta1_capacity_request_policy.rb +241 -0
  655. data/lib/kubernetes/models/v1beta1_capacity_request_policy_range.rb +245 -0
  656. data/lib/kubernetes/models/v1beta1_capacity_requirements.rb +222 -0
  657. data/lib/kubernetes/models/v1beta1_cel_device_selector.rb +225 -0
  658. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle.rb +253 -0
  659. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_list.rb +256 -0
  660. data/lib/kubernetes/models/v1beta1_cluster_trust_bundle_spec.rb +235 -0
  661. data/lib/kubernetes/models/v1beta1_counter.rb +225 -0
  662. data/lib/kubernetes/models/v1beta1_counter_set.rb +242 -0
  663. data/lib/kubernetes/models/v1beta1_device.rb +234 -0
  664. data/lib/kubernetes/models/v1beta1_device_allocation_configuration.rb +246 -0
  665. data/lib/kubernetes/models/v1beta1_device_allocation_result.rb +234 -0
  666. data/lib/kubernetes/models/v1beta1_device_attribute.rb +250 -0
  667. data/lib/kubernetes/models/v1beta1_device_capacity.rb +234 -0
  668. data/lib/kubernetes/models/v1beta1_device_claim.rb +246 -0
  669. data/lib/kubernetes/models/v1beta1_device_claim_configuration.rb +231 -0
  670. data/lib/kubernetes/models/v1beta1_device_class.rb +253 -0
  671. data/lib/kubernetes/models/v1beta1_device_class_configuration.rb +219 -0
  672. data/lib/kubernetes/models/v1beta1_device_class_list.rb +256 -0
  673. data/lib/kubernetes/models/v1beta1_device_class_spec.rb +244 -0
  674. data/lib/kubernetes/models/v1beta1_device_constraint.rb +242 -0
  675. data/lib/kubernetes/models/v1beta1_device_counter_consumption.rb +242 -0
  676. data/lib/kubernetes/models/v1beta1_device_request.rb +310 -0
  677. data/lib/kubernetes/models/v1beta1_device_request_allocation_result.rb +338 -0
  678. data/lib/kubernetes/models/v1beta1_device_selector.rb +219 -0
  679. data/lib/kubernetes/models/v1beta1_device_sub_request.rb +293 -0
  680. data/lib/kubernetes/models/v1beta1_device_taint.rb +260 -0
  681. data/lib/kubernetes/models/v1beta1_device_toleration.rb +260 -0
  682. data/lib/kubernetes/models/v1beta1_ip_address.rb +248 -0
  683. data/lib/kubernetes/models/v1beta1_ip_address_list.rb +256 -0
  684. data/lib/kubernetes/models/v1beta1_ip_address_spec.rb +224 -0
  685. data/lib/kubernetes/models/v1beta1_json_patch.rb +220 -0
  686. data/lib/kubernetes/models/v1beta1_lease_candidate.rb +248 -0
  687. data/lib/kubernetes/models/v1beta1_lease_candidate_list.rb +256 -0
  688. data/lib/kubernetes/models/v1beta1_lease_candidate_spec.rb +285 -0
  689. data/lib/kubernetes/models/v1beta1_match_condition.rb +240 -0
  690. data/lib/kubernetes/models/v1beta1_match_resources.rb +262 -0
  691. data/lib/kubernetes/models/v1beta1_mutating_admission_policy.rb +248 -0
  692. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding.rb +248 -0
  693. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_list.rb +256 -0
  694. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_binding_spec.rb +238 -0
  695. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_list.rb +256 -0
  696. data/lib/kubernetes/models/v1beta1_mutating_admission_policy_spec.rb +284 -0
  697. data/lib/kubernetes/models/v1beta1_mutation.rb +243 -0
  698. data/lib/kubernetes/models/v1beta1_named_rule_with_operations.rb +280 -0
  699. data/lib/kubernetes/models/v1beta1_network_device_data.rb +242 -0
  700. data/lib/kubernetes/models/v1beta1_opaque_device_configuration.rb +240 -0
  701. data/lib/kubernetes/models/v1beta1_param_kind.rb +230 -0
  702. data/lib/kubernetes/models/v1beta1_param_ref.rb +249 -0
  703. data/lib/kubernetes/models/v1beta1_parent_reference.rb +260 -0
  704. data/lib/kubernetes/models/v1beta1_pod_certificate_request.rb +262 -0
  705. data/lib/kubernetes/models/v1beta1_pod_certificate_request_list.rb +256 -0
  706. data/lib/kubernetes/models/v1beta1_pod_certificate_request_spec.rb +409 -0
  707. data/lib/kubernetes/models/v1beta1_pod_certificate_request_status.rb +262 -0
  708. data/lib/kubernetes/models/v1beta1_resource_claim.rb +262 -0
  709. data/lib/kubernetes/models/v1beta1_resource_claim_consumer_reference.rb +265 -0
  710. data/lib/kubernetes/models/v1beta1_resource_claim_list.rb +256 -0
  711. data/lib/kubernetes/models/v1beta1_resource_claim_spec.rb +219 -0
  712. data/lib/kubernetes/models/v1beta1_resource_claim_status.rb +243 -0
  713. data/lib/kubernetes/models/v1beta1_resource_claim_template.rb +253 -0
  714. data/lib/kubernetes/models/v1beta1_resource_claim_template_list.rb +256 -0
  715. data/lib/kubernetes/models/v1beta1_resource_claim_template_spec.rb +233 -0
  716. data/lib/kubernetes/models/v1beta1_resource_pool.rb +255 -0
  717. data/lib/kubernetes/models/v1beta1_resource_slice.rb +253 -0
  718. data/lib/kubernetes/models/v1beta1_resource_slice_list.rb +256 -0
  719. data/lib/kubernetes/models/v1beta1_resource_slice_spec.rb +302 -0
  720. data/lib/kubernetes/models/v1beta1_service_cidr.rb +257 -0
  721. data/lib/kubernetes/models/v1beta1_service_cidr_list.rb +256 -0
  722. data/lib/kubernetes/models/v1beta1_service_cidr_spec.rb +222 -0
  723. data/lib/kubernetes/models/v1beta1_service_cidr_status.rb +222 -0
  724. data/lib/kubernetes/models/v1beta1_storage_version_migration.rb +257 -0
  725. data/lib/kubernetes/models/v1beta1_storage_version_migration_list.rb +256 -0
  726. data/lib/kubernetes/models/v1beta1_storage_version_migration_spec.rb +224 -0
  727. data/lib/kubernetes/models/v1beta1_storage_version_migration_status.rb +232 -0
  728. data/lib/kubernetes/models/v1beta1_variable.rb +240 -0
  729. data/lib/kubernetes/models/v1beta1_volume_attributes_class.rb +266 -0
  730. data/lib/kubernetes/models/v1beta1_volume_attributes_class_list.rb +256 -0
  731. data/lib/kubernetes/models/v1beta2_allocated_device_status.rb +296 -0
  732. data/lib/kubernetes/models/v1beta2_allocation_result.rb +238 -0
  733. data/lib/kubernetes/models/v1beta2_capacity_request_policy.rb +241 -0
  734. data/lib/kubernetes/models/v1beta2_capacity_request_policy_range.rb +245 -0
  735. data/lib/kubernetes/models/v1beta2_capacity_requirements.rb +222 -0
  736. data/lib/kubernetes/models/v1beta2_cel_device_selector.rb +225 -0
  737. data/lib/kubernetes/models/v1beta2_counter.rb +225 -0
  738. data/lib/kubernetes/models/v1beta2_counter_set.rb +242 -0
  739. data/lib/kubernetes/models/v1beta2_device.rb +346 -0
  740. data/lib/kubernetes/models/v1beta2_device_allocation_configuration.rb +246 -0
  741. data/lib/kubernetes/models/v1beta2_device_allocation_result.rb +234 -0
  742. data/lib/kubernetes/models/v1beta2_device_attribute.rb +250 -0
  743. data/lib/kubernetes/models/v1beta2_device_capacity.rb +234 -0
  744. data/lib/kubernetes/models/v1beta2_device_claim.rb +246 -0
  745. data/lib/kubernetes/models/v1beta2_device_claim_configuration.rb +231 -0
  746. data/lib/kubernetes/models/v1beta2_device_class.rb +253 -0
  747. data/lib/kubernetes/models/v1beta2_device_class_configuration.rb +219 -0
  748. data/lib/kubernetes/models/v1beta2_device_class_list.rb +256 -0
  749. data/lib/kubernetes/models/v1beta2_device_class_spec.rb +244 -0
  750. data/lib/kubernetes/models/v1beta2_device_constraint.rb +242 -0
  751. data/lib/kubernetes/models/v1beta2_device_counter_consumption.rb +242 -0
  752. data/lib/kubernetes/models/v1beta2_device_request.rb +246 -0
  753. data/lib/kubernetes/models/v1beta2_device_request_allocation_result.rb +338 -0
  754. data/lib/kubernetes/models/v1beta2_device_selector.rb +219 -0
  755. data/lib/kubernetes/models/v1beta2_device_sub_request.rb +293 -0
  756. data/lib/kubernetes/models/v1beta2_device_taint.rb +260 -0
  757. data/lib/kubernetes/models/v1beta2_device_toleration.rb +260 -0
  758. data/lib/kubernetes/models/v1beta2_exact_device_request.rb +288 -0
  759. data/lib/kubernetes/models/v1beta2_network_device_data.rb +242 -0
  760. data/lib/kubernetes/models/v1beta2_opaque_device_configuration.rb +240 -0
  761. data/lib/kubernetes/models/v1beta2_resource_claim.rb +262 -0
  762. data/lib/kubernetes/models/v1beta2_resource_claim_consumer_reference.rb +265 -0
  763. data/lib/kubernetes/models/v1beta2_resource_claim_list.rb +256 -0
  764. data/lib/kubernetes/models/v1beta2_resource_claim_spec.rb +219 -0
  765. data/lib/kubernetes/models/v1beta2_resource_claim_status.rb +243 -0
  766. data/lib/kubernetes/models/v1beta2_resource_claim_template.rb +253 -0
  767. data/lib/kubernetes/models/v1beta2_resource_claim_template_list.rb +256 -0
  768. data/lib/kubernetes/models/v1beta2_resource_claim_template_spec.rb +233 -0
  769. data/lib/kubernetes/models/v1beta2_resource_pool.rb +255 -0
  770. data/lib/kubernetes/models/v1beta2_resource_slice.rb +253 -0
  771. data/lib/kubernetes/models/v1beta2_resource_slice_list.rb +256 -0
  772. data/lib/kubernetes/models/v1beta2_resource_slice_spec.rb +302 -0
  773. data/lib/kubernetes/models/v2_api_group_discovery.rb +248 -0
  774. data/lib/kubernetes/models/v2_api_group_discovery_list.rb +253 -0
  775. data/lib/kubernetes/models/v2_api_resource_discovery.rb +316 -0
  776. data/lib/kubernetes/models/v2_api_subresource_discovery.rb +262 -0
  777. data/lib/kubernetes/models/v2_api_version_discovery.rb +246 -0
  778. data/lib/kubernetes/models/v2_container_resource_metric_source.rb +254 -0
  779. data/lib/kubernetes/models/v2_container_resource_metric_status.rb +254 -0
  780. data/lib/kubernetes/models/v2_cross_version_object_reference.rb +250 -0
  781. data/lib/kubernetes/models/v2_external_metric_source.rb +238 -0
  782. data/lib/kubernetes/models/v2_external_metric_status.rb +238 -0
  783. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler.rb +257 -0
  784. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_behavior.rb +228 -0
  785. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_condition.rb +270 -0
  786. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_list.rb +256 -0
  787. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_spec.rb +270 -0
  788. data/lib/kubernetes/models/v2_horizontal_pod_autoscaler_status.rb +279 -0
  789. data/lib/kubernetes/models/v2_hpa_scaling_policy.rb +255 -0
  790. data/lib/kubernetes/models/v2_hpa_scaling_rules.rb +252 -0
  791. data/lib/kubernetes/models/v2_metric_identifier.rb +234 -0
  792. data/lib/kubernetes/models/v2_metric_spec.rb +270 -0
  793. data/lib/kubernetes/models/v2_metric_status.rb +270 -0
  794. data/lib/kubernetes/models/v2_metric_target.rb +255 -0
  795. data/lib/kubernetes/models/v2_metric_value_status.rb +240 -0
  796. data/lib/kubernetes/models/v2_object_metric_source.rb +252 -0
  797. data/lib/kubernetes/models/v2_object_metric_status.rb +252 -0
  798. data/lib/kubernetes/models/v2_pods_metric_source.rb +238 -0
  799. data/lib/kubernetes/models/v2_pods_metric_status.rb +238 -0
  800. data/lib/kubernetes/models/v2_resource_metric_source.rb +239 -0
  801. data/lib/kubernetes/models/v2_resource_metric_status.rb +239 -0
  802. data/lib/kubernetes/models/v2beta1_api_group_discovery.rb +248 -0
  803. data/lib/kubernetes/models/v2beta1_api_group_discovery_list.rb +253 -0
  804. data/lib/kubernetes/models/v2beta1_api_resource_discovery.rb +316 -0
  805. data/lib/kubernetes/models/v2beta1_api_subresource_discovery.rb +262 -0
  806. data/lib/kubernetes/models/v2beta1_api_version_discovery.rb +246 -0
  807. data/lib/kubernetes/models/version_info.rb +378 -0
  808. data/lib/kubernetes/utils.rb +123 -0
  809. data/lib/kubernetes/version.rb +15 -0
  810. data/lib/kubernetes/watch.rb +4 -0
  811. data/lib/kubernetes.rb +836 -0
  812. metadata +914 -0
@@ -0,0 +1,2854 @@
1
+ =begin
2
+ #Kubernetes
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: release-1.35
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Kubernetes
16
+ class ResourceV1beta2Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # create a DeviceClass
23
+ # @param body [V1beta2DeviceClass]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
26
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
27
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
28
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
29
+ # @return [V1beta2DeviceClass]
30
+ def create_device_class_resource_v1beta2(body, opts = {})
31
+ data, _status_code, _headers = create_device_class_resource_v1beta2_with_http_info(body, opts)
32
+ data
33
+ end
34
+
35
+ # create a DeviceClass
36
+ # @param body [V1beta2DeviceClass]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
39
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
40
+ # @option opts [String] :field_manager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
41
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
42
+ # @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
43
+ def create_device_class_resource_v1beta2_with_http_info(body, opts = {})
44
+ if @api_client.config.debugging
45
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_device_class_resource_v1beta2 ...'
46
+ end
47
+ # verify the required parameter 'body' is set
48
+ if @api_client.config.client_side_validation && body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_device_class_resource_v1beta2"
50
+ end
51
+ # resource path
52
+ local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses'
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
57
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
58
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
59
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
71
+
72
+ # return_type
73
+ return_type = opts[:debug_return_type] || 'V1beta2DeviceClass'
74
+
75
+ # auth_names
76
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
77
+
78
+ new_options = opts.merge(
79
+ :operation => :"ResourceV1beta2Api.create_device_class_resource_v1beta2",
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => return_type
86
+ )
87
+
88
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#create_device_class_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ # create a ResourceClaim
96
+ # @param namespace [String] object name and auth scope, such as for teams and projects
97
+ # @param body [V1beta2ResourceClaim]
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
100
+ # @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
101
+ # @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.
102
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
103
+ # @return [V1beta2ResourceClaim]
104
+ def create_namespaced_resource_claim_resource_v1beta2(namespace, body, opts = {})
105
+ data, _status_code, _headers = create_namespaced_resource_claim_resource_v1beta2_with_http_info(namespace, body, opts)
106
+ data
107
+ end
108
+
109
+ # create a ResourceClaim
110
+ # @param namespace [String] object name and auth scope, such as for teams and projects
111
+ # @param body [V1beta2ResourceClaim]
112
+ # @param [Hash] opts the optional parameters
113
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
114
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
115
+ # @option opts [String] :field_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.
116
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
117
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
118
+ def create_namespaced_resource_claim_resource_v1beta2_with_http_info(namespace, body, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_namespaced_resource_claim_resource_v1beta2 ...'
121
+ end
122
+ # verify the required parameter 'namespace' is set
123
+ if @api_client.config.client_side_validation && namespace.nil?
124
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.create_namespaced_resource_claim_resource_v1beta2"
125
+ end
126
+ # verify the required parameter 'body' is set
127
+ if @api_client.config.client_side_validation && body.nil?
128
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_namespaced_resource_claim_resource_v1beta2"
129
+ end
130
+ # resource path
131
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
132
+
133
+ # query parameters
134
+ query_params = opts[:query_params] || {}
135
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
136
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
137
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
138
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
139
+
140
+ # header parameters
141
+ header_params = opts[:header_params] || {}
142
+ # HTTP header 'Accept' (if needed)
143
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
144
+
145
+ # form parameters
146
+ form_params = opts[:form_params] || {}
147
+
148
+ # http body (model)
149
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
150
+
151
+ # return_type
152
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
153
+
154
+ # auth_names
155
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
156
+
157
+ new_options = opts.merge(
158
+ :operation => :"ResourceV1beta2Api.create_namespaced_resource_claim_resource_v1beta2",
159
+ :header_params => header_params,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body,
163
+ :auth_names => auth_names,
164
+ :return_type => return_type
165
+ )
166
+
167
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#create_namespaced_resource_claim_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
170
+ end
171
+ return data, status_code, headers
172
+ end
173
+
174
+ # create a ResourceClaimTemplate
175
+ # @param namespace [String] object name and auth scope, such as for teams and projects
176
+ # @param body [V1beta2ResourceClaimTemplate]
177
+ # @param [Hash] opts the optional parameters
178
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
179
+ # @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
180
+ # @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.
181
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
182
+ # @return [V1beta2ResourceClaimTemplate]
183
+ def create_namespaced_resource_claim_template_resource_v1beta2(namespace, body, opts = {})
184
+ data, _status_code, _headers = create_namespaced_resource_claim_template_resource_v1beta2_with_http_info(namespace, body, opts)
185
+ data
186
+ end
187
+
188
+ # create a ResourceClaimTemplate
189
+ # @param namespace [String] object name and auth scope, such as for teams and projects
190
+ # @param body [V1beta2ResourceClaimTemplate]
191
+ # @param [Hash] opts the optional parameters
192
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
193
+ # @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
194
+ # @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.
195
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
196
+ # @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
197
+ def create_namespaced_resource_claim_template_resource_v1beta2_with_http_info(namespace, body, opts = {})
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_namespaced_resource_claim_template_resource_v1beta2 ...'
200
+ end
201
+ # verify the required parameter 'namespace' is set
202
+ if @api_client.config.client_side_validation && namespace.nil?
203
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.create_namespaced_resource_claim_template_resource_v1beta2"
204
+ end
205
+ # verify the required parameter 'body' is set
206
+ if @api_client.config.client_side_validation && body.nil?
207
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_namespaced_resource_claim_template_resource_v1beta2"
208
+ end
209
+ # resource path
210
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
211
+
212
+ # query parameters
213
+ query_params = opts[:query_params] || {}
214
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
215
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
216
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
217
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
218
+
219
+ # header parameters
220
+ header_params = opts[:header_params] || {}
221
+ # HTTP header 'Accept' (if needed)
222
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
223
+
224
+ # form parameters
225
+ form_params = opts[:form_params] || {}
226
+
227
+ # http body (model)
228
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
229
+
230
+ # return_type
231
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimTemplate'
232
+
233
+ # auth_names
234
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
235
+
236
+ new_options = opts.merge(
237
+ :operation => :"ResourceV1beta2Api.create_namespaced_resource_claim_template_resource_v1beta2",
238
+ :header_params => header_params,
239
+ :query_params => query_params,
240
+ :form_params => form_params,
241
+ :body => post_body,
242
+ :auth_names => auth_names,
243
+ :return_type => return_type
244
+ )
245
+
246
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#create_namespaced_resource_claim_template_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
+ end
250
+ return data, status_code, headers
251
+ end
252
+
253
+ # create a ResourceSlice
254
+ # @param body [V1beta2ResourceSlice]
255
+ # @param [Hash] opts the optional parameters
256
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
257
+ # @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
258
+ # @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.
259
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
260
+ # @return [V1beta2ResourceSlice]
261
+ def create_resource_slice_resource_v1beta2(body, opts = {})
262
+ data, _status_code, _headers = create_resource_slice_resource_v1beta2_with_http_info(body, opts)
263
+ data
264
+ end
265
+
266
+ # create a ResourceSlice
267
+ # @param body [V1beta2ResourceSlice]
268
+ # @param [Hash] opts the optional parameters
269
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
270
+ # @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
271
+ # @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.
272
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
273
+ # @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
274
+ def create_resource_slice_resource_v1beta2_with_http_info(body, opts = {})
275
+ if @api_client.config.debugging
276
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.create_resource_slice_resource_v1beta2 ...'
277
+ end
278
+ # verify the required parameter 'body' is set
279
+ if @api_client.config.client_side_validation && body.nil?
280
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.create_resource_slice_resource_v1beta2"
281
+ end
282
+ # resource path
283
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices'
284
+
285
+ # query parameters
286
+ query_params = opts[:query_params] || {}
287
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
288
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
289
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
290
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
291
+
292
+ # header parameters
293
+ header_params = opts[:header_params] || {}
294
+ # HTTP header 'Accept' (if needed)
295
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
296
+
297
+ # form parameters
298
+ form_params = opts[:form_params] || {}
299
+
300
+ # http body (model)
301
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
302
+
303
+ # return_type
304
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceSlice'
305
+
306
+ # auth_names
307
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
308
+
309
+ new_options = opts.merge(
310
+ :operation => :"ResourceV1beta2Api.create_resource_slice_resource_v1beta2",
311
+ :header_params => header_params,
312
+ :query_params => query_params,
313
+ :form_params => form_params,
314
+ :body => post_body,
315
+ :auth_names => auth_names,
316
+ :return_type => return_type
317
+ )
318
+
319
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
320
+ if @api_client.config.debugging
321
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#create_resource_slice_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
322
+ end
323
+ return data, status_code, headers
324
+ end
325
+
326
+ # delete collection of DeviceClass
327
+ # @param [Hash] opts the optional parameters
328
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
329
+ # @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.
330
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
331
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
332
+ # @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.
333
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
334
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
335
+ # @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.
336
+ # @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.
337
+ # @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.
338
+ # @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
339
+ # @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
340
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
341
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
342
+ # @option opts [V1DeleteOptions] :body
343
+ # @return [V1Status]
344
+ def delete_collection_device_class_resource_v1beta2(opts = {})
345
+ data, _status_code, _headers = delete_collection_device_class_resource_v1beta2_with_http_info(opts)
346
+ data
347
+ end
348
+
349
+ # delete collection of DeviceClass
350
+ # @param [Hash] opts the optional parameters
351
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
352
+ # @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.
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 [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
355
+ # @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.
356
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
357
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
358
+ # @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.
359
+ # @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.
360
+ # @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.
361
+ # @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
362
+ # @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
363
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
364
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
365
+ # @option opts [V1DeleteOptions] :body
366
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
367
+ def delete_collection_device_class_resource_v1beta2_with_http_info(opts = {})
368
+ if @api_client.config.debugging
369
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_device_class_resource_v1beta2 ...'
370
+ end
371
+ # resource path
372
+ local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses'
373
+
374
+ # query parameters
375
+ query_params = opts[:query_params] || {}
376
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
377
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
378
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
379
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
380
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
381
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
382
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
383
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
384
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
385
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
386
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
387
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
388
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
389
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
390
+
391
+ # header parameters
392
+ header_params = opts[:header_params] || {}
393
+ # HTTP header 'Accept' (if needed)
394
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
395
+
396
+ # form parameters
397
+ form_params = opts[:form_params] || {}
398
+
399
+ # http body (model)
400
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
401
+
402
+ # return_type
403
+ return_type = opts[:debug_return_type] || 'V1Status'
404
+
405
+ # auth_names
406
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
407
+
408
+ new_options = opts.merge(
409
+ :operation => :"ResourceV1beta2Api.delete_collection_device_class_resource_v1beta2",
410
+ :header_params => header_params,
411
+ :query_params => query_params,
412
+ :form_params => form_params,
413
+ :body => post_body,
414
+ :auth_names => auth_names,
415
+ :return_type => return_type
416
+ )
417
+
418
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_device_class_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
424
+
425
+ # delete collection of ResourceClaim
426
+ # @param namespace [String] object name and auth scope, such as for teams and projects
427
+ # @param [Hash] opts the optional parameters
428
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
429
+ # @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.
430
+ # @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
431
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
432
+ # @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.
433
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
434
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
435
+ # @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.
436
+ # @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.
437
+ # @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.
438
+ # @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
439
+ # @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
440
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
441
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
442
+ # @option opts [V1DeleteOptions] :body
443
+ # @return [V1Status]
444
+ def delete_collection_namespaced_resource_claim_resource_v1beta2(namespace, opts = {})
445
+ data, _status_code, _headers = delete_collection_namespaced_resource_claim_resource_v1beta2_with_http_info(namespace, opts)
446
+ data
447
+ end
448
+
449
+ # delete collection of ResourceClaim
450
+ # @param namespace [String] object name and auth scope, such as for teams and projects
451
+ # @param [Hash] opts the optional parameters
452
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
453
+ # @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.
454
+ # @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
455
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
456
+ # @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.
457
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
458
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
459
+ # @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.
460
+ # @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.
461
+ # @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.
462
+ # @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
463
+ # @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
464
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
465
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
466
+ # @option opts [V1DeleteOptions] :body
467
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
468
+ def delete_collection_namespaced_resource_claim_resource_v1beta2_with_http_info(namespace, opts = {})
469
+ if @api_client.config.debugging
470
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_namespaced_resource_claim_resource_v1beta2 ...'
471
+ end
472
+ # verify the required parameter 'namespace' is set
473
+ if @api_client.config.client_side_validation && namespace.nil?
474
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_collection_namespaced_resource_claim_resource_v1beta2"
475
+ end
476
+ # resource path
477
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
478
+
479
+ # query parameters
480
+ query_params = opts[:query_params] || {}
481
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
482
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
483
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
484
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
485
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
486
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
487
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
488
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
489
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
490
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
491
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
492
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
493
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
494
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
495
+
496
+ # header parameters
497
+ header_params = opts[:header_params] || {}
498
+ # HTTP header 'Accept' (if needed)
499
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
500
+
501
+ # form parameters
502
+ form_params = opts[:form_params] || {}
503
+
504
+ # http body (model)
505
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
506
+
507
+ # return_type
508
+ return_type = opts[:debug_return_type] || 'V1Status'
509
+
510
+ # auth_names
511
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
512
+
513
+ new_options = opts.merge(
514
+ :operation => :"ResourceV1beta2Api.delete_collection_namespaced_resource_claim_resource_v1beta2",
515
+ :header_params => header_params,
516
+ :query_params => query_params,
517
+ :form_params => form_params,
518
+ :body => post_body,
519
+ :auth_names => auth_names,
520
+ :return_type => return_type
521
+ )
522
+
523
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
524
+ if @api_client.config.debugging
525
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_namespaced_resource_claim_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
526
+ end
527
+ return data, status_code, headers
528
+ end
529
+
530
+ # delete collection of ResourceClaimTemplate
531
+ # @param namespace [String] object name and auth scope, such as for teams and projects
532
+ # @param [Hash] opts the optional parameters
533
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
534
+ # @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.
535
+ # @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
536
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
537
+ # @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.
538
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
539
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
540
+ # @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.
541
+ # @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.
542
+ # @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.
543
+ # @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
544
+ # @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
545
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
546
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
547
+ # @option opts [V1DeleteOptions] :body
548
+ # @return [V1Status]
549
+ def delete_collection_namespaced_resource_claim_template_resource_v1beta2(namespace, opts = {})
550
+ data, _status_code, _headers = delete_collection_namespaced_resource_claim_template_resource_v1beta2_with_http_info(namespace, opts)
551
+ data
552
+ end
553
+
554
+ # delete collection of ResourceClaimTemplate
555
+ # @param namespace [String] object name and auth scope, such as for teams and projects
556
+ # @param [Hash] opts the optional parameters
557
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
558
+ # @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.
559
+ # @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
560
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
561
+ # @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.
562
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
563
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
564
+ # @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.
565
+ # @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.
566
+ # @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.
567
+ # @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
568
+ # @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
569
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
570
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
571
+ # @option opts [V1DeleteOptions] :body
572
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
573
+ def delete_collection_namespaced_resource_claim_template_resource_v1beta2_with_http_info(namespace, opts = {})
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_namespaced_resource_claim_template_resource_v1beta2 ...'
576
+ end
577
+ # verify the required parameter 'namespace' is set
578
+ if @api_client.config.client_side_validation && namespace.nil?
579
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_collection_namespaced_resource_claim_template_resource_v1beta2"
580
+ end
581
+ # resource path
582
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
583
+
584
+ # query parameters
585
+ query_params = opts[:query_params] || {}
586
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
587
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
588
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
589
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
590
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
591
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
592
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
593
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
594
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
595
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
596
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
597
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
598
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
599
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
600
+
601
+ # header parameters
602
+ header_params = opts[:header_params] || {}
603
+ # HTTP header 'Accept' (if needed)
604
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
605
+
606
+ # form parameters
607
+ form_params = opts[:form_params] || {}
608
+
609
+ # http body (model)
610
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
611
+
612
+ # return_type
613
+ return_type = opts[:debug_return_type] || 'V1Status'
614
+
615
+ # auth_names
616
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
617
+
618
+ new_options = opts.merge(
619
+ :operation => :"ResourceV1beta2Api.delete_collection_namespaced_resource_claim_template_resource_v1beta2",
620
+ :header_params => header_params,
621
+ :query_params => query_params,
622
+ :form_params => form_params,
623
+ :body => post_body,
624
+ :auth_names => auth_names,
625
+ :return_type => return_type
626
+ )
627
+
628
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
629
+ if @api_client.config.debugging
630
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_namespaced_resource_claim_template_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
631
+ end
632
+ return data, status_code, headers
633
+ end
634
+
635
+ # delete collection of ResourceSlice
636
+ # @param [Hash] opts the optional parameters
637
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
638
+ # @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.
639
+ # @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
640
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
641
+ # @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.
642
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
643
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
644
+ # @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.
645
+ # @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.
646
+ # @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.
647
+ # @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
648
+ # @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
649
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
650
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
651
+ # @option opts [V1DeleteOptions] :body
652
+ # @return [V1Status]
653
+ def delete_collection_resource_slice_resource_v1beta2(opts = {})
654
+ data, _status_code, _headers = delete_collection_resource_slice_resource_v1beta2_with_http_info(opts)
655
+ data
656
+ end
657
+
658
+ # delete collection of ResourceSlice
659
+ # @param [Hash] opts the optional parameters
660
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
661
+ # @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.
662
+ # @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
663
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
664
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
665
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
666
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
667
+ # @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.
668
+ # @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.
669
+ # @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.
670
+ # @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
671
+ # @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
672
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
673
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
674
+ # @option opts [V1DeleteOptions] :body
675
+ # @return [Array<(V1Status, Integer, Hash)>] V1Status data, response status code and response headers
676
+ def delete_collection_resource_slice_resource_v1beta2_with_http_info(opts = {})
677
+ if @api_client.config.debugging
678
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_collection_resource_slice_resource_v1beta2 ...'
679
+ end
680
+ # resource path
681
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices'
682
+
683
+ # query parameters
684
+ query_params = opts[:query_params] || {}
685
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
686
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
687
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
688
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
689
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
690
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
691
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
692
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
693
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
694
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
695
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
696
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
697
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
698
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
699
+
700
+ # header parameters
701
+ header_params = opts[:header_params] || {}
702
+ # HTTP header 'Accept' (if needed)
703
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
704
+
705
+ # form parameters
706
+ form_params = opts[:form_params] || {}
707
+
708
+ # http body (model)
709
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
710
+
711
+ # return_type
712
+ return_type = opts[:debug_return_type] || 'V1Status'
713
+
714
+ # auth_names
715
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
716
+
717
+ new_options = opts.merge(
718
+ :operation => :"ResourceV1beta2Api.delete_collection_resource_slice_resource_v1beta2",
719
+ :header_params => header_params,
720
+ :query_params => query_params,
721
+ :form_params => form_params,
722
+ :body => post_body,
723
+ :auth_names => auth_names,
724
+ :return_type => return_type
725
+ )
726
+
727
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
728
+ if @api_client.config.debugging
729
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_collection_resource_slice_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
730
+ end
731
+ return data, status_code, headers
732
+ end
733
+
734
+ # delete a DeviceClass
735
+ # @param name [String] name of the DeviceClass
736
+ # @param [Hash] opts the optional parameters
737
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
738
+ # @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
739
+ # @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.
740
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
741
+ # @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.
742
+ # @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.
743
+ # @option opts [V1DeleteOptions] :body
744
+ # @return [V1beta2DeviceClass]
745
+ def delete_device_class_resource_v1beta2(name, opts = {})
746
+ data, _status_code, _headers = delete_device_class_resource_v1beta2_with_http_info(name, opts)
747
+ data
748
+ end
749
+
750
+ # delete a DeviceClass
751
+ # @param name [String] name of the DeviceClass
752
+ # @param [Hash] opts the optional parameters
753
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
754
+ # @option opts [String] :dry_run When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
755
+ # @option opts [Integer] :grace_period_seconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
756
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
757
+ # @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.
758
+ # @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.
759
+ # @option opts [V1DeleteOptions] :body
760
+ # @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
761
+ def delete_device_class_resource_v1beta2_with_http_info(name, opts = {})
762
+ if @api_client.config.debugging
763
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_device_class_resource_v1beta2 ...'
764
+ end
765
+ # verify the required parameter 'name' is set
766
+ if @api_client.config.client_side_validation && name.nil?
767
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_device_class_resource_v1beta2"
768
+ end
769
+ # resource path
770
+ local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
771
+
772
+ # query parameters
773
+ query_params = opts[:query_params] || {}
774
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
775
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
776
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
777
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
778
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
779
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
780
+
781
+ # header parameters
782
+ header_params = opts[:header_params] || {}
783
+ # HTTP header 'Accept' (if needed)
784
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
785
+
786
+ # form parameters
787
+ form_params = opts[:form_params] || {}
788
+
789
+ # http body (model)
790
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
791
+
792
+ # return_type
793
+ return_type = opts[:debug_return_type] || 'V1beta2DeviceClass'
794
+
795
+ # auth_names
796
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
797
+
798
+ new_options = opts.merge(
799
+ :operation => :"ResourceV1beta2Api.delete_device_class_resource_v1beta2",
800
+ :header_params => header_params,
801
+ :query_params => query_params,
802
+ :form_params => form_params,
803
+ :body => post_body,
804
+ :auth_names => auth_names,
805
+ :return_type => return_type
806
+ )
807
+
808
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
809
+ if @api_client.config.debugging
810
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_device_class_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
811
+ end
812
+ return data, status_code, headers
813
+ end
814
+
815
+ # delete a ResourceClaim
816
+ # @param name [String] name of the ResourceClaim
817
+ # @param namespace [String] object name and auth scope, such as for teams and projects
818
+ # @param [Hash] opts the optional parameters
819
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
820
+ # @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
821
+ # @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.
822
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
823
+ # @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.
824
+ # @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.
825
+ # @option opts [V1DeleteOptions] :body
826
+ # @return [V1beta2ResourceClaim]
827
+ def delete_namespaced_resource_claim_resource_v1beta2(name, namespace, opts = {})
828
+ data, _status_code, _headers = delete_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, opts)
829
+ data
830
+ end
831
+
832
+ # delete a ResourceClaim
833
+ # @param name [String] name of the ResourceClaim
834
+ # @param namespace [String] object name and auth scope, such as for teams and projects
835
+ # @param [Hash] opts the optional parameters
836
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
837
+ # @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
838
+ # @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.
839
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
840
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
841
+ # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: &#39;Orphan&#39; - orphan the dependents; &#39;Background&#39; - allow the garbage collector to delete the dependents in the background; &#39;Foreground&#39; - a cascading policy that deletes all dependents in the foreground.
842
+ # @option opts [V1DeleteOptions] :body
843
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
844
+ def delete_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, opts = {})
845
+ if @api_client.config.debugging
846
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_namespaced_resource_claim_resource_v1beta2 ...'
847
+ end
848
+ # verify the required parameter 'name' is set
849
+ if @api_client.config.client_side_validation && name.nil?
850
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_resource_v1beta2"
851
+ end
852
+ # verify the required parameter 'namespace' is set
853
+ if @api_client.config.client_side_validation && namespace.nil?
854
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_resource_v1beta2"
855
+ end
856
+ # resource path
857
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
858
+
859
+ # query parameters
860
+ query_params = opts[:query_params] || {}
861
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
862
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
863
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
864
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
865
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
866
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
867
+
868
+ # header parameters
869
+ header_params = opts[:header_params] || {}
870
+ # HTTP header 'Accept' (if needed)
871
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
872
+
873
+ # form parameters
874
+ form_params = opts[:form_params] || {}
875
+
876
+ # http body (model)
877
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
878
+
879
+ # return_type
880
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
881
+
882
+ # auth_names
883
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
884
+
885
+ new_options = opts.merge(
886
+ :operation => :"ResourceV1beta2Api.delete_namespaced_resource_claim_resource_v1beta2",
887
+ :header_params => header_params,
888
+ :query_params => query_params,
889
+ :form_params => form_params,
890
+ :body => post_body,
891
+ :auth_names => auth_names,
892
+ :return_type => return_type
893
+ )
894
+
895
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
896
+ if @api_client.config.debugging
897
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_namespaced_resource_claim_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
898
+ end
899
+ return data, status_code, headers
900
+ end
901
+
902
+ # delete a ResourceClaimTemplate
903
+ # @param name [String] name of the ResourceClaimTemplate
904
+ # @param namespace [String] object name and auth scope, such as for teams and projects
905
+ # @param [Hash] opts the optional parameters
906
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
907
+ # @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
908
+ # @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.
909
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
910
+ # @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.
911
+ # @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.
912
+ # @option opts [V1DeleteOptions] :body
913
+ # @return [V1beta2ResourceClaimTemplate]
914
+ def delete_namespaced_resource_claim_template_resource_v1beta2(name, namespace, opts = {})
915
+ data, _status_code, _headers = delete_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, opts)
916
+ data
917
+ end
918
+
919
+ # delete a ResourceClaimTemplate
920
+ # @param name [String] name of the ResourceClaimTemplate
921
+ # @param namespace [String] object name and auth scope, such as for teams and projects
922
+ # @param [Hash] opts the optional parameters
923
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
924
+ # @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
925
+ # @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.
926
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
927
+ # @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.
928
+ # @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.
929
+ # @option opts [V1DeleteOptions] :body
930
+ # @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
931
+ def delete_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, opts = {})
932
+ if @api_client.config.debugging
933
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_namespaced_resource_claim_template_resource_v1beta2 ...'
934
+ end
935
+ # verify the required parameter 'name' is set
936
+ if @api_client.config.client_side_validation && name.nil?
937
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_template_resource_v1beta2"
938
+ end
939
+ # verify the required parameter 'namespace' is set
940
+ if @api_client.config.client_side_validation && namespace.nil?
941
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.delete_namespaced_resource_claim_template_resource_v1beta2"
942
+ end
943
+ # resource path
944
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
945
+
946
+ # query parameters
947
+ query_params = opts[:query_params] || {}
948
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
949
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
950
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
951
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
952
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
953
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
954
+
955
+ # header parameters
956
+ header_params = opts[:header_params] || {}
957
+ # HTTP header 'Accept' (if needed)
958
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
959
+
960
+ # form parameters
961
+ form_params = opts[:form_params] || {}
962
+
963
+ # http body (model)
964
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
965
+
966
+ # return_type
967
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimTemplate'
968
+
969
+ # auth_names
970
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
971
+
972
+ new_options = opts.merge(
973
+ :operation => :"ResourceV1beta2Api.delete_namespaced_resource_claim_template_resource_v1beta2",
974
+ :header_params => header_params,
975
+ :query_params => query_params,
976
+ :form_params => form_params,
977
+ :body => post_body,
978
+ :auth_names => auth_names,
979
+ :return_type => return_type
980
+ )
981
+
982
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
983
+ if @api_client.config.debugging
984
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_namespaced_resource_claim_template_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
985
+ end
986
+ return data, status_code, headers
987
+ end
988
+
989
+ # delete a ResourceSlice
990
+ # @param name [String] name of the ResourceSlice
991
+ # @param [Hash] opts the optional parameters
992
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
993
+ # @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
994
+ # @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.
995
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
996
+ # @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.
997
+ # @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.
998
+ # @option opts [V1DeleteOptions] :body
999
+ # @return [V1beta2ResourceSlice]
1000
+ def delete_resource_slice_resource_v1beta2(name, opts = {})
1001
+ data, _status_code, _headers = delete_resource_slice_resource_v1beta2_with_http_info(name, opts)
1002
+ data
1003
+ end
1004
+
1005
+ # delete a ResourceSlice
1006
+ # @param name [String] name of the ResourceSlice
1007
+ # @param [Hash] opts the optional parameters
1008
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1009
+ # @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
1010
+ # @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.
1011
+ # @option opts [Boolean] :ignore_store_read_error_with_cluster_breaking_potential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
1012
+ # @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.
1013
+ # @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.
1014
+ # @option opts [V1DeleteOptions] :body
1015
+ # @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
1016
+ def delete_resource_slice_resource_v1beta2_with_http_info(name, opts = {})
1017
+ if @api_client.config.debugging
1018
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.delete_resource_slice_resource_v1beta2 ...'
1019
+ end
1020
+ # verify the required parameter 'name' is set
1021
+ if @api_client.config.client_side_validation && name.nil?
1022
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.delete_resource_slice_resource_v1beta2"
1023
+ end
1024
+ # resource path
1025
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1026
+
1027
+ # query parameters
1028
+ query_params = opts[:query_params] || {}
1029
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1030
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1031
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
1032
+ query_params[:'ignoreStoreReadErrorWithClusterBreakingPotential'] = opts[:'ignore_store_read_error_with_cluster_breaking_potential'] if !opts[:'ignore_store_read_error_with_cluster_breaking_potential'].nil?
1033
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
1034
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
1035
+
1036
+ # header parameters
1037
+ header_params = opts[:header_params] || {}
1038
+ # HTTP header 'Accept' (if needed)
1039
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1040
+
1041
+ # form parameters
1042
+ form_params = opts[:form_params] || {}
1043
+
1044
+ # http body (model)
1045
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
1046
+
1047
+ # return_type
1048
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceSlice'
1049
+
1050
+ # auth_names
1051
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1052
+
1053
+ new_options = opts.merge(
1054
+ :operation => :"ResourceV1beta2Api.delete_resource_slice_resource_v1beta2",
1055
+ :header_params => header_params,
1056
+ :query_params => query_params,
1057
+ :form_params => form_params,
1058
+ :body => post_body,
1059
+ :auth_names => auth_names,
1060
+ :return_type => return_type
1061
+ )
1062
+
1063
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1064
+ if @api_client.config.debugging
1065
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#delete_resource_slice_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1066
+ end
1067
+ return data, status_code, headers
1068
+ end
1069
+
1070
+ # get available resources
1071
+ # @param [Hash] opts the optional parameters
1072
+ # @return [V1APIResourceList]
1073
+ def get_api_resources_resource_v1beta2(opts = {})
1074
+ data, _status_code, _headers = get_api_resources_resource_v1beta2_with_http_info(opts)
1075
+ data
1076
+ end
1077
+
1078
+ # get available resources
1079
+ # @param [Hash] opts the optional parameters
1080
+ # @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
1081
+ def get_api_resources_resource_v1beta2_with_http_info(opts = {})
1082
+ if @api_client.config.debugging
1083
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.get_api_resources_resource_v1beta2 ...'
1084
+ end
1085
+ # resource path
1086
+ local_var_path = '/apis/resource.k8s.io/v1beta2/'
1087
+
1088
+ # query parameters
1089
+ query_params = opts[:query_params] || {}
1090
+
1091
+ # header parameters
1092
+ header_params = opts[:header_params] || {}
1093
+ # HTTP header 'Accept' (if needed)
1094
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1095
+
1096
+ # form parameters
1097
+ form_params = opts[:form_params] || {}
1098
+
1099
+ # http body (model)
1100
+ post_body = opts[:debug_body]
1101
+
1102
+ # return_type
1103
+ return_type = opts[:debug_return_type] || 'V1APIResourceList'
1104
+
1105
+ # auth_names
1106
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1107
+
1108
+ new_options = opts.merge(
1109
+ :operation => :"ResourceV1beta2Api.get_api_resources_resource_v1beta2",
1110
+ :header_params => header_params,
1111
+ :query_params => query_params,
1112
+ :form_params => form_params,
1113
+ :body => post_body,
1114
+ :auth_names => auth_names,
1115
+ :return_type => return_type
1116
+ )
1117
+
1118
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1119
+ if @api_client.config.debugging
1120
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#get_api_resources_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1121
+ end
1122
+ return data, status_code, headers
1123
+ end
1124
+
1125
+ # list or watch objects of kind DeviceClass
1126
+ # @param [Hash] opts the optional parameters
1127
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1128
+ # @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.
1129
+ # @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.
1130
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1131
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1132
+ # @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.
1133
+ # @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
1134
+ # @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
1135
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1136
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1137
+ # @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.
1138
+ # @return [V1beta2DeviceClassList]
1139
+ def list_device_class_resource_v1beta2(opts = {})
1140
+ data, _status_code, _headers = list_device_class_resource_v1beta2_with_http_info(opts)
1141
+ data
1142
+ end
1143
+
1144
+ # list or watch objects of kind DeviceClass
1145
+ # @param [Hash] opts the optional parameters
1146
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1147
+ # @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.
1148
+ # @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.
1149
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1150
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1151
+ # @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.
1152
+ # @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
1153
+ # @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
1154
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1155
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1156
+ # @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.
1157
+ # @return [Array<(V1beta2DeviceClassList, Integer, Hash)>] V1beta2DeviceClassList data, response status code and response headers
1158
+ def list_device_class_resource_v1beta2_with_http_info(opts = {})
1159
+ if @api_client.config.debugging
1160
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_device_class_resource_v1beta2 ...'
1161
+ end
1162
+ # resource path
1163
+ local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses'
1164
+
1165
+ # query parameters
1166
+ query_params = opts[:query_params] || {}
1167
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1168
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1169
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1170
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1171
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1172
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1173
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1174
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1175
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1176
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1177
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1178
+
1179
+ # header parameters
1180
+ header_params = opts[:header_params] || {}
1181
+ # HTTP header 'Accept' (if needed)
1182
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1183
+
1184
+ # form parameters
1185
+ form_params = opts[:form_params] || {}
1186
+
1187
+ # http body (model)
1188
+ post_body = opts[:debug_body]
1189
+
1190
+ # return_type
1191
+ return_type = opts[:debug_return_type] || 'V1beta2DeviceClassList'
1192
+
1193
+ # auth_names
1194
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1195
+
1196
+ new_options = opts.merge(
1197
+ :operation => :"ResourceV1beta2Api.list_device_class_resource_v1beta2",
1198
+ :header_params => header_params,
1199
+ :query_params => query_params,
1200
+ :form_params => form_params,
1201
+ :body => post_body,
1202
+ :auth_names => auth_names,
1203
+ :return_type => return_type
1204
+ )
1205
+
1206
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1207
+ if @api_client.config.debugging
1208
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#list_device_class_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1209
+ end
1210
+ return data, status_code, headers
1211
+ end
1212
+
1213
+ # list or watch objects of kind ResourceClaim
1214
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1215
+ # @param [Hash] opts the optional parameters
1216
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1217
+ # @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.
1218
+ # @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.
1219
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1220
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1221
+ # @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.
1222
+ # @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
1223
+ # @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
1224
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1225
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1226
+ # @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.
1227
+ # @return [V1beta2ResourceClaimList]
1228
+ def list_namespaced_resource_claim_resource_v1beta2(namespace, opts = {})
1229
+ data, _status_code, _headers = list_namespaced_resource_claim_resource_v1beta2_with_http_info(namespace, opts)
1230
+ data
1231
+ end
1232
+
1233
+ # list or watch objects of kind ResourceClaim
1234
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1235
+ # @param [Hash] opts the optional parameters
1236
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1237
+ # @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.
1238
+ # @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.
1239
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1240
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1241
+ # @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.
1242
+ # @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
1243
+ # @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
1244
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1245
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1246
+ # @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.
1247
+ # @return [Array<(V1beta2ResourceClaimList, Integer, Hash)>] V1beta2ResourceClaimList data, response status code and response headers
1248
+ def list_namespaced_resource_claim_resource_v1beta2_with_http_info(namespace, opts = {})
1249
+ if @api_client.config.debugging
1250
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_namespaced_resource_claim_resource_v1beta2 ...'
1251
+ end
1252
+ # verify the required parameter 'namespace' is set
1253
+ if @api_client.config.client_side_validation && namespace.nil?
1254
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.list_namespaced_resource_claim_resource_v1beta2"
1255
+ end
1256
+ # resource path
1257
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1258
+
1259
+ # query parameters
1260
+ query_params = opts[:query_params] || {}
1261
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1262
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1263
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1264
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1265
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1266
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1267
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1268
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1269
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1270
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1271
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1272
+
1273
+ # header parameters
1274
+ header_params = opts[:header_params] || {}
1275
+ # HTTP header 'Accept' (if needed)
1276
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1277
+
1278
+ # form parameters
1279
+ form_params = opts[:form_params] || {}
1280
+
1281
+ # http body (model)
1282
+ post_body = opts[:debug_body]
1283
+
1284
+ # return_type
1285
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimList'
1286
+
1287
+ # auth_names
1288
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1289
+
1290
+ new_options = opts.merge(
1291
+ :operation => :"ResourceV1beta2Api.list_namespaced_resource_claim_resource_v1beta2",
1292
+ :header_params => header_params,
1293
+ :query_params => query_params,
1294
+ :form_params => form_params,
1295
+ :body => post_body,
1296
+ :auth_names => auth_names,
1297
+ :return_type => return_type
1298
+ )
1299
+
1300
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1301
+ if @api_client.config.debugging
1302
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#list_namespaced_resource_claim_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1303
+ end
1304
+ return data, status_code, headers
1305
+ end
1306
+
1307
+ # list or watch objects of kind ResourceClaimTemplate
1308
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1309
+ # @param [Hash] opts the optional parameters
1310
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1311
+ # @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.
1312
+ # @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.
1313
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1314
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1315
+ # @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.
1316
+ # @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
1317
+ # @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
1318
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1319
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1320
+ # @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.
1321
+ # @return [V1beta2ResourceClaimTemplateList]
1322
+ def list_namespaced_resource_claim_template_resource_v1beta2(namespace, opts = {})
1323
+ data, _status_code, _headers = list_namespaced_resource_claim_template_resource_v1beta2_with_http_info(namespace, opts)
1324
+ data
1325
+ end
1326
+
1327
+ # list or watch objects of kind ResourceClaimTemplate
1328
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1329
+ # @param [Hash] opts the optional parameters
1330
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1331
+ # @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.
1332
+ # @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.
1333
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1334
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1335
+ # @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.
1336
+ # @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
1337
+ # @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
1338
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1339
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1340
+ # @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.
1341
+ # @return [Array<(V1beta2ResourceClaimTemplateList, Integer, Hash)>] V1beta2ResourceClaimTemplateList data, response status code and response headers
1342
+ def list_namespaced_resource_claim_template_resource_v1beta2_with_http_info(namespace, opts = {})
1343
+ if @api_client.config.debugging
1344
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_namespaced_resource_claim_template_resource_v1beta2 ...'
1345
+ end
1346
+ # verify the required parameter 'namespace' is set
1347
+ if @api_client.config.client_side_validation && namespace.nil?
1348
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.list_namespaced_resource_claim_template_resource_v1beta2"
1349
+ end
1350
+ # resource path
1351
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates'.sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1352
+
1353
+ # query parameters
1354
+ query_params = opts[:query_params] || {}
1355
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1356
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1357
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1358
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1359
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1360
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1361
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1362
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1363
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1364
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1365
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1366
+
1367
+ # header parameters
1368
+ header_params = opts[:header_params] || {}
1369
+ # HTTP header 'Accept' (if needed)
1370
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1371
+
1372
+ # form parameters
1373
+ form_params = opts[:form_params] || {}
1374
+
1375
+ # http body (model)
1376
+ post_body = opts[:debug_body]
1377
+
1378
+ # return_type
1379
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimTemplateList'
1380
+
1381
+ # auth_names
1382
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1383
+
1384
+ new_options = opts.merge(
1385
+ :operation => :"ResourceV1beta2Api.list_namespaced_resource_claim_template_resource_v1beta2",
1386
+ :header_params => header_params,
1387
+ :query_params => query_params,
1388
+ :form_params => form_params,
1389
+ :body => post_body,
1390
+ :auth_names => auth_names,
1391
+ :return_type => return_type
1392
+ )
1393
+
1394
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1395
+ if @api_client.config.debugging
1396
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#list_namespaced_resource_claim_template_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1397
+ end
1398
+ return data, status_code, headers
1399
+ end
1400
+
1401
+ # list or watch objects of kind ResourceClaim
1402
+ # @param [Hash] opts the optional parameters
1403
+ # @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.
1404
+ # @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.
1405
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1406
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1407
+ # @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.
1408
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1409
+ # @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
1410
+ # @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
1411
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1412
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1413
+ # @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.
1414
+ # @return [V1beta2ResourceClaimList]
1415
+ def list_resource_claim_for_all_namespaces_resource_v1beta2(opts = {})
1416
+ data, _status_code, _headers = list_resource_claim_for_all_namespaces_resource_v1beta2_with_http_info(opts)
1417
+ data
1418
+ end
1419
+
1420
+ # list or watch objects of kind ResourceClaim
1421
+ # @param [Hash] opts the optional parameters
1422
+ # @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.
1423
+ # @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.
1424
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1425
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1426
+ # @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.
1427
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1428
+ # @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
1429
+ # @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
1430
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1431
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1432
+ # @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.
1433
+ # @return [Array<(V1beta2ResourceClaimList, Integer, Hash)>] V1beta2ResourceClaimList data, response status code and response headers
1434
+ def list_resource_claim_for_all_namespaces_resource_v1beta2_with_http_info(opts = {})
1435
+ if @api_client.config.debugging
1436
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_resource_claim_for_all_namespaces_resource_v1beta2 ...'
1437
+ end
1438
+ # resource path
1439
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceclaims'
1440
+
1441
+ # query parameters
1442
+ query_params = opts[:query_params] || {}
1443
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1444
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1445
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1446
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1447
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1448
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1449
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1450
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1451
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1452
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1453
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1454
+
1455
+ # header parameters
1456
+ header_params = opts[:header_params] || {}
1457
+ # HTTP header 'Accept' (if needed)
1458
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1459
+
1460
+ # form parameters
1461
+ form_params = opts[:form_params] || {}
1462
+
1463
+ # http body (model)
1464
+ post_body = opts[:debug_body]
1465
+
1466
+ # return_type
1467
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimList'
1468
+
1469
+ # auth_names
1470
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1471
+
1472
+ new_options = opts.merge(
1473
+ :operation => :"ResourceV1beta2Api.list_resource_claim_for_all_namespaces_resource_v1beta2",
1474
+ :header_params => header_params,
1475
+ :query_params => query_params,
1476
+ :form_params => form_params,
1477
+ :body => post_body,
1478
+ :auth_names => auth_names,
1479
+ :return_type => return_type
1480
+ )
1481
+
1482
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1483
+ if @api_client.config.debugging
1484
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#list_resource_claim_for_all_namespaces_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1485
+ end
1486
+ return data, status_code, headers
1487
+ end
1488
+
1489
+ # list or watch objects of kind ResourceClaimTemplate
1490
+ # @param [Hash] opts the optional parameters
1491
+ # @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.
1492
+ # @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.
1493
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1494
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1495
+ # @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.
1496
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1497
+ # @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
1498
+ # @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
1499
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1500
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1501
+ # @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.
1502
+ # @return [V1beta2ResourceClaimTemplateList]
1503
+ def list_resource_claim_template_for_all_namespaces_resource_v1beta2(opts = {})
1504
+ data, _status_code, _headers = list_resource_claim_template_for_all_namespaces_resource_v1beta2_with_http_info(opts)
1505
+ data
1506
+ end
1507
+
1508
+ # list or watch objects of kind ResourceClaimTemplate
1509
+ # @param [Hash] opts the optional parameters
1510
+ # @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.
1511
+ # @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.
1512
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1513
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1514
+ # @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.
1515
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1516
+ # @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
1517
+ # @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
1518
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1519
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1520
+ # @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.
1521
+ # @return [Array<(V1beta2ResourceClaimTemplateList, Integer, Hash)>] V1beta2ResourceClaimTemplateList data, response status code and response headers
1522
+ def list_resource_claim_template_for_all_namespaces_resource_v1beta2_with_http_info(opts = {})
1523
+ if @api_client.config.debugging
1524
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_resource_claim_template_for_all_namespaces_resource_v1beta2 ...'
1525
+ end
1526
+ # resource path
1527
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceclaimtemplates'
1528
+
1529
+ # query parameters
1530
+ query_params = opts[:query_params] || {}
1531
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1532
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1533
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1534
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1535
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1536
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1537
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1538
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1539
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1540
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1541
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1542
+
1543
+ # header parameters
1544
+ header_params = opts[:header_params] || {}
1545
+ # HTTP header 'Accept' (if needed)
1546
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1547
+
1548
+ # form parameters
1549
+ form_params = opts[:form_params] || {}
1550
+
1551
+ # http body (model)
1552
+ post_body = opts[:debug_body]
1553
+
1554
+ # return_type
1555
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimTemplateList'
1556
+
1557
+ # auth_names
1558
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1559
+
1560
+ new_options = opts.merge(
1561
+ :operation => :"ResourceV1beta2Api.list_resource_claim_template_for_all_namespaces_resource_v1beta2",
1562
+ :header_params => header_params,
1563
+ :query_params => query_params,
1564
+ :form_params => form_params,
1565
+ :body => post_body,
1566
+ :auth_names => auth_names,
1567
+ :return_type => return_type
1568
+ )
1569
+
1570
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1571
+ if @api_client.config.debugging
1572
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#list_resource_claim_template_for_all_namespaces_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1573
+ end
1574
+ return data, status_code, headers
1575
+ end
1576
+
1577
+ # list or watch objects of kind ResourceSlice
1578
+ # @param [Hash] opts the optional parameters
1579
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1580
+ # @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.
1581
+ # @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.
1582
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1583
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1584
+ # @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.
1585
+ # @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
1586
+ # @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
1587
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1588
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1589
+ # @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.
1590
+ # @return [V1beta2ResourceSliceList]
1591
+ def list_resource_slice_resource_v1beta2(opts = {})
1592
+ data, _status_code, _headers = list_resource_slice_resource_v1beta2_with_http_info(opts)
1593
+ data
1594
+ end
1595
+
1596
+ # list or watch objects of kind ResourceSlice
1597
+ # @param [Hash] opts the optional parameters
1598
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1599
+ # @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.
1600
+ # @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.
1601
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1602
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1603
+ # @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.
1604
+ # @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
1605
+ # @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
1606
+ # @option opts [Boolean] :send_initial_events &#x60;sendInitialEvents&#x3D;true&#x60; may be set together with &#x60;watch&#x3D;true&#x60;. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \&quot;Bookmark\&quot; event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with &#x60;\&quot;k8s.io/initial-events-end\&quot;: \&quot;true\&quot;&#x60; annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When &#x60;sendInitialEvents&#x60; option is set, we require &#x60;resourceVersionMatch&#x60; option to also be set. The semantic of the watch request is as following: - &#x60;resourceVersionMatch&#x60; &#x3D; NotOlderThan is interpreted as \&quot;data at least as new as the provided &#x60;resourceVersion&#x60;\&quot; and the bookmark event is send when the state is synced to a &#x60;resourceVersion&#x60; at least as fresh as the one provided by the ListOptions. If &#x60;resourceVersion&#x60; is unset, this is interpreted as \&quot;consistent read\&quot; and the bookmark event is send when the state is synced at least to the moment when request started being processed. - &#x60;resourceVersionMatch&#x60; set to any other value or unset Invalid error is returned. Defaults to true if &#x60;resourceVersion&#x3D;\&quot;\&quot;&#x60; or &#x60;resourceVersion&#x3D;\&quot;0\&quot;&#x60; (for backward compatibility reasons) and to false otherwise.
1607
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1608
+ # @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.
1609
+ # @return [Array<(V1beta2ResourceSliceList, Integer, Hash)>] V1beta2ResourceSliceList data, response status code and response headers
1610
+ def list_resource_slice_resource_v1beta2_with_http_info(opts = {})
1611
+ if @api_client.config.debugging
1612
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.list_resource_slice_resource_v1beta2 ...'
1613
+ end
1614
+ # resource path
1615
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices'
1616
+
1617
+ # query parameters
1618
+ query_params = opts[:query_params] || {}
1619
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1620
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1621
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1622
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1623
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1624
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1625
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1626
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1627
+ query_params[:'sendInitialEvents'] = opts[:'send_initial_events'] if !opts[:'send_initial_events'].nil?
1628
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1629
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1630
+
1631
+ # header parameters
1632
+ header_params = opts[:header_params] || {}
1633
+ # HTTP header 'Accept' (if needed)
1634
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq'])
1635
+
1636
+ # form parameters
1637
+ form_params = opts[:form_params] || {}
1638
+
1639
+ # http body (model)
1640
+ post_body = opts[:debug_body]
1641
+
1642
+ # return_type
1643
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceSliceList'
1644
+
1645
+ # auth_names
1646
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1647
+
1648
+ new_options = opts.merge(
1649
+ :operation => :"ResourceV1beta2Api.list_resource_slice_resource_v1beta2",
1650
+ :header_params => header_params,
1651
+ :query_params => query_params,
1652
+ :form_params => form_params,
1653
+ :body => post_body,
1654
+ :auth_names => auth_names,
1655
+ :return_type => return_type
1656
+ )
1657
+
1658
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1659
+ if @api_client.config.debugging
1660
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#list_resource_slice_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1661
+ end
1662
+ return data, status_code, headers
1663
+ end
1664
+
1665
+ # partially update the specified DeviceClass
1666
+ # @param name [String] name of the DeviceClass
1667
+ # @param body [Object]
1668
+ # @param [Hash] opts the optional parameters
1669
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1670
+ # @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
1671
+ # @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).
1672
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1673
+ # @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.
1674
+ # @return [V1beta2DeviceClass]
1675
+ def patch_device_class_resource_v1beta2(name, body, opts = {})
1676
+ data, _status_code, _headers = patch_device_class_resource_v1beta2_with_http_info(name, body, opts)
1677
+ data
1678
+ end
1679
+
1680
+ # partially update the specified DeviceClass
1681
+ # @param name [String] name of the DeviceClass
1682
+ # @param body [Object]
1683
+ # @param [Hash] opts the optional parameters
1684
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1685
+ # @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
1686
+ # @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).
1687
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1688
+ # @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.
1689
+ # @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
1690
+ def patch_device_class_resource_v1beta2_with_http_info(name, body, opts = {})
1691
+ if @api_client.config.debugging
1692
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_device_class_resource_v1beta2 ...'
1693
+ end
1694
+ # verify the required parameter 'name' is set
1695
+ if @api_client.config.client_side_validation && name.nil?
1696
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_device_class_resource_v1beta2"
1697
+ end
1698
+ # verify the required parameter 'body' is set
1699
+ if @api_client.config.client_side_validation && body.nil?
1700
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_device_class_resource_v1beta2"
1701
+ end
1702
+ # resource path
1703
+ local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
1704
+
1705
+ # query parameters
1706
+ query_params = opts[:query_params] || {}
1707
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1708
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1709
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1710
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1711
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1712
+
1713
+ # header parameters
1714
+ header_params = opts[:header_params] || {}
1715
+ # HTTP header 'Accept' (if needed)
1716
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1717
+ # HTTP header 'Content-Type'
1718
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
1719
+
1720
+ # form parameters
1721
+ form_params = opts[:form_params] || {}
1722
+
1723
+ # http body (model)
1724
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1725
+
1726
+ # return_type
1727
+ return_type = opts[:debug_return_type] || 'V1beta2DeviceClass'
1728
+
1729
+ # auth_names
1730
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1731
+
1732
+ new_options = opts.merge(
1733
+ :operation => :"ResourceV1beta2Api.patch_device_class_resource_v1beta2",
1734
+ :header_params => header_params,
1735
+ :query_params => query_params,
1736
+ :form_params => form_params,
1737
+ :body => post_body,
1738
+ :auth_names => auth_names,
1739
+ :return_type => return_type
1740
+ )
1741
+
1742
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1743
+ if @api_client.config.debugging
1744
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_device_class_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1745
+ end
1746
+ return data, status_code, headers
1747
+ end
1748
+
1749
+ # partially update the specified ResourceClaim
1750
+ # @param name [String] name of the ResourceClaim
1751
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1752
+ # @param body [Object]
1753
+ # @param [Hash] opts the optional parameters
1754
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1755
+ # @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
1756
+ # @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).
1757
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1758
+ # @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.
1759
+ # @return [V1beta2ResourceClaim]
1760
+ def patch_namespaced_resource_claim_resource_v1beta2(name, namespace, body, opts = {})
1761
+ data, _status_code, _headers = patch_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, body, opts)
1762
+ data
1763
+ end
1764
+
1765
+ # partially update the specified ResourceClaim
1766
+ # @param name [String] name of the ResourceClaim
1767
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1768
+ # @param body [Object]
1769
+ # @param [Hash] opts the optional parameters
1770
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1771
+ # @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
1772
+ # @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).
1773
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1774
+ # @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.
1775
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
1776
+ def patch_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, body, opts = {})
1777
+ if @api_client.config.debugging
1778
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_namespaced_resource_claim_resource_v1beta2 ...'
1779
+ end
1780
+ # verify the required parameter 'name' is set
1781
+ if @api_client.config.client_side_validation && name.nil?
1782
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_resource_v1beta2"
1783
+ end
1784
+ # verify the required parameter 'namespace' is set
1785
+ if @api_client.config.client_side_validation && namespace.nil?
1786
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_resource_v1beta2"
1787
+ end
1788
+ # verify the required parameter 'body' is set
1789
+ if @api_client.config.client_side_validation && body.nil?
1790
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_resource_v1beta2"
1791
+ end
1792
+ # resource path
1793
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1794
+
1795
+ # query parameters
1796
+ query_params = opts[:query_params] || {}
1797
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1798
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1799
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1800
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1801
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1802
+
1803
+ # header parameters
1804
+ header_params = opts[:header_params] || {}
1805
+ # HTTP header 'Accept' (if needed)
1806
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1807
+ # HTTP header 'Content-Type'
1808
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
1809
+
1810
+ # form parameters
1811
+ form_params = opts[:form_params] || {}
1812
+
1813
+ # http body (model)
1814
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1815
+
1816
+ # return_type
1817
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
1818
+
1819
+ # auth_names
1820
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1821
+
1822
+ new_options = opts.merge(
1823
+ :operation => :"ResourceV1beta2Api.patch_namespaced_resource_claim_resource_v1beta2",
1824
+ :header_params => header_params,
1825
+ :query_params => query_params,
1826
+ :form_params => form_params,
1827
+ :body => post_body,
1828
+ :auth_names => auth_names,
1829
+ :return_type => return_type
1830
+ )
1831
+
1832
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1833
+ if @api_client.config.debugging
1834
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_namespaced_resource_claim_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1835
+ end
1836
+ return data, status_code, headers
1837
+ end
1838
+
1839
+ # partially update status of the specified ResourceClaim
1840
+ # @param name [String] name of the ResourceClaim
1841
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1842
+ # @param body [Object]
1843
+ # @param [Hash] opts the optional parameters
1844
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1845
+ # @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
1846
+ # @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).
1847
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1848
+ # @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.
1849
+ # @return [V1beta2ResourceClaim]
1850
+ def patch_namespaced_resource_claim_status_resource_v1beta2(name, namespace, body, opts = {})
1851
+ data, _status_code, _headers = patch_namespaced_resource_claim_status_resource_v1beta2_with_http_info(name, namespace, body, opts)
1852
+ data
1853
+ end
1854
+
1855
+ # partially update status of the specified ResourceClaim
1856
+ # @param name [String] name of the ResourceClaim
1857
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1858
+ # @param body [Object]
1859
+ # @param [Hash] opts the optional parameters
1860
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1861
+ # @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
1862
+ # @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).
1863
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1864
+ # @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.
1865
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
1866
+ def patch_namespaced_resource_claim_status_resource_v1beta2_with_http_info(name, namespace, body, opts = {})
1867
+ if @api_client.config.debugging
1868
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_namespaced_resource_claim_status_resource_v1beta2 ...'
1869
+ end
1870
+ # verify the required parameter 'name' is set
1871
+ if @api_client.config.client_side_validation && name.nil?
1872
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_status_resource_v1beta2"
1873
+ end
1874
+ # verify the required parameter 'namespace' is set
1875
+ if @api_client.config.client_side_validation && namespace.nil?
1876
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_status_resource_v1beta2"
1877
+ end
1878
+ # verify the required parameter 'body' is set
1879
+ if @api_client.config.client_side_validation && body.nil?
1880
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_status_resource_v1beta2"
1881
+ end
1882
+ # resource path
1883
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1884
+
1885
+ # query parameters
1886
+ query_params = opts[:query_params] || {}
1887
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1888
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1889
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1890
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1891
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1892
+
1893
+ # header parameters
1894
+ header_params = opts[:header_params] || {}
1895
+ # HTTP header 'Accept' (if needed)
1896
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1897
+ # HTTP header 'Content-Type'
1898
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
1899
+
1900
+ # form parameters
1901
+ form_params = opts[:form_params] || {}
1902
+
1903
+ # http body (model)
1904
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1905
+
1906
+ # return_type
1907
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
1908
+
1909
+ # auth_names
1910
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1911
+
1912
+ new_options = opts.merge(
1913
+ :operation => :"ResourceV1beta2Api.patch_namespaced_resource_claim_status_resource_v1beta2",
1914
+ :header_params => header_params,
1915
+ :query_params => query_params,
1916
+ :form_params => form_params,
1917
+ :body => post_body,
1918
+ :auth_names => auth_names,
1919
+ :return_type => return_type
1920
+ )
1921
+
1922
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1923
+ if @api_client.config.debugging
1924
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_namespaced_resource_claim_status_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1925
+ end
1926
+ return data, status_code, headers
1927
+ end
1928
+
1929
+ # partially update the specified ResourceClaimTemplate
1930
+ # @param name [String] name of the ResourceClaimTemplate
1931
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1932
+ # @param body [Object]
1933
+ # @param [Hash] opts the optional parameters
1934
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1935
+ # @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
1936
+ # @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).
1937
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1938
+ # @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.
1939
+ # @return [V1beta2ResourceClaimTemplate]
1940
+ def patch_namespaced_resource_claim_template_resource_v1beta2(name, namespace, body, opts = {})
1941
+ data, _status_code, _headers = patch_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, body, opts)
1942
+ data
1943
+ end
1944
+
1945
+ # partially update the specified ResourceClaimTemplate
1946
+ # @param name [String] name of the ResourceClaimTemplate
1947
+ # @param namespace [String] object name and auth scope, such as for teams and projects
1948
+ # @param body [Object]
1949
+ # @param [Hash] opts the optional parameters
1950
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
1951
+ # @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
1952
+ # @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).
1953
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
1954
+ # @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.
1955
+ # @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
1956
+ def patch_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, body, opts = {})
1957
+ if @api_client.config.debugging
1958
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_namespaced_resource_claim_template_resource_v1beta2 ...'
1959
+ end
1960
+ # verify the required parameter 'name' is set
1961
+ if @api_client.config.client_side_validation && name.nil?
1962
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_template_resource_v1beta2"
1963
+ end
1964
+ # verify the required parameter 'namespace' is set
1965
+ if @api_client.config.client_side_validation && namespace.nil?
1966
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_template_resource_v1beta2"
1967
+ end
1968
+ # verify the required parameter 'body' is set
1969
+ if @api_client.config.client_side_validation && body.nil?
1970
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_namespaced_resource_claim_template_resource_v1beta2"
1971
+ end
1972
+ # resource path
1973
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
1974
+
1975
+ # query parameters
1976
+ query_params = opts[:query_params] || {}
1977
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1978
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1979
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1980
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1981
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1982
+
1983
+ # header parameters
1984
+ header_params = opts[:header_params] || {}
1985
+ # HTTP header 'Accept' (if needed)
1986
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
1987
+ # HTTP header 'Content-Type'
1988
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
1989
+
1990
+ # form parameters
1991
+ form_params = opts[:form_params] || {}
1992
+
1993
+ # http body (model)
1994
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1995
+
1996
+ # return_type
1997
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimTemplate'
1998
+
1999
+ # auth_names
2000
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2001
+
2002
+ new_options = opts.merge(
2003
+ :operation => :"ResourceV1beta2Api.patch_namespaced_resource_claim_template_resource_v1beta2",
2004
+ :header_params => header_params,
2005
+ :query_params => query_params,
2006
+ :form_params => form_params,
2007
+ :body => post_body,
2008
+ :auth_names => auth_names,
2009
+ :return_type => return_type
2010
+ )
2011
+
2012
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2013
+ if @api_client.config.debugging
2014
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_namespaced_resource_claim_template_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2015
+ end
2016
+ return data, status_code, headers
2017
+ end
2018
+
2019
+ # partially update the specified ResourceSlice
2020
+ # @param name [String] name of the ResourceSlice
2021
+ # @param body [Object]
2022
+ # @param [Hash] opts the optional parameters
2023
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2024
+ # @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
2025
+ # @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).
2026
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2027
+ # @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.
2028
+ # @return [V1beta2ResourceSlice]
2029
+ def patch_resource_slice_resource_v1beta2(name, body, opts = {})
2030
+ data, _status_code, _headers = patch_resource_slice_resource_v1beta2_with_http_info(name, body, opts)
2031
+ data
2032
+ end
2033
+
2034
+ # partially update the specified ResourceSlice
2035
+ # @param name [String] name of the ResourceSlice
2036
+ # @param body [Object]
2037
+ # @param [Hash] opts the optional parameters
2038
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2039
+ # @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
2040
+ # @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).
2041
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2042
+ # @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.
2043
+ # @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
2044
+ def patch_resource_slice_resource_v1beta2_with_http_info(name, body, opts = {})
2045
+ if @api_client.config.debugging
2046
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.patch_resource_slice_resource_v1beta2 ...'
2047
+ end
2048
+ # verify the required parameter 'name' is set
2049
+ if @api_client.config.client_side_validation && name.nil?
2050
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.patch_resource_slice_resource_v1beta2"
2051
+ end
2052
+ # verify the required parameter 'body' is set
2053
+ if @api_client.config.client_side_validation && body.nil?
2054
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.patch_resource_slice_resource_v1beta2"
2055
+ end
2056
+ # resource path
2057
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2058
+
2059
+ # query parameters
2060
+ query_params = opts[:query_params] || {}
2061
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2062
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2063
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2064
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2065
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2066
+
2067
+ # header parameters
2068
+ header_params = opts[:header_params] || {}
2069
+ # HTTP header 'Accept' (if needed)
2070
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2071
+ # HTTP header 'Content-Type'
2072
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor'])
2073
+
2074
+ # form parameters
2075
+ form_params = opts[:form_params] || {}
2076
+
2077
+ # http body (model)
2078
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2079
+
2080
+ # return_type
2081
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceSlice'
2082
+
2083
+ # auth_names
2084
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2085
+
2086
+ new_options = opts.merge(
2087
+ :operation => :"ResourceV1beta2Api.patch_resource_slice_resource_v1beta2",
2088
+ :header_params => header_params,
2089
+ :query_params => query_params,
2090
+ :form_params => form_params,
2091
+ :body => post_body,
2092
+ :auth_names => auth_names,
2093
+ :return_type => return_type
2094
+ )
2095
+
2096
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2097
+ if @api_client.config.debugging
2098
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#patch_resource_slice_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2099
+ end
2100
+ return data, status_code, headers
2101
+ end
2102
+
2103
+ # read the specified DeviceClass
2104
+ # @param name [String] name of the DeviceClass
2105
+ # @param [Hash] opts the optional parameters
2106
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2107
+ # @return [V1beta2DeviceClass]
2108
+ def read_device_class_resource_v1beta2(name, opts = {})
2109
+ data, _status_code, _headers = read_device_class_resource_v1beta2_with_http_info(name, opts)
2110
+ data
2111
+ end
2112
+
2113
+ # read the specified DeviceClass
2114
+ # @param name [String] name of the DeviceClass
2115
+ # @param [Hash] opts the optional parameters
2116
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2117
+ # @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
2118
+ def read_device_class_resource_v1beta2_with_http_info(name, opts = {})
2119
+ if @api_client.config.debugging
2120
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_device_class_resource_v1beta2 ...'
2121
+ end
2122
+ # verify the required parameter 'name' is set
2123
+ if @api_client.config.client_side_validation && name.nil?
2124
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_device_class_resource_v1beta2"
2125
+ end
2126
+ # resource path
2127
+ local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2128
+
2129
+ # query parameters
2130
+ query_params = opts[:query_params] || {}
2131
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2132
+
2133
+ # header parameters
2134
+ header_params = opts[:header_params] || {}
2135
+ # HTTP header 'Accept' (if needed)
2136
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2137
+
2138
+ # form parameters
2139
+ form_params = opts[:form_params] || {}
2140
+
2141
+ # http body (model)
2142
+ post_body = opts[:debug_body]
2143
+
2144
+ # return_type
2145
+ return_type = opts[:debug_return_type] || 'V1beta2DeviceClass'
2146
+
2147
+ # auth_names
2148
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2149
+
2150
+ new_options = opts.merge(
2151
+ :operation => :"ResourceV1beta2Api.read_device_class_resource_v1beta2",
2152
+ :header_params => header_params,
2153
+ :query_params => query_params,
2154
+ :form_params => form_params,
2155
+ :body => post_body,
2156
+ :auth_names => auth_names,
2157
+ :return_type => return_type
2158
+ )
2159
+
2160
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2161
+ if @api_client.config.debugging
2162
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#read_device_class_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2163
+ end
2164
+ return data, status_code, headers
2165
+ end
2166
+
2167
+ # read the specified ResourceClaim
2168
+ # @param name [String] name of the ResourceClaim
2169
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2170
+ # @param [Hash] opts the optional parameters
2171
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2172
+ # @return [V1beta2ResourceClaim]
2173
+ def read_namespaced_resource_claim_resource_v1beta2(name, namespace, opts = {})
2174
+ data, _status_code, _headers = read_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, opts)
2175
+ data
2176
+ end
2177
+
2178
+ # read the specified ResourceClaim
2179
+ # @param name [String] name of the ResourceClaim
2180
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2181
+ # @param [Hash] opts the optional parameters
2182
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2183
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
2184
+ def read_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, opts = {})
2185
+ if @api_client.config.debugging
2186
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_namespaced_resource_claim_resource_v1beta2 ...'
2187
+ end
2188
+ # verify the required parameter 'name' is set
2189
+ if @api_client.config.client_side_validation && name.nil?
2190
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_namespaced_resource_claim_resource_v1beta2"
2191
+ end
2192
+ # verify the required parameter 'namespace' is set
2193
+ if @api_client.config.client_side_validation && namespace.nil?
2194
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.read_namespaced_resource_claim_resource_v1beta2"
2195
+ end
2196
+ # resource path
2197
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2198
+
2199
+ # query parameters
2200
+ query_params = opts[:query_params] || {}
2201
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2202
+
2203
+ # header parameters
2204
+ header_params = opts[:header_params] || {}
2205
+ # HTTP header 'Accept' (if needed)
2206
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2207
+
2208
+ # form parameters
2209
+ form_params = opts[:form_params] || {}
2210
+
2211
+ # http body (model)
2212
+ post_body = opts[:debug_body]
2213
+
2214
+ # return_type
2215
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
2216
+
2217
+ # auth_names
2218
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2219
+
2220
+ new_options = opts.merge(
2221
+ :operation => :"ResourceV1beta2Api.read_namespaced_resource_claim_resource_v1beta2",
2222
+ :header_params => header_params,
2223
+ :query_params => query_params,
2224
+ :form_params => form_params,
2225
+ :body => post_body,
2226
+ :auth_names => auth_names,
2227
+ :return_type => return_type
2228
+ )
2229
+
2230
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2231
+ if @api_client.config.debugging
2232
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#read_namespaced_resource_claim_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2233
+ end
2234
+ return data, status_code, headers
2235
+ end
2236
+
2237
+ # read status of the specified ResourceClaim
2238
+ # @param name [String] name of the ResourceClaim
2239
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2240
+ # @param [Hash] opts the optional parameters
2241
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2242
+ # @return [V1beta2ResourceClaim]
2243
+ def read_namespaced_resource_claim_status_resource_v1beta2(name, namespace, opts = {})
2244
+ data, _status_code, _headers = read_namespaced_resource_claim_status_resource_v1beta2_with_http_info(name, namespace, opts)
2245
+ data
2246
+ end
2247
+
2248
+ # read status of the specified ResourceClaim
2249
+ # @param name [String] name of the ResourceClaim
2250
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2251
+ # @param [Hash] opts the optional parameters
2252
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2253
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
2254
+ def read_namespaced_resource_claim_status_resource_v1beta2_with_http_info(name, namespace, opts = {})
2255
+ if @api_client.config.debugging
2256
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_namespaced_resource_claim_status_resource_v1beta2 ...'
2257
+ end
2258
+ # verify the required parameter 'name' is set
2259
+ if @api_client.config.client_side_validation && name.nil?
2260
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_namespaced_resource_claim_status_resource_v1beta2"
2261
+ end
2262
+ # verify the required parameter 'namespace' is set
2263
+ if @api_client.config.client_side_validation && namespace.nil?
2264
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.read_namespaced_resource_claim_status_resource_v1beta2"
2265
+ end
2266
+ # resource path
2267
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2268
+
2269
+ # query parameters
2270
+ query_params = opts[:query_params] || {}
2271
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2272
+
2273
+ # header parameters
2274
+ header_params = opts[:header_params] || {}
2275
+ # HTTP header 'Accept' (if needed)
2276
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2277
+
2278
+ # form parameters
2279
+ form_params = opts[:form_params] || {}
2280
+
2281
+ # http body (model)
2282
+ post_body = opts[:debug_body]
2283
+
2284
+ # return_type
2285
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
2286
+
2287
+ # auth_names
2288
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2289
+
2290
+ new_options = opts.merge(
2291
+ :operation => :"ResourceV1beta2Api.read_namespaced_resource_claim_status_resource_v1beta2",
2292
+ :header_params => header_params,
2293
+ :query_params => query_params,
2294
+ :form_params => form_params,
2295
+ :body => post_body,
2296
+ :auth_names => auth_names,
2297
+ :return_type => return_type
2298
+ )
2299
+
2300
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2301
+ if @api_client.config.debugging
2302
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#read_namespaced_resource_claim_status_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2303
+ end
2304
+ return data, status_code, headers
2305
+ end
2306
+
2307
+ # read the specified ResourceClaimTemplate
2308
+ # @param name [String] name of the ResourceClaimTemplate
2309
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2310
+ # @param [Hash] opts the optional parameters
2311
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2312
+ # @return [V1beta2ResourceClaimTemplate]
2313
+ def read_namespaced_resource_claim_template_resource_v1beta2(name, namespace, opts = {})
2314
+ data, _status_code, _headers = read_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, opts)
2315
+ data
2316
+ end
2317
+
2318
+ # read the specified ResourceClaimTemplate
2319
+ # @param name [String] name of the ResourceClaimTemplate
2320
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2321
+ # @param [Hash] opts the optional parameters
2322
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2323
+ # @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
2324
+ def read_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, opts = {})
2325
+ if @api_client.config.debugging
2326
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_namespaced_resource_claim_template_resource_v1beta2 ...'
2327
+ end
2328
+ # verify the required parameter 'name' is set
2329
+ if @api_client.config.client_side_validation && name.nil?
2330
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_namespaced_resource_claim_template_resource_v1beta2"
2331
+ end
2332
+ # verify the required parameter 'namespace' is set
2333
+ if @api_client.config.client_side_validation && namespace.nil?
2334
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.read_namespaced_resource_claim_template_resource_v1beta2"
2335
+ end
2336
+ # resource path
2337
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2338
+
2339
+ # query parameters
2340
+ query_params = opts[:query_params] || {}
2341
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2342
+
2343
+ # header parameters
2344
+ header_params = opts[:header_params] || {}
2345
+ # HTTP header 'Accept' (if needed)
2346
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
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] || 'V1beta2ResourceClaimTemplate'
2356
+
2357
+ # auth_names
2358
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2359
+
2360
+ new_options = opts.merge(
2361
+ :operation => :"ResourceV1beta2Api.read_namespaced_resource_claim_template_resource_v1beta2",
2362
+ :header_params => header_params,
2363
+ :query_params => query_params,
2364
+ :form_params => form_params,
2365
+ :body => post_body,
2366
+ :auth_names => auth_names,
2367
+ :return_type => 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: ResourceV1beta2Api#read_namespaced_resource_claim_template_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2373
+ end
2374
+ return data, status_code, headers
2375
+ end
2376
+
2377
+ # read the specified ResourceSlice
2378
+ # @param name [String] name of the ResourceSlice
2379
+ # @param [Hash] opts the optional parameters
2380
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2381
+ # @return [V1beta2ResourceSlice]
2382
+ def read_resource_slice_resource_v1beta2(name, opts = {})
2383
+ data, _status_code, _headers = read_resource_slice_resource_v1beta2_with_http_info(name, opts)
2384
+ data
2385
+ end
2386
+
2387
+ # read the specified ResourceSlice
2388
+ # @param name [String] name of the ResourceSlice
2389
+ # @param [Hash] opts the optional parameters
2390
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2391
+ # @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
2392
+ def read_resource_slice_resource_v1beta2_with_http_info(name, opts = {})
2393
+ if @api_client.config.debugging
2394
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.read_resource_slice_resource_v1beta2 ...'
2395
+ end
2396
+ # verify the required parameter 'name' is set
2397
+ if @api_client.config.client_side_validation && name.nil?
2398
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.read_resource_slice_resource_v1beta2"
2399
+ end
2400
+ # resource path
2401
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2402
+
2403
+ # query parameters
2404
+ query_params = opts[:query_params] || {}
2405
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2406
+
2407
+ # header parameters
2408
+ header_params = opts[:header_params] || {}
2409
+ # HTTP header 'Accept' (if needed)
2410
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2411
+
2412
+ # form parameters
2413
+ form_params = opts[:form_params] || {}
2414
+
2415
+ # http body (model)
2416
+ post_body = opts[:debug_body]
2417
+
2418
+ # return_type
2419
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceSlice'
2420
+
2421
+ # auth_names
2422
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2423
+
2424
+ new_options = opts.merge(
2425
+ :operation => :"ResourceV1beta2Api.read_resource_slice_resource_v1beta2",
2426
+ :header_params => header_params,
2427
+ :query_params => query_params,
2428
+ :form_params => form_params,
2429
+ :body => post_body,
2430
+ :auth_names => auth_names,
2431
+ :return_type => return_type
2432
+ )
2433
+
2434
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2435
+ if @api_client.config.debugging
2436
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#read_resource_slice_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2437
+ end
2438
+ return data, status_code, headers
2439
+ end
2440
+
2441
+ # replace the specified DeviceClass
2442
+ # @param name [String] name of the DeviceClass
2443
+ # @param body [V1beta2DeviceClass]
2444
+ # @param [Hash] opts the optional parameters
2445
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2446
+ # @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
2447
+ # @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.
2448
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2449
+ # @return [V1beta2DeviceClass]
2450
+ def replace_device_class_resource_v1beta2(name, body, opts = {})
2451
+ data, _status_code, _headers = replace_device_class_resource_v1beta2_with_http_info(name, body, opts)
2452
+ data
2453
+ end
2454
+
2455
+ # replace the specified DeviceClass
2456
+ # @param name [String] name of the DeviceClass
2457
+ # @param body [V1beta2DeviceClass]
2458
+ # @param [Hash] opts the optional parameters
2459
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2460
+ # @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
2461
+ # @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.
2462
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2463
+ # @return [Array<(V1beta2DeviceClass, Integer, Hash)>] V1beta2DeviceClass data, response status code and response headers
2464
+ def replace_device_class_resource_v1beta2_with_http_info(name, body, opts = {})
2465
+ if @api_client.config.debugging
2466
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_device_class_resource_v1beta2 ...'
2467
+ end
2468
+ # verify the required parameter 'name' is set
2469
+ if @api_client.config.client_side_validation && name.nil?
2470
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_device_class_resource_v1beta2"
2471
+ end
2472
+ # verify the required parameter 'body' is set
2473
+ if @api_client.config.client_side_validation && body.nil?
2474
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_device_class_resource_v1beta2"
2475
+ end
2476
+ # resource path
2477
+ local_var_path = '/apis/resource.k8s.io/v1beta2/deviceclasses/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2478
+
2479
+ # query parameters
2480
+ query_params = opts[:query_params] || {}
2481
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2482
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2483
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2484
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2485
+
2486
+ # header parameters
2487
+ header_params = opts[:header_params] || {}
2488
+ # HTTP header 'Accept' (if needed)
2489
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2490
+
2491
+ # form parameters
2492
+ form_params = opts[:form_params] || {}
2493
+
2494
+ # http body (model)
2495
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2496
+
2497
+ # return_type
2498
+ return_type = opts[:debug_return_type] || 'V1beta2DeviceClass'
2499
+
2500
+ # auth_names
2501
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2502
+
2503
+ new_options = opts.merge(
2504
+ :operation => :"ResourceV1beta2Api.replace_device_class_resource_v1beta2",
2505
+ :header_params => header_params,
2506
+ :query_params => query_params,
2507
+ :form_params => form_params,
2508
+ :body => post_body,
2509
+ :auth_names => auth_names,
2510
+ :return_type => return_type
2511
+ )
2512
+
2513
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2514
+ if @api_client.config.debugging
2515
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_device_class_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2516
+ end
2517
+ return data, status_code, headers
2518
+ end
2519
+
2520
+ # replace the specified ResourceClaim
2521
+ # @param name [String] name of the ResourceClaim
2522
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2523
+ # @param body [V1beta2ResourceClaim]
2524
+ # @param [Hash] opts the optional parameters
2525
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2526
+ # @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
2527
+ # @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.
2528
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2529
+ # @return [V1beta2ResourceClaim]
2530
+ def replace_namespaced_resource_claim_resource_v1beta2(name, namespace, body, opts = {})
2531
+ data, _status_code, _headers = replace_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, body, opts)
2532
+ data
2533
+ end
2534
+
2535
+ # replace the specified ResourceClaim
2536
+ # @param name [String] name of the ResourceClaim
2537
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2538
+ # @param body [V1beta2ResourceClaim]
2539
+ # @param [Hash] opts the optional parameters
2540
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2541
+ # @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
2542
+ # @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.
2543
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2544
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
2545
+ def replace_namespaced_resource_claim_resource_v1beta2_with_http_info(name, namespace, body, opts = {})
2546
+ if @api_client.config.debugging
2547
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_namespaced_resource_claim_resource_v1beta2 ...'
2548
+ end
2549
+ # verify the required parameter 'name' is set
2550
+ if @api_client.config.client_side_validation && name.nil?
2551
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_resource_v1beta2"
2552
+ end
2553
+ # verify the required parameter 'namespace' is set
2554
+ if @api_client.config.client_side_validation && namespace.nil?
2555
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_resource_v1beta2"
2556
+ end
2557
+ # verify the required parameter 'body' is set
2558
+ if @api_client.config.client_side_validation && body.nil?
2559
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_resource_v1beta2"
2560
+ end
2561
+ # resource path
2562
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2563
+
2564
+ # query parameters
2565
+ query_params = opts[:query_params] || {}
2566
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2567
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2568
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2569
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2570
+
2571
+ # header parameters
2572
+ header_params = opts[:header_params] || {}
2573
+ # HTTP header 'Accept' (if needed)
2574
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2575
+
2576
+ # form parameters
2577
+ form_params = opts[:form_params] || {}
2578
+
2579
+ # http body (model)
2580
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2581
+
2582
+ # return_type
2583
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
2584
+
2585
+ # auth_names
2586
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2587
+
2588
+ new_options = opts.merge(
2589
+ :operation => :"ResourceV1beta2Api.replace_namespaced_resource_claim_resource_v1beta2",
2590
+ :header_params => header_params,
2591
+ :query_params => query_params,
2592
+ :form_params => form_params,
2593
+ :body => post_body,
2594
+ :auth_names => auth_names,
2595
+ :return_type => return_type
2596
+ )
2597
+
2598
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2599
+ if @api_client.config.debugging
2600
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_namespaced_resource_claim_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2601
+ end
2602
+ return data, status_code, headers
2603
+ end
2604
+
2605
+ # replace status of the specified ResourceClaim
2606
+ # @param name [String] name of the ResourceClaim
2607
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2608
+ # @param body [V1beta2ResourceClaim]
2609
+ # @param [Hash] opts the optional parameters
2610
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2611
+ # @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
2612
+ # @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.
2613
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2614
+ # @return [V1beta2ResourceClaim]
2615
+ def replace_namespaced_resource_claim_status_resource_v1beta2(name, namespace, body, opts = {})
2616
+ data, _status_code, _headers = replace_namespaced_resource_claim_status_resource_v1beta2_with_http_info(name, namespace, body, opts)
2617
+ data
2618
+ end
2619
+
2620
+ # replace status of the specified ResourceClaim
2621
+ # @param name [String] name of the ResourceClaim
2622
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2623
+ # @param body [V1beta2ResourceClaim]
2624
+ # @param [Hash] opts the optional parameters
2625
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2626
+ # @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
2627
+ # @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.
2628
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2629
+ # @return [Array<(V1beta2ResourceClaim, Integer, Hash)>] V1beta2ResourceClaim data, response status code and response headers
2630
+ def replace_namespaced_resource_claim_status_resource_v1beta2_with_http_info(name, namespace, body, opts = {})
2631
+ if @api_client.config.debugging
2632
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_namespaced_resource_claim_status_resource_v1beta2 ...'
2633
+ end
2634
+ # verify the required parameter 'name' is set
2635
+ if @api_client.config.client_side_validation && name.nil?
2636
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_status_resource_v1beta2"
2637
+ end
2638
+ # verify the required parameter 'namespace' is set
2639
+ if @api_client.config.client_side_validation && namespace.nil?
2640
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_status_resource_v1beta2"
2641
+ end
2642
+ # verify the required parameter 'body' is set
2643
+ if @api_client.config.client_side_validation && body.nil?
2644
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_status_resource_v1beta2"
2645
+ end
2646
+ # resource path
2647
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2648
+
2649
+ # query parameters
2650
+ query_params = opts[:query_params] || {}
2651
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2652
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2653
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2654
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2655
+
2656
+ # header parameters
2657
+ header_params = opts[:header_params] || {}
2658
+ # HTTP header 'Accept' (if needed)
2659
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2660
+
2661
+ # form parameters
2662
+ form_params = opts[:form_params] || {}
2663
+
2664
+ # http body (model)
2665
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2666
+
2667
+ # return_type
2668
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaim'
2669
+
2670
+ # auth_names
2671
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2672
+
2673
+ new_options = opts.merge(
2674
+ :operation => :"ResourceV1beta2Api.replace_namespaced_resource_claim_status_resource_v1beta2",
2675
+ :header_params => header_params,
2676
+ :query_params => query_params,
2677
+ :form_params => form_params,
2678
+ :body => post_body,
2679
+ :auth_names => auth_names,
2680
+ :return_type => return_type
2681
+ )
2682
+
2683
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2684
+ if @api_client.config.debugging
2685
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_namespaced_resource_claim_status_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2686
+ end
2687
+ return data, status_code, headers
2688
+ end
2689
+
2690
+ # replace the specified ResourceClaimTemplate
2691
+ # @param name [String] name of the ResourceClaimTemplate
2692
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2693
+ # @param body [V1beta2ResourceClaimTemplate]
2694
+ # @param [Hash] opts the optional parameters
2695
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2696
+ # @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
2697
+ # @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.
2698
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2699
+ # @return [V1beta2ResourceClaimTemplate]
2700
+ def replace_namespaced_resource_claim_template_resource_v1beta2(name, namespace, body, opts = {})
2701
+ data, _status_code, _headers = replace_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, body, opts)
2702
+ data
2703
+ end
2704
+
2705
+ # replace the specified ResourceClaimTemplate
2706
+ # @param name [String] name of the ResourceClaimTemplate
2707
+ # @param namespace [String] object name and auth scope, such as for teams and projects
2708
+ # @param body [V1beta2ResourceClaimTemplate]
2709
+ # @param [Hash] opts the optional parameters
2710
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2711
+ # @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
2712
+ # @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.
2713
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2714
+ # @return [Array<(V1beta2ResourceClaimTemplate, Integer, Hash)>] V1beta2ResourceClaimTemplate data, response status code and response headers
2715
+ def replace_namespaced_resource_claim_template_resource_v1beta2_with_http_info(name, namespace, body, opts = {})
2716
+ if @api_client.config.debugging
2717
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_namespaced_resource_claim_template_resource_v1beta2 ...'
2718
+ end
2719
+ # verify the required parameter 'name' is set
2720
+ if @api_client.config.client_side_validation && name.nil?
2721
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_template_resource_v1beta2"
2722
+ end
2723
+ # verify the required parameter 'namespace' is set
2724
+ if @api_client.config.client_side_validation && namespace.nil?
2725
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_template_resource_v1beta2"
2726
+ end
2727
+ # verify the required parameter 'body' is set
2728
+ if @api_client.config.client_side_validation && body.nil?
2729
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_namespaced_resource_claim_template_resource_v1beta2"
2730
+ end
2731
+ # resource path
2732
+ local_var_path = '/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s))
2733
+
2734
+ # query parameters
2735
+ query_params = opts[:query_params] || {}
2736
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2737
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2738
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2739
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2740
+
2741
+ # header parameters
2742
+ header_params = opts[:header_params] || {}
2743
+ # HTTP header 'Accept' (if needed)
2744
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2745
+
2746
+ # form parameters
2747
+ form_params = opts[:form_params] || {}
2748
+
2749
+ # http body (model)
2750
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2751
+
2752
+ # return_type
2753
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceClaimTemplate'
2754
+
2755
+ # auth_names
2756
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2757
+
2758
+ new_options = opts.merge(
2759
+ :operation => :"ResourceV1beta2Api.replace_namespaced_resource_claim_template_resource_v1beta2",
2760
+ :header_params => header_params,
2761
+ :query_params => query_params,
2762
+ :form_params => form_params,
2763
+ :body => post_body,
2764
+ :auth_names => auth_names,
2765
+ :return_type => return_type
2766
+ )
2767
+
2768
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2769
+ if @api_client.config.debugging
2770
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_namespaced_resource_claim_template_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2771
+ end
2772
+ return data, status_code, headers
2773
+ end
2774
+
2775
+ # replace the specified ResourceSlice
2776
+ # @param name [String] name of the ResourceSlice
2777
+ # @param body [V1beta2ResourceSlice]
2778
+ # @param [Hash] opts the optional parameters
2779
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2780
+ # @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
2781
+ # @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.
2782
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2783
+ # @return [V1beta2ResourceSlice]
2784
+ def replace_resource_slice_resource_v1beta2(name, body, opts = {})
2785
+ data, _status_code, _headers = replace_resource_slice_resource_v1beta2_with_http_info(name, body, opts)
2786
+ data
2787
+ end
2788
+
2789
+ # replace the specified ResourceSlice
2790
+ # @param name [String] name of the ResourceSlice
2791
+ # @param body [V1beta2ResourceSlice]
2792
+ # @param [Hash] opts the optional parameters
2793
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed. Defaults to &#39;false&#39; unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
2794
+ # @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
2795
+ # @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.
2796
+ # @option opts [String] :field_validation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
2797
+ # @return [Array<(V1beta2ResourceSlice, Integer, Hash)>] V1beta2ResourceSlice data, response status code and response headers
2798
+ def replace_resource_slice_resource_v1beta2_with_http_info(name, body, opts = {})
2799
+ if @api_client.config.debugging
2800
+ @api_client.config.logger.debug 'Calling API: ResourceV1beta2Api.replace_resource_slice_resource_v1beta2 ...'
2801
+ end
2802
+ # verify the required parameter 'name' is set
2803
+ if @api_client.config.client_side_validation && name.nil?
2804
+ fail ArgumentError, "Missing the required parameter 'name' when calling ResourceV1beta2Api.replace_resource_slice_resource_v1beta2"
2805
+ end
2806
+ # verify the required parameter 'body' is set
2807
+ if @api_client.config.client_side_validation && body.nil?
2808
+ fail ArgumentError, "Missing the required parameter 'body' when calling ResourceV1beta2Api.replace_resource_slice_resource_v1beta2"
2809
+ end
2810
+ # resource path
2811
+ local_var_path = '/apis/resource.k8s.io/v1beta2/resourceslices/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s))
2812
+
2813
+ # query parameters
2814
+ query_params = opts[:query_params] || {}
2815
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
2816
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2817
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2818
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2819
+
2820
+ # header parameters
2821
+ header_params = opts[:header_params] || {}
2822
+ # HTTP header 'Accept' (if needed)
2823
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor'])
2824
+
2825
+ # form parameters
2826
+ form_params = opts[:form_params] || {}
2827
+
2828
+ # http body (model)
2829
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2830
+
2831
+ # return_type
2832
+ return_type = opts[:debug_return_type] || 'V1beta2ResourceSlice'
2833
+
2834
+ # auth_names
2835
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2836
+
2837
+ new_options = opts.merge(
2838
+ :operation => :"ResourceV1beta2Api.replace_resource_slice_resource_v1beta2",
2839
+ :header_params => header_params,
2840
+ :query_params => query_params,
2841
+ :form_params => form_params,
2842
+ :body => post_body,
2843
+ :auth_names => auth_names,
2844
+ :return_type => return_type
2845
+ )
2846
+
2847
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2848
+ if @api_client.config.debugging
2849
+ @api_client.config.logger.debug "API called: ResourceV1beta2Api#replace_resource_slice_resource_v1beta2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2850
+ end
2851
+ return data, status_code, headers
2852
+ end
2853
+ end
2854
+ end