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.
- js7/__init__.py +8 -0
- js7/api/joc/http/v_2_8_2/agent/cluster/confirm_node_loss.py +36 -0
- js7/api/joc/http/v_2_8_2/agent/cluster/switchover.py +36 -0
- js7/api/joc/http/v_2_8_2/agent/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/agents.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/cluster/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/cluster/deploy.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/cluster/revoke.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/cluster/store.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/export.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/import.py +74 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/deploy.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/revoke.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/store.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/disable.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/enable.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/reset.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/cluster/subagents/store.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/deploy.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/disable.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/enable.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/revoke.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/inventory/store.py +36 -0
- js7/api/joc/http/v_2_8_2/agents/reset.py +36 -0
- js7/api/joc/http/v_2_8_2/authentication/auth.py +32 -0
- js7/api/joc/http/v_2_8_2/authentication/joc_cockpit_permissions.py +28 -0
- js7/api/joc/http/v_2_8_2/authentication/login.py +35 -0
- js7/api/joc/http/v_2_8_2/authentication/logout.py +28 -0
- js7/api/joc/http/v_2_8_2/configuration/configuration.py +36 -0
- js7/api/joc/http/v_2_8_2/configuration/save.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/abort.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/abort_and_restart.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/cluster/appoint_nodes.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/cluster/confirm_node_loss.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/cluster/switchover.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/components.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/controller.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/register.py +42 -0
- js7/api/joc/http/v_2_8_2/controller/restart.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/terminate.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/test.py +36 -0
- js7/api/joc/http/v_2_8_2/controller/unregister.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/orders/cancel.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/orders/copy.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/orders/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/orders/generate.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/orders/modify.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/orders/orders.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/orders/submit.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/projections/calendar.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/projections/dates.py +36 -0
- js7/api/joc/http/v_2_8_2/daily_plan/projections/recreate.py +28 -0
- js7/api/joc/http/v_2_8_2/daily_plan/submissions/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/account/change_password.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/account/permissions.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/account/rename.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/account/store.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/accounts/accounts.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/accounts/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/accounts/disable.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/accounts/enable.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/accounts/reset_password.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/blocked_account/store.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/blocked_accounts/blocked_accounts.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/blocked_accounts/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/folder/folder.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/folder/rename.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/folders/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/folders/folders.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/folders/store.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/identity_service/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/identity_service/identity_service.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/identity_service/rename.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/identity_service/store.py +42 -0
- js7/api/joc/http/v_2_8_2/iam/identity_services/identity_services.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/permission/permission.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/permission/rename.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/permissions/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/permissions/permissions.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/permissions/store.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/role/rename.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/role/role.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/role/store.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/roles/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/iam/roles/roles.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/changes/changes.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/dependencies.py +33 -0
- js7/api/joc/http/v_2_8_2/inventory/deployment/deploy.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/deployment/import_deploy.py +66 -0
- js7/api/joc/http/v_2_8_2/inventory/deployment/revoke.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/export/export.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/export/folder.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/import_objects.py +88 -0
- js7/api/joc/http/v_2_8_2/inventory/releasables/recall/folder.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/releasables/recall/recall.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/release.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/remove/folder.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/remove/remove.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/add.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/checkout.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/clone.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/commit.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/add.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/credentials.py +28 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/credentials/remove.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/pull.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/git/push.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/read.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/store.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/repository/update.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/revalidate/folder.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/store.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/trash/delete/delete.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/trash/delete/folder.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/trash/restore.py +36 -0
- js7/api/joc/http/v_2_8_2/inventory/validate.py +42 -0
- js7/api/joc/http/v_2_8_2/joc/cluster/restart.py +36 -0
- js7/api/joc/http/v_2_8_2/joc/cluster/run.py +36 -0
- js7/api/joc/http/v_2_8_2/joc/cluster/switch_member.py +36 -0
- js7/api/joc/http/v_2_8_2/joc/license.py +28 -0
- js7/api/joc/http/v_2_8_2/joc/proxies/restart.py +36 -0
- js7/api/joc/http/v_2_8_2/joc/version.py +28 -0
- js7/api/joc/http/v_2_8_2/joc/versions.py +36 -0
- js7/api/joc/http/v_2_8_2/orders/add.py +33 -0
- js7/api/joc/http/v_2_8_2/orders/cancel.py +33 -0
- js7/api/joc/http/v_2_8_2/orders/confirm.py +36 -0
- js7/api/joc/http/v_2_8_2/orders/continue.py +36 -0
- js7/api/joc/http/v_2_8_2/orders/history.py +36 -0
- js7/api/joc/http/v_2_8_2/orders/orders.py +36 -0
- js7/api/joc/http/v_2_8_2/orders/remove_when_terminated.py +33 -0
- js7/api/joc/http/v_2_8_2/orders/resume.py +36 -0
- js7/api/joc/http/v_2_8_2/orders/suspend.py +36 -0
- js7/api/joc/http/v_2_8_2/settings/settings.py +28 -0
- js7/api/joc/http/v_2_8_2/settings/store.py +36 -0
- js7/api/joc/http/v_2_8_2/tasks/history.py +36 -0
- js7/api/joc/http/v_2_8_2/workflow/transition.py +36 -0
- js7/api/joc/http/v_2_8_2/workflow/workflow.py +36 -0
- js7/api/joc/http/v_2_8_2/workflows/resume.py +36 -0
- js7/api/joc/http/v_2_8_2/workflows/skip.py +36 -0
- js7/api/joc/http/v_2_8_2/workflows/stop.py +36 -0
- js7/api/joc/http/v_2_8_2/workflows/suspend.py +36 -0
- js7/api/joc/http/v_2_8_2/workflows/unskip.py +36 -0
- js7/api/joc/http/v_2_8_2/workflows/unstop.py +36 -0
- js7/api/joc/http/v_2_8_2/workflows/workflows.py +36 -0
- js7/api/joc/interface/dispatcher.py +76 -0
- js7/api/joc/interface/interface.py +8 -0
- js7/api/joc/interface/resolver.py +75 -0
- js7/client/action/agent/confirm_node_loss_agent_action.py +75 -0
- js7/client/action/agent/delete_subagent_action.py +77 -0
- js7/client/action/agent/delete_subagent_clusters_action.py +75 -0
- js7/client/action/agent/deploy_cluster_agents_action.py +75 -0
- js7/client/action/agent/deploy_standalone_agents_action.py +75 -0
- js7/client/action/agent/deploy_subagent_clusters_action.py +75 -0
- js7/client/action/agent/disable_standalone_agents_action.py +75 -0
- js7/client/action/agent/disable_subagents_action.py +75 -0
- js7/client/action/agent/enable_standalone_agents_action.py +75 -0
- js7/client/action/agent/enable_subagents_action.py +75 -0
- js7/client/action/agent/export_agents_action.py +101 -0
- js7/client/action/agent/get_agents_status_action.py +55 -0
- js7/client/action/agent/import_agents_action.py +139 -0
- js7/client/action/agent/remove_agent_action.py +79 -0
- js7/client/action/agent/reset_agents_action.py +79 -0
- js7/client/action/agent/reset_subagent_action.py +79 -0
- js7/client/action/agent/revoke_cluster_agents_action.py +75 -0
- js7/client/action/agent/revoke_standalone_agents_action.py +75 -0
- js7/client/action/agent/revoke_subagent_clusters_action.py +75 -0
- js7/client/action/agent/store_cluster_agents_action.py +99 -0
- js7/client/action/agent/store_standalone_agents_action.py +87 -0
- js7/client/action/agent/store_subagent_clusters_action.py +83 -0
- js7/client/action/agent/store_subagents_action.py +97 -0
- js7/client/action/agent/switchover_agent_action.py +75 -0
- js7/client/action/controller/appoint_nodes_controller_action.py +67 -0
- js7/client/action/controller/cancel_and_restart_controller_action.py +72 -0
- js7/client/action/controller/cancel_controller_action.py +71 -0
- js7/client/action/controller/confirm_cluster_node_loss_action.py +68 -0
- js7/client/action/controller/get_controller_components_action.py +41 -0
- js7/client/action/controller/get_controller_status_action.py +72 -0
- js7/client/action/controller/register_controller_action.py +93 -0
- js7/client/action/controller/restart_controller_action.py +72 -0
- js7/client/action/controller/switchover_controller_cluster_action.py +67 -0
- js7/client/action/controller/terminate_controller_action.py +72 -0
- js7/client/action/controller/test_controller_instance_action.py +65 -0
- js7/client/action/controller/unregister_controller_action.py +68 -0
- js7/client/action/daily_plan/cancel_orders_action.py +59 -0
- js7/client/action/daily_plan/copy_orders_action.py +108 -0
- js7/client/action/daily_plan/create_projections_action.py +24 -0
- js7/client/action/daily_plan/delete_orders_action.py +80 -0
- js7/client/action/daily_plan/delete_submissions_action.py +83 -0
- js7/client/action/daily_plan/generate_orders_action.py +121 -0
- js7/client/action/daily_plan/get_calendar_projections_action.py +59 -0
- js7/client/action/daily_plan/get_orders_action.py +70 -0
- js7/client/action/daily_plan/get_projection_dates_action.py +59 -0
- js7/client/action/daily_plan/modify_orders_action.py +130 -0
- js7/client/action/daily_plan/submit_orders_action.py +79 -0
- js7/client/action/helper/decrypt_action.py +82 -0
- js7/client/action/helper/encrypt_action.py +87 -0
- js7/client/action/iam/block_account_action.py +71 -0
- js7/client/action/iam/change_account_password_action.py +96 -0
- js7/client/action/iam/disable_accounts_action.py +75 -0
- js7/client/action/iam/enable_accounts_action.py +75 -0
- js7/client/action/iam/get_account_permissions_action.py +75 -0
- js7/client/action/iam/get_accounts_action.py +76 -0
- js7/client/action/iam/get_blocked_accounts_action.py +76 -0
- js7/client/action/iam/get_folder_permissions_action.py +112 -0
- js7/client/action/iam/get_identity_service_settings_action.py +70 -0
- js7/client/action/iam/get_identity_services_action.py +102 -0
- js7/client/action/iam/get_permissions_action.py +113 -0
- js7/client/action/iam/get_roles_action.py +57 -0
- js7/client/action/iam/remove_accounts_action.py +75 -0
- js7/client/action/iam/remove_folder_permissions_action.py +91 -0
- js7/client/action/iam/remove_identity_service_action.py +67 -0
- js7/client/action/iam/remove_permissions_action.py +88 -0
- js7/client/action/iam/remove_roles_action.py +75 -0
- js7/client/action/iam/rename_account_action.py +83 -0
- js7/client/action/iam/rename_folder_permissions_action.py +100 -0
- js7/client/action/iam/rename_identity_service_action.py +75 -0
- js7/client/action/iam/rename_permission_action.py +103 -0
- js7/client/action/iam/rename_role_action.py +83 -0
- js7/client/action/iam/reset_account_passwords_action.py +75 -0
- js7/client/action/iam/set_folder_permissions_action.py +96 -0
- js7/client/action/iam/set_permissions_action.py +91 -0
- js7/client/action/iam/store_account_action.py +69 -0
- js7/client/action/iam/store_identity_service_action.py +75 -0
- js7/client/action/iam/store_identity_service_settings_action.py +74 -0
- js7/client/action/iam/store_role_action.py +79 -0
- js7/client/action/iam/unblock_accounts_action.py +67 -0
- js7/client/action/inventory/deploy_configurations_action.py +138 -0
- js7/client/action/inventory/export_configurations_action.py +203 -0
- js7/client/action/inventory/export_folders_action.py +160 -0
- js7/client/action/inventory/get_change_dependencies_action.py +161 -0
- js7/client/action/inventory/get_changes_action.py +59 -0
- js7/client/action/inventory/get_git_credentials_action.py +29 -0
- js7/client/action/inventory/git_add_action.py +72 -0
- js7/client/action/inventory/git_checkout_action.py +88 -0
- js7/client/action/inventory/git_clone_action.py +84 -0
- js7/client/action/inventory/git_commit_action.py +80 -0
- js7/client/action/inventory/git_pull_action.py +72 -0
- js7/client/action/inventory/git_push_action.py +76 -0
- js7/client/action/inventory/import_configurations_action.py +153 -0
- js7/client/action/inventory/import_deploy_configurations_action.py +188 -0
- js7/client/action/inventory/read_from_local_repository_action.py +67 -0
- js7/client/action/inventory/recall_folder_action.py +89 -0
- js7/client/action/inventory/recall_released_configuration_action.py +75 -0
- js7/client/action/inventory/release_configuartions_action.py +89 -0
- js7/client/action/inventory/remove_configurations_action.py +77 -0
- js7/client/action/inventory/remove_configurations_from_trash_action.py +80 -0
- js7/client/action/inventory/remove_folder_action.py +67 -0
- js7/client/action/inventory/remove_folder_from_trash_action.py +69 -0
- js7/client/action/inventory/remove_git_credentials_action.py +53 -0
- js7/client/action/inventory/remove_repository_configuration_action.py +84 -0
- js7/client/action/inventory/restore_configuration_from_trash_action.py +84 -0
- js7/client/action/inventory/revalidate_folder_action.py +46 -0
- js7/client/action/inventory/revoke_configurations_action.py +86 -0
- js7/client/action/inventory/store_configuration_action.py +79 -0
- js7/client/action/inventory/store_git_credentials_action.py +99 -0
- js7/client/action/inventory/store_repository_configuration_action.py +124 -0
- js7/client/action/inventory/update_repository_configuration_action.py +85 -0
- js7/client/action/inventory/validate_configuration_action.py +58 -0
- js7/client/action/joc/get_components_versions_action.py +57 -0
- js7/client/action/joc/get_license_info_action.py +22 -0
- js7/client/action/joc/get_settings_action.py +19 -0
- js7/client/action/joc/get_version_action.py +17 -0
- js7/client/action/joc/restart_proxies_action.py +50 -0
- js7/client/action/joc/restart_service_action.py +74 -0
- js7/client/action/joc/run_service_action.py +74 -0
- js7/client/action/joc/store_settings_action.py +62 -0
- js7/client/action/joc/switch_over_action.py +89 -0
- js7/client/action/order/add_orders_action.py +115 -0
- js7/client/action/order/cancel_orders_action.py +93 -0
- js7/client/action/order/confirm_orders_action.py +86 -0
- js7/client/action/order/continue_orders_action.py +86 -0
- js7/client/action/order/get_order_history_action.py +84 -0
- js7/client/action/order/get_orders_action.py +83 -0
- js7/client/action/order/remove_terminated_orders_action.py +86 -0
- js7/client/action/order/resume_orders_action.py +102 -0
- js7/client/action/order/suspend_orders_action.py +97 -0
- js7/client/action/task/get_task_history_info_action.py +88 -0
- js7/client/action/workflow/get_workflow_versions_action.py +131 -0
- js7/client/action/workflow/resume_workflows_action.py +76 -0
- js7/client/action/workflow/set_workflow_version_as_current_action.py +86 -0
- js7/client/action/workflow/skip_job_instructions_action.py +83 -0
- js7/client/action/workflow/stop_job_instructions_action.py +83 -0
- js7/client/action/workflow/suspend_workflows_action.py +76 -0
- js7/client/action/workflow/unskip_job_instructions_action.py +83 -0
- js7/client/action/workflow/unstop_job_instructions_action.py +79 -0
- js7/client/auth/auth_provider.py +109 -0
- js7/client/auth/login.py +34 -0
- js7/client/auth/logout.py +22 -0
- js7/client/client.py +250 -0
- js7/client/context.py +40 -0
- js7/client/feature/agent/agent.py +26 -0
- js7/client/feature/agent/deploy.py +134 -0
- js7/client/feature/agent/manage.py +363 -0
- js7/client/feature/agent/operate.py +577 -0
- js7/client/feature/controller/controller.py +19 -0
- js7/client/feature/controller/manage.py +214 -0
- js7/client/feature/controller/operate.py +274 -0
- js7/client/feature/daily_plan/daily_plan.py +14 -0
- js7/client/feature/daily_plan/manage.py +179 -0
- js7/client/feature/daily_plan/operate.py +354 -0
- js7/client/feature/iam/iam.py +14 -0
- js7/client/feature/iam/manage.py +1311 -0
- js7/client/feature/inventory/inventory.py +13 -0
- js7/client/feature/inventory/manage.py +943 -0
- js7/client/feature/inventory/manage_repository.py +533 -0
- js7/client/feature/joc/joc.py +18 -0
- js7/client/feature/joc/manage.py +102 -0
- js7/client/feature/joc/operate.py +185 -0
- js7/client/feature/order/manage.py +79 -0
- js7/client/feature/order/operate.py +346 -0
- js7/client/feature/order/order.py +18 -0
- js7/client/feature/task/task.py +54 -0
- js7/client/feature/workflow/manage.py +54 -0
- js7/client/feature/workflow/operate.py +336 -0
- js7/client/feature/workflow/workflow.py +19 -0
- js7/java/lib/3rd-party/bcpg-jdk15to18-1.78.1.jar +0 -0
- js7/java/lib/3rd-party/bcpkix-jdk15to18-1.78.1.jar +0 -0
- js7/java/lib/3rd-party/bcprov-jdk15to18-1.78.1.jar +0 -0
- js7/java/lib/3rd-party/bcutil-jdk15to18-1.78.1.jar +0 -0
- js7/java/lib/3rd-party/commons-io-2.15.1.jar +0 -0
- js7/java/lib/3rd-party/commons-lang3-3.14.0.jar +0 -0
- js7/java/lib/3rd-party/jackson-core-2.14.2.jar +0 -0
- js7/java/lib/3rd-party/jackson-databind-2.14.2.jar +0 -0
- js7/java/lib/3rd-party/jackson-dataformat-xml-2.14.2.jar +0 -0
- js7/java/lib/3rd-party/jakarta.annotation-api-2.1.1.jar +0 -0
- js7/java/lib/3rd-party/javax.activation-api-1.2.0.jar +0 -0
- js7/java/lib/3rd-party/jaxb-api-2.4.0-b180830.0359.jar +0 -0
- js7/java/lib/3rd-party/org.apache.logging.log4j.log4j-api-2.23.1.jar +0 -0
- js7/java/lib/3rd-party/org.apache.logging.log4j.log4j-core-2.23.1.jar +0 -0
- js7/java/lib/3rd-party/org.apache.logging.log4j.log4j-slf4j2-impl-2.23.1.jar +0 -0
- js7/java/lib/3rd-party/org.slf4j.slf4j-api-2.0.13.jar +0 -0
- js7/java/lib/3rd-party/stax2-api-4.2.1.jar +0 -0
- js7/java/lib/3rd-party/woodstox-core-6.5.0.jar +0 -0
- js7/java/lib/sos/sos-commons-encryption-2.7.3.jar +0 -0
- js7/java/lib/sos/sos-commons-exception-2.7.3.jar +0 -0
- js7/java/lib/sos/sos-commons-sign-2.7.3.jar +0 -0
- js7/java/lib/sos/sos-webservices-json-2.7.3.jar +0 -0
- js7/model/__init__.py +132 -0
- js7/model/configuration/auth_configuration.py +24 -0
- js7/model/configuration/client_configuration.py +6 -0
- js7/model/configuration/http_configuration.py +10 -0
- js7/model/error/http/joc_exceptions.py +151 -0
- js7/model/private/api/endpoint.py +30 -0
- js7/model/private/http/joc/joc_v_2_8_2.py +3666 -0
- js7/model/public/client/common/__init__.py +27 -0
- js7/model/public/client/common/accounts.py +21 -0
- js7/model/public/client/common/audit_log.py +8 -0
- js7/model/public/client/common/changes.py +18 -0
- js7/model/public/client/common/configurations.py +53 -0
- js7/model/public/client/common/cycle.py +12 -0
- js7/model/public/client/common/git_credentials.py +12 -0
- js7/model/public/client/common/identity_service.py +14 -0
- js7/model/public/client/common/schedule_time.py +50 -0
- js7/model/public/client/common/store_agents.py +96 -0
- js7/model/public/client/enum/__init__.py +19 -0
- js7/model/public/client/enum/object_types.py +48 -0
- js7/model/public/client/enum/operation_type.py +11 -0
- js7/model/public/client/enum/order_priority.py +9 -0
- js7/model/public/client/filter/__init__.py +35 -0
- js7/model/public/client/filter/daily_plan_order_filters.py +255 -0
- js7/model/public/client/filter/element/__init__.py +3 -0
- js7/model/public/client/filter/element/folder.py +6 -0
- js7/model/public/client/filter/element/workflow_id.py +10 -0
- js7/model/public/client/filter/export_filter.py +52 -0
- js7/model/public/client/filter/export_folders_filter.py +34 -0
- js7/model/public/client/filter/get_order_filter.py +59 -0
- js7/model/public/client/filter/order_history_filter.py +113 -0
- js7/model/public/client/filter/resume_order_filter.py +45 -0
- js7/model/public/client/filter/suspend_order_filter.py +44 -0
- js7/model/public/client/filter/tasks_filter.py +50 -0
- js7/model/public/client/input/__init__.py +2 -0
- js7/model/public/client/input/add_order.py +50 -0
- js7/service/http_service.py +206 -0
- js7/util/bytes_converter/bytes_to_archive_bytes.py +52 -0
- js7/util/bytes_converter/bytes_to_file.py +12 -0
- js7/util/bytes_converter/files_to_bytes.py +52 -0
- js7/util/bytes_converter/read_bytes_archive_files_to_bytes.py +69 -0
- js7/util/bytes_converter/sign_to_bytes.py +106 -0
- js7/util/check_matching_version.py +20 -0
- js7/util/detect_archive_type.py +37 -0
- js7/util/str_converter/order_id_to_order_name.py +5 -0
- js7/validator/http/joc_http_status_validator.py +155 -0
- js7_client_python-2.0.1.0.dist-info/LICENSE +674 -0
- js7_client_python-2.0.1.0.dist-info/METADATA +763 -0
- js7_client_python-2.0.1.0.dist-info/RECORD +389 -0
- js7_client_python-2.0.1.0.dist-info/WHEEL +5 -0
- js7_client_python-2.0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
from typing import Dict, Optional
|
|
2
|
+
|
|
3
|
+
from .......model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
4
|
+
from .......model.private.http.joc.joc_v_2_8_2 import OK
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def import_deploy(call: EndpointCall) -> OK:
|
|
8
|
+
if not call.access_token:
|
|
9
|
+
raise ValueError("'access_token' is required in function call.")
|
|
10
|
+
|
|
11
|
+
if not isinstance(call.payload, bytes):
|
|
12
|
+
raise ValueError("'payload' is not type of bytes")
|
|
13
|
+
|
|
14
|
+
if not call.options:
|
|
15
|
+
raise ValueError("'options' is required in function call.")
|
|
16
|
+
|
|
17
|
+
controller_id = call.options.get("controller_id")
|
|
18
|
+
signature_algorithm = call.options.get("signature_algorithm")
|
|
19
|
+
audit_log_ticket_link = call.options.get("audit_log_ticket_link")
|
|
20
|
+
audit_log_comment = call.options.get("audit_log_comment")
|
|
21
|
+
audit_log_time_spent = call.options.get("audit_log_time_spent")
|
|
22
|
+
|
|
23
|
+
if not controller_id:
|
|
24
|
+
raise ValueError("'controller_id' is required in options.")
|
|
25
|
+
|
|
26
|
+
if not signature_algorithm:
|
|
27
|
+
raise ValueError("'signature_algorithm' is required in options.")
|
|
28
|
+
|
|
29
|
+
form_fields: Dict[str, str] = {
|
|
30
|
+
"format": "ZIP",
|
|
31
|
+
"controllerId": controller_id,
|
|
32
|
+
"signatureAlgorithm": signature_algorithm
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if audit_log_ticket_link:
|
|
36
|
+
form_fields["ticketLink"] = audit_log_ticket_link
|
|
37
|
+
if audit_log_comment:
|
|
38
|
+
form_fields["comment"] = audit_log_comment
|
|
39
|
+
if audit_log_time_spent:
|
|
40
|
+
form_fields["timeSpent"] = audit_log_time_spent
|
|
41
|
+
|
|
42
|
+
with call.http_service as http:
|
|
43
|
+
resp = http.upload_file(
|
|
44
|
+
path="/joc/api/inventory/deployment/import_deploy",
|
|
45
|
+
access_token=call.access_token,
|
|
46
|
+
file=call.payload,
|
|
47
|
+
filename="import.zip",
|
|
48
|
+
form_fields=form_fields
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
return OK.model_validate(resp)
|
|
52
|
+
|
|
53
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
54
|
+
id="inventory/deployment/import_deploy",
|
|
55
|
+
function=import_deploy,
|
|
56
|
+
version=("2.6.5", "2.8.3"),
|
|
57
|
+
payload_model=bytes,
|
|
58
|
+
response_model=OK,
|
|
59
|
+
options={
|
|
60
|
+
"controller_id": str,
|
|
61
|
+
"signature_algorithm": str,
|
|
62
|
+
"audit_log_ticket_link": Optional[str],
|
|
63
|
+
"audit_log_comment": Optional[str],
|
|
64
|
+
"audit_log_time_spent": Optional[str]
|
|
65
|
+
}
|
|
66
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from .......model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from .......model.private.http.joc.joc_v_2_8_2 import OK, RevokeFilter
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def revoke(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, RevokeFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.RevokeFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/deployment/revoke",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/deployment/revoke",
|
|
31
|
+
function=revoke,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=RevokeFilter,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from .......model.private.http.joc.joc_v_2_8_2 import ExportFilter
|
|
2
|
+
from .......model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def export(call: EndpointCall) -> bytes:
|
|
6
|
+
if not call.payload:
|
|
7
|
+
raise ValueError("'payload' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not isinstance(call.payload, ExportFilter):
|
|
10
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.ExportFilter.")
|
|
11
|
+
|
|
12
|
+
if not call.access_token:
|
|
13
|
+
raise ValueError("'access_token' ist required in function call")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/export",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/octet-stream"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return resp
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/export",
|
|
31
|
+
function=export,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=ExportFilter,
|
|
34
|
+
response_model=bytes,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from .......model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
2
|
+
from .......model.private.http.joc.joc_v_2_8_2 import ExportFolderFilter
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def folder(call: EndpointCall) -> bytes:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' ist required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, ExportFolderFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.ExportFolderFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/export/folder",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/octet-stream"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return resp
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/export/folder",
|
|
31
|
+
function=folder,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=ExportFolderFilter,
|
|
34
|
+
response_model=bytes,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
from typing import Dict, Optional
|
|
2
|
+
|
|
3
|
+
from ......model.private.http.joc.joc_v_2_8_2 import OK
|
|
4
|
+
from ......model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def import_objects(call: EndpointCall) -> OK:
|
|
8
|
+
if not call.access_token:
|
|
9
|
+
raise ValueError("'access_token' is required in function call.")
|
|
10
|
+
|
|
11
|
+
if not call.options:
|
|
12
|
+
raise ValueError("'options' is required in function call.")
|
|
13
|
+
|
|
14
|
+
if not isinstance(call.payload, bytes):
|
|
15
|
+
raise ValueError("'payload' is not of type bytes.")
|
|
16
|
+
|
|
17
|
+
format = call.options.get("format")
|
|
18
|
+
overwrite = call.options.get("overwrite")
|
|
19
|
+
target_folder = call.options.get("target_folder")
|
|
20
|
+
suffix = call.options.get("suffix")
|
|
21
|
+
prefix = call.options.get("prefix")
|
|
22
|
+
overwrite_tags = call.options.get("overwrite_tags")
|
|
23
|
+
audit_log_ticket_link = call.options.get("audit_log_ticket_link")
|
|
24
|
+
audit_log_comment = call.options.get("audit_log_comment")
|
|
25
|
+
audit_log_time_spent = call.options.get("audit_log_time_spent")
|
|
26
|
+
|
|
27
|
+
if not format:
|
|
28
|
+
raise ValueError("'format' is required in options.")
|
|
29
|
+
|
|
30
|
+
if format not in ("ZIP", "TAR_GZ"):
|
|
31
|
+
raise ValueError("'format' must be 'ZIP' or 'TAR_GZ'.")
|
|
32
|
+
|
|
33
|
+
if overwrite is None:
|
|
34
|
+
raise ValueError("'overwrite' is required in options.")
|
|
35
|
+
|
|
36
|
+
form_fields: Dict[str, str] = {
|
|
37
|
+
"overwrite": str(overwrite).lower(),
|
|
38
|
+
"format": str(format)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if target_folder:
|
|
42
|
+
form_fields["targetFolder"] = target_folder
|
|
43
|
+
|
|
44
|
+
if suffix:
|
|
45
|
+
form_fields["suffix"] = suffix
|
|
46
|
+
|
|
47
|
+
if prefix:
|
|
48
|
+
form_fields["prefix"] = prefix
|
|
49
|
+
|
|
50
|
+
if overwrite_tags:
|
|
51
|
+
form_fields["overwriteTags"] = str(overwrite_tags).lower()
|
|
52
|
+
|
|
53
|
+
if audit_log_ticket_link:
|
|
54
|
+
form_fields["ticketLink"] = audit_log_ticket_link
|
|
55
|
+
if audit_log_comment:
|
|
56
|
+
form_fields["comment"] = audit_log_comment
|
|
57
|
+
if audit_log_time_spent:
|
|
58
|
+
form_fields["timeSpent"] = audit_log_time_spent
|
|
59
|
+
|
|
60
|
+
with call.http_service as http:
|
|
61
|
+
resp = http.upload_file(
|
|
62
|
+
path="/joc/api/inventory/import",
|
|
63
|
+
access_token=call.access_token,
|
|
64
|
+
file=call.payload,
|
|
65
|
+
filename="import.zip" if format == "ZIP" else "import.tar.gz",
|
|
66
|
+
form_fields=form_fields
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
return OK.model_validate_json(resp)
|
|
70
|
+
|
|
71
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
72
|
+
id="inventory/import",
|
|
73
|
+
function=import_objects,
|
|
74
|
+
version=("2.6.5", "2.8.3"),
|
|
75
|
+
payload_model=bytes,
|
|
76
|
+
response_model=OK,
|
|
77
|
+
options={
|
|
78
|
+
"format": str,
|
|
79
|
+
"overwrite": bool,
|
|
80
|
+
"target_folder": Optional[str],
|
|
81
|
+
"suffix": Optional[str],
|
|
82
|
+
"prefix": Optional[str],
|
|
83
|
+
"overwrite_tags": Optional[bool],
|
|
84
|
+
"audit_log_ticket_link": Optional[str],
|
|
85
|
+
"audit_log_comment": Optional[str],
|
|
86
|
+
"audit_log_time_spent": Optional[str]
|
|
87
|
+
}
|
|
88
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from ........model.private.http.joc.joc_v_2_8_2 import CommonRequestFolder, OK
|
|
2
|
+
from ........model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def folder(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, CommonRequestFolder):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.CommonRequestFolder.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/releasables/recall/folder",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/releasables/recall/folder",
|
|
31
|
+
function=folder,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=CommonRequestFolder,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from ........model.private.http.joc.joc_v_2_8_2 import ReleasableRecallFilter, OK
|
|
2
|
+
from ........model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def recall(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, ReleasableRecallFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.ReleasableRecallFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/releasables/recall",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/releasables/recall",
|
|
31
|
+
function=recall,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=ReleasableRecallFilter,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from ......model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from ......model.private.http.joc.joc_v_2_8_2 import ReleaseFilter, OK
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def release(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, ReleaseFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.ReleaseFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path=f"/joc/api/inventory/release",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/release",
|
|
31
|
+
function=release,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=ReleaseFilter,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from .......model.private.http.joc.joc_v_2_8_2 import RequestFolder, OK
|
|
2
|
+
from .......model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def folder(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, RequestFolder):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.RequestFolder.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/remove/folder",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/remove/folder",
|
|
31
|
+
function=folder,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=RequestFolder,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from .......model.private.http.joc.joc_v_2_8_2 import RequestFilters, OK
|
|
2
|
+
from .......model.private.api.endpoint import EndpointCall, EndpointDefinition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def remove(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, RequestFilters):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.RequestFilters.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/remove",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/remove",
|
|
31
|
+
function=remove,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=RequestFilters,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from .......model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from .......model.private.http.joc.joc_v_2_8_2 import DeleteFromFilter, OK
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def delete(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, DeleteFromFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.DeleteFromFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/repository/delete",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/repository/delete",
|
|
31
|
+
function=delete,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=DeleteFromFilter,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from ........model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from ........model.private.http.joc.joc_v_2_8_2 import CommonFilter, GitCommandResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def add(call: EndpointCall) -> GitCommandResponse:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, CommonFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.CommonFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/repository/git/add",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return GitCommandResponse.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/repository/git/add",
|
|
31
|
+
function=add,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=CommonFilter,
|
|
34
|
+
response_model=GitCommandResponse,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from ........model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from ........model.private.http.joc.joc_v_2_8_2 import CheckoutFilter, GitCommandResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def checkout(call: EndpointCall) -> GitCommandResponse:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, CheckoutFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.CheckoutFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/repository/git/checkout",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return GitCommandResponse.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/repository/git/checkout",
|
|
31
|
+
function=checkout,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=CheckoutFilter,
|
|
34
|
+
response_model=GitCommandResponse,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from ........model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from ........model.private.http.joc.joc_v_2_8_2 import CloneFilter, GitCommandResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def clone(call: EndpointCall) -> GitCommandResponse:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, CloneFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.CloneFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/repository/git/clone",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return GitCommandResponse.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/repository/git/clone",
|
|
31
|
+
function=clone,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=CloneFilter,
|
|
34
|
+
response_model=GitCommandResponse,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from ........model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from ........model.private.http.joc.joc_v_2_8_2 import CommitFilter, GitCommandResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def commit(call: EndpointCall) -> GitCommandResponse:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, CommitFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.CommitFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/repository/git/commit",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return GitCommandResponse.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/repository/git/commit",
|
|
31
|
+
function=commit,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=CommitFilter,
|
|
34
|
+
response_model=GitCommandResponse,
|
|
35
|
+
options=None
|
|
36
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from .........model.private.api.endpoint import EndpointDefinition, EndpointCall
|
|
2
|
+
from .........model.private.http.joc.joc_v_2_8_2 import AddCredentialsFilter, OK
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
def add(call: EndpointCall) -> OK:
|
|
6
|
+
if not call.access_token:
|
|
7
|
+
raise ValueError("'access_token' is required in function call.")
|
|
8
|
+
|
|
9
|
+
if not call.payload:
|
|
10
|
+
raise ValueError("'payload' is required in function call.")
|
|
11
|
+
|
|
12
|
+
if not isinstance(call.payload, AddCredentialsFilter):
|
|
13
|
+
raise ValueError("'payload' is not an instance of model.http.joc_v_2_8_2.AddCredentialsFilter.")
|
|
14
|
+
|
|
15
|
+
body = call.payload.model_dump_json(by_alias=True, exclude_none=True)
|
|
16
|
+
|
|
17
|
+
with call.http_service as http:
|
|
18
|
+
resp = http.post(
|
|
19
|
+
path="/joc/api/inventory/repository/git/credentials/add",
|
|
20
|
+
body=body,
|
|
21
|
+
headers={
|
|
22
|
+
"X-Access-Token": call.access_token,
|
|
23
|
+
"Accept": "application/json"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
return OK.model_validate_json(resp)
|
|
28
|
+
|
|
29
|
+
ENDPOINT_DEFINITION = EndpointDefinition(
|
|
30
|
+
id="inventory/repository/git/credentials/add",
|
|
31
|
+
function=add,
|
|
32
|
+
version=("2.6.5", "2.8.3"),
|
|
33
|
+
payload_model=AddCredentialsFilter,
|
|
34
|
+
response_model=OK,
|
|
35
|
+
options=None
|
|
36
|
+
)
|