blaxel 0.2.31__py3-none-any.whl → 0.2.31rc121__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 +3 -3
- blaxel/core/agents/__init__.py +6 -13
- blaxel/core/authentication/__init__.py +1 -2
- blaxel/core/authentication/devicemode.py +1 -9
- blaxel/core/authentication/oauth.py +6 -13
- blaxel/core/authentication/types.py +0 -1
- blaxel/core/cache/cache.py +3 -10
- blaxel/core/client/api/agents/list_agent_revisions.py +1 -3
- blaxel/core/client/api/compute/delete_sandbox_preview_token.py +2 -6
- blaxel/core/client/api/compute/start_sandbox.py +1 -3
- blaxel/core/client/api/compute/stop_sandbox.py +1 -3
- blaxel/core/client/api/default/list_sandbox_hub_definitions.py +2 -6
- blaxel/core/client/api/functions/list_function_revisions.py +1 -3
- blaxel/core/client/api/images/cleanup_images.py +1 -3
- blaxel/core/client/api/integrations/list_integration_connections.py +2 -6
- blaxel/core/client/api/invitations/list_all_pending_invitations.py +1 -3
- blaxel/core/client/api/jobs/create_job_execution.py +1 -3
- blaxel/core/client/api/jobs/delete_job_execution.py +1 -3
- blaxel/core/client/api/jobs/get_job_execution.py +1 -3
- blaxel/core/client/api/jobs/list_job_executions.py +2 -6
- blaxel/core/client/api/jobs/list_job_revisions.py +1 -3
- blaxel/core/client/api/locations/list_locations.py +1 -3
- blaxel/core/client/api/models/list_model_revisions.py +1 -3
- blaxel/core/client/api/service_accounts/create_workspace_service_account.py +2 -6
- blaxel/core/client/api/service_accounts/delete_workspace_service_account.py +2 -6
- blaxel/core/client/api/service_accounts/get_workspace_service_accounts.py +1 -3
- blaxel/core/client/api/service_accounts/update_workspace_service_account.py +2 -6
- blaxel/core/client/api/volume_templates/list_volume_templates.py +1 -3
- blaxel/core/client/api/workspaces/accept_workspace_invitation.py +2 -6
- blaxel/core/client/api/workspaces/invite_workspace_user.py +2 -6
- blaxel/core/client/api/workspaces/update_workspace_user_role.py +2 -6
- blaxel/core/client/client.py +1 -3
- blaxel/core/client/models/agent.py +4 -11
- blaxel/core/client/models/agent_spec.py +5 -18
- blaxel/core/client/models/billable_time_metric.py +1 -0
- blaxel/core/client/models/configuration.py +1 -0
- blaxel/core/client/models/core_spec.py +3 -10
- blaxel/core/client/models/core_spec_configurations.py +1 -0
- blaxel/core/client/models/create_job_execution_request.py +1 -0
- blaxel/core/client/models/create_job_execution_response.py +1 -0
- blaxel/core/client/models/custom_domain.py +2 -5
- blaxel/core/client/models/custom_domain_metadata.py +1 -0
- blaxel/core/client/models/custom_domain_spec.py +2 -5
- blaxel/core/client/models/delete_volume_template_version_response_200.py +2 -5
- blaxel/core/client/models/entrypoint.py +1 -0
- blaxel/core/client/models/form.py +2 -5
- blaxel/core/client/models/function.py +4 -11
- blaxel/core/client/models/function_spec.py +4 -13
- blaxel/core/client/models/image.py +2 -5
- blaxel/core/client/models/image_spec.py +1 -0
- blaxel/core/client/models/integration.py +3 -10
- blaxel/core/client/models/integration_connection.py +2 -5
- blaxel/core/client/models/integration_connection_spec.py +1 -0
- blaxel/core/client/models/integration_endpoint.py +2 -5
- blaxel/core/client/models/integration_endpoints.py +2 -0
- blaxel/core/client/models/job.py +4 -11
- blaxel/core/client/models/job_execution.py +2 -5
- blaxel/core/client/models/job_execution_spec.py +1 -0
- blaxel/core/client/models/job_execution_task.py +2 -5
- blaxel/core/client/models/job_metrics.py +2 -5
- blaxel/core/client/models/job_spec.py +4 -13
- blaxel/core/client/models/jobs_network_chart.py +1 -0
- blaxel/core/client/models/jobs_success_failed_chart.py +3 -10
- blaxel/core/client/models/latency_metric.py +2 -5
- blaxel/core/client/models/location_response.py +1 -0
- blaxel/core/client/models/mcp_definition.py +2 -5
- blaxel/core/client/models/metadata.py +1 -0
- blaxel/core/client/models/metrics.py +4 -11
- blaxel/core/client/models/model.py +4 -11
- blaxel/core/client/models/model_spec.py +3 -10
- blaxel/core/client/models/pending_invitation_accept.py +2 -5
- blaxel/core/client/models/pending_invitation_render.py +3 -10
- blaxel/core/client/models/policy.py +2 -5
- blaxel/core/client/models/policy_spec.py +4 -11
- blaxel/core/client/models/preview.py +2 -5
- blaxel/core/client/models/preview_spec.py +1 -0
- blaxel/core/client/models/preview_token.py +2 -5
- blaxel/core/client/models/public_ips.py +1 -0
- blaxel/core/client/models/request_duration_over_time_metrics.py +1 -0
- blaxel/core/client/models/request_total_by_origin_metric.py +7 -16
- blaxel/core/client/models/request_total_metric.py +3 -8
- blaxel/core/client/models/resource_metrics.py +17 -58
- blaxel/core/client/models/runtime.py +1 -0
- blaxel/core/client/models/sandbox.py +4 -11
- blaxel/core/client/models/sandbox_definition.py +1 -0
- blaxel/core/client/models/sandbox_lifecycle.py +1 -0
- blaxel/core/client/models/sandbox_spec.py +6 -21
- blaxel/core/client/models/serverless_config.py +1 -0
- blaxel/core/client/models/start_sandbox.py +2 -5
- blaxel/core/client/models/stop_sandbox.py +2 -5
- blaxel/core/client/models/store_agent.py +1 -0
- blaxel/core/client/models/store_configuration.py +1 -0
- blaxel/core/client/models/template.py +1 -0
- blaxel/core/client/models/time_to_first_token_over_time_metrics.py +2 -3
- blaxel/core/client/models/token_rate_metrics.py +1 -0
- blaxel/core/client/models/trigger.py +1 -0
- blaxel/core/client/models/trigger_configuration.py +1 -0
- blaxel/core/client/models/volume.py +4 -11
- blaxel/core/client/models/volume_template.py +2 -5
- blaxel/core/client/models/workspace.py +2 -5
- blaxel/core/client/response_interceptor.py +1 -3
- blaxel/core/common/autoload.py +11 -9
- blaxel/core/common/env.py +8 -10
- blaxel/core/common/settings.py +2 -4
- blaxel/core/common/webhook.py +1 -0
- blaxel/core/jobs/__init__.py +3 -13
- blaxel/core/mcp/client.py +2 -8
- blaxel/core/mcp/server.py +2 -8
- blaxel/core/models/__init__.py +5 -6
- blaxel/core/sandbox/__init__.py +1 -1
- blaxel/core/sandbox/client/api/codegen/get_codegen_reranking_path.py +2 -6
- blaxel/core/sandbox/client/api/fastapply/put_codegen_fastapply_path.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/delete_filesystem_multipart_upload_id_abort.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/delete_filesystem_path.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/delete_filesystem_tree_path.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_content_search_path.py +1 -3
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_find_path.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/get_filesystem_search_path.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/get_watch_filesystem_path.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/post_filesystem_multipart_upload_id_complete.py +2 -6
- blaxel/core/sandbox/client/api/filesystem/put_filesystem_path.py +2 -6
- blaxel/core/sandbox/client/api/process/delete_process_identifier.py +2 -6
- blaxel/core/sandbox/client/api/process/delete_process_identifier_kill.py +2 -6
- blaxel/core/sandbox/client/api/process/get_process.py +1 -3
- blaxel/core/sandbox/client/api/process/get_process_identifier.py +2 -6
- blaxel/core/sandbox/client/api/process/get_process_identifier_logs.py +2 -6
- blaxel/core/sandbox/client/api/process/get_process_identifier_logs_stream.py +2 -6
- blaxel/core/sandbox/client/api/process/post_process.py +2 -6
- blaxel/core/sandbox/client/client.py +1 -3
- blaxel/core/sandbox/client/models/filesystem_multipart_upload_parts.py +1 -3
- blaxel/core/sandbox/default/__init__.py +1 -0
- blaxel/core/sandbox/default/action.py +3 -3
- blaxel/core/sandbox/default/codegen.py +4 -2
- blaxel/core/sandbox/default/filesystem.py +82 -38
- blaxel/core/sandbox/default/interpreter.py +10 -17
- blaxel/core/sandbox/default/preview.py +2 -6
- blaxel/core/sandbox/default/process.py +7 -25
- blaxel/core/sandbox/default/sandbox.py +2 -7
- blaxel/core/sandbox/sync/__init__.py +2 -0
- blaxel/core/sandbox/sync/action.py +3 -2
- blaxel/core/sandbox/sync/codegen.py +5 -1
- blaxel/core/sandbox/sync/filesystem.py +6 -17
- blaxel/core/sandbox/sync/interpreter.py +6 -10
- blaxel/core/sandbox/sync/network.py +2 -0
- blaxel/core/sandbox/sync/preview.py +9 -21
- blaxel/core/sandbox/sync/process.py +8 -32
- blaxel/core/sandbox/sync/sandbox.py +6 -13
- blaxel/core/sandbox/sync/session.py +4 -6
- blaxel/core/sandbox/types.py +1 -2
- blaxel/core/tools/__init__.py +6 -30
- blaxel/core/tools/common.py +1 -1
- blaxel/core/tools/types.py +1 -2
- blaxel/crewai/model.py +5 -20
- blaxel/googleadk/__init__.py +1 -1
- blaxel/googleadk/tools.py +5 -3
- blaxel/langgraph/custom/gemini.py +133 -126
- blaxel/langgraph/model.py +50 -54
- blaxel/langgraph/tools.py +3 -9
- blaxel/llamaindex/custom/cohere.py +16 -25
- blaxel/llamaindex/model.py +57 -44
- blaxel/llamaindex/tools.py +3 -2
- blaxel/pydantic/custom/gemini.py +3 -3
- blaxel/pydantic/tools.py +4 -2
- blaxel/telemetry/exporters.py +3 -10
- blaxel/telemetry/instrumentation/blaxel_langgraph.py +2 -4
- blaxel/telemetry/instrumentation/blaxel_langgraph_gemini.py +5 -22
- blaxel/telemetry/instrumentation/utils.py +3 -3
- blaxel/telemetry/log/log.py +3 -2
- blaxel/telemetry/log/logger.py +15 -21
- blaxel/telemetry/span.py +6 -10
- {blaxel-0.2.31.dist-info → blaxel-0.2.31rc121.dist-info}/METADATA +2 -2
- {blaxel-0.2.31.dist-info → blaxel-0.2.31rc121.dist-info}/RECORD +174 -174
- {blaxel-0.2.31.dist-info → blaxel-0.2.31rc121.dist-info}/WHEEL +0 -0
- {blaxel-0.2.31.dist-info → blaxel-0.2.31rc121.dist-info}/licenses/LICENSE +0 -0
|
@@ -59,6 +59,7 @@ class MCPDefinition:
|
|
|
59
59
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
60
60
|
|
|
61
61
|
def to_dict(self) -> dict[str, Any]:
|
|
62
|
+
|
|
62
63
|
created_at = self.created_at
|
|
63
64
|
|
|
64
65
|
updated_at = self.updated_at
|
|
@@ -76,11 +77,7 @@ class MCPDefinition:
|
|
|
76
77
|
enterprise = self.enterprise
|
|
77
78
|
|
|
78
79
|
entrypoint: Union[Unset, dict[str, Any]] = UNSET
|
|
79
|
-
if (
|
|
80
|
-
self.entrypoint
|
|
81
|
-
and not isinstance(self.entrypoint, Unset)
|
|
82
|
-
and not isinstance(self.entrypoint, dict)
|
|
83
|
-
):
|
|
80
|
+
if self.entrypoint and not isinstance(self.entrypoint, Unset) and not isinstance(self.entrypoint, dict):
|
|
84
81
|
entrypoint = self.entrypoint.to_dict()
|
|
85
82
|
elif self.entrypoint and isinstance(self.entrypoint, dict):
|
|
86
83
|
entrypoint = self.entrypoint
|
|
@@ -55,6 +55,7 @@ class Metrics:
|
|
|
55
55
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
56
56
|
|
|
57
57
|
def to_dict(self) -> dict[str, Any]:
|
|
58
|
+
|
|
58
59
|
agents = self.agents
|
|
59
60
|
|
|
60
61
|
functions = self.functions
|
|
@@ -66,9 +67,7 @@ class Metrics:
|
|
|
66
67
|
if type(componentsschemas_array_metric_item_data) is dict:
|
|
67
68
|
componentsschemas_array_metric_item = componentsschemas_array_metric_item_data
|
|
68
69
|
else:
|
|
69
|
-
componentsschemas_array_metric_item = (
|
|
70
|
-
componentsschemas_array_metric_item_data.to_dict()
|
|
71
|
-
)
|
|
70
|
+
componentsschemas_array_metric_item = componentsschemas_array_metric_item_data.to_dict()
|
|
72
71
|
inference_error_global.append(componentsschemas_array_metric_item)
|
|
73
72
|
|
|
74
73
|
inference_global: Union[Unset, list[Any]] = UNSET
|
|
@@ -118,11 +117,7 @@ class Metrics:
|
|
|
118
117
|
rps = self.rps
|
|
119
118
|
|
|
120
119
|
rps_per_code: Union[Unset, dict[str, Any]] = UNSET
|
|
121
|
-
if (
|
|
122
|
-
self.rps_per_code
|
|
123
|
-
and not isinstance(self.rps_per_code, Unset)
|
|
124
|
-
and not isinstance(self.rps_per_code, dict)
|
|
125
|
-
):
|
|
120
|
+
if self.rps_per_code and not isinstance(self.rps_per_code, Unset) and not isinstance(self.rps_per_code, dict):
|
|
126
121
|
rps_per_code = self.rps_per_code.to_dict()
|
|
127
122
|
elif self.rps_per_code and isinstance(self.rps_per_code, dict):
|
|
128
123
|
rps_per_code = self.rps_per_code
|
|
@@ -180,9 +175,7 @@ class Metrics:
|
|
|
180
175
|
inference_error_global = []
|
|
181
176
|
_inference_error_global = d.pop("inferenceErrorGlobal", UNSET)
|
|
182
177
|
for componentsschemas_array_metric_item_data in _inference_error_global or []:
|
|
183
|
-
componentsschemas_array_metric_item = Metric.from_dict(
|
|
184
|
-
componentsschemas_array_metric_item_data
|
|
185
|
-
)
|
|
178
|
+
componentsschemas_array_metric_item = Metric.from_dict(componentsschemas_array_metric_item_data)
|
|
186
179
|
|
|
187
180
|
inference_error_global.append(componentsschemas_array_metric_item)
|
|
188
181
|
|
|
@@ -32,6 +32,7 @@ class Model:
|
|
|
32
32
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
33
33
|
|
|
34
34
|
def to_dict(self) -> dict[str, Any]:
|
|
35
|
+
|
|
35
36
|
events: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
36
37
|
if not isinstance(self.events, Unset):
|
|
37
38
|
events = []
|
|
@@ -39,17 +40,11 @@ class Model:
|
|
|
39
40
|
if type(componentsschemas_core_events_item_data) is dict:
|
|
40
41
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data
|
|
41
42
|
else:
|
|
42
|
-
componentsschemas_core_events_item = (
|
|
43
|
-
componentsschemas_core_events_item_data.to_dict()
|
|
44
|
-
)
|
|
43
|
+
componentsschemas_core_events_item = componentsschemas_core_events_item_data.to_dict()
|
|
45
44
|
events.append(componentsschemas_core_events_item)
|
|
46
45
|
|
|
47
46
|
metadata: Union[Unset, dict[str, Any]] = UNSET
|
|
48
|
-
if (
|
|
49
|
-
self.metadata
|
|
50
|
-
and not isinstance(self.metadata, Unset)
|
|
51
|
-
and not isinstance(self.metadata, dict)
|
|
52
|
-
):
|
|
47
|
+
if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
|
|
53
48
|
metadata = self.metadata.to_dict()
|
|
54
49
|
elif self.metadata and isinstance(self.metadata, dict):
|
|
55
50
|
metadata = self.metadata
|
|
@@ -88,9 +83,7 @@ class Model:
|
|
|
88
83
|
events = []
|
|
89
84
|
_events = d.pop("events", UNSET)
|
|
90
85
|
for componentsschemas_core_events_item_data in _events or []:
|
|
91
|
-
componentsschemas_core_events_item = CoreEvent.from_dict(
|
|
92
|
-
componentsschemas_core_events_item_data
|
|
93
|
-
)
|
|
86
|
+
componentsschemas_core_events_item = CoreEvent.from_dict(componentsschemas_core_events_item_data)
|
|
94
87
|
|
|
95
88
|
events.append(componentsschemas_core_events_item)
|
|
96
89
|
|
|
@@ -41,6 +41,7 @@ class ModelSpec:
|
|
|
41
41
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
42
42
|
|
|
43
43
|
def to_dict(self) -> dict[str, Any]:
|
|
44
|
+
|
|
44
45
|
configurations: Union[Unset, dict[str, Any]] = UNSET
|
|
45
46
|
if (
|
|
46
47
|
self.configurations
|
|
@@ -72,21 +73,13 @@ class ModelSpec:
|
|
|
72
73
|
policies = self.policies
|
|
73
74
|
|
|
74
75
|
revision: Union[Unset, dict[str, Any]] = UNSET
|
|
75
|
-
if (
|
|
76
|
-
self.revision
|
|
77
|
-
and not isinstance(self.revision, Unset)
|
|
78
|
-
and not isinstance(self.revision, dict)
|
|
79
|
-
):
|
|
76
|
+
if self.revision and not isinstance(self.revision, Unset) and not isinstance(self.revision, dict):
|
|
80
77
|
revision = self.revision.to_dict()
|
|
81
78
|
elif self.revision and isinstance(self.revision, dict):
|
|
82
79
|
revision = self.revision
|
|
83
80
|
|
|
84
81
|
runtime: Union[Unset, dict[str, Any]] = UNSET
|
|
85
|
-
if (
|
|
86
|
-
self.runtime
|
|
87
|
-
and not isinstance(self.runtime, Unset)
|
|
88
|
-
and not isinstance(self.runtime, dict)
|
|
89
|
-
):
|
|
82
|
+
if self.runtime and not isinstance(self.runtime, Unset) and not isinstance(self.runtime, dict):
|
|
90
83
|
runtime = self.runtime.to_dict()
|
|
91
84
|
elif self.runtime and isinstance(self.runtime, dict):
|
|
92
85
|
runtime = self.runtime
|
|
@@ -26,14 +26,11 @@ class PendingInvitationAccept:
|
|
|
26
26
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
27
27
|
|
|
28
28
|
def to_dict(self) -> dict[str, Any]:
|
|
29
|
+
|
|
29
30
|
email = self.email
|
|
30
31
|
|
|
31
32
|
workspace: Union[Unset, dict[str, Any]] = UNSET
|
|
32
|
-
if (
|
|
33
|
-
self.workspace
|
|
34
|
-
and not isinstance(self.workspace, Unset)
|
|
35
|
-
and not isinstance(self.workspace, dict)
|
|
36
|
-
):
|
|
33
|
+
if self.workspace and not isinstance(self.workspace, Unset) and not isinstance(self.workspace, dict):
|
|
37
34
|
workspace = self.workspace.to_dict()
|
|
38
35
|
elif self.workspace and isinstance(self.workspace, dict):
|
|
39
36
|
workspace = self.workspace
|
|
@@ -36,16 +36,13 @@ class PendingInvitationRender:
|
|
|
36
36
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
37
|
|
|
38
38
|
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
|
|
39
40
|
email = self.email
|
|
40
41
|
|
|
41
42
|
invited_at = self.invited_at
|
|
42
43
|
|
|
43
44
|
invited_by: Union[Unset, dict[str, Any]] = UNSET
|
|
44
|
-
if (
|
|
45
|
-
self.invited_by
|
|
46
|
-
and not isinstance(self.invited_by, Unset)
|
|
47
|
-
and not isinstance(self.invited_by, dict)
|
|
48
|
-
):
|
|
45
|
+
if self.invited_by and not isinstance(self.invited_by, Unset) and not isinstance(self.invited_by, dict):
|
|
49
46
|
invited_by = self.invited_by.to_dict()
|
|
50
47
|
elif self.invited_by and isinstance(self.invited_by, dict):
|
|
51
48
|
invited_by = self.invited_by
|
|
@@ -53,11 +50,7 @@ class PendingInvitationRender:
|
|
|
53
50
|
role = self.role
|
|
54
51
|
|
|
55
52
|
workspace: Union[Unset, dict[str, Any]] = UNSET
|
|
56
|
-
if (
|
|
57
|
-
self.workspace
|
|
58
|
-
and not isinstance(self.workspace, Unset)
|
|
59
|
-
and not isinstance(self.workspace, dict)
|
|
60
|
-
):
|
|
53
|
+
if self.workspace and not isinstance(self.workspace, Unset) and not isinstance(self.workspace, dict):
|
|
61
54
|
workspace = self.workspace.to_dict()
|
|
62
55
|
elif self.workspace and isinstance(self.workspace, dict):
|
|
63
56
|
workspace = self.workspace
|
|
@@ -27,12 +27,9 @@ class Policy:
|
|
|
27
27
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
28
|
|
|
29
29
|
def to_dict(self) -> dict[str, Any]:
|
|
30
|
+
|
|
30
31
|
metadata: Union[Unset, dict[str, Any]] = UNSET
|
|
31
|
-
if (
|
|
32
|
-
self.metadata
|
|
33
|
-
and not isinstance(self.metadata, Unset)
|
|
34
|
-
and not isinstance(self.metadata, dict)
|
|
35
|
-
):
|
|
32
|
+
if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
|
|
36
33
|
metadata = self.metadata.to_dict()
|
|
37
34
|
elif self.metadata and isinstance(self.metadata, dict):
|
|
38
35
|
metadata = self.metadata
|
|
@@ -38,6 +38,7 @@ class PolicySpec:
|
|
|
38
38
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
39
|
|
|
40
40
|
def to_dict(self) -> dict[str, Any]:
|
|
41
|
+
|
|
41
42
|
flavors: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
42
43
|
if not isinstance(self.flavors, Unset):
|
|
43
44
|
flavors = []
|
|
@@ -53,21 +54,13 @@ class PolicySpec:
|
|
|
53
54
|
locations = []
|
|
54
55
|
for componentsschemas_policy_locations_item_data in self.locations:
|
|
55
56
|
if type(componentsschemas_policy_locations_item_data) is dict:
|
|
56
|
-
componentsschemas_policy_locations_item =
|
|
57
|
-
componentsschemas_policy_locations_item_data
|
|
58
|
-
)
|
|
57
|
+
componentsschemas_policy_locations_item = componentsschemas_policy_locations_item_data
|
|
59
58
|
else:
|
|
60
|
-
componentsschemas_policy_locations_item = (
|
|
61
|
-
componentsschemas_policy_locations_item_data.to_dict()
|
|
62
|
-
)
|
|
59
|
+
componentsschemas_policy_locations_item = componentsschemas_policy_locations_item_data.to_dict()
|
|
63
60
|
locations.append(componentsschemas_policy_locations_item)
|
|
64
61
|
|
|
65
62
|
max_tokens: Union[Unset, dict[str, Any]] = UNSET
|
|
66
|
-
if (
|
|
67
|
-
self.max_tokens
|
|
68
|
-
and not isinstance(self.max_tokens, Unset)
|
|
69
|
-
and not isinstance(self.max_tokens, dict)
|
|
70
|
-
):
|
|
63
|
+
if self.max_tokens and not isinstance(self.max_tokens, Unset) and not isinstance(self.max_tokens, dict):
|
|
71
64
|
max_tokens = self.max_tokens.to_dict()
|
|
72
65
|
elif self.max_tokens and isinstance(self.max_tokens, dict):
|
|
73
66
|
max_tokens = self.max_tokens
|
|
@@ -27,12 +27,9 @@ class Preview:
|
|
|
27
27
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
28
|
|
|
29
29
|
def to_dict(self) -> dict[str, Any]:
|
|
30
|
+
|
|
30
31
|
metadata: Union[Unset, dict[str, Any]] = UNSET
|
|
31
|
-
if (
|
|
32
|
-
self.metadata
|
|
33
|
-
and not isinstance(self.metadata, Unset)
|
|
34
|
-
and not isinstance(self.metadata, dict)
|
|
35
|
-
):
|
|
32
|
+
if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
|
|
36
33
|
metadata = self.metadata.to_dict()
|
|
37
34
|
elif self.metadata and isinstance(self.metadata, dict):
|
|
38
35
|
metadata = self.metadata
|
|
@@ -27,12 +27,9 @@ class PreviewToken:
|
|
|
27
27
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
28
|
|
|
29
29
|
def to_dict(self) -> dict[str, Any]:
|
|
30
|
+
|
|
30
31
|
metadata: Union[Unset, dict[str, Any]] = UNSET
|
|
31
|
-
if (
|
|
32
|
-
self.metadata
|
|
33
|
-
and not isinstance(self.metadata, Unset)
|
|
34
|
-
and not isinstance(self.metadata, dict)
|
|
35
|
-
):
|
|
32
|
+
if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
|
|
36
33
|
metadata = self.metadata.to_dict()
|
|
37
34
|
elif self.metadata and isinstance(self.metadata, dict):
|
|
38
35
|
metadata = self.metadata
|
|
@@ -17,6 +17,7 @@ class PublicIps:
|
|
|
17
17
|
additional_properties: dict[str, "PublicIp"] = _attrs_field(init=False, factory=dict)
|
|
18
18
|
|
|
19
19
|
def to_dict(self) -> dict[str, Any]:
|
|
20
|
+
|
|
20
21
|
field_dict: dict[str, Any] = {}
|
|
21
22
|
for prop_name, prop in self.additional_properties.items():
|
|
22
23
|
if type(prop) is dict:
|
|
@@ -24,6 +24,7 @@ class RequestDurationOverTimeMetrics:
|
|
|
24
24
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
25
|
|
|
26
26
|
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
|
|
27
28
|
request_duration_over_time: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
28
29
|
if not isinstance(self.request_duration_over_time, Unset):
|
|
29
30
|
request_duration_over_time = []
|
|
@@ -28,12 +28,11 @@ class RequestTotalByOriginMetric:
|
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
request_total_by_origin: Union[Unset, "RequestTotalByOriginMetricRequestTotalByOrigin"] = UNSET
|
|
31
|
-
request_total_by_origin_and_code: Union[
|
|
32
|
-
Unset, "RequestTotalByOriginMetricRequestTotalByOriginAndCode"
|
|
33
|
-
] = UNSET
|
|
31
|
+
request_total_by_origin_and_code: Union[Unset, "RequestTotalByOriginMetricRequestTotalByOriginAndCode"] = UNSET
|
|
34
32
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
35
33
|
|
|
36
34
|
def to_dict(self) -> dict[str, Any]:
|
|
35
|
+
|
|
37
36
|
request_total_by_origin: Union[Unset, dict[str, Any]] = UNSET
|
|
38
37
|
if (
|
|
39
38
|
self.request_total_by_origin
|
|
@@ -51,9 +50,7 @@ class RequestTotalByOriginMetric:
|
|
|
51
50
|
and not isinstance(self.request_total_by_origin_and_code, dict)
|
|
52
51
|
):
|
|
53
52
|
request_total_by_origin_and_code = self.request_total_by_origin_and_code.to_dict()
|
|
54
|
-
elif self.request_total_by_origin_and_code and isinstance(
|
|
55
|
-
self.request_total_by_origin_and_code, dict
|
|
56
|
-
):
|
|
53
|
+
elif self.request_total_by_origin_and_code and isinstance(self.request_total_by_origin_and_code, dict):
|
|
57
54
|
request_total_by_origin_and_code = self.request_total_by_origin_and_code
|
|
58
55
|
|
|
59
56
|
field_dict: dict[str, Any] = {}
|
|
@@ -83,21 +80,15 @@ class RequestTotalByOriginMetric:
|
|
|
83
80
|
if isinstance(_request_total_by_origin, Unset):
|
|
84
81
|
request_total_by_origin = UNSET
|
|
85
82
|
else:
|
|
86
|
-
request_total_by_origin = RequestTotalByOriginMetricRequestTotalByOrigin.from_dict(
|
|
87
|
-
_request_total_by_origin
|
|
88
|
-
)
|
|
83
|
+
request_total_by_origin = RequestTotalByOriginMetricRequestTotalByOrigin.from_dict(_request_total_by_origin)
|
|
89
84
|
|
|
90
85
|
_request_total_by_origin_and_code = d.pop("requestTotalByOriginAndCode", UNSET)
|
|
91
|
-
request_total_by_origin_and_code: Union[
|
|
92
|
-
Unset, RequestTotalByOriginMetricRequestTotalByOriginAndCode
|
|
93
|
-
]
|
|
86
|
+
request_total_by_origin_and_code: Union[Unset, RequestTotalByOriginMetricRequestTotalByOriginAndCode]
|
|
94
87
|
if isinstance(_request_total_by_origin_and_code, Unset):
|
|
95
88
|
request_total_by_origin_and_code = UNSET
|
|
96
89
|
else:
|
|
97
|
-
request_total_by_origin_and_code = (
|
|
98
|
-
|
|
99
|
-
_request_total_by_origin_and_code
|
|
100
|
-
)
|
|
90
|
+
request_total_by_origin_and_code = RequestTotalByOriginMetricRequestTotalByOriginAndCode.from_dict(
|
|
91
|
+
_request_total_by_origin_and_code
|
|
101
92
|
)
|
|
102
93
|
|
|
103
94
|
request_total_by_origin_metric = cls(
|
|
@@ -37,6 +37,7 @@ class RequestTotalMetric:
|
|
|
37
37
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
38
|
|
|
39
39
|
def to_dict(self) -> dict[str, Any]:
|
|
40
|
+
|
|
40
41
|
items: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
41
42
|
if not isinstance(self.items, Unset):
|
|
42
43
|
items = []
|
|
@@ -62,11 +63,7 @@ class RequestTotalMetric:
|
|
|
62
63
|
rps = self.rps
|
|
63
64
|
|
|
64
65
|
rps_per_code: Union[Unset, dict[str, Any]] = UNSET
|
|
65
|
-
if (
|
|
66
|
-
self.rps_per_code
|
|
67
|
-
and not isinstance(self.rps_per_code, Unset)
|
|
68
|
-
and not isinstance(self.rps_per_code, dict)
|
|
69
|
-
):
|
|
66
|
+
if self.rps_per_code and not isinstance(self.rps_per_code, Unset) and not isinstance(self.rps_per_code, dict):
|
|
70
67
|
rps_per_code = self.rps_per_code.to_dict()
|
|
71
68
|
elif self.rps_per_code and isinstance(self.rps_per_code, dict):
|
|
72
69
|
rps_per_code = self.rps_per_code
|
|
@@ -112,9 +109,7 @@ class RequestTotalMetric:
|
|
|
112
109
|
if isinstance(_request_total_per_code, Unset):
|
|
113
110
|
request_total_per_code = UNSET
|
|
114
111
|
else:
|
|
115
|
-
request_total_per_code = RequestTotalMetricRequestTotalPerCode.from_dict(
|
|
116
|
-
_request_total_per_code
|
|
117
|
-
)
|
|
112
|
+
request_total_per_code = RequestTotalMetricRequestTotalPerCode.from_dict(_request_total_per_code)
|
|
118
113
|
|
|
119
114
|
rps = d.pop("rps", UNSET)
|
|
120
115
|
|
|
@@ -82,9 +82,7 @@ class ResourceMetrics:
|
|
|
82
82
|
request_total_by_origin: Union[Unset, "RequestTotalByOriginMetric"] = UNSET
|
|
83
83
|
request_total_by_origin_previous: Union[Unset, "RequestTotalByOriginMetric"] = UNSET
|
|
84
84
|
request_total_per_code: Union[Unset, "ResourceMetricsRequestTotalPerCode"] = UNSET
|
|
85
|
-
request_total_per_code_previous: Union[Unset, "ResourceMetricsRequestTotalPerCodePrevious"] =
|
|
86
|
-
UNSET
|
|
87
|
-
)
|
|
85
|
+
request_total_per_code_previous: Union[Unset, "ResourceMetricsRequestTotalPerCodePrevious"] = UNSET
|
|
88
86
|
request_total_previous: Union[Unset, float] = UNSET
|
|
89
87
|
rps: Union[Unset, float] = UNSET
|
|
90
88
|
rps_per_code: Union[Unset, "ResourceMetricsRpsPerCode"] = UNSET
|
|
@@ -97,6 +95,7 @@ class ResourceMetrics:
|
|
|
97
95
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
98
96
|
|
|
99
97
|
def to_dict(self) -> dict[str, Any]:
|
|
98
|
+
|
|
100
99
|
billable_time: Union[Unset, dict[str, Any]] = UNSET
|
|
101
100
|
if (
|
|
102
101
|
self.billable_time
|
|
@@ -114,9 +113,7 @@ class ResourceMetrics:
|
|
|
114
113
|
if type(componentsschemas_array_metric_item_data) is dict:
|
|
115
114
|
componentsschemas_array_metric_item = componentsschemas_array_metric_item_data
|
|
116
115
|
else:
|
|
117
|
-
componentsschemas_array_metric_item = (
|
|
118
|
-
componentsschemas_array_metric_item_data.to_dict()
|
|
119
|
-
)
|
|
116
|
+
componentsschemas_array_metric_item = componentsschemas_array_metric_item_data.to_dict()
|
|
120
117
|
inference_errors_global.append(componentsschemas_array_metric_item)
|
|
121
118
|
|
|
122
119
|
inference_global: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
@@ -126,9 +123,7 @@ class ResourceMetrics:
|
|
|
126
123
|
if type(componentsschemas_array_metric_item_data) is dict:
|
|
127
124
|
componentsschemas_array_metric_item = componentsschemas_array_metric_item_data
|
|
128
125
|
else:
|
|
129
|
-
componentsschemas_array_metric_item = (
|
|
130
|
-
componentsschemas_array_metric_item_data.to_dict()
|
|
131
|
-
)
|
|
126
|
+
componentsschemas_array_metric_item = componentsschemas_array_metric_item_data.to_dict()
|
|
132
127
|
inference_global.append(componentsschemas_array_metric_item)
|
|
133
128
|
|
|
134
129
|
last_n_requests: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
@@ -142,11 +137,7 @@ class ResourceMetrics:
|
|
|
142
137
|
last_n_requests.append(last_n_requests_item)
|
|
143
138
|
|
|
144
139
|
latency: Union[Unset, dict[str, Any]] = UNSET
|
|
145
|
-
if (
|
|
146
|
-
self.latency
|
|
147
|
-
and not isinstance(self.latency, Unset)
|
|
148
|
-
and not isinstance(self.latency, dict)
|
|
149
|
-
):
|
|
140
|
+
if self.latency and not isinstance(self.latency, Unset) and not isinstance(self.latency, dict):
|
|
150
141
|
latency = self.latency.to_dict()
|
|
151
142
|
elif self.latency and isinstance(self.latency, dict):
|
|
152
143
|
latency = self.latency
|
|
@@ -172,11 +163,7 @@ class ResourceMetrics:
|
|
|
172
163
|
memory_allocation = self.memory_allocation
|
|
173
164
|
|
|
174
165
|
model_ttft: Union[Unset, dict[str, Any]] = UNSET
|
|
175
|
-
if (
|
|
176
|
-
self.model_ttft
|
|
177
|
-
and not isinstance(self.model_ttft, Unset)
|
|
178
|
-
and not isinstance(self.model_ttft, dict)
|
|
179
|
-
):
|
|
166
|
+
if self.model_ttft and not isinstance(self.model_ttft, Unset) and not isinstance(self.model_ttft, dict):
|
|
180
167
|
model_ttft = self.model_ttft.to_dict()
|
|
181
168
|
elif self.model_ttft and isinstance(self.model_ttft, dict):
|
|
182
169
|
model_ttft = self.model_ttft
|
|
@@ -220,9 +207,7 @@ class ResourceMetrics:
|
|
|
220
207
|
and not isinstance(self.request_total_by_origin_previous, dict)
|
|
221
208
|
):
|
|
222
209
|
request_total_by_origin_previous = self.request_total_by_origin_previous.to_dict()
|
|
223
|
-
elif self.request_total_by_origin_previous and isinstance(
|
|
224
|
-
self.request_total_by_origin_previous, dict
|
|
225
|
-
):
|
|
210
|
+
elif self.request_total_by_origin_previous and isinstance(self.request_total_by_origin_previous, dict):
|
|
226
211
|
request_total_by_origin_previous = self.request_total_by_origin_previous
|
|
227
212
|
|
|
228
213
|
request_total_per_code: Union[Unset, dict[str, Any]] = UNSET
|
|
@@ -242,9 +227,7 @@ class ResourceMetrics:
|
|
|
242
227
|
and not isinstance(self.request_total_per_code_previous, dict)
|
|
243
228
|
):
|
|
244
229
|
request_total_per_code_previous = self.request_total_per_code_previous.to_dict()
|
|
245
|
-
elif self.request_total_per_code_previous and isinstance(
|
|
246
|
-
self.request_total_per_code_previous, dict
|
|
247
|
-
):
|
|
230
|
+
elif self.request_total_per_code_previous and isinstance(self.request_total_per_code_previous, dict):
|
|
248
231
|
request_total_per_code_previous = self.request_total_per_code_previous
|
|
249
232
|
|
|
250
233
|
request_total_previous = self.request_total_previous
|
|
@@ -252,11 +235,7 @@ class ResourceMetrics:
|
|
|
252
235
|
rps = self.rps
|
|
253
236
|
|
|
254
237
|
rps_per_code: Union[Unset, dict[str, Any]] = UNSET
|
|
255
|
-
if (
|
|
256
|
-
self.rps_per_code
|
|
257
|
-
and not isinstance(self.rps_per_code, Unset)
|
|
258
|
-
and not isinstance(self.rps_per_code, dict)
|
|
259
|
-
):
|
|
238
|
+
if self.rps_per_code and not isinstance(self.rps_per_code, Unset) and not isinstance(self.rps_per_code, dict):
|
|
260
239
|
rps_per_code = self.rps_per_code.to_dict()
|
|
261
240
|
elif self.rps_per_code and isinstance(self.rps_per_code, dict):
|
|
262
241
|
rps_per_code = self.rps_per_code
|
|
@@ -294,21 +273,13 @@ class ResourceMetrics:
|
|
|
294
273
|
sandboxes_ram_usage.append(sandboxes_ram_usage_item)
|
|
295
274
|
|
|
296
275
|
token_rate: Union[Unset, dict[str, Any]] = UNSET
|
|
297
|
-
if (
|
|
298
|
-
self.token_rate
|
|
299
|
-
and not isinstance(self.token_rate, Unset)
|
|
300
|
-
and not isinstance(self.token_rate, dict)
|
|
301
|
-
):
|
|
276
|
+
if self.token_rate and not isinstance(self.token_rate, Unset) and not isinstance(self.token_rate, dict):
|
|
302
277
|
token_rate = self.token_rate.to_dict()
|
|
303
278
|
elif self.token_rate and isinstance(self.token_rate, dict):
|
|
304
279
|
token_rate = self.token_rate
|
|
305
280
|
|
|
306
281
|
token_total: Union[Unset, dict[str, Any]] = UNSET
|
|
307
|
-
if (
|
|
308
|
-
self.token_total
|
|
309
|
-
and not isinstance(self.token_total, Unset)
|
|
310
|
-
and not isinstance(self.token_total, dict)
|
|
311
|
-
):
|
|
282
|
+
if self.token_total and not isinstance(self.token_total, Unset) and not isinstance(self.token_total, dict):
|
|
312
283
|
token_total = self.token_total.to_dict()
|
|
313
284
|
elif self.token_total and isinstance(self.token_total, dict):
|
|
314
285
|
token_total = self.token_total
|
|
@@ -405,18 +376,14 @@ class ResourceMetrics:
|
|
|
405
376
|
inference_errors_global = []
|
|
406
377
|
_inference_errors_global = d.pop("inferenceErrorsGlobal", UNSET)
|
|
407
378
|
for componentsschemas_array_metric_item_data in _inference_errors_global or []:
|
|
408
|
-
componentsschemas_array_metric_item = Metric.from_dict(
|
|
409
|
-
componentsschemas_array_metric_item_data
|
|
410
|
-
)
|
|
379
|
+
componentsschemas_array_metric_item = Metric.from_dict(componentsschemas_array_metric_item_data)
|
|
411
380
|
|
|
412
381
|
inference_errors_global.append(componentsschemas_array_metric_item)
|
|
413
382
|
|
|
414
383
|
inference_global = []
|
|
415
384
|
_inference_global = d.pop("inferenceGlobal", UNSET)
|
|
416
385
|
for componentsschemas_array_metric_item_data in _inference_global or []:
|
|
417
|
-
componentsschemas_array_metric_item = Metric.from_dict(
|
|
418
|
-
componentsschemas_array_metric_item_data
|
|
419
|
-
)
|
|
386
|
+
componentsschemas_array_metric_item = Metric.from_dict(componentsschemas_array_metric_item_data)
|
|
420
387
|
|
|
421
388
|
inference_global.append(componentsschemas_array_metric_item)
|
|
422
389
|
|
|
@@ -467,9 +434,7 @@ class ResourceMetrics:
|
|
|
467
434
|
if isinstance(_request_duration_over_time, Unset):
|
|
468
435
|
request_duration_over_time = UNSET
|
|
469
436
|
else:
|
|
470
|
-
request_duration_over_time = RequestDurationOverTimeMetrics.from_dict(
|
|
471
|
-
_request_duration_over_time
|
|
472
|
-
)
|
|
437
|
+
request_duration_over_time = RequestDurationOverTimeMetrics.from_dict(_request_duration_over_time)
|
|
473
438
|
|
|
474
439
|
request_total = d.pop("requestTotal", UNSET)
|
|
475
440
|
|
|
@@ -485,18 +450,14 @@ class ResourceMetrics:
|
|
|
485
450
|
if isinstance(_request_total_by_origin_previous, Unset):
|
|
486
451
|
request_total_by_origin_previous = UNSET
|
|
487
452
|
else:
|
|
488
|
-
request_total_by_origin_previous = RequestTotalByOriginMetric.from_dict(
|
|
489
|
-
_request_total_by_origin_previous
|
|
490
|
-
)
|
|
453
|
+
request_total_by_origin_previous = RequestTotalByOriginMetric.from_dict(_request_total_by_origin_previous)
|
|
491
454
|
|
|
492
455
|
_request_total_per_code = d.pop("requestTotalPerCode", UNSET)
|
|
493
456
|
request_total_per_code: Union[Unset, ResourceMetricsRequestTotalPerCode]
|
|
494
457
|
if isinstance(_request_total_per_code, Unset):
|
|
495
458
|
request_total_per_code = UNSET
|
|
496
459
|
else:
|
|
497
|
-
request_total_per_code = ResourceMetricsRequestTotalPerCode.from_dict(
|
|
498
|
-
_request_total_per_code
|
|
499
|
-
)
|
|
460
|
+
request_total_per_code = ResourceMetricsRequestTotalPerCode.from_dict(_request_total_per_code)
|
|
500
461
|
|
|
501
462
|
_request_total_per_code_previous = d.pop("requestTotalPerCodePrevious", UNSET)
|
|
502
463
|
request_total_per_code_previous: Union[Unset, ResourceMetricsRequestTotalPerCodePrevious]
|
|
@@ -523,9 +484,7 @@ class ResourceMetrics:
|
|
|
523
484
|
if isinstance(_rps_per_code_previous, Unset):
|
|
524
485
|
rps_per_code_previous = UNSET
|
|
525
486
|
else:
|
|
526
|
-
rps_per_code_previous = ResourceMetricsRpsPerCodePrevious.from_dict(
|
|
527
|
-
_rps_per_code_previous
|
|
528
|
-
)
|
|
487
|
+
rps_per_code_previous = ResourceMetricsRpsPerCodePrevious.from_dict(_rps_per_code_previous)
|
|
529
488
|
|
|
530
489
|
rps_previous = d.pop("rpsPrevious", UNSET)
|
|
531
490
|
|
|
@@ -36,6 +36,7 @@ class Sandbox:
|
|
|
36
36
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
37
|
|
|
38
38
|
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
|
|
39
40
|
events: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
40
41
|
if not isinstance(self.events, Unset):
|
|
41
42
|
events = []
|
|
@@ -43,19 +44,13 @@ class Sandbox:
|
|
|
43
44
|
if type(componentsschemas_core_events_item_data) is dict:
|
|
44
45
|
componentsschemas_core_events_item = componentsschemas_core_events_item_data
|
|
45
46
|
else:
|
|
46
|
-
componentsschemas_core_events_item = (
|
|
47
|
-
componentsschemas_core_events_item_data.to_dict()
|
|
48
|
-
)
|
|
47
|
+
componentsschemas_core_events_item = componentsschemas_core_events_item_data.to_dict()
|
|
49
48
|
events.append(componentsschemas_core_events_item)
|
|
50
49
|
|
|
51
50
|
last_used_at = self.last_used_at
|
|
52
51
|
|
|
53
52
|
metadata: Union[Unset, dict[str, Any]] = UNSET
|
|
54
|
-
if (
|
|
55
|
-
self.metadata
|
|
56
|
-
and not isinstance(self.metadata, Unset)
|
|
57
|
-
and not isinstance(self.metadata, dict)
|
|
58
|
-
):
|
|
53
|
+
if self.metadata and not isinstance(self.metadata, Unset) and not isinstance(self.metadata, dict):
|
|
59
54
|
metadata = self.metadata.to_dict()
|
|
60
55
|
elif self.metadata and isinstance(self.metadata, dict):
|
|
61
56
|
metadata = self.metadata
|
|
@@ -100,9 +95,7 @@ class Sandbox:
|
|
|
100
95
|
events = []
|
|
101
96
|
_events = d.pop("events", UNSET)
|
|
102
97
|
for componentsschemas_core_events_item_data in _events or []:
|
|
103
|
-
componentsschemas_core_events_item = CoreEvent.from_dict(
|
|
104
|
-
componentsschemas_core_events_item_data
|
|
105
|
-
)
|
|
98
|
+
componentsschemas_core_events_item = CoreEvent.from_dict(componentsschemas_core_events_item_data)
|
|
106
99
|
|
|
107
100
|
events.append(componentsschemas_core_events_item)
|
|
108
101
|
|
|
@@ -50,6 +50,7 @@ class SandboxDefinition:
|
|
|
50
50
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
51
51
|
|
|
52
52
|
def to_dict(self) -> dict[str, Any]:
|
|
53
|
+
|
|
53
54
|
categories: Union[Unset, list[Any]] = UNSET
|
|
54
55
|
if not isinstance(self.categories, Unset):
|
|
55
56
|
categories = self.categories
|
|
@@ -24,6 +24,7 @@ class SandboxLifecycle:
|
|
|
24
24
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
25
|
|
|
26
26
|
def to_dict(self) -> dict[str, Any]:
|
|
27
|
+
|
|
27
28
|
expiration_policies: Union[Unset, list[dict[str, Any]]] = UNSET
|
|
28
29
|
if not isinstance(self.expiration_policies, Unset):
|
|
29
30
|
expiration_policies = []
|