blaxel 0.2.34__py3-none-any.whl → 0.2.35__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 +2 -2
- blaxel/core/client/api/agents/create_agent.py +64 -19
- blaxel/core/client/api/agents/delete_agent.py +44 -15
- blaxel/core/client/api/agents/get_agent.py +43 -14
- blaxel/core/client/api/agents/list_agents.py +40 -11
- blaxel/core/client/api/agents/update_agent.py +60 -19
- blaxel/core/client/api/compute/create_sandbox.py +60 -23
- blaxel/core/client/api/compute/delete_sandbox.py +40 -19
- blaxel/core/client/api/compute/get_sandbox.py +39 -18
- blaxel/core/client/api/compute/list_sandboxes.py +40 -19
- blaxel/core/client/api/compute/update_sandbox.py +56 -23
- blaxel/core/client/api/configurations/get_configuration.py +16 -4
- blaxel/core/client/api/customdomains/create_custom_domain.py +12 -0
- blaxel/core/client/api/customdomains/list_custom_domains.py +16 -4
- blaxel/core/client/api/default/get_template.py +8 -4
- blaxel/core/client/api/functions/create_function.py +62 -19
- blaxel/core/client/api/functions/delete_function.py +46 -15
- blaxel/core/client/api/functions/get_function.py +45 -14
- blaxel/core/client/api/functions/list_functions.py +44 -15
- blaxel/core/client/api/functions/update_function.py +62 -19
- blaxel/core/client/api/images/cleanup_images.py +12 -12
- blaxel/core/client/api/images/delete_image.py +12 -8
- blaxel/core/client/api/images/delete_image_tag.py +12 -8
- blaxel/core/client/api/images/get_image.py +12 -8
- blaxel/core/client/api/images/list_images.py +12 -8
- blaxel/core/client/api/integrations/create_integration_connection.py +56 -23
- blaxel/core/client/api/integrations/delete_integration_connection.py +48 -19
- blaxel/core/client/api/integrations/get_integration.py +12 -8
- blaxel/core/client/api/integrations/get_integration_connection.py +44 -19
- blaxel/core/client/api/integrations/get_integration_connection_model.py +2 -2
- blaxel/core/client/api/integrations/list_integration_connections.py +36 -19
- blaxel/core/client/api/integrations/update_integration_connection.py +52 -19
- blaxel/core/client/api/jobs/create_job.py +20 -12
- blaxel/core/client/api/jobs/create_job_execution.py +22 -16
- blaxel/core/client/api/jobs/delete_job.py +12 -8
- blaxel/core/client/api/jobs/delete_job_execution.py +12 -8
- blaxel/core/client/api/jobs/get_job.py +24 -20
- blaxel/core/client/api/jobs/get_job_execution.py +8 -4
- blaxel/core/client/api/jobs/list_job_executions.py +8 -4
- blaxel/core/client/api/jobs/list_jobs.py +12 -8
- blaxel/core/client/api/jobs/update_job.py +20 -12
- blaxel/core/client/api/locations/list_locations.py +12 -8
- blaxel/core/client/api/{default → mcphub}/list_mcp_hub_definitions.py +20 -4
- blaxel/core/client/api/models/create_model.py +52 -23
- blaxel/core/client/api/models/delete_model.py +40 -19
- blaxel/core/client/api/models/get_model.py +40 -19
- blaxel/core/client/api/models/list_models.py +40 -19
- blaxel/core/client/api/models/update_model.py +52 -23
- blaxel/core/client/api/policies/create_policy.py +12 -8
- blaxel/core/client/api/policies/delete_policy.py +12 -8
- blaxel/core/client/api/policies/get_policy.py +12 -8
- blaxel/core/client/api/policies/list_policies.py +12 -8
- blaxel/core/client/api/policies/update_policy.py +12 -8
- blaxel/core/client/api/public_ipslist/list_public_ips.py +37 -5
- blaxel/core/client/api/sandboxhub/__init__.py +0 -0
- blaxel/core/client/api/{default → sandboxhub}/list_sandbox_hub_definitions.py +20 -4
- blaxel/core/client/api/service_accounts/create_api_key_for_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/create_workspace_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/delete_api_key_for_service_account.py +6 -4
- blaxel/core/client/api/service_accounts/delete_workspace_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/get_workspace_service_accounts.py +12 -8
- blaxel/core/client/api/service_accounts/list_api_keys_for_service_account.py +12 -8
- blaxel/core/client/api/service_accounts/update_workspace_service_account.py +8 -8
- blaxel/core/client/api/templates/list_templates.py +12 -8
- blaxel/core/client/api/volume_templates/create_volume_template.py +8 -4
- blaxel/core/client/api/volume_templates/list_volume_templates.py +8 -4
- blaxel/core/client/api/volumes/create_volume.py +56 -23
- blaxel/core/client/api/volumes/delete_volume.py +44 -19
- blaxel/core/client/api/volumes/get_volume.py +40 -19
- blaxel/core/client/api/volumes/list_volumes.py +40 -19
- blaxel/core/client/api/workspaces/create_workspace.py +54 -23
- blaxel/core/client/api/workspaces/delete_workspace.py +42 -19
- blaxel/core/client/api/workspaces/get_workspace.py +42 -19
- blaxel/core/client/api/workspaces/invite_workspace_user.py +8 -4
- blaxel/core/client/api/workspaces/list_workspace_users.py +12 -8
- blaxel/core/client/api/workspaces/list_workspaces.py +36 -19
- blaxel/core/client/api/workspaces/update_workspace.py +50 -19
- blaxel/core/client/models/__init__.py +76 -146
- blaxel/core/client/models/agent.py +43 -47
- blaxel/core/client/models/agent_runtime.py +139 -0
- blaxel/core/client/models/agent_runtime_generation.py +18 -0
- blaxel/core/client/models/agent_spec.py +33 -110
- blaxel/core/client/models/api_key.py +5 -4
- blaxel/core/client/models/core_event.py +5 -5
- blaxel/core/client/models/create_api_key_for_service_account_body.py +2 -1
- blaxel/core/client/models/create_job_execution_request.py +1 -1
- blaxel/core/client/models/create_job_execution_response.py +13 -9
- blaxel/core/client/models/custom_domain.py +19 -36
- blaxel/core/client/models/custom_domain_metadata.py +4 -3
- blaxel/core/client/models/custom_domain_spec.py +14 -5
- blaxel/core/client/models/custom_domain_spec_status.py +19 -0
- blaxel/core/client/models/entrypoint.py +39 -13
- blaxel/core/client/models/{workspace_labels.py → entrypoint_args_item.py} +6 -6
- blaxel/core/client/models/entrypoint_env.py +3 -3
- blaxel/core/client/models/{job_metrics_executions_total.py → entrypoint_super_gateway_args_item.py} +6 -6
- blaxel/core/client/models/{spec_configuration.py → env.py} +17 -8
- blaxel/core/{sandbox/client/models/welcome_response.py → client/models/error.py} +26 -23
- blaxel/core/client/models/expiration_policy.py +30 -11
- blaxel/core/client/models/expiration_policy_action.py +17 -0
- blaxel/core/client/models/expiration_policy_type.py +19 -0
- blaxel/core/client/models/flavor.py +13 -5
- blaxel/core/client/models/flavor_type.py +18 -0
- blaxel/core/client/models/form.py +6 -6
- blaxel/core/client/models/function.py +43 -47
- blaxel/core/client/models/function_runtime.py +138 -0
- blaxel/core/client/models/function_runtime_generation.py +18 -0
- blaxel/core/client/models/function_spec.py +27 -73
- blaxel/core/client/models/function_spec_transport.py +18 -0
- blaxel/core/client/models/image.py +19 -36
- blaxel/core/client/models/integration_connection.py +25 -39
- blaxel/core/client/models/integration_connection_spec.py +8 -5
- blaxel/core/client/models/integration_connection_spec_config.py +1 -1
- blaxel/core/client/models/integration_connection_spec_secret.py +1 -1
- blaxel/core/client/models/integration_endpoint.py +41 -11
- blaxel/core/client/models/integration_endpoint_ignore_models_item.py +45 -0
- blaxel/core/client/models/{mcp_definition_entrypoint.py → integration_endpoint_models_item.py} +6 -6
- blaxel/core/client/models/job.py +43 -47
- blaxel/core/client/models/job_execution.py +30 -37
- blaxel/core/client/models/job_execution_metadata.py +3 -3
- blaxel/core/client/models/job_execution_spec.py +2 -2
- blaxel/core/client/models/job_execution_stats.py +5 -5
- blaxel/core/client/models/job_execution_status.py +24 -0
- blaxel/core/client/models/job_execution_task.py +12 -4
- blaxel/core/client/models/job_execution_task_metadata.py +1 -1
- blaxel/core/client/models/job_execution_task_spec.py +2 -2
- blaxel/core/client/models/job_execution_task_status.py +23 -0
- blaxel/core/client/models/job_runtime.py +172 -0
- blaxel/core/client/models/job_runtime_generation.py +18 -0
- blaxel/core/client/models/job_spec.py +20 -88
- blaxel/core/client/models/location_response.py +5 -5
- blaxel/core/client/models/mcp_definition.py +30 -17
- blaxel/core/client/models/{job_metrics_tasks_total.py → mcp_definition_categories_item.py} +6 -6
- blaxel/core/client/models/metadata.py +23 -17
- blaxel/core/client/models/metadata_labels.py +4 -1
- blaxel/core/client/models/model.py +43 -47
- blaxel/core/client/models/model_runtime.py +99 -0
- blaxel/core/client/models/model_runtime_type.py +34 -0
- blaxel/core/client/models/model_spec.py +12 -58
- blaxel/core/client/models/o_auth.py +23 -6
- blaxel/core/client/models/{form_oauth.py → o_auth_scope_item.py} +6 -6
- blaxel/core/client/models/pending_invitation_accept.py +2 -1
- blaxel/core/client/models/pending_invitation_workspace_details.py +27 -6
- blaxel/core/client/models/{metrics_request_total_per_code.py → pending_invitation_workspace_details_emails_item.py} +6 -6
- blaxel/core/client/models/policy.py +20 -36
- blaxel/core/client/models/policy_location.py +13 -5
- blaxel/core/client/models/policy_location_type.py +19 -0
- blaxel/core/client/models/policy_max_tokens.py +6 -6
- blaxel/core/client/models/policy_resource_type.py +20 -0
- blaxel/core/client/models/policy_spec.py +31 -10
- blaxel/core/client/models/policy_spec_type.py +19 -0
- blaxel/core/client/models/port.py +25 -15
- blaxel/core/client/models/port_protocol.py +19 -0
- blaxel/core/client/models/preview.py +19 -36
- blaxel/core/client/models/preview_metadata.py +12 -10
- blaxel/core/client/models/preview_token.py +19 -36
- blaxel/core/client/models/preview_token_metadata.py +8 -6
- blaxel/core/client/models/repository.py +2 -2
- blaxel/core/client/models/revision_configuration.py +3 -3
- blaxel/core/client/models/sandbox.py +45 -58
- blaxel/core/client/models/sandbox_definition.py +37 -22
- blaxel/core/client/models/sandbox_definition_categories_item.py +45 -0
- blaxel/core/client/models/sandbox_error.py +148 -0
- blaxel/core/client/models/sandbox_error_details.py +45 -0
- blaxel/core/client/models/sandbox_lifecycle.py +3 -2
- blaxel/core/client/models/sandbox_runtime.py +145 -0
- blaxel/core/client/models/sandbox_spec.py +33 -134
- blaxel/core/client/models/status.py +25 -0
- blaxel/core/client/models/template.py +8 -7
- blaxel/core/client/models/template_variable.py +5 -5
- blaxel/core/client/models/trigger.py +14 -6
- blaxel/core/client/models/trigger_configuration.py +7 -6
- blaxel/core/client/models/trigger_type.py +19 -0
- blaxel/core/client/models/volume.py +35 -47
- blaxel/core/client/models/volume_attachment.py +6 -4
- blaxel/core/client/models/volume_spec.py +7 -4
- blaxel/core/client/models/volume_state.py +3 -3
- blaxel/core/client/models/volume_template.py +19 -33
- blaxel/core/client/models/volume_template_state.py +12 -4
- blaxel/core/client/models/volume_template_state_status.py +19 -0
- blaxel/core/client/models/volume_template_version.py +12 -4
- blaxel/core/client/models/volume_template_version_status.py +19 -0
- blaxel/core/client/models/workspace.py +35 -25
- blaxel/core/client/models/workspace_runtime.py +3 -2
- blaxel/core/client/models/workspace_status.py +22 -0
- blaxel/core/common/__init__.py +1 -1
- blaxel/core/jobs/__init__.py +0 -1
- blaxel/core/sandbox/__init__.py +2 -0
- blaxel/core/sandbox/client/api/process/post_process.py +8 -4
- blaxel/core/sandbox/client/models/__init__.py +0 -2
- blaxel/core/sandbox/client/models/process_response.py +16 -0
- blaxel/core/sandbox/client/models/process_response_status.py +9 -0
- blaxel/core/sandbox/default/__init__.py +2 -0
- blaxel/core/sandbox/default/interpreter.py +5 -1
- blaxel/core/sandbox/default/preview.py +3 -1
- blaxel/core/sandbox/default/sandbox.py +51 -16
- blaxel/core/sandbox/sync/process.py +2 -1
- blaxel/core/sandbox/sync/sandbox.py +34 -13
- blaxel/core/tools/common.py +16 -2
- blaxel/core/volume/__init__.py +2 -2
- blaxel/core/volume/volume.py +32 -10
- blaxel/langgraph/tools.py +34 -2
- blaxel/openai/tools.py +33 -1
- {blaxel-0.2.34.dist-info → blaxel-0.2.35.dist-info}/METADATA +3 -3
- {blaxel-0.2.34.dist-info → blaxel-0.2.35.dist-info}/RECORD +207 -246
- blaxel/core/client/models/acl.py +0 -133
- blaxel/core/client/models/billable_time_metric.py +0 -89
- blaxel/core/client/models/core_spec.py +0 -194
- blaxel/core/client/models/core_spec_configurations.py +0 -77
- blaxel/core/client/models/histogram_bucket.py +0 -79
- blaxel/core/client/models/histogram_stats.py +0 -88
- blaxel/core/client/models/integration_model.py +0 -162
- blaxel/core/client/models/job_execution_config.py +0 -79
- blaxel/core/client/models/job_metrics.py +0 -262
- blaxel/core/client/models/jobs_chart_value.py +0 -70
- blaxel/core/client/models/jobs_network_chart.py +0 -102
- blaxel/core/client/models/jobs_success_failed_chart.py +0 -147
- blaxel/core/client/models/jobs_total.py +0 -88
- blaxel/core/client/models/last_n_requests_metric.py +0 -97
- blaxel/core/client/models/latency_metric.py +0 -148
- blaxel/core/client/models/logs_response.py +0 -63
- blaxel/core/client/models/logs_response_data.py +0 -99
- blaxel/core/client/models/mcp_definition_form.py +0 -45
- blaxel/core/client/models/memory_allocation_by_name.py +0 -70
- blaxel/core/client/models/memory_allocation_metric.py +0 -61
- blaxel/core/client/models/metric.py +0 -79
- blaxel/core/client/models/metrics.py +0 -273
- blaxel/core/client/models/metrics_models.py +0 -45
- blaxel/core/client/models/metrics_rps_per_code.py +0 -45
- blaxel/core/client/models/pod_template_spec.py +0 -45
- blaxel/core/client/models/request_duration_over_time_metric.py +0 -97
- blaxel/core/client/models/request_duration_over_time_metrics.py +0 -84
- blaxel/core/client/models/request_total_by_origin_metric.py +0 -129
- blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin.py +0 -45
- blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin_and_code.py +0 -45
- blaxel/core/client/models/request_total_metric.py +0 -155
- blaxel/core/client/models/request_total_metric_request_total_per_code.py +0 -45
- blaxel/core/client/models/request_total_metric_rps_per_code.py +0 -45
- blaxel/core/client/models/request_total_response_data.py +0 -97
- blaxel/core/client/models/resource.py +0 -99
- blaxel/core/client/models/resource_log.py +0 -88
- blaxel/core/client/models/resource_log_chart.py +0 -133
- blaxel/core/client/models/resource_log_response.py +0 -83
- blaxel/core/client/models/resource_metrics.py +0 -618
- blaxel/core/client/models/resource_metrics_request_total_per_code.py +0 -45
- blaxel/core/client/models/resource_metrics_request_total_per_code_previous.py +0 -45
- blaxel/core/client/models/resource_metrics_rps_per_code.py +0 -45
- blaxel/core/client/models/resource_metrics_rps_per_code_previous.py +0 -45
- blaxel/core/client/models/resource_trace.py +0 -97
- blaxel/core/client/models/runtime.py +0 -317
- blaxel/core/client/models/runtime_configuration.py +0 -45
- blaxel/core/client/models/runtime_startup_probe.py +0 -45
- blaxel/core/client/models/sandbox_metrics.py +0 -88
- blaxel/core/client/models/serverless_config.py +0 -117
- blaxel/core/client/models/serverless_config_configuration.py +0 -45
- blaxel/core/client/models/start_sandbox.py +0 -98
- blaxel/core/client/models/stop_sandbox.py +0 -98
- blaxel/core/client/models/store_agent.py +0 -181
- blaxel/core/client/models/store_agent_labels.py +0 -45
- blaxel/core/client/models/store_configuration.py +0 -156
- blaxel/core/client/models/store_configuration_option.py +0 -79
- blaxel/core/client/models/time_to_first_token_over_time_metrics.py +0 -87
- blaxel/core/client/models/token_rate_metric.py +0 -106
- blaxel/core/client/models/token_rate_metrics.py +0 -124
- blaxel/core/client/models/token_total_metric.py +0 -112
- blaxel/core/client/models/trace_ids_response.py +0 -45
- blaxel/core/client/models/websocket_channel.py +0 -97
- blaxel/core/client/models/websocket_message.py +0 -106
- blaxel/core/sandbox/client/api/root/delete.py +0 -130
- blaxel/core/sandbox/client/api/root/get.py +0 -130
- blaxel/core/sandbox/client/api/root/options.py +0 -130
- blaxel/core/sandbox/client/api/root/patch.py +0 -130
- blaxel/core/sandbox/client/api/root/post.py +0 -130
- blaxel/core/sandbox/client/api/root/put.py +0 -130
- /blaxel/core/{sandbox/client/api/root → client/api/mcphub}/__init__.py +0 -0
- {blaxel-0.2.34.dist-info → blaxel-0.2.35.dist-info}/WHEEL +0 -0
- {blaxel-0.2.34.dist-info → blaxel-0.2.35.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
from typing import Any, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="ResourceMetricsRequestTotalPerCodePrevious")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class ResourceMetricsRequestTotalPerCodePrevious:
|
|
11
|
-
"""Number of requests for the resource globally per code for the previous period"""
|
|
12
|
-
|
|
13
|
-
additional_properties: dict[str, Any] = _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 | None:
|
|
23
|
-
if not src_dict:
|
|
24
|
-
return None
|
|
25
|
-
d = src_dict.copy()
|
|
26
|
-
resource_metrics_request_total_per_code_previous = cls()
|
|
27
|
-
|
|
28
|
-
resource_metrics_request_total_per_code_previous.additional_properties = d
|
|
29
|
-
return resource_metrics_request_total_per_code_previous
|
|
30
|
-
|
|
31
|
-
@property
|
|
32
|
-
def additional_keys(self) -> list[str]:
|
|
33
|
-
return list(self.additional_properties.keys())
|
|
34
|
-
|
|
35
|
-
def __getitem__(self, key: str) -> Any:
|
|
36
|
-
return self.additional_properties[key]
|
|
37
|
-
|
|
38
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
39
|
-
self.additional_properties[key] = value
|
|
40
|
-
|
|
41
|
-
def __delitem__(self, key: str) -> None:
|
|
42
|
-
del self.additional_properties[key]
|
|
43
|
-
|
|
44
|
-
def __contains__(self, key: str) -> bool:
|
|
45
|
-
return key in self.additional_properties
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
from typing import Any, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="ResourceMetricsRpsPerCode")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class ResourceMetricsRpsPerCode:
|
|
11
|
-
"""Number of requests per second for the resource globally per code"""
|
|
12
|
-
|
|
13
|
-
additional_properties: dict[str, Any] = _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 | None:
|
|
23
|
-
if not src_dict:
|
|
24
|
-
return None
|
|
25
|
-
d = src_dict.copy()
|
|
26
|
-
resource_metrics_rps_per_code = cls()
|
|
27
|
-
|
|
28
|
-
resource_metrics_rps_per_code.additional_properties = d
|
|
29
|
-
return resource_metrics_rps_per_code
|
|
30
|
-
|
|
31
|
-
@property
|
|
32
|
-
def additional_keys(self) -> list[str]:
|
|
33
|
-
return list(self.additional_properties.keys())
|
|
34
|
-
|
|
35
|
-
def __getitem__(self, key: str) -> Any:
|
|
36
|
-
return self.additional_properties[key]
|
|
37
|
-
|
|
38
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
39
|
-
self.additional_properties[key] = value
|
|
40
|
-
|
|
41
|
-
def __delitem__(self, key: str) -> None:
|
|
42
|
-
del self.additional_properties[key]
|
|
43
|
-
|
|
44
|
-
def __contains__(self, key: str) -> bool:
|
|
45
|
-
return key in self.additional_properties
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
from typing import Any, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="ResourceMetricsRpsPerCodePrevious")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class ResourceMetricsRpsPerCodePrevious:
|
|
11
|
-
"""Number of requests per second for the resource globally per code for the previous period"""
|
|
12
|
-
|
|
13
|
-
additional_properties: dict[str, Any] = _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 | None:
|
|
23
|
-
if not src_dict:
|
|
24
|
-
return None
|
|
25
|
-
d = src_dict.copy()
|
|
26
|
-
resource_metrics_rps_per_code_previous = cls()
|
|
27
|
-
|
|
28
|
-
resource_metrics_rps_per_code_previous.additional_properties = d
|
|
29
|
-
return resource_metrics_rps_per_code_previous
|
|
30
|
-
|
|
31
|
-
@property
|
|
32
|
-
def additional_keys(self) -> list[str]:
|
|
33
|
-
return list(self.additional_properties.keys())
|
|
34
|
-
|
|
35
|
-
def __getitem__(self, key: str) -> Any:
|
|
36
|
-
return self.additional_properties[key]
|
|
37
|
-
|
|
38
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
39
|
-
self.additional_properties[key] = value
|
|
40
|
-
|
|
41
|
-
def __delitem__(self, key: str) -> None:
|
|
42
|
-
del self.additional_properties[key]
|
|
43
|
-
|
|
44
|
-
def __contains__(self, key: str) -> bool:
|
|
45
|
-
return key in self.additional_properties
|
|
@@ -1,97 +0,0 @@
|
|
|
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="ResourceTrace")
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
@_attrs_define
|
|
12
|
-
class ResourceTrace:
|
|
13
|
-
"""Log for a resource deployment (eg. model deployment, function deployment)
|
|
14
|
-
|
|
15
|
-
Attributes:
|
|
16
|
-
duration (Union[Unset, int]): Duration in nanoseconds
|
|
17
|
-
has_error (Union[Unset, bool]): Has error
|
|
18
|
-
start_time (Union[Unset, str]): The timestamp of the log
|
|
19
|
-
status_code (Union[Unset, int]): Status code
|
|
20
|
-
trace_id (Union[Unset, str]): Trace ID of the log
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
duration: Union[Unset, int] = UNSET
|
|
24
|
-
has_error: Union[Unset, bool] = UNSET
|
|
25
|
-
start_time: Union[Unset, str] = UNSET
|
|
26
|
-
status_code: Union[Unset, int] = 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
|
-
duration = self.duration
|
|
32
|
-
|
|
33
|
-
has_error = self.has_error
|
|
34
|
-
|
|
35
|
-
start_time = self.start_time
|
|
36
|
-
|
|
37
|
-
status_code = self.status_code
|
|
38
|
-
|
|
39
|
-
trace_id = self.trace_id
|
|
40
|
-
|
|
41
|
-
field_dict: dict[str, Any] = {}
|
|
42
|
-
field_dict.update(self.additional_properties)
|
|
43
|
-
field_dict.update({})
|
|
44
|
-
if duration is not UNSET:
|
|
45
|
-
field_dict["duration"] = duration
|
|
46
|
-
if has_error is not UNSET:
|
|
47
|
-
field_dict["hasError"] = has_error
|
|
48
|
-
if start_time is not UNSET:
|
|
49
|
-
field_dict["startTime"] = start_time
|
|
50
|
-
if status_code is not UNSET:
|
|
51
|
-
field_dict["statusCode"] = status_code
|
|
52
|
-
if trace_id is not UNSET:
|
|
53
|
-
field_dict["traceID"] = trace_id
|
|
54
|
-
|
|
55
|
-
return field_dict
|
|
56
|
-
|
|
57
|
-
@classmethod
|
|
58
|
-
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
|
|
59
|
-
if not src_dict:
|
|
60
|
-
return None
|
|
61
|
-
d = src_dict.copy()
|
|
62
|
-
duration = d.pop("duration", UNSET)
|
|
63
|
-
|
|
64
|
-
has_error = d.pop("hasError", d.pop("has_error", UNSET))
|
|
65
|
-
|
|
66
|
-
start_time = d.pop("startTime", d.pop("start_time", UNSET))
|
|
67
|
-
|
|
68
|
-
status_code = d.pop("statusCode", d.pop("status_code", UNSET))
|
|
69
|
-
|
|
70
|
-
trace_id = d.pop("traceID", d.pop("trace_id", UNSET))
|
|
71
|
-
|
|
72
|
-
resource_trace = cls(
|
|
73
|
-
duration=duration,
|
|
74
|
-
has_error=has_error,
|
|
75
|
-
start_time=start_time,
|
|
76
|
-
status_code=status_code,
|
|
77
|
-
trace_id=trace_id,
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
resource_trace.additional_properties = d
|
|
81
|
-
return resource_trace
|
|
82
|
-
|
|
83
|
-
@property
|
|
84
|
-
def additional_keys(self) -> list[str]:
|
|
85
|
-
return list(self.additional_properties.keys())
|
|
86
|
-
|
|
87
|
-
def __getitem__(self, key: str) -> Any:
|
|
88
|
-
return self.additional_properties[key]
|
|
89
|
-
|
|
90
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
91
|
-
self.additional_properties[key] = value
|
|
92
|
-
|
|
93
|
-
def __delitem__(self, key: str) -> None:
|
|
94
|
-
del self.additional_properties[key]
|
|
95
|
-
|
|
96
|
-
def __contains__(self, key: str) -> bool:
|
|
97
|
-
return key in self.additional_properties
|
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
from typing import TYPE_CHECKING, 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
|
-
if TYPE_CHECKING:
|
|
9
|
-
from ..models.port import Port
|
|
10
|
-
from ..models.runtime_configuration import RuntimeConfiguration
|
|
11
|
-
from ..models.runtime_startup_probe import RuntimeStartupProbe
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
T = TypeVar("T", bound="Runtime")
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
@_attrs_define
|
|
18
|
-
class Runtime:
|
|
19
|
-
"""Set of configurations for a deployment
|
|
20
|
-
|
|
21
|
-
Attributes:
|
|
22
|
-
args (Union[Unset, list[Any]]): The arguments to pass to the deployment runtime
|
|
23
|
-
command (Union[Unset, list[Any]]): The command to run the deployment
|
|
24
|
-
configuration (Union[Unset, RuntimeConfiguration]): The configuration for the deployment
|
|
25
|
-
cpu (Union[Unset, int]): The CPU for the deployment in cores, only available for private cluster
|
|
26
|
-
endpoint_name (Union[Unset, str]): Endpoint Name of the model. In case of hf_private_endpoint, it is the
|
|
27
|
-
endpoint name. In case of hf_public_endpoint, it is not used.
|
|
28
|
-
envs (Union[Unset, list[Any]]): The env variables to set in the deployment. Should be a list of Kubernetes
|
|
29
|
-
EnvVar types
|
|
30
|
-
expires (Union[Unset, str]): The expiration date for the deployment in ISO 8601 format - 2024-12-31T23:59:59Z
|
|
31
|
-
generation (Union[Unset, str]): The generation of the deployment
|
|
32
|
-
image (Union[Unset, str]): The Docker image for the deployment
|
|
33
|
-
max_concurrent_tasks (Union[Unset, int]): The maximum number of concurrent task for an execution
|
|
34
|
-
max_retries (Union[Unset, int]): The maximum number of retries for the deployment
|
|
35
|
-
max_scale (Union[Unset, int]): The minimum number of replicas for the deployment. Can be 0 or 1 (in which case
|
|
36
|
-
the deployment is always running in at least one location).
|
|
37
|
-
memory (Union[Unset, int]): The memory for the deployment in MB
|
|
38
|
-
metric_port (Union[Unset, int]): The port to serve the metrics on
|
|
39
|
-
min_scale (Union[Unset, int]): The maximum number of replicas for the deployment.
|
|
40
|
-
model (Union[Unset, str]): The slug name of the origin model at HuggingFace.
|
|
41
|
-
organization (Union[Unset, str]): The organization of the model
|
|
42
|
-
ports (Union[Unset, list['Port']]): Set of ports for a resource
|
|
43
|
-
startup_probe (Union[Unset, RuntimeStartupProbe]): The readiness probe. Should be a Kubernetes Probe type
|
|
44
|
-
timeout (Union[Unset, int]): The timeout for the deployment in seconds
|
|
45
|
-
transport (Union[Unset, str]): The transport for the deployment, used by MCPs: "websocket" or "http-stream"
|
|
46
|
-
ttl (Union[Unset, str]): The TTL for the deployment in seconds - 30m, 24h, 7d
|
|
47
|
-
type_ (Union[Unset, str]): The type of origin for the deployment (hf_private_endpoint, hf_public_endpoint)
|
|
48
|
-
"""
|
|
49
|
-
|
|
50
|
-
args: Union[Unset, list[Any]] = UNSET
|
|
51
|
-
command: Union[Unset, list[Any]] = UNSET
|
|
52
|
-
configuration: Union[Unset, "RuntimeConfiguration"] = UNSET
|
|
53
|
-
cpu: Union[Unset, int] = UNSET
|
|
54
|
-
endpoint_name: Union[Unset, str] = UNSET
|
|
55
|
-
envs: Union[Unset, list[Any]] = UNSET
|
|
56
|
-
expires: Union[Unset, str] = UNSET
|
|
57
|
-
generation: Union[Unset, str] = UNSET
|
|
58
|
-
image: Union[Unset, str] = UNSET
|
|
59
|
-
max_concurrent_tasks: Union[Unset, int] = UNSET
|
|
60
|
-
max_retries: Union[Unset, int] = UNSET
|
|
61
|
-
max_scale: Union[Unset, int] = UNSET
|
|
62
|
-
memory: Union[Unset, int] = UNSET
|
|
63
|
-
metric_port: Union[Unset, int] = UNSET
|
|
64
|
-
min_scale: Union[Unset, int] = UNSET
|
|
65
|
-
model: Union[Unset, str] = UNSET
|
|
66
|
-
organization: Union[Unset, str] = UNSET
|
|
67
|
-
ports: Union[Unset, list["Port"]] = UNSET
|
|
68
|
-
startup_probe: Union[Unset, "RuntimeStartupProbe"] = UNSET
|
|
69
|
-
timeout: Union[Unset, int] = UNSET
|
|
70
|
-
transport: Union[Unset, str] = UNSET
|
|
71
|
-
ttl: Union[Unset, str] = UNSET
|
|
72
|
-
type_: Union[Unset, str] = UNSET
|
|
73
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
74
|
-
|
|
75
|
-
def to_dict(self) -> dict[str, Any]:
|
|
76
|
-
args: Union[Unset, list[Any]] = UNSET
|
|
77
|
-
if not isinstance(self.args, Unset):
|
|
78
|
-
args = self.args
|
|
79
|
-
|
|
80
|
-
command: Union[Unset, list[Any]] = UNSET
|
|
81
|
-
if not isinstance(self.command, Unset):
|
|
82
|
-
command = self.command
|
|
83
|
-
|
|
84
|
-
configuration: Union[Unset, dict[str, Any]] = UNSET
|
|
85
|
-
if (
|
|
86
|
-
self.configuration
|
|
87
|
-
and not isinstance(self.configuration, Unset)
|
|
88
|
-
and not isinstance(self.configuration, dict)
|
|
89
|
-
):
|
|
90
|
-
configuration = self.configuration.to_dict()
|
|
91
|
-
elif self.configuration and isinstance(self.configuration, dict):
|
|
92
|
-
configuration = self.configuration
|
|
93
|
-
|
|
94
|
-
cpu = self.cpu
|
|
95
|
-
|
|
96
|
-
endpoint_name = self.endpoint_name
|
|
97
|
-
|
|
98
|
-
envs: Union[Unset, list[Any]] = UNSET
|
|
99
|
-
if not isinstance(self.envs, Unset):
|
|
100
|
-
envs = self.envs
|
|
101
|
-
|
|
102
|
-
expires = self.expires
|
|
103
|
-
|
|
104
|
-
generation = self.generation
|
|
105
|
-
|
|
106
|
-
image = self.image
|
|
107
|
-
|
|
108
|
-
max_concurrent_tasks = self.max_concurrent_tasks
|
|
109
|
-
|
|
110
|
-
max_retries = self.max_retries
|
|
111
|
-
|
|
112
|
-
max_scale = self.max_scale
|
|
113
|
-
|
|
114
|
-
memory = self.memory
|
|
115
|
-
|
|
116
|
-
metric_port = self.metric_port
|
|
117
|
-
|
|
118
|
-
min_scale = self.min_scale
|
|
119
|
-
|
|
120
|
-
model = self.model
|
|
121
|
-
|
|
122
|
-
organization = self.organization
|
|
123
|
-
|
|
124
|
-
ports: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
125
|
-
if not isinstance(self.ports, Unset):
|
|
126
|
-
ports = []
|
|
127
|
-
for componentsschemas_ports_item_data in self.ports:
|
|
128
|
-
if type(componentsschemas_ports_item_data) is dict:
|
|
129
|
-
componentsschemas_ports_item = componentsschemas_ports_item_data
|
|
130
|
-
else:
|
|
131
|
-
componentsschemas_ports_item = componentsschemas_ports_item_data.to_dict()
|
|
132
|
-
ports.append(componentsschemas_ports_item)
|
|
133
|
-
|
|
134
|
-
startup_probe: Union[Unset, dict[str, Any]] = UNSET
|
|
135
|
-
if (
|
|
136
|
-
self.startup_probe
|
|
137
|
-
and not isinstance(self.startup_probe, Unset)
|
|
138
|
-
and not isinstance(self.startup_probe, dict)
|
|
139
|
-
):
|
|
140
|
-
startup_probe = self.startup_probe.to_dict()
|
|
141
|
-
elif self.startup_probe and isinstance(self.startup_probe, dict):
|
|
142
|
-
startup_probe = self.startup_probe
|
|
143
|
-
|
|
144
|
-
timeout = self.timeout
|
|
145
|
-
|
|
146
|
-
transport = self.transport
|
|
147
|
-
|
|
148
|
-
ttl = self.ttl
|
|
149
|
-
|
|
150
|
-
type_ = self.type_
|
|
151
|
-
|
|
152
|
-
field_dict: dict[str, Any] = {}
|
|
153
|
-
field_dict.update(self.additional_properties)
|
|
154
|
-
field_dict.update({})
|
|
155
|
-
if args is not UNSET:
|
|
156
|
-
field_dict["args"] = args
|
|
157
|
-
if command is not UNSET:
|
|
158
|
-
field_dict["command"] = command
|
|
159
|
-
if configuration is not UNSET:
|
|
160
|
-
field_dict["configuration"] = configuration
|
|
161
|
-
if cpu is not UNSET:
|
|
162
|
-
field_dict["cpu"] = cpu
|
|
163
|
-
if endpoint_name is not UNSET:
|
|
164
|
-
field_dict["endpointName"] = endpoint_name
|
|
165
|
-
if envs is not UNSET:
|
|
166
|
-
field_dict["envs"] = envs
|
|
167
|
-
if expires is not UNSET:
|
|
168
|
-
field_dict["expires"] = expires
|
|
169
|
-
if generation is not UNSET:
|
|
170
|
-
field_dict["generation"] = generation
|
|
171
|
-
if image is not UNSET:
|
|
172
|
-
field_dict["image"] = image
|
|
173
|
-
if max_concurrent_tasks is not UNSET:
|
|
174
|
-
field_dict["maxConcurrentTasks"] = max_concurrent_tasks
|
|
175
|
-
if max_retries is not UNSET:
|
|
176
|
-
field_dict["maxRetries"] = max_retries
|
|
177
|
-
if max_scale is not UNSET:
|
|
178
|
-
field_dict["maxScale"] = max_scale
|
|
179
|
-
if memory is not UNSET:
|
|
180
|
-
field_dict["memory"] = memory
|
|
181
|
-
if metric_port is not UNSET:
|
|
182
|
-
field_dict["metricPort"] = metric_port
|
|
183
|
-
if min_scale is not UNSET:
|
|
184
|
-
field_dict["minScale"] = min_scale
|
|
185
|
-
if model is not UNSET:
|
|
186
|
-
field_dict["model"] = model
|
|
187
|
-
if organization is not UNSET:
|
|
188
|
-
field_dict["organization"] = organization
|
|
189
|
-
if ports is not UNSET:
|
|
190
|
-
field_dict["ports"] = ports
|
|
191
|
-
if startup_probe is not UNSET:
|
|
192
|
-
field_dict["startupProbe"] = startup_probe
|
|
193
|
-
if timeout is not UNSET:
|
|
194
|
-
field_dict["timeout"] = timeout
|
|
195
|
-
if transport is not UNSET:
|
|
196
|
-
field_dict["transport"] = transport
|
|
197
|
-
if ttl is not UNSET:
|
|
198
|
-
field_dict["ttl"] = ttl
|
|
199
|
-
if type_ is not UNSET:
|
|
200
|
-
field_dict["type"] = type_
|
|
201
|
-
|
|
202
|
-
return field_dict
|
|
203
|
-
|
|
204
|
-
@classmethod
|
|
205
|
-
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T | None:
|
|
206
|
-
from ..models.port import Port
|
|
207
|
-
from ..models.runtime_configuration import RuntimeConfiguration
|
|
208
|
-
from ..models.runtime_startup_probe import RuntimeStartupProbe
|
|
209
|
-
|
|
210
|
-
if not src_dict:
|
|
211
|
-
return None
|
|
212
|
-
d = src_dict.copy()
|
|
213
|
-
args = cast(list[Any], d.pop("args", UNSET))
|
|
214
|
-
|
|
215
|
-
command = cast(list[Any], d.pop("command", UNSET))
|
|
216
|
-
|
|
217
|
-
_configuration = d.pop("configuration", UNSET)
|
|
218
|
-
configuration: Union[Unset, RuntimeConfiguration]
|
|
219
|
-
if isinstance(_configuration, Unset):
|
|
220
|
-
configuration = UNSET
|
|
221
|
-
else:
|
|
222
|
-
configuration = RuntimeConfiguration.from_dict(_configuration)
|
|
223
|
-
|
|
224
|
-
cpu = d.pop("cpu", UNSET)
|
|
225
|
-
|
|
226
|
-
endpoint_name = d.pop("endpointName", d.pop("endpoint_name", UNSET))
|
|
227
|
-
|
|
228
|
-
envs = cast(list[Any], d.pop("envs", UNSET))
|
|
229
|
-
|
|
230
|
-
expires = d.pop("expires", UNSET)
|
|
231
|
-
|
|
232
|
-
generation = d.pop("generation", UNSET)
|
|
233
|
-
|
|
234
|
-
image = d.pop("image", UNSET)
|
|
235
|
-
|
|
236
|
-
max_concurrent_tasks = d.pop("maxConcurrentTasks", d.pop("max_concurrent_tasks", UNSET))
|
|
237
|
-
|
|
238
|
-
max_retries = d.pop("maxRetries", d.pop("max_retries", UNSET))
|
|
239
|
-
|
|
240
|
-
max_scale = d.pop("maxScale", d.pop("max_scale", UNSET))
|
|
241
|
-
|
|
242
|
-
memory = d.pop("memory", UNSET)
|
|
243
|
-
|
|
244
|
-
metric_port = d.pop("metricPort", d.pop("metric_port", UNSET))
|
|
245
|
-
|
|
246
|
-
min_scale = d.pop("minScale", d.pop("min_scale", UNSET))
|
|
247
|
-
|
|
248
|
-
model = d.pop("model", UNSET)
|
|
249
|
-
|
|
250
|
-
organization = d.pop("organization", UNSET)
|
|
251
|
-
|
|
252
|
-
ports = []
|
|
253
|
-
_ports = d.pop("ports", UNSET)
|
|
254
|
-
for componentsschemas_ports_item_data in _ports or []:
|
|
255
|
-
componentsschemas_ports_item = Port.from_dict(componentsschemas_ports_item_data)
|
|
256
|
-
|
|
257
|
-
ports.append(componentsschemas_ports_item)
|
|
258
|
-
|
|
259
|
-
_startup_probe = d.pop("startupProbe", d.pop("startup_probe", UNSET))
|
|
260
|
-
startup_probe: Union[Unset, RuntimeStartupProbe]
|
|
261
|
-
if isinstance(_startup_probe, Unset):
|
|
262
|
-
startup_probe = UNSET
|
|
263
|
-
else:
|
|
264
|
-
startup_probe = RuntimeStartupProbe.from_dict(_startup_probe)
|
|
265
|
-
|
|
266
|
-
timeout = d.pop("timeout", UNSET)
|
|
267
|
-
|
|
268
|
-
transport = d.pop("transport", UNSET)
|
|
269
|
-
|
|
270
|
-
ttl = d.pop("ttl", UNSET)
|
|
271
|
-
|
|
272
|
-
type_ = d.pop("type", d.pop("type_", UNSET))
|
|
273
|
-
|
|
274
|
-
runtime = cls(
|
|
275
|
-
args=args,
|
|
276
|
-
command=command,
|
|
277
|
-
configuration=configuration,
|
|
278
|
-
cpu=cpu,
|
|
279
|
-
endpoint_name=endpoint_name,
|
|
280
|
-
envs=envs,
|
|
281
|
-
expires=expires,
|
|
282
|
-
generation=generation,
|
|
283
|
-
image=image,
|
|
284
|
-
max_concurrent_tasks=max_concurrent_tasks,
|
|
285
|
-
max_retries=max_retries,
|
|
286
|
-
max_scale=max_scale,
|
|
287
|
-
memory=memory,
|
|
288
|
-
metric_port=metric_port,
|
|
289
|
-
min_scale=min_scale,
|
|
290
|
-
model=model,
|
|
291
|
-
organization=organization,
|
|
292
|
-
ports=ports,
|
|
293
|
-
startup_probe=startup_probe,
|
|
294
|
-
timeout=timeout,
|
|
295
|
-
transport=transport,
|
|
296
|
-
ttl=ttl,
|
|
297
|
-
type_=type_,
|
|
298
|
-
)
|
|
299
|
-
|
|
300
|
-
runtime.additional_properties = d
|
|
301
|
-
return runtime
|
|
302
|
-
|
|
303
|
-
@property
|
|
304
|
-
def additional_keys(self) -> list[str]:
|
|
305
|
-
return list(self.additional_properties.keys())
|
|
306
|
-
|
|
307
|
-
def __getitem__(self, key: str) -> Any:
|
|
308
|
-
return self.additional_properties[key]
|
|
309
|
-
|
|
310
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
311
|
-
self.additional_properties[key] = value
|
|
312
|
-
|
|
313
|
-
def __delitem__(self, key: str) -> None:
|
|
314
|
-
del self.additional_properties[key]
|
|
315
|
-
|
|
316
|
-
def __contains__(self, key: str) -> bool:
|
|
317
|
-
return key in self.additional_properties
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
from typing import Any, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="RuntimeConfiguration")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class RuntimeConfiguration:
|
|
11
|
-
"""The configuration for the deployment"""
|
|
12
|
-
|
|
13
|
-
additional_properties: dict[str, Any] = _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 | None:
|
|
23
|
-
if not src_dict:
|
|
24
|
-
return None
|
|
25
|
-
d = src_dict.copy()
|
|
26
|
-
runtime_configuration = cls()
|
|
27
|
-
|
|
28
|
-
runtime_configuration.additional_properties = d
|
|
29
|
-
return runtime_configuration
|
|
30
|
-
|
|
31
|
-
@property
|
|
32
|
-
def additional_keys(self) -> list[str]:
|
|
33
|
-
return list(self.additional_properties.keys())
|
|
34
|
-
|
|
35
|
-
def __getitem__(self, key: str) -> Any:
|
|
36
|
-
return self.additional_properties[key]
|
|
37
|
-
|
|
38
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
39
|
-
self.additional_properties[key] = value
|
|
40
|
-
|
|
41
|
-
def __delitem__(self, key: str) -> None:
|
|
42
|
-
del self.additional_properties[key]
|
|
43
|
-
|
|
44
|
-
def __contains__(self, key: str) -> bool:
|
|
45
|
-
return key in self.additional_properties
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
from typing import Any, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="RuntimeStartupProbe")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class RuntimeStartupProbe:
|
|
11
|
-
"""The readiness probe. Should be a Kubernetes Probe type"""
|
|
12
|
-
|
|
13
|
-
additional_properties: dict[str, Any] = _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 | None:
|
|
23
|
-
if not src_dict:
|
|
24
|
-
return None
|
|
25
|
-
d = src_dict.copy()
|
|
26
|
-
runtime_startup_probe = cls()
|
|
27
|
-
|
|
28
|
-
runtime_startup_probe.additional_properties = d
|
|
29
|
-
return runtime_startup_probe
|
|
30
|
-
|
|
31
|
-
@property
|
|
32
|
-
def additional_keys(self) -> list[str]:
|
|
33
|
-
return list(self.additional_properties.keys())
|
|
34
|
-
|
|
35
|
-
def __getitem__(self, key: str) -> Any:
|
|
36
|
-
return self.additional_properties[key]
|
|
37
|
-
|
|
38
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
39
|
-
self.additional_properties[key] = value
|
|
40
|
-
|
|
41
|
-
def __delitem__(self, key: str) -> None:
|
|
42
|
-
del self.additional_properties[key]
|
|
43
|
-
|
|
44
|
-
def __contains__(self, key: str) -> bool:
|
|
45
|
-
return key in self.additional_properties
|