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