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,577 @@
|
|
|
1
|
+
from typing import List, Optional
|
|
2
|
+
|
|
3
|
+
from ....client.context import Context
|
|
4
|
+
from ....model.public.client.common.audit_log import AuditLog
|
|
5
|
+
|
|
6
|
+
from ...action.agent.delete_subagent_action import delete_subagent_action
|
|
7
|
+
from ...action.agent.delete_subagent_clusters_action import delete_subagent_clusters_action
|
|
8
|
+
from ...action.agent.disable_standalone_agents_action import disable_standalone_agents_action
|
|
9
|
+
from ...action.agent.disable_subagents_action import disable_subagents_action
|
|
10
|
+
from ...action.agent.enable_standalone_agents_action import enable_standalone_agents_action
|
|
11
|
+
from ...action.agent.enable_subagents_action import enable_subagents_action
|
|
12
|
+
from ...action.agent.reset_agents_action import reset_agents_action
|
|
13
|
+
from ...action.agent.reset_subagent_action import reset_subagent_action
|
|
14
|
+
from ...action.agent.switchover_agent_action import switchover_agent_action
|
|
15
|
+
from ...action.agent.remove_agent_action import remove_agent_action
|
|
16
|
+
from ...action.agent.revoke_cluster_agents_action import revoke_cluster_agents_action
|
|
17
|
+
from ...action.agent.revoke_standalone_agents_action import revoke_standalone_agents_action
|
|
18
|
+
from ...action.agent.revoke_subagent_clusters_action import revoke_subagent_clusters_action
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Operate:
|
|
22
|
+
def __init__(self, context: Context):
|
|
23
|
+
self._ctx = context
|
|
24
|
+
|
|
25
|
+
def delete_subagent(
|
|
26
|
+
self,
|
|
27
|
+
controller_id: str,
|
|
28
|
+
subagent_id: str,
|
|
29
|
+
audit_log: Optional[AuditLog] = None
|
|
30
|
+
) -> bool:
|
|
31
|
+
"""
|
|
32
|
+
Delete a subagent from the specified controller.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
controller_id (str):
|
|
36
|
+
The ID of the controller from which the subagent
|
|
37
|
+
should be deleted.
|
|
38
|
+
|
|
39
|
+
subagent_id (str):
|
|
40
|
+
The ID of the subagent to be deleted.
|
|
41
|
+
|
|
42
|
+
audit_log (Optional[AuditLog]):
|
|
43
|
+
Optional audit log information to create an audit entry
|
|
44
|
+
for this operation.
|
|
45
|
+
|
|
46
|
+
Returns:
|
|
47
|
+
bool:
|
|
48
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
49
|
+
|
|
50
|
+
Raises:
|
|
51
|
+
ValueError:
|
|
52
|
+
If required arguments are missing or invalid.
|
|
53
|
+
|
|
54
|
+
RuntimeError:
|
|
55
|
+
If the server version is incompatible or if an unexpected
|
|
56
|
+
response is returned.
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
return delete_subagent_action(
|
|
60
|
+
context=self._ctx,
|
|
61
|
+
controller_id=controller_id,
|
|
62
|
+
subagent_id=subagent_id,
|
|
63
|
+
audit_log=audit_log
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
def delete_subagent_clusters(
|
|
67
|
+
self,
|
|
68
|
+
controller_id: str,
|
|
69
|
+
subagent_cluster_ids: List[str],
|
|
70
|
+
audit_log: Optional[AuditLog] = None
|
|
71
|
+
) -> bool:
|
|
72
|
+
"""
|
|
73
|
+
Delete one or more subagent clusters from the specified controller.
|
|
74
|
+
|
|
75
|
+
Args:
|
|
76
|
+
controller_id (str):
|
|
77
|
+
The ID of the controller from which the subagent clusters
|
|
78
|
+
should be deleted.
|
|
79
|
+
|
|
80
|
+
subagent_cluster_ids (List[str]):
|
|
81
|
+
A list of subagent cluster IDs to be deleted.
|
|
82
|
+
|
|
83
|
+
audit_log (Optional[AuditLog]):
|
|
84
|
+
Optional audit log information to create an audit entry
|
|
85
|
+
for this operation.
|
|
86
|
+
|
|
87
|
+
Returns:
|
|
88
|
+
bool:
|
|
89
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
90
|
+
|
|
91
|
+
Raises:
|
|
92
|
+
ValueError:
|
|
93
|
+
If required arguments are missing or invalid.
|
|
94
|
+
|
|
95
|
+
RuntimeError:
|
|
96
|
+
If the server version is incompatible or if an unexpected
|
|
97
|
+
response is returned.
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
return delete_subagent_clusters_action(
|
|
101
|
+
context=self._ctx,
|
|
102
|
+
controller_id=controller_id,
|
|
103
|
+
subagent_cluster_ids=subagent_cluster_ids,
|
|
104
|
+
audit_log=audit_log
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
def disable_standalone_agents(
|
|
108
|
+
self,
|
|
109
|
+
controller_id: str,
|
|
110
|
+
agent_ids: List[str],
|
|
111
|
+
audit_log: Optional[AuditLog] = None
|
|
112
|
+
) -> bool:
|
|
113
|
+
"""
|
|
114
|
+
Disable standalone agents at the specified controller.
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
controller_id (str):
|
|
118
|
+
The ID of the controller on which the operation
|
|
119
|
+
will be executed.
|
|
120
|
+
|
|
121
|
+
agent_ids (List[str]):
|
|
122
|
+
A list of standalone agent IDs to be disabled.
|
|
123
|
+
|
|
124
|
+
audit_log (Optional[AuditLog]):
|
|
125
|
+
Optional audit log information to create an audit entry
|
|
126
|
+
for this operation.
|
|
127
|
+
|
|
128
|
+
Returns:
|
|
129
|
+
bool:
|
|
130
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
131
|
+
|
|
132
|
+
Raises:
|
|
133
|
+
ValueError:
|
|
134
|
+
If required arguments are missing or invalid.
|
|
135
|
+
|
|
136
|
+
RuntimeError:
|
|
137
|
+
If the server version is incompatible or if an unexpected
|
|
138
|
+
response is returned.
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
return disable_standalone_agents_action(
|
|
142
|
+
context=self._ctx,
|
|
143
|
+
controller_id=controller_id,
|
|
144
|
+
agent_ids=agent_ids,
|
|
145
|
+
audit_log=audit_log
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
def disable_subagents(
|
|
149
|
+
self,
|
|
150
|
+
controller_id: str,
|
|
151
|
+
subagent_ids: List[str],
|
|
152
|
+
audit_log: Optional[AuditLog] = None
|
|
153
|
+
) -> bool:
|
|
154
|
+
"""
|
|
155
|
+
Disable subagents at the specified controller.
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
controller_id (str):
|
|
159
|
+
The ID of the controller on which the operation
|
|
160
|
+
will be executed.
|
|
161
|
+
|
|
162
|
+
subagent_ids (List[str]):
|
|
163
|
+
A list of subagent IDs to be disabled.
|
|
164
|
+
|
|
165
|
+
audit_log (Optional[AuditLog]):
|
|
166
|
+
Optional audit log information to create an audit entry
|
|
167
|
+
for this operation.
|
|
168
|
+
|
|
169
|
+
Returns:
|
|
170
|
+
bool:
|
|
171
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
172
|
+
|
|
173
|
+
Raises:
|
|
174
|
+
ValueError:
|
|
175
|
+
If required arguments are missing or invalid.
|
|
176
|
+
|
|
177
|
+
RuntimeError:
|
|
178
|
+
If the server version is incompatible or if an unexpected
|
|
179
|
+
response is returned.
|
|
180
|
+
"""
|
|
181
|
+
|
|
182
|
+
return disable_subagents_action(
|
|
183
|
+
context=self._ctx,
|
|
184
|
+
controller_id=controller_id,
|
|
185
|
+
subagent_ids=subagent_ids,
|
|
186
|
+
audit_log=audit_log
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
def enable_standalone_agents(
|
|
190
|
+
self,
|
|
191
|
+
controller_id: str,
|
|
192
|
+
agent_ids: List[str],
|
|
193
|
+
audit_log: Optional[AuditLog] = None
|
|
194
|
+
) -> bool:
|
|
195
|
+
"""
|
|
196
|
+
Enable standalone agents at the specified controller.
|
|
197
|
+
|
|
198
|
+
Args:
|
|
199
|
+
controller_id (str):
|
|
200
|
+
The ID of the controller on which the operation
|
|
201
|
+
will be executed.
|
|
202
|
+
|
|
203
|
+
agent_ids (List[str]):
|
|
204
|
+
A list of standalone agent IDs to be enabled.
|
|
205
|
+
|
|
206
|
+
audit_log (Optional[AuditLog]):
|
|
207
|
+
Optional audit log information to create an audit entry
|
|
208
|
+
for this operation.
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
bool:
|
|
212
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
213
|
+
|
|
214
|
+
Raises:
|
|
215
|
+
ValueError:
|
|
216
|
+
If required arguments are missing or invalid.
|
|
217
|
+
|
|
218
|
+
RuntimeError:
|
|
219
|
+
If the server version is incompatible or if an unexpected
|
|
220
|
+
response is returned.
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
return enable_standalone_agents_action(
|
|
224
|
+
context=self._ctx,
|
|
225
|
+
controller_id=controller_id,
|
|
226
|
+
agent_ids=agent_ids,
|
|
227
|
+
audit_log=audit_log
|
|
228
|
+
)
|
|
229
|
+
|
|
230
|
+
def enable_subagents(
|
|
231
|
+
self,
|
|
232
|
+
controller_id: str,
|
|
233
|
+
subagent_ids: List[str],
|
|
234
|
+
audit_log: Optional[AuditLog] = None
|
|
235
|
+
) -> bool:
|
|
236
|
+
"""
|
|
237
|
+
Enable subagents at the specified controller.
|
|
238
|
+
|
|
239
|
+
Args:
|
|
240
|
+
controller_id (str):
|
|
241
|
+
The ID of the controller on which the operation
|
|
242
|
+
will be executed.
|
|
243
|
+
|
|
244
|
+
subagent_ids (List[str]):
|
|
245
|
+
A list of subagent IDs to be enabled.
|
|
246
|
+
|
|
247
|
+
audit_log (Optional[AuditLog]):
|
|
248
|
+
Optional audit log information to create an audit entry
|
|
249
|
+
for this operation.
|
|
250
|
+
|
|
251
|
+
Returns:
|
|
252
|
+
bool:
|
|
253
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
254
|
+
|
|
255
|
+
Raises:
|
|
256
|
+
ValueError:
|
|
257
|
+
If required arguments are missing or invalid.
|
|
258
|
+
|
|
259
|
+
RuntimeError:
|
|
260
|
+
If the server version is incompatible or if an unexpected
|
|
261
|
+
response is returned.
|
|
262
|
+
"""
|
|
263
|
+
|
|
264
|
+
return enable_subagents_action(
|
|
265
|
+
context=self._ctx,
|
|
266
|
+
controller_id=controller_id,
|
|
267
|
+
subagent_ids=subagent_ids,
|
|
268
|
+
audit_log=audit_log
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
def reset_agents(
|
|
272
|
+
self,
|
|
273
|
+
controller_id: str,
|
|
274
|
+
agent_ids: List[str],
|
|
275
|
+
force: bool = False,
|
|
276
|
+
audit_log: Optional[AuditLog] = None
|
|
277
|
+
) -> bool:
|
|
278
|
+
"""
|
|
279
|
+
Reset agents at the specified controller.
|
|
280
|
+
|
|
281
|
+
Any currently running orders continue execution.
|
|
282
|
+
Workflows and other deployable objects are withdrawn.
|
|
283
|
+
The agents drop their journals and restart.
|
|
284
|
+
Afterward, the controller attempts to reconnect to the agents,
|
|
285
|
+
redeploy workflows and related objects, and resubmit orders.
|
|
286
|
+
|
|
287
|
+
Args:
|
|
288
|
+
controller_id (str):
|
|
289
|
+
The ID of the controller on which the operation
|
|
290
|
+
will be executed.
|
|
291
|
+
|
|
292
|
+
agent_ids (List[str]):
|
|
293
|
+
A list of agent IDs to be reset.
|
|
294
|
+
|
|
295
|
+
force (bool):
|
|
296
|
+
If `True`, forces the reset.
|
|
297
|
+
|
|
298
|
+
audit_log (Optional[AuditLog]):
|
|
299
|
+
Optional audit log information to create an audit entry
|
|
300
|
+
for this operation.
|
|
301
|
+
|
|
302
|
+
Returns:
|
|
303
|
+
bool:
|
|
304
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
305
|
+
|
|
306
|
+
Raises:
|
|
307
|
+
ValueError:
|
|
308
|
+
If required arguments are missing or invalid.
|
|
309
|
+
|
|
310
|
+
RuntimeError:
|
|
311
|
+
If the server version is incompatible or if an unexpected
|
|
312
|
+
response is returned.
|
|
313
|
+
"""
|
|
314
|
+
|
|
315
|
+
return reset_agents_action(
|
|
316
|
+
context=self._ctx,
|
|
317
|
+
controller_id=controller_id,
|
|
318
|
+
agent_ids=agent_ids,
|
|
319
|
+
force=force,
|
|
320
|
+
audit_log=audit_log
|
|
321
|
+
)
|
|
322
|
+
|
|
323
|
+
def reset_subagent(
|
|
324
|
+
self,
|
|
325
|
+
controller_id: str,
|
|
326
|
+
subagent_id: str,
|
|
327
|
+
force: bool = False,
|
|
328
|
+
audit_log: Optional[AuditLog] = None
|
|
329
|
+
) -> bool:
|
|
330
|
+
"""
|
|
331
|
+
Reset a subagent at the specified controller.
|
|
332
|
+
|
|
333
|
+
Args:
|
|
334
|
+
controller_id (str):
|
|
335
|
+
The ID of the controller on which the operation
|
|
336
|
+
will be executed.
|
|
337
|
+
|
|
338
|
+
subagent_id (str):
|
|
339
|
+
The ID of the subagent to be reset.
|
|
340
|
+
|
|
341
|
+
force (bool):
|
|
342
|
+
If `True`, forces the reset even if validation checks
|
|
343
|
+
would normally prevent the operation. Defaults to `False`.
|
|
344
|
+
|
|
345
|
+
audit_log (Optional[AuditLog]):
|
|
346
|
+
Optional audit log information to create an audit entry
|
|
347
|
+
for this operation.
|
|
348
|
+
|
|
349
|
+
Returns:
|
|
350
|
+
bool:
|
|
351
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
352
|
+
|
|
353
|
+
Raises:
|
|
354
|
+
ValueError:
|
|
355
|
+
If required arguments are missing or invalid.
|
|
356
|
+
|
|
357
|
+
RuntimeError:
|
|
358
|
+
If the server version is incompatible or if an unexpected
|
|
359
|
+
response is returned.
|
|
360
|
+
"""
|
|
361
|
+
|
|
362
|
+
return reset_subagent_action(
|
|
363
|
+
context=self._ctx,
|
|
364
|
+
controller_id=controller_id,
|
|
365
|
+
subagent_id=subagent_id,
|
|
366
|
+
force=force,
|
|
367
|
+
audit_log=audit_log
|
|
368
|
+
)
|
|
369
|
+
|
|
370
|
+
def switchover_agent(
|
|
371
|
+
self,
|
|
372
|
+
controller_id: str,
|
|
373
|
+
agent_id: str,
|
|
374
|
+
audit_log: Optional[AuditLog] = None
|
|
375
|
+
) -> bool:
|
|
376
|
+
"""
|
|
377
|
+
Perform a switchover of the specified agent for a controller.
|
|
378
|
+
|
|
379
|
+
Args:
|
|
380
|
+
controller_id (str):
|
|
381
|
+
The ID of the controller on which the operation
|
|
382
|
+
will be executed.
|
|
383
|
+
|
|
384
|
+
agent_id (str):
|
|
385
|
+
The ID of the agent to be switched over.
|
|
386
|
+
|
|
387
|
+
audit_log (Optional[AuditLog]):
|
|
388
|
+
Optional audit log information to create an audit entry
|
|
389
|
+
for this operation.
|
|
390
|
+
|
|
391
|
+
Returns:
|
|
392
|
+
bool:
|
|
393
|
+
Returns `True` if the operation was successful, otherwise `False`.
|
|
394
|
+
|
|
395
|
+
Raises:
|
|
396
|
+
ValueError:
|
|
397
|
+
If required arguments are missing or invalid.
|
|
398
|
+
|
|
399
|
+
RuntimeError:
|
|
400
|
+
If the server version is incompatible or if an unexpected
|
|
401
|
+
response is returned.
|
|
402
|
+
"""
|
|
403
|
+
|
|
404
|
+
return switchover_agent_action(
|
|
405
|
+
context=self._ctx,
|
|
406
|
+
controller_id=controller_id,
|
|
407
|
+
agent_id=agent_id,
|
|
408
|
+
audit_log=audit_log
|
|
409
|
+
)
|
|
410
|
+
|
|
411
|
+
def remove_agent(
|
|
412
|
+
self,
|
|
413
|
+
controller_id: str,
|
|
414
|
+
agent_id: str,
|
|
415
|
+
force: bool,
|
|
416
|
+
audit_log: Optional[AuditLog] = None
|
|
417
|
+
) -> bool:
|
|
418
|
+
"""
|
|
419
|
+
Remove an agent from the specified controller.
|
|
420
|
+
|
|
421
|
+
Args:
|
|
422
|
+
controller_id (str):
|
|
423
|
+
The ID of the controller from which the agent should be removed.
|
|
424
|
+
|
|
425
|
+
agent_id (str):
|
|
426
|
+
The ID of the agent to be removed.
|
|
427
|
+
|
|
428
|
+
force (bool):
|
|
429
|
+
If `True`, forces the removal.
|
|
430
|
+
|
|
431
|
+
audit_log (Optional[AuditLog]):
|
|
432
|
+
Optional audit log information to create an audit entry
|
|
433
|
+
for this operation.
|
|
434
|
+
|
|
435
|
+
Returns:
|
|
436
|
+
bool:
|
|
437
|
+
Returns `True` if the operation was successful.
|
|
438
|
+
|
|
439
|
+
Raises:
|
|
440
|
+
ValueError:
|
|
441
|
+
If required arguments are missing or invalid.
|
|
442
|
+
|
|
443
|
+
RuntimeError:
|
|
444
|
+
If the server version is incompatible or if an unexpected
|
|
445
|
+
response is returned.
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
return remove_agent_action(
|
|
449
|
+
context=self._ctx,
|
|
450
|
+
controller_id=controller_id,
|
|
451
|
+
agent_id=agent_id,
|
|
452
|
+
force=force,
|
|
453
|
+
audit_log=audit_log
|
|
454
|
+
)
|
|
455
|
+
|
|
456
|
+
def revoke_cluster_agents(
|
|
457
|
+
self,
|
|
458
|
+
controller_id: str,
|
|
459
|
+
agent_ids: List[str],
|
|
460
|
+
audit_log: Optional[AuditLog] = None
|
|
461
|
+
) -> bool:
|
|
462
|
+
"""
|
|
463
|
+
Revoke cluster agents from the specified controller.
|
|
464
|
+
|
|
465
|
+
Args:
|
|
466
|
+
controller_id (str):
|
|
467
|
+
The ID of the controller from which the cluster agents
|
|
468
|
+
should be revoked.
|
|
469
|
+
|
|
470
|
+
agent_ids (List[str]):
|
|
471
|
+
A collection of cluster agent IDs to be revoked.
|
|
472
|
+
|
|
473
|
+
audit_log (Optional[AuditLog]):
|
|
474
|
+
Optional audit log information to create an audit entry
|
|
475
|
+
for this operation.
|
|
476
|
+
|
|
477
|
+
Returns:
|
|
478
|
+
bool:
|
|
479
|
+
Returns `True` if the operation was successful.
|
|
480
|
+
|
|
481
|
+
Raises:
|
|
482
|
+
ValueError:
|
|
483
|
+
If required arguments are missing or invalid.
|
|
484
|
+
|
|
485
|
+
RuntimeError:
|
|
486
|
+
If the server version is incompatible or if an unexpected
|
|
487
|
+
response is returned.
|
|
488
|
+
"""
|
|
489
|
+
|
|
490
|
+
return revoke_cluster_agents_action(
|
|
491
|
+
context=self._ctx,
|
|
492
|
+
controller_id=controller_id,
|
|
493
|
+
agent_ids=agent_ids,
|
|
494
|
+
audit_log=audit_log
|
|
495
|
+
)
|
|
496
|
+
|
|
497
|
+
def revoke_standalone_agents(
|
|
498
|
+
self,
|
|
499
|
+
controller_id: str,
|
|
500
|
+
agent_ids: List[str],
|
|
501
|
+
audit_log: Optional[AuditLog] = None
|
|
502
|
+
) -> bool:
|
|
503
|
+
"""
|
|
504
|
+
Revoke standalone agents from the specified controller.
|
|
505
|
+
|
|
506
|
+
Args:
|
|
507
|
+
controller_id (str):
|
|
508
|
+
The ID of the controller from which the standalone agents
|
|
509
|
+
should be revoked.
|
|
510
|
+
|
|
511
|
+
agent_ids (List[str]):
|
|
512
|
+
A collection of standalone agent IDs to be revoked.
|
|
513
|
+
|
|
514
|
+
audit_log (Optional[AuditLog]):
|
|
515
|
+
Optional audit log information to create an audit entry
|
|
516
|
+
for this operation.
|
|
517
|
+
|
|
518
|
+
Returns:
|
|
519
|
+
bool:
|
|
520
|
+
Returns `True` if the operation was successful.
|
|
521
|
+
|
|
522
|
+
Raises:
|
|
523
|
+
ValueError:
|
|
524
|
+
If required arguments are missing or invalid.
|
|
525
|
+
|
|
526
|
+
RuntimeError:
|
|
527
|
+
If the server version is incompatible or if an unexpected
|
|
528
|
+
response is returned.
|
|
529
|
+
"""
|
|
530
|
+
|
|
531
|
+
return revoke_standalone_agents_action(
|
|
532
|
+
context=self._ctx,
|
|
533
|
+
controller_id=controller_id,
|
|
534
|
+
agent_ids=agent_ids,
|
|
535
|
+
audit_log=audit_log
|
|
536
|
+
)
|
|
537
|
+
|
|
538
|
+
def revoke_subagent_clusters(
|
|
539
|
+
self,
|
|
540
|
+
controller_id: str,
|
|
541
|
+
subagent_cluster_ids: List[str],
|
|
542
|
+
audit_log: Optional[AuditLog] = None
|
|
543
|
+
) -> bool:
|
|
544
|
+
"""
|
|
545
|
+
Revoke subagent clusters from the specified controller.
|
|
546
|
+
|
|
547
|
+
Args:
|
|
548
|
+
controller_id (str):
|
|
549
|
+
The ID of the controller from which the subagent clusters
|
|
550
|
+
should be revoked.
|
|
551
|
+
|
|
552
|
+
subagent_cluster_ids (List[str]):
|
|
553
|
+
A collection of subagent cluster IDs to be revoked.
|
|
554
|
+
|
|
555
|
+
audit_log (Optional[AuditLog]):
|
|
556
|
+
Optional audit log information to create an audit entry
|
|
557
|
+
for this operation.
|
|
558
|
+
|
|
559
|
+
Returns:
|
|
560
|
+
bool:
|
|
561
|
+
Returns `True` if the operation was successful.
|
|
562
|
+
|
|
563
|
+
Raises:
|
|
564
|
+
ValueError:
|
|
565
|
+
If required arguments are missing or invalid.
|
|
566
|
+
|
|
567
|
+
RuntimeError:
|
|
568
|
+
If the server version is incompatible or if an unexpected
|
|
569
|
+
response is returned.
|
|
570
|
+
"""
|
|
571
|
+
|
|
572
|
+
return revoke_subagent_clusters_action(
|
|
573
|
+
context=self._ctx,
|
|
574
|
+
controller_id=controller_id,
|
|
575
|
+
subagent_cluster_ids=subagent_cluster_ids,
|
|
576
|
+
audit_log=audit_log
|
|
577
|
+
)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from functools import cached_property
|
|
2
|
+
|
|
3
|
+
from .manage import Manage
|
|
4
|
+
from .operate import Operate
|
|
5
|
+
|
|
6
|
+
from ....client.context import Context
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Controller:
|
|
10
|
+
def __init__(self, context: Context):
|
|
11
|
+
self._ctx = context
|
|
12
|
+
|
|
13
|
+
@cached_property
|
|
14
|
+
def manage(self) -> Manage:
|
|
15
|
+
return Manage(context=self._ctx)
|
|
16
|
+
|
|
17
|
+
@cached_property
|
|
18
|
+
def operate(self) -> Operate:
|
|
19
|
+
return Operate(context=self._ctx)
|