js7-client-python 2.0.1__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 (389) hide show
  1. js7/__init__.py +8 -0
  2. js7/api/joc/http/v_2_8_2/agent/cluster/confirm_node_loss.py +36 -0
  3. js7/api/joc/http/v_2_8_2/agent/cluster/switchover.py +36 -0
  4. js7/api/joc/http/v_2_8_2/agent/delete.py +36 -0
  5. js7/api/joc/http/v_2_8_2/agents/agents.py +36 -0
  6. js7/api/joc/http/v_2_8_2/agents/cluster/delete.py +36 -0
  7. js7/api/joc/http/v_2_8_2/agents/cluster/deploy.py +36 -0
  8. js7/api/joc/http/v_2_8_2/agents/cluster/revoke.py +36 -0
  9. js7/api/joc/http/v_2_8_2/agents/cluster/store.py +36 -0
  10. js7/api/joc/http/v_2_8_2/agents/export.py +36 -0
  11. js7/api/joc/http/v_2_8_2/agents/import.py +74 -0
  12. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/deploy.py +36 -0
  13. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/revoke.py +36 -0
  14. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/store.py +36 -0
  15. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/delete.py +36 -0
  16. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/disable.py +36 -0
  17. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/enable.py +36 -0
  18. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/reset.py +36 -0
  19. js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/store.py +36 -0
  20. js7/api/joc/http/v_2_8_2/agents/inventory/deploy.py +36 -0
  21. js7/api/joc/http/v_2_8_2/agents/inventory/disable.py +36 -0
  22. js7/api/joc/http/v_2_8_2/agents/inventory/enable.py +36 -0
  23. js7/api/joc/http/v_2_8_2/agents/inventory/revoke.py +36 -0
  24. js7/api/joc/http/v_2_8_2/agents/inventory/store.py +36 -0
  25. js7/api/joc/http/v_2_8_2/agents/reset.py +36 -0
  26. js7/api/joc/http/v_2_8_2/authentication/auth.py +32 -0
  27. js7/api/joc/http/v_2_8_2/authentication/joc_cockpit_permissions.py +28 -0
  28. js7/api/joc/http/v_2_8_2/authentication/login.py +35 -0
  29. js7/api/joc/http/v_2_8_2/authentication/logout.py +28 -0
  30. js7/api/joc/http/v_2_8_2/configuration/configuration.py +36 -0
  31. js7/api/joc/http/v_2_8_2/configuration/save.py +36 -0
  32. js7/api/joc/http/v_2_8_2/controller/abort.py +36 -0
  33. js7/api/joc/http/v_2_8_2/controller/abort_and_restart.py +36 -0
  34. js7/api/joc/http/v_2_8_2/controller/cluster/appoint_nodes.py +36 -0
  35. js7/api/joc/http/v_2_8_2/controller/cluster/confirm_node_loss.py +36 -0
  36. js7/api/joc/http/v_2_8_2/controller/cluster/switchover.py +36 -0
  37. js7/api/joc/http/v_2_8_2/controller/components.py +36 -0
  38. js7/api/joc/http/v_2_8_2/controller/controller.py +36 -0
  39. js7/api/joc/http/v_2_8_2/controller/register.py +42 -0
  40. js7/api/joc/http/v_2_8_2/controller/restart.py +36 -0
  41. js7/api/joc/http/v_2_8_2/controller/terminate.py +36 -0
  42. js7/api/joc/http/v_2_8_2/controller/test.py +36 -0
  43. js7/api/joc/http/v_2_8_2/controller/unregister.py +36 -0
  44. js7/api/joc/http/v_2_8_2/daily_plan/orders/cancel.py +36 -0
  45. js7/api/joc/http/v_2_8_2/daily_plan/orders/copy.py +36 -0
  46. js7/api/joc/http/v_2_8_2/daily_plan/orders/delete.py +36 -0
  47. js7/api/joc/http/v_2_8_2/daily_plan/orders/generate.py +36 -0
  48. js7/api/joc/http/v_2_8_2/daily_plan/orders/modify.py +36 -0
  49. js7/api/joc/http/v_2_8_2/daily_plan/orders/orders.py +36 -0
  50. js7/api/joc/http/v_2_8_2/daily_plan/orders/submit.py +36 -0
  51. js7/api/joc/http/v_2_8_2/daily_plan/projections/calendar.py +36 -0
  52. js7/api/joc/http/v_2_8_2/daily_plan/projections/dates.py +36 -0
  53. js7/api/joc/http/v_2_8_2/daily_plan/projections/recreate.py +28 -0
  54. js7/api/joc/http/v_2_8_2/daily_plan/submissions/delete.py +36 -0
  55. js7/api/joc/http/v_2_8_2/iam/account/change_password.py +36 -0
  56. js7/api/joc/http/v_2_8_2/iam/account/permissions.py +36 -0
  57. js7/api/joc/http/v_2_8_2/iam/account/rename.py +36 -0
  58. js7/api/joc/http/v_2_8_2/iam/account/store.py +36 -0
  59. js7/api/joc/http/v_2_8_2/iam/accounts/accounts.py +36 -0
  60. js7/api/joc/http/v_2_8_2/iam/accounts/delete.py +36 -0
  61. js7/api/joc/http/v_2_8_2/iam/accounts/disable.py +36 -0
  62. js7/api/joc/http/v_2_8_2/iam/accounts/enable.py +36 -0
  63. js7/api/joc/http/v_2_8_2/iam/accounts/reset_password.py +36 -0
  64. js7/api/joc/http/v_2_8_2/iam/blocked_account/store.py +36 -0
  65. js7/api/joc/http/v_2_8_2/iam/blocked_accounts/blocked_accounts.py +36 -0
  66. js7/api/joc/http/v_2_8_2/iam/blocked_accounts/delete.py +36 -0
  67. js7/api/joc/http/v_2_8_2/iam/folder/folder.py +36 -0
  68. js7/api/joc/http/v_2_8_2/iam/folder/rename.py +36 -0
  69. js7/api/joc/http/v_2_8_2/iam/folders/delete.py +36 -0
  70. js7/api/joc/http/v_2_8_2/iam/folders/folders.py +36 -0
  71. js7/api/joc/http/v_2_8_2/iam/folders/store.py +36 -0
  72. js7/api/joc/http/v_2_8_2/iam/identity_service/delete.py +36 -0
  73. js7/api/joc/http/v_2_8_2/iam/identity_service/identity_service.py +36 -0
  74. js7/api/joc/http/v_2_8_2/iam/identity_service/rename.py +36 -0
  75. js7/api/joc/http/v_2_8_2/iam/identity_service/store.py +42 -0
  76. js7/api/joc/http/v_2_8_2/iam/identity_services/identity_services.py +36 -0
  77. js7/api/joc/http/v_2_8_2/iam/permission/permission.py +36 -0
  78. js7/api/joc/http/v_2_8_2/iam/permission/rename.py +36 -0
  79. js7/api/joc/http/v_2_8_2/iam/permissions/delete.py +36 -0
  80. js7/api/joc/http/v_2_8_2/iam/permissions/permissions.py +36 -0
  81. js7/api/joc/http/v_2_8_2/iam/permissions/store.py +36 -0
  82. js7/api/joc/http/v_2_8_2/iam/role/rename.py +36 -0
  83. js7/api/joc/http/v_2_8_2/iam/role/role.py +36 -0
  84. js7/api/joc/http/v_2_8_2/iam/role/store.py +36 -0
  85. js7/api/joc/http/v_2_8_2/iam/roles/delete.py +36 -0
  86. js7/api/joc/http/v_2_8_2/iam/roles/roles.py +36 -0
  87. js7/api/joc/http/v_2_8_2/inventory/changes/changes.py +36 -0
  88. js7/api/joc/http/v_2_8_2/inventory/dependencies.py +33 -0
  89. js7/api/joc/http/v_2_8_2/inventory/deployment/deploy.py +36 -0
  90. js7/api/joc/http/v_2_8_2/inventory/deployment/import_deploy.py +66 -0
  91. js7/api/joc/http/v_2_8_2/inventory/deployment/revoke.py +36 -0
  92. js7/api/joc/http/v_2_8_2/inventory/export/export.py +36 -0
  93. js7/api/joc/http/v_2_8_2/inventory/export/folder.py +36 -0
  94. js7/api/joc/http/v_2_8_2/inventory/import_objects.py +88 -0
  95. js7/api/joc/http/v_2_8_2/inventory/releasables/recall/folder.py +36 -0
  96. js7/api/joc/http/v_2_8_2/inventory/releasables/recall/recall.py +36 -0
  97. js7/api/joc/http/v_2_8_2/inventory/release.py +36 -0
  98. js7/api/joc/http/v_2_8_2/inventory/remove/folder.py +36 -0
  99. js7/api/joc/http/v_2_8_2/inventory/remove/remove.py +36 -0
  100. js7/api/joc/http/v_2_8_2/inventory/repository/delete.py +36 -0
  101. js7/api/joc/http/v_2_8_2/inventory/repository/git/add.py +36 -0
  102. js7/api/joc/http/v_2_8_2/inventory/repository/git/checkout.py +36 -0
  103. js7/api/joc/http/v_2_8_2/inventory/repository/git/clone.py +36 -0
  104. js7/api/joc/http/v_2_8_2/inventory/repository/git/commit.py +36 -0
  105. js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/add.py +36 -0
  106. js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/credentials.py +28 -0
  107. js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/remove.py +36 -0
  108. js7/api/joc/http/v_2_8_2/inventory/repository/git/pull.py +36 -0
  109. js7/api/joc/http/v_2_8_2/inventory/repository/git/push.py +36 -0
  110. js7/api/joc/http/v_2_8_2/inventory/repository/read.py +36 -0
  111. js7/api/joc/http/v_2_8_2/inventory/repository/store.py +36 -0
  112. js7/api/joc/http/v_2_8_2/inventory/repository/update.py +36 -0
  113. js7/api/joc/http/v_2_8_2/inventory/revalidate/folder.py +36 -0
  114. js7/api/joc/http/v_2_8_2/inventory/store.py +36 -0
  115. js7/api/joc/http/v_2_8_2/inventory/trash/delete/delete.py +36 -0
  116. js7/api/joc/http/v_2_8_2/inventory/trash/delete/folder.py +36 -0
  117. js7/api/joc/http/v_2_8_2/inventory/trash/restore.py +36 -0
  118. js7/api/joc/http/v_2_8_2/inventory/validate.py +42 -0
  119. js7/api/joc/http/v_2_8_2/joc/cluster/restart.py +36 -0
  120. js7/api/joc/http/v_2_8_2/joc/cluster/run.py +36 -0
  121. js7/api/joc/http/v_2_8_2/joc/cluster/switch_member.py +36 -0
  122. js7/api/joc/http/v_2_8_2/joc/license.py +28 -0
  123. js7/api/joc/http/v_2_8_2/joc/proxies/restart.py +36 -0
  124. js7/api/joc/http/v_2_8_2/joc/version.py +28 -0
  125. js7/api/joc/http/v_2_8_2/joc/versions.py +36 -0
  126. js7/api/joc/http/v_2_8_2/orders/add.py +33 -0
  127. js7/api/joc/http/v_2_8_2/orders/cancel.py +33 -0
  128. js7/api/joc/http/v_2_8_2/orders/confirm.py +36 -0
  129. js7/api/joc/http/v_2_8_2/orders/continue.py +36 -0
  130. js7/api/joc/http/v_2_8_2/orders/history.py +36 -0
  131. js7/api/joc/http/v_2_8_2/orders/orders.py +36 -0
  132. js7/api/joc/http/v_2_8_2/orders/remove_when_terminated.py +33 -0
  133. js7/api/joc/http/v_2_8_2/orders/resume.py +36 -0
  134. js7/api/joc/http/v_2_8_2/orders/suspend.py +36 -0
  135. js7/api/joc/http/v_2_8_2/settings/settings.py +28 -0
  136. js7/api/joc/http/v_2_8_2/settings/store.py +36 -0
  137. js7/api/joc/http/v_2_8_2/tasks/history.py +36 -0
  138. js7/api/joc/http/v_2_8_2/workflow/transition.py +36 -0
  139. js7/api/joc/http/v_2_8_2/workflow/workflow.py +36 -0
  140. js7/api/joc/http/v_2_8_2/workflows/resume.py +36 -0
  141. js7/api/joc/http/v_2_8_2/workflows/skip.py +36 -0
  142. js7/api/joc/http/v_2_8_2/workflows/stop.py +36 -0
  143. js7/api/joc/http/v_2_8_2/workflows/suspend.py +36 -0
  144. js7/api/joc/http/v_2_8_2/workflows/unskip.py +36 -0
  145. js7/api/joc/http/v_2_8_2/workflows/unstop.py +36 -0
  146. js7/api/joc/http/v_2_8_2/workflows/workflows.py +36 -0
  147. js7/api/joc/interface/dispatcher.py +76 -0
  148. js7/api/joc/interface/interface.py +8 -0
  149. js7/api/joc/interface/resolver.py +75 -0
  150. js7/client/action/agent/confirm_node_loss_agent_action.py +75 -0
  151. js7/client/action/agent/delete_subagent_action.py +77 -0
  152. js7/client/action/agent/delete_subagent_clusters_action.py +75 -0
  153. js7/client/action/agent/deploy_cluster_agents_action.py +75 -0
  154. js7/client/action/agent/deploy_standalone_agents_action.py +75 -0
  155. js7/client/action/agent/deploy_subagent_clusters_action.py +75 -0
  156. js7/client/action/agent/disable_standalone_agents_action.py +75 -0
  157. js7/client/action/agent/disable_subagents_action.py +75 -0
  158. js7/client/action/agent/enable_standalone_agents_action.py +75 -0
  159. js7/client/action/agent/enable_subagents_action.py +75 -0
  160. js7/client/action/agent/export_agents_action.py +101 -0
  161. js7/client/action/agent/get_agents_status_action.py +55 -0
  162. js7/client/action/agent/import_agents_action.py +139 -0
  163. js7/client/action/agent/remove_agent_action.py +79 -0
  164. js7/client/action/agent/reset_agents_action.py +79 -0
  165. js7/client/action/agent/reset_subagent_action.py +79 -0
  166. js7/client/action/agent/revoke_cluster_agents_action.py +75 -0
  167. js7/client/action/agent/revoke_standalone_agents_action.py +75 -0
  168. js7/client/action/agent/revoke_subagent_clusters_action.py +75 -0
  169. js7/client/action/agent/store_cluster_agents_action.py +99 -0
  170. js7/client/action/agent/store_standalone_agents_action.py +87 -0
  171. js7/client/action/agent/store_subagent_clusters_action.py +83 -0
  172. js7/client/action/agent/store_subagents_action.py +97 -0
  173. js7/client/action/agent/switchover_agent_action.py +75 -0
  174. js7/client/action/controller/appoint_nodes_controller_action.py +67 -0
  175. js7/client/action/controller/cancel_and_restart_controller_action.py +72 -0
  176. js7/client/action/controller/cancel_controller_action.py +71 -0
  177. js7/client/action/controller/confirm_cluster_node_loss_action.py +68 -0
  178. js7/client/action/controller/get_controller_components_action.py +41 -0
  179. js7/client/action/controller/get_controller_status_action.py +72 -0
  180. js7/client/action/controller/register_controller_action.py +93 -0
  181. js7/client/action/controller/restart_controller_action.py +72 -0
  182. js7/client/action/controller/switchover_controller_cluster_action.py +67 -0
  183. js7/client/action/controller/terminate_controller_action.py +72 -0
  184. js7/client/action/controller/test_controller_instance_action.py +65 -0
  185. js7/client/action/controller/unregister_controller_action.py +68 -0
  186. js7/client/action/daily_plan/cancel_orders_action.py +59 -0
  187. js7/client/action/daily_plan/copy_orders_action.py +108 -0
  188. js7/client/action/daily_plan/create_projections_action.py +24 -0
  189. js7/client/action/daily_plan/delete_orders_action.py +80 -0
  190. js7/client/action/daily_plan/delete_submissions_action.py +83 -0
  191. js7/client/action/daily_plan/generate_orders_action.py +121 -0
  192. js7/client/action/daily_plan/get_calendar_projections_action.py +59 -0
  193. js7/client/action/daily_plan/get_orders_action.py +70 -0
  194. js7/client/action/daily_plan/get_projection_dates_action.py +59 -0
  195. js7/client/action/daily_plan/modify_orders_action.py +130 -0
  196. js7/client/action/daily_plan/submit_orders_action.py +79 -0
  197. js7/client/action/helper/decrypt_action.py +82 -0
  198. js7/client/action/helper/encrypt_action.py +87 -0
  199. js7/client/action/iam/block_account_action.py +71 -0
  200. js7/client/action/iam/change_account_password_action.py +96 -0
  201. js7/client/action/iam/disable_accounts_action.py +75 -0
  202. js7/client/action/iam/enable_accounts_action.py +75 -0
  203. js7/client/action/iam/get_account_permissions_action.py +75 -0
  204. js7/client/action/iam/get_accounts_action.py +76 -0
  205. js7/client/action/iam/get_blocked_accounts_action.py +76 -0
  206. js7/client/action/iam/get_folder_permissions_action.py +112 -0
  207. js7/client/action/iam/get_identity_service_settings_action.py +70 -0
  208. js7/client/action/iam/get_identity_services_action.py +102 -0
  209. js7/client/action/iam/get_permissions_action.py +113 -0
  210. js7/client/action/iam/get_roles_action.py +57 -0
  211. js7/client/action/iam/remove_accounts_action.py +75 -0
  212. js7/client/action/iam/remove_folder_permissions_action.py +91 -0
  213. js7/client/action/iam/remove_identity_service_action.py +67 -0
  214. js7/client/action/iam/remove_permissions_action.py +88 -0
  215. js7/client/action/iam/remove_roles_action.py +75 -0
  216. js7/client/action/iam/rename_account_action.py +83 -0
  217. js7/client/action/iam/rename_folder_permissions_action.py +100 -0
  218. js7/client/action/iam/rename_identity_service_action.py +75 -0
  219. js7/client/action/iam/rename_permission_action.py +103 -0
  220. js7/client/action/iam/rename_role_action.py +83 -0
  221. js7/client/action/iam/reset_account_passwords_action.py +75 -0
  222. js7/client/action/iam/set_folder_permissions_action.py +96 -0
  223. js7/client/action/iam/set_permissions_action.py +91 -0
  224. js7/client/action/iam/store_account_action.py +69 -0
  225. js7/client/action/iam/store_identity_service_action.py +75 -0
  226. js7/client/action/iam/store_identity_service_settings_action.py +74 -0
  227. js7/client/action/iam/store_role_action.py +79 -0
  228. js7/client/action/iam/unblock_accounts_action.py +67 -0
  229. js7/client/action/inventory/deploy_configurations_action.py +138 -0
  230. js7/client/action/inventory/export_configurations_action.py +203 -0
  231. js7/client/action/inventory/export_folders_action.py +160 -0
  232. js7/client/action/inventory/get_change_dependencies_action.py +161 -0
  233. js7/client/action/inventory/get_changes_action.py +59 -0
  234. js7/client/action/inventory/get_git_credentials_action.py +29 -0
  235. js7/client/action/inventory/git_add_action.py +72 -0
  236. js7/client/action/inventory/git_checkout_action.py +88 -0
  237. js7/client/action/inventory/git_clone_action.py +84 -0
  238. js7/client/action/inventory/git_commit_action.py +80 -0
  239. js7/client/action/inventory/git_pull_action.py +72 -0
  240. js7/client/action/inventory/git_push_action.py +76 -0
  241. js7/client/action/inventory/import_configurations_action.py +153 -0
  242. js7/client/action/inventory/import_deploy_configurations_action.py +188 -0
  243. js7/client/action/inventory/read_from_local_repository_action.py +67 -0
  244. js7/client/action/inventory/recall_folder_action.py +89 -0
  245. js7/client/action/inventory/recall_released_configuration_action.py +75 -0
  246. js7/client/action/inventory/release_configuartions_action.py +89 -0
  247. js7/client/action/inventory/remove_configurations_action.py +77 -0
  248. js7/client/action/inventory/remove_configurations_from_trash_action.py +80 -0
  249. js7/client/action/inventory/remove_folder_action.py +67 -0
  250. js7/client/action/inventory/remove_folder_from_trash_action.py +69 -0
  251. js7/client/action/inventory/remove_git_credentials_action.py +53 -0
  252. js7/client/action/inventory/remove_repository_configuration_action.py +84 -0
  253. js7/client/action/inventory/restore_configuration_from_trash_action.py +84 -0
  254. js7/client/action/inventory/revalidate_folder_action.py +46 -0
  255. js7/client/action/inventory/revoke_configurations_action.py +86 -0
  256. js7/client/action/inventory/store_configuration_action.py +79 -0
  257. js7/client/action/inventory/store_git_credentials_action.py +99 -0
  258. js7/client/action/inventory/store_repository_configuration_action.py +124 -0
  259. js7/client/action/inventory/update_repository_configuration_action.py +85 -0
  260. js7/client/action/inventory/validate_configuration_action.py +58 -0
  261. js7/client/action/joc/get_components_versions_action.py +57 -0
  262. js7/client/action/joc/get_license_info_action.py +22 -0
  263. js7/client/action/joc/get_settings_action.py +19 -0
  264. js7/client/action/joc/get_version_action.py +17 -0
  265. js7/client/action/joc/restart_proxies_action.py +50 -0
  266. js7/client/action/joc/restart_service_action.py +74 -0
  267. js7/client/action/joc/run_service_action.py +74 -0
  268. js7/client/action/joc/store_settings_action.py +62 -0
  269. js7/client/action/joc/switch_over_action.py +89 -0
  270. js7/client/action/order/add_orders_action.py +115 -0
  271. js7/client/action/order/cancel_orders_action.py +93 -0
  272. js7/client/action/order/confirm_orders_action.py +86 -0
  273. js7/client/action/order/continue_orders_action.py +86 -0
  274. js7/client/action/order/get_order_history_action.py +84 -0
  275. js7/client/action/order/get_orders_action.py +83 -0
  276. js7/client/action/order/remove_terminated_orders_action.py +86 -0
  277. js7/client/action/order/resume_orders_action.py +102 -0
  278. js7/client/action/order/suspend_orders_action.py +97 -0
  279. js7/client/action/task/get_task_history_info_action.py +88 -0
  280. js7/client/action/workflow/get_workflow_versions_action.py +131 -0
  281. js7/client/action/workflow/resume_workflows_action.py +76 -0
  282. js7/client/action/workflow/set_workflow_version_as_current_action.py +86 -0
  283. js7/client/action/workflow/skip_job_instructions_action.py +83 -0
  284. js7/client/action/workflow/stop_job_instructions_action.py +83 -0
  285. js7/client/action/workflow/suspend_workflows_action.py +76 -0
  286. js7/client/action/workflow/unskip_job_instructions_action.py +83 -0
  287. js7/client/action/workflow/unstop_job_instructions_action.py +79 -0
  288. js7/client/auth/auth_provider.py +109 -0
  289. js7/client/auth/login.py +34 -0
  290. js7/client/auth/logout.py +22 -0
  291. js7/client/client.py +250 -0
  292. js7/client/context.py +40 -0
  293. js7/client/feature/agent/agent.py +26 -0
  294. js7/client/feature/agent/deploy.py +134 -0
  295. js7/client/feature/agent/manage.py +363 -0
  296. js7/client/feature/agent/operate.py +577 -0
  297. js7/client/feature/controller/controller.py +19 -0
  298. js7/client/feature/controller/manage.py +214 -0
  299. js7/client/feature/controller/operate.py +274 -0
  300. js7/client/feature/daily_plan/daily_plan.py +14 -0
  301. js7/client/feature/daily_plan/manage.py +179 -0
  302. js7/client/feature/daily_plan/operate.py +354 -0
  303. js7/client/feature/iam/iam.py +14 -0
  304. js7/client/feature/iam/manage.py +1311 -0
  305. js7/client/feature/inventory/inventory.py +13 -0
  306. js7/client/feature/inventory/manage.py +943 -0
  307. js7/client/feature/inventory/manage_repository.py +533 -0
  308. js7/client/feature/joc/joc.py +18 -0
  309. js7/client/feature/joc/manage.py +102 -0
  310. js7/client/feature/joc/operate.py +185 -0
  311. js7/client/feature/order/manage.py +79 -0
  312. js7/client/feature/order/operate.py +346 -0
  313. js7/client/feature/order/order.py +18 -0
  314. js7/client/feature/task/task.py +54 -0
  315. js7/client/feature/workflow/manage.py +54 -0
  316. js7/client/feature/workflow/operate.py +336 -0
  317. js7/client/feature/workflow/workflow.py +19 -0
  318. js7/java/lib/3rd-party/bcpg-jdk15to18-1.78.1.jar +0 -0
  319. js7/java/lib/3rd-party/bcpkix-jdk15to18-1.78.1.jar +0 -0
  320. js7/java/lib/3rd-party/bcprov-jdk15to18-1.78.1.jar +0 -0
  321. js7/java/lib/3rd-party/bcutil-jdk15to18-1.78.1.jar +0 -0
  322. js7/java/lib/3rd-party/commons-io-2.15.1.jar +0 -0
  323. js7/java/lib/3rd-party/commons-lang3-3.14.0.jar +0 -0
  324. js7/java/lib/3rd-party/jackson-core-2.14.2.jar +0 -0
  325. js7/java/lib/3rd-party/jackson-databind-2.14.2.jar +0 -0
  326. js7/java/lib/3rd-party/jackson-dataformat-xml-2.14.2.jar +0 -0
  327. js7/java/lib/3rd-party/jakarta.annotation-api-2.1.1.jar +0 -0
  328. js7/java/lib/3rd-party/javax.activation-api-1.2.0.jar +0 -0
  329. js7/java/lib/3rd-party/jaxb-api-2.4.0-b180830.0359.jar +0 -0
  330. js7/java/lib/3rd-party/org.apache.logging.log4j.log4j-api-2.23.1.jar +0 -0
  331. js7/java/lib/3rd-party/org.apache.logging.log4j.log4j-core-2.23.1.jar +0 -0
  332. js7/java/lib/3rd-party/org.apache.logging.log4j.log4j-slf4j2-impl-2.23.1.jar +0 -0
  333. js7/java/lib/3rd-party/org.slf4j.slf4j-api-2.0.13.jar +0 -0
  334. js7/java/lib/3rd-party/stax2-api-4.2.1.jar +0 -0
  335. js7/java/lib/3rd-party/woodstox-core-6.5.0.jar +0 -0
  336. js7/java/lib/sos/sos-commons-encryption-2.7.3.jar +0 -0
  337. js7/java/lib/sos/sos-commons-exception-2.7.3.jar +0 -0
  338. js7/java/lib/sos/sos-commons-sign-2.7.3.jar +0 -0
  339. js7/java/lib/sos/sos-webservices-json-2.7.3.jar +0 -0
  340. js7/model/__init__.py +132 -0
  341. js7/model/configuration/auth_configuration.py +24 -0
  342. js7/model/configuration/client_configuration.py +6 -0
  343. js7/model/configuration/http_configuration.py +10 -0
  344. js7/model/error/http/joc_exceptions.py +151 -0
  345. js7/model/private/api/endpoint.py +30 -0
  346. js7/model/private/http/joc/joc_v_2_8_2.py +3666 -0
  347. js7/model/public/client/common/__init__.py +27 -0
  348. js7/model/public/client/common/accounts.py +21 -0
  349. js7/model/public/client/common/audit_log.py +8 -0
  350. js7/model/public/client/common/changes.py +18 -0
  351. js7/model/public/client/common/configurations.py +53 -0
  352. js7/model/public/client/common/cycle.py +12 -0
  353. js7/model/public/client/common/git_credentials.py +12 -0
  354. js7/model/public/client/common/identity_service.py +14 -0
  355. js7/model/public/client/common/schedule_time.py +50 -0
  356. js7/model/public/client/common/store_agents.py +96 -0
  357. js7/model/public/client/enum/__init__.py +19 -0
  358. js7/model/public/client/enum/object_types.py +48 -0
  359. js7/model/public/client/enum/operation_type.py +11 -0
  360. js7/model/public/client/enum/order_priority.py +9 -0
  361. js7/model/public/client/filter/__init__.py +35 -0
  362. js7/model/public/client/filter/daily_plan_order_filters.py +255 -0
  363. js7/model/public/client/filter/element/__init__.py +3 -0
  364. js7/model/public/client/filter/element/folder.py +6 -0
  365. js7/model/public/client/filter/element/workflow_id.py +10 -0
  366. js7/model/public/client/filter/export_filter.py +52 -0
  367. js7/model/public/client/filter/export_folders_filter.py +34 -0
  368. js7/model/public/client/filter/get_order_filter.py +59 -0
  369. js7/model/public/client/filter/order_history_filter.py +113 -0
  370. js7/model/public/client/filter/resume_order_filter.py +45 -0
  371. js7/model/public/client/filter/suspend_order_filter.py +44 -0
  372. js7/model/public/client/filter/tasks_filter.py +50 -0
  373. js7/model/public/client/input/__init__.py +2 -0
  374. js7/model/public/client/input/add_order.py +50 -0
  375. js7/service/http_service.py +206 -0
  376. js7/util/bytes_converter/bytes_to_archive_bytes.py +52 -0
  377. js7/util/bytes_converter/bytes_to_file.py +12 -0
  378. js7/util/bytes_converter/files_to_bytes.py +52 -0
  379. js7/util/bytes_converter/read_bytes_archive_files_to_bytes.py +69 -0
  380. js7/util/bytes_converter/sign_to_bytes.py +106 -0
  381. js7/util/check_matching_version.py +20 -0
  382. js7/util/detect_archive_type.py +37 -0
  383. js7/util/str_converter/order_id_to_order_name.py +5 -0
  384. js7/validator/http/joc_http_status_validator.py +155 -0
  385. js7_client_python-2.0.1.0.dist-info/LICENSE +674 -0
  386. js7_client_python-2.0.1.0.dist-info/METADATA +763 -0
  387. js7_client_python-2.0.1.0.dist-info/RECORD +389 -0
  388. js7_client_python-2.0.1.0.dist-info/WHEEL +5 -0
  389. js7_client_python-2.0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,214 @@
