beamlit 0.0.19__tar.gz → 0.0.20rc1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/PKG-INFO +5 -2
- beamlit-0.0.20rc1/beamlit.yaml +3 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/pyproject.toml +5 -2
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/create_agent.py +14 -9
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/get_agent_deployment.py +22 -1
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/update_agent.py +14 -9
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/create_function.py +14 -9
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/update_function.py +14 -9
- beamlit-0.0.20rc1/src/beamlit/api/integrations/create_integration_connection.py +167 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/delete_integration_connection.py +158 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/get_integration.py +97 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/get_integration_connection.py +154 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/get_integration_connection_model.py +97 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/get_integration_model.py +97 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/list_integration_connection_models.py +97 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/list_integration_connections.py +139 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/list_integration_models.py +97 -0
- beamlit-0.0.20rc1/src/beamlit/api/integrations/update_integration_connection.py +180 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/authentication/__init__.py +2 -1
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/authentication/authentication.py +3 -0
- beamlit-0.0.20rc1/src/beamlit/authentication/clientcredentials.py +99 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/authentication/credentials.py +7 -1
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/authentication/device_mode.py +0 -2
- beamlit-0.0.20rc1/src/beamlit/common/generate.py +166 -0
- beamlit-0.0.20rc1/src/beamlit/common/logger.py +30 -0
- beamlit-0.0.20rc1/src/beamlit/common/settings.py +112 -0
- beamlit-0.0.20rc1/src/beamlit/common/utils.py +13 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/__init__.py +50 -24
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/agent_deployment.py +117 -49
- beamlit-0.0.19/src/beamlit/models/agent_deployment_configuration.py → beamlit-0.0.20rc1/src/beamlit/models/agent_deployment_configuration_type_0.py +5 -5
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/agent_deployment_history.py +46 -13
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/agent_deployment_history_event.py +78 -22
- beamlit-0.0.19/src/beamlit/models/agent_deployment_pod_template.py → beamlit-0.0.20rc1/src/beamlit/models/agent_deployment_pod_template_type_0.py +5 -5
- beamlit-0.0.20rc1/src/beamlit/models/agent_with_deployments.py +174 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/deployment_configurations.py +19 -6
- beamlit-0.0.20rc1/src/beamlit/models/deployment_serverless_config_type_0.py +218 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/environment_metrics.py +19 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/function_deployment.py +110 -42
- beamlit-0.0.19/src/beamlit/models/function_deployment_configuration.py → beamlit-0.0.20rc1/src/beamlit/models/function_deployment_configuration_type_0.py +5 -5
- beamlit-0.0.19/src/beamlit/models/function_deployment_pod_template.py → beamlit-0.0.20rc1/src/beamlit/models/function_deployment_pod_template_type_0.py +5 -5
- beamlit-0.0.20rc1/src/beamlit/models/function_with_deployments.py +174 -0
- beamlit-0.0.19/src/beamlit/models/metrics.py → beamlit-0.0.20rc1/src/beamlit/models/increase_and_rate_metric.py +19 -28
- beamlit-0.0.20rc1/src/beamlit/models/integration.py +196 -0
- beamlit-0.0.20rc1/src/beamlit/models/integration_config.py +43 -0
- beamlit-0.0.20rc1/src/beamlit/models/integration_connection.py +196 -0
- beamlit-0.0.20rc1/src/beamlit/models/integration_connection_config.py +43 -0
- beamlit-0.0.20rc1/src/beamlit/models/integration_connection_secret.py +59 -0
- beamlit-0.0.20rc1/src/beamlit/models/integration_model.py +142 -0
- beamlit-0.0.20rc1/src/beamlit/models/integration_secret.py +59 -0
- beamlit-0.0.20rc1/src/beamlit/models/metrics.py +152 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_deployment.py +96 -64
- beamlit-0.0.19/src/beamlit/models/model_deployment_pod_template.py → beamlit-0.0.20rc1/src/beamlit/models/model_deployment_pod_template_type_0.py +5 -5
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/policy.py +8 -34
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/provider_config.py +0 -9
- beamlit-0.0.20rc1/src/beamlit/models/resource_deployment_metrics.py +367 -0
- beamlit-0.0.20rc1/src/beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py +75 -0
- beamlit-0.0.19/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py → beamlit-0.0.20rc1/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region_type_0.py +5 -5
- beamlit-0.0.20rc1/src/beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py +73 -0
- beamlit-0.0.19/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py → beamlit-0.0.20rc1/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py +5 -5
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/resource_metrics.py +36 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/runtime.py +29 -12
- beamlit-0.0.19/src/beamlit/models/runtime_readiness_probe.py → beamlit-0.0.20rc1/src/beamlit/models/runtime_readiness_probe_type_0.py +5 -5
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_agent.py +29 -13
- beamlit-0.0.19/src/beamlit/models/store_agent_labels.py → beamlit-0.0.20rc1/src/beamlit/models/store_agent_labels_type_0.py +5 -5
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_configuration.py +15 -4
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_configuration_option.py +18 -5
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_function.py +29 -13
- beamlit-0.0.19/src/beamlit/models/store_function_labels.py → beamlit-0.0.20rc1/src/beamlit/models/store_function_labels_type_0.py +5 -5
- beamlit-0.0.20rc1/src/beamlit/run.py +49 -0
- beamlit-0.0.20rc1/src/main.py +32 -0
- beamlit-0.0.20rc1/uv.lock +317 -0
- beamlit-0.0.19/src/beamlit/api/authentication_providers/get_model_with_repo_for_authentication_provider.py +0 -184
- beamlit-0.0.19/src/beamlit/api/authentication_providers/list_models_for_authentication_provider.py +0 -163
- beamlit-0.0.19/src/beamlit/api/authentication_providers/list_organizations_for_authentication_provider.py +0 -163
- beamlit-0.0.19/src/beamlit/models/deployment_serverless_config.py +0 -129
- beamlit-0.0.19/src/beamlit/models/labels.py +0 -43
- beamlit-0.0.19/src/beamlit/models/resource_deployment_metrics.py +0 -172
- beamlit-0.0.19/src/main.py +0 -18
- beamlit-0.0.19/uv.lock +0 -155
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/.gitignore +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/README.md +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/create_agent_release.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/delete_agent.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/delete_agent_deployment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/delete_agent_deployment_history.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/get_agent.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/get_agent_deployment_history.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/get_agent_deployment_logs.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/get_agent_deployment_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/get_agent_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/list_agent_deployment_history.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/list_agent_deployments.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/list_agents.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/put_agent_deployment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/agents/put_agent_deployment_history.py +0 -0
- {beamlit-0.0.19/src/beamlit/api/authentication_providers → beamlit-0.0.20rc1/src/beamlit/api/configurations}/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/configurations/get_configuration.py +0 -0
- {beamlit-0.0.19/src/beamlit/api/configurations → beamlit-0.0.20rc1/src/beamlit/api/environments}/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/environments/create_environment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/environments/delete_environment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/environments/get_environment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/environments/get_environment_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/environments/list_environments.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/environments/update_environment.py +0 -0
- {beamlit-0.0.19/src/beamlit/api/environments → beamlit-0.0.20rc1/src/beamlit/api/functions}/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/create_function_release.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/delete_function.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/delete_function_deployment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/get_function.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/get_function_deployment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/get_function_deployment_logs.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/get_function_deployment_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/get_function_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/list_function_deployments.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/list_functions.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/functions/put_function_deployment.py +0 -0
- {beamlit-0.0.19/src/beamlit/api/functions → beamlit-0.0.20rc1/src/beamlit/api/history}/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/history/get_agents_history.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/history/list_agents_history.py +0 -0
- {beamlit-0.0.19/src/beamlit/api/history → beamlit-0.0.20rc1/src/beamlit/api/integrations}/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/invitations/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/invitations/list_all_pending_invitations.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/locations/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/locations/list_locations.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/metrics/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/metrics/get_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/model_providers/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/model_providers/create_model_provider.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/model_providers/delete_model_provider.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/model_providers/get_model_provider.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/model_providers/list_model_providers.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/model_providers/update_model_provider.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/create_model.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/delete_model.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/delete_model_deployment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/get_model.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/get_model_deployment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/get_model_deployment_logs.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/get_model_deployment_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/get_model_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/list_model_deployments.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/list_models.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/put_model_deployment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/release_model.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/models/update_model.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/policies/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/policies/create_policy.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/policies/delete_policy.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/policies/get_policy.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/policies/list_policies.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/policies/update_policy.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/create_api_key_for_service_account.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/create_workspace_service_account.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/delete_api_key_for_service_account.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/delete_workspace_service_account.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/get_workspace_service_accounts.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/list_api_keys_for_service_account.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/service_accounts/update_workspace_service_account.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/store/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/store/get_store_agent.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/store/get_store_function.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/store/list_store_agents.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/store/list_store_functions.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/__init__.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/accept_workspace_invitation.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/create_worspace.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/decline_workspace_invitation.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/delete_workspace.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/get_workspace.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/invite_workspace_user.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/leave_workspace.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/list_workspace_users.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/list_workspaces.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/remove_workspace_user.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/update_workspace.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/api/workspaces/update_workspace_user_role.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/authentication/apikey.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/client.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/errors.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/acl.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/agent.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/agent_chain.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/agent_configuration.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/agent_release.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/api_key.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/authentication_provider_model.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/authentication_provider_organization.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/configuration.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/continent.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/country.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/create_api_key_for_service_account_body.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/create_workspace_service_account_body.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/create_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/delete_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/deployment_configuration.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/environment.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/flavor.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/function.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/function_configuration.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/function_kit.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/function_provider_ref.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/function_release.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/get_workspace_service_accounts_response_200_item.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/invite_workspace_user_body.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/labels_type_0.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/location.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/location_response.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/metric.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_deployment_log.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_deployment_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_deployment_metrics_inference_per_second_per_region.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_deployment_metrics_query_per_second_per_region_per_code.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_metrics.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_provider.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_provider_ref.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_release.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/model_with_deployments.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/pending_invitation.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/pending_invitation_accept.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/pending_invitation_render.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/pending_invitation_render_invited_by.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/pending_invitation_render_workspace.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/pending_invitation_workspace_details.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/policy_location.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/qps.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/resource_deployment_log.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/runtime_resources.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/serverless_config.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/standard_fields_dynamo_db.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_agent_configuration.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_function_configuration.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_function_kit.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/store_function_parameter.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/update_workspace_service_account_body.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/update_workspace_service_account_response_200.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/update_workspace_user_role_body.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/workspace.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/workspace_labels.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/models/workspace_user.py +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/py.typed +0 -0
- {beamlit-0.0.19 → beamlit-0.0.20rc1}/src/beamlit/types.py +0 -0
@@ -1,13 +1,16 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: beamlit
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.20rc1
|
4
4
|
Summary: Add your description here
|
5
5
|
Author-email: cploujoux <ch.ploujoux@gmail.com>
|
6
6
|
Requires-Python: >=3.12
|
7
7
|
Requires-Dist: attrs>=21.3.0
|
8
8
|
Requires-Dist: httpx<0.28.0,>=0.20.0
|
9
|
+
Requires-Dist: pydantic-settings<2.7.0,>=2.6.1
|
10
|
+
Requires-Dist: pydantic<2.11.0,>=2.10.3
|
9
11
|
Requires-Dist: python-dateutil>=2.8.0
|
10
|
-
Requires-Dist: pyyaml
|
12
|
+
Requires-Dist: pyyaml<6.1.0,>=6.0.2
|
13
|
+
Requires-Dist: requests<2.33.0,>=2.32.3
|
11
14
|
Description-Content-Type: text/markdown
|
12
15
|
|
13
16
|
# beamlit
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "beamlit"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.20.pre-1"
|
4
4
|
description = "Add your description here"
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -11,7 +11,10 @@ dependencies = [
|
|
11
11
|
"httpx>=0.20.0,<0.28.0",
|
12
12
|
"attrs>=21.3.0",
|
13
13
|
"python-dateutil>=2.8.0",
|
14
|
-
"pyyaml
|
14
|
+
"pyyaml>=6.0.2,<6.1.0",
|
15
|
+
"pydantic-settings>=2.6.1,<2.7.0",
|
16
|
+
"pydantic>=2.10.3,<2.11.0",
|
17
|
+
"requests>=2.32.3,<2.33.0",
|
15
18
|
]
|
16
19
|
|
17
20
|
[build-system]
|
@@ -6,12 +6,13 @@ import httpx
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
8
|
from ...models.agent import Agent
|
9
|
+
from ...models.agent_with_deployments import AgentWithDeployments
|
9
10
|
from ...types import Response
|
10
11
|
|
11
12
|
|
12
13
|
def _get_kwargs(
|
13
14
|
*,
|
14
|
-
body:
|
15
|
+
body: AgentWithDeployments,
|
15
16
|
) -> dict[str, Any]:
|
16
17
|
headers: dict[str, Any] = {}
|
17
18
|
|
@@ -52,12 +53,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
52
53
|
def sync_detailed(
|
53
54
|
*,
|
54
55
|
client: AuthenticatedClient,
|
55
|
-
body:
|
56
|
+
body: AgentWithDeployments,
|
56
57
|
) -> Response[Agent]:
|
57
58
|
"""Create agent by name
|
58
59
|
|
59
60
|
Args:
|
60
|
-
body (
|
61
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
62
|
+
definition inside
|
61
63
|
|
62
64
|
Raises:
|
63
65
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -81,12 +83,13 @@ def sync_detailed(
|
|
81
83
|
def sync(
|
82
84
|
*,
|
83
85
|
client: AuthenticatedClient,
|
84
|
-
body:
|
86
|
+
body: AgentWithDeployments,
|
85
87
|
) -> Optional[Agent]:
|
86
88
|
"""Create agent by name
|
87
89
|
|
88
90
|
Args:
|
89
|
-
body (
|
91
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
92
|
+
definition inside
|
90
93
|
|
91
94
|
Raises:
|
92
95
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -105,12 +108,13 @@ def sync(
|
|
105
108
|
async def asyncio_detailed(
|
106
109
|
*,
|
107
110
|
client: AuthenticatedClient,
|
108
|
-
body:
|
111
|
+
body: AgentWithDeployments,
|
109
112
|
) -> Response[Agent]:
|
110
113
|
"""Create agent by name
|
111
114
|
|
112
115
|
Args:
|
113
|
-
body (
|
116
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
117
|
+
definition inside
|
114
118
|
|
115
119
|
Raises:
|
116
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -132,12 +136,13 @@ async def asyncio_detailed(
|
|
132
136
|
async def asyncio(
|
133
137
|
*,
|
134
138
|
client: AuthenticatedClient,
|
135
|
-
body:
|
139
|
+
body: AgentWithDeployments,
|
136
140
|
) -> Optional[Agent]:
|
137
141
|
"""Create agent by name
|
138
142
|
|
139
143
|
Args:
|
140
|
-
body (
|
144
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
145
|
+
definition inside
|
141
146
|
|
142
147
|
Raises:
|
143
148
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -6,16 +6,25 @@ import httpx
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
8
|
from ...models.agent_deployment import AgentDeployment
|
9
|
-
from ...types import Response
|
9
|
+
from ...types import UNSET, Response, Unset
|
10
10
|
|
11
11
|
|
12
12
|
def _get_kwargs(
|
13
13
|
agent_name: str,
|
14
14
|
environment_name: str,
|
15
|
+
*,
|
16
|
+
configuration: Union[Unset, bool] = UNSET,
|
15
17
|
) -> dict[str, Any]:
|
18
|
+
params: dict[str, Any] = {}
|
19
|
+
|
20
|
+
params["configuration"] = configuration
|
21
|
+
|
22
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
23
|
+
|
16
24
|
_kwargs: dict[str, Any] = {
|
17
25
|
"method": "get",
|
18
26
|
"url": f"/agents/{agent_name}/deployments/{environment_name}",
|
27
|
+
"params": params,
|
19
28
|
}
|
20
29
|
|
21
30
|
return _kwargs
|
@@ -50,12 +59,14 @@ def sync_detailed(
|
|
50
59
|
environment_name: str,
|
51
60
|
*,
|
52
61
|
client: AuthenticatedClient,
|
62
|
+
configuration: Union[Unset, bool] = UNSET,
|
53
63
|
) -> Response[AgentDeployment]:
|
54
64
|
"""Get agent deployment by environment name
|
55
65
|
|
56
66
|
Args:
|
57
67
|
agent_name (str):
|
58
68
|
environment_name (str):
|
69
|
+
configuration (Union[Unset, bool]):
|
59
70
|
|
60
71
|
Raises:
|
61
72
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -68,6 +79,7 @@ def sync_detailed(
|
|
68
79
|
kwargs = _get_kwargs(
|
69
80
|
agent_name=agent_name,
|
70
81
|
environment_name=environment_name,
|
82
|
+
configuration=configuration,
|
71
83
|
)
|
72
84
|
|
73
85
|
response = client.get_httpx_client().request(
|
@@ -82,12 +94,14 @@ def sync(
|
|
82
94
|
environment_name: str,
|
83
95
|
*,
|
84
96
|
client: AuthenticatedClient,
|
97
|
+
configuration: Union[Unset, bool] = UNSET,
|
85
98
|
) -> Optional[AgentDeployment]:
|
86
99
|
"""Get agent deployment by environment name
|
87
100
|
|
88
101
|
Args:
|
89
102
|
agent_name (str):
|
90
103
|
environment_name (str):
|
104
|
+
configuration (Union[Unset, bool]):
|
91
105
|
|
92
106
|
Raises:
|
93
107
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -101,6 +115,7 @@ def sync(
|
|
101
115
|
agent_name=agent_name,
|
102
116
|
environment_name=environment_name,
|
103
117
|
client=client,
|
118
|
+
configuration=configuration,
|
104
119
|
).parsed
|
105
120
|
|
106
121
|
|
@@ -109,12 +124,14 @@ async def asyncio_detailed(
|
|
109
124
|
environment_name: str,
|
110
125
|
*,
|
111
126
|
client: AuthenticatedClient,
|
127
|
+
configuration: Union[Unset, bool] = UNSET,
|
112
128
|
) -> Response[AgentDeployment]:
|
113
129
|
"""Get agent deployment by environment name
|
114
130
|
|
115
131
|
Args:
|
116
132
|
agent_name (str):
|
117
133
|
environment_name (str):
|
134
|
+
configuration (Union[Unset, bool]):
|
118
135
|
|
119
136
|
Raises:
|
120
137
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -127,6 +144,7 @@ async def asyncio_detailed(
|
|
127
144
|
kwargs = _get_kwargs(
|
128
145
|
agent_name=agent_name,
|
129
146
|
environment_name=environment_name,
|
147
|
+
configuration=configuration,
|
130
148
|
)
|
131
149
|
|
132
150
|
response = await client.get_async_httpx_client().request(**kwargs)
|
@@ -139,12 +157,14 @@ async def asyncio(
|
|
139
157
|
environment_name: str,
|
140
158
|
*,
|
141
159
|
client: AuthenticatedClient,
|
160
|
+
configuration: Union[Unset, bool] = UNSET,
|
142
161
|
) -> Optional[AgentDeployment]:
|
143
162
|
"""Get agent deployment by environment name
|
144
163
|
|
145
164
|
Args:
|
146
165
|
agent_name (str):
|
147
166
|
environment_name (str):
|
167
|
+
configuration (Union[Unset, bool]):
|
148
168
|
|
149
169
|
Raises:
|
150
170
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -159,5 +179,6 @@ async def asyncio(
|
|
159
179
|
agent_name=agent_name,
|
160
180
|
environment_name=environment_name,
|
161
181
|
client=client,
|
182
|
+
configuration=configuration,
|
162
183
|
)
|
163
184
|
).parsed
|
@@ -6,13 +6,14 @@ import httpx
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
8
|
from ...models.agent import Agent
|
9
|
+
from ...models.agent_with_deployments import AgentWithDeployments
|
9
10
|
from ...types import Response
|
10
11
|
|
11
12
|
|
12
13
|
def _get_kwargs(
|
13
14
|
agent_name: str,
|
14
15
|
*,
|
15
|
-
body:
|
16
|
+
body: AgentWithDeployments,
|
16
17
|
) -> dict[str, Any]:
|
17
18
|
headers: dict[str, Any] = {}
|
18
19
|
|
@@ -54,13 +55,14 @@ def sync_detailed(
|
|
54
55
|
agent_name: str,
|
55
56
|
*,
|
56
57
|
client: AuthenticatedClient,
|
57
|
-
body:
|
58
|
+
body: AgentWithDeployments,
|
58
59
|
) -> Response[Agent]:
|
59
60
|
"""Update agent by name
|
60
61
|
|
61
62
|
Args:
|
62
63
|
agent_name (str):
|
63
|
-
body (
|
64
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
65
|
+
definition inside
|
64
66
|
|
65
67
|
Raises:
|
66
68
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -86,13 +88,14 @@ def sync(
|
|
86
88
|
agent_name: str,
|
87
89
|
*,
|
88
90
|
client: AuthenticatedClient,
|
89
|
-
body:
|
91
|
+
body: AgentWithDeployments,
|
90
92
|
) -> Optional[Agent]:
|
91
93
|
"""Update agent by name
|
92
94
|
|
93
95
|
Args:
|
94
96
|
agent_name (str):
|
95
|
-
body (
|
97
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
98
|
+
definition inside
|
96
99
|
|
97
100
|
Raises:
|
98
101
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -113,13 +116,14 @@ async def asyncio_detailed(
|
|
113
116
|
agent_name: str,
|
114
117
|
*,
|
115
118
|
client: AuthenticatedClient,
|
116
|
-
body:
|
119
|
+
body: AgentWithDeployments,
|
117
120
|
) -> Response[Agent]:
|
118
121
|
"""Update agent by name
|
119
122
|
|
120
123
|
Args:
|
121
124
|
agent_name (str):
|
122
|
-
body (
|
125
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
126
|
+
definition inside
|
123
127
|
|
124
128
|
Raises:
|
125
129
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -143,13 +147,14 @@ async def asyncio(
|
|
143
147
|
agent_name: str,
|
144
148
|
*,
|
145
149
|
client: AuthenticatedClient,
|
146
|
-
body:
|
150
|
+
body: AgentWithDeployments,
|
147
151
|
) -> Optional[Agent]:
|
148
152
|
"""Update agent by name
|
149
153
|
|
150
154
|
Args:
|
151
155
|
agent_name (str):
|
152
|
-
body (
|
156
|
+
body (AgentWithDeployments): Logical object representing an agent but with deployment
|
157
|
+
definition inside
|
153
158
|
|
154
159
|
Raises:
|
155
160
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -6,12 +6,13 @@ import httpx
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
8
|
from ...models.function import Function
|
9
|
+
from ...models.function_with_deployments import FunctionWithDeployments
|
9
10
|
from ...types import Response
|
10
11
|
|
11
12
|
|
12
13
|
def _get_kwargs(
|
13
14
|
*,
|
14
|
-
body:
|
15
|
+
body: FunctionWithDeployments,
|
15
16
|
) -> dict[str, Any]:
|
16
17
|
headers: dict[str, Any] = {}
|
17
18
|
|
@@ -52,12 +53,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
|
|
52
53
|
def sync_detailed(
|
53
54
|
*,
|
54
55
|
client: AuthenticatedClient,
|
55
|
-
body:
|
56
|
+
body: FunctionWithDeployments,
|
56
57
|
) -> Response[Function]:
|
57
58
|
"""Create function
|
58
59
|
|
59
60
|
Args:
|
60
|
-
body (
|
61
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
62
|
+
definition inside
|
61
63
|
|
62
64
|
Raises:
|
63
65
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -81,12 +83,13 @@ def sync_detailed(
|
|
81
83
|
def sync(
|
82
84
|
*,
|
83
85
|
client: AuthenticatedClient,
|
84
|
-
body:
|
86
|
+
body: FunctionWithDeployments,
|
85
87
|
) -> Optional[Function]:
|
86
88
|
"""Create function
|
87
89
|
|
88
90
|
Args:
|
89
|
-
body (
|
91
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
92
|
+
definition inside
|
90
93
|
|
91
94
|
Raises:
|
92
95
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -105,12 +108,13 @@ def sync(
|
|
105
108
|
async def asyncio_detailed(
|
106
109
|
*,
|
107
110
|
client: AuthenticatedClient,
|
108
|
-
body:
|
111
|
+
body: FunctionWithDeployments,
|
109
112
|
) -> Response[Function]:
|
110
113
|
"""Create function
|
111
114
|
|
112
115
|
Args:
|
113
|
-
body (
|
116
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
117
|
+
definition inside
|
114
118
|
|
115
119
|
Raises:
|
116
120
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -132,12 +136,13 @@ async def asyncio_detailed(
|
|
132
136
|
async def asyncio(
|
133
137
|
*,
|
134
138
|
client: AuthenticatedClient,
|
135
|
-
body:
|
139
|
+
body: FunctionWithDeployments,
|
136
140
|
) -> Optional[Function]:
|
137
141
|
"""Create function
|
138
142
|
|
139
143
|
Args:
|
140
|
-
body (
|
144
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
145
|
+
definition inside
|
141
146
|
|
142
147
|
Raises:
|
143
148
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -6,13 +6,14 @@ import httpx
|
|
6
6
|
from ... import errors
|
7
7
|
from ...client import AuthenticatedClient, Client
|
8
8
|
from ...models.function import Function
|
9
|
+
from ...models.function_with_deployments import FunctionWithDeployments
|
9
10
|
from ...types import Response
|
10
11
|
|
11
12
|
|
12
13
|
def _get_kwargs(
|
13
14
|
function_name: str,
|
14
15
|
*,
|
15
|
-
body:
|
16
|
+
body: FunctionWithDeployments,
|
16
17
|
) -> dict[str, Any]:
|
17
18
|
headers: dict[str, Any] = {}
|
18
19
|
|
@@ -54,13 +55,14 @@ def sync_detailed(
|
|
54
55
|
function_name: str,
|
55
56
|
*,
|
56
57
|
client: AuthenticatedClient,
|
57
|
-
body:
|
58
|
+
body: FunctionWithDeployments,
|
58
59
|
) -> Response[Function]:
|
59
60
|
"""Update function by name
|
60
61
|
|
61
62
|
Args:
|
62
63
|
function_name (str):
|
63
|
-
body (
|
64
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
65
|
+
definition inside
|
64
66
|
|
65
67
|
Raises:
|
66
68
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -86,13 +88,14 @@ def sync(
|
|
86
88
|
function_name: str,
|
87
89
|
*,
|
88
90
|
client: AuthenticatedClient,
|
89
|
-
body:
|
91
|
+
body: FunctionWithDeployments,
|
90
92
|
) -> Optional[Function]:
|
91
93
|
"""Update function by name
|
92
94
|
|
93
95
|
Args:
|
94
96
|
function_name (str):
|
95
|
-
body (
|
97
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
98
|
+
definition inside
|
96
99
|
|
97
100
|
Raises:
|
98
101
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -113,13 +116,14 @@ async def asyncio_detailed(
|
|
113
116
|
function_name: str,
|
114
117
|
*,
|
115
118
|
client: AuthenticatedClient,
|
116
|
-
body:
|
119
|
+
body: FunctionWithDeployments,
|
117
120
|
) -> Response[Function]:
|
118
121
|
"""Update function by name
|
119
122
|
|
120
123
|
Args:
|
121
124
|
function_name (str):
|
122
|
-
body (
|
125
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
126
|
+
definition inside
|
123
127
|
|
124
128
|
Raises:
|
125
129
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -143,13 +147,14 @@ async def asyncio(
|
|
143
147
|
function_name: str,
|
144
148
|
*,
|
145
149
|
client: AuthenticatedClient,
|
146
|
-
body:
|
150
|
+
body: FunctionWithDeployments,
|
147
151
|
) -> Optional[Function]:
|
148
152
|
"""Update function by name
|
149
153
|
|
150
154
|
Args:
|
151
155
|
function_name (str):
|
152
|
-
body (
|
156
|
+
body (FunctionWithDeployments): Logical object representing a function but with deployment
|
157
|
+
definition inside
|
153
158
|
|
154
159
|
Raises:
|
155
160
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
@@ -0,0 +1,167 @@
|
|
1
|
+
from http import HTTPStatus
|
2
|
+
from typing import Any, Optional, Union
|
3
|
+
|
4
|
+
import httpx
|
5
|
+
|
6
|
+
from ... import errors
|
7
|
+
from ...client import AuthenticatedClient, Client
|
8
|
+
from ...models.integration_connection import IntegrationConnection
|
9
|
+
from ...types import Response
|
10
|
+
|
11
|
+
|
12
|
+
def _get_kwargs(
|
13
|
+
*,
|
14
|
+
body: IntegrationConnection,
|
15
|
+
) -> dict[str, Any]:
|
16
|
+
headers: dict[str, Any] = {}
|
17
|
+
|
18
|
+
_kwargs: dict[str, Any] = {
|
19
|
+
"method": "post",
|
20
|
+
"url": "/integrations/connections",
|
21
|
+
}
|
22
|
+
|
23
|
+
_body = body.to_dict()
|
24
|
+
|
25
|
+
_kwargs["json"] = _body
|
26
|
+
headers["Content-Type"] = "application/json"
|
27
|
+
|
28
|
+
_kwargs["headers"] = headers
|
29
|
+
return _kwargs
|
30
|
+
|
31
|
+
|
32
|
+
def _parse_response(
|
33
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
34
|
+
) -> Optional[IntegrationConnection]:
|
35
|
+
if response.status_code == 200:
|
36
|
+
response_200 = IntegrationConnection.from_dict(response.json())
|
37
|
+
|
38
|
+
return response_200
|
39
|
+
if client.raise_on_unexpected_status:
|
40
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
41
|
+
else:
|
42
|
+
return None
|
43
|
+
|
44
|
+
|
45
|
+
def _build_response(
|
46
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
47
|
+
) -> Response[IntegrationConnection]:
|
48
|
+
return Response(
|
49
|
+
status_code=HTTPStatus(response.status_code),
|
50
|
+
content=response.content,
|
51
|
+
headers=response.headers,
|
52
|
+
parsed=_parse_response(client=client, response=response),
|
53
|
+
)
|
54
|
+
|
55
|
+
|
56
|
+
def sync_detailed(
|
57
|
+
*,
|
58
|
+
client: AuthenticatedClient,
|
59
|
+
body: IntegrationConnection,
|
60
|
+
) -> Response[IntegrationConnection]:
|
61
|
+
"""Create integration
|
62
|
+
|
63
|
+
Create a connection for an integration.
|
64
|
+
|
65
|
+
Args:
|
66
|
+
body (IntegrationConnection): Integration Connection
|
67
|
+
|
68
|
+
Raises:
|
69
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
70
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
71
|
+
|
72
|
+
Returns:
|
73
|
+
Response[IntegrationConnection]
|
74
|
+
"""
|
75
|
+
|
76
|
+
kwargs = _get_kwargs(
|
77
|
+
body=body,
|
78
|
+
)
|
79
|
+
|
80
|
+
response = client.get_httpx_client().request(
|
81
|
+
**kwargs,
|
82
|
+
)
|
83
|
+
|
84
|
+
return _build_response(client=client, response=response)
|
85
|
+
|
86
|
+
|
87
|
+
def sync(
|
88
|
+
*,
|
89
|
+
client: AuthenticatedClient,
|
90
|
+
body: IntegrationConnection,
|
91
|
+
) -> Optional[IntegrationConnection]:
|
92
|
+
"""Create integration
|
93
|
+
|
94
|
+
Create a connection for an integration.
|
95
|
+
|
96
|
+
Args:
|
97
|
+
body (IntegrationConnection): Integration Connection
|
98
|
+
|
99
|
+
Raises:
|
100
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
101
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
102
|
+
|
103
|
+
Returns:
|
104
|
+
IntegrationConnection
|
105
|
+
"""
|
106
|
+
|
107
|
+
return sync_detailed(
|
108
|
+
client=client,
|
109
|
+
body=body,
|
110
|
+
).parsed
|
111
|
+
|
112
|
+
|
113
|
+
async def asyncio_detailed(
|
114
|
+
*,
|
115
|
+
client: AuthenticatedClient,
|
116
|
+
body: IntegrationConnection,
|
117
|
+
) -> Response[IntegrationConnection]:
|
118
|
+
"""Create integration
|
119
|
+
|
120
|
+
Create a connection for an integration.
|
121
|
+
|
122
|
+
Args:
|
123
|
+
body (IntegrationConnection): Integration Connection
|
124
|
+
|
125
|
+
Raises:
|
126
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
127
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
128
|
+
|
129
|
+
Returns:
|
130
|
+
Response[IntegrationConnection]
|
131
|
+
"""
|
132
|
+
|
133
|
+
kwargs = _get_kwargs(
|
134
|
+
body=body,
|
135
|
+
)
|
136
|
+
|
137
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
138
|
+
|
139
|
+
return _build_response(client=client, response=response)
|
140
|
+
|
141
|
+
|
142
|
+
async def asyncio(
|
143
|
+
*,
|
144
|
+
client: AuthenticatedClient,
|
145
|
+
body: IntegrationConnection,
|
146
|
+
) -> Optional[IntegrationConnection]:
|
147
|
+
"""Create integration
|
148
|
+
|
149
|
+
Create a connection for an integration.
|
150
|
+
|
151
|
+
Args:
|
152
|
+
body (IntegrationConnection): Integration Connection
|
153
|
+
|
154
|
+
Raises:
|
155
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
156
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
157
|
+
|
158
|
+
Returns:
|
159
|
+
IntegrationConnection
|
160
|
+
"""
|
161
|
+
|
162
|
+
return (
|
163
|
+
await asyncio_detailed(
|
164
|
+
client=client,
|
165
|
+
body=body,
|
166
|
+
)
|
167
|
+
).parsed
|