robosystems-client 0.2.15__py3-none-any.whl → 0.2.17__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.
Potentially problematic release.
This version of robosystems-client might be problematic. Click here for more details.
- robosystems_client/api/agent/auto_select_agent.py +23 -27
- robosystems_client/api/agent/batch_process_queries.py +13 -13
- robosystems_client/api/agent/execute_specific_agent.py +23 -27
- robosystems_client/api/agent/get_agent_metadata.py +13 -13
- robosystems_client/api/agent/list_agents.py +23 -23
- robosystems_client/api/agent/recommend_agent.py +13 -13
- robosystems_client/api/auth/check_password_strength.py +17 -17
- robosystems_client/api/auth/complete_sso_auth.py +17 -17
- robosystems_client/api/auth/forgot_password.py +17 -23
- robosystems_client/api/auth/generate_sso_token.py +26 -26
- robosystems_client/api/auth/get_captcha_config.py +6 -6
- robosystems_client/api/auth/get_current_auth_user.py +17 -17
- robosystems_client/api/auth/get_password_policy.py +10 -10
- robosystems_client/api/auth/login_user.py +17 -17
- robosystems_client/api/auth/logout_user.py +10 -10
- robosystems_client/api/auth/refresh_auth_session.py +17 -17
- robosystems_client/api/auth/register_user.py +17 -17
- robosystems_client/api/auth/resend_verification_email.py +17 -29
- robosystems_client/api/auth/reset_password.py +17 -17
- robosystems_client/api/auth/sso_token_exchange.py +17 -17
- robosystems_client/api/auth/validate_reset_token.py +17 -17
- robosystems_client/api/auth/verify_email.py +17 -17
- robosystems_client/api/backup/create_backup.py +13 -13
- robosystems_client/api/backup/get_backup_download_url.py +22 -22
- robosystems_client/api/backup/get_backup_stats.py +13 -13
- robosystems_client/api/backup/list_backups.py +31 -31
- robosystems_client/api/backup/restore_backup.py +13 -13
- robosystems_client/api/billing/cancel_org_subscription.py +13 -13
- robosystems_client/api/billing/create_checkout_session.py +13 -13
- robosystems_client/api/billing/create_portal_session.py +13 -13
- robosystems_client/api/billing/get_checkout_status.py +13 -13
- robosystems_client/api/billing/get_org_billing_customer.py +13 -13
- robosystems_client/api/billing/get_org_subscription.py +13 -13
- robosystems_client/api/billing/get_org_upcoming_invoice.py +16 -16
- robosystems_client/api/billing/list_org_invoices.py +22 -22
- robosystems_client/api/billing/list_org_subscriptions.py +13 -13
- robosystems_client/api/connections/create_connection.py +13 -13
- robosystems_client/api/connections/create_link_token.py +13 -13
- robosystems_client/api/connections/delete_connection.py +13 -13
- robosystems_client/api/connections/exchange_link_token.py +13 -13
- robosystems_client/api/connections/get_connection.py +13 -13
- robosystems_client/api/connections/get_connection_options.py +13 -13
- robosystems_client/api/connections/init_o_auth.py +13 -13
- robosystems_client/api/connections/list_connections.py +33 -33
- robosystems_client/api/connections/oauth_callback.py +13 -13
- robosystems_client/api/connections/sync_connection.py +13 -19
- robosystems_client/api/credits_/check_credit_balance.py +38 -45
- robosystems_client/api/credits_/check_storage_limits.py +13 -13
- robosystems_client/api/credits_/get_credit_summary.py +13 -13
- robosystems_client/api/credits_/get_storage_usage.py +28 -28
- robosystems_client/api/credits_/list_credit_transactions.py +71 -71
- robosystems_client/api/files/__init__.py +1 -0
- robosystems_client/api/files/create_file_upload.py +311 -0
- robosystems_client/api/files/delete_file.py +354 -0
- robosystems_client/api/files/get_file.py +329 -0
- robosystems_client/api/files/list_files.py +346 -0
- robosystems_client/api/files/update_file.py +320 -0
- robosystems_client/api/graph_health/get_database_health.py +13 -13
- robosystems_client/api/graph_info/get_database_info.py +13 -13
- robosystems_client/api/graph_limits/get_graph_limits.py +13 -13
- robosystems_client/api/graphs/create_graph.py +13 -13
- robosystems_client/api/graphs/get_available_extensions.py +13 -13
- robosystems_client/api/graphs/get_available_graph_tiers.py +22 -22
- robosystems_client/api/graphs/get_graphs.py +13 -13
- robosystems_client/api/graphs/select_graph.py +13 -13
- robosystems_client/api/materialization/__init__.py +1 -0
- robosystems_client/api/materialization/get_materialization_status.py +272 -0
- robosystems_client/api/materialization/materialize_graph.py +416 -0
- robosystems_client/api/mcp/call_mcp_tool.py +32 -32
- robosystems_client/api/mcp/list_mcp_tools.py +13 -13
- robosystems_client/api/operations/cancel_operation.py +13 -13
- robosystems_client/api/operations/get_operation_status.py +13 -25
- robosystems_client/api/operations/stream_operation_events.py +41 -41
- robosystems_client/api/org/create_org.py +13 -13
- robosystems_client/api/org/get_org.py +13 -13
- robosystems_client/api/org/list_org_graphs.py +13 -13
- robosystems_client/api/org/list_user_orgs.py +6 -6
- robosystems_client/api/org/update_org.py +13 -13
- robosystems_client/api/org_members/invite_org_member.py +13 -13
- robosystems_client/api/org_members/list_org_members.py +13 -13
- robosystems_client/api/org_members/remove_org_member.py +13 -13
- robosystems_client/api/org_members/update_org_member_role.py +13 -13
- robosystems_client/api/org_usage/get_org_limits.py +13 -13
- robosystems_client/api/org_usage/get_org_usage.py +22 -22
- robosystems_client/api/query/execute_cypher_query.py +74 -62
- robosystems_client/api/schema/export_graph_schema.py +35 -35
- robosystems_client/api/schema/get_graph_schema.py +13 -13
- robosystems_client/api/schema/validate_schema.py +13 -13
- robosystems_client/api/service_offerings/get_service_offerings.py +17 -17
- robosystems_client/api/status/get_service_status.py +10 -10
- robosystems_client/api/subgraphs/create_subgraph.py +64 -28
- robosystems_client/api/subgraphs/delete_subgraph.py +13 -13
- robosystems_client/api/subgraphs/get_subgraph_info.py +13 -13
- robosystems_client/api/subgraphs/get_subgraph_quota.py +13 -13
- robosystems_client/api/subgraphs/list_subgraphs.py +13 -13
- robosystems_client/api/subscriptions/create_repository_subscription.py +13 -13
- robosystems_client/api/subscriptions/get_graph_subscription.py +13 -13
- robosystems_client/api/subscriptions/upgrade_subscription.py +13 -13
- robosystems_client/api/tables/list_tables.py +13 -13
- robosystems_client/api/tables/query_tables.py +13 -13
- robosystems_client/api/usage/get_graph_metrics.py +13 -13
- robosystems_client/api/usage/get_graph_usage_analytics.py +66 -66
- robosystems_client/api/user/create_user_api_key.py +13 -13
- robosystems_client/api/user/get_current_user.py +6 -6
- robosystems_client/api/user/list_user_api_keys.py +6 -6
- robosystems_client/api/user/revoke_user_api_key.py +13 -13
- robosystems_client/api/user/update_user.py +13 -13
- robosystems_client/api/user/update_user_api_key.py +13 -13
- robosystems_client/api/user/update_user_password.py +13 -13
- robosystems_client/api/views/__init__.py +1 -0
- robosystems_client/api/views/create_view.py +245 -0
- robosystems_client/api/views/save_view.py +299 -0
- robosystems_client/client.py +13 -13
- robosystems_client/extensions/__init__.py +67 -10
- robosystems_client/extensions/element_mapping_client.py +585 -0
- robosystems_client/extensions/extensions.py +12 -3
- robosystems_client/extensions/file_client.py +380 -0
- robosystems_client/extensions/materialization_client.py +211 -0
- robosystems_client/extensions/subgraph_workspace_client.py +744 -0
- robosystems_client/extensions/table_client.py +161 -0
- robosystems_client/extensions/view_builder_client.py +617 -0
- robosystems_client/models/__init__.py +34 -10
- robosystems_client/models/account_info.py +2 -0
- robosystems_client/models/agent_list_response.py +3 -1
- robosystems_client/models/agent_list_response_agents.py +5 -3
- robosystems_client/models/agent_list_response_agents_additional_property.py +2 -0
- robosystems_client/models/agent_message.py +9 -7
- robosystems_client/models/agent_metadata_response.py +11 -9
- robosystems_client/models/agent_recommendation.py +8 -6
- robosystems_client/models/agent_recommendation_request.py +9 -7
- robosystems_client/models/agent_recommendation_request_context_type_0.py +2 -0
- robosystems_client/models/agent_recommendation_response.py +4 -2
- robosystems_client/models/agent_request.py +41 -40
- robosystems_client/models/agent_request_context_type_0.py +2 -0
- robosystems_client/models/agent_response.py +42 -44
- robosystems_client/models/agent_response_error_details_type_0.py +2 -0
- robosystems_client/models/agent_response_metadata_type_0.py +2 -0
- robosystems_client/models/agent_response_tokens_used_type_0.py +2 -0
- robosystems_client/models/api_key_info.py +18 -16
- robosystems_client/models/api_keys_response.py +4 -2
- robosystems_client/models/auth_response.py +26 -24
- robosystems_client/models/auth_response_org_type_0.py +2 -0
- robosystems_client/models/auth_response_user.py +2 -0
- robosystems_client/models/available_extension.py +5 -3
- robosystems_client/models/available_extensions_response.py +4 -2
- robosystems_client/models/available_graph_tiers_response.py +4 -2
- robosystems_client/models/backup_create_request.py +18 -16
- robosystems_client/models/backup_download_url_response.py +2 -0
- robosystems_client/models/backup_limits.py +2 -0
- robosystems_client/models/backup_list_response.py +4 -2
- robosystems_client/models/backup_response.py +13 -11
- robosystems_client/models/backup_restore_request.py +7 -6
- robosystems_client/models/backup_stats_response.py +9 -7
- robosystems_client/models/backup_stats_response_backup_formats.py +2 -0
- robosystems_client/models/batch_agent_request.py +7 -5
- robosystems_client/models/batch_agent_response.py +4 -2
- robosystems_client/models/billing_customer.py +10 -8
- robosystems_client/models/cancel_operation_response_canceloperation.py +2 -0
- robosystems_client/models/check_credit_balance_response_checkcreditbalance.py +2 -0
- robosystems_client/models/checkout_response.py +22 -20
- robosystems_client/models/checkout_status_response.py +19 -17
- robosystems_client/models/connection_options_response.py +4 -2
- robosystems_client/models/connection_provider_info.py +26 -24
- robosystems_client/models/connection_response.py +14 -12
- robosystems_client/models/connection_response_metadata.py +2 -0
- robosystems_client/models/copy_operation_limits.py +2 -0
- robosystems_client/models/create_api_key_request.py +13 -11
- robosystems_client/models/create_api_key_response.py +3 -1
- robosystems_client/models/create_checkout_request.py +3 -1
- robosystems_client/models/create_checkout_request_resource_config.py +2 -0
- robosystems_client/models/create_connection_request.py +21 -21
- robosystems_client/models/create_graph_request.py +25 -25
- robosystems_client/models/create_org_request.py +7 -5
- robosystems_client/models/create_repository_subscription_request.py +2 -0
- robosystems_client/models/create_subgraph_request.py +30 -19
- robosystems_client/models/create_subgraph_request_metadata_type_0.py +2 -0
- robosystems_client/models/create_view_request.py +141 -0
- robosystems_client/models/credit_limits.py +2 -0
- robosystems_client/models/credit_summary.py +3 -1
- robosystems_client/models/credit_summary_operation_breakdown.py +2 -0
- robosystems_client/models/credit_summary_response.py +8 -6
- robosystems_client/models/custom_schema_definition.py +39 -33
- robosystems_client/models/custom_schema_definition_metadata.py +2 -0
- robosystems_client/models/custom_schema_definition_nodes_item.py +2 -0
- robosystems_client/models/custom_schema_definition_relationships_item.py +2 -0
- robosystems_client/models/cypher_query_request.py +15 -13
- robosystems_client/models/cypher_query_request_parameters_type_0.py +2 -0
- robosystems_client/models/database_health_response.py +21 -19
- robosystems_client/models/database_info_response.py +13 -11
- robosystems_client/models/delete_file_response.py +54 -1
- robosystems_client/models/delete_subgraph_request.py +12 -10
- robosystems_client/models/delete_subgraph_response.py +13 -11
- robosystems_client/models/detailed_transactions_response.py +6 -4
- robosystems_client/models/detailed_transactions_response_date_range.py +2 -0
- robosystems_client/models/detailed_transactions_response_summary.py +5 -3
- robosystems_client/models/email_verification_request.py +2 -0
- robosystems_client/models/enhanced_credit_transaction_response.py +24 -22
- robosystems_client/models/enhanced_credit_transaction_response_metadata.py +2 -0
- robosystems_client/models/enhanced_file_status_layers.py +83 -0
- robosystems_client/models/error_response.py +19 -17
- robosystems_client/models/exchange_token_request.py +9 -7
- robosystems_client/models/exchange_token_request_metadata_type_0.py +2 -0
- robosystems_client/models/execute_cypher_query_response_200.py +25 -21
- robosystems_client/models/execute_cypher_query_response_200_data_item.py +2 -0
- robosystems_client/models/fact_detail.py +109 -0
- robosystems_client/models/file_info.py +18 -16
- robosystems_client/models/file_layer_status.py +123 -0
- robosystems_client/models/file_status_update.py +14 -0
- robosystems_client/models/file_upload_request.py +25 -3
- robosystems_client/models/file_upload_response.py +2 -0
- robosystems_client/models/forgot_password_request.py +2 -0
- robosystems_client/models/forgot_password_response_forgotpassword.py +2 -0
- robosystems_client/models/get_current_auth_user_response_getcurrentauthuser.py +2 -0
- robosystems_client/models/get_file_info_response.py +62 -21
- robosystems_client/models/get_operation_status_response_getoperationstatus.py +2 -0
- robosystems_client/models/get_storage_usage_response_getstorageusage.py +2 -0
- robosystems_client/models/graph_info.py +10 -8
- robosystems_client/models/graph_limits_response.py +14 -12
- robosystems_client/models/graph_metadata.py +14 -12
- robosystems_client/models/graph_metrics_response.py +17 -15
- robosystems_client/models/graph_metrics_response_estimated_size.py +2 -0
- robosystems_client/models/graph_metrics_response_health_status.py +2 -0
- robosystems_client/models/graph_metrics_response_node_counts.py +2 -0
- robosystems_client/models/graph_metrics_response_relationship_counts.py +2 -0
- robosystems_client/models/graph_subscription_response.py +28 -26
- robosystems_client/models/graph_subscription_tier.py +15 -13
- robosystems_client/models/graph_subscriptions.py +5 -3
- robosystems_client/models/graph_tier_backup.py +2 -0
- robosystems_client/models/graph_tier_copy_operations.py +2 -0
- robosystems_client/models/graph_tier_info.py +15 -13
- robosystems_client/models/graph_tier_instance.py +2 -0
- robosystems_client/models/graph_tier_limits.py +10 -8
- robosystems_client/models/graph_usage_response.py +32 -30
- robosystems_client/models/graph_usage_response_recent_events_item.py +2 -0
- robosystems_client/models/health_status.py +9 -7
- robosystems_client/models/health_status_details_type_0.py +2 -0
- robosystems_client/models/http_validation_error.py +12 -8
- robosystems_client/models/initial_entity_data.py +38 -36
- robosystems_client/models/invite_member_request.py +9 -7
- robosystems_client/models/invoice.py +35 -33
- robosystems_client/models/invoice_line_item.py +13 -11
- robosystems_client/models/invoices_response.py +4 -2
- robosystems_client/models/link_token_request.py +21 -23
- robosystems_client/models/link_token_request_options_type_0.py +2 -0
- robosystems_client/models/list_org_graphs_response_200_item.py +2 -0
- robosystems_client/models/list_subgraphs_response.py +15 -13
- robosystems_client/models/list_table_files_response.py +27 -11
- robosystems_client/models/login_request.py +2 -0
- robosystems_client/models/logout_user_response_logoutuser.py +2 -0
- robosystems_client/models/{bulk_ingest_request.py → materialize_request.py} +25 -15
- robosystems_client/models/materialize_response.py +131 -0
- robosystems_client/models/materialize_status_response.py +172 -0
- robosystems_client/models/mcp_tool_call.py +7 -5
- robosystems_client/models/mcp_tool_call_arguments.py +2 -0
- robosystems_client/models/mcp_tools_response.py +4 -2
- robosystems_client/models/mcp_tools_response_tools_item.py +2 -0
- robosystems_client/models/o_auth_callback_request.py +18 -16
- robosystems_client/models/o_auth_init_request.py +14 -12
- robosystems_client/models/o_auth_init_request_additional_params_type_0.py +2 -0
- robosystems_client/models/o_auth_init_response.py +2 -0
- robosystems_client/models/offering_repository_plan.py +9 -7
- robosystems_client/models/offering_repository_plan_rate_limits_type_0.py +8 -8
- robosystems_client/models/operation_costs.py +4 -2
- robosystems_client/models/operation_costs_ai_operations.py +2 -0
- robosystems_client/models/operation_costs_token_pricing.py +5 -3
- robosystems_client/models/org_detail_response.py +13 -11
- robosystems_client/models/org_detail_response_graphs_item.py +2 -0
- robosystems_client/models/org_detail_response_limits_type_0.py +2 -0
- robosystems_client/models/org_detail_response_members_item.py +2 -0
- robosystems_client/models/org_limits_response.py +3 -1
- robosystems_client/models/org_limits_response_current_usage.py +2 -0
- robosystems_client/models/org_list_response.py +4 -2
- robosystems_client/models/org_member_list_response.py +4 -2
- robosystems_client/models/org_member_response.py +2 -0
- robosystems_client/models/org_response.py +2 -0
- robosystems_client/models/org_usage_response.py +7 -5
- robosystems_client/models/org_usage_response_daily_trend_item.py +2 -0
- robosystems_client/models/org_usage_response_graph_details_item.py +2 -0
- robosystems_client/models/org_usage_summary.py +18 -16
- robosystems_client/models/password_check_request.py +8 -6
- robosystems_client/models/password_check_response.py +3 -1
- robosystems_client/models/password_check_response_character_types.py +2 -0
- robosystems_client/models/password_policy_response.py +3 -1
- robosystems_client/models/password_policy_response_policy.py +2 -0
- robosystems_client/models/payment_method.py +23 -21
- robosystems_client/models/performance_insights.py +5 -3
- robosystems_client/models/performance_insights_operation_stats.py +2 -0
- robosystems_client/models/performance_insights_slow_queries_item.py +2 -0
- robosystems_client/models/plaid_connection_config.py +30 -30
- robosystems_client/models/plaid_connection_config_accounts_type_0_item.py +2 -0
- robosystems_client/models/plaid_connection_config_institution_type_0.py +2 -0
- robosystems_client/models/portal_session_response.py +2 -0
- robosystems_client/models/query_limits.py +2 -0
- robosystems_client/models/quick_books_connection_config.py +13 -11
- robosystems_client/models/rate_limits.py +2 -0
- robosystems_client/models/register_request.py +8 -6
- robosystems_client/models/repository_info.py +4 -2
- robosystems_client/models/repository_subscriptions.py +4 -2
- robosystems_client/models/resend_verification_email_response_resendverificationemail.py +2 -0
- robosystems_client/models/reset_password_request.py +2 -0
- robosystems_client/models/reset_password_validate_response.py +8 -6
- robosystems_client/models/save_view_request.py +138 -0
- robosystems_client/models/save_view_response.py +181 -0
- robosystems_client/models/schema_export_response.py +16 -14
- robosystems_client/models/schema_export_response_data_stats_type_0.py +2 -0
- robosystems_client/models/schema_export_response_schema_definition_type_0.py +2 -0
- robosystems_client/models/schema_info_response.py +3 -1
- robosystems_client/models/schema_info_response_schema.py +2 -0
- robosystems_client/models/schema_validation_request.py +18 -17
- robosystems_client/models/schema_validation_request_schema_definition_type_0.py +2 -0
- robosystems_client/models/schema_validation_response.py +28 -33
- robosystems_client/models/schema_validation_response_compatibility_type_0.py +2 -0
- robosystems_client/models/schema_validation_response_stats_type_0.py +2 -0
- robosystems_client/models/sec_connection_config.py +8 -6
- robosystems_client/models/selection_criteria.py +19 -17
- robosystems_client/models/service_offering_summary.py +2 -0
- robosystems_client/models/service_offerings_response.py +6 -4
- robosystems_client/models/sso_complete_request.py +2 -0
- robosystems_client/models/sso_exchange_request.py +8 -6
- robosystems_client/models/sso_exchange_response.py +2 -0
- robosystems_client/models/sso_token_response.py +2 -0
- robosystems_client/models/storage_info.py +4 -2
- robosystems_client/models/storage_info_included_per_tier.py +2 -0
- robosystems_client/models/storage_info_overage_pricing.py +2 -0
- robosystems_client/models/storage_limit_response.py +9 -7
- robosystems_client/models/storage_limits.py +8 -6
- robosystems_client/models/storage_summary.py +2 -0
- robosystems_client/models/structure_detail.py +85 -0
- robosystems_client/models/subgraph_quota_response.py +23 -21
- robosystems_client/models/subgraph_response.py +35 -35
- robosystems_client/models/subgraph_response_metadata_type_0.py +2 -0
- robosystems_client/models/subgraph_summary.py +14 -12
- robosystems_client/models/success_response.py +11 -9
- robosystems_client/models/success_response_data_type_0.py +2 -0
- robosystems_client/models/sync_connection_request.py +11 -9
- robosystems_client/models/sync_connection_request_sync_options_type_0.py +2 -0
- robosystems_client/models/sync_connection_response_syncconnection.py +2 -0
- robosystems_client/models/table_info.py +12 -10
- robosystems_client/models/table_list_response.py +4 -2
- robosystems_client/models/table_query_request.py +9 -7
- robosystems_client/models/table_query_response.py +2 -0
- robosystems_client/models/token_pricing.py +2 -0
- robosystems_client/models/transaction_summary_response.py +13 -11
- robosystems_client/models/upcoming_invoice.py +10 -8
- robosystems_client/models/update_api_key_request.py +13 -11
- robosystems_client/models/{update_file_status_response_updatefilestatus.py → update_file_response_updatefile.py} +7 -5
- robosystems_client/models/update_member_role_request.py +2 -0
- robosystems_client/models/update_org_request.py +14 -12
- robosystems_client/models/update_password_request.py +2 -0
- robosystems_client/models/update_user_request.py +13 -11
- robosystems_client/models/upgrade_subscription_request.py +2 -0
- robosystems_client/models/user_graphs_response.py +10 -8
- robosystems_client/models/user_response.py +22 -18
- robosystems_client/models/validation_error.py +8 -6
- robosystems_client/models/view_axis_config.py +276 -0
- robosystems_client/models/view_axis_config_element_labels_type_0.py +46 -0
- robosystems_client/models/view_axis_config_member_labels_type_0.py +46 -0
- robosystems_client/models/view_config.py +127 -0
- robosystems_client/models/view_source.py +144 -0
- robosystems_client/models/view_source_type.py +9 -0
- robosystems_client/types.py +9 -9
- {robosystems_client-0.2.15.dist-info → robosystems_client-0.2.17.dist-info}/METADATA +1 -1
- robosystems_client-0.2.17.dist-info/RECORD +420 -0
- robosystems_client/api/tables/delete_file.py +0 -317
- robosystems_client/api/tables/get_file_info.py +0 -249
- robosystems_client/api/tables/get_upload_url.py +0 -380
- robosystems_client/api/tables/ingest_tables.py +0 -456
- robosystems_client/api/tables/list_table_files.py +0 -329
- robosystems_client/api/tables/update_file_status.py +0 -395
- robosystems_client/extensions/table_ingest_client.py +0 -462
- robosystems_client/models/bulk_ingest_response.py +0 -137
- robosystems_client/models/table_ingest_result.py +0 -107
- robosystems_client-0.2.15.dist-info/RECORD +0 -396
- {robosystems_client-0.2.15.dist-info → robosystems_client-0.2.17.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.15.dist-info → robosystems_client-0.2.17.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
if TYPE_CHECKING:
|
|
12
|
+
from ..models.view_config import ViewConfig
|
|
13
|
+
from ..models.view_source import ViewSource
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T", bound="CreateViewRequest")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@_attrs_define
|
|
20
|
+
class CreateViewRequest:
|
|
21
|
+
"""
|
|
22
|
+
Attributes:
|
|
23
|
+
source (ViewSource):
|
|
24
|
+
name (None | str | Unset): Optional name for the view
|
|
25
|
+
view_config (ViewConfig | Unset):
|
|
26
|
+
presentation_formats (list[str] | Unset): Presentation formats to generate
|
|
27
|
+
mapping_structure_id (None | str | Unset): Optional mapping structure ID to aggregate Chart of Accounts elements
|
|
28
|
+
into reporting taxonomy elements
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
source: ViewSource
|
|
32
|
+
name: None | str | Unset = UNSET
|
|
33
|
+
view_config: ViewConfig | Unset = UNSET
|
|
34
|
+
presentation_formats: list[str] | Unset = UNSET
|
|
35
|
+
mapping_structure_id: None | str | Unset = UNSET
|
|
36
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
|
+
|
|
38
|
+
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
source = self.source.to_dict()
|
|
40
|
+
|
|
41
|
+
name: None | str | Unset
|
|
42
|
+
if isinstance(self.name, Unset):
|
|
43
|
+
name = UNSET
|
|
44
|
+
else:
|
|
45
|
+
name = self.name
|
|
46
|
+
|
|
47
|
+
view_config: dict[str, Any] | Unset = UNSET
|
|
48
|
+
if not isinstance(self.view_config, Unset):
|
|
49
|
+
view_config = self.view_config.to_dict()
|
|
50
|
+
|
|
51
|
+
presentation_formats: list[str] | Unset = UNSET
|
|
52
|
+
if not isinstance(self.presentation_formats, Unset):
|
|
53
|
+
presentation_formats = self.presentation_formats
|
|
54
|
+
|
|
55
|
+
mapping_structure_id: None | str | Unset
|
|
56
|
+
if isinstance(self.mapping_structure_id, Unset):
|
|
57
|
+
mapping_structure_id = UNSET
|
|
58
|
+
else:
|
|
59
|
+
mapping_structure_id = self.mapping_structure_id
|
|
60
|
+
|
|
61
|
+
field_dict: dict[str, Any] = {}
|
|
62
|
+
field_dict.update(self.additional_properties)
|
|
63
|
+
field_dict.update(
|
|
64
|
+
{
|
|
65
|
+
"source": source,
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
if name is not UNSET:
|
|
69
|
+
field_dict["name"] = name
|
|
70
|
+
if view_config is not UNSET:
|
|
71
|
+
field_dict["view_config"] = view_config
|
|
72
|
+
if presentation_formats is not UNSET:
|
|
73
|
+
field_dict["presentation_formats"] = presentation_formats
|
|
74
|
+
if mapping_structure_id is not UNSET:
|
|
75
|
+
field_dict["mapping_structure_id"] = mapping_structure_id
|
|
76
|
+
|
|
77
|
+
return field_dict
|
|
78
|
+
|
|
79
|
+
@classmethod
|
|
80
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
81
|
+
from ..models.view_config import ViewConfig
|
|
82
|
+
from ..models.view_source import ViewSource
|
|
83
|
+
|
|
84
|
+
d = dict(src_dict)
|
|
85
|
+
source = ViewSource.from_dict(d.pop("source"))
|
|
86
|
+
|
|
87
|
+
def _parse_name(data: object) -> None | str | Unset:
|
|
88
|
+
if data is None:
|
|
89
|
+
return data
|
|
90
|
+
if isinstance(data, Unset):
|
|
91
|
+
return data
|
|
92
|
+
return cast(None | str | Unset, data)
|
|
93
|
+
|
|
94
|
+
name = _parse_name(d.pop("name", UNSET))
|
|
95
|
+
|
|
96
|
+
_view_config = d.pop("view_config", UNSET)
|
|
97
|
+
view_config: ViewConfig | Unset
|
|
98
|
+
if isinstance(_view_config, Unset):
|
|
99
|
+
view_config = UNSET
|
|
100
|
+
else:
|
|
101
|
+
view_config = ViewConfig.from_dict(_view_config)
|
|
102
|
+
|
|
103
|
+
presentation_formats = cast(list[str], d.pop("presentation_formats", UNSET))
|
|
104
|
+
|
|
105
|
+
def _parse_mapping_structure_id(data: object) -> None | str | Unset:
|
|
106
|
+
if data is None:
|
|
107
|
+
return data
|
|
108
|
+
if isinstance(data, Unset):
|
|
109
|
+
return data
|
|
110
|
+
return cast(None | str | Unset, data)
|
|
111
|
+
|
|
112
|
+
mapping_structure_id = _parse_mapping_structure_id(
|
|
113
|
+
d.pop("mapping_structure_id", UNSET)
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
create_view_request = cls(
|
|
117
|
+
source=source,
|
|
118
|
+
name=name,
|
|
119
|
+
view_config=view_config,
|
|
120
|
+
presentation_formats=presentation_formats,
|
|
121
|
+
mapping_structure_id=mapping_structure_id,
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
create_view_request.additional_properties = d
|
|
125
|
+
return create_view_request
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def additional_keys(self) -> list[str]:
|
|
129
|
+
return list(self.additional_properties.keys())
|
|
130
|
+
|
|
131
|
+
def __getitem__(self, key: str) -> Any:
|
|
132
|
+
return self.additional_properties[key]
|
|
133
|
+
|
|
134
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
135
|
+
self.additional_properties[key] = value
|
|
136
|
+
|
|
137
|
+
def __delitem__(self, key: str) -> None:
|
|
138
|
+
del self.additional_properties[key]
|
|
139
|
+
|
|
140
|
+
def __contains__(self, key: str) -> bool:
|
|
141
|
+
return key in self.additional_properties
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
4
|
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
5
|
|
|
@@ -30,7 +32,7 @@ class CreditSummary:
|
|
|
30
32
|
graph_tier: str
|
|
31
33
|
total_credits_consumed: float
|
|
32
34
|
total_base_cost: float
|
|
33
|
-
operation_breakdown:
|
|
35
|
+
operation_breakdown: CreditSummaryOperationBreakdown
|
|
34
36
|
cached_operations: int
|
|
35
37
|
billable_operations: int
|
|
36
38
|
transaction_count: int
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar,
|
|
4
|
+
from typing import Any, TypeVar, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
@@ -21,7 +23,7 @@ class CreditSummaryResponse:
|
|
|
21
23
|
consumed_this_month (float):
|
|
22
24
|
transaction_count (int):
|
|
23
25
|
usage_percentage (float):
|
|
24
|
-
last_allocation_date (
|
|
26
|
+
last_allocation_date (None | str | Unset):
|
|
25
27
|
"""
|
|
26
28
|
|
|
27
29
|
graph_id: str
|
|
@@ -31,7 +33,7 @@ class CreditSummaryResponse:
|
|
|
31
33
|
consumed_this_month: float
|
|
32
34
|
transaction_count: int
|
|
33
35
|
usage_percentage: float
|
|
34
|
-
last_allocation_date:
|
|
36
|
+
last_allocation_date: None | str | Unset = UNSET
|
|
35
37
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
36
38
|
|
|
37
39
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -49,7 +51,7 @@ class CreditSummaryResponse:
|
|
|
49
51
|
|
|
50
52
|
usage_percentage = self.usage_percentage
|
|
51
53
|
|
|
52
|
-
last_allocation_date:
|
|
54
|
+
last_allocation_date: None | str | Unset
|
|
53
55
|
if isinstance(self.last_allocation_date, Unset):
|
|
54
56
|
last_allocation_date = UNSET
|
|
55
57
|
else:
|
|
@@ -90,12 +92,12 @@ class CreditSummaryResponse:
|
|
|
90
92
|
|
|
91
93
|
usage_percentage = d.pop("usage_percentage")
|
|
92
94
|
|
|
93
|
-
def _parse_last_allocation_date(data: object) ->
|
|
95
|
+
def _parse_last_allocation_date(data: object) -> None | str | Unset:
|
|
94
96
|
if data is None:
|
|
95
97
|
return data
|
|
96
98
|
if isinstance(data, Unset):
|
|
97
99
|
return data
|
|
98
|
-
return cast(
|
|
100
|
+
return cast(None | str | Unset, data)
|
|
99
101
|
|
|
100
102
|
last_allocation_date = _parse_last_allocation_date(
|
|
101
103
|
d.pop("last_allocation_date", UNSET)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar,
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
@@ -29,21 +31,21 @@ class CustomSchemaDefinition:
|
|
|
29
31
|
|
|
30
32
|
Attributes:
|
|
31
33
|
name (str): Schema name
|
|
32
|
-
version (
|
|
33
|
-
description (
|
|
34
|
-
extends (
|
|
35
|
-
nodes (
|
|
36
|
-
relationships (
|
|
37
|
-
metadata (
|
|
34
|
+
version (str | Unset): Schema version Default: '1.0.0'.
|
|
35
|
+
description (None | str | Unset): Schema description
|
|
36
|
+
extends (None | str | Unset): Base schema to extend (e.g., 'base' for common utilities)
|
|
37
|
+
nodes (list[CustomSchemaDefinitionNodesItem] | Unset): List of node definitions with properties
|
|
38
|
+
relationships (list[CustomSchemaDefinitionRelationshipsItem] | Unset): List of relationship definitions
|
|
39
|
+
metadata (CustomSchemaDefinitionMetadata | Unset): Additional schema metadata
|
|
38
40
|
"""
|
|
39
41
|
|
|
40
42
|
name: str
|
|
41
|
-
version:
|
|
42
|
-
description:
|
|
43
|
-
extends:
|
|
44
|
-
nodes:
|
|
45
|
-
relationships:
|
|
46
|
-
metadata:
|
|
43
|
+
version: str | Unset = "1.0.0"
|
|
44
|
+
description: None | str | Unset = UNSET
|
|
45
|
+
extends: None | str | Unset = UNSET
|
|
46
|
+
nodes: list[CustomSchemaDefinitionNodesItem] | Unset = UNSET
|
|
47
|
+
relationships: list[CustomSchemaDefinitionRelationshipsItem] | Unset = UNSET
|
|
48
|
+
metadata: CustomSchemaDefinitionMetadata | Unset = UNSET
|
|
47
49
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
50
|
|
|
49
51
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -51,33 +53,33 @@ class CustomSchemaDefinition:
|
|
|
51
53
|
|
|
52
54
|
version = self.version
|
|
53
55
|
|
|
54
|
-
description:
|
|
56
|
+
description: None | str | Unset
|
|
55
57
|
if isinstance(self.description, Unset):
|
|
56
58
|
description = UNSET
|
|
57
59
|
else:
|
|
58
60
|
description = self.description
|
|
59
61
|
|
|
60
|
-
extends:
|
|
62
|
+
extends: None | str | Unset
|
|
61
63
|
if isinstance(self.extends, Unset):
|
|
62
64
|
extends = UNSET
|
|
63
65
|
else:
|
|
64
66
|
extends = self.extends
|
|
65
67
|
|
|
66
|
-
nodes:
|
|
68
|
+
nodes: list[dict[str, Any]] | Unset = UNSET
|
|
67
69
|
if not isinstance(self.nodes, Unset):
|
|
68
70
|
nodes = []
|
|
69
71
|
for nodes_item_data in self.nodes:
|
|
70
72
|
nodes_item = nodes_item_data.to_dict()
|
|
71
73
|
nodes.append(nodes_item)
|
|
72
74
|
|
|
73
|
-
relationships:
|
|
75
|
+
relationships: list[dict[str, Any]] | Unset = UNSET
|
|
74
76
|
if not isinstance(self.relationships, Unset):
|
|
75
77
|
relationships = []
|
|
76
78
|
for relationships_item_data in self.relationships:
|
|
77
79
|
relationships_item = relationships_item_data.to_dict()
|
|
78
80
|
relationships.append(relationships_item)
|
|
79
81
|
|
|
80
|
-
metadata:
|
|
82
|
+
metadata: dict[str, Any] | Unset = UNSET
|
|
81
83
|
if not isinstance(self.metadata, Unset):
|
|
82
84
|
metadata = self.metadata.to_dict()
|
|
83
85
|
|
|
@@ -120,42 +122,46 @@ class CustomSchemaDefinition:
|
|
|
120
122
|
|
|
121
123
|
version = d.pop("version", UNSET)
|
|
122
124
|
|
|
123
|
-
def _parse_description(data: object) ->
|
|
125
|
+
def _parse_description(data: object) -> None | str | Unset:
|
|
124
126
|
if data is None:
|
|
125
127
|
return data
|
|
126
128
|
if isinstance(data, Unset):
|
|
127
129
|
return data
|
|
128
|
-
return cast(
|
|
130
|
+
return cast(None | str | Unset, data)
|
|
129
131
|
|
|
130
132
|
description = _parse_description(d.pop("description", UNSET))
|
|
131
133
|
|
|
132
|
-
def _parse_extends(data: object) ->
|
|
134
|
+
def _parse_extends(data: object) -> None | str | Unset:
|
|
133
135
|
if data is None:
|
|
134
136
|
return data
|
|
135
137
|
if isinstance(data, Unset):
|
|
136
138
|
return data
|
|
137
|
-
return cast(
|
|
139
|
+
return cast(None | str | Unset, data)
|
|
138
140
|
|
|
139
141
|
extends = _parse_extends(d.pop("extends", UNSET))
|
|
140
142
|
|
|
141
|
-
nodes = []
|
|
142
143
|
_nodes = d.pop("nodes", UNSET)
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
nodes: list[CustomSchemaDefinitionNodesItem] | Unset = UNSET
|
|
145
|
+
if _nodes is not UNSET:
|
|
146
|
+
nodes = []
|
|
147
|
+
for nodes_item_data in _nodes:
|
|
148
|
+
nodes_item = CustomSchemaDefinitionNodesItem.from_dict(nodes_item_data)
|
|
145
149
|
|
|
146
|
-
|
|
150
|
+
nodes.append(nodes_item)
|
|
147
151
|
|
|
148
|
-
relationships = []
|
|
149
152
|
_relationships = d.pop("relationships", UNSET)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
relationships: list[CustomSchemaDefinitionRelationshipsItem] | Unset = UNSET
|
|
154
|
+
if _relationships is not UNSET:
|
|
155
|
+
relationships = []
|
|
156
|
+
for relationships_item_data in _relationships:
|
|
157
|
+
relationships_item = CustomSchemaDefinitionRelationshipsItem.from_dict(
|
|
158
|
+
relationships_item_data
|
|
159
|
+
)
|
|
154
160
|
|
|
155
|
-
|
|
161
|
+
relationships.append(relationships_item)
|
|
156
162
|
|
|
157
163
|
_metadata = d.pop("metadata", UNSET)
|
|
158
|
-
metadata:
|
|
164
|
+
metadata: CustomSchemaDefinitionMetadata | Unset
|
|
159
165
|
if isinstance(_metadata, Unset):
|
|
160
166
|
metadata = UNSET
|
|
161
167
|
else:
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import TYPE_CHECKING, Any, TypeVar,
|
|
4
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
|
|
@@ -21,14 +23,14 @@ class CypherQueryRequest:
|
|
|
21
23
|
Attributes:
|
|
22
24
|
query (str): The Cypher query to execute. Use parameters ($param_name) for all dynamic values to prevent
|
|
23
25
|
injection attacks.
|
|
24
|
-
parameters (
|
|
25
|
-
|
|
26
|
-
timeout (
|
|
26
|
+
parameters (CypherQueryRequestParametersType0 | None | Unset): Query parameters for safe value substitution.
|
|
27
|
+
ALWAYS use parameters instead of string interpolation.
|
|
28
|
+
timeout (int | None | Unset): Query timeout in seconds (1-300) Default: 60.
|
|
27
29
|
"""
|
|
28
30
|
|
|
29
31
|
query: str
|
|
30
|
-
parameters:
|
|
31
|
-
timeout:
|
|
32
|
+
parameters: CypherQueryRequestParametersType0 | None | Unset = UNSET
|
|
33
|
+
timeout: int | None | Unset = 60
|
|
32
34
|
|
|
33
35
|
def to_dict(self) -> dict[str, Any]:
|
|
34
36
|
from ..models.cypher_query_request_parameters_type_0 import (
|
|
@@ -37,7 +39,7 @@ class CypherQueryRequest:
|
|
|
37
39
|
|
|
38
40
|
query = self.query
|
|
39
41
|
|
|
40
|
-
parameters:
|
|
42
|
+
parameters: dict[str, Any] | None | Unset
|
|
41
43
|
if isinstance(self.parameters, Unset):
|
|
42
44
|
parameters = UNSET
|
|
43
45
|
elif isinstance(self.parameters, CypherQueryRequestParametersType0):
|
|
@@ -45,7 +47,7 @@ class CypherQueryRequest:
|
|
|
45
47
|
else:
|
|
46
48
|
parameters = self.parameters
|
|
47
49
|
|
|
48
|
-
timeout:
|
|
50
|
+
timeout: int | None | Unset
|
|
49
51
|
if isinstance(self.timeout, Unset):
|
|
50
52
|
timeout = UNSET
|
|
51
53
|
else:
|
|
@@ -76,7 +78,7 @@ class CypherQueryRequest:
|
|
|
76
78
|
|
|
77
79
|
def _parse_parameters(
|
|
78
80
|
data: object,
|
|
79
|
-
) ->
|
|
81
|
+
) -> CypherQueryRequestParametersType0 | None | Unset:
|
|
80
82
|
if data is None:
|
|
81
83
|
return data
|
|
82
84
|
if isinstance(data, Unset):
|
|
@@ -87,18 +89,18 @@ class CypherQueryRequest:
|
|
|
87
89
|
parameters_type_0 = CypherQueryRequestParametersType0.from_dict(data)
|
|
88
90
|
|
|
89
91
|
return parameters_type_0
|
|
90
|
-
except
|
|
92
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
91
93
|
pass
|
|
92
|
-
return cast(
|
|
94
|
+
return cast(CypherQueryRequestParametersType0 | None | Unset, data)
|
|
93
95
|
|
|
94
96
|
parameters = _parse_parameters(d.pop("parameters", UNSET))
|
|
95
97
|
|
|
96
|
-
def _parse_timeout(data: object) ->
|
|
98
|
+
def _parse_timeout(data: object) -> int | None | Unset:
|
|
97
99
|
if data is None:
|
|
98
100
|
return data
|
|
99
101
|
if isinstance(data, Unset):
|
|
100
102
|
return data
|
|
101
|
-
return cast(
|
|
103
|
+
return cast(int | None | Unset, data)
|
|
102
104
|
|
|
103
105
|
timeout = _parse_timeout(d.pop("timeout", UNSET))
|
|
104
106
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar,
|
|
4
|
+
from typing import Any, TypeVar, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
@@ -21,10 +23,10 @@ class DatabaseHealthResponse:
|
|
|
21
23
|
query_count_24h (int): Number of queries executed in last 24 hours
|
|
22
24
|
avg_query_time_ms (float): Average query execution time in milliseconds
|
|
23
25
|
error_rate_24h (float): Error rate in last 24 hours (percentage)
|
|
24
|
-
last_query_time (
|
|
25
|
-
memory_usage_mb (
|
|
26
|
-
storage_usage_mb (
|
|
27
|
-
alerts (
|
|
26
|
+
last_query_time (None | str | Unset): Timestamp of last query execution
|
|
27
|
+
memory_usage_mb (float | None | Unset): Memory usage in MB
|
|
28
|
+
storage_usage_mb (float | None | Unset): Storage usage in MB
|
|
29
|
+
alerts (list[str] | Unset): Active alerts or warnings
|
|
28
30
|
"""
|
|
29
31
|
|
|
30
32
|
graph_id: str
|
|
@@ -34,10 +36,10 @@ class DatabaseHealthResponse:
|
|
|
34
36
|
query_count_24h: int
|
|
35
37
|
avg_query_time_ms: float
|
|
36
38
|
error_rate_24h: float
|
|
37
|
-
last_query_time:
|
|
38
|
-
memory_usage_mb:
|
|
39
|
-
storage_usage_mb:
|
|
40
|
-
alerts:
|
|
39
|
+
last_query_time: None | str | Unset = UNSET
|
|
40
|
+
memory_usage_mb: float | None | Unset = UNSET
|
|
41
|
+
storage_usage_mb: float | None | Unset = UNSET
|
|
42
|
+
alerts: list[str] | Unset = UNSET
|
|
41
43
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
42
44
|
|
|
43
45
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -55,25 +57,25 @@ class DatabaseHealthResponse:
|
|
|
55
57
|
|
|
56
58
|
error_rate_24h = self.error_rate_24h
|
|
57
59
|
|
|
58
|
-
last_query_time:
|
|
60
|
+
last_query_time: None | str | Unset
|
|
59
61
|
if isinstance(self.last_query_time, Unset):
|
|
60
62
|
last_query_time = UNSET
|
|
61
63
|
else:
|
|
62
64
|
last_query_time = self.last_query_time
|
|
63
65
|
|
|
64
|
-
memory_usage_mb:
|
|
66
|
+
memory_usage_mb: float | None | Unset
|
|
65
67
|
if isinstance(self.memory_usage_mb, Unset):
|
|
66
68
|
memory_usage_mb = UNSET
|
|
67
69
|
else:
|
|
68
70
|
memory_usage_mb = self.memory_usage_mb
|
|
69
71
|
|
|
70
|
-
storage_usage_mb:
|
|
72
|
+
storage_usage_mb: float | None | Unset
|
|
71
73
|
if isinstance(self.storage_usage_mb, Unset):
|
|
72
74
|
storage_usage_mb = UNSET
|
|
73
75
|
else:
|
|
74
76
|
storage_usage_mb = self.storage_usage_mb
|
|
75
77
|
|
|
76
|
-
alerts:
|
|
78
|
+
alerts: list[str] | Unset = UNSET
|
|
77
79
|
if not isinstance(self.alerts, Unset):
|
|
78
80
|
alerts = self.alerts
|
|
79
81
|
|
|
@@ -118,30 +120,30 @@ class DatabaseHealthResponse:
|
|
|
118
120
|
|
|
119
121
|
error_rate_24h = d.pop("error_rate_24h")
|
|
120
122
|
|
|
121
|
-
def _parse_last_query_time(data: object) ->
|
|
123
|
+
def _parse_last_query_time(data: object) -> None | str | Unset:
|
|
122
124
|
if data is None:
|
|
123
125
|
return data
|
|
124
126
|
if isinstance(data, Unset):
|
|
125
127
|
return data
|
|
126
|
-
return cast(
|
|
128
|
+
return cast(None | str | Unset, data)
|
|
127
129
|
|
|
128
130
|
last_query_time = _parse_last_query_time(d.pop("last_query_time", UNSET))
|
|
129
131
|
|
|
130
|
-
def _parse_memory_usage_mb(data: object) ->
|
|
132
|
+
def _parse_memory_usage_mb(data: object) -> float | None | Unset:
|
|
131
133
|
if data is None:
|
|
132
134
|
return data
|
|
133
135
|
if isinstance(data, Unset):
|
|
134
136
|
return data
|
|
135
|
-
return cast(
|
|
137
|
+
return cast(float | None | Unset, data)
|
|
136
138
|
|
|
137
139
|
memory_usage_mb = _parse_memory_usage_mb(d.pop("memory_usage_mb", UNSET))
|
|
138
140
|
|
|
139
|
-
def _parse_storage_usage_mb(data: object) ->
|
|
141
|
+
def _parse_storage_usage_mb(data: object) -> float | None | Unset:
|
|
140
142
|
if data is None:
|
|
141
143
|
return data
|
|
142
144
|
if isinstance(data, Unset):
|
|
143
145
|
return data
|
|
144
|
-
return cast(
|
|
146
|
+
return cast(float | None | Unset, data)
|
|
145
147
|
|
|
146
148
|
storage_usage_mb = _parse_storage_usage_mb(d.pop("storage_usage_mb", UNSET))
|
|
147
149
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
from collections.abc import Mapping
|
|
2
|
-
from typing import Any, TypeVar,
|
|
4
|
+
from typing import Any, TypeVar, cast
|
|
3
5
|
|
|
4
6
|
from attrs import define as _attrs_define
|
|
5
7
|
from attrs import field as _attrs_field
|
|
@@ -26,8 +28,8 @@ class DatabaseInfoResponse:
|
|
|
26
28
|
last_modified (str): Last modification timestamp
|
|
27
29
|
read_only (bool): Whether database is read-only
|
|
28
30
|
backup_count (int): Number of available backups
|
|
29
|
-
schema_version (
|
|
30
|
-
last_backup_date (
|
|
31
|
+
schema_version (None | str | Unset): Schema version
|
|
32
|
+
last_backup_date (None | str | Unset): Date of last backup
|
|
31
33
|
"""
|
|
32
34
|
|
|
33
35
|
graph_id: str
|
|
@@ -42,8 +44,8 @@ class DatabaseInfoResponse:
|
|
|
42
44
|
last_modified: str
|
|
43
45
|
read_only: bool
|
|
44
46
|
backup_count: int
|
|
45
|
-
schema_version:
|
|
46
|
-
last_backup_date:
|
|
47
|
+
schema_version: None | str | Unset = UNSET
|
|
48
|
+
last_backup_date: None | str | Unset = UNSET
|
|
47
49
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
50
|
|
|
49
51
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -71,13 +73,13 @@ class DatabaseInfoResponse:
|
|
|
71
73
|
|
|
72
74
|
backup_count = self.backup_count
|
|
73
75
|
|
|
74
|
-
schema_version:
|
|
76
|
+
schema_version: None | str | Unset
|
|
75
77
|
if isinstance(self.schema_version, Unset):
|
|
76
78
|
schema_version = UNSET
|
|
77
79
|
else:
|
|
78
80
|
schema_version = self.schema_version
|
|
79
81
|
|
|
80
|
-
last_backup_date:
|
|
82
|
+
last_backup_date: None | str | Unset
|
|
81
83
|
if isinstance(self.last_backup_date, Unset):
|
|
82
84
|
last_backup_date = UNSET
|
|
83
85
|
else:
|
|
@@ -135,21 +137,21 @@ class DatabaseInfoResponse:
|
|
|
135
137
|
|
|
136
138
|
backup_count = d.pop("backup_count")
|
|
137
139
|
|
|
138
|
-
def _parse_schema_version(data: object) ->
|
|
140
|
+
def _parse_schema_version(data: object) -> None | str | Unset:
|
|
139
141
|
if data is None:
|
|
140
142
|
return data
|
|
141
143
|
if isinstance(data, Unset):
|
|
142
144
|
return data
|
|
143
|
-
return cast(
|
|
145
|
+
return cast(None | str | Unset, data)
|
|
144
146
|
|
|
145
147
|
schema_version = _parse_schema_version(d.pop("schema_version", UNSET))
|
|
146
148
|
|
|
147
|
-
def _parse_last_backup_date(data: object) ->
|
|
149
|
+
def _parse_last_backup_date(data: object) -> None | str | Unset:
|
|
148
150
|
if data is None:
|
|
149
151
|
return data
|
|
150
152
|
if isinstance(data, Unset):
|
|
151
153
|
return data
|
|
152
|
-
return cast(
|
|
154
|
+
return cast(None | str | Unset, data)
|
|
153
155
|
|
|
154
156
|
last_backup_date = _parse_last_backup_date(d.pop("last_backup_date", UNSET))
|
|
155
157
|
|