wandelbots-api-client 25.9.0.dev19__py3-none-any.whl → 25.11.0.dev16__py3-none-any.whl

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 (637) hide show
  1. wandelbots_api_client/__init__.py +2 -3
  2. wandelbots_api_client/api/__init__.py +2 -0
  3. wandelbots_api_client/api/application_api.py +1 -2
  4. wandelbots_api_client/api/cell_api.py +1 -2
  5. wandelbots_api_client/api/controller_api.py +10 -5
  6. wandelbots_api_client/api/controller_ios_api.py +3 -2
  7. wandelbots_api_client/api/coordinate_systems_api.py +1 -2
  8. wandelbots_api_client/api/device_configuration_api.py +1 -2
  9. wandelbots_api_client/api/library_program_api.py +1 -2
  10. wandelbots_api_client/api/library_program_metadata_api.py +1 -2
  11. wandelbots_api_client/api/library_recipe_api.py +1 -2
  12. wandelbots_api_client/api/library_recipe_metadata_api.py +1 -2
  13. wandelbots_api_client/api/license_api.py +1 -2
  14. wandelbots_api_client/api/motion_api.py +17 -6
  15. wandelbots_api_client/api/motion_group_api.py +1 -2
  16. wandelbots_api_client/api/motion_group_infos_api.py +3 -2
  17. wandelbots_api_client/api/motion_group_jogging_api.py +11 -6
  18. wandelbots_api_client/api/motion_group_kinematic_api.py +1 -2
  19. wandelbots_api_client/api/program_api.py +1 -2
  20. wandelbots_api_client/api/program_operator_api.py +1 -2
  21. wandelbots_api_client/api/program_values_api.py +1 -2
  22. wandelbots_api_client/api/store_collision_components_api.py +10 -8
  23. wandelbots_api_client/api/store_collision_scenes_api.py +1 -2
  24. wandelbots_api_client/api/store_object_api.py +1 -2
  25. wandelbots_api_client/api/system_api.py +1 -2
  26. wandelbots_api_client/api/version_api.py +284 -0
  27. wandelbots_api_client/api/virtual_robot_api.py +1 -2
  28. wandelbots_api_client/api/virtual_robot_behavior_api.py +6 -4
  29. wandelbots_api_client/api/virtual_robot_mode_api.py +1 -2
  30. wandelbots_api_client/api/virtual_robot_setup_api.py +1 -2
  31. wandelbots_api_client/api_client.py +14 -7
  32. wandelbots_api_client/configuration.py +18 -7
  33. wandelbots_api_client/exceptions.py +1 -1
  34. wandelbots_api_client/models/__init__.py +3 -4
  35. wandelbots_api_client/models/abb_controller.py +5 -5
  36. wandelbots_api_client/models/abb_controller_egm_server.py +3 -3
  37. wandelbots_api_client/models/activate_license_request.py +2 -2
  38. wandelbots_api_client/models/add_request.py +3 -3
  39. wandelbots_api_client/models/all_joint_positions_request.py +3 -3
  40. wandelbots_api_client/models/all_joint_positions_response.py +2 -2
  41. wandelbots_api_client/models/api_version.py +91 -0
  42. wandelbots_api_client/models/app.py +8 -8
  43. wandelbots_api_client/models/array_input.py +2 -2
  44. wandelbots_api_client/models/array_output.py +2 -2
  45. wandelbots_api_client/models/behavior.py +1 -1
  46. wandelbots_api_client/models/blending_auto.py +3 -3
  47. wandelbots_api_client/models/blending_position.py +3 -3
  48. wandelbots_api_client/models/box.py +5 -5
  49. wandelbots_api_client/models/box2.py +6 -6
  50. wandelbots_api_client/models/box3.py +6 -6
  51. wandelbots_api_client/models/capsule.py +3 -3
  52. wandelbots_api_client/models/capsule2.py +4 -4
  53. wandelbots_api_client/models/capsule3.py +4 -4
  54. wandelbots_api_client/models/capture.py +2 -2
  55. wandelbots_api_client/models/cell.py +4 -4
  56. wandelbots_api_client/models/circle.py +3 -3
  57. wandelbots_api_client/models/code_with_arguments.py +7 -6
  58. wandelbots_api_client/models/collection_value.py +1 -1
  59. wandelbots_api_client/models/collider.py +4 -4
  60. wandelbots_api_client/models/collider_input.py +4 -4
  61. wandelbots_api_client/models/collider_output.py +4 -4
  62. wandelbots_api_client/models/collider_output_shape.py +1 -1
  63. wandelbots_api_client/models/collider_shape.py +1 -41
  64. wandelbots_api_client/models/collision.py +7 -7
  65. wandelbots_api_client/models/collision_contact.py +3 -3
  66. wandelbots_api_client/models/collision_motion_group.py +7 -6
  67. wandelbots_api_client/models/collision_motion_group_assembly.py +9 -8
  68. wandelbots_api_client/models/collision_robot_configuration_input.py +12 -10
  69. wandelbots_api_client/models/collision_robot_configuration_output.py +12 -10
  70. wandelbots_api_client/models/collision_scene.py +11 -9
  71. wandelbots_api_client/models/collision_scene_assembly.py +14 -12
  72. wandelbots_api_client/models/command.py +7 -7
  73. wandelbots_api_client/models/command_settings.py +4 -4
  74. wandelbots_api_client/models/comparator.py +1 -1
  75. wandelbots_api_client/models/compound.py +2 -2
  76. wandelbots_api_client/models/container_environment_inner.py +3 -3
  77. wandelbots_api_client/models/container_image.py +4 -4
  78. wandelbots_api_client/models/container_image_secrets_inner.py +2 -2
  79. wandelbots_api_client/models/container_resources.py +2 -2
  80. wandelbots_api_client/models/container_storage.py +3 -3
  81. wandelbots_api_client/models/controller_capabilities.py +3 -3
  82. wandelbots_api_client/models/controller_instance.py +9 -9
  83. wandelbots_api_client/models/controller_instance_list.py +2 -2
  84. wandelbots_api_client/models/convex_hull.py +2 -2
  85. wandelbots_api_client/models/convex_hull2.py +3 -3
  86. wandelbots_api_client/models/convex_hull3.py +3 -3
  87. wandelbots_api_client/models/coordinate_system.py +6 -6
  88. wandelbots_api_client/models/coordinate_systems.py +2 -2
  89. wandelbots_api_client/models/create_device_request_inner.py +1 -1
  90. wandelbots_api_client/models/create_program_run200_response.py +2 -2
  91. wandelbots_api_client/models/create_program_run_request.py +2 -2
  92. wandelbots_api_client/models/create_trigger200_response.py +2 -2
  93. wandelbots_api_client/models/create_trigger_request.py +7 -7
  94. wandelbots_api_client/models/cubic_spline.py +2 -2
  95. wandelbots_api_client/models/cubic_spline_cubic_spline_parameter.py +3 -3
  96. wandelbots_api_client/models/cubic_spline_parameter.py +3 -3
  97. wandelbots_api_client/models/cycle_time.py +2 -2
  98. wandelbots_api_client/models/cylinder.py +3 -3
  99. wandelbots_api_client/models/cylinder2.py +4 -4
  100. wandelbots_api_client/models/cylinder3.py +4 -4
  101. wandelbots_api_client/models/dh_parameter.py +6 -6
  102. wandelbots_api_client/models/direction.py +1 -1
  103. wandelbots_api_client/models/direction_jogging_request.py +10 -10
  104. wandelbots_api_client/models/error.py +3 -3
  105. wandelbots_api_client/models/execute_trajectory_request.py +1 -1
  106. wandelbots_api_client/models/execute_trajectory_response.py +1 -1
  107. wandelbots_api_client/models/execution_result.py +4 -4
  108. wandelbots_api_client/models/external_joint_stream_datapoint.py +3 -3
  109. wandelbots_api_client/models/external_joint_stream_datapoint_value.py +5 -5
  110. wandelbots_api_client/models/fanuc_controller.py +3 -3
  111. wandelbots_api_client/models/feedback_collision.py +5 -5
  112. wandelbots_api_client/models/feedback_joint_limit_exceeded.py +4 -4
  113. wandelbots_api_client/models/feedback_out_of_workspace.py +3 -3
  114. wandelbots_api_client/models/feedback_singularity.py +4 -4
  115. wandelbots_api_client/models/flag.py +2 -2
  116. wandelbots_api_client/models/force_vector.py +4 -4
  117. wandelbots_api_client/models/geometry.py +12 -12
  118. wandelbots_api_client/models/get_all_program_runs200_response.py +2 -2
  119. wandelbots_api_client/models/get_all_triggers200_response.py +2 -2
  120. wandelbots_api_client/models/get_mode_response.py +2 -2
  121. wandelbots_api_client/models/get_trajectory_response.py +2 -2
  122. wandelbots_api_client/models/get_trajectory_sample_response.py +2 -2
  123. wandelbots_api_client/models/google_protobuf_any.py +2 -2
  124. wandelbots_api_client/models/http_exception_response.py +2 -2
  125. wandelbots_api_client/models/http_validation_error.py +2 -2
  126. wandelbots_api_client/models/http_validation_error2.py +2 -2
  127. wandelbots_api_client/models/image_credentials.py +4 -4
  128. wandelbots_api_client/models/info_service_capabilities.py +8 -8
  129. wandelbots_api_client/models/initialize_movement_request.py +6 -6
  130. wandelbots_api_client/models/initialize_movement_response.py +2 -2
  131. wandelbots_api_client/models/initialize_movement_response_init_response.py +3 -3
  132. wandelbots_api_client/models/io.py +6 -6
  133. wandelbots_api_client/models/io_description.py +10 -10
  134. wandelbots_api_client/models/io_value.py +5 -5
  135. wandelbots_api_client/models/ios.py +2 -2
  136. wandelbots_api_client/models/jogging_response.py +4 -4
  137. wandelbots_api_client/models/jogging_service_capabilities.py +3 -3
  138. wandelbots_api_client/models/joint_jogging_request.py +6 -6
  139. wandelbots_api_client/models/joint_limit.py +5 -5
  140. wandelbots_api_client/models/joint_limit_exceeded.py +3 -3
  141. wandelbots_api_client/models/joint_position_request.py +4 -4
  142. wandelbots_api_client/models/joint_trajectory.py +4 -4
  143. wandelbots_api_client/models/joints.py +2 -2
  144. wandelbots_api_client/models/kinematic_service_capabilities.py +4 -4
  145. wandelbots_api_client/models/kuka_controller.py +6 -6
  146. wandelbots_api_client/models/kuka_controller_rsi_server.py +3 -3
  147. wandelbots_api_client/models/license.py +11 -11
  148. wandelbots_api_client/models/license_status.py +3 -3
  149. wandelbots_api_client/models/license_status_enum.py +1 -1
  150. wandelbots_api_client/models/limit_settings.py +13 -13
  151. wandelbots_api_client/models/limits_override.py +7 -7
  152. wandelbots_api_client/models/list_devices200_response_inner.py +1 -1
  153. wandelbots_api_client/models/list_io_descriptions_response.py +2 -2
  154. wandelbots_api_client/models/list_io_values_response.py +2 -2
  155. wandelbots_api_client/models/list_payloads_response.py +2 -2
  156. wandelbots_api_client/models/list_program_metadata_response.py +2 -2
  157. wandelbots_api_client/models/list_recipe_metadata_response.py +2 -2
  158. wandelbots_api_client/models/list_response.py +2 -2
  159. wandelbots_api_client/models/list_tcps_response.py +2 -2
  160. wandelbots_api_client/models/manufacturer.py +1 -1
  161. wandelbots_api_client/models/mode_change_response.py +5 -5
  162. wandelbots_api_client/models/motion_command.py +4 -4
  163. wandelbots_api_client/models/motion_command_blending.py +1 -1
  164. wandelbots_api_client/models/motion_command_path.py +1 -1
  165. wandelbots_api_client/models/motion_group_behavior_getter.py +2 -2
  166. wandelbots_api_client/models/motion_group_info.py +4 -4
  167. wandelbots_api_client/models/motion_group_infos.py +2 -2
  168. wandelbots_api_client/models/motion_group_instance.py +6 -6
  169. wandelbots_api_client/models/motion_group_instance_list.py +2 -2
  170. wandelbots_api_client/models/motion_group_joints.py +5 -5
  171. wandelbots_api_client/models/motion_group_physical.py +6 -6
  172. wandelbots_api_client/models/motion_group_specification.py +3 -3
  173. wandelbots_api_client/models/motion_group_state.py +13 -13
  174. wandelbots_api_client/models/motion_group_state_joint_limit_reached.py +2 -2
  175. wandelbots_api_client/models/motion_group_state_response.py +3 -3
  176. wandelbots_api_client/models/motion_id.py +2 -2
  177. wandelbots_api_client/models/motion_ids_list_response.py +2 -2
  178. wandelbots_api_client/models/motion_vector.py +4 -4
  179. wandelbots_api_client/models/mounting.py +3 -3
  180. wandelbots_api_client/models/move_request.py +9 -9
  181. wandelbots_api_client/models/move_response.py +3 -3
  182. wandelbots_api_client/models/move_to_trajectory_via_joint_ptp_request.py +5 -5
  183. wandelbots_api_client/models/movement.py +2 -2
  184. wandelbots_api_client/models/movement_error.py +2 -2
  185. wandelbots_api_client/models/movement_error_error.py +2 -2
  186. wandelbots_api_client/models/movement_movement.py +4 -4
  187. wandelbots_api_client/models/op_mode.py +2 -2
  188. wandelbots_api_client/models/opcua_node_value_trigger_config.py +4 -4
  189. wandelbots_api_client/models/opcua_node_value_trigger_config_node_value.py +1 -1
  190. wandelbots_api_client/models/optimizer_setup.py +8 -8
  191. wandelbots_api_client/models/out_of_workspace.py +2 -2
  192. wandelbots_api_client/models/path.py +2 -2
  193. wandelbots_api_client/models/path_cartesian_ptp.py +3 -3
  194. wandelbots_api_client/models/path_circle.py +4 -4
  195. wandelbots_api_client/models/path_cubic_spline.py +3 -3
  196. wandelbots_api_client/models/path_joint_ptp.py +3 -3
  197. wandelbots_api_client/models/path_line.py +3 -3
  198. wandelbots_api_client/models/pause_movement_request.py +3 -3
  199. wandelbots_api_client/models/pause_movement_response.py +2 -2
  200. wandelbots_api_client/models/pause_movement_response_pause_response.py +3 -3
  201. wandelbots_api_client/models/pause_on_io.py +3 -3
  202. wandelbots_api_client/models/payload.py +5 -5
  203. wandelbots_api_client/models/plan_collision_free_ptp_request.py +10 -9
  204. wandelbots_api_client/models/plan_collision_free_ptp_request_target.py +1 -1
  205. wandelbots_api_client/models/plan_failed_on_trajectory_response.py +10 -10
  206. wandelbots_api_client/models/plan_failed_response.py +8 -8
  207. wandelbots_api_client/models/plan_request.py +6 -6
  208. wandelbots_api_client/models/plan_response.py +4 -4
  209. wandelbots_api_client/models/plan_successful_response.py +3 -3
  210. wandelbots_api_client/models/plan_trajectory_failed_response.py +4 -4
  211. wandelbots_api_client/models/plan_trajectory_failed_response_error_feedback.py +1 -1
  212. wandelbots_api_client/models/plan_trajectory_request.py +10 -9
  213. wandelbots_api_client/models/plan_trajectory_response.py +2 -2
  214. wandelbots_api_client/models/plan_trajectory_response_response.py +1 -1
  215. wandelbots_api_client/models/plane2.py +2 -2
  216. wandelbots_api_client/models/plane3.py +2 -2
  217. wandelbots_api_client/models/planned_motion.py +6 -6
  218. wandelbots_api_client/models/planner_pose.py +3 -3
  219. wandelbots_api_client/models/planning_limits.py +13 -13
  220. wandelbots_api_client/models/planning_limits_limit_range.py +3 -3
  221. wandelbots_api_client/models/playback_speed_request.py +3 -3
  222. wandelbots_api_client/models/playback_speed_response.py +2 -2
  223. wandelbots_api_client/models/playback_speed_response_playback_speed_response.py +2 -2
  224. wandelbots_api_client/models/point_cloud.py +2 -2
  225. wandelbots_api_client/models/pose.py +4 -4
  226. wandelbots_api_client/models/pose2.py +3 -3
  227. wandelbots_api_client/models/program_metadata.py +7 -7
  228. wandelbots_api_client/models/program_run.py +15 -14
  229. wandelbots_api_client/models/program_run_object.py +7 -7
  230. wandelbots_api_client/models/program_run_state.py +1 -1
  231. wandelbots_api_client/models/program_runner_reference.py +3 -3
  232. wandelbots_api_client/models/pyjectory_datatypes_core_pose.py +3 -3
  233. wandelbots_api_client/models/pyjectory_datatypes_serializer_orientation.py +2 -2
  234. wandelbots_api_client/models/pyjectory_datatypes_serializer_pose.py +2 -2
  235. wandelbots_api_client/models/pyjectory_datatypes_serializer_position.py +2 -2
  236. wandelbots_api_client/models/pyriphery_etcd_etcd_configuration.py +5 -5
  237. wandelbots_api_client/models/pyriphery_hardware_isaac_isaac_configuration.py +5 -5
  238. wandelbots_api_client/models/pyriphery_opcua_opcua_configuration.py +4 -4
  239. wandelbots_api_client/models/pyriphery_pyrae_controller_controller_configuration.py +7 -7
  240. wandelbots_api_client/models/pyriphery_pyrae_robot_robot_configuration.py +8 -8
  241. wandelbots_api_client/models/pyriphery_robotics_configurable_collision_scene_configurable_collision_scene_configuration_input.py +13 -11
  242. wandelbots_api_client/models/pyriphery_robotics_configurable_collision_scene_configurable_collision_scene_configuration_output.py +13 -11
  243. wandelbots_api_client/models/pyriphery_robotics_robotcell_timer_configuration.py +3 -3
  244. wandelbots_api_client/models/pyriphery_robotics_simulation_robot_with_view_open3d_configuration.py +4 -4
  245. wandelbots_api_client/models/pyriphery_robotics_simulation_simulated_io_configuration.py +3 -3
  246. wandelbots_api_client/models/pyriphery_robotics_simulation_simulated_opcua_configuration.py +3 -3
  247. wandelbots_api_client/models/quaternion.py +5 -5
  248. wandelbots_api_client/models/recipe_metadata.py +8 -8
  249. wandelbots_api_client/models/rectangle.py +3 -3
  250. wandelbots_api_client/models/rectangle2.py +4 -4
  251. wandelbots_api_client/models/rectangle3.py +4 -4
  252. wandelbots_api_client/models/rectangular_capsule.py +4 -4
  253. wandelbots_api_client/models/rectangular_capsule2.py +5 -5
  254. wandelbots_api_client/models/rectangular_capsule3.py +5 -5
  255. wandelbots_api_client/models/release_channel.py +1 -1
  256. wandelbots_api_client/models/request.py +1 -1
  257. wandelbots_api_client/models/request1.py +1 -1
  258. wandelbots_api_client/models/response_get_value_programs_values_key_get.py +1 -1
  259. wandelbots_api_client/models/response_get_values_programs_values_get_value.py +1 -1
  260. wandelbots_api_client/models/robot_controller.py +3 -3
  261. wandelbots_api_client/models/robot_controller_configuration.py +1 -1
  262. wandelbots_api_client/models/robot_controller_state.py +8 -8
  263. wandelbots_api_client/models/robot_link_geometry.py +3 -3
  264. wandelbots_api_client/models/robot_state.py +3 -3
  265. wandelbots_api_client/models/robot_system_mode.py +1 -1
  266. wandelbots_api_client/models/robot_tcp.py +5 -5
  267. wandelbots_api_client/models/robot_tcps.py +2 -2
  268. wandelbots_api_client/models/rotation_angle_types.py +1 -1
  269. wandelbots_api_client/models/rotation_angles.py +3 -3
  270. wandelbots_api_client/models/safety_configuration.py +6 -6
  271. wandelbots_api_client/models/safety_setup.py +5 -5
  272. wandelbots_api_client/models/safety_setup_safety_settings.py +3 -3
  273. wandelbots_api_client/models/safety_setup_safety_zone.py +5 -5
  274. wandelbots_api_client/models/safety_zone.py +4 -4
  275. wandelbots_api_client/models/safety_zone_limits.py +3 -3
  276. wandelbots_api_client/models/safety_zone_violation.py +2 -2
  277. wandelbots_api_client/models/service_status.py +3 -3
  278. wandelbots_api_client/models/service_status_phase.py +1 -1
  279. wandelbots_api_client/models/service_status_severity.py +1 -1
  280. wandelbots_api_client/models/service_status_status.py +4 -4
  281. wandelbots_api_client/models/set_io.py +3 -3
  282. wandelbots_api_client/models/set_playback_speed.py +3 -3
  283. wandelbots_api_client/models/single_joint_limit.py +3 -3
  284. wandelbots_api_client/models/singularity.py +3 -3
  285. wandelbots_api_client/models/singularity_type_enum.py +1 -1
  286. wandelbots_api_client/models/sphere.py +2 -2
  287. wandelbots_api_client/models/sphere2.py +3 -3
  288. wandelbots_api_client/models/sphere3.py +3 -3
  289. wandelbots_api_client/models/standstill.py +2 -2
  290. wandelbots_api_client/models/standstill_reason.py +1 -1
  291. wandelbots_api_client/models/standstill_standstill.py +4 -4
  292. wandelbots_api_client/models/start_movement_request.py +6 -6
  293. wandelbots_api_client/models/start_on_io.py +3 -3
  294. wandelbots_api_client/models/status.py +4 -4
  295. wandelbots_api_client/models/stop_response.py +4 -4
  296. wandelbots_api_client/models/store_value.py +1 -1
  297. wandelbots_api_client/models/stream_move_backward.py +2 -2
  298. wandelbots_api_client/models/stream_move_forward.py +2 -2
  299. wandelbots_api_client/models/stream_move_playback_speed.py +2 -2
  300. wandelbots_api_client/models/stream_move_request.py +1 -1
  301. wandelbots_api_client/models/stream_move_response.py +4 -4
  302. wandelbots_api_client/models/stream_move_to_trajectory.py +2 -2
  303. wandelbots_api_client/models/stream_stop.py +2 -2
  304. wandelbots_api_client/models/tcp_pose.py +5 -5
  305. wandelbots_api_client/models/tcp_pose_request.py +5 -5
  306. wandelbots_api_client/models/tool_geometry.py +3 -3
  307. wandelbots_api_client/models/trajectory_sample.py +12 -12
  308. wandelbots_api_client/models/trigger_object.py +11 -11
  309. wandelbots_api_client/models/trigger_type.py +1 -1
  310. wandelbots_api_client/models/universalrobots_controller.py +3 -3
  311. wandelbots_api_client/models/update_nova_version_request.py +2 -2
  312. wandelbots_api_client/models/update_program_metadata_request.py +4 -4
  313. wandelbots_api_client/models/update_recipe_metadata_request.py +4 -4
  314. wandelbots_api_client/models/update_trigger_request.py +6 -6
  315. wandelbots_api_client/models/validation_error.py +4 -4
  316. wandelbots_api_client/models/validation_error2.py +4 -4
  317. wandelbots_api_client/models/validation_error2_loc_inner.py +1 -1
  318. wandelbots_api_client/models/validation_error_loc_inner.py +1 -1
  319. wandelbots_api_client/models/value.py +1 -1
  320. wandelbots_api_client/models/vector3d.py +4 -4
  321. wandelbots_api_client/models/version_number.py +9 -9
  322. wandelbots_api_client/models/virtual_controller.py +6 -6
  323. wandelbots_api_client/models/virtual_controller_types.py +11 -1
  324. wandelbots_api_client/models/virtual_robot_configuration.py +3 -3
  325. wandelbots_api_client/models/yaskawa_controller.py +3 -3
  326. wandelbots_api_client/rest.py +3 -2
  327. wandelbots_api_client/v2/__init__.py +3 -4
  328. wandelbots_api_client/v2/api/__init__.py +2 -0
  329. wandelbots_api_client/v2/api/application_api.py +2 -3
  330. wandelbots_api_client/v2/api/bus_inputs_outputs_api.py +918 -70
  331. wandelbots_api_client/v2/api/cell_api.py +2 -3
  332. wandelbots_api_client/v2/api/controller_api.py +12 -9
  333. wandelbots_api_client/v2/api/controller_inputs_outputs_api.py +4 -3
  334. wandelbots_api_client/v2/api/jogging_api.py +7 -5
  335. wandelbots_api_client/v2/api/kinematics_api.py +14 -16
  336. wandelbots_api_client/v2/api/license_api.py +2 -3
  337. wandelbots_api_client/v2/api/motion_group_api.py +6 -5
  338. wandelbots_api_client/v2/api/motion_group_models_api.py +7 -44
  339. wandelbots_api_client/v2/api/program_api.py +14 -15
  340. wandelbots_api_client/v2/api/store_collision_components_api.py +814 -41
  341. wandelbots_api_client/v2/api/store_collision_setups_api.py +261 -4
  342. wandelbots_api_client/v2/api/store_object_api.py +2 -3
  343. wandelbots_api_client/v2/api/system_api.py +6 -6
  344. wandelbots_api_client/v2/api/trajectory_caching_api.py +2 -3
  345. wandelbots_api_client/v2/api/trajectory_execution_api.py +7 -5
  346. wandelbots_api_client/v2/api/trajectory_planning_api.py +14 -16
  347. wandelbots_api_client/v2/api/version_api.py +284 -0
  348. wandelbots_api_client/v2/api/virtual_controller_api.py +17 -3
  349. wandelbots_api_client/v2/api/virtual_controller_behavior_api.py +13 -5
  350. wandelbots_api_client/v2/api/virtual_controller_inputs_outputs_api.py +2 -3
  351. wandelbots_api_client/v2/api_client.py +15 -8
  352. wandelbots_api_client/v2/configuration.py +19 -8
  353. wandelbots_api_client/v2/exceptions.py +2 -2
  354. wandelbots_api_client/v2/models/__init__.py +48 -29
  355. wandelbots_api_client/v2/models/abb_controller.py +8 -11
  356. wandelbots_api_client/v2/models/abb_controller_egm_server.py +4 -4
  357. wandelbots_api_client/v2/models/activate_license_request.py +3 -3
  358. wandelbots_api_client/v2/models/add_trajectory_error.py +5 -5
  359. wandelbots_api_client/v2/models/add_trajectory_error_data.py +58 -58
  360. wandelbots_api_client/v2/models/add_trajectory_request.py +5 -5
  361. wandelbots_api_client/v2/models/add_trajectory_response.py +4 -4
  362. wandelbots_api_client/v2/models/api_version.py +91 -0
  363. wandelbots_api_client/v2/models/app.py +11 -11
  364. wandelbots_api_client/v2/models/behavior.py +2 -2
  365. wandelbots_api_client/v2/models/blending_auto.py +6 -5
  366. wandelbots_api_client/v2/models/blending_position.py +4 -4
  367. wandelbots_api_client/v2/models/boolean_value.py +6 -9
  368. wandelbots_api_client/v2/models/box.py +7 -7
  369. wandelbots_api_client/v2/models/{io_description2.py → bus_io_description.py} +16 -16
  370. wandelbots_api_client/v2/models/bus_io_modbus_client.py +104 -0
  371. wandelbots_api_client/v2/models/bus_io_modbus_server.py +115 -0
  372. wandelbots_api_client/v2/models/bus_io_modbus_tcp_client.py +106 -0
  373. wandelbots_api_client/v2/models/bus_io_modbus_tcp_server.py +104 -0
  374. wandelbots_api_client/v2/models/bus_io_modbus_virtual.py +98 -0
  375. wandelbots_api_client/v2/models/bus_io_profinet.py +8 -11
  376. wandelbots_api_client/v2/models/bus_io_profinet_default_route.py +4 -4
  377. wandelbots_api_client/v2/models/bus_io_profinet_ip_config.py +5 -5
  378. wandelbots_api_client/v2/models/bus_io_profinet_network.py +5 -5
  379. wandelbots_api_client/v2/models/bus_io_profinet_virtual.py +5 -8
  380. wandelbots_api_client/v2/models/bus_io_type.py +65 -18
  381. wandelbots_api_client/v2/models/bus_ios_state.py +4 -4
  382. wandelbots_api_client/v2/models/bus_ios_state_enum.py +2 -2
  383. wandelbots_api_client/v2/models/capsule.py +5 -5
  384. wandelbots_api_client/v2/models/cartesian_limits.py +6 -6
  385. wandelbots_api_client/v2/models/cell.py +6 -6
  386. wandelbots_api_client/v2/models/collider.py +5 -5
  387. wandelbots_api_client/v2/models/collider_shape.py +2 -42
  388. wandelbots_api_client/v2/models/collision.py +8 -8
  389. wandelbots_api_client/v2/models/collision_contact.py +4 -4
  390. wandelbots_api_client/v2/models/collision_error.py +3 -3
  391. wandelbots_api_client/v2/models/collision_free_algorithm.py +3 -3
  392. wandelbots_api_client/v2/models/collision_setup.py +14 -12
  393. wandelbots_api_client/v2/models/comparator.py +2 -2
  394. wandelbots_api_client/v2/models/configuration_archive_status.py +2 -17
  395. wandelbots_api_client/v2/models/configuration_archive_status_creating.py +4 -4
  396. wandelbots_api_client/v2/models/configuration_archive_status_error.py +4 -4
  397. wandelbots_api_client/v2/models/configuration_archive_status_success.py +3 -3
  398. wandelbots_api_client/v2/models/configuration_resource.py +5 -5
  399. wandelbots_api_client/v2/models/container_environment_inner.py +4 -4
  400. wandelbots_api_client/v2/models/container_image.py +5 -5
  401. wandelbots_api_client/v2/models/container_image_secrets_inner.py +3 -3
  402. wandelbots_api_client/v2/models/container_resources.py +4 -4
  403. wandelbots_api_client/v2/models/container_storage.py +4 -4
  404. wandelbots_api_client/v2/models/controller_description.py +6 -6
  405. wandelbots_api_client/v2/models/convex_hull.py +4 -4
  406. wandelbots_api_client/v2/models/coordinate_system.py +8 -8
  407. wandelbots_api_client/v2/models/coordinate_system_data.py +7 -7
  408. wandelbots_api_client/v2/models/cubic_spline_parameter.py +4 -4
  409. wandelbots_api_client/v2/models/cycle_time.py +5 -4
  410. wandelbots_api_client/v2/models/cylinder.py +5 -5
  411. wandelbots_api_client/v2/models/dh_parameter.py +7 -7
  412. wandelbots_api_client/v2/models/direction.py +2 -2
  413. wandelbots_api_client/v2/models/error.py +4 -4
  414. wandelbots_api_client/v2/models/error_invalid_joint_count.py +5 -5
  415. wandelbots_api_client/v2/models/error_joint_limit_exceeded.py +6 -5
  416. wandelbots_api_client/v2/models/error_joint_position_collision.py +5 -5
  417. wandelbots_api_client/v2/models/error_max_iterations_exceeded.py +4 -4
  418. wandelbots_api_client/v2/models/execute.py +4 -4
  419. wandelbots_api_client/v2/models/execute_details.py +2 -12
  420. wandelbots_api_client/v2/models/execute_jogging_request.py +30 -2
  421. wandelbots_api_client/v2/models/execute_jogging_response.py +7 -7
  422. wandelbots_api_client/v2/models/execute_trajectory_request.py +30 -2
  423. wandelbots_api_client/v2/models/execute_trajectory_response.py +7 -7
  424. wandelbots_api_client/v2/models/external_joint_stream_datapoint.py +4 -4
  425. wandelbots_api_client/v2/models/external_joint_stream_request.py +3 -3
  426. wandelbots_api_client/v2/models/fanuc_controller.py +6 -9
  427. wandelbots_api_client/v2/models/feedback_collision.py +6 -6
  428. wandelbots_api_client/v2/models/feedback_joint_limit_exceeded.py +7 -6
  429. wandelbots_api_client/v2/models/feedback_out_of_workspace.py +4 -4
  430. wandelbots_api_client/v2/models/feedback_singularity.py +5 -5
  431. wandelbots_api_client/v2/models/flag.py +3 -3
  432. wandelbots_api_client/v2/models/float_value.py +6 -9
  433. wandelbots_api_client/v2/models/forward_kinematics422_response.py +3 -3
  434. wandelbots_api_client/v2/models/forward_kinematics_request.py +6 -6
  435. wandelbots_api_client/v2/models/forward_kinematics_response.py +3 -3
  436. wandelbots_api_client/v2/models/forward_kinematics_validation_error.py +7 -7
  437. wandelbots_api_client/v2/models/get_trajectory_response.py +5 -5
  438. wandelbots_api_client/v2/models/http_validation_error.py +3 -3
  439. wandelbots_api_client/v2/models/image_credentials.py +5 -5
  440. wandelbots_api_client/v2/models/{inconsitent_trajectory_size.py → inconsistent_trajectory_size_error.py} +9 -9
  441. wandelbots_api_client/v2/models/{inconsitent_trajectory_size_inconsistent_trajectory_size.py → inconsistent_trajectory_size_error_inconsistent_trajectory_size.py} +9 -9
  442. wandelbots_api_client/v2/models/initialize_jogging_request.py +7 -10
  443. wandelbots_api_client/v2/models/initialize_jogging_response.py +4 -4
  444. wandelbots_api_client/v2/models/initialize_movement_request.py +7 -10
  445. wandelbots_api_client/v2/models/initialize_movement_request_trajectory.py +2 -2
  446. wandelbots_api_client/v2/models/initialize_movement_response.py +5 -5
  447. wandelbots_api_client/v2/models/integer_value.py +6 -9
  448. wandelbots_api_client/v2/models/{invalid_dof.py → invalid_dof_error.py} +9 -9
  449. wandelbots_api_client/v2/models/{invalid_dof_invalid_dof.py → invalid_dof_error_invalid_dof.py} +8 -8
  450. wandelbots_api_client/v2/models/inverse_kinematics422_response.py +3 -3
  451. wandelbots_api_client/v2/models/inverse_kinematics_request.py +12 -11
  452. wandelbots_api_client/v2/models/inverse_kinematics_response.py +3 -3
  453. wandelbots_api_client/v2/models/inverse_kinematics_validation_error.py +7 -7
  454. wandelbots_api_client/v2/models/inverse_kinematics_validation_error_all_of_data.py +2 -2
  455. wandelbots_api_client/v2/models/io_boolean_value.py +7 -10
  456. wandelbots_api_client/v2/models/{io_description_min.py → io_boundary.py} +10 -25
  457. wandelbots_api_client/v2/models/io_description.py +13 -13
  458. wandelbots_api_client/v2/models/io_direction.py +2 -2
  459. wandelbots_api_client/v2/models/io_float_value.py +7 -10
  460. wandelbots_api_client/v2/models/io_integer_value.py +7 -10
  461. wandelbots_api_client/v2/models/io_origin.py +2 -2
  462. wandelbots_api_client/v2/models/io_value.py +2 -17
  463. wandelbots_api_client/v2/models/io_value_type.py +2 -2
  464. wandelbots_api_client/v2/models/jogging_details.py +4 -4
  465. wandelbots_api_client/v2/models/jogging_details_state.py +2 -27
  466. wandelbots_api_client/v2/models/jogging_paused_by_user.py +3 -3
  467. wandelbots_api_client/v2/models/jogging_paused_near_collision.py +4 -4
  468. wandelbots_api_client/v2/models/jogging_paused_near_joint_limit.py +6 -5
  469. wandelbots_api_client/v2/models/jogging_paused_on_io.py +3 -3
  470. wandelbots_api_client/v2/models/jogging_running.py +3 -3
  471. wandelbots_api_client/v2/models/{joint_limit_exceeded.py → joint_limit_exceeded_error.py} +7 -7
  472. wandelbots_api_client/v2/models/joint_limits.py +6 -6
  473. wandelbots_api_client/v2/models/joint_trajectory.py +5 -5
  474. wandelbots_api_client/v2/models/joint_velocity_request.py +6 -9
  475. wandelbots_api_client/v2/models/joint_velocity_response.py +4 -4
  476. wandelbots_api_client/v2/models/kuka_controller.py +8 -11
  477. wandelbots_api_client/v2/models/kuka_controller_rsi_server.py +4 -4
  478. wandelbots_api_client/v2/models/license.py +12 -12
  479. wandelbots_api_client/v2/models/license_status.py +4 -4
  480. wandelbots_api_client/v2/models/license_status_enum.py +2 -2
  481. wandelbots_api_client/v2/models/limit_range.py +4 -4
  482. wandelbots_api_client/v2/models/limit_set.py +7 -7
  483. wandelbots_api_client/v2/models/limits_override.py +8 -8
  484. wandelbots_api_client/v2/models/list_trajectories_response.py +3 -3
  485. wandelbots_api_client/v2/models/manufacturer.py +2 -2
  486. wandelbots_api_client/v2/models/midpoint_insertion_algorithm.py +4 -4
  487. wandelbots_api_client/v2/models/modbus_io.py +105 -0
  488. wandelbots_api_client/v2/models/modbus_io_area.py +40 -0
  489. wandelbots_api_client/v2/models/modbus_io_byte_order.py +40 -0
  490. wandelbots_api_client/v2/models/{http_validation_error2.py → modbus_io_data.py} +23 -28
  491. wandelbots_api_client/v2/models/modbus_io_type_enum.py +39 -0
  492. wandelbots_api_client/v2/models/motion_command.py +5 -5
  493. wandelbots_api_client/v2/models/motion_command_blending.py +2 -2
  494. wandelbots_api_client/v2/models/motion_command_path.py +2 -2
  495. wandelbots_api_client/v2/models/motion_group_description.py +30 -25
  496. wandelbots_api_client/v2/models/motion_group_info.py +7 -6
  497. wandelbots_api_client/v2/models/motion_group_joints.py +6 -6
  498. wandelbots_api_client/v2/models/motion_group_setup.py +15 -13
  499. wandelbots_api_client/v2/models/motion_group_state.py +18 -17
  500. wandelbots_api_client/v2/models/motion_group_state_joint_limit_reached.py +3 -3
  501. wandelbots_api_client/v2/models/movement_error_response.py +4 -4
  502. wandelbots_api_client/v2/models/{nan_value.py → nan_value_error.py} +9 -9
  503. wandelbots_api_client/v2/models/{nan_value_nan_value.py → nan_value_error_nan_value.py} +6 -6
  504. wandelbots_api_client/v2/models/op_mode.py +3 -3
  505. wandelbots_api_client/v2/models/operating_state.py +2 -2
  506. wandelbots_api_client/v2/models/operation_limits.py +6 -6
  507. wandelbots_api_client/v2/models/operation_mode.py +2 -2
  508. wandelbots_api_client/v2/models/orientation_type.py +2 -2
  509. wandelbots_api_client/v2/models/path_cartesian_ptp.py +4 -4
  510. wandelbots_api_client/v2/models/path_circle.py +5 -5
  511. wandelbots_api_client/v2/models/path_cubic_spline.py +4 -4
  512. wandelbots_api_client/v2/models/path_joint_ptp.py +4 -4
  513. wandelbots_api_client/v2/models/path_line.py +4 -4
  514. wandelbots_api_client/v2/models/pause_jogging_request.py +5 -8
  515. wandelbots_api_client/v2/models/pause_jogging_response.py +4 -4
  516. wandelbots_api_client/v2/models/pause_movement_request.py +5 -8
  517. wandelbots_api_client/v2/models/pause_movement_response.py +4 -4
  518. wandelbots_api_client/v2/models/pause_on_io.py +5 -5
  519. wandelbots_api_client/v2/models/payload.py +6 -6
  520. wandelbots_api_client/v2/models/plan422_response.py +3 -3
  521. wandelbots_api_client/v2/models/plan_collision_free_failed_response.py +3 -3
  522. wandelbots_api_client/v2/models/plan_collision_free_request.py +6 -6
  523. wandelbots_api_client/v2/models/plan_collision_free_response.py +3 -3
  524. wandelbots_api_client/v2/models/plan_collision_free_response_response.py +2 -2
  525. wandelbots_api_client/v2/models/plan_trajectory_failed_response.py +5 -5
  526. wandelbots_api_client/v2/models/plan_trajectory_failed_response_error_feedback.py +2 -2
  527. wandelbots_api_client/v2/models/plan_trajectory_request.py +5 -5
  528. wandelbots_api_client/v2/models/plan_trajectory_response.py +3 -3
  529. wandelbots_api_client/v2/models/plan_trajectory_response_response.py +2 -2
  530. wandelbots_api_client/v2/models/plan_validation_error.py +7 -7
  531. wandelbots_api_client/v2/models/plan_validation_error_all_of_data.py +2 -2
  532. wandelbots_api_client/v2/models/plane.py +3 -3
  533. wandelbots_api_client/v2/models/playback_speed_request.py +8 -10
  534. wandelbots_api_client/v2/models/playback_speed_response.py +4 -4
  535. wandelbots_api_client/v2/models/pose.py +4 -4
  536. wandelbots_api_client/v2/models/profinet_description.py +7 -7
  537. wandelbots_api_client/v2/models/profinet_input_output_config.py +5 -5
  538. wandelbots_api_client/v2/models/profinet_io.py +8 -8
  539. wandelbots_api_client/v2/models/profinet_io_data.py +7 -7
  540. wandelbots_api_client/v2/models/profinet_io_direction.py +2 -2
  541. wandelbots_api_client/v2/models/profinet_io_type_enum.py +2 -2
  542. wandelbots_api_client/v2/models/profinet_slot_description.py +5 -5
  543. wandelbots_api_client/v2/models/profinet_sub_slot_description.py +5 -5
  544. wandelbots_api_client/v2/models/program.py +8 -8
  545. wandelbots_api_client/v2/models/program_run.py +16 -14
  546. wandelbots_api_client/v2/models/program_run_state.py +2 -2
  547. wandelbots_api_client/v2/models/program_start_request.py +3 -3
  548. wandelbots_api_client/v2/models/rectangle.py +5 -5
  549. wandelbots_api_client/v2/models/rectangular_capsule.py +6 -6
  550. wandelbots_api_client/v2/models/release_channel.py +2 -2
  551. wandelbots_api_client/v2/models/robot_controller.py +4 -4
  552. wandelbots_api_client/v2/models/robot_controller_configuration.py +2 -2
  553. wandelbots_api_client/v2/models/robot_controller_state.py +13 -12
  554. wandelbots_api_client/v2/models/robot_system_mode.py +2 -2
  555. wandelbots_api_client/v2/models/robot_tcp.py +7 -7
  556. wandelbots_api_client/v2/models/robot_tcp_data.py +6 -6
  557. wandelbots_api_client/v2/models/rrt_connect_algorithm.py +8 -8
  558. wandelbots_api_client/v2/models/safety_state_type.py +2 -2
  559. wandelbots_api_client/v2/models/service_group.py +2 -2
  560. wandelbots_api_client/v2/models/service_status.py +5 -5
  561. wandelbots_api_client/v2/models/service_status_phase.py +2 -2
  562. wandelbots_api_client/v2/models/service_status_response.py +4 -4
  563. wandelbots_api_client/v2/models/service_status_severity.py +2 -2
  564. wandelbots_api_client/v2/models/service_status_status.py +5 -5
  565. wandelbots_api_client/v2/models/set_io.py +5 -5
  566. wandelbots_api_client/v2/models/settable_robot_system_mode.py +2 -2
  567. wandelbots_api_client/v2/models/singularity_type_enum.py +2 -2
  568. wandelbots_api_client/v2/models/sphere.py +4 -4
  569. wandelbots_api_client/v2/models/start_movement_request.py +9 -12
  570. wandelbots_api_client/v2/models/start_movement_response.py +4 -4
  571. wandelbots_api_client/v2/models/start_on_io.py +5 -5
  572. wandelbots_api_client/v2/models/stream_io_values_response.py +7 -6
  573. wandelbots_api_client/v2/models/tcp_offset.py +4 -4
  574. wandelbots_api_client/v2/models/{tcp_required.py → tcp_required_error.py} +6 -6
  575. wandelbots_api_client/v2/models/tcp_velocity_request.py +7 -10
  576. wandelbots_api_client/v2/models/tcp_velocity_response.py +4 -4
  577. wandelbots_api_client/v2/models/{torque_exceeded.py → torque_exceeded_error.py} +9 -9
  578. wandelbots_api_client/v2/models/{torque_exceeded_torque_exceeded.py → torque_exceeded_error_torque_exceeded.py} +8 -8
  579. wandelbots_api_client/v2/models/trajectory_data.py +7 -7
  580. wandelbots_api_client/v2/models/trajectory_details.py +6 -6
  581. wandelbots_api_client/v2/models/trajectory_details_state.py +2 -27
  582. wandelbots_api_client/v2/models/trajectory_ended.py +3 -3
  583. wandelbots_api_client/v2/models/trajectory_id.py +5 -5
  584. wandelbots_api_client/v2/models/trajectory_paused_by_user.py +3 -3
  585. wandelbots_api_client/v2/models/trajectory_paused_on_io.py +3 -3
  586. wandelbots_api_client/v2/models/trajectory_running.py +6 -5
  587. wandelbots_api_client/v2/models/trajectory_wait_for_io.py +3 -3
  588. wandelbots_api_client/v2/models/unit_type.py +2 -2
  589. wandelbots_api_client/v2/models/universalrobots_controller.py +6 -9
  590. wandelbots_api_client/v2/models/update_nova_version_request.py +3 -3
  591. wandelbots_api_client/v2/models/validation_error.py +6 -6
  592. wandelbots_api_client/v2/models/validation_error2.py +5 -5
  593. wandelbots_api_client/v2/models/validation_error_loc_inner.py +2 -2
  594. wandelbots_api_client/v2/models/virtual_controller.py +8 -11
  595. wandelbots_api_client/v2/models/virtual_controller_types.py +12 -2
  596. wandelbots_api_client/v2/models/virtual_robot_configuration.py +4 -4
  597. wandelbots_api_client/v2/models/wait_for_io_event_request.py +4 -4
  598. wandelbots_api_client/v2/models/yaskawa_controller.py +6 -9
  599. wandelbots_api_client/v2/rest.py +4 -3
  600. wandelbots_api_client/v2_pydantic/__init__.py +50 -0
  601. wandelbots_api_client/v2_pydantic/api/__init__.py +51 -0
  602. wandelbots_api_client/v2_pydantic/api/application_api.py +1803 -0
  603. wandelbots_api_client/v2_pydantic/api/bus_inputs_outputs_api.py +4603 -0
  604. wandelbots_api_client/v2_pydantic/api/cell_api.py +2003 -0
  605. wandelbots_api_client/v2_pydantic/api/controller_api.py +3721 -0
  606. wandelbots_api_client/v2_pydantic/api/controller_inputs_outputs_api.py +1395 -0
  607. wandelbots_api_client/v2_pydantic/api/jogging_api.py +125 -0
  608. wandelbots_api_client/v2_pydantic/api/kinematics_api.py +642 -0
  609. wandelbots_api_client/v2_pydantic/api/license_api.py +1061 -0
  610. wandelbots_api_client/v2_pydantic/api/motion_group_api.py +733 -0
  611. wandelbots_api_client/v2_pydantic/api/motion_group_models_api.py +563 -0
  612. wandelbots_api_client/v2_pydantic/api/program_api.py +1187 -0
  613. wandelbots_api_client/v2_pydantic/api/store_collision_components_api.py +4170 -0
  614. wandelbots_api_client/v2_pydantic/api/store_collision_setups_api.py +1419 -0
  615. wandelbots_api_client/v2_pydantic/api/store_object_api.py +1719 -0
  616. wandelbots_api_client/v2_pydantic/api/system_api.py +2427 -0
  617. wandelbots_api_client/v2_pydantic/api/trajectory_caching_api.py +1508 -0
  618. wandelbots_api_client/v2_pydantic/api/trajectory_execution_api.py +125 -0
  619. wandelbots_api_client/v2_pydantic/api/trajectory_planning_api.py +642 -0
  620. wandelbots_api_client/v2_pydantic/api/version_api.py +287 -0
  621. wandelbots_api_client/v2_pydantic/api/virtual_controller_api.py +4610 -0
  622. wandelbots_api_client/v2_pydantic/api/virtual_controller_behavior_api.py +991 -0
  623. wandelbots_api_client/v2_pydantic/api/virtual_controller_inputs_outputs_api.py +1012 -0
  624. wandelbots_api_client/v2_pydantic/api_client.py +809 -0
  625. wandelbots_api_client/v2_pydantic/api_response.py +21 -0
  626. wandelbots_api_client/v2_pydantic/configuration.py +606 -0
  627. wandelbots_api_client/v2_pydantic/exceptions.py +216 -0
  628. wandelbots_api_client/v2_pydantic/models.py +4561 -0
  629. wandelbots_api_client/v2_pydantic/py.typed +0 -0
  630. wandelbots_api_client/v2_pydantic/rest.py +213 -0
  631. {wandelbots_api_client-25.9.0.dev19.dist-info → wandelbots_api_client-25.11.0.dev16.dist-info}/METADATA +17 -16
  632. wandelbots_api_client-25.11.0.dev16.dist-info/RECORD +640 -0
  633. wandelbots_api_client/models/create_trigger_request_config.py +0 -123
  634. wandelbots_api_client-25.9.0.dev19.dist-info/RECORD +0 -597
  635. {wandelbots_api_client-25.9.0.dev19.dist-info → wandelbots_api_client-25.11.0.dev16.dist-info}/WHEEL +0 -0
  636. {wandelbots_api_client-25.9.0.dev19.dist-info → wandelbots_api_client-25.11.0.dev16.dist-info}/licenses/LICENSE +0 -0
  637. {wandelbots_api_client-25.9.0.dev19.dist-info → wandelbots_api_client-25.11.0.dev16.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,809 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Wandelbots NOVA API
5
+
6
+ Interact with robots in an easy and intuitive way.
7
+
8
+ The version of the OpenAPI document: 2.1.0 dev
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ import datetime
16
+ from dateutil.parser import parse
17
+ from enum import Enum
18
+ import decimal
19
+ import json
20
+ import mimetypes
21
+ import os
22
+ import re
23
+ import tempfile
24
+ import uuid
25
+
26
+ from urllib.parse import quote
27
+ from typing import Tuple, Optional, List, Dict, Union
28
+ from pydantic import SecretStr
29
+
30
+ from wandelbots_api_client.v2_pydantic.configuration import Configuration
31
+ from wandelbots_api_client.v2_pydantic.api_response import ApiResponse, T as ApiResponseT
32
+ import wandelbots_api_client.v2_pydantic.models
33
+ from wandelbots_api_client.v2_pydantic import rest
34
+ from wandelbots_api_client.v2_pydantic.exceptions import (
35
+ ApiValueError,
36
+ ApiException,
37
+ BadRequestException,
38
+ UnauthorizedException,
39
+ ForbiddenException,
40
+ NotFoundException,
41
+ ServiceException
42
+ )
43
+
44
+ RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]]
45
+
46
+ class ApiClient:
47
+ """Generic API client for OpenAPI client library builds.
48
+
49
+ OpenAPI generic API client. This client handles the client-
50
+ server communication, and is invariant across implementations. Specifics of
51
+ the methods and models for each application are generated from the OpenAPI
52
+ templates.
53
+
54
+ :param configuration: .Configuration object for this client
55
+ :param header_name: a header to pass when making calls to the API.
56
+ :param header_value: a header value to pass when making calls to
57
+ the API.
58
+ :param cookie: a cookie to include in the header when making calls
59
+ to the API
60
+ """
61
+
62
+ PRIMITIVE_TYPES = (float, bool, bytes, str, int)
63
+ NATIVE_TYPES_MAPPING = {
64
+ 'int': int,
65
+ 'long': int, # TODO remove as only py3 is supported?
66
+ 'float': float,
67
+ 'str': str,
68
+ 'bool': bool,
69
+ 'date': datetime.date,
70
+ 'datetime': datetime.datetime,
71
+ 'decimal': decimal.Decimal,
72
+ 'object': object,
73
+ }
74
+ _pool = None
75
+
76
+ def __init__(
77
+ self,
78
+ configuration=None,
79
+ header_name=None,
80
+ header_value=None,
81
+ cookie=None
82
+ ) -> None:
83
+ # use default configuration if none is provided
84
+ if configuration is None:
85
+ configuration = Configuration.get_default()
86
+ self.configuration = configuration
87
+
88
+ self.rest_client = rest.RESTClientObject(configuration)
89
+ self.default_headers = {}
90
+ if header_name is not None:
91
+ self.default_headers[header_name] = header_value
92
+ self.cookie = cookie
93
+ # Set default User-Agent.
94
+ self.user_agent = 'Wandelbots-Nova-API-Python-Client/25.11.0.dev16'
95
+ self.client_side_validation = configuration.client_side_validation
96
+
97
+ async def __aenter__(self):
98
+ return self
99
+
100
+ async def __aexit__(self, exc_type, exc_value, traceback):
101
+ await self.close()
102
+
103
+ async def close(self):
104
+ await self.rest_client.close()
105
+
106
+ @property
107
+ def user_agent(self):
108
+ """User agent for this API client"""
109
+ return self.default_headers['User-Agent']
110
+
111
+ @user_agent.setter
112
+ def user_agent(self, value):
113
+ self.default_headers['User-Agent'] = value
114
+
115
+ def set_default_header(self, header_name, header_value):
116
+ self.default_headers[header_name] = header_value
117
+
118
+
119
+ _default = None
120
+
121
+ @classmethod
122
+ def get_default(cls):
123
+ """Return new instance of ApiClient.
124
+
125
+ This method returns newly created, based on default constructor,
126
+ object of ApiClient class or returns a copy of default
127
+ ApiClient.
128
+
129
+ :return: The ApiClient object.
130
+ """
131
+ if cls._default is None:
132
+ cls._default = ApiClient()
133
+ return cls._default
134
+
135
+ @classmethod
136
+ def set_default(cls, default):
137
+ """Set default instance of ApiClient.
138
+
139
+ It stores default ApiClient.
140
+
141
+ :param default: object of ApiClient.
142
+ """
143
+ cls._default = default
144
+
145
+ def param_serialize(
146
+ self,
147
+ method,
148
+ resource_path,
149
+ path_params=None,
150
+ query_params=None,
151
+ header_params=None,
152
+ body=None,
153
+ post_params=None,
154
+ files=None, auth_settings=None,
155
+ collection_formats=None,
156
+ _host=None,
157
+ _request_auth=None
158
+ ) -> RequestSerialized:
159
+
160
+ """Builds the HTTP request params needed by the request.
161
+ :param method: Method to call.
162
+ :param resource_path: Path to method endpoint.
163
+ :param path_params: Path parameters in the url.
164
+ :param query_params: Query parameters in the url.
165
+ :param header_params: Header parameters to be
166
+ placed in the request header.
167
+ :param body: Request body.
168
+ :param post_params dict: Request post form parameters,
169
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
170
+ :param auth_settings list: Auth Settings names for the request.
171
+ :param files dict: key -> filename, value -> filepath,
172
+ for `multipart/form-data`.
173
+ :param collection_formats: dict of collection formats for path, query,
174
+ header, and post parameters.
175
+ :param _request_auth: set to override the auth_settings for an a single
176
+ request; this effectively ignores the authentication
177
+ in the spec for a single request.
178
+ :return: tuple of form (path, http_method, query_params, header_params,
179
+ body, post_params, files)
180
+ """
181
+
182
+ config = self.configuration
183
+
184
+ # header parameters
185
+ header_params = header_params or {}
186
+ header_params.update(self.default_headers)
187
+ if self.cookie:
188
+ header_params['Cookie'] = self.cookie
189
+ if header_params:
190
+ header_params = self.sanitize_for_serialization(header_params)
191
+ header_params = dict(
192
+ self.parameters_to_tuples(header_params,collection_formats)
193
+ )
194
+
195
+ # path parameters
196
+ if path_params:
197
+ path_params = self.sanitize_for_serialization(path_params)
198
+ path_params = self.parameters_to_tuples(
199
+ path_params,
200
+ collection_formats
201
+ )
202
+ for k, v in path_params:
203
+ # specified safe chars, encode everything
204
+ resource_path = resource_path.replace(
205
+ '{%s}' % k,
206
+ quote(str(v), safe=config.safe_chars_for_path_param)
207
+ )
208
+
209
+ # post parameters
210
+ if post_params or files:
211
+ post_params = post_params if post_params else []
212
+ post_params = self.sanitize_for_serialization(post_params)
213
+ post_params = self.parameters_to_tuples(
214
+ post_params,
215
+ collection_formats
216
+ )
217
+ if files:
218
+ post_params.extend(self.files_parameters(files))
219
+
220
+ # auth setting
221
+ self.update_params_for_auth(
222
+ header_params,
223
+ query_params,
224
+ auth_settings,
225
+ resource_path,
226
+ method,
227
+ body,
228
+ request_auth=_request_auth
229
+ )
230
+
231
+ # body
232
+ if body:
233
+ body = self.sanitize_for_serialization(body)
234
+
235
+ # request url
236
+ if _host is None or self.configuration.ignore_operation_servers:
237
+ url = self.configuration.host + resource_path
238
+ else:
239
+ # use server/host defined in path or operation instead
240
+ url = _host + resource_path
241
+
242
+ # query parameters
243
+ if query_params:
244
+ query_params = self.sanitize_for_serialization(query_params)
245
+ url_query = self.parameters_to_url_query(
246
+ query_params,
247
+ collection_formats
248
+ )
249
+ url += "?" + url_query
250
+
251
+ return method, url, header_params, body, post_params
252
+
253
+
254
+ async def call_api(
255
+ self,
256
+ method,
257
+ url,
258
+ header_params=None,
259
+ body=None,
260
+ post_params=None,
261
+ _request_timeout=None
262
+ ) -> rest.RESTResponse:
263
+ """Makes the HTTP request (synchronous)
264
+ :param method: Method to call.
265
+ :param url: Path to method endpoint.
266
+ :param header_params: Header parameters to be
267
+ placed in the request header.
268
+ :param body: Request body.
269
+ :param post_params dict: Request post form parameters,
270
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
271
+ :param _request_timeout: timeout setting for this request.
272
+ :return: RESTResponse
273
+ """
274
+
275
+ try:
276
+ # perform request and return response
277
+ response_data = await self.rest_client.request(
278
+ method, url,
279
+ headers=header_params,
280
+ body=body, post_params=post_params,
281
+ _request_timeout=_request_timeout
282
+ )
283
+
284
+ except ApiException as e:
285
+ raise e
286
+
287
+ return response_data
288
+
289
+ def response_deserialize(
290
+ self,
291
+ response_data: rest.RESTResponse,
292
+ response_types_map: Optional[Dict[str, ApiResponseT]]=None
293
+ ) -> ApiResponse[ApiResponseT]:
294
+ """Deserializes response into an object.
295
+ :param response_data: RESTResponse object to be deserialized.
296
+ :param response_types_map: dict of response types.
297
+ :return: ApiResponse
298
+ """
299
+
300
+ msg = "RESTResponse.read() must be called before passing it to response_deserialize()"
301
+ assert response_data.data is not None, msg
302
+
303
+ response_type = response_types_map.get(str(response_data.status), None)
304
+ if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599:
305
+ # if not found, look for '1XX', '2XX', etc.
306
+ response_type = response_types_map.get(str(response_data.status)[0] + "XX", None)
307
+
308
+ # deserialize response data
309
+ response_text = None
310
+ return_data = None
311
+ try:
312
+ if response_type == "bytearray":
313
+ return_data = response_data.data
314
+ elif response_type == "file":
315
+ return_data = self.__deserialize_file(response_data)
316
+ elif response_type is not None:
317
+ match = None
318
+ content_type = response_data.getheader('content-type')
319
+ if content_type is not None:
320
+ match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
321
+ encoding = match.group(1) if match else "utf-8"
322
+ response_text = response_data.data.decode(encoding)
323
+ return_data = self.deserialize(response_text, response_type, content_type)
324
+ finally:
325
+ if not 200 <= response_data.status <= 299:
326
+ raise ApiException.from_response(
327
+ http_resp=response_data,
328
+ body=response_text,
329
+ data=return_data,
330
+ )
331
+
332
+ return ApiResponse(
333
+ status_code = response_data.status,
334
+ data = return_data,
335
+ headers = response_data.getheaders(),
336
+ raw_data = response_data.data
337
+ )
338
+
339
+ def sanitize_for_serialization(self, obj):
340
+ """Builds a JSON POST object.
341
+
342
+ If obj is None, return None.
343
+ If obj is SecretStr, return obj.get_secret_value()
344
+ If obj is str, int, long, float, bool, return directly.
345
+ If obj is datetime.datetime, datetime.date
346
+ convert to string in iso8601 format.
347
+ If obj is decimal.Decimal return string representation.
348
+ If obj is list, sanitize each element in the list.
349
+ If obj is dict, return the dict.
350
+ If obj is OpenAPI model, return the properties dict.
351
+
352
+ :param obj: The data to serialize.
353
+ :return: The serialized form of data.
354
+ """
355
+ if obj is None:
356
+ return None
357
+ elif isinstance(obj, Enum):
358
+ return obj.value
359
+ elif isinstance(obj, SecretStr):
360
+ return obj.get_secret_value()
361
+ elif isinstance(obj, self.PRIMITIVE_TYPES):
362
+ return obj
363
+ elif isinstance(obj, uuid.UUID):
364
+ return str(obj)
365
+ elif isinstance(obj, list):
366
+ return [
367
+ self.sanitize_for_serialization(sub_obj) for sub_obj in obj
368
+ ]
369
+ elif isinstance(obj, tuple):
370
+ return tuple(
371
+ self.sanitize_for_serialization(sub_obj) for sub_obj in obj
372
+ )
373
+ elif isinstance(obj, (datetime.datetime, datetime.date)):
374
+ return obj.isoformat()
375
+ elif isinstance(obj, decimal.Decimal):
376
+ return str(obj)
377
+
378
+ elif isinstance(obj, dict):
379
+ obj_dict = obj
380
+ else:
381
+ # Convert model obj to dict except
382
+ # attributes `openapi_types`, `attribute_map`
383
+ # and attributes which value is not None.
384
+ # Convert attribute name to json key in
385
+ # model definition for request.
386
+ # if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
387
+ # obj_dict = obj.to_dict()
388
+ if hasattr(obj, 'model_dump') and callable(getattr(obj, 'model_dump')):
389
+ obj_dict = obj.model_dump(exclude_none=True)
390
+ else:
391
+ obj_dict = obj.__dict__
392
+
393
+ if isinstance(obj_dict, list):
394
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
395
+ return self.sanitize_for_serialization(obj_dict)
396
+
397
+ return {
398
+ key: self.sanitize_for_serialization(val)
399
+ for key, val in obj_dict.items()
400
+ }
401
+
402
+ def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]):
403
+ """Deserializes response into an object.
404
+
405
+ :param response: RESTResponse object to be deserialized.
406
+ :param response_type: class literal for
407
+ deserialized object, or string of class name.
408
+ :param content_type: content type of response.
409
+
410
+ :return: deserialized object.
411
+ """
412
+
413
+ # fetch data from response object
414
+ if content_type is None:
415
+ try:
416
+ data = json.loads(response_text)
417
+ except ValueError:
418
+ data = response_text
419
+ elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
420
+ if response_text == "":
421
+ data = ""
422
+ else:
423
+ data = json.loads(response_text)
424
+ elif re.match(r'^text\/[a-z.+-]+\s*(;|$)', content_type, re.IGNORECASE):
425
+ data = response_text
426
+ else:
427
+ raise ApiException(
428
+ status=0,
429
+ reason="Unsupported content type: {0}".format(content_type)
430
+ )
431
+
432
+ return self.__deserialize(data, response_type)
433
+
434
+ def __deserialize(self, data, klass):
435
+ """Deserializes dict, list, str into an object.
436
+
437
+ :param data: dict, list or str.
438
+ :param klass: class literal, or string of class name.
439
+
440
+ :return: object.
441
+ """
442
+ if data is None:
443
+ return None
444
+
445
+ if isinstance(klass, str):
446
+ if klass.startswith('List['):
447
+ m = re.match(r'List\[(.*)]', klass)
448
+ assert m is not None, "Malformed List type definition"
449
+ sub_kls = m.group(1)
450
+ return [self.__deserialize(sub_data, sub_kls)
451
+ for sub_data in data]
452
+
453
+ if klass.startswith('Dict['):
454
+ m = re.match(r'Dict\[([^,]*), (.*)]', klass)
455
+ assert m is not None, "Malformed Dict type definition"
456
+ sub_kls = m.group(2)
457
+ return {k: self.__deserialize(v, sub_kls)
458
+ for k, v in data.items()}
459
+
460
+ # convert str to class
461
+ if klass in self.NATIVE_TYPES_MAPPING:
462
+ klass = self.NATIVE_TYPES_MAPPING[klass]
463
+ else:
464
+ klass = getattr(wandelbots_api_client.v2_pydantic.models, klass)
465
+
466
+ if klass in self.PRIMITIVE_TYPES:
467
+ return self.__deserialize_primitive(data, klass)
468
+ elif klass == object:
469
+ return self.__deserialize_object(data)
470
+ elif klass == datetime.date:
471
+ return self.__deserialize_date(data)
472
+ elif klass == datetime.datetime:
473
+ return self.__deserialize_datetime(data)
474
+ elif klass == decimal.Decimal:
475
+ return decimal.Decimal(data)
476
+ elif issubclass(klass, Enum):
477
+ return self.__deserialize_enum(data, klass)
478
+ else:
479
+ return self.__deserialize_model(data, klass)
480
+
481
+ def parameters_to_tuples(self, params, collection_formats):
482
+ """Get parameters as list of tuples, formatting collections.
483
+
484
+ :param params: Parameters as dict or list of two-tuples
485
+ :param dict collection_formats: Parameter collection formats
486
+ :return: Parameters as list of tuples, collections formatted
487
+ """
488
+ new_params: List[Tuple[str, str]] = []
489
+ if collection_formats is None:
490
+ collection_formats = {}
491
+ for k, v in params.items() if isinstance(params, dict) else params:
492
+ if k in collection_formats:
493
+ collection_format = collection_formats[k]
494
+ if collection_format == 'multi':
495
+ new_params.extend((k, value) for value in v)
496
+ else:
497
+ if collection_format == 'ssv':
498
+ delimiter = ' '
499
+ elif collection_format == 'tsv':
500
+ delimiter = '\t'
501
+ elif collection_format == 'pipes':
502
+ delimiter = '|'
503
+ else: # csv is the default
504
+ delimiter = ','
505
+ new_params.append(
506
+ (k, delimiter.join(str(value) for value in v)))
507
+ else:
508
+ new_params.append((k, v))
509
+ return new_params
510
+
511
+ def parameters_to_url_query(self, params, collection_formats):
512
+ """Get parameters as list of tuples, formatting collections.
513
+
514
+ :param params: Parameters as dict or list of two-tuples
515
+ :param dict collection_formats: Parameter collection formats
516
+ :return: URL query string (e.g. a=Hello%20World&b=123)
517
+ """
518
+ new_params: List[Tuple[str, str]] = []
519
+ if collection_formats is None:
520
+ collection_formats = {}
521
+ for k, v in params.items() if isinstance(params, dict) else params:
522
+ if isinstance(v, bool):
523
+ v = str(v).lower()
524
+ if isinstance(v, (int, float)):
525
+ v = str(v)
526
+ if isinstance(v, dict):
527
+ v = json.dumps(v)
528
+
529
+ if k in collection_formats:
530
+ collection_format = collection_formats[k]
531
+ if collection_format == 'multi':
532
+ new_params.extend((k, quote(str(value))) for value in v)
533
+ else:
534
+ if collection_format == 'ssv':
535
+ delimiter = ' '
536
+ elif collection_format == 'tsv':
537
+ delimiter = '\t'
538
+ elif collection_format == 'pipes':
539
+ delimiter = '|'
540
+ else: # csv is the default
541
+ delimiter = ','
542
+ new_params.append(
543
+ (k, delimiter.join(quote(str(value)) for value in v))
544
+ )
545
+ else:
546
+ new_params.append((k, quote(str(v))))
547
+
548
+ return "&".join(["=".join(map(str, item)) for item in new_params])
549
+
550
+ def files_parameters(
551
+ self,
552
+ files: Dict[str, Union[str, bytes, List[str], List[bytes], Tuple[str, bytes]]],
553
+ ):
554
+ """Builds form parameters.
555
+
556
+ :param files: File parameters.
557
+ :return: Form parameters with files.
558
+ """
559
+ params = []
560
+ for k, v in files.items():
561
+ if isinstance(v, str):
562
+ with open(v, 'rb') as f:
563
+ filename = os.path.basename(f.name)
564
+ filedata = f.read()
565
+ elif isinstance(v, bytes):
566
+ filename = k
567
+ filedata = v
568
+ elif isinstance(v, tuple):
569
+ filename, filedata = v
570
+ elif isinstance(v, list):
571
+ for file_param in v:
572
+ params.extend(self.files_parameters({k: file_param}))
573
+ continue
574
+ else:
575
+ raise ValueError("Unsupported file value")
576
+ mimetype = (
577
+ mimetypes.guess_type(filename)[0]
578
+ or 'application/octet-stream'
579
+ )
580
+ params.append(
581
+ tuple([k, tuple([filename, filedata, mimetype])])
582
+ )
583
+ return params
584
+
585
+ def select_header_accept(self, accepts: List[str]) -> Optional[str]:
586
+ """Returns `Accept` based on an array of accepts provided.
587
+
588
+ :param accepts: List of headers.
589
+ :return: Accept (e.g. application/json).
590
+ """
591
+ if not accepts:
592
+ return None
593
+
594
+ for accept in accepts:
595
+ if re.search('json', accept, re.IGNORECASE):
596
+ return accept
597
+
598
+ return accepts[0]
599
+
600
+ def select_header_content_type(self, content_types):
601
+ """Returns `Content-Type` based on an array of content_types provided.
602
+
603
+ :param content_types: List of content-types.
604
+ :return: Content-Type (e.g. application/json).
605
+ """
606
+ if not content_types:
607
+ return None
608
+
609
+ for content_type in content_types:
610
+ if re.search('json', content_type, re.IGNORECASE):
611
+ return content_type
612
+
613
+ return content_types[0]
614
+
615
+ def update_params_for_auth(
616
+ self,
617
+ headers,
618
+ queries,
619
+ auth_settings,
620
+ resource_path,
621
+ method,
622
+ body,
623
+ request_auth=None
624
+ ) -> None:
625
+ """Updates header and query params based on authentication setting.
626
+
627
+ :param headers: Header parameters dict to be updated.
628
+ :param queries: Query parameters tuple list to be updated.
629
+ :param auth_settings: Authentication setting identifiers list.
630
+ :resource_path: A string representation of the HTTP request resource path.
631
+ :method: A string representation of the HTTP request method.
632
+ :body: A object representing the body of the HTTP request.
633
+ The object type is the return value of sanitize_for_serialization().
634
+ :param request_auth: if set, the provided settings will
635
+ override the token in the configuration.
636
+ """
637
+ if not auth_settings:
638
+ return
639
+
640
+ if request_auth:
641
+ self._apply_auth_params(
642
+ headers,
643
+ queries,
644
+ resource_path,
645
+ method,
646
+ body,
647
+ request_auth
648
+ )
649
+ else:
650
+ for auth in auth_settings:
651
+ auth_setting = self.configuration.auth_settings().get(auth)
652
+ if auth_setting:
653
+ self._apply_auth_params(
654
+ headers,
655
+ queries,
656
+ resource_path,
657
+ method,
658
+ body,
659
+ auth_setting
660
+ )
661
+
662
+ def _apply_auth_params(
663
+ self,
664
+ headers,
665
+ queries,
666
+ resource_path,
667
+ method,
668
+ body,
669
+ auth_setting
670
+ ) -> None:
671
+ """Updates the request parameters based on a single auth_setting
672
+
673
+ :param headers: Header parameters dict to be updated.
674
+ :param queries: Query parameters tuple list to be updated.
675
+ :resource_path: A string representation of the HTTP request resource path.
676
+ :method: A string representation of the HTTP request method.
677
+ :body: A object representing the body of the HTTP request.
678
+ The object type is the return value of sanitize_for_serialization().
679
+ :param auth_setting: auth settings for the endpoint
680
+ """
681
+ if auth_setting['in'] == 'cookie':
682
+ headers['Cookie'] = auth_setting['value']
683
+ elif auth_setting['in'] == 'header':
684
+ if auth_setting['type'] != 'http-signature':
685
+ headers[auth_setting['key']] = auth_setting['value']
686
+ elif auth_setting['in'] == 'query':
687
+ queries.append((auth_setting['key'], auth_setting['value']))
688
+ else:
689
+ raise ApiValueError(
690
+ 'Authentication token must be in `query` or `header`'
691
+ )
692
+
693
+ def __deserialize_file(self, response):
694
+ """Deserializes body to file
695
+
696
+ Saves response body into a file in a temporary folder,
697
+ using the filename from the `Content-Disposition` header if provided.
698
+
699
+ handle file downloading
700
+ save response body into a tmp file and return the instance
701
+
702
+ :param response: RESTResponse.
703
+ :return: file path.
704
+ """
705
+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
706
+ os.close(fd)
707
+ os.remove(path)
708
+
709
+ content_disposition = response.getheader("Content-Disposition")
710
+ if content_disposition:
711
+ m = re.search(
712
+ r'filename=[\'"]?([^\'"\s]+)[\'"]?',
713
+ content_disposition
714
+ )
715
+ assert m is not None, "Unexpected 'content-disposition' header value"
716
+ filename = m.group(1)
717
+ path = os.path.join(os.path.dirname(path), filename)
718
+
719
+ with open(path, "wb") as f:
720
+ f.write(response.data)
721
+
722
+ return path
723
+
724
+ def __deserialize_primitive(self, data, klass):
725
+ """Deserializes string to primitive type.
726
+
727
+ :param data: str.
728
+ :param klass: class literal.
729
+
730
+ :return: int, long, float, str, bool.
731
+ """
732
+ try:
733
+ return klass(data)
734
+ except UnicodeEncodeError:
735
+ return str(data)
736
+ except TypeError:
737
+ return data
738
+
739
+ def __deserialize_object(self, value):
740
+ """Return an original value.
741
+
742
+ :return: object.
743
+ """
744
+ return value
745
+
746
+ def __deserialize_date(self, string):
747
+ """Deserializes string to date.
748
+
749
+ :param string: str.
750
+ :return: date.
751
+ """
752
+ try:
753
+ return parse(string).date()
754
+ except ImportError:
755
+ return string
756
+ except ValueError:
757
+ raise rest.ApiException(
758
+ status=0,
759
+ reason="Failed to parse `{0}` as date object".format(string)
760
+ )
761
+
762
+ def __deserialize_datetime(self, string):
763
+ """Deserializes string to datetime.
764
+
765
+ The string should be in iso8601 datetime format.
766
+
767
+ :param string: str.
768
+ :return: datetime.
769
+ """
770
+ try:
771
+ return parse(string)
772
+ except ImportError:
773
+ return string
774
+ except ValueError:
775
+ raise rest.ApiException(
776
+ status=0,
777
+ reason=(
778
+ "Failed to parse `{0}` as datetime object"
779
+ .format(string)
780
+ )
781
+ )
782
+
783
+ def __deserialize_enum(self, data, klass):
784
+ """Deserializes primitive type to enum.
785
+
786
+ :param data: primitive type.
787
+ :param klass: class literal.
788
+ :return: enum value.
789
+ """
790
+ try:
791
+ return klass(data)
792
+ except ValueError:
793
+ raise rest.ApiException(
794
+ status=0,
795
+ reason=(
796
+ "Failed to parse `{0}` as `{1}`"
797
+ .format(data, klass)
798
+ )
799
+ )
800
+
801
+ def __deserialize_model(self, data, klass):
802
+ """Deserializes list or dict to model.
803
+
804
+ :param data: dict, list.
805
+ :param klass: class literal.
806
+ :return: model object.
807
+ """
808
+
809
+ return klass.model_validate(data)