blaxel 0.1.21rc69__py3-none-any.whl → 0.2.0rc1__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.
- blaxel/__init__.py +6 -3
- blaxel/core/__init__.py +44 -0
- blaxel/core/agents/__init__.py +115 -0
- blaxel/{authentication → core/authentication}/apikey.py +1 -0
- blaxel/{authentication → core/authentication}/clientcredentials.py +6 -2
- blaxel/{client → core/client}/api/agents/create_agent.py +1 -1
- blaxel/{client → core/client}/api/agents/update_agent.py +1 -1
- blaxel/{client → core/client}/api/compute/create_sandbox.py +1 -1
- blaxel/{client → core/client}/api/compute/create_sandbox_preview.py +1 -1
- blaxel/{client → core/client}/api/compute/create_sandbox_preview_token.py +1 -1
- blaxel/{client → core/client}/api/compute/update_sandbox.py +1 -1
- blaxel/{client → core/client}/api/compute/update_sandbox_preview.py +1 -1
- blaxel/{client → core/client}/api/functions/create_function.py +1 -1
- blaxel/{client → core/client}/api/functions/update_function.py +1 -1
- blaxel/{client → core/client}/api/integrations/create_integration_connection.py +1 -1
- blaxel/{client → core/client}/api/integrations/update_integration_connection.py +1 -1
- blaxel/{client → core/client}/api/jobs/create_job.py +1 -1
- blaxel/{client → core/client}/api/jobs/update_job.py +1 -1
- blaxel/{client → core/client}/api/knowledgebases/create_knowledgebase.py +1 -1
- blaxel/{client → core/client}/api/knowledgebases/update_knowledgebase.py +1 -1
- blaxel/{client → core/client}/api/models/create_model.py +1 -1
- blaxel/{client → core/client}/api/models/update_model.py +1 -1
- blaxel/{client → core/client}/api/policies/create_policy.py +1 -1
- blaxel/{client → core/client}/api/policies/update_policy.py +1 -1
- blaxel/{client → core/client}/api/service_accounts/create_api_key_for_service_account.py +1 -1
- blaxel/{client → core/client}/api/service_accounts/create_workspace_service_account.py +1 -1
- blaxel/{client → core/client}/api/service_accounts/update_workspace_service_account.py +1 -1
- blaxel/{client → core/client}/api/workspaces/check_workspace_availability.py +1 -1
- blaxel/{client → core/client}/api/workspaces/create_worspace.py +1 -1
- blaxel/{client → core/client}/api/workspaces/invite_workspace_user.py +1 -1
- blaxel/{client → core/client}/api/workspaces/update_workspace.py +1 -1
- blaxel/{client → core/client}/api/workspaces/update_workspace_user_role.py +1 -1
- blaxel/{client → core/client}/models/__init__.py +18 -0
- blaxel/{client → core/client}/models/agent.py +1 -1
- blaxel/{client → core/client}/models/agent_spec.py +2 -2
- blaxel/core/client/models/billable_time_metric.py +70 -0
- blaxel/{client → core/client}/models/core_spec.py +1 -1
- blaxel/{client → core/client}/models/function.py +1 -1
- blaxel/{client → core/client}/models/function_schema_properties.py +1 -1
- blaxel/{client → core/client}/models/function_spec.py +2 -2
- blaxel/{client → core/client}/models/integration.py +2 -2
- blaxel/{client → core/client}/models/integration_endpoints.py +1 -1
- blaxel/{client → core/client}/models/job.py +1 -1
- blaxel/{client → core/client}/models/job_spec.py +1 -1
- blaxel/{client → core/client}/models/jobs_chart_value.py +2 -2
- blaxel/{client → core/client}/models/knowledgebase.py +1 -1
- blaxel/{client → core/client}/models/location_response.py +1 -1
- blaxel/core/client/models/logs_response.py +63 -0
- blaxel/core/client/models/logs_response_data.py +99 -0
- blaxel/core/client/models/memory_allocation_by_name.py +70 -0
- blaxel/{client → core/client}/models/metadata.py +9 -0
- blaxel/{client → core/client}/models/model.py +1 -1
- blaxel/{client → core/client}/models/model_spec.py +1 -1
- blaxel/{client → core/client}/models/policy_spec.py +2 -2
- blaxel/core/client/models/resource.py +79 -0
- blaxel/core/client/models/resource_log_chart.py +133 -0
- blaxel/core/client/models/resource_log_response.py +83 -0
- blaxel/{client → core/client}/models/resource_metrics.py +27 -3
- blaxel/core/client/models/resource_trace.py +97 -0
- blaxel/{client → core/client}/models/runtime.py +1 -1
- blaxel/{client → core/client}/models/sandbox.py +1 -1
- blaxel/{client → core/client}/models/sandbox_definition.py +1 -1
- blaxel/{client → core/client}/models/sandbox_spec.py +1 -1
- blaxel/{client → core/client}/models/store_agent.py +1 -1
- blaxel/{client → core/client}/models/store_configuration.py +1 -1
- blaxel/{client → core/client}/models/template.py +1 -1
- blaxel/core/client/models/websocket_message.py +106 -0
- blaxel/core/common/__init__.py +6 -0
- blaxel/core/common/autoload.py +21 -0
- blaxel/{common → core/common}/internal.py +34 -62
- blaxel/core/common/logger.py +131 -0
- blaxel/{jobs → core/jobs}/__init__.py +41 -61
- blaxel/core/mcp/__init__.py +4 -0
- blaxel/{mcp → core/mcp}/client.py +13 -7
- blaxel/{mcp → core/mcp}/server.py +76 -17
- blaxel/core/models/__init__.py +52 -0
- blaxel/core/sandbox/__init__.py +29 -0
- blaxel/core/sandbox/action.py +79 -0
- blaxel/{sandbox → core/sandbox}/client/api/filesystem/put_filesystem_path.py +1 -1
- blaxel/{sandbox → core/sandbox}/client/api/network/post_network_process_pid_monitor.py +1 -1
- blaxel/core/sandbox/client/api/process/__init__.py +0 -0
- blaxel/{sandbox → core/sandbox}/client/api/process/delete_process_identifier_kill.py +0 -26
- blaxel/{sandbox → core/sandbox}/client/api/process/post_process.py +1 -1
- blaxel/{sandbox → core/sandbox}/client/models/__init__.py +2 -2
- blaxel/{sandbox → core/sandbox}/client/models/directory.py +2 -2
- blaxel/{sandbox → core/sandbox}/client/models/process_request.py +25 -1
- blaxel/core/sandbox/client/models/process_request_env.py +49 -0
- blaxel/core/sandbox/filesystem.py +280 -0
- blaxel/core/sandbox/network.py +10 -0
- blaxel/{sandbox → core/sandbox}/preview.py +45 -17
- blaxel/core/sandbox/process.py +159 -0
- blaxel/{sandbox → core/sandbox}/sandbox.py +62 -5
- blaxel/core/sandbox/session.py +124 -0
- blaxel/core/sandbox/types.py +103 -0
- blaxel/{tools → core/tools}/__init__.py +63 -91
- blaxel/crewai/__init__.py +4 -0
- blaxel/{models/crewai.py → crewai/model.py} +4 -2
- blaxel/crewai/py.typed +0 -0
- blaxel/crewai/tools.py +26 -0
- blaxel/googleadk/__init__.py +4 -0
- blaxel/{models/googleadk.py → googleadk/model.py} +8 -2
- blaxel/googleadk/py.typed +0 -0
- blaxel/googleadk/tools.py +72 -0
- blaxel/langgraph/__init__.py +4 -0
- blaxel/{models/langchain.py → langgraph/model.py} +8 -4
- blaxel/langgraph/py.typed +0 -0
- blaxel/{tools/langchain.py → langgraph/tools.py} +7 -3
- blaxel/livekit/__init__.py +4 -0
- blaxel/{models/livekit.py → livekit/model.py} +7 -1
- blaxel/livekit/py.typed +0 -0
- blaxel/{tools/livekit.py → livekit/tools.py} +8 -1
- blaxel/llamaindex/__init__.py +4 -0
- blaxel/{models/llamaindex.py → llamaindex/model.py} +6 -3
- blaxel/llamaindex/py.typed +0 -0
- blaxel/{tools/llamaindex.py → llamaindex/tools.py} +7 -4
- blaxel/openai/__init__.py +4 -0
- blaxel/{models/openai.py → openai/model.py} +4 -2
- blaxel/openai/py.typed +0 -0
- blaxel/{tools/openai.py → openai/tools.py} +7 -3
- blaxel/pydantic/__init__.py +4 -0
- blaxel/{models/custom/pydantic → pydantic/custom}/gemini.py +0 -1
- blaxel/{models/pydantic.py → pydantic/model.py} +6 -4
- blaxel/pydantic/py.typed +0 -0
- blaxel/{tools/pydantic.py → pydantic/tools.py} +6 -3
- blaxel/telemetry/__init__.py +6 -0
- blaxel/telemetry/instrumentation/blaxel_core.py +124 -0
- blaxel/telemetry/instrumentation/blaxel_langgraph.py +74 -0
- blaxel/telemetry/instrumentation/blaxel_langgraph_gemini.py +360 -0
- blaxel/telemetry/instrumentation/blaxel_llamaindex.py +89 -0
- blaxel/telemetry/instrumentation/map.py +61 -0
- blaxel/telemetry/instrumentation/utils.py +74 -0
- blaxel/{common → telemetry/log}/logger.py +6 -12
- blaxel/{instrumentation → telemetry}/manager.py +20 -12
- blaxel/telemetry/py.typed +0 -0
- blaxel/{instrumentation → telemetry}/span.py +12 -1
- blaxel-0.2.0rc1.dist-info/METADATA +224 -0
- blaxel-0.2.0rc1.dist-info/RECORD +408 -0
- blaxel/agents/__init__.py +0 -135
- blaxel/common/autoload.py +0 -9
- blaxel/instrumentation/map.py +0 -49
- blaxel/mcp/__init__.py +0 -3
- blaxel/models/__init__.py +0 -104
- blaxel/sandbox/base.py +0 -68
- blaxel/sandbox/client/models/process_kill_request.py +0 -60
- blaxel/sandbox/filesystem.py +0 -104
- blaxel/sandbox/process.py +0 -56
- blaxel/tools/crewai.py +0 -22
- blaxel/tools/googleadk.py +0 -66
- blaxel-0.1.21rc69.dist-info/METADATA +0 -169
- blaxel-0.1.21rc69.dist-info/RECORD +0 -370
- /blaxel/{authentication → core/authentication}/__init__.py +0 -0
- /blaxel/{authentication → core/authentication}/devicemode.py +0 -0
- /blaxel/{authentication → core/authentication}/oauth.py +0 -0
- /blaxel/{authentication → core/authentication}/types.py +0 -0
- /blaxel/{cache → core/cache}/__init__.py +0 -0
- /blaxel/{cache → core/cache}/cache.py +0 -0
- /blaxel/{client → core/client}/__init__.py +0 -0
- /blaxel/{client → core/client}/api/__init__.py +0 -0
- /blaxel/{client → core/client}/api/agents/__init__.py +0 -0
- /blaxel/{client → core/client}/api/agents/delete_agent.py +0 -0
- /blaxel/{client → core/client}/api/agents/get_agent.py +0 -0
- /blaxel/{client → core/client}/api/agents/list_agent_revisions.py +0 -0
- /blaxel/{client → core/client}/api/agents/list_agents.py +0 -0
- /blaxel/{client → core/client}/api/compute/__init__.py +0 -0
- /blaxel/{client → core/client}/api/compute/delete_sandbox.py +0 -0
- /blaxel/{client → core/client}/api/compute/delete_sandbox_preview.py +0 -0
- /blaxel/{client → core/client}/api/compute/delete_sandbox_preview_token.py +0 -0
- /blaxel/{client → core/client}/api/compute/get_sandbox.py +0 -0
- /blaxel/{client → core/client}/api/compute/get_sandbox_preview.py +0 -0
- /blaxel/{client → core/client}/api/compute/list_sandbox_preview_tokens.py +0 -0
- /blaxel/{client → core/client}/api/compute/list_sandbox_previews.py +0 -0
- /blaxel/{client → core/client}/api/compute/list_sandboxes.py +0 -0
- /blaxel/{client → core/client}/api/compute/start_sandbox.py +0 -0
- /blaxel/{client → core/client}/api/compute/stop_sandbox.py +0 -0
- /blaxel/{client → core/client}/api/configurations/__init__.py +0 -0
- /blaxel/{client → core/client}/api/configurations/get_configuration.py +0 -0
- /blaxel/{client → core/client}/api/default/__init__.py +0 -0
- /blaxel/{client → core/client}/api/default/get_template.py +0 -0
- /blaxel/{client → core/client}/api/default/list_mcp_hub_definitions.py +0 -0
- /blaxel/{client → core/client}/api/default/list_sandbox_hub_definitions.py +0 -0
- /blaxel/{client → core/client}/api/functions/__init__.py +0 -0
- /blaxel/{client → core/client}/api/functions/delete_function.py +0 -0
- /blaxel/{client → core/client}/api/functions/get_function.py +0 -0
- /blaxel/{client → core/client}/api/functions/list_function_revisions.py +0 -0
- /blaxel/{client → core/client}/api/functions/list_functions.py +0 -0
- /blaxel/{client → core/client}/api/integrations/__init__.py +0 -0
- /blaxel/{client → core/client}/api/integrations/delete_integration_connection.py +0 -0
- /blaxel/{client → core/client}/api/integrations/get_integration.py +0 -0
- /blaxel/{client → core/client}/api/integrations/get_integration_connection.py +0 -0
- /blaxel/{client → core/client}/api/integrations/get_integration_connection_model.py +0 -0
- /blaxel/{client → core/client}/api/integrations/get_integration_connection_model_endpoint_configurations.py +0 -0
- /blaxel/{client → core/client}/api/integrations/list_integration_connection_models.py +0 -0
- /blaxel/{client → core/client}/api/integrations/list_integration_connections.py +0 -0
- /blaxel/{client → core/client}/api/invitations/__init__.py +0 -0
- /blaxel/{client → core/client}/api/invitations/list_all_pending_invitations.py +0 -0
- /blaxel/{client → core/client}/api/jobs/__init__.py +0 -0
- /blaxel/{client → core/client}/api/jobs/delete_job.py +0 -0
- /blaxel/{client → core/client}/api/jobs/get_job.py +0 -0
- /blaxel/{client → core/client}/api/jobs/list_job_revisions.py +0 -0
- /blaxel/{client → core/client}/api/jobs/list_jobs.py +0 -0
- /blaxel/{client → core/client}/api/knowledgebases/__init__.py +0 -0
- /blaxel/{client → core/client}/api/knowledgebases/delete_knowledgebase.py +0 -0
- /blaxel/{client → core/client}/api/knowledgebases/get_knowledgebase.py +0 -0
- /blaxel/{client → core/client}/api/knowledgebases/list_knowledgebase_revisions.py +0 -0
- /blaxel/{client → core/client}/api/knowledgebases/list_knowledgebases.py +0 -0
- /blaxel/{client → core/client}/api/locations/__init__.py +0 -0
- /blaxel/{client → core/client}/api/locations/list_locations.py +0 -0
- /blaxel/{client → core/client}/api/models/__init__.py +0 -0
- /blaxel/{client → core/client}/api/models/delete_model.py +0 -0
- /blaxel/{client → core/client}/api/models/get_model.py +0 -0
- /blaxel/{client → core/client}/api/models/list_model_revisions.py +0 -0
- /blaxel/{client → core/client}/api/models/list_models.py +0 -0
- /blaxel/{client → core/client}/api/policies/__init__.py +0 -0
- /blaxel/{client → core/client}/api/policies/delete_policy.py +0 -0
- /blaxel/{client → core/client}/api/policies/get_policy.py +0 -0
- /blaxel/{client → core/client}/api/policies/list_policies.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/__init__.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/create_private_cluster.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/delete_private_cluster.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/get_private_cluster.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/get_private_cluster_health.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/list_private_clusters.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/update_private_cluster.py +0 -0
- /blaxel/{client → core/client}/api/privateclusters/update_private_cluster_health.py +0 -0
- /blaxel/{client → core/client}/api/service_accounts/__init__.py +0 -0
- /blaxel/{client → core/client}/api/service_accounts/delete_api_key_for_service_account.py +0 -0
- /blaxel/{client → core/client}/api/service_accounts/delete_workspace_service_account.py +0 -0
- /blaxel/{client → core/client}/api/service_accounts/get_workspace_service_accounts.py +0 -0
- /blaxel/{client → core/client}/api/service_accounts/list_api_keys_for_service_account.py +0 -0
- /blaxel/{client → core/client}/api/templates/__init__.py +0 -0
- /blaxel/{client → core/client}/api/templates/list_templates.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/__init__.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/accept_workspace_invitation.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/decline_workspace_invitation.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/delete_workspace.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/get_workspace.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/leave_workspace.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/list_workspace_users.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/list_workspaces.py +0 -0
- /blaxel/{client → core/client}/api/workspaces/remove_workspace_user.py +0 -0
- /blaxel/{client → core/client}/client.py +0 -0
- /blaxel/{client → core/client}/errors.py +0 -0
- /blaxel/{client → core/client}/models/acl.py +0 -0
- /blaxel/{client → core/client}/models/api_key.py +0 -0
- /blaxel/{client → core/client}/models/check_workspace_availability_body.py +0 -0
- /blaxel/{client → core/client}/models/configuration.py +0 -0
- /blaxel/{client → core/client}/models/continent.py +0 -0
- /blaxel/{client → core/client}/models/core_event.py +0 -0
- /blaxel/{client → core/client}/models/core_spec_configurations.py +0 -0
- /blaxel/{client → core/client}/models/country.py +0 -0
- /blaxel/{client → core/client}/models/create_api_key_for_service_account_body.py +0 -0
- /blaxel/{client → core/client}/models/create_workspace_service_account_body.py +0 -0
- /blaxel/{client → core/client}/models/create_workspace_service_account_response_200.py +0 -0
- /blaxel/{client → core/client}/models/delete_sandbox_preview_token_response_200.py +0 -0
- /blaxel/{client → core/client}/models/delete_workspace_service_account_response_200.py +0 -0
- /blaxel/{client → core/client}/models/entrypoint.py +0 -0
- /blaxel/{client → core/client}/models/entrypoint_env.py +0 -0
- /blaxel/{client → core/client}/models/flavor.py +0 -0
- /blaxel/{client → core/client}/models/form.py +0 -0
- /blaxel/{client → core/client}/models/form_config.py +0 -0
- /blaxel/{client → core/client}/models/form_oauth.py +0 -0
- /blaxel/{client → core/client}/models/form_secrets.py +0 -0
- /blaxel/{client → core/client}/models/function_kit.py +0 -0
- /blaxel/{client → core/client}/models/function_schema.py +0 -0
- /blaxel/{client → core/client}/models/function_schema_not.py +0 -0
- /blaxel/{client → core/client}/models/function_schema_or_bool.py +0 -0
- /blaxel/{client → core/client}/models/get_workspace_service_accounts_response_200_item.py +0 -0
- /blaxel/{client → core/client}/models/histogram_bucket.py +0 -0
- /blaxel/{client → core/client}/models/histogram_stats.py +0 -0
- /blaxel/{client → core/client}/models/integration_additional_infos.py +0 -0
- /blaxel/{client → core/client}/models/integration_connection.py +0 -0
- /blaxel/{client → core/client}/models/integration_connection_spec.py +0 -0
- /blaxel/{client → core/client}/models/integration_connection_spec_config.py +0 -0
- /blaxel/{client → core/client}/models/integration_connection_spec_secret.py +0 -0
- /blaxel/{client → core/client}/models/integration_endpoint.py +0 -0
- /blaxel/{client → core/client}/models/integration_endpoint_token.py +0 -0
- /blaxel/{client → core/client}/models/integration_headers.py +0 -0
- /blaxel/{client → core/client}/models/integration_model.py +0 -0
- /blaxel/{client → core/client}/models/integration_organization.py +0 -0
- /blaxel/{client → core/client}/models/integration_query_params.py +0 -0
- /blaxel/{client → core/client}/models/integration_repository.py +0 -0
- /blaxel/{client → core/client}/models/invite_workspace_user_body.py +0 -0
- /blaxel/{client → core/client}/models/job_execution_config.py +0 -0
- /blaxel/{client → core/client}/models/job_metrics.py +0 -0
- /blaxel/{client → core/client}/models/job_metrics_executions_chart.py +0 -0
- /blaxel/{client → core/client}/models/job_metrics_executions_total.py +0 -0
- /blaxel/{client → core/client}/models/job_metrics_tasks_chart.py +0 -0
- /blaxel/{client → core/client}/models/job_metrics_tasks_total.py +0 -0
- /blaxel/{client → core/client}/models/jobs_chart.py +0 -0
- /blaxel/{client → core/client}/models/jobs_executions.py +0 -0
- /blaxel/{client → core/client}/models/jobs_network_chart.py +0 -0
- /blaxel/{client → core/client}/models/jobs_success_failed_chart.py +0 -0
- /blaxel/{client → core/client}/models/jobs_tasks.py +0 -0
- /blaxel/{client → core/client}/models/jobs_total.py +0 -0
- /blaxel/{client → core/client}/models/knowledgebase_spec.py +0 -0
- /blaxel/{client → core/client}/models/knowledgebase_spec_options.py +0 -0
- /blaxel/{client → core/client}/models/last_n_requests_metric.py +0 -0
- /blaxel/{client → core/client}/models/latency_metric.py +0 -0
- /blaxel/{client → core/client}/models/mcp_definition.py +0 -0
- /blaxel/{client → core/client}/models/mcp_definition_entrypoint.py +0 -0
- /blaxel/{client → core/client}/models/mcp_definition_form.py +0 -0
- /blaxel/{client → core/client}/models/memory_allocation_metric.py +0 -0
- /blaxel/{client → core/client}/models/metadata_labels.py +0 -0
- /blaxel/{client → core/client}/models/metric.py +0 -0
- /blaxel/{client → core/client}/models/metrics.py +0 -0
- /blaxel/{client → core/client}/models/metrics_models.py +0 -0
- /blaxel/{client → core/client}/models/metrics_request_total_per_code.py +0 -0
- /blaxel/{client → core/client}/models/metrics_rps_per_code.py +0 -0
- /blaxel/{client → core/client}/models/model_private_cluster.py +0 -0
- /blaxel/{client → core/client}/models/o_auth.py +0 -0
- /blaxel/{client → core/client}/models/owner_fields.py +0 -0
- /blaxel/{client → core/client}/models/pending_invitation.py +0 -0
- /blaxel/{client → core/client}/models/pending_invitation_accept.py +0 -0
- /blaxel/{client → core/client}/models/pending_invitation_render.py +0 -0
- /blaxel/{client → core/client}/models/pending_invitation_render_invited_by.py +0 -0
- /blaxel/{client → core/client}/models/pending_invitation_render_workspace.py +0 -0
- /blaxel/{client → core/client}/models/pending_invitation_workspace_details.py +0 -0
- /blaxel/{client → core/client}/models/pod_template_spec.py +0 -0
- /blaxel/{client → core/client}/models/policy.py +0 -0
- /blaxel/{client → core/client}/models/policy_location.py +0 -0
- /blaxel/{client → core/client}/models/policy_max_tokens.py +0 -0
- /blaxel/{client → core/client}/models/port.py +0 -0
- /blaxel/{client → core/client}/models/preview.py +0 -0
- /blaxel/{client → core/client}/models/preview_metadata.py +0 -0
- /blaxel/{client → core/client}/models/preview_spec.py +0 -0
- /blaxel/{client → core/client}/models/preview_spec_request_headers.py +0 -0
- /blaxel/{client → core/client}/models/preview_spec_response_headers.py +0 -0
- /blaxel/{client → core/client}/models/preview_token.py +0 -0
- /blaxel/{client → core/client}/models/preview_token_metadata.py +0 -0
- /blaxel/{client → core/client}/models/preview_token_spec.py +0 -0
- /blaxel/{client → core/client}/models/private_cluster.py +0 -0
- /blaxel/{client → core/client}/models/private_location.py +0 -0
- /blaxel/{client → core/client}/models/repository.py +0 -0
- /blaxel/{client → core/client}/models/request_duration_over_time_metric.py +0 -0
- /blaxel/{client → core/client}/models/request_duration_over_time_metrics.py +0 -0
- /blaxel/{client → core/client}/models/request_total_by_origin_metric.py +0 -0
- /blaxel/{client → core/client}/models/request_total_by_origin_metric_request_total_by_origin.py +0 -0
- /blaxel/{client → core/client}/models/request_total_by_origin_metric_request_total_by_origin_and_code.py +0 -0
- /blaxel/{client → core/client}/models/request_total_metric.py +0 -0
- /blaxel/{client → core/client}/models/request_total_metric_request_total_per_code.py +0 -0
- /blaxel/{client → core/client}/models/request_total_metric_rps_per_code.py +0 -0
- /blaxel/{client → core/client}/models/request_total_response_data.py +0 -0
- /blaxel/{client → core/client}/models/resource_log.py +0 -0
- /blaxel/{client → core/client}/models/resource_metrics_request_total_per_code.py +0 -0
- /blaxel/{client → core/client}/models/resource_metrics_request_total_per_code_previous.py +0 -0
- /blaxel/{client → core/client}/models/resource_metrics_rps_per_code.py +0 -0
- /blaxel/{client → core/client}/models/resource_metrics_rps_per_code_previous.py +0 -0
- /blaxel/{client → core/client}/models/revision_configuration.py +0 -0
- /blaxel/{client → core/client}/models/revision_metadata.py +0 -0
- /blaxel/{client → core/client}/models/runtime_configuration.py +0 -0
- /blaxel/{client → core/client}/models/runtime_startup_probe.py +0 -0
- /blaxel/{client → core/client}/models/serverless_config.py +0 -0
- /blaxel/{client → core/client}/models/serverless_config_configuration.py +0 -0
- /blaxel/{client → core/client}/models/spec_configuration.py +0 -0
- /blaxel/{client → core/client}/models/start_sandbox.py +0 -0
- /blaxel/{client → core/client}/models/stop_sandbox.py +0 -0
- /blaxel/{client → core/client}/models/store_agent_labels.py +0 -0
- /blaxel/{client → core/client}/models/store_configuration_option.py +0 -0
- /blaxel/{client → core/client}/models/template_variable.py +0 -0
- /blaxel/{client → core/client}/models/time_fields.py +0 -0
- /blaxel/{client → core/client}/models/time_to_first_token_over_time_metrics.py +0 -0
- /blaxel/{client → core/client}/models/token_rate_metric.py +0 -0
- /blaxel/{client → core/client}/models/token_rate_metrics.py +0 -0
- /blaxel/{client → core/client}/models/token_total_metric.py +0 -0
- /blaxel/{client → core/client}/models/trace_ids_response.py +0 -0
- /blaxel/{client → core/client}/models/trigger.py +0 -0
- /blaxel/{client → core/client}/models/trigger_configuration.py +0 -0
- /blaxel/{client → core/client}/models/update_workspace_service_account_body.py +0 -0
- /blaxel/{client → core/client}/models/update_workspace_service_account_response_200.py +0 -0
- /blaxel/{client → core/client}/models/update_workspace_user_role_body.py +0 -0
- /blaxel/{client → core/client}/models/websocket_channel.py +0 -0
- /blaxel/{client → core/client}/models/workspace.py +0 -0
- /blaxel/{client → core/client}/models/workspace_labels.py +0 -0
- /blaxel/{client → core/client}/models/workspace_runtime.py +0 -0
- /blaxel/{client → core/client}/models/workspace_user.py +0 -0
- /blaxel/{client → core/client}/py.typed +0 -0
- /blaxel/{client → core/client}/types.py +0 -0
- /blaxel/{common → core/common}/env.py +0 -0
- /blaxel/{common → core/common}/settings.py +0 -0
- /blaxel/{sandbox/client/api/filesystem/__init__.py → core/py.typed} +0 -0
- /blaxel/{sandbox → core/sandbox}/client/__init__.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/__init__.py +0 -0
- /blaxel/{sandbox/client/api/network → core/sandbox/client/api/filesystem}/__init__.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/filesystem/delete_filesystem_path.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/filesystem/get_filesystem_path.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/filesystem/get_watch_filesystem_path.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/filesystem/get_ws_watch_filesystem_path.py +0 -0
- /blaxel/{sandbox/client/api/process → core/sandbox/client/api/network}/__init__.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/network/delete_network_process_pid_monitor.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/network/get_network_process_pid_ports.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/process/delete_process_identifier.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/process/get_process.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/process/get_process_identifier.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/process/get_process_identifier_logs.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/process/get_process_identifier_logs_stream.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/api/process/get_ws_process_identifier_logs_stream.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/client.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/errors.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/delete_network_process_pid_monitor_response_200.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/error_response.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/file.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/file_request.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/file_with_content.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/get_network_process_pid_ports_response_200.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/port_monitor_request.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/post_network_process_pid_monitor_response_200.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/process_logs.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/process_response.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/process_response_status.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/subdirectory.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/models/success_response.py +0 -0
- /blaxel/{sandbox → core/sandbox}/client/py.typed +0 -0
- /blaxel/{sandbox → core/sandbox}/client/types.py +0 -0
- /blaxel/{tools → core/tools}/common.py +0 -0
- /blaxel/{tools → core/tools}/types.py +0 -0
- /blaxel/{models/custom/langchain → langgraph/custom}/gemini.py +0 -0
- /blaxel/{models/custom/llamaindex → llamaindex/custom}/cohere.py +0 -0
- /blaxel/{instrumentation → telemetry}/exporters.py +0 -0
- /blaxel/{instrumentation → telemetry/log}/log.py +0 -0
- {blaxel-0.1.21rc69.dist-info → blaxel-0.2.0rc1.dist-info}/WHEEL +0 -0
- {blaxel-0.1.21rc69.dist-info → blaxel-0.2.0rc1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
from typing import Any, TypeVar, Union
|
2
|
+
|
3
|
+
from attrs import define as _attrs_define
|
4
|
+
from attrs import field as _attrs_field
|
5
|
+
|
6
|
+
from ..types import UNSET, Unset
|
7
|
+
|
8
|
+
T = TypeVar("T", bound="BillableTimeMetric")
|
9
|
+
|
10
|
+
|
11
|
+
@_attrs_define
|
12
|
+
class BillableTimeMetric:
|
13
|
+
"""Billable time metric
|
14
|
+
|
15
|
+
Attributes:
|
16
|
+
billable_time (Union[Unset, float]): Billable time
|
17
|
+
total_allocation (Union[Unset, float]): Total memory allocation in GB-seconds
|
18
|
+
"""
|
19
|
+
|
20
|
+
billable_time: Union[Unset, float] = UNSET
|
21
|
+
total_allocation: Union[Unset, float] = UNSET
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
23
|
+
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
25
|
+
billable_time = self.billable_time
|
26
|
+
|
27
|
+
total_allocation = self.total_allocation
|
28
|
+
|
29
|
+
field_dict: dict[str, Any] = {}
|
30
|
+
field_dict.update(self.additional_properties)
|
31
|
+
field_dict.update({})
|
32
|
+
if billable_time is not UNSET:
|
33
|
+
field_dict["billableTime"] = billable_time
|
34
|
+
if total_allocation is not UNSET:
|
35
|
+
field_dict["totalAllocation"] = total_allocation
|
36
|
+
|
37
|
+
return field_dict
|
38
|
+
|
39
|
+
@classmethod
|
40
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
41
|
+
if not src_dict:
|
42
|
+
return None
|
43
|
+
d = src_dict.copy()
|
44
|
+
billable_time = d.pop("billableTime", UNSET)
|
45
|
+
|
46
|
+
total_allocation = d.pop("totalAllocation", UNSET)
|
47
|
+
|
48
|
+
billable_time_metric = cls(
|
49
|
+
billable_time=billable_time,
|
50
|
+
total_allocation=total_allocation,
|
51
|
+
)
|
52
|
+
|
53
|
+
billable_time_metric.additional_properties = d
|
54
|
+
return billable_time_metric
|
55
|
+
|
56
|
+
@property
|
57
|
+
def additional_keys(self) -> list[str]:
|
58
|
+
return list(self.additional_properties.keys())
|
59
|
+
|
60
|
+
def __getitem__(self, key: str) -> Any:
|
61
|
+
return self.additional_properties[key]
|
62
|
+
|
63
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
64
|
+
self.additional_properties[key] = value
|
65
|
+
|
66
|
+
def __delitem__(self, key: str) -> None:
|
67
|
+
del self.additional_properties[key]
|
68
|
+
|
69
|
+
def __contains__(self, key: str) -> bool:
|
70
|
+
return key in self.additional_properties
|
@@ -60,7 +60,7 @@ class CoreSpec:
|
|
60
60
|
if not isinstance(self.flavors, Unset):
|
61
61
|
flavors = []
|
62
62
|
for componentsschemas_flavors_item_data in self.flavors:
|
63
|
-
if type(componentsschemas_flavors_item_data)
|
63
|
+
if type(componentsschemas_flavors_item_data) is dict:
|
64
64
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data
|
65
65
|
else:
|
66
66
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data.to_dict()
|
@@ -36,7 +36,7 @@ class Function:
|
|
36
36
|
if not isinstance(self.events, Unset):
|
37
37
|
events = []
|
38
38
|
for componentsschemas_core_events_item_data in self.events:
|
39
|
-
if type(componentsschemas_core_events_item_data)
|
39
|
+
if type(componentsschemas_core_events_item_data) is dict:
|
40
40
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data
|
41
41
|
else:
|
42
42
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data.to_dict()
|
@@ -19,7 +19,7 @@ class FunctionSchemaProperties:
|
|
19
19
|
def to_dict(self) -> dict[str, Any]:
|
20
20
|
field_dict: dict[str, Any] = {}
|
21
21
|
for prop_name, prop in self.additional_properties.items():
|
22
|
-
if type(prop)
|
22
|
+
if type(prop) is dict:
|
23
23
|
field_dict[prop_name] = prop
|
24
24
|
else:
|
25
25
|
field_dict[prop_name] = prop.to_dict()
|
@@ -68,7 +68,7 @@ class FunctionSpec:
|
|
68
68
|
if not isinstance(self.flavors, Unset):
|
69
69
|
flavors = []
|
70
70
|
for componentsschemas_flavors_item_data in self.flavors:
|
71
|
-
if type(componentsschemas_flavors_item_data)
|
71
|
+
if type(componentsschemas_flavors_item_data) is dict:
|
72
72
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data
|
73
73
|
else:
|
74
74
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data.to_dict()
|
@@ -112,7 +112,7 @@ class FunctionSpec:
|
|
112
112
|
if not isinstance(self.kit, Unset):
|
113
113
|
kit = []
|
114
114
|
for kit_item_data in self.kit:
|
115
|
-
if type(kit_item_data)
|
115
|
+
if type(kit_item_data) is dict:
|
116
116
|
kit_item = kit_item_data
|
117
117
|
else:
|
118
118
|
kit_item = kit_item_data.to_dict()
|
@@ -69,7 +69,7 @@ class Integration:
|
|
69
69
|
if not isinstance(self.organizations, Unset):
|
70
70
|
organizations = []
|
71
71
|
for organizations_item_data in self.organizations:
|
72
|
-
if type(organizations_item_data)
|
72
|
+
if type(organizations_item_data) is dict:
|
73
73
|
organizations_item = organizations_item_data
|
74
74
|
else:
|
75
75
|
organizations_item = organizations_item_data.to_dict()
|
@@ -85,7 +85,7 @@ class Integration:
|
|
85
85
|
if not isinstance(self.repositories, Unset):
|
86
86
|
repositories = []
|
87
87
|
for repositories_item_data in self.repositories:
|
88
|
-
if type(repositories_item_data)
|
88
|
+
if type(repositories_item_data) is dict:
|
89
89
|
repositories_item = repositories_item_data
|
90
90
|
else:
|
91
91
|
repositories_item = repositories_item_data.to_dict()
|
@@ -19,7 +19,7 @@ class IntegrationEndpoints:
|
|
19
19
|
def to_dict(self) -> dict[str, Any]:
|
20
20
|
field_dict: dict[str, Any] = {}
|
21
21
|
for prop_name, prop in self.additional_properties.items():
|
22
|
-
if type(prop)
|
22
|
+
if type(prop) is dict:
|
23
23
|
field_dict[prop_name] = prop
|
24
24
|
else:
|
25
25
|
field_dict[prop_name] = prop.to_dict()
|
@@ -36,7 +36,7 @@ class Job:
|
|
36
36
|
if not isinstance(self.events, Unset):
|
37
37
|
events = []
|
38
38
|
for componentsschemas_core_events_item_data in self.events:
|
39
|
-
if type(componentsschemas_core_events_item_data)
|
39
|
+
if type(componentsschemas_core_events_item_data) is dict:
|
40
40
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data
|
41
41
|
else:
|
42
42
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data.to_dict()
|
@@ -60,7 +60,7 @@ class JobSpec:
|
|
60
60
|
if not isinstance(self.flavors, Unset):
|
61
61
|
flavors = []
|
62
62
|
for componentsschemas_flavors_item_data in self.flavors:
|
63
|
-
if type(componentsschemas_flavors_item_data)
|
63
|
+
if type(componentsschemas_flavors_item_data) is dict:
|
64
64
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data
|
65
65
|
else:
|
66
66
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data.to_dict()
|
@@ -14,11 +14,11 @@ class JobsChartValue:
|
|
14
14
|
|
15
15
|
Attributes:
|
16
16
|
timestamp (Union[Unset, str]): Metric timestamp
|
17
|
-
value (Union[Unset,
|
17
|
+
value (Union[Unset, float]): Metric value
|
18
18
|
"""
|
19
19
|
|
20
20
|
timestamp: Union[Unset, str] = UNSET
|
21
|
-
value: Union[Unset,
|
21
|
+
value: Union[Unset, float] = UNSET
|
22
22
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
23
23
|
|
24
24
|
def to_dict(self) -> dict[str, Any]:
|
@@ -36,7 +36,7 @@ class Knowledgebase:
|
|
36
36
|
if not isinstance(self.events, Unset):
|
37
37
|
events = []
|
38
38
|
for componentsschemas_core_events_item_data in self.events:
|
39
|
-
if type(componentsschemas_core_events_item_data)
|
39
|
+
if type(componentsschemas_core_events_item_data) is dict:
|
40
40
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data
|
41
41
|
else:
|
42
42
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data.to_dict()
|
@@ -40,7 +40,7 @@ class LocationResponse:
|
|
40
40
|
if not isinstance(self.flavors, Unset):
|
41
41
|
flavors = []
|
42
42
|
for flavors_item_data in self.flavors:
|
43
|
-
if type(flavors_item_data)
|
43
|
+
if type(flavors_item_data) is dict:
|
44
44
|
flavors_item = flavors_item_data
|
45
45
|
else:
|
46
46
|
flavors_item = flavors_item_data.to_dict()
|
@@ -0,0 +1,63 @@
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
2
|
+
|
3
|
+
from attrs import define as _attrs_define
|
4
|
+
from attrs import field as _attrs_field
|
5
|
+
|
6
|
+
from ..types import UNSET, Unset
|
7
|
+
|
8
|
+
T = TypeVar("T", bound="LogsResponse")
|
9
|
+
|
10
|
+
|
11
|
+
@_attrs_define
|
12
|
+
class LogsResponse:
|
13
|
+
"""Response for logs
|
14
|
+
|
15
|
+
Attributes:
|
16
|
+
data (Union[Unset, list[Any]]): Data
|
17
|
+
"""
|
18
|
+
|
19
|
+
data: Union[Unset, list[Any]] = UNSET
|
20
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
21
|
+
|
22
|
+
def to_dict(self) -> dict[str, Any]:
|
23
|
+
data: Union[Unset, list[Any]] = UNSET
|
24
|
+
if not isinstance(self.data, Unset):
|
25
|
+
data = self.data
|
26
|
+
|
27
|
+
field_dict: dict[str, Any] = {}
|
28
|
+
field_dict.update(self.additional_properties)
|
29
|
+
field_dict.update({})
|
30
|
+
if data is not UNSET:
|
31
|
+
field_dict["data"] = data
|
32
|
+
|
33
|
+
return field_dict
|
34
|
+
|
35
|
+
@classmethod
|
36
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
37
|
+
if not src_dict:
|
38
|
+
return None
|
39
|
+
d = src_dict.copy()
|
40
|
+
data = cast(list[Any], d.pop("data", UNSET))
|
41
|
+
|
42
|
+
logs_response = cls(
|
43
|
+
data=data,
|
44
|
+
)
|
45
|
+
|
46
|
+
logs_response.additional_properties = d
|
47
|
+
return logs_response
|
48
|
+
|
49
|
+
@property
|
50
|
+
def additional_keys(self) -> list[str]:
|
51
|
+
return list(self.additional_properties.keys())
|
52
|
+
|
53
|
+
def __getitem__(self, key: str) -> Any:
|
54
|
+
return self.additional_properties[key]
|
55
|
+
|
56
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
57
|
+
self.additional_properties[key] = value
|
58
|
+
|
59
|
+
def __delitem__(self, key: str) -> None:
|
60
|
+
del self.additional_properties[key]
|
61
|
+
|
62
|
+
def __contains__(self, key: str) -> bool:
|
63
|
+
return key in self.additional_properties
|
@@ -0,0 +1,99 @@
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
2
|
+
|
3
|
+
from attrs import define as _attrs_define
|
4
|
+
from attrs import field as _attrs_field
|
5
|
+
|
6
|
+
from ..types import UNSET, Unset
|
7
|
+
|
8
|
+
T = TypeVar("T", bound="LogsResponseData")
|
9
|
+
|
10
|
+
|
11
|
+
@_attrs_define
|
12
|
+
class LogsResponseData:
|
13
|
+
"""Response data for logs
|
14
|
+
|
15
|
+
Attributes:
|
16
|
+
body (Union[Unset, str]): Body of the log
|
17
|
+
log_attributes (Union[Unset, list[Any]]): Log attributes
|
18
|
+
severity_number (Union[Unset, int]): Severity number of the log
|
19
|
+
timestamp (Union[Unset, str]): Timestamp of the log
|
20
|
+
trace_id (Union[Unset, str]): Trace ID of the log
|
21
|
+
"""
|
22
|
+
|
23
|
+
body: Union[Unset, str] = UNSET
|
24
|
+
log_attributes: Union[Unset, list[Any]] = UNSET
|
25
|
+
severity_number: Union[Unset, int] = UNSET
|
26
|
+
timestamp: Union[Unset, str] = UNSET
|
27
|
+
trace_id: Union[Unset, str] = UNSET
|
28
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
29
|
+
|
30
|
+
def to_dict(self) -> dict[str, Any]:
|
31
|
+
body = self.body
|
32
|
+
|
33
|
+
log_attributes: Union[Unset, list[Any]] = UNSET
|
34
|
+
if not isinstance(self.log_attributes, Unset):
|
35
|
+
log_attributes = self.log_attributes
|
36
|
+
|
37
|
+
severity_number = self.severity_number
|
38
|
+
|
39
|
+
timestamp = self.timestamp
|
40
|
+
|
41
|
+
trace_id = self.trace_id
|
42
|
+
|
43
|
+
field_dict: dict[str, Any] = {}
|
44
|
+
field_dict.update(self.additional_properties)
|
45
|
+
field_dict.update({})
|
46
|
+
if body is not UNSET:
|
47
|
+
field_dict["body"] = body
|
48
|
+
if log_attributes is not UNSET:
|
49
|
+
field_dict["logAttributes"] = log_attributes
|
50
|
+
if severity_number is not UNSET:
|
51
|
+
field_dict["severityNumber"] = severity_number
|
52
|
+
if timestamp is not UNSET:
|
53
|
+
field_dict["timestamp"] = timestamp
|
54
|
+
if trace_id is not UNSET:
|
55
|
+
field_dict["traceId"] = trace_id
|
56
|
+
|
57
|
+
return field_dict
|
58
|
+
|
59
|
+
@classmethod
|
60
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
61
|
+
if not src_dict:
|
62
|
+
return None
|
63
|
+
d = src_dict.copy()
|
64
|
+
body = d.pop("body", UNSET)
|
65
|
+
|
66
|
+
log_attributes = cast(list[Any], d.pop("logAttributes", UNSET))
|
67
|
+
|
68
|
+
severity_number = d.pop("severityNumber", UNSET)
|
69
|
+
|
70
|
+
timestamp = d.pop("timestamp", UNSET)
|
71
|
+
|
72
|
+
trace_id = d.pop("traceId", UNSET)
|
73
|
+
|
74
|
+
logs_response_data = cls(
|
75
|
+
body=body,
|
76
|
+
log_attributes=log_attributes,
|
77
|
+
severity_number=severity_number,
|
78
|
+
timestamp=timestamp,
|
79
|
+
trace_id=trace_id,
|
80
|
+
)
|
81
|
+
|
82
|
+
logs_response_data.additional_properties = d
|
83
|
+
return logs_response_data
|
84
|
+
|
85
|
+
@property
|
86
|
+
def additional_keys(self) -> list[str]:
|
87
|
+
return list(self.additional_properties.keys())
|
88
|
+
|
89
|
+
def __getitem__(self, key: str) -> Any:
|
90
|
+
return self.additional_properties[key]
|
91
|
+
|
92
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
93
|
+
self.additional_properties[key] = value
|
94
|
+
|
95
|
+
def __delitem__(self, key: str) -> None:
|
96
|
+
del self.additional_properties[key]
|
97
|
+
|
98
|
+
def __contains__(self, key: str) -> bool:
|
99
|
+
return key in self.additional_properties
|
@@ -0,0 +1,70 @@
|
|
1
|
+
from typing import Any, TypeVar, Union
|
2
|
+
|
3
|
+
from attrs import define as _attrs_define
|
4
|
+
from attrs import field as _attrs_field
|
5
|
+
|
6
|
+
from ..types import UNSET, Unset
|
7
|
+
|
8
|
+
T = TypeVar("T", bound="MemoryAllocationByName")
|
9
|
+
|
10
|
+
|
11
|
+
@_attrs_define
|
12
|
+
class MemoryAllocationByName:
|
13
|
+
"""Memory allocation by service name
|
14
|
+
|
15
|
+
Attributes:
|
16
|
+
allocation (Union[Unset, float]): Memory allocation value
|
17
|
+
name (Union[Unset, str]): Name
|
18
|
+
"""
|
19
|
+
|
20
|
+
allocation: Union[Unset, float] = UNSET
|
21
|
+
name: Union[Unset, str] = UNSET
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
23
|
+
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
25
|
+
allocation = self.allocation
|
26
|
+
|
27
|
+
name = self.name
|
28
|
+
|
29
|
+
field_dict: dict[str, Any] = {}
|
30
|
+
field_dict.update(self.additional_properties)
|
31
|
+
field_dict.update({})
|
32
|
+
if allocation is not UNSET:
|
33
|
+
field_dict["allocation"] = allocation
|
34
|
+
if name is not UNSET:
|
35
|
+
field_dict["name"] = name
|
36
|
+
|
37
|
+
return field_dict
|
38
|
+
|
39
|
+
@classmethod
|
40
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
41
|
+
if not src_dict:
|
42
|
+
return None
|
43
|
+
d = src_dict.copy()
|
44
|
+
allocation = d.pop("allocation", UNSET)
|
45
|
+
|
46
|
+
name = d.pop("name", UNSET)
|
47
|
+
|
48
|
+
memory_allocation_by_name = cls(
|
49
|
+
allocation=allocation,
|
50
|
+
name=name,
|
51
|
+
)
|
52
|
+
|
53
|
+
memory_allocation_by_name.additional_properties = d
|
54
|
+
return memory_allocation_by_name
|
55
|
+
|
56
|
+
@property
|
57
|
+
def additional_keys(self) -> list[str]:
|
58
|
+
return list(self.additional_properties.keys())
|
59
|
+
|
60
|
+
def __getitem__(self, key: str) -> Any:
|
61
|
+
return self.additional_properties[key]
|
62
|
+
|
63
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
64
|
+
self.additional_properties[key] = value
|
65
|
+
|
66
|
+
def __delitem__(self, key: str) -> None:
|
67
|
+
del self.additional_properties[key]
|
68
|
+
|
69
|
+
def __contains__(self, key: str) -> bool:
|
70
|
+
return key in self.additional_properties
|
@@ -24,6 +24,7 @@ class Metadata:
|
|
24
24
|
display_name (Union[Unset, str]): Model display name
|
25
25
|
labels (Union[Unset, MetadataLabels]): Labels
|
26
26
|
name (Union[Unset, str]): Model name
|
27
|
+
plan (Union[Unset, Any]): Plan
|
27
28
|
workspace (Union[Unset, str]): Workspace name
|
28
29
|
"""
|
29
30
|
|
@@ -34,6 +35,7 @@ class Metadata:
|
|
34
35
|
display_name: Union[Unset, str] = UNSET
|
35
36
|
labels: Union[Unset, "MetadataLabels"] = UNSET
|
36
37
|
name: Union[Unset, str] = UNSET
|
38
|
+
plan: Union[Unset, Any] = UNSET
|
37
39
|
workspace: Union[Unset, str] = UNSET
|
38
40
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
39
41
|
|
@@ -56,6 +58,8 @@ class Metadata:
|
|
56
58
|
|
57
59
|
name = self.name
|
58
60
|
|
61
|
+
plan = self.plan
|
62
|
+
|
59
63
|
workspace = self.workspace
|
60
64
|
|
61
65
|
field_dict: dict[str, Any] = {}
|
@@ -75,6 +79,8 @@ class Metadata:
|
|
75
79
|
field_dict["labels"] = labels
|
76
80
|
if name is not UNSET:
|
77
81
|
field_dict["name"] = name
|
82
|
+
if plan is not UNSET:
|
83
|
+
field_dict["plan"] = plan
|
78
84
|
if workspace is not UNSET:
|
79
85
|
field_dict["workspace"] = workspace
|
80
86
|
|
@@ -106,6 +112,8 @@ class Metadata:
|
|
106
112
|
|
107
113
|
name = d.pop("name", UNSET)
|
108
114
|
|
115
|
+
plan = d.pop("plan", UNSET)
|
116
|
+
|
109
117
|
workspace = d.pop("workspace", UNSET)
|
110
118
|
|
111
119
|
metadata = cls(
|
@@ -116,6 +124,7 @@ class Metadata:
|
|
116
124
|
display_name=display_name,
|
117
125
|
labels=labels,
|
118
126
|
name=name,
|
127
|
+
plan=plan,
|
119
128
|
workspace=workspace,
|
120
129
|
)
|
121
130
|
|
@@ -36,7 +36,7 @@ class Model:
|
|
36
36
|
if not isinstance(self.events, Unset):
|
37
37
|
events = []
|
38
38
|
for componentsschemas_core_events_item_data in self.events:
|
39
|
-
if type(componentsschemas_core_events_item_data)
|
39
|
+
if type(componentsschemas_core_events_item_data) is dict:
|
40
40
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data
|
41
41
|
else:
|
42
42
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data.to_dict()
|
@@ -60,7 +60,7 @@ class ModelSpec:
|
|
60
60
|
if not isinstance(self.flavors, Unset):
|
61
61
|
flavors = []
|
62
62
|
for componentsschemas_flavors_item_data in self.flavors:
|
63
|
-
if type(componentsschemas_flavors_item_data)
|
63
|
+
if type(componentsschemas_flavors_item_data) is dict:
|
64
64
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data
|
65
65
|
else:
|
66
66
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data.to_dict()
|
@@ -42,7 +42,7 @@ class PolicySpec:
|
|
42
42
|
if not isinstance(self.flavors, Unset):
|
43
43
|
flavors = []
|
44
44
|
for componentsschemas_flavors_item_data in self.flavors:
|
45
|
-
if type(componentsschemas_flavors_item_data)
|
45
|
+
if type(componentsschemas_flavors_item_data) is dict:
|
46
46
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data
|
47
47
|
else:
|
48
48
|
componentsschemas_flavors_item = componentsschemas_flavors_item_data.to_dict()
|
@@ -52,7 +52,7 @@ class PolicySpec:
|
|
52
52
|
if not isinstance(self.locations, Unset):
|
53
53
|
locations = []
|
54
54
|
for componentsschemas_policy_locations_item_data in self.locations:
|
55
|
-
if type(componentsschemas_policy_locations_item_data)
|
55
|
+
if type(componentsschemas_policy_locations_item_data) is dict:
|
56
56
|
componentsschemas_policy_locations_item = componentsschemas_policy_locations_item_data
|
57
57
|
else:
|
58
58
|
componentsschemas_policy_locations_item = componentsschemas_policy_locations_item_data.to_dict()
|
@@ -0,0 +1,79 @@
|
|
1
|
+
from typing import Any, TypeVar, Union
|
2
|
+
|
3
|
+
from attrs import define as _attrs_define
|
4
|
+
from attrs import field as _attrs_field
|
5
|
+
|
6
|
+
from ..types import UNSET, Unset
|
7
|
+
|
8
|
+
T = TypeVar("T", bound="Resource")
|
9
|
+
|
10
|
+
|
11
|
+
@_attrs_define
|
12
|
+
class Resource:
|
13
|
+
"""Resource
|
14
|
+
|
15
|
+
Attributes:
|
16
|
+
name (Union[Unset, str]): Name of the resource
|
17
|
+
type_ (Union[Unset, str]): Type of the resource
|
18
|
+
workspace (Union[Unset, str]): Workspace of the resource
|
19
|
+
"""
|
20
|
+
|
21
|
+
name: Union[Unset, str] = UNSET
|
22
|
+
type_: Union[Unset, str] = UNSET
|
23
|
+
workspace: Union[Unset, str] = UNSET
|
24
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
25
|
+
|
26
|
+
def to_dict(self) -> dict[str, Any]:
|
27
|
+
name = self.name
|
28
|
+
|
29
|
+
type_ = self.type_
|
30
|
+
|
31
|
+
workspace = self.workspace
|
32
|
+
|
33
|
+
field_dict: dict[str, Any] = {}
|
34
|
+
field_dict.update(self.additional_properties)
|
35
|
+
field_dict.update({})
|
36
|
+
if name is not UNSET:
|
37
|
+
field_dict["name"] = name
|
38
|
+
if type_ is not UNSET:
|
39
|
+
field_dict["type"] = type_
|
40
|
+
if workspace is not UNSET:
|
41
|
+
field_dict["workspace"] = workspace
|
42
|
+
|
43
|
+
return field_dict
|
44
|
+
|
45
|
+
@classmethod
|
46
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
47
|
+
if not src_dict:
|
48
|
+
return None
|
49
|
+
d = src_dict.copy()
|
50
|
+
name = d.pop("name", UNSET)
|
51
|
+
|
52
|
+
type_ = d.pop("type", UNSET)
|
53
|
+
|
54
|
+
workspace = d.pop("workspace", UNSET)
|
55
|
+
|
56
|
+
resource = cls(
|
57
|
+
name=name,
|
58
|
+
type_=type_,
|
59
|
+
workspace=workspace,
|
60
|
+
)
|
61
|
+
|
62
|
+
resource.additional_properties = d
|
63
|
+
return resource
|
64
|
+
|
65
|
+
@property
|
66
|
+
def additional_keys(self) -> list[str]:
|
67
|
+
return list(self.additional_properties.keys())
|
68
|
+
|
69
|
+
def __getitem__(self, key: str) -> Any:
|
70
|
+
return self.additional_properties[key]
|
71
|
+
|
72
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
73
|
+
self.additional_properties[key] = value
|
74
|
+
|
75
|
+
def __delitem__(self, key: str) -> None:
|
76
|
+
del self.additional_properties[key]
|
77
|
+
|
78
|
+
def __contains__(self, key: str) -> bool:
|
79
|
+
return key in self.additional_properties
|