js7-client-python 2.0.10__py3-none-any.whl → 2.0.12__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 (402) hide show
  1. js7/api/joc/http/v_2_6_5/agent/cluster/confirm_node_loss.py +30 -0
  2. js7/api/joc/http/v_2_6_5/agent/cluster/switchover.py +30 -0
  3. js7/api/joc/http/v_2_6_5/agent/delete.py +30 -0
  4. js7/api/joc/http/v_2_6_5/agents/agents.py +30 -0
  5. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/agents/cluster/delete.py +11 -14
  6. js7/api/joc/http/v_2_6_5/agents/cluster/deploy.py +30 -0
  7. js7/api/joc/http/v_2_6_5/agents/cluster/revoke.py +30 -0
  8. js7/api/joc/http/v_2_6_5/agents/cluster/store.py +30 -0
  9. js7/api/joc/http/v_2_6_5/agents/export.py +29 -0
  10. js7/api/joc/http/{v_2_8_2/agents/import.py → v_2_6_5/agents/import_.py} +21 -22
  11. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/deploy.py +30 -0
  12. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/revoke.py +30 -0
  13. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/store.py +30 -0
  14. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/subagents/delete.py +30 -0
  15. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/subagents/disable.py +30 -0
  16. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/subagents/enable.py +30 -0
  17. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/subagents/reset.py +30 -0
  18. js7/api/joc/http/v_2_6_5/agents/inventory/cluster/subagents/store.py +30 -0
  19. js7/api/joc/http/v_2_6_5/agents/inventory/deploy.py +30 -0
  20. js7/api/joc/http/v_2_6_5/agents/inventory/disable.py +30 -0
  21. js7/api/joc/http/v_2_6_5/agents/inventory/enable.py +30 -0
  22. js7/api/joc/http/v_2_6_5/agents/inventory/revoke.py +30 -0
  23. js7/api/joc/http/v_2_6_5/agents/inventory/store.py +30 -0
  24. js7/api/joc/http/v_2_6_5/agents/reset.py +30 -0
  25. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/authentication/auth.py +17 -12
  26. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/authentication/joc_cockpit_permissions.py +10 -11
  27. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/authentication/login.py +14 -13
  28. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/authentication/logout.py +9 -11
  29. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/configuration/configuration.py +11 -17
  30. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/configuration/save.py +11 -17
  31. js7/api/joc/http/v_2_6_5/controller/abort.py +30 -0
  32. js7/api/joc/http/v_2_6_5/controller/abort_and_restart.py +30 -0
  33. js7/api/joc/http/v_2_6_5/controller/cluster/appoint_nodes.py +30 -0
  34. js7/api/joc/http/v_2_6_5/controller/cluster/confirm_node_loss.py +30 -0
  35. js7/api/joc/http/v_2_6_5/controller/cluster/switchover.py +30 -0
  36. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/controller/components.py +11 -17
  37. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/controller/controller.py +11 -17
  38. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/controller/register.py +10 -17
  39. js7/api/joc/http/v_2_6_5/controller/restart.py +30 -0
  40. js7/api/joc/http/v_2_6_5/controller/terminate.py +30 -0
  41. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/controller/test.py +11 -17
  42. js7/api/joc/http/v_2_6_5/controller/unregister.py +30 -0
  43. js7/api/joc/http/v_2_6_5/daily_plan/orders/cancel.py +30 -0
  44. js7/api/joc/http/v_2_6_5/daily_plan/orders/copy.py +30 -0
  45. js7/api/joc/http/v_2_6_5/daily_plan/orders/delete.py +30 -0
  46. js7/api/joc/http/v_2_6_5/daily_plan/orders/generate.py +30 -0
  47. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/daily_plan/orders/modify.py +11 -17
  48. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/daily_plan/orders/orders.py +11 -17
  49. js7/api/joc/http/v_2_6_5/daily_plan/orders/submit.py +30 -0
  50. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/daily_plan/projections/calendar.py +11 -17
  51. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/daily_plan/projections/dates.py +11 -17
  52. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/daily_plan/projections/recreate.py +11 -12
  53. js7/api/joc/http/v_2_6_5/daily_plan/submissions/delete.py +30 -0
  54. js7/api/joc/http/v_2_6_5/iam/account/change_password.py +30 -0
  55. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/iam/account/permissions.py +11 -17
  56. js7/api/joc/http/v_2_6_5/iam/account/rename.py +30 -0
  57. js7/api/joc/http/v_2_6_5/iam/account/store.py +30 -0
  58. js7/api/joc/http/v_2_6_5/iam/accounts/accounts.py +30 -0
  59. js7/api/joc/http/v_2_6_5/iam/accounts/delete.py +30 -0
  60. js7/api/joc/http/v_2_6_5/iam/accounts/disable.py +30 -0
  61. js7/api/joc/http/v_2_6_5/iam/accounts/enable.py +30 -0
  62. js7/api/joc/http/v_2_6_5/iam/accounts/reset_password.py +30 -0
  63. js7/api/joc/http/v_2_6_5/iam/blocked_account/store.py +30 -0
  64. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/iam/blocked_accounts/blocked_accounts.py +11 -17
  65. js7/api/joc/http/v_2_6_5/iam/blocked_accounts/delete.py +30 -0
  66. js7/api/joc/http/v_2_6_5/iam/folder/folder.py +30 -0
  67. js7/api/joc/http/v_2_6_5/iam/folder/rename.py +30 -0
  68. js7/api/joc/http/v_2_6_5/iam/folders/delete.py +30 -0
  69. js7/api/joc/http/v_2_6_5/iam/folders/folders.py +30 -0
  70. js7/api/joc/http/v_2_6_5/iam/folders/store.py +30 -0
  71. js7/api/joc/http/v_2_6_5/iam/identity_service/delete.py +30 -0
  72. js7/api/joc/http/v_2_6_5/iam/identity_service/identity_service.py +30 -0
  73. js7/api/joc/http/v_2_6_5/iam/identity_service/rename.py +30 -0
  74. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/iam/identity_service/store.py +10 -17
  75. js7/api/joc/http/v_2_6_5/iam/identity_services/identity_services.py +30 -0
  76. js7/api/joc/http/v_2_6_5/iam/permission/permission.py +30 -0
  77. js7/api/joc/http/v_2_6_5/iam/permission/rename.py +30 -0
  78. js7/api/joc/http/v_2_6_5/iam/permissions/delete.py +30 -0
  79. js7/api/joc/http/v_2_6_5/iam/permissions/permissions.py +30 -0
  80. js7/api/joc/http/v_2_6_5/iam/permissions/store.py +30 -0
  81. js7/api/joc/http/v_2_6_5/iam/role/rename.py +30 -0
  82. js7/api/joc/http/v_2_6_5/iam/role/role.py +30 -0
  83. js7/api/joc/http/v_2_6_5/iam/role/store.py +30 -0
  84. js7/api/joc/http/v_2_6_5/iam/roles/delete.py +30 -0
  85. js7/api/joc/http/v_2_6_5/iam/roles/roles.py +30 -0
  86. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/changes/changes.py +11 -17
  87. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/dependencies.py +11 -14
  88. js7/api/joc/http/v_2_6_5/inventory/deployment/deploy.py +30 -0
  89. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/deployment/import_deploy.py +25 -21
  90. js7/api/joc/http/v_2_6_5/inventory/deployment/revoke.py +30 -0
  91. js7/api/joc/http/v_2_6_5/inventory/export/export.py +31 -0
  92. js7/api/joc/http/v_2_6_5/inventory/export/folder.py +30 -0
  93. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/import_objects.py +24 -25
  94. js7/api/joc/http/v_2_6_5/inventory/releasables/recall/folder.py +30 -0
  95. js7/api/joc/http/v_2_6_5/inventory/releasables/recall/recall.py +30 -0
  96. js7/api/joc/http/v_2_6_5/inventory/release.py +30 -0
  97. js7/api/joc/http/v_2_6_5/inventory/remove/folder.py +30 -0
  98. js7/api/joc/http/v_2_6_5/inventory/remove/remove.py +30 -0
  99. js7/api/joc/http/v_2_6_5/inventory/repository/delete.py +30 -0
  100. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/repository/git/add.py +11 -17
  101. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/repository/git/checkout.py +11 -17
  102. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/repository/git/clone.py +11 -17
  103. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/repository/git/commit.py +11 -17
  104. js7/api/joc/http/v_2_6_5/inventory/repository/git/credentials/add.py +30 -0
  105. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/repository/git/credentials/credentials.py +10 -11
  106. js7/api/joc/http/v_2_6_5/inventory/repository/git/credentials/remove.py +30 -0
  107. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/repository/git/pull.py +11 -17
  108. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/repository/git/push.py +11 -17
  109. js7/api/joc/http/v_2_6_5/inventory/repository/read.py +30 -0
  110. js7/api/joc/http/v_2_6_5/inventory/repository/store.py +30 -0
  111. js7/api/joc/http/v_2_6_5/inventory/repository/update.py +31 -0
  112. js7/api/joc/http/v_2_6_5/inventory/revalidate/folder.py +30 -0
  113. js7/api/joc/http/v_2_6_5/inventory/store.py +30 -0
  114. js7/api/joc/http/v_2_6_5/inventory/trash/delete/delete.py +30 -0
  115. js7/api/joc/http/v_2_6_5/inventory/trash/delete/folder.py +30 -0
  116. js7/api/joc/http/v_2_6_5/inventory/trash/restore.py +30 -0
  117. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/inventory/validate.py +18 -18
  118. js7/api/joc/http/v_2_6_5/joc/cluster/restart.py +30 -0
  119. js7/api/joc/http/v_2_6_5/joc/cluster/run.py +30 -0
  120. js7/api/joc/http/v_2_6_5/joc/cluster/switch_member.py +30 -0
  121. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/joc/license.py +10 -11
  122. js7/api/joc/http/v_2_6_5/joc/proxies/restart.py +30 -0
  123. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/joc/version.py +10 -11
  124. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/joc/versions.py +11 -17
  125. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/orders/add.py +11 -14
  126. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/orders/cancel.py +11 -14
  127. js7/api/joc/http/v_2_6_5/orders/confirm.py +30 -0
  128. js7/api/joc/http/v_2_6_5/orders/continue_.py +30 -0
  129. js7/api/joc/http/v_2_6_5/orders/history.py +31 -0
  130. js7/api/joc/http/v_2_6_5/orders/orders.py +30 -0
  131. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/orders/remove_when_terminated.py +11 -14
  132. js7/api/joc/http/v_2_6_5/orders/resume.py +30 -0
  133. js7/api/joc/http/v_2_6_5/orders/suspend.py +30 -0
  134. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/settings/settings.py +10 -11
  135. js7/api/joc/http/v_2_6_5/settings/store.py +30 -0
  136. js7/api/joc/http/{v_2_8_2 → v_2_6_5}/tasks/history.py +11 -17
  137. js7/api/joc/http/v_2_6_5/workflow/transition.py +31 -0
  138. js7/api/joc/http/v_2_6_5/workflow/workflow.py +31 -0
  139. js7/api/joc/http/v_2_6_5/workflows/resume.py +30 -0
  140. js7/api/joc/http/v_2_6_5/workflows/skip.py +30 -0
  141. js7/api/joc/http/v_2_6_5/workflows/stop.py +30 -0
  142. js7/api/joc/http/v_2_6_5/workflows/suspend.py +30 -0
  143. js7/api/joc/http/v_2_6_5/workflows/unskip.py +30 -0
  144. js7/api/joc/http/v_2_6_5/workflows/unstop.py +30 -0
  145. js7/api/joc/http/v_2_6_5/workflows/workflows.py +31 -0
  146. js7/client/action/agent/confirm_node_loss_agent_action.py +19 -29
  147. js7/client/action/agent/delete_subagent_action.py +19 -29
  148. js7/client/action/agent/delete_subagent_clusters_action.py +19 -29
  149. js7/client/action/agent/deploy_cluster_agents_action.py +19 -29
  150. js7/client/action/agent/deploy_standalone_agents_action.py +19 -29
  151. js7/client/action/agent/deploy_subagent_clusters_action.py +19 -29
  152. js7/client/action/agent/disable_standalone_agents_action.py +19 -29
  153. js7/client/action/agent/disable_subagents_action.py +19 -29
  154. js7/client/action/agent/enable_standalone_agents_action.py +19 -29
  155. js7/client/action/agent/enable_subagents_action.py +19 -29
  156. js7/client/action/agent/export_agents_action.py +30 -37
  157. js7/client/action/agent/get_agents_status_action.py +19 -26
  158. js7/client/action/agent/import_agents_action.py +22 -28
  159. js7/client/action/agent/remove_agent_action.py +19 -29
  160. js7/client/action/agent/reset_agents_action.py +19 -29
  161. js7/client/action/agent/reset_subagent_action.py +19 -29
  162. js7/client/action/agent/revoke_cluster_agents_action.py +19 -29
  163. js7/client/action/agent/revoke_standalone_agents_action.py +19 -29
  164. js7/client/action/agent/revoke_subagent_clusters_action.py +19 -26
  165. js7/client/action/agent/store_cluster_agents_action.py +26 -35
  166. js7/client/action/agent/store_standalone_agents_action.py +21 -31
  167. js7/client/action/agent/store_subagent_clusters_action.py +24 -33
  168. js7/client/action/agent/store_subagents_action.py +23 -33
  169. js7/client/action/agent/switchover_agent_action.py +14 -24
  170. js7/client/action/controller/appoint_nodes_controller_action.py +19 -29
  171. js7/client/action/controller/cancel_and_restart_controller_action.py +19 -29
  172. js7/client/action/controller/cancel_controller_action.py +19 -29
  173. js7/client/action/controller/confirm_cluster_node_loss_action.py +18 -28
  174. js7/client/action/controller/get_controller_components_action.py +15 -27
  175. js7/client/action/controller/get_controller_status_action.py +19 -29
  176. js7/client/action/controller/register_controller_action.py +23 -33
  177. js7/client/action/controller/restart_controller_action.py +19 -29
  178. js7/client/action/controller/switchover_controller_cluster_action.py +19 -29
  179. js7/client/action/controller/terminate_controller_action.py +18 -28
  180. js7/client/action/controller/test_controller_instance_action.py +19 -29
  181. js7/client/action/controller/unregister_controller_action.py +19 -29
  182. js7/client/action/daily_plan/cancel_orders_action.py +19 -29
  183. js7/client/action/daily_plan/copy_orders_action.py +21 -31
  184. js7/client/action/daily_plan/delete_orders_action.py +22 -32
  185. js7/client/action/daily_plan/delete_submissions_action.py +21 -31
  186. js7/client/action/daily_plan/generate_orders_action.py +26 -36
  187. js7/client/action/daily_plan/get_calendar_projections_action.py +20 -30
  188. js7/client/action/daily_plan/get_orders_action.py +22 -32
  189. js7/client/action/daily_plan/get_projection_dates_action.py +20 -30
  190. js7/client/action/daily_plan/modify_orders_action.py +21 -31
  191. js7/client/action/daily_plan/recreate_projections_action.py +10 -15
  192. js7/client/action/daily_plan/submit_orders_action.py +22 -32
  193. js7/client/action/iam/block_account_action.py +19 -29
  194. js7/client/action/iam/change_account_password_action.py +19 -29
  195. js7/client/action/iam/disable_accounts_action.py +19 -29
  196. js7/client/action/iam/enable_accounts_action.py +19 -29
  197. js7/client/action/iam/get_account_permissions_action.py +19 -29
  198. js7/client/action/iam/get_accounts_action.py +17 -27
  199. js7/client/action/iam/get_blocked_accounts_action.py +17 -27
  200. js7/client/action/iam/get_folder_permissions_action.py +20 -33
  201. js7/client/action/iam/get_identity_service_settings_action.py +19 -30
  202. js7/client/action/iam/get_identity_services_action.py +19 -32
  203. js7/client/action/iam/get_permissions_action.py +21 -34
  204. js7/client/action/iam/get_roles_action.py +17 -27
  205. js7/client/action/iam/remove_accounts_action.py +19 -29
  206. js7/client/action/iam/remove_folder_permissions_action.py +19 -29
  207. js7/client/action/iam/remove_identity_service_action.py +19 -29
  208. js7/client/action/iam/remove_permissions_action.py +19 -30
  209. js7/client/action/iam/remove_roles_action.py +16 -26
  210. js7/client/action/iam/rename_account_action.py +19 -29
  211. js7/client/action/iam/rename_folder_permissions_action.py +21 -31
  212. js7/client/action/iam/rename_identity_service_action.py +19 -29
  213. js7/client/action/iam/rename_permission_action.py +21 -31
  214. js7/client/action/iam/rename_role_action.py +19 -29
  215. js7/client/action/iam/reset_account_passwords_action.py +19 -29
  216. js7/client/action/iam/set_folder_permissions_action.py +21 -31
  217. js7/client/action/iam/set_permissions_action.py +21 -31
  218. js7/client/action/iam/store_account_action.py +19 -29
  219. js7/client/action/iam/store_identity_service_action.py +23 -33
  220. js7/client/action/iam/store_identity_service_settings_action.py +19 -29
  221. js7/client/action/iam/store_role_action.py +19 -29
  222. js7/client/action/iam/unblock_accounts_action.py +19 -29
  223. js7/client/action/inventory/deploy_configurations_action.py +36 -47
  224. js7/client/action/inventory/export_configurations_action.py +52 -66
  225. js7/client/action/inventory/export_folders_action.py +46 -53
  226. js7/client/action/inventory/get_change_dependencies_action.py +29 -37
  227. js7/client/action/inventory/get_changes_action.py +19 -27
  228. js7/client/action/inventory/get_git_credentials_action.py +10 -15
  229. js7/client/action/inventory/git_add_action.py +25 -31
  230. js7/client/action/inventory/git_checkout_action.py +21 -31
  231. js7/client/action/inventory/git_clone_action.py +21 -31
  232. js7/client/action/inventory/git_commit_action.py +22 -31
  233. js7/client/action/inventory/git_pull_action.py +25 -31
  234. js7/client/action/inventory/git_push_action.py +21 -31
  235. js7/client/action/inventory/import_configurations_action.py +25 -28
  236. js7/client/action/inventory/import_deploy_configurations_action.py +22 -28
  237. js7/client/action/inventory/read_from_local_repository_action.py +22 -29
  238. js7/client/action/inventory/recall_folder_action.py +19 -29
  239. js7/client/action/inventory/recall_released_configuration_action.py +23 -33
  240. js7/client/action/inventory/release_configuartions_action.py +25 -35
  241. js7/client/action/inventory/remove_configurations_action.py +25 -32
  242. js7/client/action/inventory/remove_configurations_from_trash_action.py +24 -33
  243. js7/client/action/inventory/remove_folder_action.py +22 -28
  244. js7/client/action/inventory/remove_folder_from_trash_action.py +22 -29
  245. js7/client/action/inventory/remove_git_credentials_action.py +21 -28
  246. js7/client/action/inventory/remove_repository_configuration_action.py +32 -38
  247. js7/client/action/inventory/restore_configuration_from_trash_action.py +22 -33
  248. js7/client/action/inventory/revalidate_folder_action.py +21 -28
  249. js7/client/action/inventory/revoke_configurations_action.py +24 -34
  250. js7/client/action/inventory/store_configuration_action.py +23 -32
  251. js7/client/action/inventory/store_git_credentials_action.py +33 -38
  252. js7/client/action/inventory/store_repository_configuration_action.py +30 -40
  253. js7/client/action/inventory/update_repository_configuration_action.py +30 -36
  254. js7/client/action/inventory/validate_configuration_action.py +13 -24
  255. js7/client/action/joc/get_components_versions_action.py +18 -28
  256. js7/client/action/joc/get_license_info_action.py +9 -14
  257. js7/client/action/joc/get_settings_action.py +11 -14
  258. js7/client/action/joc/get_version_action.py +11 -13
  259. js7/client/action/joc/restart_proxies_action.py +18 -28
  260. js7/client/action/joc/restart_service_action.py +24 -31
  261. js7/client/action/joc/run_service_action.py +24 -31
  262. js7/client/action/joc/store_settings_action.py +19 -29
  263. js7/client/action/joc/switch_over_action.py +41 -62
  264. js7/client/action/order/add_orders_action.py +24 -36
  265. js7/client/action/order/cancel_orders_action.py +21 -31
  266. js7/client/action/order/confirm_orders_action.py +21 -31
  267. js7/client/action/order/continue_orders_action.py +21 -31
  268. js7/client/action/order/get_order_history_action.py +22 -32
  269. js7/client/action/order/get_orders_action.py +21 -27
  270. js7/client/action/order/remove_terminated_orders_action.py +21 -31
  271. js7/client/action/order/resume_orders_action.py +25 -35
  272. js7/client/action/order/suspend_orders_action.py +25 -35
  273. js7/client/action/task/get_task_history_info_action.py +24 -34
  274. js7/client/action/workflow/get_workflow_versions_action.py +26 -42
  275. js7/client/action/workflow/resume_workflows_action.py +19 -29
  276. js7/client/action/workflow/set_workflow_version_as_current_action.py +21 -31
  277. js7/client/action/workflow/skip_job_instructions_action.py +19 -29
  278. js7/client/action/workflow/stop_job_instructions_action.py +21 -31
  279. js7/client/action/workflow/suspend_workflows_action.py +19 -29
  280. js7/client/action/workflow/unskip_job_instructions_action.py +19 -29
  281. js7/client/action/workflow/unstop_job_instructions_action.py +21 -31
  282. js7/client/auth/login.py +12 -17
  283. js7/client/auth/logout.py +8 -14
  284. js7/client/context.py +3 -6
  285. js7/util/version_to_tuple.py +12 -0
  286. {js7_client_python-2.0.10.dist-info → js7_client_python-2.0.12.dist-info}/METADATA +11 -10
  287. js7_client_python-2.0.12.dist-info/RECORD +387 -0
  288. {js7_client_python-2.0.10.dist-info → js7_client_python-2.0.12.dist-info}/WHEEL +1 -1
  289. js7/api/joc/http/v_2_8_2/agent/cluster/confirm_node_loss.py +0 -36
  290. js7/api/joc/http/v_2_8_2/agent/cluster/switchover.py +0 -36
  291. js7/api/joc/http/v_2_8_2/agent/delete.py +0 -36
  292. js7/api/joc/http/v_2_8_2/agents/agents.py +0 -36
  293. js7/api/joc/http/v_2_8_2/agents/cluster/deploy.py +0 -36
  294. js7/api/joc/http/v_2_8_2/agents/cluster/revoke.py +0 -36
  295. js7/api/joc/http/v_2_8_2/agents/cluster/store.py +0 -36
  296. js7/api/joc/http/v_2_8_2/agents/export.py +0 -35
  297. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/deploy.py +0 -36
  298. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/revoke.py +0 -36
  299. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/store.py +0 -36
  300. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/delete.py +0 -36
  301. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/disable.py +0 -36
  302. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/enable.py +0 -36
  303. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/reset.py +0 -36
  304. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/store.py +0 -36
  305. js7/api/joc/http/v_2_8_2/agents/inventory/deploy.py +0 -36
  306. js7/api/joc/http/v_2_8_2/agents/inventory/disable.py +0 -36
  307. js7/api/joc/http/v_2_8_2/agents/inventory/enable.py +0 -36
  308. js7/api/joc/http/v_2_8_2/agents/inventory/revoke.py +0 -36
  309. js7/api/joc/http/v_2_8_2/agents/inventory/store.py +0 -36
  310. js7/api/joc/http/v_2_8_2/agents/reset.py +0 -36
  311. js7/api/joc/http/v_2_8_2/controller/abort.py +0 -36
  312. js7/api/joc/http/v_2_8_2/controller/abort_and_restart.py +0 -36
  313. js7/api/joc/http/v_2_8_2/controller/cluster/appoint_nodes.py +0 -36
  314. js7/api/joc/http/v_2_8_2/controller/cluster/confirm_node_loss.py +0 -36
  315. js7/api/joc/http/v_2_8_2/controller/cluster/switchover.py +0 -36
  316. js7/api/joc/http/v_2_8_2/controller/restart.py +0 -36
  317. js7/api/joc/http/v_2_8_2/controller/terminate.py +0 -36
  318. js7/api/joc/http/v_2_8_2/controller/unregister.py +0 -36
  319. js7/api/joc/http/v_2_8_2/daily_plan/orders/cancel.py +0 -36
  320. js7/api/joc/http/v_2_8_2/daily_plan/orders/copy.py +0 -36
  321. js7/api/joc/http/v_2_8_2/daily_plan/orders/delete.py +0 -36
  322. js7/api/joc/http/v_2_8_2/daily_plan/orders/generate.py +0 -36
  323. js7/api/joc/http/v_2_8_2/daily_plan/orders/submit.py +0 -36
  324. js7/api/joc/http/v_2_8_2/daily_plan/submissions/delete.py +0 -36
  325. js7/api/joc/http/v_2_8_2/iam/account/change_password.py +0 -36
  326. js7/api/joc/http/v_2_8_2/iam/account/rename.py +0 -36
  327. js7/api/joc/http/v_2_8_2/iam/account/store.py +0 -36
  328. js7/api/joc/http/v_2_8_2/iam/accounts/accounts.py +0 -36
  329. js7/api/joc/http/v_2_8_2/iam/accounts/delete.py +0 -36
  330. js7/api/joc/http/v_2_8_2/iam/accounts/disable.py +0 -36
  331. js7/api/joc/http/v_2_8_2/iam/accounts/enable.py +0 -36
  332. js7/api/joc/http/v_2_8_2/iam/accounts/reset_password.py +0 -36
  333. js7/api/joc/http/v_2_8_2/iam/blocked_account/store.py +0 -36
  334. js7/api/joc/http/v_2_8_2/iam/blocked_accounts/delete.py +0 -36
  335. js7/api/joc/http/v_2_8_2/iam/folder/folder.py +0 -36
  336. js7/api/joc/http/v_2_8_2/iam/folder/rename.py +0 -36
  337. js7/api/joc/http/v_2_8_2/iam/folders/delete.py +0 -36
  338. js7/api/joc/http/v_2_8_2/iam/folders/folders.py +0 -36
  339. js7/api/joc/http/v_2_8_2/iam/folders/store.py +0 -36
  340. js7/api/joc/http/v_2_8_2/iam/identity_service/delete.py +0 -36
  341. js7/api/joc/http/v_2_8_2/iam/identity_service/identity_service.py +0 -36
  342. js7/api/joc/http/v_2_8_2/iam/identity_service/rename.py +0 -36
  343. js7/api/joc/http/v_2_8_2/iam/identity_services/identity_services.py +0 -36
  344. js7/api/joc/http/v_2_8_2/iam/permission/permission.py +0 -36
  345. js7/api/joc/http/v_2_8_2/iam/permission/rename.py +0 -36
  346. js7/api/joc/http/v_2_8_2/iam/permissions/delete.py +0 -36
  347. js7/api/joc/http/v_2_8_2/iam/permissions/permissions.py +0 -36
  348. js7/api/joc/http/v_2_8_2/iam/permissions/store.py +0 -36
  349. js7/api/joc/http/v_2_8_2/iam/role/rename.py +0 -36
  350. js7/api/joc/http/v_2_8_2/iam/role/role.py +0 -36
  351. js7/api/joc/http/v_2_8_2/iam/role/store.py +0 -36
  352. js7/api/joc/http/v_2_8_2/iam/roles/delete.py +0 -36
  353. js7/api/joc/http/v_2_8_2/iam/roles/roles.py +0 -36
  354. js7/api/joc/http/v_2_8_2/inventory/deployment/deploy.py +0 -36
  355. js7/api/joc/http/v_2_8_2/inventory/deployment/revoke.py +0 -36
  356. js7/api/joc/http/v_2_8_2/inventory/export/export.py +0 -36
  357. js7/api/joc/http/v_2_8_2/inventory/export/folder.py +0 -36
  358. js7/api/joc/http/v_2_8_2/inventory/releasables/recall/folder.py +0 -36
  359. js7/api/joc/http/v_2_8_2/inventory/releasables/recall/recall.py +0 -36
  360. js7/api/joc/http/v_2_8_2/inventory/release.py +0 -36
  361. js7/api/joc/http/v_2_8_2/inventory/remove/folder.py +0 -36
  362. js7/api/joc/http/v_2_8_2/inventory/remove/remove.py +0 -36
  363. js7/api/joc/http/v_2_8_2/inventory/repository/delete.py +0 -36
  364. js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/add.py +0 -36
  365. js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/remove.py +0 -36
  366. js7/api/joc/http/v_2_8_2/inventory/repository/read.py +0 -36
  367. js7/api/joc/http/v_2_8_2/inventory/repository/store.py +0 -36
  368. js7/api/joc/http/v_2_8_2/inventory/repository/update.py +0 -36
  369. js7/api/joc/http/v_2_8_2/inventory/revalidate/folder.py +0 -36
  370. js7/api/joc/http/v_2_8_2/inventory/store.py +0 -36
  371. js7/api/joc/http/v_2_8_2/inventory/trash/delete/delete.py +0 -36
  372. js7/api/joc/http/v_2_8_2/inventory/trash/delete/folder.py +0 -36
  373. js7/api/joc/http/v_2_8_2/inventory/trash/restore.py +0 -36
  374. js7/api/joc/http/v_2_8_2/joc/cluster/restart.py +0 -36
  375. js7/api/joc/http/v_2_8_2/joc/cluster/run.py +0 -36
  376. js7/api/joc/http/v_2_8_2/joc/cluster/switch_member.py +0 -36
  377. js7/api/joc/http/v_2_8_2/joc/proxies/restart.py +0 -36
  378. js7/api/joc/http/v_2_8_2/orders/confirm.py +0 -36
  379. js7/api/joc/http/v_2_8_2/orders/continue.py +0 -36
  380. js7/api/joc/http/v_2_8_2/orders/history.py +0 -36
  381. js7/api/joc/http/v_2_8_2/orders/orders.py +0 -36
  382. js7/api/joc/http/v_2_8_2/orders/resume.py +0 -36
  383. js7/api/joc/http/v_2_8_2/orders/suspend.py +0 -36
  384. js7/api/joc/http/v_2_8_2/settings/store.py +0 -36
  385. js7/api/joc/http/v_2_8_2/workflow/transition.py +0 -36
  386. js7/api/joc/http/v_2_8_2/workflow/workflow.py +0 -36
  387. js7/api/joc/http/v_2_8_2/workflows/resume.py +0 -36
  388. js7/api/joc/http/v_2_8_2/workflows/skip.py +0 -36
  389. js7/api/joc/http/v_2_8_2/workflows/stop.py +0 -36
  390. js7/api/joc/http/v_2_8_2/workflows/suspend.py +0 -36
  391. js7/api/joc/http/v_2_8_2/workflows/unskip.py +0 -36
  392. js7/api/joc/http/v_2_8_2/workflows/unstop.py +0 -36
  393. js7/api/joc/http/v_2_8_2/workflows/workflows.py +0 -36
  394. js7/api/joc/interface/dispatcher.py +0 -76
  395. js7/api/joc/interface/interface.py +0 -8
  396. js7/api/joc/interface/resolver.py +0 -75
  397. js7/model/private/api/endpoint.py +0 -30
  398. js7/util/check_matching_version.py +0 -20
  399. js7_client_python-2.0.10.dist-info/RECORD +0 -391
  400. /js7/model/private/http/joc/{joc_v_2_8_2.py → joc_v_2_6_5.py} +0 -0
  401. {js7_client_python-2.0.10.dist-info → js7_client_python-2.0.12.dist-info/licenses}/LICENSE +0 -0
  402. {js7_client_python-2.0.10.dist-info → js7_client_python-2.0.12.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import AgentCommand, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: AgentCommand
12
+
13
+
14
+ def confirm_node_loss(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agent/cluster/confirm_node_loss",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import AgentCommand, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: AgentCommand
12
+
13
+
14
+ def switchover(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agent/cluster/switchover",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from ......service.http_service import HTTPService
4
+ from ......model.private.http.joc.joc_v_2_6_5 import AgentCommand, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: AgentCommand
12
+
13
+
14
+ def delete(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agent/delete",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from ......service.http_service import HTTPService
4
+ from ......model.private.http.joc.joc_v_2_6_5 import ReadAgentsV, AgentsV
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: ReadAgentsV
12
+
13
+
14
+ def agents(call: EndpointCall) -> AgentsV:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' ist required in function call")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return AgentsV.model_validate_json(resp)
@@ -1,5 +1,14 @@
1
- from .......model.private.api.endpoint import EndpointDefinition, EndpointCall
2
- from .......model.private.http.joc.joc_v_2_8_2 import DeploySubagentClusters, OK
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import DeploySubagentClusters, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: DeploySubagentClusters
3
12
 
4
13
 
5
14
  def delete(call: EndpointCall) -> OK:
@@ -9,9 +18,6 @@ def delete(call: EndpointCall) -> OK:
9
18
  if not call.payload:
10
19
  raise ValueError("'payload' is required in function call.")
11
20
 
12
- if not isinstance(call.payload, DeploySubagentClusters):
13
- raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.DeploySubagentClusters.")
14
-
15
21
  body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
16
22
 
17
23
  with call.http_service as http:
@@ -25,12 +31,3 @@ def delete(call: EndpointCall) -> OK:
25
31
  )
26
32
 
27
33
  return OK.model_validate_json(resp)
28
-
29
- ENDPOINT_DEFINITION = EndpointDefinition(
30
- id="agents/cluster/delete",
31
- function=delete,
32
- version=("2.6.5", "2.8.3"),
33
- payload_model=DeploySubagentClusters,
34
- response_model=OK,
35
- options=None
36
- )
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import DeploySubagentClusters, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: DeploySubagentClusters
12
+
13
+
14
+ def deploy(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/cluster/deploy",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import DeploySubagentClusters, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: DeploySubagentClusters
12
+
13
+
14
+ def revoke(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/cluster/revoke",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import StoreSubagentClusters, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: StoreSubagentClusters
12
+
13
+
14
+ def store(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/cluster/store",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,29 @@
1
+ from dataclasses import dataclass
2
+
3
+ from ......service.http_service import HTTPService
4
+ from ......model.private.http.joc.joc_v_2_6_5 import AgentExportFilter
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: AgentExportFilter
12
+
13
+
14
+ def export(call: EndpointCall) -> bytes:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' ist required in function call")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/export",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token
26
+ }
27
+ )
28
+
29
+ return resp
@@ -1,9 +1,27 @@
1
- from typing import Dict, Optional
1
+ from typing import Dict, Optional, TypedDict
2
+ from dataclasses import dataclass
2
3
 
3
- from ......model.private.api.endpoint import EndpointCall, EndpointDefinition
4
- from ......model.private.http.joc.joc_v_2_8_2 import OK
4
+ from ......service.http_service import HTTPService
5
+ from ......model.private.http.joc.joc_v_2_6_5 import OK
5
6
 
6
7
 
8
+ class Options(TypedDict):
9
+ format: str
10
+ overwrite: bool
11
+ controller_id: str
12
+ audit_log_ticket_link: Optional[str]
13
+ audit_log_comment: Optional[str]
14
+ audit_log_time_spent: Optional[str]
15
+
16
+
17
+ @dataclass
18
+ class EndpointCall:
19
+ http_service: HTTPService
20
+ access_token: str
21
+ payload: bytes
22
+ options: Options
23
+
24
+
7
25
  def import_(call: EndpointCall) -> OK:
8
26
  if not call.access_token:
9
27
  raise ValueError("'access_token' is required in function call.")
@@ -24,9 +42,6 @@ def import_(call: EndpointCall) -> OK:
24
42
  if not controller_id:
25
43
  raise ValueError("'controller_id' is required in options.")
26
44
 
27
- if overwrite is None:
28
- raise ValueError("'overwrite' is required in options.")
29
-
30
45
  if not format:
31
46
  raise ValueError("'format' is required in options.")
32
47
 
@@ -56,19 +71,3 @@ def import_(call: EndpointCall) -> OK:
56
71
  )
57
72
 
58
73
  return OK.model_validate_json(resp)
59
-
60
- ENDPOINT_DEFINITION = EndpointDefinition(
61
- id="agents/import",
62
- function=import_,
63
- version=("2.6.5", "2.8.3"),
64
- payload_model=bytes,
65
- response_model=OK,
66
- options={
67
- "format": str,
68
- "overwrite": bool,
69
- "controller_id": str,
70
- "audit_log_ticket_link": Optional[str],
71
- "audit_log_comment": Optional[str],
72
- "audit_log_time_spent": Optional[str]
73
- }
74
- )
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from ........service.http_service import HTTPService
4
+ from ........model.private.http.joc.joc_v_2_6_5 import DeployClusterAgents, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: DeployClusterAgents
12
+
13
+
14
+ def deploy(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/deploy",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from ........service.http_service import HTTPService
4
+ from ........model.private.http.joc.joc_v_2_6_5 import DeployClusterAgents, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: DeployClusterAgents
12
+
13
+
14
+ def revoke(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/revoke",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from ........service.http_service import HTTPService
4
+ from ........model.private.http.joc.joc_v_2_6_5 import StoreClusterAgents, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: StoreClusterAgents
12
+
13
+
14
+ def store(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/store",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .........service.http_service import HTTPService
4
+ from .........model.private.http.joc.joc_v_2_6_5 import SubAgentsCommand, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: SubAgentsCommand
12
+
13
+
14
+ def delete(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/subagents/delete",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .........service.http_service import HTTPService
4
+ from .........model.private.http.joc.joc_v_2_6_5 import SubAgentsCommand, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: SubAgentsCommand
12
+
13
+
14
+ def disable(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/subagents/disable",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .........service.http_service import HTTPService
4
+ from .........model.private.http.joc.joc_v_2_6_5 import SubAgentsCommand, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: SubAgentsCommand
12
+
13
+
14
+ def enable(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/subagents/enable",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .........service.http_service import HTTPService
4
+ from .........model.private.http.joc.joc_v_2_6_5 import SubAgentCommand, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: SubAgentCommand
12
+
13
+
14
+ def reset(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/subagent/reset",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .........service.http_service import HTTPService
4
+ from .........model.private.http.joc.joc_v_2_6_5 import StoreSubAgents, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: StoreSubAgents
12
+
13
+
14
+ def store(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/cluster/subagents/store",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import DeployAgents, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: DeployAgents
12
+
13
+
14
+ def deploy(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/deploy",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)
@@ -0,0 +1,30 @@
1
+ from dataclasses import dataclass
2
+
3
+ from .......service.http_service import HTTPService
4
+ from .......model.private.http.joc.joc_v_2_6_5 import DeployAgents, OK
5
+
6
+
7
+ @dataclass
8
+ class EndpointCall:
9
+ http_service: HTTPService
10
+ access_token: str
11
+ payload: DeployAgents
12
+
13
+
14
+ def disable(call: EndpointCall) -> OK:
15
+ if not call.access_token:
16
+ raise ValueError("'access_token' is required in function call.")
17
+
18
+ body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
19
+
20
+ with call.http_service as http:
21
+ resp = http.post(
22
+ path="/joc/api/agents/inventory/disable",
23
+ body=body,
24
+ headers={
25
+ "X-Access-Token": call.access_token,
26
+ "Accept": "application/json"
27
+ }
28
+ )
29
+
30
+ return OK.model_validate_json(resp)