robosystems-client 0.2.15__py3-none-any.whl → 0.2.16__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 +39 -0
- robosystems_client/extensions/element_mapping_client.py +585 -0
- robosystems_client/extensions/subgraph_workspace_client.py +744 -0
- robosystems_client/extensions/table_ingest_client.py +24 -23
- 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.16.dist-info}/METADATA +1 -1
- robosystems_client-0.2.16.dist-info/RECORD +418 -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/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.16.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.15.dist-info → robosystems_client-0.2.16.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
|
@@ -17,19 +19,19 @@ class SubgraphQuotaResponse:
|
|
|
17
19
|
parent_graph_id (str): Parent graph identifier
|
|
18
20
|
tier (str): Graph tier
|
|
19
21
|
current_count (int): Current number of subgraphs
|
|
20
|
-
max_allowed (
|
|
21
|
-
remaining (
|
|
22
|
-
total_size_mb (
|
|
23
|
-
max_size_mb (
|
|
22
|
+
max_allowed (int | None | Unset): Maximum allowed subgraphs (None = unlimited)
|
|
23
|
+
remaining (int | None | Unset): Remaining subgraphs that can be created
|
|
24
|
+
total_size_mb (float | None | Unset): Total size of all subgraphs
|
|
25
|
+
max_size_mb (float | None | Unset): Maximum allowed total size
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
parent_graph_id: str
|
|
27
29
|
tier: str
|
|
28
30
|
current_count: int
|
|
29
|
-
max_allowed:
|
|
30
|
-
remaining:
|
|
31
|
-
total_size_mb:
|
|
32
|
-
max_size_mb:
|
|
31
|
+
max_allowed: int | None | Unset = UNSET
|
|
32
|
+
remaining: int | None | Unset = UNSET
|
|
33
|
+
total_size_mb: float | None | Unset = UNSET
|
|
34
|
+
max_size_mb: float | None | Unset = UNSET
|
|
33
35
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
36
|
|
|
35
37
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -39,25 +41,25 @@ class SubgraphQuotaResponse:
|
|
|
39
41
|
|
|
40
42
|
current_count = self.current_count
|
|
41
43
|
|
|
42
|
-
max_allowed:
|
|
44
|
+
max_allowed: int | None | Unset
|
|
43
45
|
if isinstance(self.max_allowed, Unset):
|
|
44
46
|
max_allowed = UNSET
|
|
45
47
|
else:
|
|
46
48
|
max_allowed = self.max_allowed
|
|
47
49
|
|
|
48
|
-
remaining:
|
|
50
|
+
remaining: int | None | Unset
|
|
49
51
|
if isinstance(self.remaining, Unset):
|
|
50
52
|
remaining = UNSET
|
|
51
53
|
else:
|
|
52
54
|
remaining = self.remaining
|
|
53
55
|
|
|
54
|
-
total_size_mb:
|
|
56
|
+
total_size_mb: float | None | Unset
|
|
55
57
|
if isinstance(self.total_size_mb, Unset):
|
|
56
58
|
total_size_mb = UNSET
|
|
57
59
|
else:
|
|
58
60
|
total_size_mb = self.total_size_mb
|
|
59
61
|
|
|
60
|
-
max_size_mb:
|
|
62
|
+
max_size_mb: float | None | Unset
|
|
61
63
|
if isinstance(self.max_size_mb, Unset):
|
|
62
64
|
max_size_mb = UNSET
|
|
63
65
|
else:
|
|
@@ -92,39 +94,39 @@ class SubgraphQuotaResponse:
|
|
|
92
94
|
|
|
93
95
|
current_count = d.pop("current_count")
|
|
94
96
|
|
|
95
|
-
def _parse_max_allowed(data: object) ->
|
|
97
|
+
def _parse_max_allowed(data: object) -> int | None | Unset:
|
|
96
98
|
if data is None:
|
|
97
99
|
return data
|
|
98
100
|
if isinstance(data, Unset):
|
|
99
101
|
return data
|
|
100
|
-
return cast(
|
|
102
|
+
return cast(int | None | Unset, data)
|
|
101
103
|
|
|
102
104
|
max_allowed = _parse_max_allowed(d.pop("max_allowed", UNSET))
|
|
103
105
|
|
|
104
|
-
def _parse_remaining(data: object) ->
|
|
106
|
+
def _parse_remaining(data: object) -> int | None | Unset:
|
|
105
107
|
if data is None:
|
|
106
108
|
return data
|
|
107
109
|
if isinstance(data, Unset):
|
|
108
110
|
return data
|
|
109
|
-
return cast(
|
|
111
|
+
return cast(int | None | Unset, data)
|
|
110
112
|
|
|
111
113
|
remaining = _parse_remaining(d.pop("remaining", UNSET))
|
|
112
114
|
|
|
113
|
-
def _parse_total_size_mb(data: object) ->
|
|
115
|
+
def _parse_total_size_mb(data: object) -> float | None | Unset:
|
|
114
116
|
if data is None:
|
|
115
117
|
return data
|
|
116
118
|
if isinstance(data, Unset):
|
|
117
119
|
return data
|
|
118
|
-
return cast(
|
|
120
|
+
return cast(float | None | Unset, data)
|
|
119
121
|
|
|
120
122
|
total_size_mb = _parse_total_size_mb(d.pop("total_size_mb", UNSET))
|
|
121
123
|
|
|
122
|
-
def _parse_max_size_mb(data: object) ->
|
|
124
|
+
def _parse_max_size_mb(data: object) -> float | None | Unset:
|
|
123
125
|
if data is None:
|
|
124
126
|
return data
|
|
125
127
|
if isinstance(data, Unset):
|
|
126
128
|
return data
|
|
127
|
-
return cast(
|
|
129
|
+
return cast(float | None | Unset, data)
|
|
128
130
|
|
|
129
131
|
max_size_mb = _parse_max_size_mb(d.pop("max_size_mb", UNSET))
|
|
130
132
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
import datetime
|
|
2
4
|
from collections.abc import Mapping
|
|
3
|
-
from typing import TYPE_CHECKING, Any, TypeVar,
|
|
5
|
+
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
4
6
|
|
|
5
7
|
from attrs import define as _attrs_define
|
|
6
8
|
from attrs import field as _attrs_field
|
|
@@ -30,12 +32,12 @@ class SubgraphResponse:
|
|
|
30
32
|
status (str): Current status of the subgraph
|
|
31
33
|
created_at (datetime.datetime): When the subgraph was created
|
|
32
34
|
updated_at (datetime.datetime): When the subgraph was last updated
|
|
33
|
-
description (
|
|
34
|
-
size_mb (
|
|
35
|
-
node_count (
|
|
36
|
-
edge_count (
|
|
37
|
-
last_accessed (
|
|
38
|
-
metadata (
|
|
35
|
+
description (None | str | Unset): Description of the subgraph's purpose
|
|
36
|
+
size_mb (float | None | Unset): Size of the subgraph database in megabytes
|
|
37
|
+
node_count (int | None | Unset): Number of nodes in the subgraph
|
|
38
|
+
edge_count (int | None | Unset): Number of edges in the subgraph
|
|
39
|
+
last_accessed (datetime.datetime | None | Unset): When the subgraph was last accessed
|
|
40
|
+
metadata (None | SubgraphResponseMetadataType0 | Unset): Additional metadata for the subgraph
|
|
39
41
|
"""
|
|
40
42
|
|
|
41
43
|
graph_id: str
|
|
@@ -47,12 +49,12 @@ class SubgraphResponse:
|
|
|
47
49
|
status: str
|
|
48
50
|
created_at: datetime.datetime
|
|
49
51
|
updated_at: datetime.datetime
|
|
50
|
-
description:
|
|
51
|
-
size_mb:
|
|
52
|
-
node_count:
|
|
53
|
-
edge_count:
|
|
54
|
-
last_accessed:
|
|
55
|
-
metadata:
|
|
52
|
+
description: None | str | Unset = UNSET
|
|
53
|
+
size_mb: float | None | Unset = UNSET
|
|
54
|
+
node_count: int | None | Unset = UNSET
|
|
55
|
+
edge_count: int | None | Unset = UNSET
|
|
56
|
+
last_accessed: datetime.datetime | None | Unset = UNSET
|
|
57
|
+
metadata: None | SubgraphResponseMetadataType0 | Unset = UNSET
|
|
56
58
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
57
59
|
|
|
58
60
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -76,31 +78,31 @@ class SubgraphResponse:
|
|
|
76
78
|
|
|
77
79
|
updated_at = self.updated_at.isoformat()
|
|
78
80
|
|
|
79
|
-
description:
|
|
81
|
+
description: None | str | Unset
|
|
80
82
|
if isinstance(self.description, Unset):
|
|
81
83
|
description = UNSET
|
|
82
84
|
else:
|
|
83
85
|
description = self.description
|
|
84
86
|
|
|
85
|
-
size_mb:
|
|
87
|
+
size_mb: float | None | Unset
|
|
86
88
|
if isinstance(self.size_mb, Unset):
|
|
87
89
|
size_mb = UNSET
|
|
88
90
|
else:
|
|
89
91
|
size_mb = self.size_mb
|
|
90
92
|
|
|
91
|
-
node_count:
|
|
93
|
+
node_count: int | None | Unset
|
|
92
94
|
if isinstance(self.node_count, Unset):
|
|
93
95
|
node_count = UNSET
|
|
94
96
|
else:
|
|
95
97
|
node_count = self.node_count
|
|
96
98
|
|
|
97
|
-
edge_count:
|
|
99
|
+
edge_count: int | None | Unset
|
|
98
100
|
if isinstance(self.edge_count, Unset):
|
|
99
101
|
edge_count = UNSET
|
|
100
102
|
else:
|
|
101
103
|
edge_count = self.edge_count
|
|
102
104
|
|
|
103
|
-
last_accessed:
|
|
105
|
+
last_accessed: None | str | Unset
|
|
104
106
|
if isinstance(self.last_accessed, Unset):
|
|
105
107
|
last_accessed = UNSET
|
|
106
108
|
elif isinstance(self.last_accessed, datetime.datetime):
|
|
@@ -108,7 +110,7 @@ class SubgraphResponse:
|
|
|
108
110
|
else:
|
|
109
111
|
last_accessed = self.last_accessed
|
|
110
112
|
|
|
111
|
-
metadata:
|
|
113
|
+
metadata: dict[str, Any] | None | Unset
|
|
112
114
|
if isinstance(self.metadata, Unset):
|
|
113
115
|
metadata = UNSET
|
|
114
116
|
elif isinstance(self.metadata, SubgraphResponseMetadataType0):
|
|
@@ -169,43 +171,43 @@ class SubgraphResponse:
|
|
|
169
171
|
|
|
170
172
|
updated_at = isoparse(d.pop("updated_at"))
|
|
171
173
|
|
|
172
|
-
def _parse_description(data: object) ->
|
|
174
|
+
def _parse_description(data: object) -> None | str | Unset:
|
|
173
175
|
if data is None:
|
|
174
176
|
return data
|
|
175
177
|
if isinstance(data, Unset):
|
|
176
178
|
return data
|
|
177
|
-
return cast(
|
|
179
|
+
return cast(None | str | Unset, data)
|
|
178
180
|
|
|
179
181
|
description = _parse_description(d.pop("description", UNSET))
|
|
180
182
|
|
|
181
|
-
def _parse_size_mb(data: object) ->
|
|
183
|
+
def _parse_size_mb(data: object) -> float | None | Unset:
|
|
182
184
|
if data is None:
|
|
183
185
|
return data
|
|
184
186
|
if isinstance(data, Unset):
|
|
185
187
|
return data
|
|
186
|
-
return cast(
|
|
188
|
+
return cast(float | None | Unset, data)
|
|
187
189
|
|
|
188
190
|
size_mb = _parse_size_mb(d.pop("size_mb", UNSET))
|
|
189
191
|
|
|
190
|
-
def _parse_node_count(data: object) ->
|
|
192
|
+
def _parse_node_count(data: object) -> int | None | Unset:
|
|
191
193
|
if data is None:
|
|
192
194
|
return data
|
|
193
195
|
if isinstance(data, Unset):
|
|
194
196
|
return data
|
|
195
|
-
return cast(
|
|
197
|
+
return cast(int | None | Unset, data)
|
|
196
198
|
|
|
197
199
|
node_count = _parse_node_count(d.pop("node_count", UNSET))
|
|
198
200
|
|
|
199
|
-
def _parse_edge_count(data: object) ->
|
|
201
|
+
def _parse_edge_count(data: object) -> int | None | Unset:
|
|
200
202
|
if data is None:
|
|
201
203
|
return data
|
|
202
204
|
if isinstance(data, Unset):
|
|
203
205
|
return data
|
|
204
|
-
return cast(
|
|
206
|
+
return cast(int | None | Unset, data)
|
|
205
207
|
|
|
206
208
|
edge_count = _parse_edge_count(d.pop("edge_count", UNSET))
|
|
207
209
|
|
|
208
|
-
def _parse_last_accessed(data: object) ->
|
|
210
|
+
def _parse_last_accessed(data: object) -> datetime.datetime | None | Unset:
|
|
209
211
|
if data is None:
|
|
210
212
|
return data
|
|
211
213
|
if isinstance(data, Unset):
|
|
@@ -216,15 +218,13 @@ class SubgraphResponse:
|
|
|
216
218
|
last_accessed_type_0 = isoparse(data)
|
|
217
219
|
|
|
218
220
|
return last_accessed_type_0
|
|
219
|
-
except
|
|
221
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
220
222
|
pass
|
|
221
|
-
return cast(
|
|
223
|
+
return cast(datetime.datetime | None | Unset, data)
|
|
222
224
|
|
|
223
225
|
last_accessed = _parse_last_accessed(d.pop("last_accessed", UNSET))
|
|
224
226
|
|
|
225
|
-
def _parse_metadata(
|
|
226
|
-
data: object,
|
|
227
|
-
) -> Union["SubgraphResponseMetadataType0", None, Unset]:
|
|
227
|
+
def _parse_metadata(data: object) -> None | SubgraphResponseMetadataType0 | Unset:
|
|
228
228
|
if data is None:
|
|
229
229
|
return data
|
|
230
230
|
if isinstance(data, Unset):
|
|
@@ -235,9 +235,9 @@ class SubgraphResponse:
|
|
|
235
235
|
metadata_type_0 = SubgraphResponseMetadataType0.from_dict(data)
|
|
236
236
|
|
|
237
237
|
return metadata_type_0
|
|
238
|
-
except
|
|
238
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
239
239
|
pass
|
|
240
|
-
return cast(
|
|
240
|
+
return cast(None | SubgraphResponseMetadataType0 | Unset, data)
|
|
241
241
|
|
|
242
242
|
metadata = _parse_metadata(d.pop("metadata", UNSET))
|
|
243
243
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
1
3
|
import datetime
|
|
2
4
|
from collections.abc import Mapping
|
|
3
|
-
from typing import Any, TypeVar,
|
|
5
|
+
from typing import Any, TypeVar, cast
|
|
4
6
|
|
|
5
7
|
from attrs import define as _attrs_define
|
|
6
8
|
from attrs import field as _attrs_field
|
|
@@ -23,8 +25,8 @@ class SubgraphSummary:
|
|
|
23
25
|
subgraph_type (SubgraphType): Types of subgraphs.
|
|
24
26
|
status (str): Current status
|
|
25
27
|
created_at (datetime.datetime): Creation timestamp
|
|
26
|
-
size_mb (
|
|
27
|
-
last_accessed (
|
|
28
|
+
size_mb (float | None | Unset): Size in megabytes
|
|
29
|
+
last_accessed (datetime.datetime | None | Unset): Last access timestamp
|
|
28
30
|
"""
|
|
29
31
|
|
|
30
32
|
graph_id: str
|
|
@@ -33,8 +35,8 @@ class SubgraphSummary:
|
|
|
33
35
|
subgraph_type: SubgraphType
|
|
34
36
|
status: str
|
|
35
37
|
created_at: datetime.datetime
|
|
36
|
-
size_mb:
|
|
37
|
-
last_accessed:
|
|
38
|
+
size_mb: float | None | Unset = UNSET
|
|
39
|
+
last_accessed: datetime.datetime | None | Unset = UNSET
|
|
38
40
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
41
|
|
|
40
42
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -50,13 +52,13 @@ class SubgraphSummary:
|
|
|
50
52
|
|
|
51
53
|
created_at = self.created_at.isoformat()
|
|
52
54
|
|
|
53
|
-
size_mb:
|
|
55
|
+
size_mb: float | None | Unset
|
|
54
56
|
if isinstance(self.size_mb, Unset):
|
|
55
57
|
size_mb = UNSET
|
|
56
58
|
else:
|
|
57
59
|
size_mb = self.size_mb
|
|
58
60
|
|
|
59
|
-
last_accessed:
|
|
61
|
+
last_accessed: None | str | Unset
|
|
60
62
|
if isinstance(self.last_accessed, Unset):
|
|
61
63
|
last_accessed = UNSET
|
|
62
64
|
elif isinstance(self.last_accessed, datetime.datetime):
|
|
@@ -98,16 +100,16 @@ class SubgraphSummary:
|
|
|
98
100
|
|
|
99
101
|
created_at = isoparse(d.pop("created_at"))
|
|
100
102
|
|
|
101
|
-
def _parse_size_mb(data: object) ->
|
|
103
|
+
def _parse_size_mb(data: object) -> float | None | Unset:
|
|
102
104
|
if data is None:
|
|
103
105
|
return data
|
|
104
106
|
if isinstance(data, Unset):
|
|
105
107
|
return data
|
|
106
|
-
return cast(
|
|
108
|
+
return cast(float | None | Unset, data)
|
|
107
109
|
|
|
108
110
|
size_mb = _parse_size_mb(d.pop("size_mb", UNSET))
|
|
109
111
|
|
|
110
|
-
def _parse_last_accessed(data: object) ->
|
|
112
|
+
def _parse_last_accessed(data: object) -> datetime.datetime | None | Unset:
|
|
111
113
|
if data is None:
|
|
112
114
|
return data
|
|
113
115
|
if isinstance(data, Unset):
|
|
@@ -118,9 +120,9 @@ class SubgraphSummary:
|
|
|
118
120
|
last_accessed_type_0 = isoparse(data)
|
|
119
121
|
|
|
120
122
|
return last_accessed_type_0
|
|
121
|
-
except
|
|
123
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
122
124
|
pass
|
|
123
|
-
return cast(
|
|
125
|
+
return cast(datetime.datetime | None | Unset, data)
|
|
124
126
|
|
|
125
127
|
last_accessed = _parse_last_accessed(d.pop("last_accessed", UNSET))
|
|
126
128
|
|
|
@@ -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
|
|
@@ -22,13 +24,13 @@ class SuccessResponse:
|
|
|
22
24
|
|
|
23
25
|
Attributes:
|
|
24
26
|
message (str): Human-readable success message
|
|
25
|
-
success (
|
|
26
|
-
data (
|
|
27
|
+
success (bool | Unset): Indicates the operation completed successfully Default: True.
|
|
28
|
+
data (None | SuccessResponseDataType0 | Unset): Optional additional data related to the operation
|
|
27
29
|
"""
|
|
28
30
|
|
|
29
31
|
message: str
|
|
30
|
-
success:
|
|
31
|
-
data:
|
|
32
|
+
success: bool | Unset = True
|
|
33
|
+
data: None | SuccessResponseDataType0 | Unset = UNSET
|
|
32
34
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
33
35
|
|
|
34
36
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -38,7 +40,7 @@ class SuccessResponse:
|
|
|
38
40
|
|
|
39
41
|
success = self.success
|
|
40
42
|
|
|
41
|
-
data:
|
|
43
|
+
data: dict[str, Any] | None | Unset
|
|
42
44
|
if isinstance(self.data, Unset):
|
|
43
45
|
data = UNSET
|
|
44
46
|
elif isinstance(self.data, SuccessResponseDataType0):
|
|
@@ -69,7 +71,7 @@ class SuccessResponse:
|
|
|
69
71
|
|
|
70
72
|
success = d.pop("success", UNSET)
|
|
71
73
|
|
|
72
|
-
def _parse_data(data: object) ->
|
|
74
|
+
def _parse_data(data: object) -> None | SuccessResponseDataType0 | Unset:
|
|
73
75
|
if data is None:
|
|
74
76
|
return data
|
|
75
77
|
if isinstance(data, Unset):
|
|
@@ -80,9 +82,9 @@ class SuccessResponse:
|
|
|
80
82
|
data_type_0 = SuccessResponseDataType0.from_dict(data)
|
|
81
83
|
|
|
82
84
|
return data_type_0
|
|
83
|
-
except
|
|
85
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
84
86
|
pass
|
|
85
|
-
return cast(
|
|
87
|
+
return cast(None | SuccessResponseDataType0 | Unset, data)
|
|
86
88
|
|
|
87
89
|
data = _parse_data(d.pop("data", UNSET))
|
|
88
90
|
|
|
@@ -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
|
|
@@ -20,12 +22,12 @@ class SyncConnectionRequest:
|
|
|
20
22
|
"""Request to sync a connection.
|
|
21
23
|
|
|
22
24
|
Attributes:
|
|
23
|
-
full_sync (
|
|
24
|
-
sync_options (
|
|
25
|
+
full_sync (bool | Unset): Perform full sync vs incremental Default: False.
|
|
26
|
+
sync_options (None | SyncConnectionRequestSyncOptionsType0 | Unset): Provider-specific sync options
|
|
25
27
|
"""
|
|
26
28
|
|
|
27
|
-
full_sync:
|
|
28
|
-
sync_options:
|
|
29
|
+
full_sync: bool | Unset = False
|
|
30
|
+
sync_options: None | SyncConnectionRequestSyncOptionsType0 | Unset = UNSET
|
|
29
31
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
32
|
|
|
31
33
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -35,7 +37,7 @@ class SyncConnectionRequest:
|
|
|
35
37
|
|
|
36
38
|
full_sync = self.full_sync
|
|
37
39
|
|
|
38
|
-
sync_options:
|
|
40
|
+
sync_options: dict[str, Any] | None | Unset
|
|
39
41
|
if isinstance(self.sync_options, Unset):
|
|
40
42
|
sync_options = UNSET
|
|
41
43
|
elif isinstance(self.sync_options, SyncConnectionRequestSyncOptionsType0):
|
|
@@ -64,7 +66,7 @@ class SyncConnectionRequest:
|
|
|
64
66
|
|
|
65
67
|
def _parse_sync_options(
|
|
66
68
|
data: object,
|
|
67
|
-
) ->
|
|
69
|
+
) -> None | SyncConnectionRequestSyncOptionsType0 | Unset:
|
|
68
70
|
if data is None:
|
|
69
71
|
return data
|
|
70
72
|
if isinstance(data, Unset):
|
|
@@ -75,9 +77,9 @@ class SyncConnectionRequest:
|
|
|
75
77
|
sync_options_type_0 = SyncConnectionRequestSyncOptionsType0.from_dict(data)
|
|
76
78
|
|
|
77
79
|
return sync_options_type_0
|
|
78
|
-
except
|
|
80
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
79
81
|
pass
|
|
80
|
-
return cast(
|
|
82
|
+
return cast(None | SyncConnectionRequestSyncOptionsType0 | Unset, data)
|
|
81
83
|
|
|
82
84
|
sync_options = _parse_sync_options(d.pop("sync_options", UNSET))
|
|
83
85
|
|
|
@@ -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
|
|
@@ -15,16 +17,16 @@ class TableInfo:
|
|
|
15
17
|
Attributes:
|
|
16
18
|
table_name (str): Table name
|
|
17
19
|
row_count (int): Approximate row count
|
|
18
|
-
file_count (
|
|
19
|
-
total_size_bytes (
|
|
20
|
-
s3_location (
|
|
20
|
+
file_count (int | Unset): Number of files Default: 0.
|
|
21
|
+
total_size_bytes (int | Unset): Total size in bytes Default: 0.
|
|
22
|
+
s3_location (None | str | Unset): S3 location for external tables
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
table_name: str
|
|
24
26
|
row_count: int
|
|
25
|
-
file_count:
|
|
26
|
-
total_size_bytes:
|
|
27
|
-
s3_location:
|
|
27
|
+
file_count: int | Unset = 0
|
|
28
|
+
total_size_bytes: int | Unset = 0
|
|
29
|
+
s3_location: None | str | Unset = UNSET
|
|
28
30
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
29
31
|
|
|
30
32
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -36,7 +38,7 @@ class TableInfo:
|
|
|
36
38
|
|
|
37
39
|
total_size_bytes = self.total_size_bytes
|
|
38
40
|
|
|
39
|
-
s3_location:
|
|
41
|
+
s3_location: None | str | Unset
|
|
40
42
|
if isinstance(self.s3_location, Unset):
|
|
41
43
|
s3_location = UNSET
|
|
42
44
|
else:
|
|
@@ -70,12 +72,12 @@ class TableInfo:
|
|
|
70
72
|
|
|
71
73
|
total_size_bytes = d.pop("total_size_bytes", UNSET)
|
|
72
74
|
|
|
73
|
-
def _parse_s3_location(data: object) ->
|
|
75
|
+
def _parse_s3_location(data: object) -> None | str | Unset:
|
|
74
76
|
if data is None:
|
|
75
77
|
return data
|
|
76
78
|
if isinstance(data, Unset):
|
|
77
79
|
return data
|
|
78
|
-
return cast(
|
|
80
|
+
return cast(None | str | Unset, data)
|
|
79
81
|
|
|
80
82
|
s3_location = _parse_s3_location(d.pop("s3_location", UNSET))
|
|
81
83
|
|
|
@@ -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
|
|
|
@@ -15,11 +17,11 @@ T = TypeVar("T", bound="TableListResponse")
|
|
|
15
17
|
class TableListResponse:
|
|
16
18
|
"""
|
|
17
19
|
Attributes:
|
|
18
|
-
tables (list[
|
|
20
|
+
tables (list[TableInfo]): List of tables
|
|
19
21
|
total_count (int): Total number of tables
|
|
20
22
|
"""
|
|
21
23
|
|
|
22
|
-
tables: list[
|
|
24
|
+
tables: list[TableInfo]
|
|
23
25
|
total_count: int
|
|
24
26
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
27
|
|
|
@@ -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
|
|
|
@@ -14,17 +16,17 @@ class TableQueryRequest:
|
|
|
14
16
|
Attributes:
|
|
15
17
|
sql (str): SQL query to execute on staging tables. Use ? placeholders or $param_name for dynamic values to
|
|
16
18
|
prevent SQL injection.
|
|
17
|
-
parameters (
|
|
19
|
+
parameters (list[Any] | None | Unset): Query parameters for safe value substitution. ALWAYS use parameters
|
|
18
20
|
instead of string concatenation.
|
|
19
21
|
"""
|
|
20
22
|
|
|
21
23
|
sql: str
|
|
22
|
-
parameters:
|
|
24
|
+
parameters: list[Any] | None | Unset = UNSET
|
|
23
25
|
|
|
24
26
|
def to_dict(self) -> dict[str, Any]:
|
|
25
27
|
sql = self.sql
|
|
26
28
|
|
|
27
|
-
parameters:
|
|
29
|
+
parameters: list[Any] | None | Unset
|
|
28
30
|
if isinstance(self.parameters, Unset):
|
|
29
31
|
parameters = UNSET
|
|
30
32
|
elif isinstance(self.parameters, list):
|
|
@@ -50,7 +52,7 @@ class TableQueryRequest:
|
|
|
50
52
|
d = dict(src_dict)
|
|
51
53
|
sql = d.pop("sql")
|
|
52
54
|
|
|
53
|
-
def _parse_parameters(data: object) ->
|
|
55
|
+
def _parse_parameters(data: object) -> list[Any] | None | Unset:
|
|
54
56
|
if data is None:
|
|
55
57
|
return data
|
|
56
58
|
if isinstance(data, Unset):
|
|
@@ -61,9 +63,9 @@ class TableQueryRequest:
|
|
|
61
63
|
parameters_type_0 = cast(list[Any], data)
|
|
62
64
|
|
|
63
65
|
return parameters_type_0
|
|
64
|
-
except
|
|
66
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
65
67
|
pass
|
|
66
|
-
return cast(
|
|
68
|
+
return cast(list[Any] | None | Unset, data)
|
|
67
69
|
|
|
68
70
|
parameters = _parse_parameters(d.pop("parameters", UNSET))
|
|
69
71
|
|