beamlit 0.0.18__py3-none-any.whl → 0.0.20rc1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- beamlit/api/agents/create_agent.py +14 -9
- beamlit/api/agents/get_agent_deployment.py +22 -1
- beamlit/api/agents/update_agent.py +14 -9
- beamlit/api/functions/create_function.py +14 -9
- beamlit/api/functions/update_function.py +14 -9
- beamlit/api/{authentication_providers/list_organizations_for_authentication_provider.py → integrations/create_integration_connection.py} +45 -41
- beamlit/api/integrations/delete_integration_connection.py +158 -0
- beamlit/api/integrations/get_integration.py +97 -0
- beamlit/api/integrations/get_integration_connection.py +154 -0
- beamlit/api/integrations/get_integration_connection_model.py +97 -0
- beamlit/api/integrations/get_integration_model.py +97 -0
- beamlit/api/integrations/list_integration_connection_models.py +97 -0
- beamlit/api/{authentication_providers/list_models_for_authentication_provider.py → integrations/list_integration_connections.py} +24 -48
- beamlit/api/integrations/list_integration_models.py +97 -0
- beamlit/api/integrations/update_integration_connection.py +180 -0
- beamlit/authentication/__init__.py +2 -1
- beamlit/authentication/authentication.py +3 -0
- beamlit/authentication/clientcredentials.py +99 -0
- beamlit/authentication/credentials.py +7 -1
- beamlit/authentication/device_mode.py +0 -2
- beamlit/common/generate.py +166 -0
- beamlit/common/logger.py +30 -0
- beamlit/common/settings.py +112 -0
- beamlit/common/utils.py +13 -0
- beamlit/models/__init__.py +50 -24
- beamlit/models/agent_deployment.py +117 -49
- beamlit/models/{agent_deployment_configuration.py → agent_deployment_configuration_type_0.py} +5 -5
- beamlit/models/agent_deployment_history.py +46 -13
- beamlit/models/agent_deployment_history_event.py +78 -22
- beamlit/models/{function_deployment_pod_template.py → agent_deployment_pod_template_type_0.py} +5 -5
- beamlit/models/agent_with_deployments.py +174 -0
- beamlit/models/deployment_configurations.py +19 -6
- beamlit/models/deployment_serverless_config_type_0.py +218 -0
- beamlit/models/environment_metrics.py +19 -0
- beamlit/models/function_deployment.py +110 -42
- beamlit/models/{function_deployment_configuration.py → function_deployment_configuration_type_0.py} +5 -5
- beamlit/models/{agent_deployment_pod_template.py → function_deployment_pod_template_type_0.py} +5 -5
- beamlit/models/function_with_deployments.py +174 -0
- beamlit/models/increase_and_rate_metric.py +102 -0
- beamlit/models/integration.py +196 -0
- beamlit/models/integration_config.py +43 -0
- beamlit/models/integration_connection.py +196 -0
- beamlit/models/integration_connection_config.py +43 -0
- beamlit/models/integration_connection_secret.py +59 -0
- beamlit/models/integration_model.py +142 -0
- beamlit/models/integration_secret.py +59 -0
- beamlit/models/metrics.py +61 -20
- beamlit/models/model_deployment.py +96 -64
- beamlit/models/{model_deployment_pod_template.py → model_deployment_pod_template_type_0.py} +5 -5
- beamlit/models/policy.py +8 -34
- beamlit/models/provider_config.py +0 -9
- beamlit/models/resource_deployment_metrics.py +231 -36
- beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py +75 -0
- beamlit/models/{resource_deployment_metrics_inference_per_second_per_region.py → resource_deployment_metrics_inference_per_second_per_region_type_0.py} +5 -5
- beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py +73 -0
- beamlit/models/{resource_deployment_metrics_query_per_second_per_region_per_code.py → resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py} +5 -5
- beamlit/models/resource_metrics.py +36 -0
- beamlit/models/runtime.py +29 -12
- beamlit/models/{runtime_readiness_probe.py → runtime_readiness_probe_type_0.py} +5 -5
- beamlit/models/store_agent.py +29 -13
- beamlit/models/{store_agent_labels.py → store_agent_labels_type_0.py} +5 -5
- beamlit/models/store_configuration.py +15 -4
- beamlit/models/store_configuration_option.py +18 -5
- beamlit/models/store_function.py +29 -13
- beamlit/models/{store_function_labels.py → store_function_labels_type_0.py} +5 -5
- beamlit/run.py +49 -0
- {beamlit-0.0.18.dist-info → beamlit-0.0.20rc1.dist-info}/METADATA +5 -2
- {beamlit-0.0.18.dist-info → beamlit-0.0.20rc1.dist-info}/RECORD +70 -46
- beamlit/api/authentication_providers/get_model_with_repo_for_authentication_provider.py +0 -184
- beamlit/models/deployment_serverless_config.py +0 -129
- beamlit/models/labels.py +0 -43
- /beamlit/api/{authentication_providers → integrations}/__init__.py +0 -0
- {beamlit-0.0.18.dist-info → beamlit-0.0.20rc1.dist-info}/WHEEL +0 -0
@@ -2,16 +2,17 @@ beamlit/__init__.py,sha256=545gFC-wLLwUktWcOAjUWe_Glha40tBetRTOYSfHnbI,164
|
|
2
2
|
beamlit/client.py,sha256=vwvjAkUKHRySnA2tOVzXI8xtm9s1k2sEklCRE4j1Vc8,12543
|
3
3
|
beamlit/errors.py,sha256=gO8GBmKqmSNgAg-E5oT-oOyxztvp7V_6XG7OUTT15q0,546
|
4
4
|
beamlit/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
5
|
+
beamlit/run.py,sha256=41vaoPNoHfCiLMjwxn86QbuAsOLfEw-JoADQWKWP83c,1420
|
5
6
|
beamlit/types.py,sha256=E1hhDh_zXfsSQ0NCt9-uw90_Mr5iIlsdfnfvxv5HarU,1005
|
6
7
|
beamlit/api/__init__.py,sha256=zTSiG_ujSjAqWPyc435YXaX9XTlpMjiJWBbV-f-YtdA,45
|
7
8
|
beamlit/api/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
beamlit/api/agents/create_agent.py,sha256=
|
9
|
+
beamlit/api/agents/create_agent.py,sha256=HFExosu02JZqZz7I6U6WjN81TERz6p2i8CzQCyiRYXo,4112
|
9
10
|
beamlit/api/agents/create_agent_release.py,sha256=cH_GLiSFyMblwN0tayVPugwyGNMVReoahYRF85moGeY,3685
|
10
11
|
beamlit/api/agents/delete_agent.py,sha256=VN8ZTZYw9FpVD8iHAM6EJIy6yp0SDJjdwvnrZ2XnJ54,3483
|
11
12
|
beamlit/api/agents/delete_agent_deployment.py,sha256=x7bSeOMn0NI0GHroQsN1Xe-cuGpPz6DilBXcC8VMCAE,4188
|
12
13
|
beamlit/api/agents/delete_agent_deployment_history.py,sha256=dx7OAe1rWUqMvGE2T-PP0otZPwVIN9QwMzFc_30hCEA,4462
|
13
14
|
beamlit/api/agents/get_agent.py,sha256=FKv3gUHteeQ9Q2LawxOaMonXzzXlIGGtQJUgU6t56cU,3468
|
14
|
-
beamlit/api/agents/get_agent_deployment.py,sha256=
|
15
|
+
beamlit/api/agents/get_agent_deployment.py,sha256=nl-2o3NxXRtRkvK9q12KtiPKSjp57tPHTSbsclA-FuQ,4945
|
15
16
|
beamlit/api/agents/get_agent_deployment_history.py,sha256=f46M813WsM-mBtRgaGPsKGgUsCetz_LoGhwpK6FaEWs,4459
|
16
17
|
beamlit/api/agents/get_agent_deployment_logs.py,sha256=8SGzj0G-hTryIZEmBnvTI5Iv9PHAxIl1CHmvCDoirEA,4366
|
17
18
|
beamlit/api/agents/get_agent_deployment_metrics.py,sha256=DEdpG0hinjzueWxj6-k729e2roV2DOn_WLyDZj0aV84,4148
|
@@ -21,11 +22,7 @@ beamlit/api/agents/list_agent_deployments.py,sha256=9ZqXV9SomR1XGqi6ps77P8gwizG-
|
|
21
22
|
beamlit/api/agents/list_agents.py,sha256=M-uWajFRAZkBlTnaiQu_LYvPjzb-24j099ilf_o06MU,3327
|
22
23
|
beamlit/api/agents/put_agent_deployment.py,sha256=tggYrT_eFNOFWNcZyVQmESvEbSBvrjoeakFMKlTX7as,4872
|
23
24
|
beamlit/api/agents/put_agent_deployment_history.py,sha256=h7uo2CAaEMz4kOfw167WgUJc_-ivkCQ6nDTrOa42s18,5293
|
24
|
-
beamlit/api/agents/update_agent.py,sha256=
|
25
|
-
beamlit/api/authentication_providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
26
|
-
beamlit/api/authentication_providers/get_model_with_repo_for_authentication_provider.py,sha256=5ziInSelwHpFZQReKSiSJ4lISHJWc8hrzCXMhrWQvzA,5187
|
27
|
-
beamlit/api/authentication_providers/list_models_for_authentication_provider.py,sha256=e7rjpEZ6x4v8NhoA10kzANYtc8OXx4QEjt_tISyzUHo,4730
|
28
|
-
beamlit/api/authentication_providers/list_organizations_for_authentication_provider.py,sha256=MXHzY5gtEkIsj16iDqTUcnkTnms1xDbYlpDU9nRlTOw,4888
|
25
|
+
beamlit/api/agents/update_agent.py,sha256=O295Ugzn6glyNBu4Ngkxgl2BMrmY9R7PbG3TvZw6HSA,4462
|
29
26
|
beamlit/api/configurations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
27
|
beamlit/api/configurations/get_configuration.py,sha256=BtazLwvVe1OGjt0dJ-NVVipqAqZt1HwemWTGK2iuN9w,3197
|
31
28
|
beamlit/api/environments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -36,7 +33,7 @@ beamlit/api/environments/get_environment_metrics.py,sha256=1Pzx50KxxOHdagQG9CU28
|
|
36
33
|
beamlit/api/environments/list_environments.py,sha256=EhcmGmrsrsHNBp689ItaXsUYRxf4bKPqmmykHaJiatY,3667
|
37
34
|
beamlit/api/environments/update_environment.py,sha256=6IzXLf6cuELiYCX7hUNwxTTsVTEfh-0SVsxgsVjpRu4,4779
|
38
35
|
beamlit/api/functions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
|
-
beamlit/api/functions/create_function.py,sha256=
|
36
|
+
beamlit/api/functions/create_function.py,sha256=SX1Au076mQ6OZOu_zfvkvdv_IVmQ0MPSvpVG0Uv9PiY,4175
|
40
37
|
beamlit/api/functions/create_function_release.py,sha256=ryPDVSlRadngh_F_6pl9WE_nO74Yu2TQxAaKSWVg17s,3805
|
41
38
|
beamlit/api/functions/delete_function.py,sha256=G4mbHt2u3IFIHT95drKHOefNnmsCexiRlqD_YCU9puM,3591
|
42
39
|
beamlit/api/functions/delete_function_deployment.py,sha256=qKcZz6zsApH8z3XOuvdiuBOWSnEnkqXTRqdlPMYfZb8,4296
|
@@ -48,10 +45,21 @@ beamlit/api/functions/get_function_metrics.py,sha256=GKXuFq5PzcZtIBt-4j95jRmVAq_
|
|
48
45
|
beamlit/api/functions/list_function_deployments.py,sha256=aMOJl97NNQBy4fJnm8P0Tilf7o_vAQKnl2qXL9lH59I,4040
|
49
46
|
beamlit/api/functions/list_functions.py,sha256=1yNW46v_H6cxHCuHXzNl0OgOpsEErdW-j8N13SdmEzA,3393
|
50
47
|
beamlit/api/functions/put_function_deployment.py,sha256=Mz-1TaazeB1uLVA-8Vh4B0Dwogl3CkHCUVGL8EtH9l4,5019
|
51
|
-
beamlit/api/functions/update_function.py,sha256=
|
48
|
+
beamlit/api/functions/update_function.py,sha256=EuPS1YOEU4k5aLnItAhpIXnrY4XdBmdfQMjUuaRYJU8,4611
|
52
49
|
beamlit/api/history/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
53
50
|
beamlit/api/history/get_agents_history.py,sha256=DUj3hEvJUhWzgEA_Fi77L_P3v7Ar3tU815f8_Up6XuY,4144
|
54
51
|
beamlit/api/history/list_agents_history.py,sha256=QYjQySmheHbjBpsqJj6WjuR_lAt5puUEicaC7htrH3Y,3630
|
52
|
+
beamlit/api/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
53
|
+
beamlit/api/integrations/create_integration_connection.py,sha256=VoaP3qLQpHCyB-K2q-Lc1EJJEXPLqasIzg3sNa-8nM4,4214
|
54
|
+
beamlit/api/integrations/delete_integration_connection.py,sha256=DjyhnqA6hn8mTZ9FXI6VcAUaeLvfXMDxDp2iHLJreqc,4188
|
55
|
+
beamlit/api/integrations/get_integration.py,sha256=SOuuztVMIES0TCg4LpVXCA7T9N0fPcks5xLx8bUQ7AI,2473
|
56
|
+
beamlit/api/integrations/get_integration_connection.py,sha256=Q96qwrVsCwxtcx4q8WdlmsRjyNGHnwZ_SzmXXcre0Wc,4030
|
57
|
+
beamlit/api/integrations/get_integration_connection_model.py,sha256=5lVD0-enYmBUu5UwvGrt5AubzL7eY31V_KAoFumQpng,2525
|
58
|
+
beamlit/api/integrations/get_integration_model.py,sha256=Y737RerrDQBhUA8v5u3aHjrJfjWyB-1u3eMKbcir7C8,2475
|
59
|
+
beamlit/api/integrations/list_integration_connection_models.py,sha256=xEND9JaVrqTIXQ5vlBUihfASFkj-P28oTKN-DYYpPeQ,2530
|
60
|
+
beamlit/api/integrations/list_integration_connections.py,sha256=CfZJ8Hvv6z5FJTIE7bnWeuNmvI7mbzHJ5WF8L7WxpGc,3906
|
61
|
+
beamlit/api/integrations/list_integration_models.py,sha256=3oxo5R0w_C3Fy7QLI2hNX7UsNcXJnqAORyqrW0_eGlw,2484
|
62
|
+
beamlit/api/integrations/update_integration_connection.py,sha256=aCVzuQjUeebipm9p79PVVBEkHtzubHFhN1gviCILXic,4894
|
55
63
|
beamlit/api/invitations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
56
64
|
beamlit/api/invitations/list_all_pending_invitations.py,sha256=WFB_IHmK-abilAmufBKAA7cobz8G7WPOTzFKOaEkdr4,4117
|
57
65
|
beamlit/api/locations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -110,22 +118,28 @@ beamlit/api/workspaces/list_workspaces.py,sha256=FnmUumyrJeA-akmKDoz0K_DRiv-iiF_
|
|
110
118
|
beamlit/api/workspaces/remove_workspace_user.py,sha256=AxEG15Vwe-dFspQD21pYqEjsY-RO0_K-eoLpdkY-VEc,2667
|
111
119
|
beamlit/api/workspaces/update_workspace.py,sha256=qa5DV2UJSUYuB_ibALb4E9ghKpT1HaEIzIb9MOcDKv4,4241
|
112
120
|
beamlit/api/workspaces/update_workspace_user_role.py,sha256=Yn9iuJ4tKtauzBiJyU4-wYUMS9g98X2Om8zs7UkzrY8,4917
|
113
|
-
beamlit/authentication/__init__.py,sha256=
|
121
|
+
beamlit/authentication/__init__.py,sha256=9ft7zzga8uEmb4Z6WoMBdEPTGwQCGP5w4SUQnu3XAS4,868
|
114
122
|
beamlit/authentication/apikey.py,sha256=HvqWEd2IqcUuISvftqpi_lhd2fTQDHTf8M4O_k7HerU,489
|
115
|
-
beamlit/authentication/authentication.py,sha256=
|
116
|
-
beamlit/authentication/
|
117
|
-
beamlit/authentication/
|
118
|
-
beamlit/
|
123
|
+
beamlit/authentication/authentication.py,sha256=Al_ioKYVfGdS9urfENFqE12drzChD6l3sGWM68jHfXA,1219
|
124
|
+
beamlit/authentication/clientcredentials.py,sha256=OUzV_Kc5A2BIteM5u8r26NwQMs8oTHPqz9qAkSxwxH0,3744
|
125
|
+
beamlit/authentication/credentials.py,sha256=5W_LXdRpiYmZAJLPOanTvZ8L-fMSg7Zq1-vOeOrlBec,4828
|
126
|
+
beamlit/authentication/device_mode.py,sha256=Y4WVDH6guhdQKn8zIV5s93VWvtAIn4BsTikq_UnZw4c,3409
|
127
|
+
beamlit/common/generate.py,sha256=pECy9zDDSH8IlTFZkXA3RaEv07ndLh0pKaaYBARoftk,7031
|
128
|
+
beamlit/common/logger.py,sha256=zuUVHsSSwH0REij0rDhBgZ0U7YvToDQu-SVS6ZBIDUg,948
|
129
|
+
beamlit/common/settings.py,sha256=-gx-ZerN51YnubrVGIo9h3FNncDs_3X2l1uEggd1-w0,4216
|
130
|
+
beamlit/common/utils.py,sha256=0KaC8vMa0AyIm4jTNgAJSsOYA1b191Q8AUF1up1RxFs,634
|
131
|
+
beamlit/models/__init__.py,sha256=F7yHBm7lFvVTfaNzJdg2hUX6JG65-mxtwkKy5t3pEf8,9159
|
119
132
|
beamlit/models/acl.py,sha256=_QF5XXlVJHBPxuuNnBXhgRngFB6JNesi0YFDG1_R1G4,4599
|
120
133
|
beamlit/models/agent.py,sha256=qth06iM1SLo9xvaiJMVuOGSdkhpHNoVW0DjBOda8gQw,4792
|
121
134
|
beamlit/models/agent_chain.py,sha256=fA9m1xpPjHVUBrVFJiZtgmFho7YT-W24SFWXzh__8vg,2212
|
122
135
|
beamlit/models/agent_configuration.py,sha256=E4OS6EagzgA5UyXHBXySZ16qZusWNPDsFAbgXMGVSjs,1947
|
123
|
-
beamlit/models/agent_deployment.py,sha256=
|
124
|
-
beamlit/models/
|
125
|
-
beamlit/models/agent_deployment_history.py,sha256=
|
126
|
-
beamlit/models/agent_deployment_history_event.py,sha256=
|
127
|
-
beamlit/models/
|
136
|
+
beamlit/models/agent_deployment.py,sha256=81fa0vuLL3o2N01djKyF36nLwK8Wep-2KLgz69P2Nu8,16000
|
137
|
+
beamlit/models/agent_deployment_configuration_type_0.py,sha256=Z1plO5qFfzrBO5q4i-ulgTwm--K41r0aAOJ-iZ-jvd4,1393
|
138
|
+
beamlit/models/agent_deployment_history.py,sha256=QW8xwMrpV-NqaohwqjLG-1NlLAuo_GX4rNvR0REzlm0,7096
|
139
|
+
beamlit/models/agent_deployment_history_event.py,sha256=ACGwOaxoLN2wMpzasrWM7D-5kOY9szJDX2-xZURP5j4,5845
|
140
|
+
beamlit/models/agent_deployment_pod_template_type_0.py,sha256=zF8oTpOxU2bdzV3HJjSPNtb3K70qlA1jEsHOrHzDtJ0,1338
|
128
141
|
beamlit/models/agent_release.py,sha256=GUNEReDCGd6OxqeIqfo_fKS7T6oOlO4sYgzcy1fZ5e0,1885
|
142
|
+
beamlit/models/agent_with_deployments.py,sha256=7cN7a7KZYvOyCZZiHGG9S1k8jEPCbO5JefaybzUb8lQ,6103
|
129
143
|
beamlit/models/api_key.py,sha256=hjRD_kiMrtYt4TCUyaFRvfpM4xenfgCLXXFZ92m53tw,4245
|
130
144
|
beamlit/models/authentication_provider_model.py,sha256=KPCfDr2E6IYsltVG-TtF4ZrUG9zeuNG5zo1qYeTbnE4,4490
|
131
145
|
beamlit/models/authentication_provider_organization.py,sha256=vt_CIiwDrZIxcI1X1PKYjt1FjPC2u4mc9uHNX1zlDes,2636
|
@@ -137,34 +151,42 @@ beamlit/models/create_workspace_service_account_body.py,sha256=gn1tV8rqFK2DqrWQ_
|
|
137
151
|
beamlit/models/create_workspace_service_account_response_200.py,sha256=nXcTU25QtkIjGj_oaGRSsqCGUgca8LU1HV4hZNmfvY4,3306
|
138
152
|
beamlit/models/delete_workspace_service_account_response_200.py,sha256=RohQU6RL0I8BcDQQFSmOKLXrDraCH1wC6PBCRndNLA8,2925
|
139
153
|
beamlit/models/deployment_configuration.py,sha256=Q5fMAYn_qPC7ev3SPlY6IkCv8PMxvEPe_pepgabIzko,1984
|
140
|
-
beamlit/models/deployment_configurations.py,sha256=
|
141
|
-
beamlit/models/
|
154
|
+
beamlit/models/deployment_configurations.py,sha256=jP159kYz9q1LVMNJ9BSAQjQTiDhJUMGHFA54f8REaAY,1913
|
155
|
+
beamlit/models/deployment_serverless_config_type_0.py,sha256=dZ235N76xwv31w-IN8GUyMqO3KHomsFoTu682h37Gmw,8623
|
142
156
|
beamlit/models/environment.py,sha256=sh_6UEBYrUyYywSmfiB-25GULJVrqOiE42IH41w2XzQ,5412
|
143
|
-
beamlit/models/environment_metrics.py,sha256=
|
157
|
+
beamlit/models/environment_metrics.py,sha256=WYAAbccAY9C2RYWgZqgB4-m2hXq3CzWT4gadabK3cwY,3780
|
144
158
|
beamlit/models/flavor.py,sha256=1GuyfR7nIX5nVzEp0ic7AchNyr9UENBAxcByeH6TJf0,1783
|
145
159
|
beamlit/models/function.py,sha256=D0FfAF2T-33iWh1QQP_yHHV2Yw_bRt4GEW8x0MNiHBs,4819
|
146
160
|
beamlit/models/function_configuration.py,sha256=k2RgtMFlbQ2V9S0JHN6Du9KC8kuk8wDTC9XqRUd4Y3o,1974
|
147
|
-
beamlit/models/function_deployment.py,sha256=
|
148
|
-
beamlit/models/
|
149
|
-
beamlit/models/
|
161
|
+
beamlit/models/function_deployment.py,sha256=4L58XKQ31p70dC3RVhhQwi7XcyUAGrOvqOqwjHGjf_0,16130
|
162
|
+
beamlit/models/function_deployment_configuration_type_0.py,sha256=0AtwCV_PRla1kEuV1Yb9CWCDOctp78LMt6NLlX-2RtQ,1414
|
163
|
+
beamlit/models/function_deployment_pod_template_type_0.py,sha256=HesH6UuQlhb8LksUPANjnkmE4joQgybyulnpUhSmB24,1353
|
150
164
|
beamlit/models/function_kit.py,sha256=Fvk_WsE0hq3mrSrf5GIXr_2CAcILkHjjDfReHAUOJMg,3070
|
151
165
|
beamlit/models/function_provider_ref.py,sha256=P454XA3ZihM8JbjbdSggAtGNaiTveXYZ2lXObBSGVXU,1868
|
152
166
|
beamlit/models/function_release.py,sha256=DF2NFYngUrE55IN3SysxaX1mX2oG_Ajh6-5w_kBk0Yo,1912
|
167
|
+
beamlit/models/function_with_deployments.py,sha256=4MMmTkbT8q3twJ-yU1QbBREnsBJ-eJC78vqHwrN3-C4,6171
|
153
168
|
beamlit/models/get_workspace_service_accounts_response_200_item.py,sha256=_38dC3KFAvePakHrewwNd-WzGKLquBWLDCuPIiTLi4A,2938
|
169
|
+
beamlit/models/increase_and_rate_metric.py,sha256=YGeChdETm3e4-eSMdpeWaUjEnPWC7_CsylaAY3c5eHE,3843
|
170
|
+
beamlit/models/integration.py,sha256=XjcTFD1O4MiGqIDP5igoTzVKjWBhTlK5SYd0B0m2y7k,6506
|
171
|
+
beamlit/models/integration_config.py,sha256=dthTqHD4NlT2OUza5x-vZGEJd8sGQurikgg7aaNGzNM,1215
|
172
|
+
beamlit/models/integration_connection.py,sha256=XbLK2lYJjX6yaoiWjUKh_ERWVy1z3mPPUZ253FvcS4M,6830
|
173
|
+
beamlit/models/integration_connection_config.py,sha256=jGRcU8Q0HRd1dUBF6ukAJwokqTGYUVUw7RZJZGW4LY8,1268
|
174
|
+
beamlit/models/integration_connection_secret.py,sha256=vzjaF9fYfs60QIlxUeZ9nX1bQtfMezIc3qPAfMhiiqo,1666
|
175
|
+
beamlit/models/integration_model.py,sha256=zOSbmEWmZB6DZ81OGbeqyQHhgMAH2_EKURNrMrHKvvE,4432
|
176
|
+
beamlit/models/integration_secret.py,sha256=dvTDi9Z73_rni3Ca6sMrNvszdOzRcksdCPJ3ZvlgnAc,1613
|
154
177
|
beamlit/models/invite_workspace_user_body.py,sha256=4VAKhUEhi2K7bVTcexSEyuXTIv57j2MGlCcHNsmUpI4,1569
|
155
|
-
beamlit/models/labels.py,sha256=gcpn1D7r-MaRXyH0JOQf7XA9ywsA4CGJMGBqS77CV74,1145
|
156
178
|
beamlit/models/labels_type_0.py,sha256=2y_kHq8D0uVCekC39vbFWVqEdFNudhxDbdFKKVW7f1k,1176
|
157
179
|
beamlit/models/location.py,sha256=bo2CqhYeoWSizKZdoBpsSX2eE0gwvgwQa6NZXcwvjyM,3498
|
158
180
|
beamlit/models/location_response.py,sha256=ua6uJy-3bAdJYlF4Y3uIAttAjpmWqKYwHaYwmoTnp7A,3357
|
159
181
|
beamlit/models/metric.py,sha256=psLNvdmIlae_wKjRK4ud0c028fE7yubyQv0Aish21i8,1791
|
160
|
-
beamlit/models/metrics.py,sha256=
|
182
|
+
beamlit/models/metrics.py,sha256=cxEWOy6DDc4zN61edrkPdkUrr3p5YhOgHIekyRMAsfk,5811
|
161
183
|
beamlit/models/model.py,sha256=awen8Dnl066TBv_7dlPaEQ8ZxCLhzpLJ6NLhXUtC-Ag,4888
|
162
|
-
beamlit/models/model_deployment.py,sha256=
|
184
|
+
beamlit/models/model_deployment.py,sha256=GJ6hRuP3UvWrgTZlLor94vkcWbdRrphI1Q2FrorsDgg,12082
|
163
185
|
beamlit/models/model_deployment_log.py,sha256=3Qpc9pZVtXJGL5NKg_GW7cvjJYwCUq7ElO8MyCB65D8,1913
|
164
186
|
beamlit/models/model_deployment_metrics.py,sha256=HRB6_a5Uk9Jw_Xq2CUkmXWr3P2fz_gecdpBdpLALLC0,8718
|
165
187
|
beamlit/models/model_deployment_metrics_inference_per_second_per_region.py,sha256=AQGOJ33XarD89Lru5bwP-XEfj6KRawfH9-No2fVFy3Y,2578
|
166
188
|
beamlit/models/model_deployment_metrics_query_per_second_per_region_per_code.py,sha256=dKAsvuGm6BC1bdU68OBKk_TlkE7vhdHLAVo0Co-y6sQ,2329
|
167
|
-
beamlit/models/
|
189
|
+
beamlit/models/model_deployment_pod_template_type_0.py,sha256=HUObTFx6XoQDXhGzZc7BSyxRT1jrKjN8K2q6TedCKac,1354
|
168
190
|
beamlit/models/model_metrics.py,sha256=hTBF0DK2hAd3xzXgxaTetCn2m6FgTDGxNVOEMwRQ0y0,3758
|
169
191
|
beamlit/models/model_provider.py,sha256=8SNTyE6K7_BMzcgDPwmkYzgGvj89RHONCtVWAwsVd64,6067
|
170
192
|
beamlit/models/model_provider_ref.py,sha256=_xjqQPxnK9vpWvTImEde5R-UPwOfvVR4ORLvW7wCbVg,1853
|
@@ -176,29 +198,31 @@ beamlit/models/pending_invitation_render.py,sha256=vSAZidJBRidKQhrVvOhsCP0TYcD4m
|
|
176
198
|
beamlit/models/pending_invitation_render_invited_by.py,sha256=hOAFJU4cUiZOsZm37zbYrTayzzE-ZwxH1pnr-nbIXYI,2485
|
177
199
|
beamlit/models/pending_invitation_render_workspace.py,sha256=pc63-4aENWQE8LuErd9MAfJPFnJEVMpqB9NYv9PlTvw,1963
|
178
200
|
beamlit/models/pending_invitation_workspace_details.py,sha256=tujVaozKqLgaS3TP4Os5vdX_FsAoiaXcje9FbEHbqgY,2163
|
179
|
-
beamlit/models/policy.py,sha256=
|
201
|
+
beamlit/models/policy.py,sha256=E_KwxV6KLX-jC0Svk1H5VVMzmIl5uAT7GfNuORO0jyI,6384
|
180
202
|
beamlit/models/policy_location.py,sha256=dP6Yas42GtJ2H-wN-7Ny5j5TCCkB7s27qG5PIJBieQ8,1789
|
181
|
-
beamlit/models/provider_config.py,sha256=
|
203
|
+
beamlit/models/provider_config.py,sha256=dsV1xsLvz_si-LXLb1JphD50ufF08sV0cKQt7kzc4vA,2849
|
182
204
|
beamlit/models/qps.py,sha256=WUy0h4iMgC7rLdM1k_Vy-KAo5JYP3hS5iK_mQf8OHqA,1641
|
183
205
|
beamlit/models/resource_deployment_log.py,sha256=mHW4j0yOgqUgypIGHL8SF-BVIhni159aweCiN3D3nCk,1975
|
184
|
-
beamlit/models/resource_deployment_metrics.py,sha256=
|
185
|
-
beamlit/models/
|
186
|
-
beamlit/models/
|
187
|
-
beamlit/models/
|
188
|
-
beamlit/models/
|
189
|
-
beamlit/models/
|
206
|
+
beamlit/models/resource_deployment_metrics.py,sha256=amsjCYc4hODyZXkPA7xs5ZdIVZNRT_LEaKtoeNoeEqk,18395
|
207
|
+
beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py,sha256=efnVrOLm3aN7fG240hKYHSNl8StygiJCIvvVaMRFzVk,2575
|
208
|
+
beamlit/models/resource_deployment_metrics_inference_per_second_per_region_type_0.py,sha256=30CBFrXFO_SpHcdxpTg0PB9uqha9WJbisOJh-55jCHs,2624
|
209
|
+
beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py,sha256=62CgIZ5Nx7mAzVWqiJOCS9Ep81x1JHfMkpF4efvNtk0,2296
|
210
|
+
beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py,sha256=hOh9qgJfV14KxPRO4sRjBjiCLJprAOjlZq_T3VV_eLk,2375
|
211
|
+
beamlit/models/resource_metrics.py,sha256=mDEkUBEK-ScoM_Hv2xWqlyppinKN7kOKt01aqoq3h7M,5671
|
212
|
+
beamlit/models/runtime.py,sha256=pvAEXBenrxyauTgM2JMWzKqHwMx5dijPuNOyvTsWWoQ,5963
|
213
|
+
beamlit/models/runtime_readiness_probe_type_0.py,sha256=ENdLAwWmRgsqJwymYg8Z5TFEL_Hv6_Ysec7lhkTCn7o,1305
|
190
214
|
beamlit/models/runtime_resources.py,sha256=xRNu-Xs-Se_L3eNskgxG91LTxRzikuO-0ew5RRHUeew,1274
|
191
215
|
beamlit/models/serverless_config.py,sha256=fR1GlPt0sFGY-SXNypjPAO559E34N-JUTB6C4gi892U,4288
|
192
216
|
beamlit/models/standard_fields_dynamo_db.py,sha256=RRX9ouI2Qphyxtl_woYv4cKXhBvAxS0ptNz0Yt0gGlo,2723
|
193
|
-
beamlit/models/store_agent.py,sha256=
|
217
|
+
beamlit/models/store_agent.py,sha256=Ka1BE055pyh_SeoI5fuqJib0g_vwYvucxiG4F-jLbPI,6260
|
194
218
|
beamlit/models/store_agent_configuration.py,sha256=kvCW7WeiFAC5324Nn_ZoTte7-oZHRF3Ayob3-2Qj350,2897
|
195
|
-
beamlit/models/
|
196
|
-
beamlit/models/store_configuration.py,sha256=
|
197
|
-
beamlit/models/store_configuration_option.py,sha256=
|
198
|
-
beamlit/models/store_function.py,sha256=
|
219
|
+
beamlit/models/store_agent_labels_type_0.py,sha256=3ayc28w-MG5OM9l3xjRQLgmapPJLgO1hh--TDY-Mo7Q,1244
|
220
|
+
beamlit/models/store_configuration.py,sha256=JRYdI2fVmFqHIwxZG4Ng-X21J3sPefsVR8LTK4yhgSA,5311
|
221
|
+
beamlit/models/store_configuration_option.py,sha256=v7hhjwDdOS_kbWKMMlzheKF6eb5HKAyTDk2OVhyioCU,2634
|
222
|
+
beamlit/models/store_function.py,sha256=Snm-81E_6QGzlqh9_AgCGlnHBgeljy7j_N8de7kp1yw,8130
|
199
223
|
beamlit/models/store_function_configuration.py,sha256=qdppgPzmynGw58PQzCTym8xXta7mpibEYfibMoH0bDI,2918
|
200
224
|
beamlit/models/store_function_kit.py,sha256=wWlyxnS2odoRkfVnNF3UislXAgu6zc-MhpIGO3ZyTPw,3104
|
201
|
-
beamlit/models/
|
225
|
+
beamlit/models/store_function_labels_type_0.py,sha256=jhOQGxNK9Ute4tmxCK3YTEtIsTRKYtKcmgdOsfjfJfw,1262
|
202
226
|
beamlit/models/store_function_parameter.py,sha256=zfPzl8WULWVJIla_3yZ7pkbJ4pfmZrr4b4zccTV1Bcc,2501
|
203
227
|
beamlit/models/update_workspace_service_account_body.py,sha256=lLvGOgRTUH0UwAnT__H0N77QGyXDI8laYpeEJCFkNt4,1961
|
204
228
|
beamlit/models/update_workspace_service_account_response_200.py,sha256=KVWSF1GQNZ4quid2C0U9ojFBld5uEMi9IFKDqd41GYg,2925
|
@@ -206,6 +230,6 @@ beamlit/models/update_workspace_user_role_body.py,sha256=fRTVmZEOjx4805gg_EXkI6m
|
|
206
230
|
beamlit/models/workspace.py,sha256=pJq3Qhy3DKUbmJ6F7FKU12DaN5LqZpFCILN67ki5JU4,3949
|
207
231
|
beamlit/models/workspace_labels.py,sha256=Ll5DMnOTmY1NDquVcDXf9Gyglb0_-ZM3KUM8u2trshE,1203
|
208
232
|
beamlit/models/workspace_user.py,sha256=iq-ObiW7sSrzu9NeGapa0Q0E7XRfdFSZQh0_4zBWlpY,3380
|
209
|
-
beamlit-0.0.
|
210
|
-
beamlit-0.0.
|
211
|
-
beamlit-0.0.
|
233
|
+
beamlit-0.0.20rc1.dist-info/METADATA,sha256=PjIrde02-LkkUDBHKNqCYHn7y8T44X71uMUmSd74MSs,1746
|
234
|
+
beamlit-0.0.20rc1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
235
|
+
beamlit-0.0.20rc1.dist-info/RECORD,,
|
@@ -1,184 +0,0 @@
|
|
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.authentication_provider_model import AuthenticationProviderModel
|
9
|
-
from ...types import Response
|
10
|
-
|
11
|
-
|
12
|
-
def _get_kwargs(
|
13
|
-
authentication_provider_name: str,
|
14
|
-
model_repo_id: str,
|
15
|
-
model_id: str,
|
16
|
-
) -> dict[str, Any]:
|
17
|
-
_kwargs: dict[str, Any] = {
|
18
|
-
"method": "get",
|
19
|
-
"url": f"/authentication_providers/{authentication_provider_name}/models/{model_repo_id}/{model_id}",
|
20
|
-
}
|
21
|
-
|
22
|
-
return _kwargs
|
23
|
-
|
24
|
-
|
25
|
-
def _parse_response(
|
26
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
27
|
-
) -> Optional[AuthenticationProviderModel]:
|
28
|
-
if response.status_code == 200:
|
29
|
-
response_200 = AuthenticationProviderModel.from_dict(response.json())
|
30
|
-
|
31
|
-
return response_200
|
32
|
-
if client.raise_on_unexpected_status:
|
33
|
-
raise errors.UnexpectedStatus(response.status_code, response.content)
|
34
|
-
else:
|
35
|
-
return None
|
36
|
-
|
37
|
-
|
38
|
-
def _build_response(
|
39
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
40
|
-
) -> Response[AuthenticationProviderModel]:
|
41
|
-
return Response(
|
42
|
-
status_code=HTTPStatus(response.status_code),
|
43
|
-
content=response.content,
|
44
|
-
headers=response.headers,
|
45
|
-
parsed=_parse_response(client=client, response=response),
|
46
|
-
)
|
47
|
-
|
48
|
-
|
49
|
-
def sync_detailed(
|
50
|
-
authentication_provider_name: str,
|
51
|
-
model_repo_id: str,
|
52
|
-
model_id: str,
|
53
|
-
*,
|
54
|
-
client: AuthenticatedClient,
|
55
|
-
) -> Response[AuthenticationProviderModel]:
|
56
|
-
"""Get model for a authentication provider
|
57
|
-
|
58
|
-
Returns a model with a repository for an integration by ID.
|
59
|
-
|
60
|
-
Args:
|
61
|
-
authentication_provider_name (str):
|
62
|
-
model_repo_id (str):
|
63
|
-
model_id (str):
|
64
|
-
|
65
|
-
Raises:
|
66
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
67
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
68
|
-
|
69
|
-
Returns:
|
70
|
-
Response[AuthenticationProviderModel]
|
71
|
-
"""
|
72
|
-
|
73
|
-
kwargs = _get_kwargs(
|
74
|
-
authentication_provider_name=authentication_provider_name,
|
75
|
-
model_repo_id=model_repo_id,
|
76
|
-
model_id=model_id,
|
77
|
-
)
|
78
|
-
|
79
|
-
response = client.get_httpx_client().request(
|
80
|
-
**kwargs,
|
81
|
-
)
|
82
|
-
|
83
|
-
return _build_response(client=client, response=response)
|
84
|
-
|
85
|
-
|
86
|
-
def sync(
|
87
|
-
authentication_provider_name: str,
|
88
|
-
model_repo_id: str,
|
89
|
-
model_id: str,
|
90
|
-
*,
|
91
|
-
client: AuthenticatedClient,
|
92
|
-
) -> Optional[AuthenticationProviderModel]:
|
93
|
-
"""Get model for a authentication provider
|
94
|
-
|
95
|
-
Returns a model with a repository for an integration by ID.
|
96
|
-
|
97
|
-
Args:
|
98
|
-
authentication_provider_name (str):
|
99
|
-
model_repo_id (str):
|
100
|
-
model_id (str):
|
101
|
-
|
102
|
-
Raises:
|
103
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
104
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
105
|
-
|
106
|
-
Returns:
|
107
|
-
AuthenticationProviderModel
|
108
|
-
"""
|
109
|
-
|
110
|
-
return sync_detailed(
|
111
|
-
authentication_provider_name=authentication_provider_name,
|
112
|
-
model_repo_id=model_repo_id,
|
113
|
-
model_id=model_id,
|
114
|
-
client=client,
|
115
|
-
).parsed
|
116
|
-
|
117
|
-
|
118
|
-
async def asyncio_detailed(
|
119
|
-
authentication_provider_name: str,
|
120
|
-
model_repo_id: str,
|
121
|
-
model_id: str,
|
122
|
-
*,
|
123
|
-
client: AuthenticatedClient,
|
124
|
-
) -> Response[AuthenticationProviderModel]:
|
125
|
-
"""Get model for a authentication provider
|
126
|
-
|
127
|
-
Returns a model with a repository for an integration by ID.
|
128
|
-
|
129
|
-
Args:
|
130
|
-
authentication_provider_name (str):
|
131
|
-
model_repo_id (str):
|
132
|
-
model_id (str):
|
133
|
-
|
134
|
-
Raises:
|
135
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
136
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
137
|
-
|
138
|
-
Returns:
|
139
|
-
Response[AuthenticationProviderModel]
|
140
|
-
"""
|
141
|
-
|
142
|
-
kwargs = _get_kwargs(
|
143
|
-
authentication_provider_name=authentication_provider_name,
|
144
|
-
model_repo_id=model_repo_id,
|
145
|
-
model_id=model_id,
|
146
|
-
)
|
147
|
-
|
148
|
-
response = await client.get_async_httpx_client().request(**kwargs)
|
149
|
-
|
150
|
-
return _build_response(client=client, response=response)
|
151
|
-
|
152
|
-
|
153
|
-
async def asyncio(
|
154
|
-
authentication_provider_name: str,
|
155
|
-
model_repo_id: str,
|
156
|
-
model_id: str,
|
157
|
-
*,
|
158
|
-
client: AuthenticatedClient,
|
159
|
-
) -> Optional[AuthenticationProviderModel]:
|
160
|
-
"""Get model for a authentication provider
|
161
|
-
|
162
|
-
Returns a model with a repository for an integration by ID.
|
163
|
-
|
164
|
-
Args:
|
165
|
-
authentication_provider_name (str):
|
166
|
-
model_repo_id (str):
|
167
|
-
model_id (str):
|
168
|
-
|
169
|
-
Raises:
|
170
|
-
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
171
|
-
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
172
|
-
|
173
|
-
Returns:
|
174
|
-
AuthenticationProviderModel
|
175
|
-
"""
|
176
|
-
|
177
|
-
return (
|
178
|
-
await asyncio_detailed(
|
179
|
-
authentication_provider_name=authentication_provider_name,
|
180
|
-
model_repo_id=model_repo_id,
|
181
|
-
model_id=model_id,
|
182
|
-
client=client,
|
183
|
-
)
|
184
|
-
).parsed
|
@@ -1,129 +0,0 @@
|
|
1
|
-
from typing import Any, Type, 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="DeploymentServerlessConfig")
|
9
|
-
|
10
|
-
|
11
|
-
@_attrs_define
|
12
|
-
class DeploymentServerlessConfig:
|
13
|
-
"""Configuration for a serverless deployment
|
14
|
-
|
15
|
-
Attributes:
|
16
|
-
last_pod_retention_period (Union[Unset, str]): The minimum amount of time that the last replica will remain
|
17
|
-
active AFTER a scale-to-zero decision is made
|
18
|
-
max_num_replicas (Union[Unset, int]): The maximum number of replicas for the deployment.
|
19
|
-
metric (Union[Unset, str]): Metric watched to make scaling decisions. Can be "cpu" or "memory" or "rps" or
|
20
|
-
"concurrency"
|
21
|
-
min_num_replicas (Union[Unset, int]): The minimum number of replicas for the deployment. Can be 0 or 1 (in which
|
22
|
-
case the deployment is always running in at least one location).
|
23
|
-
scale_down_delay (Union[Unset, str]): The time window which must pass at reduced concurrency before a scale-down
|
24
|
-
decision is applied. This can be useful, for example, to keep containers around for a configurable duration to
|
25
|
-
avoid a cold start penalty if new requests come in.
|
26
|
-
scale_up_minimum (Union[Unset, int]): The minimum number of replicas that will be created when the deployment
|
27
|
-
scales up from zero.
|
28
|
-
stable_window (Union[Unset, str]): The sliding time window over which metrics are averaged to provide the input
|
29
|
-
for scaling decisions
|
30
|
-
target (Union[Unset, str]): Target value for the watched metric
|
31
|
-
"""
|
32
|
-
|
33
|
-
last_pod_retention_period: Union[Unset, str] = UNSET
|
34
|
-
max_num_replicas: Union[Unset, int] = UNSET
|
35
|
-
metric: Union[Unset, str] = UNSET
|
36
|
-
min_num_replicas: Union[Unset, int] = UNSET
|
37
|
-
scale_down_delay: Union[Unset, str] = UNSET
|
38
|
-
scale_up_minimum: Union[Unset, int] = UNSET
|
39
|
-
stable_window: Union[Unset, str] = UNSET
|
40
|
-
target: Union[Unset, str] = UNSET
|
41
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
42
|
-
|
43
|
-
def to_dict(self) -> dict[str, Any]:
|
44
|
-
last_pod_retention_period = self.last_pod_retention_period
|
45
|
-
|
46
|
-
max_num_replicas = self.max_num_replicas
|
47
|
-
|
48
|
-
metric = self.metric
|
49
|
-
|
50
|
-
min_num_replicas = self.min_num_replicas
|
51
|
-
|
52
|
-
scale_down_delay = self.scale_down_delay
|
53
|
-
|
54
|
-
scale_up_minimum = self.scale_up_minimum
|
55
|
-
|
56
|
-
stable_window = self.stable_window
|
57
|
-
|
58
|
-
target = self.target
|
59
|
-
|
60
|
-
field_dict: dict[str, Any] = {}
|
61
|
-
field_dict.update(self.additional_properties)
|
62
|
-
field_dict.update({})
|
63
|
-
if last_pod_retention_period is not UNSET:
|
64
|
-
field_dict["last_pod_retention_period"] = last_pod_retention_period
|
65
|
-
if max_num_replicas is not UNSET:
|
66
|
-
field_dict["max_num_replicas"] = max_num_replicas
|
67
|
-
if metric is not UNSET:
|
68
|
-
field_dict["metric"] = metric
|
69
|
-
if min_num_replicas is not UNSET:
|
70
|
-
field_dict["min_num_replicas"] = min_num_replicas
|
71
|
-
if scale_down_delay is not UNSET:
|
72
|
-
field_dict["scale_down_delay"] = scale_down_delay
|
73
|
-
if scale_up_minimum is not UNSET:
|
74
|
-
field_dict["scale_up_minimum"] = scale_up_minimum
|
75
|
-
if stable_window is not UNSET:
|
76
|
-
field_dict["stable_window"] = stable_window
|
77
|
-
if target is not UNSET:
|
78
|
-
field_dict["target"] = target
|
79
|
-
|
80
|
-
return field_dict
|
81
|
-
|
82
|
-
@classmethod
|
83
|
-
def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
|
84
|
-
d = src_dict.copy()
|
85
|
-
last_pod_retention_period = d.pop("last_pod_retention_period", UNSET)
|
86
|
-
|
87
|
-
max_num_replicas = d.pop("max_num_replicas", UNSET)
|
88
|
-
|
89
|
-
metric = d.pop("metric", UNSET)
|
90
|
-
|
91
|
-
min_num_replicas = d.pop("min_num_replicas", UNSET)
|
92
|
-
|
93
|
-
scale_down_delay = d.pop("scale_down_delay", UNSET)
|
94
|
-
|
95
|
-
scale_up_minimum = d.pop("scale_up_minimum", UNSET)
|
96
|
-
|
97
|
-
stable_window = d.pop("stable_window", UNSET)
|
98
|
-
|
99
|
-
target = d.pop("target", UNSET)
|
100
|
-
|
101
|
-
deployment_serverless_config = cls(
|
102
|
-
last_pod_retention_period=last_pod_retention_period,
|
103
|
-
max_num_replicas=max_num_replicas,
|
104
|
-
metric=metric,
|
105
|
-
min_num_replicas=min_num_replicas,
|
106
|
-
scale_down_delay=scale_down_delay,
|
107
|
-
scale_up_minimum=scale_up_minimum,
|
108
|
-
stable_window=stable_window,
|
109
|
-
target=target,
|
110
|
-
)
|
111
|
-
|
112
|
-
deployment_serverless_config.additional_properties = d
|
113
|
-
return deployment_serverless_config
|
114
|
-
|
115
|
-
@property
|
116
|
-
def additional_keys(self) -> list[str]:
|
117
|
-
return list(self.additional_properties.keys())
|
118
|
-
|
119
|
-
def __getitem__(self, key: str) -> Any:
|
120
|
-
return self.additional_properties[key]
|
121
|
-
|
122
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
123
|
-
self.additional_properties[key] = value
|
124
|
-
|
125
|
-
def __delitem__(self, key: str) -> None:
|
126
|
-
del self.additional_properties[key]
|
127
|
-
|
128
|
-
def __contains__(self, key: str) -> bool:
|
129
|
-
return key in self.additional_properties
|
beamlit/models/labels.py
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
from typing import Any, Type, TypeVar
|
2
|
-
|
3
|
-
from attrs import define as _attrs_define
|
4
|
-
from attrs import field as _attrs_field
|
5
|
-
|
6
|
-
T = TypeVar("T", bound="Labels")
|
7
|
-
|
8
|
-
|
9
|
-
@_attrs_define
|
10
|
-
class Labels:
|
11
|
-
"""Labels"""
|
12
|
-
|
13
|
-
additional_properties: dict[str, str] = _attrs_field(init=False, factory=dict)
|
14
|
-
|
15
|
-
def to_dict(self) -> dict[str, Any]:
|
16
|
-
field_dict: dict[str, Any] = {}
|
17
|
-
field_dict.update(self.additional_properties)
|
18
|
-
|
19
|
-
return field_dict
|
20
|
-
|
21
|
-
@classmethod
|
22
|
-
def from_dict(cls: Type[T], src_dict: dict[str, Any]) -> T:
|
23
|
-
d = src_dict.copy()
|
24
|
-
labels = cls()
|
25
|
-
|
26
|
-
labels.additional_properties = d
|
27
|
-
return labels
|
28
|
-
|
29
|
-
@property
|
30
|
-
def additional_keys(self) -> list[str]:
|
31
|
-
return list(self.additional_properties.keys())
|
32
|
-
|
33
|
-
def __getitem__(self, key: str) -> str:
|
34
|
-
return self.additional_properties[key]
|
35
|
-
|
36
|
-
def __setitem__(self, key: str, value: str) -> None:
|
37
|
-
self.additional_properties[key] = value
|
38
|
-
|
39
|
-
def __delitem__(self, key: str) -> None:
|
40
|
-
del self.additional_properties[key]
|
41
|
-
|
42
|
-
def __contains__(self, key: str) -> bool:
|
43
|
-
return key in self.additional_properties
|
File without changes
|
File without changes
|