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,2665 @@
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 CustomObjectsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Creates a cluster scoped Custom object
23
+ # @param group [String] The custom resource's group name
24
+ # @param version [String] The custom resource's version
25
+ # @param plural [String] The custom resource's plural name. For TPRs this would be lowercase plural kind.
26
+ # @param body [Object] The JSON schema of the Resource to create.
27
+ # @param [Hash] opts the optional parameters
28
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
29
+ # @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
30
+ # @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).
31
+ # @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. (optional)
32
+ # @return [Object]
33
+ def create_cluster_custom_object(group, version, plural, body, opts = {})
34
+ data, _status_code, _headers = create_cluster_custom_object_with_http_info(group, version, plural, body, opts)
35
+ data
36
+ end
37
+
38
+ # Creates a cluster scoped Custom object
39
+ # @param group [String] The custom resource's group name
40
+ # @param version [String] The custom resource's version
41
+ # @param plural [String] The custom resource's plural name. For TPRs this would be lowercase plural kind.
42
+ # @param body [Object] The JSON schema of the Resource to create.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [String] :pretty If 'true', then the output is pretty printed.
45
+ # @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
46
+ # @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).
47
+ # @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. (optional)
48
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
49
+ def create_cluster_custom_object_with_http_info(group, version, plural, body, opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.create_cluster_custom_object ...'
52
+ end
53
+ # verify the required parameter 'group' is set
54
+ if @api_client.config.client_side_validation && group.nil?
55
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.create_cluster_custom_object"
56
+ end
57
+ # verify the required parameter 'version' is set
58
+ if @api_client.config.client_side_validation && version.nil?
59
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.create_cluster_custom_object"
60
+ end
61
+ # verify the required parameter 'plural' is set
62
+ if @api_client.config.client_side_validation && plural.nil?
63
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.create_cluster_custom_object"
64
+ end
65
+ # verify the required parameter 'body' is set
66
+ if @api_client.config.client_side_validation && body.nil?
67
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.create_cluster_custom_object"
68
+ end
69
+ # resource path
70
+ local_var_path = '/apis/{group}/{version}/{plural}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s))
71
+
72
+ # query parameters
73
+ query_params = opts[:query_params] || {}
74
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
75
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
76
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
77
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
78
+
79
+ # header parameters
80
+ header_params = opts[:header_params] || {}
81
+ # HTTP header 'Accept' (if needed)
82
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
83
+
84
+ # form parameters
85
+ form_params = opts[:form_params] || {}
86
+
87
+ # http body (model)
88
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
89
+
90
+ # return_type
91
+ return_type = opts[:debug_return_type] || 'Object'
92
+
93
+ # auth_names
94
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
95
+
96
+ new_options = opts.merge(
97
+ :operation => :"CustomObjectsApi.create_cluster_custom_object",
98
+ :header_params => header_params,
99
+ :query_params => query_params,
100
+ :form_params => form_params,
101
+ :body => post_body,
102
+ :auth_names => auth_names,
103
+ :return_type => return_type
104
+ )
105
+
106
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug "API called: CustomObjectsApi#create_cluster_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
109
+ end
110
+ return data, status_code, headers
111
+ end
112
+
113
+ # Creates a namespace scoped Custom object
114
+ # @param group [String] The custom resource&#39;s group name
115
+ # @param version [String] The custom resource&#39;s version
116
+ # @param namespace [String] The custom resource&#39;s namespace
117
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
118
+ # @param body [Object] The JSON schema of the Resource to create.
119
+ # @param [Hash] opts the optional parameters
120
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
121
+ # @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
122
+ # @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.
123
+ # @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. (optional)
124
+ # @return [Object]
125
+ def create_namespaced_custom_object(group, version, namespace, plural, body, opts = {})
126
+ data, _status_code, _headers = create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, opts)
127
+ data
128
+ end
129
+
130
+ # Creates a namespace scoped Custom object
131
+ # @param group [String] The custom resource&#39;s group name
132
+ # @param version [String] The custom resource&#39;s version
133
+ # @param namespace [String] The custom resource&#39;s namespace
134
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
135
+ # @param body [Object] The JSON schema of the Resource to create.
136
+ # @param [Hash] opts the optional parameters
137
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
138
+ # @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
139
+ # @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.
140
+ # @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. (optional)
141
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
142
+ def create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, opts = {})
143
+ if @api_client.config.debugging
144
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.create_namespaced_custom_object ...'
145
+ end
146
+ # verify the required parameter 'group' is set
147
+ if @api_client.config.client_side_validation && group.nil?
148
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.create_namespaced_custom_object"
149
+ end
150
+ # verify the required parameter 'version' is set
151
+ if @api_client.config.client_side_validation && version.nil?
152
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.create_namespaced_custom_object"
153
+ end
154
+ # verify the required parameter 'namespace' is set
155
+ if @api_client.config.client_side_validation && namespace.nil?
156
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.create_namespaced_custom_object"
157
+ end
158
+ # verify the required parameter 'plural' is set
159
+ if @api_client.config.client_side_validation && plural.nil?
160
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.create_namespaced_custom_object"
161
+ end
162
+ # verify the required parameter 'body' is set
163
+ if @api_client.config.client_side_validation && body.nil?
164
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.create_namespaced_custom_object"
165
+ end
166
+ # resource path
167
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s))
168
+
169
+ # query parameters
170
+ query_params = opts[:query_params] || {}
171
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
172
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
173
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
174
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
175
+
176
+ # header parameters
177
+ header_params = opts[:header_params] || {}
178
+ # HTTP header 'Accept' (if needed)
179
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
180
+
181
+ # form parameters
182
+ form_params = opts[:form_params] || {}
183
+
184
+ # http body (model)
185
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
186
+
187
+ # return_type
188
+ return_type = opts[:debug_return_type] || 'Object'
189
+
190
+ # auth_names
191
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
192
+
193
+ new_options = opts.merge(
194
+ :operation => :"CustomObjectsApi.create_namespaced_custom_object",
195
+ :header_params => header_params,
196
+ :query_params => query_params,
197
+ :form_params => form_params,
198
+ :body => post_body,
199
+ :auth_names => auth_names,
200
+ :return_type => return_type
201
+ )
202
+
203
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug "API called: CustomObjectsApi#create_namespaced_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
206
+ end
207
+ return data, status_code, headers
208
+ end
209
+
210
+ # Deletes the specified cluster scoped custom object
211
+ # @param group [String] the custom resource&#39;s group
212
+ # @param version [String] the custom resource&#39;s version
213
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
214
+ # @param name [String] the custom object&#39;s name
215
+ # @param [Hash] opts the optional parameters
216
+ # @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.
217
+ # @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.
218
+ # @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.
219
+ # @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
220
+ # @option opts [V1DeleteOptions] :body
221
+ # @return [Object]
222
+ def delete_cluster_custom_object(group, version, plural, name, opts = {})
223
+ data, _status_code, _headers = delete_cluster_custom_object_with_http_info(group, version, plural, name, opts)
224
+ data
225
+ end
226
+
227
+ # Deletes the specified cluster scoped custom object
228
+ # @param group [String] the custom resource&#39;s group
229
+ # @param version [String] the custom resource&#39;s version
230
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
231
+ # @param name [String] the custom object&#39;s name
232
+ # @param [Hash] opts the optional parameters
233
+ # @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.
234
+ # @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.
235
+ # @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.
236
+ # @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
237
+ # @option opts [V1DeleteOptions] :body
238
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
239
+ def delete_cluster_custom_object_with_http_info(group, version, plural, name, opts = {})
240
+ if @api_client.config.debugging
241
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.delete_cluster_custom_object ...'
242
+ end
243
+ # verify the required parameter 'group' is set
244
+ if @api_client.config.client_side_validation && group.nil?
245
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.delete_cluster_custom_object"
246
+ end
247
+ # verify the required parameter 'version' is set
248
+ if @api_client.config.client_side_validation && version.nil?
249
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.delete_cluster_custom_object"
250
+ end
251
+ # verify the required parameter 'plural' is set
252
+ if @api_client.config.client_side_validation && plural.nil?
253
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.delete_cluster_custom_object"
254
+ end
255
+ # verify the required parameter 'name' is set
256
+ if @api_client.config.client_side_validation && name.nil?
257
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.delete_cluster_custom_object"
258
+ end
259
+ # resource path
260
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
261
+
262
+ # query parameters
263
+ query_params = opts[:query_params] || {}
264
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
265
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
266
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
267
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
268
+
269
+ # header parameters
270
+ header_params = opts[:header_params] || {}
271
+ # HTTP header 'Accept' (if needed)
272
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
273
+
274
+ # form parameters
275
+ form_params = opts[:form_params] || {}
276
+
277
+ # http body (model)
278
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
279
+
280
+ # return_type
281
+ return_type = opts[:debug_return_type] || 'Object'
282
+
283
+ # auth_names
284
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
285
+
286
+ new_options = opts.merge(
287
+ :operation => :"CustomObjectsApi.delete_cluster_custom_object",
288
+ :header_params => header_params,
289
+ :query_params => query_params,
290
+ :form_params => form_params,
291
+ :body => post_body,
292
+ :auth_names => auth_names,
293
+ :return_type => return_type
294
+ )
295
+
296
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug "API called: CustomObjectsApi#delete_cluster_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ end
300
+ return data, status_code, headers
301
+ end
302
+
303
+ # Delete collection of cluster scoped custom objects
304
+ # @param group [String] The custom resource&#39;s group name
305
+ # @param version [String] The custom resource&#39;s version
306
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
307
+ # @param [Hash] opts the optional parameters
308
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
309
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
310
+ # @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.
311
+ # @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.
312
+ # @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.
313
+ # @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
314
+ # @option opts [V1DeleteOptions] :body
315
+ # @return [Object]
316
+ def delete_collection_cluster_custom_object(group, version, plural, opts = {})
317
+ data, _status_code, _headers = delete_collection_cluster_custom_object_with_http_info(group, version, plural, opts)
318
+ data
319
+ end
320
+
321
+ # Delete collection of cluster scoped custom objects
322
+ # @param group [String] The custom resource&#39;s group name
323
+ # @param version [String] The custom resource&#39;s version
324
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
325
+ # @param [Hash] opts the optional parameters
326
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
327
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
328
+ # @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.
329
+ # @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.
330
+ # @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.
331
+ # @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
332
+ # @option opts [V1DeleteOptions] :body
333
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
334
+ def delete_collection_cluster_custom_object_with_http_info(group, version, plural, opts = {})
335
+ if @api_client.config.debugging
336
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.delete_collection_cluster_custom_object ...'
337
+ end
338
+ # verify the required parameter 'group' is set
339
+ if @api_client.config.client_side_validation && group.nil?
340
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.delete_collection_cluster_custom_object"
341
+ end
342
+ # verify the required parameter 'version' is set
343
+ if @api_client.config.client_side_validation && version.nil?
344
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.delete_collection_cluster_custom_object"
345
+ end
346
+ # verify the required parameter 'plural' is set
347
+ if @api_client.config.client_side_validation && plural.nil?
348
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.delete_collection_cluster_custom_object"
349
+ end
350
+ # resource path
351
+ local_var_path = '/apis/{group}/{version}/{plural}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s))
352
+
353
+ # query parameters
354
+ query_params = opts[:query_params] || {}
355
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
356
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
357
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
358
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
359
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
360
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
361
+
362
+ # header parameters
363
+ header_params = opts[:header_params] || {}
364
+ # HTTP header 'Accept' (if needed)
365
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
366
+
367
+ # form parameters
368
+ form_params = opts[:form_params] || {}
369
+
370
+ # http body (model)
371
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
372
+
373
+ # return_type
374
+ return_type = opts[:debug_return_type] || 'Object'
375
+
376
+ # auth_names
377
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
378
+
379
+ new_options = opts.merge(
380
+ :operation => :"CustomObjectsApi.delete_collection_cluster_custom_object",
381
+ :header_params => header_params,
382
+ :query_params => query_params,
383
+ :form_params => form_params,
384
+ :body => post_body,
385
+ :auth_names => auth_names,
386
+ :return_type => return_type
387
+ )
388
+
389
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug "API called: CustomObjectsApi#delete_collection_cluster_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
+ end
393
+ return data, status_code, headers
394
+ end
395
+
396
+ # Delete collection of namespace scoped custom objects
397
+ # @param group [String] The custom resource&#39;s group name
398
+ # @param version [String] The custom resource&#39;s version
399
+ # @param namespace [String] The custom resource&#39;s namespace
400
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
401
+ # @param [Hash] opts the optional parameters
402
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
403
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
404
+ # @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.
405
+ # @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.
406
+ # @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.
407
+ # @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
408
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
409
+ # @option opts [V1DeleteOptions] :body
410
+ # @return [Object]
411
+ def delete_collection_namespaced_custom_object(group, version, namespace, plural, opts = {})
412
+ data, _status_code, _headers = delete_collection_namespaced_custom_object_with_http_info(group, version, namespace, plural, opts)
413
+ data
414
+ end
415
+
416
+ # Delete collection of namespace scoped custom objects
417
+ # @param group [String] The custom resource&#39;s group name
418
+ # @param version [String] The custom resource&#39;s version
419
+ # @param namespace [String] The custom resource&#39;s namespace
420
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
421
+ # @param [Hash] opts the optional parameters
422
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
423
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
424
+ # @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.
425
+ # @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.
426
+ # @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.
427
+ # @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
428
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
429
+ # @option opts [V1DeleteOptions] :body
430
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
431
+ def delete_collection_namespaced_custom_object_with_http_info(group, version, namespace, plural, opts = {})
432
+ if @api_client.config.debugging
433
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.delete_collection_namespaced_custom_object ...'
434
+ end
435
+ # verify the required parameter 'group' is set
436
+ if @api_client.config.client_side_validation && group.nil?
437
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.delete_collection_namespaced_custom_object"
438
+ end
439
+ # verify the required parameter 'version' is set
440
+ if @api_client.config.client_side_validation && version.nil?
441
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.delete_collection_namespaced_custom_object"
442
+ end
443
+ # verify the required parameter 'namespace' is set
444
+ if @api_client.config.client_side_validation && namespace.nil?
445
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.delete_collection_namespaced_custom_object"
446
+ end
447
+ # verify the required parameter 'plural' is set
448
+ if @api_client.config.client_side_validation && plural.nil?
449
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.delete_collection_namespaced_custom_object"
450
+ end
451
+ # resource path
452
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s))
453
+
454
+ # query parameters
455
+ query_params = opts[:query_params] || {}
456
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
457
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
458
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
459
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
460
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
461
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
462
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
463
+
464
+ # header parameters
465
+ header_params = opts[:header_params] || {}
466
+ # HTTP header 'Accept' (if needed)
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
468
+
469
+ # form parameters
470
+ form_params = opts[:form_params] || {}
471
+
472
+ # http body (model)
473
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
474
+
475
+ # return_type
476
+ return_type = opts[:debug_return_type] || 'Object'
477
+
478
+ # auth_names
479
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
480
+
481
+ new_options = opts.merge(
482
+ :operation => :"CustomObjectsApi.delete_collection_namespaced_custom_object",
483
+ :header_params => header_params,
484
+ :query_params => query_params,
485
+ :form_params => form_params,
486
+ :body => post_body,
487
+ :auth_names => auth_names,
488
+ :return_type => return_type
489
+ )
490
+
491
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug "API called: CustomObjectsApi#delete_collection_namespaced_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
494
+ end
495
+ return data, status_code, headers
496
+ end
497
+
498
+ # Deletes the specified namespace scoped custom object
499
+ # @param group [String] the custom resource&#39;s group
500
+ # @param version [String] the custom resource&#39;s version
501
+ # @param namespace [String] The custom resource&#39;s namespace
502
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
503
+ # @param name [String] the custom object&#39;s name
504
+ # @param [Hash] opts the optional parameters
505
+ # @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.
506
+ # @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.
507
+ # @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.
508
+ # @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
509
+ # @option opts [V1DeleteOptions] :body
510
+ # @return [Object]
511
+ def delete_namespaced_custom_object(group, version, namespace, plural, name, opts = {})
512
+ data, _status_code, _headers = delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, opts)
513
+ data
514
+ end
515
+
516
+ # Deletes the specified namespace scoped custom object
517
+ # @param group [String] the custom resource&#39;s group
518
+ # @param version [String] the custom resource&#39;s version
519
+ # @param namespace [String] The custom resource&#39;s namespace
520
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
521
+ # @param name [String] the custom object&#39;s name
522
+ # @param [Hash] opts the optional parameters
523
+ # @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.
524
+ # @option opts [Boolean] :orphan_dependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
525
+ # @option opts [String] :propagation_policy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.
526
+ # @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
527
+ # @option opts [V1DeleteOptions] :body
528
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
529
+ def delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, opts = {})
530
+ if @api_client.config.debugging
531
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.delete_namespaced_custom_object ...'
532
+ end
533
+ # verify the required parameter 'group' is set
534
+ if @api_client.config.client_side_validation && group.nil?
535
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.delete_namespaced_custom_object"
536
+ end
537
+ # verify the required parameter 'version' is set
538
+ if @api_client.config.client_side_validation && version.nil?
539
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.delete_namespaced_custom_object"
540
+ end
541
+ # verify the required parameter 'namespace' is set
542
+ if @api_client.config.client_side_validation && namespace.nil?
543
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.delete_namespaced_custom_object"
544
+ end
545
+ # verify the required parameter 'plural' is set
546
+ if @api_client.config.client_side_validation && plural.nil?
547
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.delete_namespaced_custom_object"
548
+ end
549
+ # verify the required parameter 'name' is set
550
+ if @api_client.config.client_side_validation && name.nil?
551
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.delete_namespaced_custom_object"
552
+ end
553
+ # resource path
554
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
555
+
556
+ # query parameters
557
+ query_params = opts[:query_params] || {}
558
+ query_params[:'gracePeriodSeconds'] = opts[:'grace_period_seconds'] if !opts[:'grace_period_seconds'].nil?
559
+ query_params[:'orphanDependents'] = opts[:'orphan_dependents'] if !opts[:'orphan_dependents'].nil?
560
+ query_params[:'propagationPolicy'] = opts[:'propagation_policy'] if !opts[:'propagation_policy'].nil?
561
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
562
+
563
+ # header parameters
564
+ header_params = opts[:header_params] || {}
565
+ # HTTP header 'Accept' (if needed)
566
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
567
+
568
+ # form parameters
569
+ form_params = opts[:form_params] || {}
570
+
571
+ # http body (model)
572
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
573
+
574
+ # return_type
575
+ return_type = opts[:debug_return_type] || 'Object'
576
+
577
+ # auth_names
578
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
579
+
580
+ new_options = opts.merge(
581
+ :operation => :"CustomObjectsApi.delete_namespaced_custom_object",
582
+ :header_params => header_params,
583
+ :query_params => query_params,
584
+ :form_params => form_params,
585
+ :body => post_body,
586
+ :auth_names => auth_names,
587
+ :return_type => return_type
588
+ )
589
+
590
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
591
+ if @api_client.config.debugging
592
+ @api_client.config.logger.debug "API called: CustomObjectsApi#delete_namespaced_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
593
+ end
594
+ return data, status_code, headers
595
+ end
596
+
597
+ # get available resources
598
+ # @param group [String] The custom resource&#39;s group name
599
+ # @param version [String] The custom resource&#39;s version
600
+ # @param [Hash] opts the optional parameters
601
+ # @return [V1APIResourceList]
602
+ def get_api_resourcesgroupversion(group, version, opts = {})
603
+ data, _status_code, _headers = get_api_resourcesgroupversion_with_http_info(group, version, opts)
604
+ data
605
+ end
606
+
607
+ # get available resources
608
+ # @param group [String] The custom resource&#39;s group name
609
+ # @param version [String] The custom resource&#39;s version
610
+ # @param [Hash] opts the optional parameters
611
+ # @return [Array<(V1APIResourceList, Integer, Hash)>] V1APIResourceList data, response status code and response headers
612
+ def get_api_resourcesgroupversion_with_http_info(group, version, opts = {})
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.get_api_resourcesgroupversion ...'
615
+ end
616
+ # verify the required parameter 'group' is set
617
+ if @api_client.config.client_side_validation && group.nil?
618
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.get_api_resourcesgroupversion"
619
+ end
620
+ # verify the required parameter 'version' is set
621
+ if @api_client.config.client_side_validation && version.nil?
622
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.get_api_resourcesgroupversion"
623
+ end
624
+ # resource path
625
+ local_var_path = '/apis/{group}/{version}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s))
626
+
627
+ # query parameters
628
+ query_params = opts[:query_params] || {}
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'])
634
+
635
+ # form parameters
636
+ form_params = opts[:form_params] || {}
637
+
638
+ # http body (model)
639
+ post_body = opts[:debug_body]
640
+
641
+ # return_type
642
+ return_type = opts[:debug_return_type] || 'V1APIResourceList'
643
+
644
+ # auth_names
645
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
646
+
647
+ new_options = opts.merge(
648
+ :operation => :"CustomObjectsApi.get_api_resourcesgroupversion",
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(:GET, local_var_path, new_options)
658
+ if @api_client.config.debugging
659
+ @api_client.config.logger.debug "API called: CustomObjectsApi#get_api_resourcesgroupversion\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
660
+ end
661
+ return data, status_code, headers
662
+ end
663
+
664
+ # Returns a cluster scoped custom object
665
+ # @param group [String] the custom resource&#39;s group
666
+ # @param version [String] the custom resource&#39;s version
667
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
668
+ # @param name [String] the custom object&#39;s name
669
+ # @param [Hash] opts the optional parameters
670
+ # @return [Object]
671
+ def get_cluster_custom_object(group, version, plural, name, opts = {})
672
+ data, _status_code, _headers = get_cluster_custom_object_with_http_info(group, version, plural, name, opts)
673
+ data
674
+ end
675
+
676
+ # Returns a cluster scoped custom object
677
+ # @param group [String] the custom resource&#39;s group
678
+ # @param version [String] the custom resource&#39;s version
679
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
680
+ # @param name [String] the custom object&#39;s name
681
+ # @param [Hash] opts the optional parameters
682
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
683
+ def get_cluster_custom_object_with_http_info(group, version, plural, name, opts = {})
684
+ if @api_client.config.debugging
685
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.get_cluster_custom_object ...'
686
+ end
687
+ # verify the required parameter 'group' is set
688
+ if @api_client.config.client_side_validation && group.nil?
689
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.get_cluster_custom_object"
690
+ end
691
+ # verify the required parameter 'version' is set
692
+ if @api_client.config.client_side_validation && version.nil?
693
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.get_cluster_custom_object"
694
+ end
695
+ # verify the required parameter 'plural' is set
696
+ if @api_client.config.client_side_validation && plural.nil?
697
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.get_cluster_custom_object"
698
+ end
699
+ # verify the required parameter 'name' is set
700
+ if @api_client.config.client_side_validation && name.nil?
701
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.get_cluster_custom_object"
702
+ end
703
+ # resource path
704
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
705
+
706
+ # query parameters
707
+ query_params = opts[:query_params] || {}
708
+
709
+ # header parameters
710
+ header_params = opts[:header_params] || {}
711
+ # HTTP header 'Accept' (if needed)
712
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
713
+
714
+ # form parameters
715
+ form_params = opts[:form_params] || {}
716
+
717
+ # http body (model)
718
+ post_body = opts[:debug_body]
719
+
720
+ # return_type
721
+ return_type = opts[:debug_return_type] || 'Object'
722
+
723
+ # auth_names
724
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
725
+
726
+ new_options = opts.merge(
727
+ :operation => :"CustomObjectsApi.get_cluster_custom_object",
728
+ :header_params => header_params,
729
+ :query_params => query_params,
730
+ :form_params => form_params,
731
+ :body => post_body,
732
+ :auth_names => auth_names,
733
+ :return_type => return_type
734
+ )
735
+
736
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
737
+ if @api_client.config.debugging
738
+ @api_client.config.logger.debug "API called: CustomObjectsApi#get_cluster_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
739
+ end
740
+ return data, status_code, headers
741
+ end
742
+
743
+ # read scale of the specified custom object
744
+ # @param group [String] the custom resource&#39;s group
745
+ # @param version [String] the custom resource&#39;s version
746
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
747
+ # @param name [String] the custom object&#39;s name
748
+ # @param [Hash] opts the optional parameters
749
+ # @return [Object]
750
+ def get_cluster_custom_object_scale(group, version, plural, name, opts = {})
751
+ data, _status_code, _headers = get_cluster_custom_object_scale_with_http_info(group, version, plural, name, opts)
752
+ data
753
+ end
754
+
755
+ # read scale of the specified custom object
756
+ # @param group [String] the custom resource&#39;s group
757
+ # @param version [String] the custom resource&#39;s version
758
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
759
+ # @param name [String] the custom object&#39;s name
760
+ # @param [Hash] opts the optional parameters
761
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
762
+ def get_cluster_custom_object_scale_with_http_info(group, version, plural, name, opts = {})
763
+ if @api_client.config.debugging
764
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.get_cluster_custom_object_scale ...'
765
+ end
766
+ # verify the required parameter 'group' is set
767
+ if @api_client.config.client_side_validation && group.nil?
768
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.get_cluster_custom_object_scale"
769
+ end
770
+ # verify the required parameter 'version' is set
771
+ if @api_client.config.client_side_validation && version.nil?
772
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.get_cluster_custom_object_scale"
773
+ end
774
+ # verify the required parameter 'plural' is set
775
+ if @api_client.config.client_side_validation && plural.nil?
776
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.get_cluster_custom_object_scale"
777
+ end
778
+ # verify the required parameter 'name' is set
779
+ if @api_client.config.client_side_validation && name.nil?
780
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.get_cluster_custom_object_scale"
781
+ end
782
+ # resource path
783
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}/scale'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
784
+
785
+ # query parameters
786
+ query_params = opts[:query_params] || {}
787
+
788
+ # header parameters
789
+ header_params = opts[:header_params] || {}
790
+ # HTTP header 'Accept' (if needed)
791
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
792
+
793
+ # form parameters
794
+ form_params = opts[:form_params] || {}
795
+
796
+ # http body (model)
797
+ post_body = opts[:debug_body]
798
+
799
+ # return_type
800
+ return_type = opts[:debug_return_type] || 'Object'
801
+
802
+ # auth_names
803
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
804
+
805
+ new_options = opts.merge(
806
+ :operation => :"CustomObjectsApi.get_cluster_custom_object_scale",
807
+ :header_params => header_params,
808
+ :query_params => query_params,
809
+ :form_params => form_params,
810
+ :body => post_body,
811
+ :auth_names => auth_names,
812
+ :return_type => return_type
813
+ )
814
+
815
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
816
+ if @api_client.config.debugging
817
+ @api_client.config.logger.debug "API called: CustomObjectsApi#get_cluster_custom_object_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
818
+ end
819
+ return data, status_code, headers
820
+ end
821
+
822
+ # read status of the specified cluster scoped custom object
823
+ # @param group [String] the custom resource&#39;s group
824
+ # @param version [String] the custom resource&#39;s version
825
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
826
+ # @param name [String] the custom object&#39;s name
827
+ # @param [Hash] opts the optional parameters
828
+ # @return [Object]
829
+ def get_cluster_custom_object_status(group, version, plural, name, opts = {})
830
+ data, _status_code, _headers = get_cluster_custom_object_status_with_http_info(group, version, plural, name, opts)
831
+ data
832
+ end
833
+
834
+ # read status of the specified cluster scoped custom object
835
+ # @param group [String] the custom resource&#39;s group
836
+ # @param version [String] the custom resource&#39;s version
837
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
838
+ # @param name [String] the custom object&#39;s name
839
+ # @param [Hash] opts the optional parameters
840
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
841
+ def get_cluster_custom_object_status_with_http_info(group, version, plural, name, opts = {})
842
+ if @api_client.config.debugging
843
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.get_cluster_custom_object_status ...'
844
+ end
845
+ # verify the required parameter 'group' is set
846
+ if @api_client.config.client_side_validation && group.nil?
847
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.get_cluster_custom_object_status"
848
+ end
849
+ # verify the required parameter 'version' is set
850
+ if @api_client.config.client_side_validation && version.nil?
851
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.get_cluster_custom_object_status"
852
+ end
853
+ # verify the required parameter 'plural' is set
854
+ if @api_client.config.client_side_validation && plural.nil?
855
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.get_cluster_custom_object_status"
856
+ end
857
+ # verify the required parameter 'name' is set
858
+ if @api_client.config.client_side_validation && name.nil?
859
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.get_cluster_custom_object_status"
860
+ end
861
+ # resource path
862
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}/status'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
863
+
864
+ # query parameters
865
+ query_params = opts[:query_params] || {}
866
+
867
+ # header parameters
868
+ header_params = opts[:header_params] || {}
869
+ # HTTP header 'Accept' (if needed)
870
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
871
+
872
+ # form parameters
873
+ form_params = opts[:form_params] || {}
874
+
875
+ # http body (model)
876
+ post_body = opts[:debug_body]
877
+
878
+ # return_type
879
+ return_type = opts[:debug_return_type] || 'Object'
880
+
881
+ # auth_names
882
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
883
+
884
+ new_options = opts.merge(
885
+ :operation => :"CustomObjectsApi.get_cluster_custom_object_status",
886
+ :header_params => header_params,
887
+ :query_params => query_params,
888
+ :form_params => form_params,
889
+ :body => post_body,
890
+ :auth_names => auth_names,
891
+ :return_type => return_type
892
+ )
893
+
894
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
895
+ if @api_client.config.debugging
896
+ @api_client.config.logger.debug "API called: CustomObjectsApi#get_cluster_custom_object_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
897
+ end
898
+ return data, status_code, headers
899
+ end
900
+
901
+ # Returns a namespace scoped custom object
902
+ # @param group [String] the custom resource&#39;s group
903
+ # @param version [String] the custom resource&#39;s version
904
+ # @param namespace [String] The custom resource&#39;s namespace
905
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
906
+ # @param name [String] the custom object&#39;s name
907
+ # @param [Hash] opts the optional parameters
908
+ # @return [Object]
909
+ def get_namespaced_custom_object(group, version, namespace, plural, name, opts = {})
910
+ data, _status_code, _headers = get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, opts)
911
+ data
912
+ end
913
+
914
+ # Returns a namespace scoped custom object
915
+ # @param group [String] the custom resource&#39;s group
916
+ # @param version [String] the custom resource&#39;s version
917
+ # @param namespace [String] The custom resource&#39;s namespace
918
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
919
+ # @param name [String] the custom object&#39;s name
920
+ # @param [Hash] opts the optional parameters
921
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
922
+ def get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, opts = {})
923
+ if @api_client.config.debugging
924
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.get_namespaced_custom_object ...'
925
+ end
926
+ # verify the required parameter 'group' is set
927
+ if @api_client.config.client_side_validation && group.nil?
928
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.get_namespaced_custom_object"
929
+ end
930
+ # verify the required parameter 'version' is set
931
+ if @api_client.config.client_side_validation && version.nil?
932
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.get_namespaced_custom_object"
933
+ end
934
+ # verify the required parameter 'namespace' is set
935
+ if @api_client.config.client_side_validation && namespace.nil?
936
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.get_namespaced_custom_object"
937
+ end
938
+ # verify the required parameter 'plural' is set
939
+ if @api_client.config.client_side_validation && plural.nil?
940
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.get_namespaced_custom_object"
941
+ end
942
+ # verify the required parameter 'name' is set
943
+ if @api_client.config.client_side_validation && name.nil?
944
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.get_namespaced_custom_object"
945
+ end
946
+ # resource path
947
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
948
+
949
+ # query parameters
950
+ query_params = opts[:query_params] || {}
951
+
952
+ # header parameters
953
+ header_params = opts[:header_params] || {}
954
+ # HTTP header 'Accept' (if needed)
955
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
956
+
957
+ # form parameters
958
+ form_params = opts[:form_params] || {}
959
+
960
+ # http body (model)
961
+ post_body = opts[:debug_body]
962
+
963
+ # return_type
964
+ return_type = opts[:debug_return_type] || 'Object'
965
+
966
+ # auth_names
967
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
968
+
969
+ new_options = opts.merge(
970
+ :operation => :"CustomObjectsApi.get_namespaced_custom_object",
971
+ :header_params => header_params,
972
+ :query_params => query_params,
973
+ :form_params => form_params,
974
+ :body => post_body,
975
+ :auth_names => auth_names,
976
+ :return_type => return_type
977
+ )
978
+
979
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
980
+ if @api_client.config.debugging
981
+ @api_client.config.logger.debug "API called: CustomObjectsApi#get_namespaced_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
982
+ end
983
+ return data, status_code, headers
984
+ end
985
+
986
+ # read scale of the specified namespace scoped custom object
987
+ # @param group [String] the custom resource&#39;s group
988
+ # @param version [String] the custom resource&#39;s version
989
+ # @param namespace [String] The custom resource&#39;s namespace
990
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
991
+ # @param name [String] the custom object&#39;s name
992
+ # @param [Hash] opts the optional parameters
993
+ # @return [Object]
994
+ def get_namespaced_custom_object_scale(group, version, namespace, plural, name, opts = {})
995
+ data, _status_code, _headers = get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, opts)
996
+ data
997
+ end
998
+
999
+ # read scale of the specified namespace scoped custom object
1000
+ # @param group [String] the custom resource&#39;s group
1001
+ # @param version [String] the custom resource&#39;s version
1002
+ # @param namespace [String] The custom resource&#39;s namespace
1003
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1004
+ # @param name [String] the custom object&#39;s name
1005
+ # @param [Hash] opts the optional parameters
1006
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1007
+ def get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, opts = {})
1008
+ if @api_client.config.debugging
1009
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.get_namespaced_custom_object_scale ...'
1010
+ end
1011
+ # verify the required parameter 'group' is set
1012
+ if @api_client.config.client_side_validation && group.nil?
1013
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.get_namespaced_custom_object_scale"
1014
+ end
1015
+ # verify the required parameter 'version' is set
1016
+ if @api_client.config.client_side_validation && version.nil?
1017
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.get_namespaced_custom_object_scale"
1018
+ end
1019
+ # verify the required parameter 'namespace' is set
1020
+ if @api_client.config.client_side_validation && namespace.nil?
1021
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.get_namespaced_custom_object_scale"
1022
+ end
1023
+ # verify the required parameter 'plural' is set
1024
+ if @api_client.config.client_side_validation && plural.nil?
1025
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.get_namespaced_custom_object_scale"
1026
+ end
1027
+ # verify the required parameter 'name' is set
1028
+ if @api_client.config.client_side_validation && name.nil?
1029
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.get_namespaced_custom_object_scale"
1030
+ end
1031
+ # resource path
1032
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1033
+
1034
+ # query parameters
1035
+ query_params = opts[:query_params] || {}
1036
+
1037
+ # header parameters
1038
+ header_params = opts[:header_params] || {}
1039
+ # HTTP header 'Accept' (if needed)
1040
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
1041
+
1042
+ # form parameters
1043
+ form_params = opts[:form_params] || {}
1044
+
1045
+ # http body (model)
1046
+ post_body = opts[:debug_body]
1047
+
1048
+ # return_type
1049
+ return_type = opts[:debug_return_type] || 'Object'
1050
+
1051
+ # auth_names
1052
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1053
+
1054
+ new_options = opts.merge(
1055
+ :operation => :"CustomObjectsApi.get_namespaced_custom_object_scale",
1056
+ :header_params => header_params,
1057
+ :query_params => query_params,
1058
+ :form_params => form_params,
1059
+ :body => post_body,
1060
+ :auth_names => auth_names,
1061
+ :return_type => return_type
1062
+ )
1063
+
1064
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1065
+ if @api_client.config.debugging
1066
+ @api_client.config.logger.debug "API called: CustomObjectsApi#get_namespaced_custom_object_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1067
+ end
1068
+ return data, status_code, headers
1069
+ end
1070
+
1071
+ # read status of the specified namespace scoped custom object
1072
+ # @param group [String] the custom resource&#39;s group
1073
+ # @param version [String] the custom resource&#39;s version
1074
+ # @param namespace [String] The custom resource&#39;s namespace
1075
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1076
+ # @param name [String] the custom object&#39;s name
1077
+ # @param [Hash] opts the optional parameters
1078
+ # @return [Object]
1079
+ def get_namespaced_custom_object_status(group, version, namespace, plural, name, opts = {})
1080
+ data, _status_code, _headers = get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, opts)
1081
+ data
1082
+ end
1083
+
1084
+ # read status of the specified namespace scoped custom object
1085
+ # @param group [String] the custom resource&#39;s group
1086
+ # @param version [String] the custom resource&#39;s version
1087
+ # @param namespace [String] The custom resource&#39;s namespace
1088
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1089
+ # @param name [String] the custom object&#39;s name
1090
+ # @param [Hash] opts the optional parameters
1091
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1092
+ def get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, opts = {})
1093
+ if @api_client.config.debugging
1094
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.get_namespaced_custom_object_status ...'
1095
+ end
1096
+ # verify the required parameter 'group' is set
1097
+ if @api_client.config.client_side_validation && group.nil?
1098
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.get_namespaced_custom_object_status"
1099
+ end
1100
+ # verify the required parameter 'version' is set
1101
+ if @api_client.config.client_side_validation && version.nil?
1102
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.get_namespaced_custom_object_status"
1103
+ end
1104
+ # verify the required parameter 'namespace' is set
1105
+ if @api_client.config.client_side_validation && namespace.nil?
1106
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.get_namespaced_custom_object_status"
1107
+ end
1108
+ # verify the required parameter 'plural' is set
1109
+ if @api_client.config.client_side_validation && plural.nil?
1110
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.get_namespaced_custom_object_status"
1111
+ end
1112
+ # verify the required parameter 'name' is set
1113
+ if @api_client.config.client_side_validation && name.nil?
1114
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.get_namespaced_custom_object_status"
1115
+ end
1116
+ # resource path
1117
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1118
+
1119
+ # query parameters
1120
+ query_params = opts[:query_params] || {}
1121
+
1122
+ # header parameters
1123
+ header_params = opts[:header_params] || {}
1124
+ # HTTP header 'Accept' (if needed)
1125
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
1126
+
1127
+ # form parameters
1128
+ form_params = opts[:form_params] || {}
1129
+
1130
+ # http body (model)
1131
+ post_body = opts[:debug_body]
1132
+
1133
+ # return_type
1134
+ return_type = opts[:debug_return_type] || 'Object'
1135
+
1136
+ # auth_names
1137
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1138
+
1139
+ new_options = opts.merge(
1140
+ :operation => :"CustomObjectsApi.get_namespaced_custom_object_status",
1141
+ :header_params => header_params,
1142
+ :query_params => query_params,
1143
+ :form_params => form_params,
1144
+ :body => post_body,
1145
+ :auth_names => auth_names,
1146
+ :return_type => return_type
1147
+ )
1148
+
1149
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1150
+ if @api_client.config.debugging
1151
+ @api_client.config.logger.debug "API called: CustomObjectsApi#get_namespaced_custom_object_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1152
+ end
1153
+ return data, status_code, headers
1154
+ end
1155
+
1156
+ # list or watch cluster scoped custom objects
1157
+ # @param group [String] The custom resource&#39;s group name
1158
+ # @param version [String] The custom resource&#39;s version
1159
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1160
+ # @param [Hash] opts the optional parameters
1161
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1162
+ # @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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
1163
+ # @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.
1164
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1165
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1166
+ # @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.
1167
+ # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
1168
+ # @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
1169
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1170
+ # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
1171
+ # @return [Object]
1172
+ def list_cluster_custom_object(group, version, plural, opts = {})
1173
+ data, _status_code, _headers = list_cluster_custom_object_with_http_info(group, version, plural, opts)
1174
+ data
1175
+ end
1176
+
1177
+ # list or watch cluster scoped custom objects
1178
+ # @param group [String] The custom resource&#39;s group name
1179
+ # @param version [String] The custom resource&#39;s version
1180
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1181
+ # @param [Hash] opts the optional parameters
1182
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1183
+ # @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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
1184
+ # @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.
1185
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1186
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1187
+ # @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.
1188
+ # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
1189
+ # @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
1190
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1191
+ # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
1192
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1193
+ def list_cluster_custom_object_with_http_info(group, version, plural, opts = {})
1194
+ if @api_client.config.debugging
1195
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.list_cluster_custom_object ...'
1196
+ end
1197
+ # verify the required parameter 'group' is set
1198
+ if @api_client.config.client_side_validation && group.nil?
1199
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.list_cluster_custom_object"
1200
+ end
1201
+ # verify the required parameter 'version' is set
1202
+ if @api_client.config.client_side_validation && version.nil?
1203
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.list_cluster_custom_object"
1204
+ end
1205
+ # verify the required parameter 'plural' is set
1206
+ if @api_client.config.client_side_validation && plural.nil?
1207
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.list_cluster_custom_object"
1208
+ end
1209
+ # resource path
1210
+ local_var_path = '/apis/{group}/{version}/{plural}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s))
1211
+
1212
+ # query parameters
1213
+ query_params = opts[:query_params] || {}
1214
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1215
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1216
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1217
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1218
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1219
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1220
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1221
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1222
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1223
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1224
+
1225
+ # header parameters
1226
+ header_params = opts[:header_params] || {}
1227
+ # HTTP header 'Accept' (if needed)
1228
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json;stream=watch'])
1229
+
1230
+ # form parameters
1231
+ form_params = opts[:form_params] || {}
1232
+
1233
+ # http body (model)
1234
+ post_body = opts[:debug_body]
1235
+
1236
+ # return_type
1237
+ return_type = opts[:debug_return_type] || 'Object'
1238
+
1239
+ # auth_names
1240
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1241
+
1242
+ new_options = opts.merge(
1243
+ :operation => :"CustomObjectsApi.list_cluster_custom_object",
1244
+ :header_params => header_params,
1245
+ :query_params => query_params,
1246
+ :form_params => form_params,
1247
+ :body => post_body,
1248
+ :auth_names => auth_names,
1249
+ :return_type => return_type
1250
+ )
1251
+
1252
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1253
+ if @api_client.config.debugging
1254
+ @api_client.config.logger.debug "API called: CustomObjectsApi#list_cluster_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1255
+ end
1256
+ return data, status_code, headers
1257
+ end
1258
+
1259
+ # list or watch namespace scoped custom objects
1260
+ # @param group [String] The custom resource&#39;s group name
1261
+ # @param version [String] The custom resource&#39;s version
1262
+ # @param resource_plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1263
+ # @param [Hash] opts the optional parameters
1264
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1265
+ # @option opts [Boolean] :allow_watch_bookmarks allowWatchBookmarks requests watch events with type \&quot;BOOKMARK\&quot;. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server&#39;s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
1266
+ # @option opts [String] :continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \&quot;next key\&quot;. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
1267
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1268
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1269
+ # @option opts [Integer] :limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the &#x60;continue&#x60; field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
1270
+ # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
1271
+ # @option opts [String] :resource_version_match resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
1272
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1273
+ # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
1274
+ # @return [Object]
1275
+ def list_custom_object_for_all_namespaces(group, version, resource_plural, opts = {})
1276
+ data, _status_code, _headers = list_custom_object_for_all_namespaces_with_http_info(group, version, resource_plural, opts)
1277
+ data
1278
+ end
1279
+
1280
+ # list or watch namespace scoped custom objects
1281
+ # @param group [String] The custom resource&#39;s group name
1282
+ # @param version [String] The custom resource&#39;s version
1283
+ # @param resource_plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1284
+ # @param [Hash] opts the optional parameters
1285
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1286
+ # @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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
1287
+ # @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.
1288
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1289
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1290
+ # @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.
1291
+ # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
1292
+ # @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
1293
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1294
+ # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
1295
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1296
+ def list_custom_object_for_all_namespaces_with_http_info(group, version, resource_plural, opts = {})
1297
+ if @api_client.config.debugging
1298
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.list_custom_object_for_all_namespaces ...'
1299
+ end
1300
+ # verify the required parameter 'group' is set
1301
+ if @api_client.config.client_side_validation && group.nil?
1302
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.list_custom_object_for_all_namespaces"
1303
+ end
1304
+ # verify the required parameter 'version' is set
1305
+ if @api_client.config.client_side_validation && version.nil?
1306
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.list_custom_object_for_all_namespaces"
1307
+ end
1308
+ # verify the required parameter 'resource_plural' is set
1309
+ if @api_client.config.client_side_validation && resource_plural.nil?
1310
+ fail ArgumentError, "Missing the required parameter 'resource_plural' when calling CustomObjectsApi.list_custom_object_for_all_namespaces"
1311
+ end
1312
+ # resource path
1313
+ local_var_path = '/apis/{group}/{version}/{resource_plural}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'resource_plural' + '}', CGI.escape(resource_plural.to_s))
1314
+
1315
+ # query parameters
1316
+ query_params = opts[:query_params] || {}
1317
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1318
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1319
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1320
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1321
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1322
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1323
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1324
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1325
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1326
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1327
+
1328
+ # header parameters
1329
+ header_params = opts[:header_params] || {}
1330
+ # HTTP header 'Accept' (if needed)
1331
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json;stream=watch'])
1332
+
1333
+ # form parameters
1334
+ form_params = opts[:form_params] || {}
1335
+
1336
+ # http body (model)
1337
+ post_body = opts[:debug_body]
1338
+
1339
+ # return_type
1340
+ return_type = opts[:debug_return_type] || 'Object'
1341
+
1342
+ # auth_names
1343
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1344
+
1345
+ new_options = opts.merge(
1346
+ :operation => :"CustomObjectsApi.list_custom_object_for_all_namespaces",
1347
+ :header_params => header_params,
1348
+ :query_params => query_params,
1349
+ :form_params => form_params,
1350
+ :body => post_body,
1351
+ :auth_names => auth_names,
1352
+ :return_type => return_type
1353
+ )
1354
+
1355
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1356
+ if @api_client.config.debugging
1357
+ @api_client.config.logger.debug "API called: CustomObjectsApi#list_custom_object_for_all_namespaces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1358
+ end
1359
+ return data, status_code, headers
1360
+ end
1361
+
1362
+ # list or watch namespace scoped custom objects
1363
+ # @param group [String] The custom resource&#39;s group name
1364
+ # @param version [String] The custom resource&#39;s version
1365
+ # @param namespace [String] The custom resource&#39;s namespace
1366
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1367
+ # @param [Hash] opts the optional parameters
1368
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1369
+ # @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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
1370
+ # @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.
1371
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1372
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1373
+ # @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.
1374
+ # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
1375
+ # @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
1376
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1377
+ # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
1378
+ # @return [Object]
1379
+ def list_namespaced_custom_object(group, version, namespace, plural, opts = {})
1380
+ data, _status_code, _headers = list_namespaced_custom_object_with_http_info(group, version, namespace, plural, opts)
1381
+ data
1382
+ end
1383
+
1384
+ # list or watch namespace scoped custom objects
1385
+ # @param group [String] The custom resource&#39;s group name
1386
+ # @param version [String] The custom resource&#39;s version
1387
+ # @param namespace [String] The custom resource&#39;s namespace
1388
+ # @param plural [String] The custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1389
+ # @param [Hash] opts the optional parameters
1390
+ # @option opts [String] :pretty If &#39;true&#39;, then the output is pretty printed.
1391
+ # @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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.
1392
+ # @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.
1393
+ # @option opts [String] :field_selector A selector to restrict the list of returned objects by their fields. Defaults to everything.
1394
+ # @option opts [String] :label_selector A selector to restrict the list of returned objects by their labels. Defaults to everything.
1395
+ # @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.
1396
+ # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
1397
+ # @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
1398
+ # @option opts [Integer] :timeout_seconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
1399
+ # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
1400
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1401
+ def list_namespaced_custom_object_with_http_info(group, version, namespace, plural, opts = {})
1402
+ if @api_client.config.debugging
1403
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.list_namespaced_custom_object ...'
1404
+ end
1405
+ # verify the required parameter 'group' is set
1406
+ if @api_client.config.client_side_validation && group.nil?
1407
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.list_namespaced_custom_object"
1408
+ end
1409
+ # verify the required parameter 'version' is set
1410
+ if @api_client.config.client_side_validation && version.nil?
1411
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.list_namespaced_custom_object"
1412
+ end
1413
+ # verify the required parameter 'namespace' is set
1414
+ if @api_client.config.client_side_validation && namespace.nil?
1415
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.list_namespaced_custom_object"
1416
+ end
1417
+ # verify the required parameter 'plural' is set
1418
+ if @api_client.config.client_side_validation && plural.nil?
1419
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.list_namespaced_custom_object"
1420
+ end
1421
+ # resource path
1422
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s))
1423
+
1424
+ # query parameters
1425
+ query_params = opts[:query_params] || {}
1426
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1427
+ query_params[:'allowWatchBookmarks'] = opts[:'allow_watch_bookmarks'] if !opts[:'allow_watch_bookmarks'].nil?
1428
+ query_params[:'continue'] = opts[:'continue'] if !opts[:'continue'].nil?
1429
+ query_params[:'fieldSelector'] = opts[:'field_selector'] if !opts[:'field_selector'].nil?
1430
+ query_params[:'labelSelector'] = opts[:'label_selector'] if !opts[:'label_selector'].nil?
1431
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1432
+ query_params[:'resourceVersion'] = opts[:'resource_version'] if !opts[:'resource_version'].nil?
1433
+ query_params[:'resourceVersionMatch'] = opts[:'resource_version_match'] if !opts[:'resource_version_match'].nil?
1434
+ query_params[:'timeoutSeconds'] = opts[:'timeout_seconds'] if !opts[:'timeout_seconds'].nil?
1435
+ query_params[:'watch'] = opts[:'watch'] if !opts[:'watch'].nil?
1436
+
1437
+ # header parameters
1438
+ header_params = opts[:header_params] || {}
1439
+ # HTTP header 'Accept' (if needed)
1440
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json;stream=watch'])
1441
+
1442
+ # form parameters
1443
+ form_params = opts[:form_params] || {}
1444
+
1445
+ # http body (model)
1446
+ post_body = opts[:debug_body]
1447
+
1448
+ # return_type
1449
+ return_type = opts[:debug_return_type] || 'Object'
1450
+
1451
+ # auth_names
1452
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1453
+
1454
+ new_options = opts.merge(
1455
+ :operation => :"CustomObjectsApi.list_namespaced_custom_object",
1456
+ :header_params => header_params,
1457
+ :query_params => query_params,
1458
+ :form_params => form_params,
1459
+ :body => post_body,
1460
+ :auth_names => auth_names,
1461
+ :return_type => return_type
1462
+ )
1463
+
1464
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1465
+ if @api_client.config.debugging
1466
+ @api_client.config.logger.debug "API called: CustomObjectsApi#list_namespaced_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1467
+ end
1468
+ return data, status_code, headers
1469
+ end
1470
+
1471
+ # patch the specified cluster scoped custom object
1472
+ # @param group [String] the custom resource&#39;s group
1473
+ # @param version [String] the custom resource&#39;s version
1474
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
1475
+ # @param name [String] the custom object&#39;s name
1476
+ # @param body [Object] The JSON schema of the Resource to patch.
1477
+ # @param [Hash] opts the optional parameters
1478
+ # @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
1479
+ # @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).
1480
+ # @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. (optional)
1481
+ # @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.
1482
+ # @return [Object]
1483
+ def patch_cluster_custom_object(group, version, plural, name, body, opts = {})
1484
+ data, _status_code, _headers = patch_cluster_custom_object_with_http_info(group, version, plural, name, body, opts)
1485
+ data
1486
+ end
1487
+
1488
+ # patch the specified cluster scoped custom object
1489
+ # @param group [String] the custom resource&#39;s group
1490
+ # @param version [String] the custom resource&#39;s version
1491
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
1492
+ # @param name [String] the custom object&#39;s name
1493
+ # @param body [Object] The JSON schema of the Resource to patch.
1494
+ # @param [Hash] opts the optional parameters
1495
+ # @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
1496
+ # @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).
1497
+ # @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. (optional)
1498
+ # @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.
1499
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1500
+ def patch_cluster_custom_object_with_http_info(group, version, plural, name, body, opts = {})
1501
+ if @api_client.config.debugging
1502
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.patch_cluster_custom_object ...'
1503
+ end
1504
+ # verify the required parameter 'group' is set
1505
+ if @api_client.config.client_side_validation && group.nil?
1506
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.patch_cluster_custom_object"
1507
+ end
1508
+ # verify the required parameter 'version' is set
1509
+ if @api_client.config.client_side_validation && version.nil?
1510
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.patch_cluster_custom_object"
1511
+ end
1512
+ # verify the required parameter 'plural' is set
1513
+ if @api_client.config.client_side_validation && plural.nil?
1514
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.patch_cluster_custom_object"
1515
+ end
1516
+ # verify the required parameter 'name' is set
1517
+ if @api_client.config.client_side_validation && name.nil?
1518
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.patch_cluster_custom_object"
1519
+ end
1520
+ # verify the required parameter 'body' is set
1521
+ if @api_client.config.client_side_validation && body.nil?
1522
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.patch_cluster_custom_object"
1523
+ end
1524
+ # resource path
1525
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1526
+
1527
+ # query parameters
1528
+ query_params = opts[:query_params] || {}
1529
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1530
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1531
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1532
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1533
+
1534
+ # header parameters
1535
+ header_params = opts[:header_params] || {}
1536
+ # HTTP header 'Accept' (if needed)
1537
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1538
+ # HTTP header 'Content-Type'
1539
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1540
+
1541
+ # form parameters
1542
+ form_params = opts[:form_params] || {}
1543
+
1544
+ # http body (model)
1545
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1546
+
1547
+ # return_type
1548
+ return_type = opts[:debug_return_type] || 'Object'
1549
+
1550
+ # auth_names
1551
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1552
+
1553
+ new_options = opts.merge(
1554
+ :operation => :"CustomObjectsApi.patch_cluster_custom_object",
1555
+ :header_params => header_params,
1556
+ :query_params => query_params,
1557
+ :form_params => form_params,
1558
+ :body => post_body,
1559
+ :auth_names => auth_names,
1560
+ :return_type => return_type
1561
+ )
1562
+
1563
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1564
+ if @api_client.config.debugging
1565
+ @api_client.config.logger.debug "API called: CustomObjectsApi#patch_cluster_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1566
+ end
1567
+ return data, status_code, headers
1568
+ end
1569
+
1570
+ # partially update scale of the specified cluster scoped custom object
1571
+ # @param group [String] the custom resource&#39;s group
1572
+ # @param version [String] the custom resource&#39;s version
1573
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1574
+ # @param name [String] the custom object&#39;s name
1575
+ # @param body [Object]
1576
+ # @param [Hash] opts the optional parameters
1577
+ # @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
1578
+ # @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).
1579
+ # @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. (optional)
1580
+ # @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.
1581
+ # @return [Object]
1582
+ def patch_cluster_custom_object_scale(group, version, plural, name, body, opts = {})
1583
+ data, _status_code, _headers = patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, opts)
1584
+ data
1585
+ end
1586
+
1587
+ # partially update scale of the specified cluster scoped custom object
1588
+ # @param group [String] the custom resource&#39;s group
1589
+ # @param version [String] the custom resource&#39;s version
1590
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1591
+ # @param name [String] the custom object&#39;s name
1592
+ # @param body [Object]
1593
+ # @param [Hash] opts the optional parameters
1594
+ # @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
1595
+ # @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).
1596
+ # @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. (optional)
1597
+ # @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.
1598
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1599
+ def patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, opts = {})
1600
+ if @api_client.config.debugging
1601
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.patch_cluster_custom_object_scale ...'
1602
+ end
1603
+ # verify the required parameter 'group' is set
1604
+ if @api_client.config.client_side_validation && group.nil?
1605
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.patch_cluster_custom_object_scale"
1606
+ end
1607
+ # verify the required parameter 'version' is set
1608
+ if @api_client.config.client_side_validation && version.nil?
1609
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.patch_cluster_custom_object_scale"
1610
+ end
1611
+ # verify the required parameter 'plural' is set
1612
+ if @api_client.config.client_side_validation && plural.nil?
1613
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.patch_cluster_custom_object_scale"
1614
+ end
1615
+ # verify the required parameter 'name' is set
1616
+ if @api_client.config.client_side_validation && name.nil?
1617
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.patch_cluster_custom_object_scale"
1618
+ end
1619
+ # verify the required parameter 'body' is set
1620
+ if @api_client.config.client_side_validation && body.nil?
1621
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.patch_cluster_custom_object_scale"
1622
+ end
1623
+ # resource path
1624
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}/scale'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1625
+
1626
+ # query parameters
1627
+ query_params = opts[:query_params] || {}
1628
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1629
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1630
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1631
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1632
+
1633
+ # header parameters
1634
+ header_params = opts[:header_params] || {}
1635
+ # HTTP header 'Accept' (if needed)
1636
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
1637
+ # HTTP header 'Content-Type'
1638
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1639
+
1640
+ # form parameters
1641
+ form_params = opts[:form_params] || {}
1642
+
1643
+ # http body (model)
1644
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1645
+
1646
+ # return_type
1647
+ return_type = opts[:debug_return_type] || 'Object'
1648
+
1649
+ # auth_names
1650
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1651
+
1652
+ new_options = opts.merge(
1653
+ :operation => :"CustomObjectsApi.patch_cluster_custom_object_scale",
1654
+ :header_params => header_params,
1655
+ :query_params => query_params,
1656
+ :form_params => form_params,
1657
+ :body => post_body,
1658
+ :auth_names => auth_names,
1659
+ :return_type => return_type
1660
+ )
1661
+
1662
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1663
+ if @api_client.config.debugging
1664
+ @api_client.config.logger.debug "API called: CustomObjectsApi#patch_cluster_custom_object_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1665
+ end
1666
+ return data, status_code, headers
1667
+ end
1668
+
1669
+ # partially update status of the specified cluster scoped custom object
1670
+ # @param group [String] the custom resource&#39;s group
1671
+ # @param version [String] the custom resource&#39;s version
1672
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1673
+ # @param name [String] the custom object&#39;s name
1674
+ # @param body [Object]
1675
+ # @param [Hash] opts the optional parameters
1676
+ # @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
1677
+ # @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).
1678
+ # @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. (optional)
1679
+ # @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.
1680
+ # @return [Object]
1681
+ def patch_cluster_custom_object_status(group, version, plural, name, body, opts = {})
1682
+ data, _status_code, _headers = patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, opts)
1683
+ data
1684
+ end
1685
+
1686
+ # partially update status of the specified cluster scoped custom object
1687
+ # @param group [String] the custom resource&#39;s group
1688
+ # @param version [String] the custom resource&#39;s version
1689
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1690
+ # @param name [String] the custom object&#39;s name
1691
+ # @param body [Object]
1692
+ # @param [Hash] opts the optional parameters
1693
+ # @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
1694
+ # @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).
1695
+ # @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. (optional)
1696
+ # @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.
1697
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1698
+ def patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, opts = {})
1699
+ if @api_client.config.debugging
1700
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.patch_cluster_custom_object_status ...'
1701
+ end
1702
+ # verify the required parameter 'group' is set
1703
+ if @api_client.config.client_side_validation && group.nil?
1704
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.patch_cluster_custom_object_status"
1705
+ end
1706
+ # verify the required parameter 'version' is set
1707
+ if @api_client.config.client_side_validation && version.nil?
1708
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.patch_cluster_custom_object_status"
1709
+ end
1710
+ # verify the required parameter 'plural' is set
1711
+ if @api_client.config.client_side_validation && plural.nil?
1712
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.patch_cluster_custom_object_status"
1713
+ end
1714
+ # verify the required parameter 'name' is set
1715
+ if @api_client.config.client_side_validation && name.nil?
1716
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.patch_cluster_custom_object_status"
1717
+ end
1718
+ # verify the required parameter 'body' is set
1719
+ if @api_client.config.client_side_validation && body.nil?
1720
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.patch_cluster_custom_object_status"
1721
+ end
1722
+ # resource path
1723
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}/status'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1724
+
1725
+ # query parameters
1726
+ query_params = opts[:query_params] || {}
1727
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1728
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1729
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1730
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1731
+
1732
+ # header parameters
1733
+ header_params = opts[:header_params] || {}
1734
+ # HTTP header 'Accept' (if needed)
1735
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
1736
+ # HTTP header 'Content-Type'
1737
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1738
+
1739
+ # form parameters
1740
+ form_params = opts[:form_params] || {}
1741
+
1742
+ # http body (model)
1743
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1744
+
1745
+ # return_type
1746
+ return_type = opts[:debug_return_type] || 'Object'
1747
+
1748
+ # auth_names
1749
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1750
+
1751
+ new_options = opts.merge(
1752
+ :operation => :"CustomObjectsApi.patch_cluster_custom_object_status",
1753
+ :header_params => header_params,
1754
+ :query_params => query_params,
1755
+ :form_params => form_params,
1756
+ :body => post_body,
1757
+ :auth_names => auth_names,
1758
+ :return_type => return_type
1759
+ )
1760
+
1761
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1762
+ if @api_client.config.debugging
1763
+ @api_client.config.logger.debug "API called: CustomObjectsApi#patch_cluster_custom_object_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1764
+ end
1765
+ return data, status_code, headers
1766
+ end
1767
+
1768
+ # patch the specified namespace scoped custom object
1769
+ # @param group [String] the custom resource&#39;s group
1770
+ # @param version [String] the custom resource&#39;s version
1771
+ # @param namespace [String] The custom resource&#39;s namespace
1772
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1773
+ # @param name [String] the custom object&#39;s name
1774
+ # @param body [Object] The JSON schema of the Resource to patch.
1775
+ # @param [Hash] opts the optional parameters
1776
+ # @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
1777
+ # @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).
1778
+ # @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. (optional)
1779
+ # @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.
1780
+ # @return [Object]
1781
+ def patch_namespaced_custom_object(group, version, namespace, plural, name, body, opts = {})
1782
+ data, _status_code, _headers = patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, opts)
1783
+ data
1784
+ end
1785
+
1786
+ # patch the specified namespace scoped custom object
1787
+ # @param group [String] the custom resource&#39;s group
1788
+ # @param version [String] the custom resource&#39;s version
1789
+ # @param namespace [String] The custom resource&#39;s namespace
1790
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1791
+ # @param name [String] the custom object&#39;s name
1792
+ # @param body [Object] The JSON schema of the Resource to patch.
1793
+ # @param [Hash] opts the optional parameters
1794
+ # @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
1795
+ # @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).
1796
+ # @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. (optional)
1797
+ # @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.
1798
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1799
+ def patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, opts = {})
1800
+ if @api_client.config.debugging
1801
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.patch_namespaced_custom_object ...'
1802
+ end
1803
+ # verify the required parameter 'group' is set
1804
+ if @api_client.config.client_side_validation && group.nil?
1805
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.patch_namespaced_custom_object"
1806
+ end
1807
+ # verify the required parameter 'version' is set
1808
+ if @api_client.config.client_side_validation && version.nil?
1809
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.patch_namespaced_custom_object"
1810
+ end
1811
+ # verify the required parameter 'namespace' is set
1812
+ if @api_client.config.client_side_validation && namespace.nil?
1813
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.patch_namespaced_custom_object"
1814
+ end
1815
+ # verify the required parameter 'plural' is set
1816
+ if @api_client.config.client_side_validation && plural.nil?
1817
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.patch_namespaced_custom_object"
1818
+ end
1819
+ # verify the required parameter 'name' is set
1820
+ if @api_client.config.client_side_validation && name.nil?
1821
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.patch_namespaced_custom_object"
1822
+ end
1823
+ # verify the required parameter 'body' is set
1824
+ if @api_client.config.client_side_validation && body.nil?
1825
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.patch_namespaced_custom_object"
1826
+ end
1827
+ # resource path
1828
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1829
+
1830
+ # query parameters
1831
+ query_params = opts[:query_params] || {}
1832
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1833
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1834
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1835
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1836
+
1837
+ # header parameters
1838
+ header_params = opts[:header_params] || {}
1839
+ # HTTP header 'Accept' (if needed)
1840
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1841
+ # HTTP header 'Content-Type'
1842
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json'])
1843
+
1844
+ # form parameters
1845
+ form_params = opts[:form_params] || {}
1846
+
1847
+ # http body (model)
1848
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1849
+
1850
+ # return_type
1851
+ return_type = opts[:debug_return_type] || 'Object'
1852
+
1853
+ # auth_names
1854
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1855
+
1856
+ new_options = opts.merge(
1857
+ :operation => :"CustomObjectsApi.patch_namespaced_custom_object",
1858
+ :header_params => header_params,
1859
+ :query_params => query_params,
1860
+ :form_params => form_params,
1861
+ :body => post_body,
1862
+ :auth_names => auth_names,
1863
+ :return_type => return_type
1864
+ )
1865
+
1866
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1867
+ if @api_client.config.debugging
1868
+ @api_client.config.logger.debug "API called: CustomObjectsApi#patch_namespaced_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1869
+ end
1870
+ return data, status_code, headers
1871
+ end
1872
+
1873
+ # partially update scale of the specified namespace scoped custom object
1874
+ # @param group [String] the custom resource&#39;s group
1875
+ # @param version [String] the custom resource&#39;s version
1876
+ # @param namespace [String] The custom resource&#39;s namespace
1877
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1878
+ # @param name [String] the custom object&#39;s name
1879
+ # @param body [Object]
1880
+ # @param [Hash] opts the optional parameters
1881
+ # @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
1882
+ # @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).
1883
+ # @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. (optional)
1884
+ # @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.
1885
+ # @return [Object]
1886
+ def patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body, opts = {})
1887
+ data, _status_code, _headers = patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, opts)
1888
+ data
1889
+ end
1890
+
1891
+ # partially update scale of the specified namespace scoped custom object
1892
+ # @param group [String] the custom resource&#39;s group
1893
+ # @param version [String] the custom resource&#39;s version
1894
+ # @param namespace [String] The custom resource&#39;s namespace
1895
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1896
+ # @param name [String] the custom object&#39;s name
1897
+ # @param body [Object]
1898
+ # @param [Hash] opts the optional parameters
1899
+ # @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
1900
+ # @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).
1901
+ # @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. (optional)
1902
+ # @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.
1903
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1904
+ def patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, opts = {})
1905
+ if @api_client.config.debugging
1906
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.patch_namespaced_custom_object_scale ...'
1907
+ end
1908
+ # verify the required parameter 'group' is set
1909
+ if @api_client.config.client_side_validation && group.nil?
1910
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.patch_namespaced_custom_object_scale"
1911
+ end
1912
+ # verify the required parameter 'version' is set
1913
+ if @api_client.config.client_side_validation && version.nil?
1914
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.patch_namespaced_custom_object_scale"
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 CustomObjectsApi.patch_namespaced_custom_object_scale"
1919
+ end
1920
+ # verify the required parameter 'plural' is set
1921
+ if @api_client.config.client_side_validation && plural.nil?
1922
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.patch_namespaced_custom_object_scale"
1923
+ end
1924
+ # verify the required parameter 'name' is set
1925
+ if @api_client.config.client_side_validation && name.nil?
1926
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.patch_namespaced_custom_object_scale"
1927
+ end
1928
+ # verify the required parameter 'body' is set
1929
+ if @api_client.config.client_side_validation && body.nil?
1930
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.patch_namespaced_custom_object_scale"
1931
+ end
1932
+ # resource path
1933
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
1934
+
1935
+ # query parameters
1936
+ query_params = opts[:query_params] || {}
1937
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
1938
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
1939
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
1940
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
1941
+
1942
+ # header parameters
1943
+ header_params = opts[:header_params] || {}
1944
+ # HTTP header 'Accept' (if needed)
1945
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
1946
+ # HTTP header 'Content-Type'
1947
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml'])
1948
+
1949
+ # form parameters
1950
+ form_params = opts[:form_params] || {}
1951
+
1952
+ # http body (model)
1953
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
1954
+
1955
+ # return_type
1956
+ return_type = opts[:debug_return_type] || 'Object'
1957
+
1958
+ # auth_names
1959
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
1960
+
1961
+ new_options = opts.merge(
1962
+ :operation => :"CustomObjectsApi.patch_namespaced_custom_object_scale",
1963
+ :header_params => header_params,
1964
+ :query_params => query_params,
1965
+ :form_params => form_params,
1966
+ :body => post_body,
1967
+ :auth_names => auth_names,
1968
+ :return_type => return_type
1969
+ )
1970
+
1971
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1972
+ if @api_client.config.debugging
1973
+ @api_client.config.logger.debug "API called: CustomObjectsApi#patch_namespaced_custom_object_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1974
+ end
1975
+ return data, status_code, headers
1976
+ end
1977
+
1978
+ # partially update status of the specified namespace scoped custom object
1979
+ # @param group [String] the custom resource&#39;s group
1980
+ # @param version [String] the custom resource&#39;s version
1981
+ # @param namespace [String] The custom resource&#39;s namespace
1982
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
1983
+ # @param name [String] the custom object&#39;s name
1984
+ # @param body [Object]
1985
+ # @param [Hash] opts the optional parameters
1986
+ # @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
1987
+ # @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).
1988
+ # @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. (optional)
1989
+ # @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.
1990
+ # @return [Object]
1991
+ def patch_namespaced_custom_object_status(group, version, namespace, plural, name, body, opts = {})
1992
+ data, _status_code, _headers = patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, opts)
1993
+ data
1994
+ end
1995
+
1996
+ # partially update status of the specified namespace scoped custom object
1997
+ # @param group [String] the custom resource&#39;s group
1998
+ # @param version [String] the custom resource&#39;s version
1999
+ # @param namespace [String] The custom resource&#39;s namespace
2000
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2001
+ # @param name [String] the custom object&#39;s name
2002
+ # @param body [Object]
2003
+ # @param [Hash] opts the optional parameters
2004
+ # @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
2005
+ # @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).
2006
+ # @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. (optional)
2007
+ # @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.
2008
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2009
+ def patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, opts = {})
2010
+ if @api_client.config.debugging
2011
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.patch_namespaced_custom_object_status ...'
2012
+ end
2013
+ # verify the required parameter 'group' is set
2014
+ if @api_client.config.client_side_validation && group.nil?
2015
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.patch_namespaced_custom_object_status"
2016
+ end
2017
+ # verify the required parameter 'version' is set
2018
+ if @api_client.config.client_side_validation && version.nil?
2019
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.patch_namespaced_custom_object_status"
2020
+ end
2021
+ # verify the required parameter 'namespace' is set
2022
+ if @api_client.config.client_side_validation && namespace.nil?
2023
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.patch_namespaced_custom_object_status"
2024
+ end
2025
+ # verify the required parameter 'plural' is set
2026
+ if @api_client.config.client_side_validation && plural.nil?
2027
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.patch_namespaced_custom_object_status"
2028
+ end
2029
+ # verify the required parameter 'name' is set
2030
+ if @api_client.config.client_side_validation && name.nil?
2031
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.patch_namespaced_custom_object_status"
2032
+ end
2033
+ # verify the required parameter 'body' is set
2034
+ if @api_client.config.client_side_validation && body.nil?
2035
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.patch_namespaced_custom_object_status"
2036
+ end
2037
+ # resource path
2038
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
2039
+
2040
+ # query parameters
2041
+ query_params = opts[:query_params] || {}
2042
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2043
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2044
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2045
+ query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
2046
+
2047
+ # header parameters
2048
+ header_params = opts[:header_params] || {}
2049
+ # HTTP header 'Accept' (if needed)
2050
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
2051
+ # HTTP header 'Content-Type'
2052
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json-patch+json', 'application/merge-patch+json', 'application/apply-patch+yaml'])
2053
+
2054
+ # form parameters
2055
+ form_params = opts[:form_params] || {}
2056
+
2057
+ # http body (model)
2058
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2059
+
2060
+ # return_type
2061
+ return_type = opts[:debug_return_type] || 'Object'
2062
+
2063
+ # auth_names
2064
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2065
+
2066
+ new_options = opts.merge(
2067
+ :operation => :"CustomObjectsApi.patch_namespaced_custom_object_status",
2068
+ :header_params => header_params,
2069
+ :query_params => query_params,
2070
+ :form_params => form_params,
2071
+ :body => post_body,
2072
+ :auth_names => auth_names,
2073
+ :return_type => return_type
2074
+ )
2075
+
2076
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2077
+ if @api_client.config.debugging
2078
+ @api_client.config.logger.debug "API called: CustomObjectsApi#patch_namespaced_custom_object_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2079
+ end
2080
+ return data, status_code, headers
2081
+ end
2082
+
2083
+ # replace the specified cluster scoped custom object
2084
+ # @param group [String] the custom resource&#39;s group
2085
+ # @param version [String] the custom resource&#39;s version
2086
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
2087
+ # @param name [String] the custom object&#39;s name
2088
+ # @param body [Object] The JSON schema of the Resource to replace.
2089
+ # @param [Hash] opts the optional parameters
2090
+ # @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
2091
+ # @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.
2092
+ # @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. (optional)
2093
+ # @return [Object]
2094
+ def replace_cluster_custom_object(group, version, plural, name, body, opts = {})
2095
+ data, _status_code, _headers = replace_cluster_custom_object_with_http_info(group, version, plural, name, body, opts)
2096
+ data
2097
+ end
2098
+
2099
+ # replace the specified cluster scoped custom object
2100
+ # @param group [String] the custom resource&#39;s group
2101
+ # @param version [String] the custom resource&#39;s version
2102
+ # @param plural [String] the custom object&#39;s plural name. For TPRs this would be lowercase plural kind.
2103
+ # @param name [String] the custom object&#39;s name
2104
+ # @param body [Object] The JSON schema of the Resource to replace.
2105
+ # @param [Hash] opts the optional parameters
2106
+ # @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
2107
+ # @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.
2108
+ # @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. (optional)
2109
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2110
+ def replace_cluster_custom_object_with_http_info(group, version, plural, name, body, opts = {})
2111
+ if @api_client.config.debugging
2112
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.replace_cluster_custom_object ...'
2113
+ end
2114
+ # verify the required parameter 'group' is set
2115
+ if @api_client.config.client_side_validation && group.nil?
2116
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.replace_cluster_custom_object"
2117
+ end
2118
+ # verify the required parameter 'version' is set
2119
+ if @api_client.config.client_side_validation && version.nil?
2120
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.replace_cluster_custom_object"
2121
+ end
2122
+ # verify the required parameter 'plural' is set
2123
+ if @api_client.config.client_side_validation && plural.nil?
2124
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.replace_cluster_custom_object"
2125
+ end
2126
+ # verify the required parameter 'name' is set
2127
+ if @api_client.config.client_side_validation && name.nil?
2128
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.replace_cluster_custom_object"
2129
+ end
2130
+ # verify the required parameter 'body' is set
2131
+ if @api_client.config.client_side_validation && body.nil?
2132
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.replace_cluster_custom_object"
2133
+ end
2134
+ # resource path
2135
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
2136
+
2137
+ # query parameters
2138
+ query_params = opts[:query_params] || {}
2139
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2140
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2141
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2142
+
2143
+ # header parameters
2144
+ header_params = opts[:header_params] || {}
2145
+ # HTTP header 'Accept' (if needed)
2146
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2147
+
2148
+ # form parameters
2149
+ form_params = opts[:form_params] || {}
2150
+
2151
+ # http body (model)
2152
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2153
+
2154
+ # return_type
2155
+ return_type = opts[:debug_return_type] || 'Object'
2156
+
2157
+ # auth_names
2158
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2159
+
2160
+ new_options = opts.merge(
2161
+ :operation => :"CustomObjectsApi.replace_cluster_custom_object",
2162
+ :header_params => header_params,
2163
+ :query_params => query_params,
2164
+ :form_params => form_params,
2165
+ :body => post_body,
2166
+ :auth_names => auth_names,
2167
+ :return_type => return_type
2168
+ )
2169
+
2170
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2171
+ if @api_client.config.debugging
2172
+ @api_client.config.logger.debug "API called: CustomObjectsApi#replace_cluster_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2173
+ end
2174
+ return data, status_code, headers
2175
+ end
2176
+
2177
+ # replace scale of the specified cluster scoped custom object
2178
+ # @param group [String] the custom resource&#39;s group
2179
+ # @param version [String] the custom resource&#39;s version
2180
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2181
+ # @param name [String] the custom object&#39;s name
2182
+ # @param body [Object]
2183
+ # @param [Hash] opts the optional parameters
2184
+ # @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
2185
+ # @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.
2186
+ # @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. (optional)
2187
+ # @return [Object]
2188
+ def replace_cluster_custom_object_scale(group, version, plural, name, body, opts = {})
2189
+ data, _status_code, _headers = replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, opts)
2190
+ data
2191
+ end
2192
+
2193
+ # replace scale of the specified cluster scoped custom object
2194
+ # @param group [String] the custom resource&#39;s group
2195
+ # @param version [String] the custom resource&#39;s version
2196
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2197
+ # @param name [String] the custom object&#39;s name
2198
+ # @param body [Object]
2199
+ # @param [Hash] opts the optional parameters
2200
+ # @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
2201
+ # @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.
2202
+ # @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. (optional)
2203
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2204
+ def replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, opts = {})
2205
+ if @api_client.config.debugging
2206
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.replace_cluster_custom_object_scale ...'
2207
+ end
2208
+ # verify the required parameter 'group' is set
2209
+ if @api_client.config.client_side_validation && group.nil?
2210
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.replace_cluster_custom_object_scale"
2211
+ end
2212
+ # verify the required parameter 'version' is set
2213
+ if @api_client.config.client_side_validation && version.nil?
2214
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.replace_cluster_custom_object_scale"
2215
+ end
2216
+ # verify the required parameter 'plural' is set
2217
+ if @api_client.config.client_side_validation && plural.nil?
2218
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.replace_cluster_custom_object_scale"
2219
+ end
2220
+ # verify the required parameter 'name' is set
2221
+ if @api_client.config.client_side_validation && name.nil?
2222
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.replace_cluster_custom_object_scale"
2223
+ end
2224
+ # verify the required parameter 'body' is set
2225
+ if @api_client.config.client_side_validation && body.nil?
2226
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.replace_cluster_custom_object_scale"
2227
+ end
2228
+ # resource path
2229
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}/scale'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
2230
+
2231
+ # query parameters
2232
+ query_params = opts[:query_params] || {}
2233
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2234
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2235
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2236
+
2237
+ # header parameters
2238
+ header_params = opts[:header_params] || {}
2239
+ # HTTP header 'Accept' (if needed)
2240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
2241
+
2242
+ # form parameters
2243
+ form_params = opts[:form_params] || {}
2244
+
2245
+ # http body (model)
2246
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2247
+
2248
+ # return_type
2249
+ return_type = opts[:debug_return_type] || 'Object'
2250
+
2251
+ # auth_names
2252
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2253
+
2254
+ new_options = opts.merge(
2255
+ :operation => :"CustomObjectsApi.replace_cluster_custom_object_scale",
2256
+ :header_params => header_params,
2257
+ :query_params => query_params,
2258
+ :form_params => form_params,
2259
+ :body => post_body,
2260
+ :auth_names => auth_names,
2261
+ :return_type => return_type
2262
+ )
2263
+
2264
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2265
+ if @api_client.config.debugging
2266
+ @api_client.config.logger.debug "API called: CustomObjectsApi#replace_cluster_custom_object_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2267
+ end
2268
+ return data, status_code, headers
2269
+ end
2270
+
2271
+ # replace status of the cluster scoped specified custom object
2272
+ # @param group [String] the custom resource&#39;s group
2273
+ # @param version [String] the custom resource&#39;s version
2274
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2275
+ # @param name [String] the custom object&#39;s name
2276
+ # @param body [Object]
2277
+ # @param [Hash] opts the optional parameters
2278
+ # @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
2279
+ # @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.
2280
+ # @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. (optional)
2281
+ # @return [Object]
2282
+ def replace_cluster_custom_object_status(group, version, plural, name, body, opts = {})
2283
+ data, _status_code, _headers = replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, opts)
2284
+ data
2285
+ end
2286
+
2287
+ # replace status of the cluster scoped specified custom object
2288
+ # @param group [String] the custom resource&#39;s group
2289
+ # @param version [String] the custom resource&#39;s version
2290
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2291
+ # @param name [String] the custom object&#39;s name
2292
+ # @param body [Object]
2293
+ # @param [Hash] opts the optional parameters
2294
+ # @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
2295
+ # @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.
2296
+ # @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. (optional)
2297
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2298
+ def replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, opts = {})
2299
+ if @api_client.config.debugging
2300
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.replace_cluster_custom_object_status ...'
2301
+ end
2302
+ # verify the required parameter 'group' is set
2303
+ if @api_client.config.client_side_validation && group.nil?
2304
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.replace_cluster_custom_object_status"
2305
+ end
2306
+ # verify the required parameter 'version' is set
2307
+ if @api_client.config.client_side_validation && version.nil?
2308
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.replace_cluster_custom_object_status"
2309
+ end
2310
+ # verify the required parameter 'plural' is set
2311
+ if @api_client.config.client_side_validation && plural.nil?
2312
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.replace_cluster_custom_object_status"
2313
+ end
2314
+ # verify the required parameter 'name' is set
2315
+ if @api_client.config.client_side_validation && name.nil?
2316
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.replace_cluster_custom_object_status"
2317
+ end
2318
+ # verify the required parameter 'body' is set
2319
+ if @api_client.config.client_side_validation && body.nil?
2320
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.replace_cluster_custom_object_status"
2321
+ end
2322
+ # resource path
2323
+ local_var_path = '/apis/{group}/{version}/{plural}/{name}/status'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
2324
+
2325
+ # query parameters
2326
+ query_params = opts[:query_params] || {}
2327
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2328
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2329
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2330
+
2331
+ # header parameters
2332
+ header_params = opts[:header_params] || {}
2333
+ # HTTP header 'Accept' (if needed)
2334
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
2335
+
2336
+ # form parameters
2337
+ form_params = opts[:form_params] || {}
2338
+
2339
+ # http body (model)
2340
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2341
+
2342
+ # return_type
2343
+ return_type = opts[:debug_return_type] || 'Object'
2344
+
2345
+ # auth_names
2346
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2347
+
2348
+ new_options = opts.merge(
2349
+ :operation => :"CustomObjectsApi.replace_cluster_custom_object_status",
2350
+ :header_params => header_params,
2351
+ :query_params => query_params,
2352
+ :form_params => form_params,
2353
+ :body => post_body,
2354
+ :auth_names => auth_names,
2355
+ :return_type => return_type
2356
+ )
2357
+
2358
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2359
+ if @api_client.config.debugging
2360
+ @api_client.config.logger.debug "API called: CustomObjectsApi#replace_cluster_custom_object_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2361
+ end
2362
+ return data, status_code, headers
2363
+ end
2364
+
2365
+ # replace the specified namespace scoped custom object
2366
+ # @param group [String] the custom resource&#39;s group
2367
+ # @param version [String] the custom resource&#39;s version
2368
+ # @param namespace [String] The custom resource&#39;s namespace
2369
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2370
+ # @param name [String] the custom object&#39;s name
2371
+ # @param body [Object] The JSON schema of the Resource to replace.
2372
+ # @param [Hash] opts the optional parameters
2373
+ # @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
2374
+ # @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.
2375
+ # @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. (optional)
2376
+ # @return [Object]
2377
+ def replace_namespaced_custom_object(group, version, namespace, plural, name, body, opts = {})
2378
+ data, _status_code, _headers = replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, opts)
2379
+ data
2380
+ end
2381
+
2382
+ # replace the specified namespace scoped custom object
2383
+ # @param group [String] the custom resource&#39;s group
2384
+ # @param version [String] the custom resource&#39;s version
2385
+ # @param namespace [String] The custom resource&#39;s namespace
2386
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2387
+ # @param name [String] the custom object&#39;s name
2388
+ # @param body [Object] The JSON schema of the Resource to replace.
2389
+ # @param [Hash] opts the optional parameters
2390
+ # @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
2391
+ # @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.
2392
+ # @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. (optional)
2393
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2394
+ def replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, opts = {})
2395
+ if @api_client.config.debugging
2396
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.replace_namespaced_custom_object ...'
2397
+ end
2398
+ # verify the required parameter 'group' is set
2399
+ if @api_client.config.client_side_validation && group.nil?
2400
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.replace_namespaced_custom_object"
2401
+ end
2402
+ # verify the required parameter 'version' is set
2403
+ if @api_client.config.client_side_validation && version.nil?
2404
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.replace_namespaced_custom_object"
2405
+ end
2406
+ # verify the required parameter 'namespace' is set
2407
+ if @api_client.config.client_side_validation && namespace.nil?
2408
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.replace_namespaced_custom_object"
2409
+ end
2410
+ # verify the required parameter 'plural' is set
2411
+ if @api_client.config.client_side_validation && plural.nil?
2412
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.replace_namespaced_custom_object"
2413
+ end
2414
+ # verify the required parameter 'name' is set
2415
+ if @api_client.config.client_side_validation && name.nil?
2416
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.replace_namespaced_custom_object"
2417
+ end
2418
+ # verify the required parameter 'body' is set
2419
+ if @api_client.config.client_side_validation && body.nil?
2420
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.replace_namespaced_custom_object"
2421
+ end
2422
+ # resource path
2423
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
2424
+
2425
+ # query parameters
2426
+ query_params = opts[:query_params] || {}
2427
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2428
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2429
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2430
+
2431
+ # header parameters
2432
+ header_params = opts[:header_params] || {}
2433
+ # HTTP header 'Accept' (if needed)
2434
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2435
+
2436
+ # form parameters
2437
+ form_params = opts[:form_params] || {}
2438
+
2439
+ # http body (model)
2440
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2441
+
2442
+ # return_type
2443
+ return_type = opts[:debug_return_type] || 'Object'
2444
+
2445
+ # auth_names
2446
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2447
+
2448
+ new_options = opts.merge(
2449
+ :operation => :"CustomObjectsApi.replace_namespaced_custom_object",
2450
+ :header_params => header_params,
2451
+ :query_params => query_params,
2452
+ :form_params => form_params,
2453
+ :body => post_body,
2454
+ :auth_names => auth_names,
2455
+ :return_type => return_type
2456
+ )
2457
+
2458
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2459
+ if @api_client.config.debugging
2460
+ @api_client.config.logger.debug "API called: CustomObjectsApi#replace_namespaced_custom_object\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2461
+ end
2462
+ return data, status_code, headers
2463
+ end
2464
+
2465
+ # replace scale of the specified namespace scoped custom object
2466
+ # @param group [String] the custom resource&#39;s group
2467
+ # @param version [String] the custom resource&#39;s version
2468
+ # @param namespace [String] The custom resource&#39;s namespace
2469
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2470
+ # @param name [String] the custom object&#39;s name
2471
+ # @param body [Object]
2472
+ # @param [Hash] opts the optional parameters
2473
+ # @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
2474
+ # @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.
2475
+ # @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. (optional)
2476
+ # @return [Object]
2477
+ def replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body, opts = {})
2478
+ data, _status_code, _headers = replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, opts)
2479
+ data
2480
+ end
2481
+
2482
+ # replace scale of the specified namespace scoped custom object
2483
+ # @param group [String] the custom resource&#39;s group
2484
+ # @param version [String] the custom resource&#39;s version
2485
+ # @param namespace [String] The custom resource&#39;s namespace
2486
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2487
+ # @param name [String] the custom object&#39;s name
2488
+ # @param body [Object]
2489
+ # @param [Hash] opts the optional parameters
2490
+ # @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
2491
+ # @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.
2492
+ # @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. (optional)
2493
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2494
+ def replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, opts = {})
2495
+ if @api_client.config.debugging
2496
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.replace_namespaced_custom_object_scale ...'
2497
+ end
2498
+ # verify the required parameter 'group' is set
2499
+ if @api_client.config.client_side_validation && group.nil?
2500
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.replace_namespaced_custom_object_scale"
2501
+ end
2502
+ # verify the required parameter 'version' is set
2503
+ if @api_client.config.client_side_validation && version.nil?
2504
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.replace_namespaced_custom_object_scale"
2505
+ end
2506
+ # verify the required parameter 'namespace' is set
2507
+ if @api_client.config.client_side_validation && namespace.nil?
2508
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.replace_namespaced_custom_object_scale"
2509
+ end
2510
+ # verify the required parameter 'plural' is set
2511
+ if @api_client.config.client_side_validation && plural.nil?
2512
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.replace_namespaced_custom_object_scale"
2513
+ end
2514
+ # verify the required parameter 'name' is set
2515
+ if @api_client.config.client_side_validation && name.nil?
2516
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.replace_namespaced_custom_object_scale"
2517
+ end
2518
+ # verify the required parameter 'body' is set
2519
+ if @api_client.config.client_side_validation && body.nil?
2520
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.replace_namespaced_custom_object_scale"
2521
+ end
2522
+ # resource path
2523
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
2524
+
2525
+ # query parameters
2526
+ query_params = opts[:query_params] || {}
2527
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2528
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2529
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2530
+
2531
+ # header parameters
2532
+ header_params = opts[:header_params] || {}
2533
+ # HTTP header 'Accept' (if needed)
2534
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
2535
+
2536
+ # form parameters
2537
+ form_params = opts[:form_params] || {}
2538
+
2539
+ # http body (model)
2540
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2541
+
2542
+ # return_type
2543
+ return_type = opts[:debug_return_type] || 'Object'
2544
+
2545
+ # auth_names
2546
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2547
+
2548
+ new_options = opts.merge(
2549
+ :operation => :"CustomObjectsApi.replace_namespaced_custom_object_scale",
2550
+ :header_params => header_params,
2551
+ :query_params => query_params,
2552
+ :form_params => form_params,
2553
+ :body => post_body,
2554
+ :auth_names => auth_names,
2555
+ :return_type => return_type
2556
+ )
2557
+
2558
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2559
+ if @api_client.config.debugging
2560
+ @api_client.config.logger.debug "API called: CustomObjectsApi#replace_namespaced_custom_object_scale\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2561
+ end
2562
+ return data, status_code, headers
2563
+ end
2564
+
2565
+ # replace status of the specified namespace scoped custom object
2566
+ # @param group [String] the custom resource&#39;s group
2567
+ # @param version [String] the custom resource&#39;s version
2568
+ # @param namespace [String] The custom resource&#39;s namespace
2569
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2570
+ # @param name [String] the custom object&#39;s name
2571
+ # @param body [Object]
2572
+ # @param [Hash] opts the optional parameters
2573
+ # @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
2574
+ # @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.
2575
+ # @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. (optional)
2576
+ # @return [Object]
2577
+ def replace_namespaced_custom_object_status(group, version, namespace, plural, name, body, opts = {})
2578
+ data, _status_code, _headers = replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, opts)
2579
+ data
2580
+ end
2581
+
2582
+ # replace status of the specified namespace scoped custom object
2583
+ # @param group [String] the custom resource&#39;s group
2584
+ # @param version [String] the custom resource&#39;s version
2585
+ # @param namespace [String] The custom resource&#39;s namespace
2586
+ # @param plural [String] the custom resource&#39;s plural name. For TPRs this would be lowercase plural kind.
2587
+ # @param name [String] the custom object&#39;s name
2588
+ # @param body [Object]
2589
+ # @param [Hash] opts the optional parameters
2590
+ # @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
2591
+ # @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.
2592
+ # @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. (optional)
2593
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
2594
+ def replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, opts = {})
2595
+ if @api_client.config.debugging
2596
+ @api_client.config.logger.debug 'Calling API: CustomObjectsApi.replace_namespaced_custom_object_status ...'
2597
+ end
2598
+ # verify the required parameter 'group' is set
2599
+ if @api_client.config.client_side_validation && group.nil?
2600
+ fail ArgumentError, "Missing the required parameter 'group' when calling CustomObjectsApi.replace_namespaced_custom_object_status"
2601
+ end
2602
+ # verify the required parameter 'version' is set
2603
+ if @api_client.config.client_side_validation && version.nil?
2604
+ fail ArgumentError, "Missing the required parameter 'version' when calling CustomObjectsApi.replace_namespaced_custom_object_status"
2605
+ end
2606
+ # verify the required parameter 'namespace' is set
2607
+ if @api_client.config.client_side_validation && namespace.nil?
2608
+ fail ArgumentError, "Missing the required parameter 'namespace' when calling CustomObjectsApi.replace_namespaced_custom_object_status"
2609
+ end
2610
+ # verify the required parameter 'plural' is set
2611
+ if @api_client.config.client_side_validation && plural.nil?
2612
+ fail ArgumentError, "Missing the required parameter 'plural' when calling CustomObjectsApi.replace_namespaced_custom_object_status"
2613
+ end
2614
+ # verify the required parameter 'name' is set
2615
+ if @api_client.config.client_side_validation && name.nil?
2616
+ fail ArgumentError, "Missing the required parameter 'name' when calling CustomObjectsApi.replace_namespaced_custom_object_status"
2617
+ end
2618
+ # verify the required parameter 'body' is set
2619
+ if @api_client.config.client_side_validation && body.nil?
2620
+ fail ArgumentError, "Missing the required parameter 'body' when calling CustomObjectsApi.replace_namespaced_custom_object_status"
2621
+ end
2622
+ # resource path
2623
+ local_var_path = '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status'.sub('{' + 'group' + '}', CGI.escape(group.to_s)).sub('{' + 'version' + '}', CGI.escape(version.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)).sub('{' + 'plural' + '}', CGI.escape(plural.to_s)).sub('{' + 'name' + '}', CGI.escape(name.to_s))
2624
+
2625
+ # query parameters
2626
+ query_params = opts[:query_params] || {}
2627
+ query_params[:'dryRun'] = opts[:'dry_run'] if !opts[:'dry_run'].nil?
2628
+ query_params[:'fieldManager'] = opts[:'field_manager'] if !opts[:'field_manager'].nil?
2629
+ query_params[:'fieldValidation'] = opts[:'field_validation'] if !opts[:'field_validation'].nil?
2630
+
2631
+ # header parameters
2632
+ header_params = opts[:header_params] || {}
2633
+ # HTTP header 'Accept' (if needed)
2634
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf'])
2635
+
2636
+ # form parameters
2637
+ form_params = opts[:form_params] || {}
2638
+
2639
+ # http body (model)
2640
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
2641
+
2642
+ # return_type
2643
+ return_type = opts[:debug_return_type] || 'Object'
2644
+
2645
+ # auth_names
2646
+ auth_names = opts[:debug_auth_names] || ['BearerToken']
2647
+
2648
+ new_options = opts.merge(
2649
+ :operation => :"CustomObjectsApi.replace_namespaced_custom_object_status",
2650
+ :header_params => header_params,
2651
+ :query_params => query_params,
2652
+ :form_params => form_params,
2653
+ :body => post_body,
2654
+ :auth_names => auth_names,
2655
+ :return_type => return_type
2656
+ )
2657
+
2658
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2659
+ if @api_client.config.debugging
2660
+ @api_client.config.logger.debug "API called: CustomObjectsApi#replace_namespaced_custom_object_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2661
+ end
2662
+ return data, status_code, headers
2663
+ end
2664
+ end
2665
+ end