1
+ from typing import Any, Dict, Literal, Optional
2
+
3
+ from ....client.context import Context
4
+ from ....model.public.client.common.audit_log import AuditLog
5
+
6
+ from ...action.controller.test_controller_instance_action import test_controller_instance_action
7
+ from ...action.controller.confirm_cluster_node_loss_action import confirm_cluster_node_loss_action
8
+ from ...action.controller.get_controller_components_action import get_controller_components_action
9
+ from ...action.controller.get_controller_status_action import get_controller_status_action
10
+ from ...action.controller.register_controller_action import register_controller_action
11
+
12
+
13
+ class Manage:
14
+ def __init__(self, context: Context):
15
+ self._ctx = context
16
+
17
+ def test_controller_instance(
18
+ self,
19
+ url: str,
20
+ controller_id: Optional[str] = None,
21
+ ) -> bool:
22
+ """
23
+ Tests the connectivity of a Controller instance and optionally verifies its Controller ID.
24
+
25
+ Args:
26
+ url (str):
27
+ The URL of the Controller instance against which the connection test is performed.
28
+
29
+ controller_id (Optional[str]):
30
+ If provided, verifies that the Controller instance is registered with
31
+ the specified Controller ID.
32
+
33
+ Returns:
34
+ bool:
35
+ Returns `True` if the connection status is `established`.
36
+ Returns `False` if the status is `unstable`, `unreachable`, or `unknown`.
37
+
38
+ Raises:
39
+ ValueError:
40
+ If required arguments such as `url` are missing or invalid.
41
+
42
+ RuntimeError:
43
+ If the server version is not compatible or if an
44
+ unexpected response is returned.
45
+ """
46
+
47
+ return test_controller_instance_action(
48
+ context=self._ctx,
49
+ controller_id=controller_id,
50
+ url=url
51
+ )
52
+
53
+ def confirm_cluster_node_loss(
54
+ self,
55
+ controller_id: str,
56
+ audit_log: Optional[AuditLog] = None
57
+ ) -> bool:
58
+ """
59
+ Confirms that a Controller node in the cluster is permanently lost.
60
+
61
+ Args:
62
+ controller_id (str):
63
+ The unique identifier of the Controller instance that is
64
+ expected to be lost.
65
+
66
+ audit_log (Optional[AuditLog]):
67
+ Optional audit log information to be included with the request.
68
+
69
+ Returns:
70
+ bool:
71
+ Returns `True` if the specified Controller node is confirmed as lost,
72
+ otherwise returns `False`.
73
+
74
+ Raises:
75
+ ValueError:
76
+ If required arguments such as `controller_id` are missing or invalid.
77
+
78
+ RuntimeError:
79
+ If the server version is not compatible or if an
80
+ unexpected response is returned.
81
+ """
82
+
83
+ return confirm_cluster_node_loss_action(
84
+ context=self._ctx,
85
+ controller_id=controller_id,
86
+ audit_log=audit_log
87
+ )
88
+
89
+ def get_controller_components(self, controller_id: str) -> Dict[str, Any]:
90
+ """
91
+ Retrieves the components of the specified Controller instance.
92
+
93
+ Args:
94
+ controller_id (str):
95
+ The unique identifier of the Controller instance for which
96
+ component information is requested.
97
+
98
+ Returns:
99
+ Dict ([str, Any]):
100
+ A dictionary containing details about the Controller components.
101
+
102
+ Raises:
103
+ ValueError:
104
+ If required arguments such as `controller_id` are missing or invalid.
105
+
106
+ RuntimeError:
107
+ If the server version is not compatible or if an
108
+ unexpected response is returned.
109
+ """
110
+
111
+ return get_controller_components_action(
112
+ context=self._ctx,
113
+ controller_id=controller_id
114
+ )
115
+
116
+ def get_controller_status(
117
+ self,
118
+ controller_id: str,
119
+ url: Optional[str] = None,
120
+ audit_log: Optional[AuditLog] = None
121
+ ) -> Dict[str, Any]:
122
+ """
123
+ Gets Controller status information.
124
+
125
+ Args:
126
+ controller_id (str):
127
+ The unique identifier of the Controller instance for which
128
+ status information is requested.
129
+
130
+ url (str):
131
+ URL of the Controller instance. This parameter is required for a Controller cluster.
132
+
133
+ Returns:
134
+ Dict ([str, Any]):
135
+ A dictionary containing details about the Controller status.
136
+
137
+ Raises:
138
+ ValueError:
139
+ If required arguments such as `controller_id` are missing or invalid.
140
+
141
+ RuntimeError:
142
+ If the server version is not compatible or if an
143
+ unexpected response is returned.
144
+ """
145
+
146
+ return get_controller_status_action(
147
+ context=self._ctx,
148
+ controller_id=controller_id,
149
+ url=url,
150
+ audit_log=audit_log
151
+ )
152
+
153
+ def register_controller(
154
+ self,
155
+ url: str,
156
+ role: Literal['STANDALONE', 'PRIMARY', 'BACKUP'],
157
+ controller_id: Optional[str] = None,
158
+ title: Optional[str] = None,
159
+ cluster_url: Optional[str] = None,
160
+ audit_log: Optional[AuditLog] = None
161
+ ) -> bool:
162
+ """
163
+ Registers a Controller or Controller cluster in JOC Cockpit.
164
+
165
+ A Controller can be either a standalone instance or part of a cluster
166
+ with PRIMARY and BACKUP roles. This operation adds a new Controller
167
+ (or cluster) to JOC Cockpit or updates existing Controller information
168
+ such as the URL or title.
169
+
170
+ Args:
171
+ url (str):
172
+ The URL of the Controller instance.
173
+
174
+ role (Literal['STANDALONE', 'PRIMARY', 'BACKUP']):
175
+ The role of the Controller within the cluster.
176
+
177
+ controller_id (Optional[str]):
178
+ The Controller ID. Can be omitted only when registering
179
+ a new Controller (cluster).
180
+
181
+ title (Optional[str]):
182
+ A display name used in JOC Cockpit.
183
+
184
+ cluster_url (Optional[str]):
185
+ For clustered Controllers only: The URL used by cluster
186
+ nodes to communicate with each other.
187
+
188
+ audit_log (Optional[AuditLog]):
189
+ Optional audit log information to be included with the request.
190
+
191
+ Returns:
192
+ bool:
193
+ Returns `True` if the Controller was successfully registered
194
+ or updated.
195
+
196
+ Raises:
197
+ ValueError:
198
+ If required arguments such as `url` or `role` are missing or invalid.
199
+
200
+ RuntimeError:
201
+ If the server version is not compatible or if an
202
+ unexpected response is returned.
203
+ """
204
+
205
+ return register_controller_action(
206
+ context=self._ctx,
207
+ url=url,
208
+ role=role,
209
+ controller_id=controller_id,
210
+ title=title,
211
+ cluster_url=cluster_url,
212
+ audit_log=audit_log
213
+ )
214
+
@@ -0,0 +1,274 @@
1
+ from typing import Optional
2
+ from ....client.context import Context
3
+ from ....model.public.client.common.audit_log import AuditLog
4
+
5
+ from ...action.controller.appoint_nodes_controller_action import appoint_controller_cluster_roles_action
6
+ from ...action.controller.cancel_and_restart_controller_action import cancel_and_restart_controller_action
7
+ from ...action.controller.cancel_controller_action import cancel_controller_action
8
+ from ...action.controller.switchover_controller_cluster_action import switchover_controller_cluster_action
9
+ from ...action.controller.restart_controller_action import restart_controller_action
10
+ from ...action.controller.terminate_controller_action import terminate_controller_action
11
+ from ...action.controller.unregister_controller_action import unregister_controller_action
12
+
13
+
14
+ class Operate:
15
+ def __init__(self, context: Context):
16
+ self._ctx = context
17
+
18
+ def appoint_controller_cluster_roles(
19
+ self,
20
+ controller_id: str,
21
+ audit_log: Optional[AuditLog] = None
22
+ ) -> bool:
23
+ """
24
+ Re-establishes Controller Cluster roles.
25
+
26
+ Args:
27
+ controller_id (str):
28
+ The ID of the controller on which the operation should be executed.
29
+
30
+ audit_log (Optional[AuditLog]):
31
+ Creates an audit log entry for this operation.
32
+
33
+ Returns:
34
+ bool:
35
+ Returns `True` if the operation was successful, otherwise `False`.
36
+
37
+ Raises:
38
+ ValueError:
39
+ If required arguments such as `controller_id` are missing or invalid.
40
+
41
+ RuntimeError:
42
+ If the server version is not compatible or if an
43
+ unexpected response is returned.
44
+ """
45
+
46
+ return appoint_controller_cluster_roles_action(
47
+ context=self._ctx,
48
+ controller_id=controller_id,
49
+ audit_log=audit_log
50
+ )
51
+
52
+ def cancel_and_restart_controller(
53
+ self,
54
+ controller_id: str,
55
+ url: Optional[str] = None,
56
+ audit_log: Optional[AuditLog] = None
57
+ ) -> bool:
58
+ """
59
+ Aborts and restarts Controller and optionally switches over.
60
+
61
+ Args:
62
+ controller_id (str):
63
+ The ID of the controller on which the operation should be executed.
64
+
65
+ url (str):
66
+ URL of the Controller instance. This parameter is required for a Controller cluster.
67
+
68
+ audit_log (Optional[AuditLog]):
69
+ Creates an audit log entry for this operation.
70
+
71
+ Returns:
72
+ bool:
73
+ Returns `True` if the operation was successful, otherwise `False`.
74
+
75
+ Raises:
76
+ ValueError:
77
+ If required arguments such as `controller_id` are missing or invalid.
78
+
79
+ RuntimeError:
80
+ If the server version is not compatible or if an
81
+ unexpected response is returned.
82
+ """
83
+
84
+ return cancel_and_restart_controller_action(
85
+ context=self._ctx,
86
+ controller_id=controller_id,
87
+ url=url,
88
+ audit_log=audit_log
89
+ )
90
+
91
+ def cancel_controller(
92
+ self,
93
+ controller_id: str,
94
+ url: Optional[str] = None,
95
+ audit_log: Optional[AuditLog] = None
96
+ ) -> bool:
97
+ """
98
+ Cancels the specified Controller instance.
99
+
100
+ Args:
101
+ controller_id (str):
102
+ The ID of the controller on which the operation should be executed.
103
+
104
+ url (str):
105
+ URL of the Controller instance. This parameter is required for a Controller cluster.
106
+
107
+ audit_log (Optional[AuditLog]):
108
+ Creates an audit log entry for this operation.
109
+
110
+ Returns:
111
+ bool:
112
+ Returns `True` if the operation was successful, otherwise `False`.
113
+
114
+ Raises:
115
+ ValueError:
116
+ If required arguments such as `controller_id` are missing or invalid.
117
+
118
+ RuntimeError:
119
+ If the server version is not compatible or if an
120
+ unexpected response is returned.
121
+ """
122
+
123
+ return cancel_controller_action(
124
+ context=self._ctx,
125
+ controller_id=controller_id,
126
+ url=url,
127
+ audit_log=audit_log
128
+ )
129
+
130
+ def switchover_controller_cluster(
131
+ self,
132
+ controller_id: str,
133
+ audit_log: Optional[AuditLog] = None
134
+ ) -> bool:
135
+ """
136
+ Performs a switch-over to the standby node.
137
+
138
+ Args:
139
+ controller_id (str):
140
+ The ID of the controller on which the operation should be executed.
141
+
142
+ audit_log (Optional[AuditLog]):
143
+ Creates an audit log entry for this operation.
144
+
145
+ Returns:
146
+ bool: Returns `True` if the operation was successful, otherwise `False`.
147
+
148
+ Raises:
149
+ ValueError:
150
+ If required arguments such as `controller_id` are missing or invalid.
151
+
152
+ RuntimeError:
153
+ If the server version is not compatible or if an
154
+ unexpected response is returned.
155
+ """
156
+
157
+ return switchover_controller_cluster_action(
158
+ context=self._ctx,
159
+ controller_id=controller_id,
160
+ audit_log=audit_log
161
+ )
162
+
163
+ def restart_controller(
164
+ self,
165
+ controller_id: str,
166
+ url: Optional[str] = None,
167
+ audit_log: Optional[AuditLog] = None
168
+ ) -> bool:
169
+ """
170
+ Restarts a Controller instance.
171
+
172
+ Args:
173
+ controller_id (str):
174
+ The ID of the controller on which the operation should be executed.
175
+
176
+ url (Optional[str]):
177
+ URL of the Controller instance. This parameter is required for a Controller cluster.
178
+
179
+ audit_log (Optional[AuditLog]):
180
+ Creates an audit log entry for this operation.
181
+
182
+ Returns:
183
+ bool:
184
+ Returns `True` if the operation was successful, otherwise `False`.
185
+
186
+ Raises:
187
+ ValueError:
188
+ If required arguments such as `controller_id` are missing or invalid.
189
+
190
+ RuntimeError:
191
+ If the server version is not compatible or if an
192
+ unexpected response is returned.
193
+ """
194
+
195
+ return restart_controller_action(
196
+ context=self._ctx,
197
+ controller_id=controller_id,
198
+ url=url,
199
+ audit_log=audit_log
200
+ )
201
+
202
+ def terminate_controller(
203
+ self,
204
+ controller_id: str,
205
+ url: Optional[str] = None,
206
+ audit_log: Optional[AuditLog] = None
207
+ ) -> bool:
208
+ """
209
+ Terminates a Controller instance.
210
+
211
+ Args:
212
+ controller_id (str):
213
+ The ID of the controller on which the operation should be executed.
214
+
215
+ url (Optional[str]):
216
+ URL of the Controller instance. This parameter is required for a Controller cluster.
217
+
218
+ audit_log (Optional[AuditLog]):
219
+ Creates an audit log entry for this operation.
220
+
221
+ Returns:
222
+ bool:
223
+ Returns `True` if the operation was successful, otherwise `False`.
224
+
225
+ Raises:
226
+ ValueError:
227
+ If required arguments such as `controller_id` are missing or invalid.
228
+
229
+ RuntimeError:
230
+ If the server version is not compatible or if an
231
+ unexpected response is returned.
232
+ """
233
+
234
+ return terminate_controller_action(
235
+ context=self._ctx,
236
+ controller_id=controller_id,
237
+ url=url,
238
+ audit_log=audit_log
239
+ )
240
+
241
+ def unregister_controller(
242
+ self,
243
+ controller_id: str,
244
+ audit_log: Optional[AuditLog] = None
245
+ ) -> bool:
246
+ """
247
+ Unregisters a Controller instance.
248
+
249
+ Args:
250
+ controller_id (str):
251
+ The ID of the controller on which the operation should be executed.
252
+
253
+ audit_log (Optional[AuditLog]):
254
+ Creates an audit log entry for this operation.
255
+
256
+ Returns:
257
+ bool:
258
+ Returns `True` if the operation was successful, otherwise `False`.
259
+
260
+ Raises:
261
+ ValueError:
262
+ If required arguments such as `controller_id` are missing or invalid.
263
+
264
+ RuntimeError:
265
+ If the server version is not compatible or if an
266
+ unexpected response is returned.
267
+ """
268
+
269
+ return unregister_controller_action(
270
+ context=self._ctx,
271
+ controller_id=controller_id,
272
+ audit_log=audit_log
273
+ )
274
+
@@ -0,0 +1,14 @@
1
+ from functools import cached_property
2
+
3
+ from ....client.context import Context
4
+
5
+ from .manage import Manage
6
+
7
+
8
+ class DailyPlan:
9
+ def __init__(self, context: Context):
10
+ self._ctx = context
11
+
12
+ @cached_property
13
+ def manage(self) -> Manage:
14
+ return Manage(context=self._ctx)
@@ -0,0 +1,179 @@
1
+ from typing import Any, Dict, List, Optional, Tuple
2
+
3
+ from ....client.context import Context
4
+ from ....model.public.client.common.schedule_time import ScheduleTime
5
+ from ....model.public.client.common.audit_log import AuditLog
6
+ from ....model.public.client.common.cycle import Cycle
7
+ from ....model.public.client.filter.daily_plan_order_filters import (
8
+ DailyPlanOrdersFilter,
9
+ DailyPlanProjectionsFilter
10
+ )
11
+
12
+ from ...action.daily_plan.get_orders_action import get_orders_action
13
+ from ...action.daily_plan.copy_orders_action import copy_orders_action
14
+ from ...action.daily_plan.create_projections_action import create_projections_action
15
+ from ...action.daily_plan.get_calendar_projections_action import get_calendar_projections_action
16
+ from ...action.daily_plan.get_projection_dates_action import get_projection_dates_action
17
+
18
+
19
+ class Manage:
20
+ def __init__(self, context: Context):
21
+ self._ctx = context
22
+
23
+ def get_orders(self, filter: DailyPlanOrdersFilter) -> Dict[str, Any]:
24
+ """
25
+ Retrieves orders for a specified daily plan interval.
26
+
27
+ Args:
28
+ filter (DailyPlanOrdersFilter):
29
+ Defines the filter criteria used to select orders
30
+ from the daily plan interval.
31
+
32
+ Returns:
33
+ Dict ([str, Any]):
34
+ A dictionary containing the orders matching the
35
+ specified daily plan filter.
36
+
37
+ Raises:
38
+ ValueError:
39
+ If required arguments are missing or invalid.
40
+
41
+ RuntimeError:
42
+ If the server version is not compatible or if an
43
+ unexpected response is returned.
44
+ """
45
+
46
+ return get_orders_action(
47
+ context=self._ctx,
48
+ filter=filter
49
+ )
50
+
51
+ def copy_orders(
52
+ self,
53
+ controller_id: str,
54
+ order_ids: List[str],
55
+ scheduled_for: Optional[ScheduleTime] = None,
56
+ cycle: Optional[Cycle] = None,
57
+ force_job_admission: bool = False,
58
+ sticky_daily_plan_date: bool = False,
59
+ audit_log: Optional[AuditLog] = None
60
+ ) -> List[Tuple[str, str]]:
61
+ """
62
+ Copy orders.
63
+
64
+ Args:
65
+ controller_id (str):
66
+ The ID of the controller on which the operation will be executed.
67
+
68
+ order_ids (List[str]):
69
+ A list of order IDs to be copied.
70
+
71
+ scheduled_for (Optional[ScheduleTime]):
72
+ Specifies the time for which the copied orders should be scheduled.
73
+
74
+ cycle (Optional[Cycle]):
75
+ Defines the cycle for cyclic orders, including the begin date,
76
+ end date, and repeat interval.
77
+
78
+ force_job_admission (bool):
79
+ If True, any job admission times defined in job instructions
80
+ will be ignored.
81
+
82
+ sticky_daily_plan_date (bool):
83
+ If True, the copied orders will retain their original Daily Plan date.
84
+
85
+ audit_log (Optional[AuditLog]):
86
+ Optional audit log information to include with the request.
87
+
88
+ Returns:
89
+ List (Tuple[str, str]):
90
+ A list of tuples in the format `(old_id, new_id)`, mapping the
91
+ original order ID to the newly created order ID.
92
+
93
+ Raises:
94
+ ValueError:
95
+ If required arguments are missing or invalid.
96
+
97
+ RuntimeError:
98
+ If the server version is incompatible or if an unexpected
99
+ response is returned.
100
+ """
101
+
102
+ return copy_orders_action(
103
+ context=self._ctx,
104
+ controller_id=controller_id,
105
+ order_ids=order_ids,
106
+ scheduled_for=scheduled_for,
107
+ cycle=cycle,
108
+ force_job_admission=force_job_admission,
109
+ sticky_daily_plan_date=sticky_daily_plan_date,
110
+ audit_log=audit_log
111
+ )
112
+
113
+ def create_projections(self) -> bool:
114
+ """
115
+ (Re)creates daily plan projections.
116
+
117
+ Returns:
118
+ bool:
119
+ Returns True if the operation was successful.
120
+
121
+ Raises:
122
+ RuntimeError:
123
+ If the server version is incompatible or if an unexpected
124
+ response is returned.
125
+ """
126
+
127
+ return create_projections_action(context=self._ctx)
128
+
129
+ def get_calendar_projections(self, filter: DailyPlanProjectionsFilter) -> Dict[str, Any]:
130
+ """
131
+ Retrieve the daily plan projection dates that include start times.
132
+
133
+ Args:
134
+ filter (DailyPlanProjectionsFilter):
135
+ Defines the criteria used to filter the projection entries.
136
+
137
+ Returns:
138
+ Dict ([str, Any]):
139
+ A dictionary containing the JSON representation of the years.
140
+
141
+ Raises:
142
+ ValueError:
143
+ If required arguments are missing or invalid.
144
+
145
+ RuntimeError:
146
+ If the server version is incompatible or if an unexpected
147
+ response is returned.
148
+ """
149
+
150
+ return get_calendar_projections_action(
151
+ context=self._ctx,
152
+ filter=filter
153
+ )
154
+
155
+ def get_projection_dates(self, filter: DailyPlanProjectionsFilter) -> Dict[str, Any]:
156
+ """
157
+ Retrieve the start times for a date range of daily plan projections.
158
+
159
+ Args:
160
+ filter (DailyPlanProjectionsFilter):
161
+ Defines the criteria used to filter the projection entries.
162
+
163
+ Returns:
164
+ Dict ([str, Any]):
165
+ A dictionary containing the JSON representation of the years.
166
+
167
+ Raises:
168
+ ValueError:
169
+ If required arguments are missing or invalid.
170
+
171
+ RuntimeError:
172
+ If the server version is incompatible or if an unexpected
173
+ response is returned.
174
+ """
175
+
176
+ return get_projection_dates_action(
177
+ context=self._ctx,
178
+ filter=filter
179
+ )