attune-sdk 0.1.0__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.
- attune/__init__.py +60 -0
- attune/action.py +112 -0
- attune/api_client/__init__.py +8 -0
- attune/api_client/api/__init__.py +1 -0
- attune/api_client/api/actions/__init__.py +1 -0
- attune/api_client/api/actions/delete_action.py +159 -0
- attune/api_client/api/actions/get_action.py +159 -0
- attune/api_client/api/actions/get_queue_stats.py +159 -0
- attune/api_client/api/actions/list_actions.py +190 -0
- attune/api_client/api/actions/list_actions_by_pack.py +195 -0
- attune/api_client/api/actions/search_actions.py +241 -0
- attune/api_client/api/actions/update_action.py +184 -0
- attune/api_client/api/agent/__init__.py +1 -0
- attune/api_client/api/agent/agent_info.py +144 -0
- attune/api_client/api/agent/download_agent_binary.py +130 -0
- attune/api_client/api/audit/__init__.py +1 -0
- attune/api_client/api/audit/get_audit_event.py +171 -0
- attune/api_client/api/audit/get_audit_events_by_request.py +169 -0
- attune/api_client/api/audit/list_audit_events.py +503 -0
- attune/api_client/api/auth/__init__.py +1 -0
- attune/api_client/api/auth/auth_settings.py +136 -0
- attune/api_client/api/auth/change_password.py +180 -0
- attune/api_client/api/auth/get_current_user.py +144 -0
- attune/api_client/api/auth/ldap_login.py +176 -0
- attune/api_client/api/auth/login.py +176 -0
- attune/api_client/api/auth/refresh_token.py +176 -0
- attune/api_client/api/auth/register.py +176 -0
- attune/api_client/api/auth/token_login.py +176 -0
- attune/api_client/api/auth/update_current_user.py +184 -0
- attune/api_client/api/enforcements/__init__.py +1 -0
- attune/api_client/api/enforcements/get_enforcement.py +167 -0
- attune/api_client/api/enforcements/list_enforcements.py +308 -0
- attune/api_client/api/events/__init__.py +1 -0
- attune/api_client/api/events/get_event.py +167 -0
- attune/api_client/api/events/list_events.py +283 -0
- attune/api_client/api/executions/__init__.py +1 -0
- attune/api_client/api/executions/get_execution.py +159 -0
- attune/api_client/api/executions/get_execution_stats.py +132 -0
- attune/api_client/api/executions/list_executions.py +400 -0
- attune/api_client/api/executions/list_executions_by_enforcement.py +197 -0
- attune/api_client/api/executions/list_executions_by_status.py +201 -0
- attune/api_client/api/health/__init__.py +1 -0
- attune/api_client/api/health/health.py +136 -0
- attune/api_client/api/health/health_detailed.py +142 -0
- attune/api_client/api/health/liveness.py +89 -0
- attune/api_client/api/health/readiness.py +92 -0
- attune/api_client/api/inquiries/__init__.py +1 -0
- attune/api_client/api/inquiries/create_inquiry.py +176 -0
- attune/api_client/api/inquiries/delete_inquiry.py +167 -0
- attune/api_client/api/inquiries/get_inquiry.py +167 -0
- attune/api_client/api/inquiries/list_inquiries.py +256 -0
- attune/api_client/api/inquiries/list_inquiries_by_execution.py +203 -0
- attune/api_client/api/inquiries/list_inquiries_by_status.py +203 -0
- attune/api_client/api/inquiries/respond_to_inquiry.py +196 -0
- attune/api_client/api/inquiries/update_inquiry.py +192 -0
- attune/api_client/api/packs/__init__.py +1 -0
- attune/api_client/api/packs/create_pack.py +168 -0
- attune/api_client/api/packs/delete_pack.py +159 -0
- attune/api_client/api/packs/get_pack.py +159 -0
- attune/api_client/api/packs/get_pack_latest_test.py +105 -0
- attune/api_client/api/packs/get_pack_test_history.py +195 -0
- attune/api_client/api/packs/install_pack.py +171 -0
- attune/api_client/api/packs/list_packs.py +175 -0
- attune/api_client/api/packs/register_pack.py +171 -0
- attune/api_client/api/packs/sync_pack_workflows.py +163 -0
- attune/api_client/api/packs/test_pack.py +163 -0
- attune/api_client/api/packs/update_pack.py +184 -0
- attune/api_client/api/packs/validate_pack_workflows.py +165 -0
- attune/api_client/api/permissions/__init__.py +1 -0
- attune/api_client/api/permissions/create_identity.py +160 -0
- attune/api_client/api/permissions/create_identity_role_assignment.py +182 -0
- attune/api_client/api/permissions/create_integration_token.py +178 -0
- attune/api_client/api/permissions/create_permission_assignment.py +168 -0
- attune/api_client/api/permissions/create_permission_set_role_assignment.py +182 -0
- attune/api_client/api/permissions/delete_identity.py +155 -0
- attune/api_client/api/permissions/delete_identity_role_assignment.py +159 -0
- attune/api_client/api/permissions/delete_integration_token.py +171 -0
- attune/api_client/api/permissions/delete_permission_assignment.py +157 -0
- attune/api_client/api/permissions/delete_permission_set_role_assignment.py +159 -0
- attune/api_client/api/permissions/freeze_identity.py +155 -0
- attune/api_client/api/permissions/get_identity.py +155 -0
- attune/api_client/api/permissions/list_identities.py +173 -0
- attune/api_client/api/permissions/list_identity_permissions.py +162 -0
- attune/api_client/api/permissions/list_integration_tokens.py +157 -0
- attune/api_client/api/permissions/list_permission_sets.py +166 -0
- attune/api_client/api/permissions/revoke_integration_token.py +192 -0
- attune/api_client/api/permissions/unfreeze_identity.py +155 -0
- attune/api_client/api/permissions/update_identity.py +176 -0
- attune/api_client/api/permissions/update_permission_set.py +180 -0
- attune/api_client/api/queues/__init__.py +1 -0
- attune/api_client/api/queues/create_queue.py +172 -0
- attune/api_client/api/queues/delete_queue.py +159 -0
- attune/api_client/api/queues/delete_queue_item.py +177 -0
- attune/api_client/api/queues/enqueue_queue_item.py +195 -0
- attune/api_client/api/queues/get_queue.py +155 -0
- attune/api_client/api/queues/list_queues.py +233 -0
- attune/api_client/api/queues/list_queues_by_pack.py +257 -0
- attune/api_client/api/queues/update_queue.py +184 -0
- attune/api_client/api/queues/update_queue_item.py +204 -0
- attune/api_client/api/retention/__init__.py +1 -0
- attune/api_client/api/retention/get_retention_config.py +140 -0
- attune/api_client/api/retention/update_retention_config.py +176 -0
- attune/api_client/api/rules/__init__.py +1 -0
- attune/api_client/api/rules/create_rule.py +176 -0
- attune/api_client/api/rules/delete_rule.py +163 -0
- attune/api_client/api/rules/disable_rule.py +163 -0
- attune/api_client/api/rules/enable_rule.py +163 -0
- attune/api_client/api/rules/get_rule.py +163 -0
- attune/api_client/api/rules/list_enabled_rules.py +179 -0
- attune/api_client/api/rules/list_rules.py +179 -0
- attune/api_client/api/rules/list_rules_by_action.py +199 -0
- attune/api_client/api/rules/list_rules_by_pack.py +199 -0
- attune/api_client/api/rules/list_rules_by_trigger.py +199 -0
- attune/api_client/api/rules/update_rule.py +188 -0
- attune/api_client/api/runtimes/__init__.py +1 -0
- attune/api_client/api/runtimes/create_runtime.py +168 -0
- attune/api_client/api/runtimes/delete_runtime.py +155 -0
- attune/api_client/api/runtimes/get_runtime.py +155 -0
- attune/api_client/api/runtimes/list_runtimes.py +171 -0
- attune/api_client/api/runtimes/list_runtimes_by_pack.py +191 -0
- attune/api_client/api/runtimes/update_runtime.py +180 -0
- attune/api_client/api/secrets/__init__.py +1 -0
- attune/api_client/api/secrets/create_key.py +168 -0
- attune/api_client/api/secrets/delete_key.py +159 -0
- attune/api_client/api/secrets/get_key.py +159 -0
- attune/api_client/api/secrets/list_keys.py +218 -0
- attune/api_client/api/secrets/update_key.py +184 -0
- attune/api_client/api/sensors/__init__.py +1 -0
- attune/api_client/api/sensors/create_sensor.py +176 -0
- attune/api_client/api/sensors/delete_sensor.py +163 -0
- attune/api_client/api/sensors/disable_sensor.py +163 -0
- attune/api_client/api/sensors/enable_sensor.py +163 -0
- attune/api_client/api/sensors/get_sensor.py +163 -0
- attune/api_client/api/sensors/list_enabled_sensors.py +179 -0
- attune/api_client/api/sensors/list_sensors.py +179 -0
- attune/api_client/api/sensors/list_sensors_by_pack.py +199 -0
- attune/api_client/api/sensors/list_sensors_by_trigger.py +199 -0
- attune/api_client/api/sensors/update_sensor.py +188 -0
- attune/api_client/api/triggers/__init__.py +1 -0
- attune/api_client/api/triggers/create_trigger.py +176 -0
- attune/api_client/api/triggers/delete_trigger.py +163 -0
- attune/api_client/api/triggers/disable_trigger.py +163 -0
- attune/api_client/api/triggers/enable_trigger.py +163 -0
- attune/api_client/api/triggers/get_trigger.py +163 -0
- attune/api_client/api/triggers/list_enabled_triggers.py +179 -0
- attune/api_client/api/triggers/list_triggers.py +179 -0
- attune/api_client/api/triggers/list_triggers_by_pack.py +199 -0
- attune/api_client/api/triggers/update_trigger.py +188 -0
- attune/api_client/api/webhooks/__init__.py +1 -0
- attune/api_client/api/webhooks/disable_webhook.py +163 -0
- attune/api_client/api/webhooks/enable_webhook.py +163 -0
- attune/api_client/api/webhooks/receive_webhook.py +188 -0
- attune/api_client/api/webhooks/regenerate_webhook_key.py +167 -0
- attune/api_client/api/workers/__init__.py +1 -0
- attune/api_client/api/workers/cordon_worker.py +172 -0
- attune/api_client/api/workers/get_worker.py +155 -0
- attune/api_client/api/workers/list_workers.py +260 -0
- attune/api_client/api/workers/uncordon_worker.py +151 -0
- attune/api_client/api/workflows/__init__.py +1 -0
- attune/api_client/api/workflows/create_workflow.py +172 -0
- attune/api_client/api/workflows/delete_workflow.py +159 -0
- attune/api_client/api/workflows/get_workflow.py +159 -0
- attune/api_client/api/workflows/list_workflows.py +237 -0
- attune/api_client/api/workflows/list_workflows_by_pack.py +197 -0
- attune/api_client/api/workflows/update_workflow.py +184 -0
- attune/api_client/client.py +282 -0
- attune/api_client/errors.py +16 -0
- attune/api_client/models/__init__.py +1369 -0
- attune/api_client/models/action_response.py +536 -0
- attune/api_client/models/action_response_out_schema_type_0.py +47 -0
- attune/api_client/models/action_response_param_schema_type_0.py +47 -0
- attune/api_client/models/action_response_required_worker_runtimes.py +47 -0
- attune/api_client/models/action_response_worker_selector.py +47 -0
- attune/api_client/models/action_search_hit.py +140 -0
- attune/api_client/models/action_summary.py +449 -0
- attune/api_client/models/action_summary_required_worker_runtimes.py +47 -0
- attune/api_client/models/action_summary_worker_selector.py +47 -0
- attune/api_client/models/agent_arch_info.py +78 -0
- attune/api_client/models/agent_binary_info.py +84 -0
- attune/api_client/models/api_response_action_response.py +92 -0
- attune/api_client/models/api_response_action_response_data.py +556 -0
- attune/api_client/models/api_response_action_response_data_out_schema_type_0.py +47 -0
- attune/api_client/models/api_response_action_response_data_param_schema_type_0.py +47 -0
- attune/api_client/models/api_response_action_response_data_required_worker_runtimes.py +47 -0
- attune/api_client/models/api_response_action_response_data_worker_selector.py +47 -0
- attune/api_client/models/api_response_audit_event_response.py +94 -0
- attune/api_client/models/api_response_audit_event_response_data.py +459 -0
- attune/api_client/models/api_response_audit_event_response_data_correlation_chain_type_0.py +47 -0
- attune/api_client/models/api_response_audit_event_response_data_details_type_0.py +47 -0
- attune/api_client/models/api_response_auth_settings_response.py +94 -0
- attune/api_client/models/api_response_auth_settings_response_data.py +256 -0
- attune/api_client/models/api_response_current_user_response.py +94 -0
- attune/api_client/models/api_response_current_user_response_data.py +188 -0
- attune/api_client/models/api_response_enforcement_response.py +94 -0
- attune/api_client/models/api_response_enforcement_response_data.py +252 -0
- attune/api_client/models/api_response_enforcement_response_data_conditions.py +47 -0
- attune/api_client/models/api_response_enforcement_response_data_config_type_0.py +47 -0
- attune/api_client/models/api_response_enforcement_response_data_payload.py +47 -0
- attune/api_client/models/api_response_event_response.py +92 -0
- attune/api_client/models/api_response_event_response_data.py +239 -0
- attune/api_client/models/api_response_event_response_data_config_type_0.py +47 -0
- attune/api_client/models/api_response_event_response_data_payload.py +47 -0
- attune/api_client/models/api_response_execution_response.py +94 -0
- attune/api_client/models/api_response_execution_response_data.py +571 -0
- attune/api_client/models/api_response_execution_response_data_config.py +47 -0
- attune/api_client/models/api_response_execution_response_data_result.py +47 -0
- attune/api_client/models/api_response_execution_response_data_worker_affinity_type_0.py +47 -0
- attune/api_client/models/api_response_execution_response_data_worker_selector_type_0.py +47 -0
- attune/api_client/models/api_response_execution_response_data_worker_tolerations_type_0_item.py +47 -0
- attune/api_client/models/api_response_execution_response_data_workflow_task_type_0.py +47 -0
- attune/api_client/models/api_response_identity_response.py +94 -0
- attune/api_client/models/api_response_identity_response_data.py +153 -0
- attune/api_client/models/api_response_inquiry_response.py +94 -0
- attune/api_client/models/api_response_inquiry_response_data.py +271 -0
- attune/api_client/models/api_response_inquiry_response_data_response_schema_type_0.py +47 -0
- attune/api_client/models/api_response_inquiry_response_data_response_type_0.py +47 -0
- attune/api_client/models/api_response_key_response.py +90 -0
- attune/api_client/models/api_response_key_response_data.py +283 -0
- attune/api_client/models/api_response_pack_install_response.py +94 -0
- attune/api_client/models/api_response_pack_install_response_data.py +112 -0
- attune/api_client/models/api_response_pack_response.py +90 -0
- attune/api_client/models/api_response_pack_response_data.py +207 -0
- attune/api_client/models/api_response_pack_response_data_conf_schema.py +47 -0
- attune/api_client/models/api_response_pack_response_data_config.py +47 -0
- attune/api_client/models/api_response_pack_response_data_meta.py +47 -0
- attune/api_client/models/api_response_permission_assignment_response.py +94 -0
- attune/api_client/models/api_response_permission_assignment_response_data.py +95 -0
- attune/api_client/models/api_response_queue_stats_response.py +94 -0
- attune/api_client/models/api_response_queue_stats_response_data.py +155 -0
- attune/api_client/models/api_response_retention_config.py +94 -0
- attune/api_client/models/api_response_retention_config_data.py +120 -0
- attune/api_client/models/api_response_rule_response.py +90 -0
- attune/api_client/models/api_response_rule_response_data.py +315 -0
- attune/api_client/models/api_response_rule_response_data_action_params.py +47 -0
- attune/api_client/models/api_response_rule_response_data_conditions.py +47 -0
- attune/api_client/models/api_response_rule_response_data_trigger_params.py +47 -0
- attune/api_client/models/api_response_runtime_response.py +94 -0
- attune/api_client/models/api_response_runtime_response_data.py +235 -0
- attune/api_client/models/api_response_runtime_response_data_distributions.py +47 -0
- attune/api_client/models/api_response_runtime_response_data_execution_config.py +47 -0
- attune/api_client/models/api_response_runtime_response_data_installation_type_0.py +47 -0
- attune/api_client/models/api_response_sensor_response.py +92 -0
- attune/api_client/models/api_response_sensor_response_data.py +395 -0
- attune/api_client/models/api_response_sensor_response_data_param_schema_type_0.py +47 -0
- attune/api_client/models/api_response_sensor_response_data_worker_selector.py +47 -0
- attune/api_client/models/api_response_string.py +84 -0
- attune/api_client/models/api_response_token_response.py +92 -0
- attune/api_client/models/api_response_token_response_data.py +126 -0
- attune/api_client/models/api_response_trigger_response.py +94 -0
- attune/api_client/models/api_response_trigger_response_data.py +327 -0
- attune/api_client/models/api_response_trigger_response_data_out_schema_type_0.py +47 -0
- attune/api_client/models/api_response_trigger_response_data_param_schema_type_0.py +47 -0
- attune/api_client/models/api_response_vec_audit_event_response.py +104 -0
- attune/api_client/models/api_response_vec_audit_event_response_data_item.py +464 -0
- attune/api_client/models/api_response_vec_audit_event_response_data_item_correlation_chain_type_0.py +47 -0
- attune/api_client/models/api_response_vec_audit_event_response_data_item_details_type_0.py +47 -0
- attune/api_client/models/api_response_webhook_receiver_response.py +94 -0
- attune/api_client/models/api_response_webhook_receiver_response_data.py +88 -0
- attune/api_client/models/api_response_work_queue_item_response.py +94 -0
- attune/api_client/models/api_response_work_queue_item_response_data.py +417 -0
- attune/api_client/models/api_response_work_queue_item_response_data_ack_summary_type_0.py +47 -0
- attune/api_client/models/api_response_work_queue_item_response_data_last_error_type_0.py +47 -0
- attune/api_client/models/api_response_work_queue_item_response_data_metadata.py +47 -0
- attune/api_client/models/api_response_work_queue_item_response_data_payload.py +47 -0
- attune/api_client/models/api_response_work_queue_response.py +94 -0
- attune/api_client/models/api_response_work_queue_response_data.py +376 -0
- attune/api_client/models/api_response_work_queue_response_data_action_params.py +47 -0
- attune/api_client/models/api_response_work_queue_response_data_config.py +47 -0
- attune/api_client/models/api_response_work_queue_response_data_item_schema.py +47 -0
- attune/api_client/models/api_response_workflow_response.py +94 -0
- attune/api_client/models/api_response_workflow_response_data.py +251 -0
- attune/api_client/models/api_response_workflow_response_data_definition.py +47 -0
- attune/api_client/models/api_response_workflow_response_data_out_schema_type_0.py +47 -0
- attune/api_client/models/api_response_workflow_response_data_param_schema_type_0.py +47 -0
- attune/api_client/models/audit_category.py +14 -0
- attune/api_client/models/audit_event_response.py +447 -0
- attune/api_client/models/audit_event_response_correlation_chain_type_0.py +47 -0
- attune/api_client/models/audit_event_response_details_type_0.py +47 -0
- attune/api_client/models/audit_event_summary.py +269 -0
- attune/api_client/models/audit_outcome.py +10 -0
- attune/api_client/models/auth_settings_response_200.py +90 -0
- attune/api_client/models/auth_settings_response_200_data.py +256 -0
- attune/api_client/models/change_password_request.py +70 -0
- attune/api_client/models/change_password_response_200.py +92 -0
- attune/api_client/models/change_password_response_200_data.py +70 -0
- attune/api_client/models/cordon_worker_request.py +73 -0
- attune/api_client/models/create_action_response_201.py +90 -0
- attune/api_client/models/create_action_response_201_data.py +556 -0
- attune/api_client/models/create_action_response_201_data_out_schema_type_0.py +47 -0
- attune/api_client/models/create_action_response_201_data_param_schema_type_0.py +47 -0
- attune/api_client/models/create_action_response_201_data_required_worker_runtimes.py +47 -0
- attune/api_client/models/create_action_response_201_data_worker_selector.py +47 -0
- attune/api_client/models/create_identity_request.py +112 -0
- attune/api_client/models/create_identity_response_201.py +92 -0
- attune/api_client/models/create_identity_response_201_data.py +153 -0
- attune/api_client/models/create_identity_role_assignment_request.py +61 -0
- attune/api_client/models/create_identity_role_assignment_response_201.py +94 -0
- attune/api_client/models/create_identity_role_assignment_response_201_data.py +111 -0
- attune/api_client/models/create_inquiry_request.py +146 -0
- attune/api_client/models/create_inquiry_request_response_schema.py +47 -0
- attune/api_client/models/create_integration_token_request.py +115 -0
- attune/api_client/models/create_integration_token_response.py +77 -0
- attune/api_client/models/create_integration_token_response_201.py +94 -0
- attune/api_client/models/create_integration_token_response_201_data.py +77 -0
- attune/api_client/models/create_key_request.py +258 -0
- attune/api_client/models/create_key_response_201.py +90 -0
- attune/api_client/models/create_key_response_201_data.py +283 -0
- attune/api_client/models/create_pack_request.py +203 -0
- attune/api_client/models/create_pack_request_conf_schema.py +47 -0
- attune/api_client/models/create_pack_request_config.py +47 -0
- attune/api_client/models/create_pack_request_meta.py +47 -0
- attune/api_client/models/create_pack_response_201.py +90 -0
- attune/api_client/models/create_pack_response_201_data.py +207 -0
- attune/api_client/models/create_pack_response_201_data_conf_schema.py +47 -0
- attune/api_client/models/create_pack_response_201_data_config.py +47 -0
- attune/api_client/models/create_pack_response_201_data_meta.py +47 -0
- attune/api_client/models/create_permission_assignment_request.py +103 -0
- attune/api_client/models/create_permission_assignment_response_201.py +94 -0
- attune/api_client/models/create_permission_assignment_response_201_data.py +95 -0
- attune/api_client/models/create_permission_set_role_assignment_request.py +61 -0
- attune/api_client/models/create_permission_set_role_assignment_response_201.py +94 -0
- attune/api_client/models/create_permission_set_role_assignment_response_201_data.py +111 -0
- attune/api_client/models/create_rule_request.py +225 -0
- attune/api_client/models/create_rule_request_action_params.py +47 -0
- attune/api_client/models/create_rule_request_conditions.py +47 -0
- attune/api_client/models/create_rule_request_trigger_params.py +47 -0
- attune/api_client/models/create_runtime_request.py +208 -0
- attune/api_client/models/create_runtime_request_distributions.py +47 -0
- attune/api_client/models/create_runtime_request_execution_config.py +47 -0
- attune/api_client/models/create_runtime_request_installation_type_0.py +47 -0
- attune/api_client/models/create_sensor_request.py +407 -0
- attune/api_client/models/create_sensor_request_config_type_0.py +47 -0
- attune/api_client/models/create_sensor_request_param_schema_type_0.py +47 -0
- attune/api_client/models/create_sensor_request_worker_selector.py +47 -0
- attune/api_client/models/create_trigger_request.py +212 -0
- attune/api_client/models/create_trigger_request_out_schema_type_0.py +47 -0
- attune/api_client/models/create_trigger_request_param_schema_type_0.py +47 -0
- attune/api_client/models/create_work_queue_request.py +293 -0
- attune/api_client/models/create_work_queue_request_action_params.py +47 -0
- attune/api_client/models/create_work_queue_request_config.py +47 -0
- attune/api_client/models/create_work_queue_request_item_schema.py +47 -0
- attune/api_client/models/create_workflow_request.py +189 -0
- attune/api_client/models/create_workflow_request_definition.py +47 -0
- attune/api_client/models/create_workflow_request_out_schema.py +47 -0
- attune/api_client/models/create_workflow_request_param_schema.py +47 -0
- attune/api_client/models/create_workflow_response_201.py +92 -0
- attune/api_client/models/create_workflow_response_201_data.py +249 -0
- attune/api_client/models/create_workflow_response_201_data_definition.py +47 -0
- attune/api_client/models/create_workflow_response_201_data_out_schema_type_0.py +47 -0
- attune/api_client/models/create_workflow_response_201_data_param_schema_type_0.py +47 -0
- attune/api_client/models/current_user_response.py +188 -0
- attune/api_client/models/delete_identity_response_200.py +92 -0
- attune/api_client/models/delete_identity_response_200_data.py +70 -0
- attune/api_client/models/delete_identity_role_assignment_response_200.py +95 -0
- attune/api_client/models/delete_identity_role_assignment_response_200_data.py +70 -0
- attune/api_client/models/delete_integration_token_response_200.py +94 -0
- attune/api_client/models/delete_integration_token_response_200_data.py +70 -0
- attune/api_client/models/delete_permission_assignment_response_200.py +95 -0
- attune/api_client/models/delete_permission_assignment_response_200_data.py +70 -0
- attune/api_client/models/delete_permission_set_role_assignment_response_200.py +95 -0
- attune/api_client/models/delete_permission_set_role_assignment_response_200_data.py +70 -0
- attune/api_client/models/effective_permission_response.py +70 -0
- attune/api_client/models/enforcement_condition.py +9 -0
- attune/api_client/models/enforcement_response.py +240 -0
- attune/api_client/models/enforcement_response_conditions.py +47 -0
- attune/api_client/models/enforcement_response_config_type_0.py +47 -0
- attune/api_client/models/enforcement_response_payload.py +47 -0
- attune/api_client/models/enforcement_status.py +10 -0
- attune/api_client/models/enforcement_summary.py +148 -0
- attune/api_client/models/enqueue_work_queue_item_request.py +135 -0
- attune/api_client/models/enqueue_work_queue_item_request_metadata.py +47 -0
- attune/api_client/models/enqueue_work_queue_item_request_payload.py +47 -0
- attune/api_client/models/event_response.py +227 -0
- attune/api_client/models/event_response_config_type_0.py +47 -0
- attune/api_client/models/event_response_payload.py +47 -0
- attune/api_client/models/event_summary.py +191 -0
- attune/api_client/models/execution_response.py +540 -0
- attune/api_client/models/execution_response_config.py +47 -0
- attune/api_client/models/execution_response_result.py +47 -0
- attune/api_client/models/execution_response_worker_affinity_type_0.py +47 -0
- attune/api_client/models/execution_response_worker_selector_type_0.py +47 -0
- attune/api_client/models/execution_response_worker_tolerations_type_0_item.py +47 -0
- attune/api_client/models/execution_response_workflow_task_type_0.py +47 -0
- attune/api_client/models/execution_status.py +17 -0
- attune/api_client/models/execution_summary.py +280 -0
- attune/api_client/models/execution_summary_workflow_task_type_0.py +47 -0
- attune/api_client/models/freeze_identity_response_200.py +92 -0
- attune/api_client/models/freeze_identity_response_200_data.py +70 -0
- attune/api_client/models/get_action_response_200.py +90 -0
- attune/api_client/models/get_action_response_200_data.py +554 -0
- attune/api_client/models/get_action_response_200_data_out_schema_type_0.py +47 -0
- attune/api_client/models/get_action_response_200_data_param_schema_type_0.py +47 -0
- attune/api_client/models/get_action_response_200_data_required_worker_runtimes.py +47 -0
- attune/api_client/models/get_action_response_200_data_worker_selector.py +47 -0
- attune/api_client/models/get_current_user_response_200.py +94 -0
- attune/api_client/models/get_current_user_response_200_data.py +188 -0
- attune/api_client/models/get_execution_response_200.py +90 -0
- attune/api_client/models/get_execution_response_200_data.py +567 -0
- attune/api_client/models/get_execution_response_200_data_config.py +47 -0
- attune/api_client/models/get_execution_response_200_data_result.py +47 -0
- attune/api_client/models/get_execution_response_200_data_worker_affinity_type_0.py +47 -0
- attune/api_client/models/get_execution_response_200_data_worker_selector_type_0.py +47 -0
- attune/api_client/models/get_execution_response_200_data_worker_tolerations_type_0_item.py +47 -0
- attune/api_client/models/get_execution_response_200_data_workflow_task_type_0.py +47 -0
- attune/api_client/models/get_execution_stats_response_200.py +47 -0
- attune/api_client/models/get_identity_response_200.py +90 -0
- attune/api_client/models/get_identity_response_200_data.py +153 -0
- attune/api_client/models/get_key_response_200.py +90 -0
- attune/api_client/models/get_key_response_200_data.py +283 -0
- attune/api_client/models/get_pack_response_200.py +90 -0
- attune/api_client/models/get_pack_response_200_data.py +199 -0
- attune/api_client/models/get_pack_response_200_data_conf_schema.py +47 -0
- attune/api_client/models/get_pack_response_200_data_config.py +47 -0
- attune/api_client/models/get_pack_response_200_data_meta.py +47 -0
- attune/api_client/models/get_pack_test_history_response_200.py +92 -0
- attune/api_client/models/get_pack_test_history_response_200_items_item.py +160 -0
- attune/api_client/models/get_queue_stats_response_200.py +92 -0
- attune/api_client/models/get_queue_stats_response_200_data.py +155 -0
- attune/api_client/models/get_workflow_response_200.py +90 -0
- attune/api_client/models/get_workflow_response_200_data.py +247 -0
- attune/api_client/models/get_workflow_response_200_data_definition.py +47 -0
- attune/api_client/models/get_workflow_response_200_data_out_schema_type_0.py +47 -0
- attune/api_client/models/get_workflow_response_200_data_param_schema_type_0.py +47 -0
- attune/api_client/models/health_detailed_response_503.py +47 -0
- attune/api_client/models/health_response.py +78 -0
- attune/api_client/models/health_response_200.py +47 -0
- attune/api_client/models/identity_response.py +153 -0
- attune/api_client/models/identity_role_assignment_response.py +111 -0
- attune/api_client/models/identity_summary.py +115 -0
- attune/api_client/models/inquiry_respond_request.py +70 -0
- attune/api_client/models/inquiry_respond_request_response.py +47 -0
- attune/api_client/models/inquiry_response.py +263 -0
- attune/api_client/models/inquiry_response_response_schema_type_0.py +47 -0
- attune/api_client/models/inquiry_response_response_type_0.py +47 -0
- attune/api_client/models/inquiry_status.py +11 -0
- attune/api_client/models/inquiry_summary.py +157 -0
- attune/api_client/models/install_pack_request.py +102 -0
- attune/api_client/models/integration_token_response.py +311 -0
- attune/api_client/models/key_response.py +283 -0
- attune/api_client/models/key_summary.py +127 -0
- attune/api_client/models/label_expression_operator.py +11 -0
- attune/api_client/models/ldap_login_request.py +70 -0
- attune/api_client/models/ldap_login_response_200.py +90 -0
- attune/api_client/models/ldap_login_response_200_data.py +126 -0
- attune/api_client/models/list_integration_tokens_response_200.py +104 -0
- attune/api_client/models/list_integration_tokens_response_200_data_item.py +311 -0
- attune/api_client/models/log_retention_limit_patch_type_0.py +71 -0
- attune/api_client/models/log_retention_limit_patch_type_0_op.py +8 -0
- attune/api_client/models/log_retention_limit_patch_type_1.py +63 -0
- attune/api_client/models/log_retention_limit_patch_type_1_op.py +8 -0
- attune/api_client/models/log_retention_policy_patch_type_0.py +72 -0
- attune/api_client/models/log_retention_policy_patch_type_0_op.py +8 -0
- attune/api_client/models/log_retention_policy_patch_type_1.py +63 -0
- attune/api_client/models/log_retention_policy_patch_type_1_op.py +8 -0
- attune/api_client/models/login_request.py +70 -0
- attune/api_client/models/login_response_200.py +90 -0
- attune/api_client/models/login_response_200_data.py +126 -0
- attune/api_client/models/nullable_json_patch_type_1.py +63 -0
- attune/api_client/models/nullable_json_patch_type_1_op.py +8 -0
- attune/api_client/models/nullable_string_patch_type_1.py +63 -0
- attune/api_client/models/nullable_string_patch_type_1_op.py +8 -0
- attune/api_client/models/owner_type.py +12 -0
- attune/api_client/models/pack_description_patch_type_0.py +71 -0
- attune/api_client/models/pack_description_patch_type_0_op.py +8 -0
- attune/api_client/models/pack_description_patch_type_1.py +63 -0
- attune/api_client/models/pack_description_patch_type_1_op.py +8 -0
- attune/api_client/models/pack_install_response.py +112 -0
- attune/api_client/models/pack_response.py +193 -0
- attune/api_client/models/pack_response_conf_schema.py +47 -0
- attune/api_client/models/pack_response_config.py +47 -0
- attune/api_client/models/pack_response_meta.py +47 -0
- attune/api_client/models/pack_summary.py +143 -0
- attune/api_client/models/pack_test_execution.py +160 -0
- attune/api_client/models/pack_test_result.py +158 -0
- attune/api_client/models/pack_test_summary.py +160 -0
- attune/api_client/models/pack_workflow_sync_response.py +108 -0
- attune/api_client/models/pack_workflow_validation_response.py +96 -0
- attune/api_client/models/pack_workflow_validation_response_errors.py +56 -0
- attune/api_client/models/paginated_response_action_search_hit.py +92 -0
- attune/api_client/models/paginated_response_action_search_hit_items_item.py +140 -0
- attune/api_client/models/paginated_response_action_summary.py +92 -0
- attune/api_client/models/paginated_response_action_summary_items_item.py +466 -0
- attune/api_client/models/paginated_response_action_summary_items_item_required_worker_runtimes.py +47 -0
- attune/api_client/models/paginated_response_action_summary_items_item_worker_selector.py +47 -0
- attune/api_client/models/paginated_response_audit_event_summary.py +92 -0
- attune/api_client/models/paginated_response_audit_event_summary_items_item.py +269 -0
- attune/api_client/models/paginated_response_enforcement_summary.py +92 -0
- attune/api_client/models/paginated_response_enforcement_summary_items_item.py +148 -0
- attune/api_client/models/paginated_response_event_summary.py +92 -0
- attune/api_client/models/paginated_response_event_summary_items_item.py +191 -0
- attune/api_client/models/paginated_response_execution_summary.py +92 -0
- attune/api_client/models/paginated_response_execution_summary_items_item.py +292 -0
- attune/api_client/models/paginated_response_execution_summary_items_item_workflow_task_type_0.py +47 -0
- attune/api_client/models/paginated_response_identity_summary.py +92 -0
- attune/api_client/models/paginated_response_identity_summary_items_item.py +115 -0
- attune/api_client/models/paginated_response_inquiry_summary.py +92 -0
- attune/api_client/models/paginated_response_inquiry_summary_items_item.py +157 -0
- attune/api_client/models/paginated_response_key_summary.py +90 -0
- attune/api_client/models/paginated_response_key_summary_items_item.py +127 -0
- attune/api_client/models/paginated_response_pack_summary.py +92 -0
- attune/api_client/models/paginated_response_pack_summary_items_item.py +143 -0
- attune/api_client/models/paginated_response_pack_test_summary.py +92 -0
- attune/api_client/models/paginated_response_pack_test_summary_items_item.py +160 -0
- attune/api_client/models/paginated_response_rule_summary.py +92 -0
- attune/api_client/models/paginated_response_rule_summary_items_item.py +223 -0
- attune/api_client/models/paginated_response_rule_summary_items_item_action_params.py +47 -0
- attune/api_client/models/paginated_response_rule_summary_items_item_trigger_params.py +47 -0
- attune/api_client/models/paginated_response_runtime_summary.py +92 -0
- attune/api_client/models/paginated_response_runtime_summary_items_item.py +138 -0
- attune/api_client/models/paginated_response_sensor_summary.py +92 -0
- attune/api_client/models/paginated_response_sensor_summary_items_item.py +261 -0
- attune/api_client/models/paginated_response_trigger_summary.py +92 -0
- attune/api_client/models/paginated_response_trigger_summary_items_item.py +154 -0
- attune/api_client/models/paginated_response_work_queue_item_response.py +92 -0
- attune/api_client/models/paginated_response_work_queue_item_response_items_item.py +423 -0
- attune/api_client/models/paginated_response_work_queue_item_response_items_item_ack_summary_type_0.py +49 -0
- attune/api_client/models/paginated_response_work_queue_item_response_items_item_last_error_type_0.py +47 -0
- attune/api_client/models/paginated_response_work_queue_item_response_items_item_metadata.py +47 -0
- attune/api_client/models/paginated_response_work_queue_item_response_items_item_payload.py +47 -0
- attune/api_client/models/paginated_response_work_queue_summary.py +92 -0
- attune/api_client/models/paginated_response_work_queue_summary_items_item.py +169 -0
- attune/api_client/models/paginated_response_worker_summary.py +92 -0
- attune/api_client/models/paginated_response_worker_summary_items_item.py +359 -0
- attune/api_client/models/paginated_response_workflow_summary.py +92 -0
- attune/api_client/models/paginated_response_workflow_summary_items_item.py +143 -0
- attune/api_client/models/pagination_meta.py +128 -0
- attune/api_client/models/permission_assignment_response.py +95 -0
- attune/api_client/models/permission_set_role_assignment_response.py +111 -0
- attune/api_client/models/permission_set_summary.py +165 -0
- attune/api_client/models/preferred_worker_selector_term.py +78 -0
- attune/api_client/models/provider_profile_response.py +216 -0
- attune/api_client/models/queue_stats_response.py +155 -0
- attune/api_client/models/refresh_token_request.py +62 -0
- attune/api_client/models/refresh_token_response_200.py +90 -0
- attune/api_client/models/refresh_token_response_200_data.py +126 -0
- attune/api_client/models/register_pack_request.py +82 -0
- attune/api_client/models/register_request.py +92 -0
- attune/api_client/models/register_response_200.py +90 -0
- attune/api_client/models/register_response_200_data.py +126 -0
- attune/api_client/models/resolved_work_queue_dispatch_tuning_response.py +93 -0
- attune/api_client/models/retention_config.py +120 -0
- attune/api_client/models/retention_policy_type.py +11 -0
- attune/api_client/models/retention_target_config.py +82 -0
- attune/api_client/models/retention_targets_config.py +339 -0
- attune/api_client/models/revoke_integration_token_request.py +73 -0
- attune/api_client/models/revoke_integration_token_response_200.py +94 -0
- attune/api_client/models/revoke_integration_token_response_200_data.py +311 -0
- attune/api_client/models/rule_response.py +296 -0
- attune/api_client/models/rule_response_action_params.py +47 -0
- attune/api_client/models/rule_response_conditions.py +47 -0
- attune/api_client/models/rule_response_trigger_params.py +47 -0
- attune/api_client/models/rule_summary.py +209 -0
- attune/api_client/models/rule_summary_action_params.py +47 -0
- attune/api_client/models/rule_summary_trigger_params.py +47 -0
- attune/api_client/models/runtime_response.py +225 -0
- attune/api_client/models/runtime_response_distributions.py +47 -0
- attune/api_client/models/runtime_response_execution_config.py +47 -0
- attune/api_client/models/runtime_response_installation_type_0.py +47 -0
- attune/api_client/models/runtime_summary.py +138 -0
- attune/api_client/models/runtime_version_constraint_patch_type_0.py +73 -0
- attune/api_client/models/runtime_version_constraint_patch_type_0_op.py +8 -0
- attune/api_client/models/runtime_version_constraint_patch_type_1.py +65 -0
- attune/api_client/models/runtime_version_constraint_patch_type_1_op.py +8 -0
- attune/api_client/models/sensor_response.py +389 -0
- attune/api_client/models/sensor_response_param_schema_type_0.py +47 -0
- attune/api_client/models/sensor_response_worker_selector.py +47 -0
- attune/api_client/models/sensor_summary.py +261 -0
- attune/api_client/models/set_json.py +71 -0
- attune/api_client/models/set_json_op.py +8 -0
- attune/api_client/models/set_string.py +71 -0
- attune/api_client/models/set_string_op.py +8 -0
- attune/api_client/models/success_response.py +70 -0
- attune/api_client/models/sync_pack_workflows_response_200.py +94 -0
- attune/api_client/models/sync_pack_workflows_response_200_data.py +108 -0
- attune/api_client/models/taint_effect.py +9 -0
- attune/api_client/models/test_case_result.py +141 -0
- attune/api_client/models/test_pack_response_200.py +90 -0
- attune/api_client/models/test_pack_response_200_data.py +158 -0
- attune/api_client/models/test_status.py +11 -0
- attune/api_client/models/test_suite_result.py +132 -0
- attune/api_client/models/token_login_request.py +63 -0
- attune/api_client/models/token_login_response_200.py +90 -0
- attune/api_client/models/token_login_response_200_data.py +126 -0
- attune/api_client/models/token_response.py +126 -0
- attune/api_client/models/toleration_operator.py +9 -0
- attune/api_client/models/trigger_response.py +317 -0
- attune/api_client/models/trigger_response_out_schema_type_0.py +47 -0
- attune/api_client/models/trigger_response_param_schema_type_0.py +47 -0
- attune/api_client/models/trigger_string_patch_type_0.py +71 -0
- attune/api_client/models/trigger_string_patch_type_0_op.py +8 -0
- attune/api_client/models/trigger_string_patch_type_1.py +63 -0
- attune/api_client/models/trigger_string_patch_type_1_op.py +8 -0
- attune/api_client/models/trigger_summary.py +154 -0
- attune/api_client/models/unfreeze_identity_response_200.py +94 -0
- attune/api_client/models/unfreeze_identity_response_200_data.py +70 -0
- attune/api_client/models/update_action_request.py +806 -0
- attune/api_client/models/update_action_request_out_schema_type_0.py +47 -0
- attune/api_client/models/update_action_request_param_schema_type_0.py +47 -0
- attune/api_client/models/update_action_request_required_worker_runtimes_type_0.py +47 -0
- attune/api_client/models/update_action_request_worker_selector_type_0.py +47 -0
- attune/api_client/models/update_action_response_200.py +90 -0
- attune/api_client/models/update_action_response_200_data.py +556 -0
- attune/api_client/models/update_action_response_200_data_out_schema_type_0.py +47 -0
- attune/api_client/models/update_action_response_200_data_param_schema_type_0.py +47 -0
- attune/api_client/models/update_action_response_200_data_required_worker_runtimes.py +47 -0
- attune/api_client/models/update_action_response_200_data_worker_selector.py +47 -0
- attune/api_client/models/update_current_user_request.py +75 -0
- attune/api_client/models/update_current_user_response_200.py +94 -0
- attune/api_client/models/update_current_user_response_200_data.py +188 -0
- attune/api_client/models/update_identity_request.py +133 -0
- attune/api_client/models/update_identity_response_200.py +92 -0
- attune/api_client/models/update_identity_response_200_data.py +153 -0
- attune/api_client/models/update_inquiry_request.py +147 -0
- attune/api_client/models/update_inquiry_request_response_type_0.py +47 -0
- attune/api_client/models/update_key_request.py +104 -0
- attune/api_client/models/update_key_response_200.py +90 -0
- attune/api_client/models/update_key_response_200_data.py +283 -0
- attune/api_client/models/update_pack_request.py +367 -0
- attune/api_client/models/update_pack_request_conf_schema_type_0.py +47 -0
- attune/api_client/models/update_pack_request_config_type_0.py +47 -0
- attune/api_client/models/update_pack_request_meta_type_0.py +47 -0
- attune/api_client/models/update_pack_response_200.py +90 -0
- attune/api_client/models/update_pack_response_200_data.py +207 -0
- attune/api_client/models/update_pack_response_200_data_conf_schema.py +47 -0
- attune/api_client/models/update_pack_response_200_data_config.py +47 -0
- attune/api_client/models/update_pack_response_200_data_meta.py +47 -0
- attune/api_client/models/update_permission_set_request.py +103 -0
- attune/api_client/models/update_permission_set_response_200.py +94 -0
- attune/api_client/models/update_permission_set_response_200_data.py +165 -0
- attune/api_client/models/update_rule_request.py +310 -0
- attune/api_client/models/update_rule_request_action_params_type_0.py +47 -0
- attune/api_client/models/update_rule_request_conditions_type_0.py +47 -0
- attune/api_client/models/update_rule_request_trigger_params_type_0.py +47 -0
- attune/api_client/models/update_runtime_request.py +261 -0
- attune/api_client/models/update_runtime_request_distributions_type_0.py +47 -0
- attune/api_client/models/update_runtime_request_execution_config_type_0.py +47 -0
- attune/api_client/models/update_sensor_request.py +554 -0
- attune/api_client/models/update_sensor_request_param_schema_type_0.py +47 -0
- attune/api_client/models/update_sensor_request_worker_selector_type_0.py +47 -0
- attune/api_client/models/update_trigger_request.py +233 -0
- attune/api_client/models/update_trigger_request_out_schema_type_0.py +47 -0
- attune/api_client/models/update_trigger_request_param_schema_type_0.py +47 -0
- attune/api_client/models/update_work_queue_item_request.py +207 -0
- attune/api_client/models/update_work_queue_item_request_metadata_type_0.py +47 -0
- attune/api_client/models/update_work_queue_item_request_payload_type_0.py +47 -0
- attune/api_client/models/update_work_queue_request.py +495 -0
- attune/api_client/models/update_work_queue_request_action_params_type_0.py +47 -0
- attune/api_client/models/update_work_queue_request_config_type_0.py +47 -0
- attune/api_client/models/update_work_queue_request_item_schema_type_0.py +47 -0
- attune/api_client/models/update_workflow_request.py +265 -0
- attune/api_client/models/update_workflow_request_definition_type_0.py +47 -0
- attune/api_client/models/update_workflow_request_out_schema_type_0.py +47 -0
- attune/api_client/models/update_workflow_request_param_schema_type_0.py +47 -0
- attune/api_client/models/update_workflow_response_200.py +92 -0
- attune/api_client/models/update_workflow_response_200_data.py +249 -0
- attune/api_client/models/update_workflow_response_200_data_definition.py +47 -0
- attune/api_client/models/update_workflow_response_200_data_out_schema_type_0.py +47 -0
- attune/api_client/models/update_workflow_response_200_data_param_schema_type_0.py +47 -0
- attune/api_client/models/user_info.py +92 -0
- attune/api_client/models/validate_pack_workflows_response_200.py +94 -0
- attune/api_client/models/validate_pack_workflows_response_200_data.py +96 -0
- attune/api_client/models/validate_pack_workflows_response_200_data_errors.py +56 -0
- attune/api_client/models/webhook_receiver_request.py +124 -0
- attune/api_client/models/webhook_receiver_response.py +88 -0
- attune/api_client/models/work_queue_batch_mode.py +9 -0
- attune/api_client/models/work_queue_item_response.py +401 -0
- attune/api_client/models/work_queue_item_response_ack_summary_type_0.py +47 -0
- attune/api_client/models/work_queue_item_response_last_error_type_0.py +47 -0
- attune/api_client/models/work_queue_item_response_metadata.py +47 -0
- attune/api_client/models/work_queue_item_response_payload.py +47 -0
- attune/api_client/models/work_queue_item_status.py +14 -0
- attune/api_client/models/work_queue_response.py +362 -0
- attune/api_client/models/work_queue_response_action_params.py +47 -0
- attune/api_client/models/work_queue_response_config.py +47 -0
- attune/api_client/models/work_queue_response_item_schema.py +47 -0
- attune/api_client/models/work_queue_summary.py +169 -0
- attune/api_client/models/work_queue_update_strategy.py +10 -0
- attune/api_client/models/worker_affinity.py +127 -0
- attune/api_client/models/worker_health_state.py +13 -0
- attune/api_client/models/worker_label_expression.py +83 -0
- attune/api_client/models/worker_load_snapshot.py +253 -0
- attune/api_client/models/worker_role.py +9 -0
- attune/api_client/models/worker_runtime_support.py +69 -0
- attune/api_client/models/worker_selector_term.py +101 -0
- attune/api_client/models/worker_selector_term_match_labels.py +47 -0
- attune/api_client/models/worker_status.py +11 -0
- attune/api_client/models/worker_summary.py +359 -0
- attune/api_client/models/worker_toleration.py +131 -0
- attune/api_client/models/worker_type.py +10 -0
- attune/api_client/models/workflow_response.py +237 -0
- attune/api_client/models/workflow_response_definition.py +47 -0
- attune/api_client/models/workflow_response_out_schema_type_0.py +47 -0
- attune/api_client/models/workflow_response_param_schema_type_0.py +47 -0
- attune/api_client/models/workflow_summary.py +143 -0
- attune/api_client/models/workflow_sync_result.py +86 -0
- attune/api_client/types.py +54 -0
- attune/client.py +109 -0
- attune/context.py +211 -0
- attune/sensor.py +995 -0
- attune_sdk-0.1.0.dist-info/METADATA +283 -0
- attune_sdk-0.1.0.dist-info/RECORD +703 -0
- attune_sdk-0.1.0.dist-info/WHEEL +4 -0
- attune_sdk-0.1.0.dist-info/licenses/LICENSE +190 -0
attune/__init__.py
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Attune Python SDK — helpers for building actions and sensors.
|
|
3
|
+
|
|
4
|
+
Quick start for actions::
|
|
5
|
+
|
|
6
|
+
import attune
|
|
7
|
+
|
|
8
|
+
def main(name: str, count: int = 1):
|
|
9
|
+
return {"greeting": f"Hello, {name}!" * count}
|
|
10
|
+
|
|
11
|
+
attune.run_action(main)
|
|
12
|
+
|
|
13
|
+
Quick start for sensors::
|
|
14
|
+
|
|
15
|
+
import attune
|
|
16
|
+
|
|
17
|
+
class MySensor(attune.PollingSensor):
|
|
18
|
+
def setup(self):
|
|
19
|
+
self.interval = 5.0
|
|
20
|
+
|
|
21
|
+
def poll(self, rule):
|
|
22
|
+
self.emit({"value": 42}, rule=rule)
|
|
23
|
+
|
|
24
|
+
attune.run_sensor(MySensor)
|
|
25
|
+
|
|
26
|
+
Access execution context anywhere::
|
|
27
|
+
|
|
28
|
+
import attune
|
|
29
|
+
print(attune.context.execution_id) # action context
|
|
30
|
+
print(attune.sensor_context.sensor_ref) # sensor context
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
from attune.action import run_action
|
|
34
|
+
from attune.api_client import AuthenticatedClient, Client
|
|
35
|
+
from attune.client import AttuneClient
|
|
36
|
+
from attune.context import (
|
|
37
|
+
ActionContext,
|
|
38
|
+
SensorContext,
|
|
39
|
+
action_context as context,
|
|
40
|
+
sensor_context,
|
|
41
|
+
)
|
|
42
|
+
from attune.sensor import AsyncPollingSensor, PollingSensor, RuleState, Sensor, run_sensor
|
|
43
|
+
|
|
44
|
+
__all__ = [
|
|
45
|
+
"run_action",
|
|
46
|
+
"run_sensor",
|
|
47
|
+
"context",
|
|
48
|
+
"sensor_context",
|
|
49
|
+
"ActionContext",
|
|
50
|
+
"AsyncPollingSensor",
|
|
51
|
+
"AttuneClient",
|
|
52
|
+
"AuthenticatedClient",
|
|
53
|
+
"Client",
|
|
54
|
+
"PollingSensor",
|
|
55
|
+
"RuleState",
|
|
56
|
+
"Sensor",
|
|
57
|
+
"SensorContext",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
__version__ = "0.1.0"
|
attune/action.py
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Action runner — handles stdin parameter parsing, output formatting, and error handling.
|
|
3
|
+
|
|
4
|
+
Usage::
|
|
5
|
+
|
|
6
|
+
import attune
|
|
7
|
+
|
|
8
|
+
def main(name: str, count: int = 1):
|
|
9
|
+
return {"message": f"Hello, {name}!" * count}
|
|
10
|
+
|
|
11
|
+
attune.run_action(main)
|
|
12
|
+
|
|
13
|
+
The entrypoint function declares whatever parameters it needs — they are
|
|
14
|
+
passed as keyword arguments from the parsed stdin JSON. Parameters not
|
|
15
|
+
declared by the function are silently ignored (via ``**kwargs`` or filtering).
|
|
16
|
+
|
|
17
|
+
Exit codes:
|
|
18
|
+
- 0: success (result is written to stdout as JSON)
|
|
19
|
+
- 1: failure (error details written to stdout as JSON with ``success: false``)
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
from __future__ import annotations
|
|
23
|
+
|
|
24
|
+
import json
|
|
25
|
+
import sys
|
|
26
|
+
import traceback
|
|
27
|
+
from typing import Any, Callable
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def read_params() -> dict[str, Any]:
|
|
31
|
+
"""Read action parameters from stdin (JSON format).
|
|
32
|
+
|
|
33
|
+
The Attune worker delivers parameters as a single JSON object on stdin.
|
|
34
|
+
"""
|
|
35
|
+
raw = sys.stdin.read().strip()
|
|
36
|
+
if not raw:
|
|
37
|
+
return {}
|
|
38
|
+
return json.loads(raw)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def emit_result(payload: Any) -> None:
|
|
42
|
+
"""Write a JSON result to stdout."""
|
|
43
|
+
print(json.dumps(payload, default=str))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def emit_error(message: str, *, details: Any | None = None) -> None:
|
|
47
|
+
"""Write a JSON error to stdout."""
|
|
48
|
+
payload: dict[str, Any] = {"success": False, "error": message}
|
|
49
|
+
if details is not None:
|
|
50
|
+
payload["details"] = details
|
|
51
|
+
print(json.dumps(payload, default=str))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def run_action(
|
|
55
|
+
entrypoint: Callable[..., Any],
|
|
56
|
+
*,
|
|
57
|
+
catch_exceptions: bool = True,
|
|
58
|
+
) -> None:
|
|
59
|
+
"""Run an action entrypoint with automatic parameter parsing and output handling.
|
|
60
|
+
|
|
61
|
+
The ``entrypoint`` is called with ``**params`` — each key in the JSON
|
|
62
|
+
input becomes a keyword argument. Authors write functions that declare
|
|
63
|
+
exactly the parameters they need::
|
|
64
|
+
|
|
65
|
+
def main(url: str, method: str = "GET", timeout: int = 30):
|
|
66
|
+
...
|
|
67
|
+
|
|
68
|
+
If the function accepts ``**kwargs``, all parameters are passed through.
|
|
69
|
+
Otherwise, only parameters matching declared argument names are passed
|
|
70
|
+
(extras are silently dropped).
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
entrypoint: The action function to execute.
|
|
74
|
+
catch_exceptions: If True (default), uncaught exceptions are caught and
|
|
75
|
+
reported as JSON errors on stdout with exit code 1. Set to False for
|
|
76
|
+
development/debugging to let exceptions propagate.
|
|
77
|
+
"""
|
|
78
|
+
try:
|
|
79
|
+
params = read_params()
|
|
80
|
+
|
|
81
|
+
# Filter params to only those the function accepts, unless it has **kwargs
|
|
82
|
+
import inspect
|
|
83
|
+
|
|
84
|
+
sig = inspect.signature(entrypoint)
|
|
85
|
+
has_var_keyword = any(
|
|
86
|
+
p.kind == p.VAR_KEYWORD for p in sig.parameters.values()
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
if has_var_keyword:
|
|
90
|
+
call_params = params
|
|
91
|
+
else:
|
|
92
|
+
accepted = set(sig.parameters.keys())
|
|
93
|
+
call_params = {k: v for k, v in params.items() if k in accepted}
|
|
94
|
+
|
|
95
|
+
result = entrypoint(**call_params)
|
|
96
|
+
|
|
97
|
+
# Emit result
|
|
98
|
+
if result is None:
|
|
99
|
+
result = {}
|
|
100
|
+
emit_result(result)
|
|
101
|
+
sys.exit(0)
|
|
102
|
+
|
|
103
|
+
except SystemExit:
|
|
104
|
+
raise
|
|
105
|
+
except Exception as exc:
|
|
106
|
+
if not catch_exceptions:
|
|
107
|
+
raise
|
|
108
|
+
emit_error(
|
|
109
|
+
str(exc),
|
|
110
|
+
details=traceback.format_exc() if sys.stderr.isatty() else None,
|
|
111
|
+
)
|
|
112
|
+
sys.exit(1)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains methods for accessing the API"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, cast
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.success_response import SuccessResponse
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
ref: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
|
|
17
|
+
_kwargs: dict[str, Any] = {
|
|
18
|
+
"method": "delete",
|
|
19
|
+
"url": "/api/v1/actions/{ref}".format(
|
|
20
|
+
ref=quote(str(ref), safe=""),
|
|
21
|
+
),
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return _kwargs
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _parse_response(
|
|
28
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
29
|
+
) -> Any | SuccessResponse | None:
|
|
30
|
+
if response.status_code == 200:
|
|
31
|
+
response_200 = SuccessResponse.from_dict(response.json())
|
|
32
|
+
|
|
33
|
+
return response_200
|
|
34
|
+
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
38
|
+
|
|
39
|
+
if client.raise_on_unexpected_status:
|
|
40
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
41
|
+
else:
|
|
42
|
+
return None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _build_response(
|
|
46
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
47
|
+
) -> Response[Any | SuccessResponse]:
|
|
48
|
+
return Response(
|
|
49
|
+
status_code=HTTPStatus(response.status_code),
|
|
50
|
+
content=response.content,
|
|
51
|
+
headers=response.headers,
|
|
52
|
+
parsed=_parse_response(client=client, response=response),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def sync_detailed(
|
|
57
|
+
ref: str,
|
|
58
|
+
*,
|
|
59
|
+
client: AuthenticatedClient,
|
|
60
|
+
) -> Response[Any | SuccessResponse]:
|
|
61
|
+
"""Delete an action
|
|
62
|
+
|
|
63
|
+
Args:
|
|
64
|
+
ref (str):
|
|
65
|
+
|
|
66
|
+
Raises:
|
|
67
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
68
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
69
|
+
|
|
70
|
+
Returns:
|
|
71
|
+
Response[Any | SuccessResponse]
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
kwargs = _get_kwargs(
|
|
75
|
+
ref=ref,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
response = client.get_httpx_client().request(
|
|
79
|
+
**kwargs,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
return _build_response(client=client, response=response)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def sync(
|
|
86
|
+
ref: str,
|
|
87
|
+
*,
|
|
88
|
+
client: AuthenticatedClient,
|
|
89
|
+
) -> Any | SuccessResponse | None:
|
|
90
|
+
"""Delete an action
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
ref (str):
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
97
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
Any | SuccessResponse
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
return sync_detailed(
|
|
104
|
+
ref=ref,
|
|
105
|
+
client=client,
|
|
106
|
+
).parsed
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
async def asyncio_detailed(
|
|
110
|
+
ref: str,
|
|
111
|
+
*,
|
|
112
|
+
client: AuthenticatedClient,
|
|
113
|
+
) -> Response[Any | SuccessResponse]:
|
|
114
|
+
"""Delete an action
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
ref (str):
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Response[Any | SuccessResponse]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = _get_kwargs(
|
|
128
|
+
ref=ref,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
132
|
+
|
|
133
|
+
return _build_response(client=client, response=response)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
async def asyncio(
|
|
137
|
+
ref: str,
|
|
138
|
+
*,
|
|
139
|
+
client: AuthenticatedClient,
|
|
140
|
+
) -> Any | SuccessResponse | None:
|
|
141
|
+
"""Delete an action
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
ref (str):
|
|
145
|
+
|
|
146
|
+
Raises:
|
|
147
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
Any | SuccessResponse
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
await asyncio_detailed(
|
|
156
|
+
ref=ref,
|
|
157
|
+
client=client,
|
|
158
|
+
)
|
|
159
|
+
).parsed
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, cast
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.get_action_response_200 import GetActionResponse200
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
ref: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
|
|
17
|
+
_kwargs: dict[str, Any] = {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": "/api/v1/actions/{ref}".format(
|
|
20
|
+
ref=quote(str(ref), safe=""),
|
|
21
|
+
),
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return _kwargs
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _parse_response(
|
|
28
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
29
|
+
) -> Any | GetActionResponse200 | None:
|
|
30
|
+
if response.status_code == 200:
|
|
31
|
+
response_200 = GetActionResponse200.from_dict(response.json())
|
|
32
|
+
|
|
33
|
+
return response_200
|
|
34
|
+
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
38
|
+
|
|
39
|
+
if client.raise_on_unexpected_status:
|
|
40
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
41
|
+
else:
|
|
42
|
+
return None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _build_response(
|
|
46
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
47
|
+
) -> Response[Any | GetActionResponse200]:
|
|
48
|
+
return Response(
|
|
49
|
+
status_code=HTTPStatus(response.status_code),
|
|
50
|
+
content=response.content,
|
|
51
|
+
headers=response.headers,
|
|
52
|
+
parsed=_parse_response(client=client, response=response),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def sync_detailed(
|
|
57
|
+
ref: str,
|
|
58
|
+
*,
|
|
59
|
+
client: AuthenticatedClient,
|
|
60
|
+
) -> Response[Any | GetActionResponse200]:
|
|
61
|
+
"""Get a single action by reference
|
|
62
|
+
|
|
63
|
+
Args:
|
|
64
|
+
ref (str):
|
|
65
|
+
|
|
66
|
+
Raises:
|
|
67
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
68
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
69
|
+
|
|
70
|
+
Returns:
|
|
71
|
+
Response[Any | GetActionResponse200]
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
kwargs = _get_kwargs(
|
|
75
|
+
ref=ref,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
response = client.get_httpx_client().request(
|
|
79
|
+
**kwargs,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
return _build_response(client=client, response=response)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def sync(
|
|
86
|
+
ref: str,
|
|
87
|
+
*,
|
|
88
|
+
client: AuthenticatedClient,
|
|
89
|
+
) -> Any | GetActionResponse200 | None:
|
|
90
|
+
"""Get a single action by reference
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
ref (str):
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
97
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
Any | GetActionResponse200
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
return sync_detailed(
|
|
104
|
+
ref=ref,
|
|
105
|
+
client=client,
|
|
106
|
+
).parsed
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
async def asyncio_detailed(
|
|
110
|
+
ref: str,
|
|
111
|
+
*,
|
|
112
|
+
client: AuthenticatedClient,
|
|
113
|
+
) -> Response[Any | GetActionResponse200]:
|
|
114
|
+
"""Get a single action by reference
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
ref (str):
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Response[Any | GetActionResponse200]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = _get_kwargs(
|
|
128
|
+
ref=ref,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
132
|
+
|
|
133
|
+
return _build_response(client=client, response=response)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
async def asyncio(
|
|
137
|
+
ref: str,
|
|
138
|
+
*,
|
|
139
|
+
client: AuthenticatedClient,
|
|
140
|
+
) -> Any | GetActionResponse200 | None:
|
|
141
|
+
"""Get a single action by reference
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
ref (str):
|
|
145
|
+
|
|
146
|
+
Raises:
|
|
147
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
Any | GetActionResponse200
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
await asyncio_detailed(
|
|
156
|
+
ref=ref,
|
|
157
|
+
client=client,
|
|
158
|
+
)
|
|
159
|
+
).parsed
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, cast
|
|
3
|
+
from urllib.parse import quote
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.get_queue_stats_response_200 import GetQueueStatsResponse200
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
ref: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
|
|
17
|
+
_kwargs: dict[str, Any] = {
|
|
18
|
+
"method": "get",
|
|
19
|
+
"url": "/api/v1/actions/{ref}/queue-stats".format(
|
|
20
|
+
ref=quote(str(ref), safe=""),
|
|
21
|
+
),
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return _kwargs
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def _parse_response(
|
|
28
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
29
|
+
) -> Any | GetQueueStatsResponse200 | None:
|
|
30
|
+
if response.status_code == 200:
|
|
31
|
+
response_200 = GetQueueStatsResponse200.from_dict(response.json())
|
|
32
|
+
|
|
33
|
+
return response_200
|
|
34
|
+
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
38
|
+
|
|
39
|
+
if client.raise_on_unexpected_status:
|
|
40
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
41
|
+
else:
|
|
42
|
+
return None
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _build_response(
|
|
46
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
47
|
+
) -> Response[Any | GetQueueStatsResponse200]:
|
|
48
|
+
return Response(
|
|
49
|
+
status_code=HTTPStatus(response.status_code),
|
|
50
|
+
content=response.content,
|
|
51
|
+
headers=response.headers,
|
|
52
|
+
parsed=_parse_response(client=client, response=response),
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def sync_detailed(
|
|
57
|
+
ref: str,
|
|
58
|
+
*,
|
|
59
|
+
client: AuthenticatedClient,
|
|
60
|
+
) -> Response[Any | GetQueueStatsResponse200]:
|
|
61
|
+
"""Get queue statistics for an action
|
|
62
|
+
|
|
63
|
+
Args:
|
|
64
|
+
ref (str):
|
|
65
|
+
|
|
66
|
+
Raises:
|
|
67
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
68
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
69
|
+
|
|
70
|
+
Returns:
|
|
71
|
+
Response[Any | GetQueueStatsResponse200]
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
kwargs = _get_kwargs(
|
|
75
|
+
ref=ref,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
response = client.get_httpx_client().request(
|
|
79
|
+
**kwargs,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
return _build_response(client=client, response=response)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def sync(
|
|
86
|
+
ref: str,
|
|
87
|
+
*,
|
|
88
|
+
client: AuthenticatedClient,
|
|
89
|
+
) -> Any | GetQueueStatsResponse200 | None:
|
|
90
|
+
"""Get queue statistics for an action
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
ref (str):
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
97
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
Any | GetQueueStatsResponse200
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
return sync_detailed(
|
|
104
|
+
ref=ref,
|
|
105
|
+
client=client,
|
|
106
|
+
).parsed
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
async def asyncio_detailed(
|
|
110
|
+
ref: str,
|
|
111
|
+
*,
|
|
112
|
+
client: AuthenticatedClient,
|
|
113
|
+
) -> Response[Any | GetQueueStatsResponse200]:
|
|
114
|
+
"""Get queue statistics for an action
|
|
115
|
+
|
|
116
|
+
Args:
|
|
117
|
+
ref (str):
|
|
118
|
+
|
|
119
|
+
Raises:
|
|
120
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
121
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
122
|
+
|
|
123
|
+
Returns:
|
|
124
|
+
Response[Any | GetQueueStatsResponse200]
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = _get_kwargs(
|
|
128
|
+
ref=ref,
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
132
|
+
|
|
133
|
+
return _build_response(client=client, response=response)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
async def asyncio(
|
|
137
|
+
ref: str,
|
|
138
|
+
*,
|
|
139
|
+
client: AuthenticatedClient,
|
|
140
|
+
) -> Any | GetQueueStatsResponse200 | None:
|
|
141
|
+
"""Get queue statistics for an action
|
|
142
|
+
|
|
143
|
+
Args:
|
|
144
|
+
ref (str):
|
|
145
|
+
|
|
146
|
+
Raises:
|
|
147
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
148
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
Any | GetQueueStatsResponse200
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
await asyncio_detailed(
|
|
156
|
+
ref=ref,
|
|
157
|
+
client=client,
|
|
158
|
+
)
|
|
159
|
+
).parsed
|