eval-studio-client 1.0.1__py3-none-any.whl → 1.0.3__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.
- eval_studio_client/api/__init__.py +0 -43
- eval_studio_client/api/api/__init__.py +0 -5
- eval_studio_client/api/api/perturbator_service_api.py +1 -268
- eval_studio_client/api/api/test_service_api.py +0 -568
- eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +0 -1
- eval_studio_client/api/docs/PerturbatorServiceApi.md +3 -33
- eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +1 -2
- eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +0 -1
- eval_studio_client/api/docs/TestServiceApi.md +0 -140
- eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +0 -1
- eval_studio_client/api/docs/TestServicePerturbTestRequest.md +0 -1
- eval_studio_client/api/docs/V1CreateEvaluationRequest.md +0 -1
- eval_studio_client/api/docs/V1ImportEvaluationRequest.md +0 -1
- eval_studio_client/api/docs/V1TestCase.md +0 -1
- eval_studio_client/api/models/__init__.py +0 -38
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +2 -8
- eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +3 -5
- eval_studio_client/api/models/required_the_test_case_to_update.py +2 -6
- eval_studio_client/api/models/test_service_generate_test_cases_request.py +2 -4
- eval_studio_client/api/models/test_service_perturb_test_request.py +2 -4
- eval_studio_client/api/models/v1_create_evaluation_request.py +2 -7
- eval_studio_client/api/models/v1_import_evaluation_request.py +2 -7
- eval_studio_client/api/models/v1_test_case.py +2 -6
- eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +2 -20
- eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +1 -4
- eval_studio_client/api/test/test_required_the_test_case_to_update.py +1 -4
- eval_studio_client/api/test/test_test_service_api.py +0 -12
- eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +1 -4
- eval_studio_client/api/test/test_test_service_perturb_test_request.py +1 -4
- eval_studio_client/api/test/test_v1_batch_delete_test_cases_response.py +1 -4
- eval_studio_client/api/test/test_v1_create_evaluation_request.py +2 -20
- eval_studio_client/api/test/test_v1_create_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_delete_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_evaluation_test.py +1 -4
- eval_studio_client/api/test/test_v1_find_all_test_cases_by_id_response.py +1 -4
- eval_studio_client/api/test/test_v1_get_test_case_response.py +1 -4
- eval_studio_client/api/test/test_v1_import_evaluation_request.py +1 -16
- eval_studio_client/api/test/test_v1_list_test_cases_response.py +1 -4
- eval_studio_client/api/test/test_v1_test_case.py +1 -4
- eval_studio_client/api/test/test_v1_update_test_case_response.py +1 -4
- eval_studio_client/client.py +11 -9
- eval_studio_client/dashboards.py +0 -29
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +32 -1903
- eval_studio_client/leaderboards.py +0 -123
- eval_studio_client/models.py +42 -3
- eval_studio_client/test_labs.py +21 -49
- eval_studio_client/tests.py +1 -188
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.dist-info}/METADATA +3 -2
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.dist-info}/RECORD +50 -179
- {eval_studio_client-1.0.1.dist-info → eval_studio_client-1.0.3.dist-info}/WHEEL +1 -1
- eval_studio_client/api/api/human_calibration_service_api.py +0 -304
- eval_studio_client/api/api/prompt_library_service_api.py +0 -669
- eval_studio_client/api/api/workflow_edge_service_api.py +0 -296
- eval_studio_client/api/api/workflow_node_service_api.py +0 -1634
- eval_studio_client/api/api/workflow_service_api.py +0 -1609
- eval_studio_client/api/docs/HumanCalibrationServiceApi.md +0 -77
- eval_studio_client/api/docs/PromptLibraryServiceApi.md +0 -155
- eval_studio_client/api/docs/ProtobufNullValue.md +0 -12
- eval_studio_client/api/docs/RequiredTheUpdatedWorkflow.md +0 -44
- eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +0 -44
- eval_studio_client/api/docs/TestServiceImportTestCasesFromLibraryRequest.md +0 -32
- eval_studio_client/api/docs/TestServiceListTestCaseLibraryItemsRequest.md +0 -35
- eval_studio_client/api/docs/V1BatchDeleteWorkflowsRequest.md +0 -29
- eval_studio_client/api/docs/V1BatchDeleteWorkflowsResponse.md +0 -29
- eval_studio_client/api/docs/V1BatchGetWorkflowEdgesResponse.md +0 -29
- eval_studio_client/api/docs/V1BatchGetWorkflowNodesResponse.md +0 -29
- eval_studio_client/api/docs/V1CreateWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1DeleteWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1DeleteWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1EstimateThresholdRequest.md +0 -33
- eval_studio_client/api/docs/V1GetWorkflowNodePrerequisitesResponse.md +0 -30
- eval_studio_client/api/docs/V1GetWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1GetWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1ImportTestCasesFromLibraryResponse.md +0 -29
- eval_studio_client/api/docs/V1ImportTestCasesRequest.md +0 -33
- eval_studio_client/api/docs/V1LabeledTestCase.md +0 -31
- eval_studio_client/api/docs/V1ListPromptLibraryItemsResponse.md +0 -29
- eval_studio_client/api/docs/V1ListTestCaseLibraryItemsResponse.md +0 -29
- eval_studio_client/api/docs/V1ListWorkflowsResponse.md +0 -29
- eval_studio_client/api/docs/V1ProcessWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1PromptLibraryItem.md +0 -42
- eval_studio_client/api/docs/V1TestSuiteEvaluates.md +0 -11
- eval_studio_client/api/docs/V1UpdateWorkflowNodeResponse.md +0 -29
- eval_studio_client/api/docs/V1UpdateWorkflowResponse.md +0 -29
- eval_studio_client/api/docs/V1Workflow.md +0 -46
- eval_studio_client/api/docs/V1WorkflowEdge.md +0 -40
- eval_studio_client/api/docs/V1WorkflowEdgeType.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNode.md +0 -46
- eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +0 -40
- eval_studio_client/api/docs/V1WorkflowNodeArtifacts.md +0 -29
- eval_studio_client/api/docs/V1WorkflowNodeAttributes.md +0 -30
- eval_studio_client/api/docs/V1WorkflowNodeStatus.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNodeType.md +0 -12
- eval_studio_client/api/docs/V1WorkflowNodeView.md +0 -12
- eval_studio_client/api/docs/V1WorkflowType.md +0 -12
- eval_studio_client/api/docs/WorkflowEdgeServiceApi.md +0 -76
- eval_studio_client/api/docs/WorkflowNodeServiceApi.md +0 -423
- eval_studio_client/api/docs/WorkflowServiceApi.md +0 -417
- eval_studio_client/api/models/protobuf_null_value.py +0 -36
- eval_studio_client/api/models/required_the_updated_workflow.py +0 -152
- eval_studio_client/api/models/required_the_updated_workflow_node.py +0 -152
- eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +0 -93
- eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +0 -99
- eval_studio_client/api/models/v1_batch_delete_workflows_request.py +0 -87
- eval_studio_client/api/models/v1_batch_delete_workflows_response.py +0 -95
- eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +0 -95
- eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +0 -95
- eval_studio_client/api/models/v1_create_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_delete_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_delete_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_estimate_threshold_request.py +0 -103
- eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +0 -89
- eval_studio_client/api/models/v1_get_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_get_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +0 -91
- eval_studio_client/api/models/v1_import_test_cases_request.py +0 -95
- eval_studio_client/api/models/v1_labeled_test_case.py +0 -91
- eval_studio_client/api/models/v1_list_prompt_library_items_response.py +0 -95
- eval_studio_client/api/models/v1_list_test_case_library_items_response.py +0 -95
- eval_studio_client/api/models/v1_list_workflows_response.py +0 -95
- eval_studio_client/api/models/v1_process_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_prompt_library_item.py +0 -129
- eval_studio_client/api/models/v1_test_suite_evaluates.py +0 -39
- eval_studio_client/api/models/v1_update_workflow_node_response.py +0 -91
- eval_studio_client/api/models/v1_update_workflow_response.py +0 -91
- eval_studio_client/api/models/v1_workflow.py +0 -156
- eval_studio_client/api/models/v1_workflow_edge.py +0 -123
- eval_studio_client/api/models/v1_workflow_edge_type.py +0 -37
- eval_studio_client/api/models/v1_workflow_node.py +0 -156
- eval_studio_client/api/models/v1_workflow_node_artifact.py +0 -122
- eval_studio_client/api/models/v1_workflow_node_artifacts.py +0 -97
- eval_studio_client/api/models/v1_workflow_node_attributes.py +0 -87
- eval_studio_client/api/models/v1_workflow_node_status.py +0 -40
- eval_studio_client/api/models/v1_workflow_node_type.py +0 -41
- eval_studio_client/api/models/v1_workflow_node_view.py +0 -38
- eval_studio_client/api/models/v1_workflow_type.py +0 -37
- eval_studio_client/api/test/test_human_calibration_service_api.py +0 -38
- eval_studio_client/api/test/test_prompt_library_service_api.py +0 -43
- eval_studio_client/api/test/test_protobuf_null_value.py +0 -33
- eval_studio_client/api/test/test_required_the_updated_workflow.py +0 -88
- eval_studio_client/api/test/test_required_the_updated_workflow_node.py +0 -80
- eval_studio_client/api/test/test_test_service_import_test_cases_from_library_request.py +0 -56
- eval_studio_client/api/test/test_test_service_list_test_case_library_items_request.py +0 -63
- eval_studio_client/api/test/test_v1_batch_delete_workflows_request.py +0 -53
- eval_studio_client/api/test/test_v1_batch_delete_workflows_response.py +0 -92
- eval_studio_client/api/test/test_v1_batch_get_workflow_edges_response.py +0 -64
- eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +0 -84
- eval_studio_client/api/test/test_v1_create_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_delete_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_estimate_threshold_request.py +0 -60
- eval_studio_client/api/test/test_v1_get_workflow_node_prerequisites_response.py +0 -56
- eval_studio_client/api/test/test_v1_get_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_get_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_import_test_cases_from_library_response.py +0 -71
- eval_studio_client/api/test/test_v1_import_test_cases_request.py +0 -57
- eval_studio_client/api/test/test_v1_labeled_test_case.py +0 -53
- eval_studio_client/api/test/test_v1_list_prompt_library_items_response.py +0 -71
- eval_studio_client/api/test/test_v1_list_test_case_library_items_response.py +0 -71
- eval_studio_client/api/test/test_v1_list_workflows_response.py +0 -92
- eval_studio_client/api/test/test_v1_process_workflow_node_response.py +0 -71
- eval_studio_client/api/test/test_v1_prompt_library_item.py +0 -68
- eval_studio_client/api/test/test_v1_test_suite_evaluates.py +0 -33
- eval_studio_client/api/test/test_v1_update_workflow_node_response.py +0 -82
- eval_studio_client/api/test/test_v1_update_workflow_response.py +0 -90
- eval_studio_client/api/test/test_v1_workflow.py +0 -89
- eval_studio_client/api/test/test_v1_workflow_edge.py +0 -61
- eval_studio_client/api/test/test_v1_workflow_edge_type.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node.py +0 -81
- eval_studio_client/api/test/test_v1_workflow_node_artifact.py +0 -61
- eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +0 -64
- eval_studio_client/api/test/test_v1_workflow_node_attributes.py +0 -51
- eval_studio_client/api/test/test_v1_workflow_node_status.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node_type.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_node_view.py +0 -33
- eval_studio_client/api/test/test_v1_workflow_type.py +0 -33
- eval_studio_client/api/test/test_workflow_edge_service_api.py +0 -38
- eval_studio_client/api/test/test_workflow_node_service_api.py +0 -73
- eval_studio_client/api/test/test_workflow_service_api.py +0 -73
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
ai/h2o/eval_studio/v1/collection.proto
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: version not set
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from datetime import datetime
|
|
21
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
22
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
23
|
-
from eval_studio_client.api.models.v1_workflow_node_artifact import V1WorkflowNodeArtifact
|
|
24
|
-
from eval_studio_client.api.models.v1_workflow_node_attributes import V1WorkflowNodeAttributes
|
|
25
|
-
from eval_studio_client.api.models.v1_workflow_node_status import V1WorkflowNodeStatus
|
|
26
|
-
from eval_studio_client.api.models.v1_workflow_node_type import V1WorkflowNodeType
|
|
27
|
-
from typing import Optional, Set
|
|
28
|
-
from typing_extensions import Self
|
|
29
|
-
|
|
30
|
-
class RequiredTheUpdatedWorkflowNode(BaseModel):
|
|
31
|
-
"""
|
|
32
|
-
RequiredTheUpdatedWorkflowNode
|
|
33
|
-
""" # noqa: E501
|
|
34
|
-
parent: Optional[StrictStr] = Field(default=None, description="Output only. Immutable. Resource name of the parent Workflow in format of `workflows/{workflow_id}/`.")
|
|
35
|
-
display_name: Optional[StrictStr] = Field(default=None, description="Human-readable name of the WorkflowNode.", alias="displayName")
|
|
36
|
-
description: Optional[StrictStr] = Field(default=None, description="Optional description of the WorkflowNode.")
|
|
37
|
-
create_time: Optional[datetime] = Field(default=None, description="Output only. Immutable. Creation time of the WorkflowNode.", alias="createTime")
|
|
38
|
-
creator: Optional[StrictStr] = Field(default=None, description="Output only. Immutable. Name of the user or service that requested creation of the WorkflowNode.")
|
|
39
|
-
update_time: Optional[datetime] = Field(default=None, description="Output only. Optional. Last update time of the WorkflowNode.", alias="updateTime")
|
|
40
|
-
updater: Optional[StrictStr] = Field(default=None, description="Output only. Name of the user or service that requested update of the WorkflowNode.")
|
|
41
|
-
delete_time: Optional[datetime] = Field(default=None, description="Output only. Optional. Deletion time of the WorkflowNode.", alias="deleteTime")
|
|
42
|
-
deleter: Optional[StrictStr] = Field(default=None, description="Output only. Name of the user or service that requested deletion of the WorkflowNode.")
|
|
43
|
-
type: Optional[V1WorkflowNodeType] = None
|
|
44
|
-
parameters: Optional[Dict[str, Any]] = Field(default=None, description="User-given parameters for the WorkflowNode.")
|
|
45
|
-
outputs: Optional[Dict[str, Any]] = Field(default=None, description="Output only. Computed outputs of the WorkflowNode.")
|
|
46
|
-
output_artifacts: Optional[List[V1WorkflowNodeArtifact]] = Field(default=None, description="Output only. Optional. List of the WorkflowNodeArtifacts produces by the WorkflowNode.", alias="outputArtifacts")
|
|
47
|
-
status: Optional[V1WorkflowNodeStatus] = None
|
|
48
|
-
attributes: Optional[V1WorkflowNodeAttributes] = None
|
|
49
|
-
processed_by_operation: Optional[StrictStr] = Field(default=None, description="Output only. Optional. Resource name of the latest Operation that has processed or is currently processing this WorkflowNode.", alias="processedByOperation")
|
|
50
|
-
__properties: ClassVar[List[str]] = ["parent", "displayName", "description", "createTime", "creator", "updateTime", "updater", "deleteTime", "deleter", "type", "parameters", "outputs", "outputArtifacts", "status", "attributes", "processedByOperation"]
|
|
51
|
-
|
|
52
|
-
model_config = ConfigDict(
|
|
53
|
-
populate_by_name=True,
|
|
54
|
-
validate_assignment=True,
|
|
55
|
-
protected_namespaces=(),
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
def to_str(self) -> str:
|
|
60
|
-
"""Returns the string representation of the model using alias"""
|
|
61
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
62
|
-
|
|
63
|
-
def to_json(self) -> str:
|
|
64
|
-
"""Returns the JSON representation of the model using alias"""
|
|
65
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
66
|
-
return json.dumps(self.to_dict())
|
|
67
|
-
|
|
68
|
-
@classmethod
|
|
69
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
70
|
-
"""Create an instance of RequiredTheUpdatedWorkflowNode from a JSON string"""
|
|
71
|
-
return cls.from_dict(json.loads(json_str))
|
|
72
|
-
|
|
73
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
74
|
-
"""Return the dictionary representation of the model using alias.
|
|
75
|
-
|
|
76
|
-
This has the following differences from calling pydantic's
|
|
77
|
-
`self.model_dump(by_alias=True)`:
|
|
78
|
-
|
|
79
|
-
* `None` is only added to the output dict for nullable fields that
|
|
80
|
-
were set at model initialization. Other fields with value `None`
|
|
81
|
-
are ignored.
|
|
82
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
83
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
84
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
85
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
86
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
87
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
88
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
89
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
90
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
91
|
-
* OpenAPI `readOnly` fields are excluded.
|
|
92
|
-
"""
|
|
93
|
-
excluded_fields: Set[str] = set([
|
|
94
|
-
"parent",
|
|
95
|
-
"create_time",
|
|
96
|
-
"creator",
|
|
97
|
-
"update_time",
|
|
98
|
-
"updater",
|
|
99
|
-
"delete_time",
|
|
100
|
-
"deleter",
|
|
101
|
-
"outputs",
|
|
102
|
-
"output_artifacts",
|
|
103
|
-
"processed_by_operation",
|
|
104
|
-
])
|
|
105
|
-
|
|
106
|
-
_dict = self.model_dump(
|
|
107
|
-
by_alias=True,
|
|
108
|
-
exclude=excluded_fields,
|
|
109
|
-
exclude_none=True,
|
|
110
|
-
)
|
|
111
|
-
# override the default output from pydantic by calling `to_dict()` of each item in output_artifacts (list)
|
|
112
|
-
_items = []
|
|
113
|
-
if self.output_artifacts:
|
|
114
|
-
for _item in self.output_artifacts:
|
|
115
|
-
if _item:
|
|
116
|
-
_items.append(_item.to_dict())
|
|
117
|
-
_dict['outputArtifacts'] = _items
|
|
118
|
-
# override the default output from pydantic by calling `to_dict()` of attributes
|
|
119
|
-
if self.attributes:
|
|
120
|
-
_dict['attributes'] = self.attributes.to_dict()
|
|
121
|
-
return _dict
|
|
122
|
-
|
|
123
|
-
@classmethod
|
|
124
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
125
|
-
"""Create an instance of RequiredTheUpdatedWorkflowNode from a dict"""
|
|
126
|
-
if obj is None:
|
|
127
|
-
return None
|
|
128
|
-
|
|
129
|
-
if not isinstance(obj, dict):
|
|
130
|
-
return cls.model_validate(obj)
|
|
131
|
-
|
|
132
|
-
_obj = cls.model_validate({
|
|
133
|
-
"parent": obj.get("parent"),
|
|
134
|
-
"displayName": obj.get("displayName"),
|
|
135
|
-
"description": obj.get("description"),
|
|
136
|
-
"createTime": obj.get("createTime"),
|
|
137
|
-
"creator": obj.get("creator"),
|
|
138
|
-
"updateTime": obj.get("updateTime"),
|
|
139
|
-
"updater": obj.get("updater"),
|
|
140
|
-
"deleteTime": obj.get("deleteTime"),
|
|
141
|
-
"deleter": obj.get("deleter"),
|
|
142
|
-
"type": obj.get("type"),
|
|
143
|
-
"parameters": obj.get("parameters"),
|
|
144
|
-
"outputs": obj.get("outputs"),
|
|
145
|
-
"outputArtifacts": [V1WorkflowNodeArtifact.from_dict(_item) for _item in obj["outputArtifacts"]] if obj.get("outputArtifacts") is not None else None,
|
|
146
|
-
"status": obj.get("status"),
|
|
147
|
-
"attributes": V1WorkflowNodeAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
|
|
148
|
-
"processedByOperation": obj.get("processedByOperation")
|
|
149
|
-
})
|
|
150
|
-
return _obj
|
|
151
|
-
|
|
152
|
-
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
ai/h2o/eval_studio/v1/collection.proto
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: version not set
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from typing import Optional, Set
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
class TestServiceImportTestCasesFromLibraryRequest(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
TestServiceImportTestCasesFromLibraryRequest
|
|
28
|
-
""" # noqa: E501
|
|
29
|
-
operation: Optional[StrictStr] = Field(default=None, description="Required. The Operation processing this prompt library retrieval process.")
|
|
30
|
-
test_suite_url: Optional[StrictStr] = Field(default=None, description="Required. The URL of the library test suite to get TestCases from (sample).", alias="testSuiteUrl")
|
|
31
|
-
count: Optional[StrictInt] = Field(default=None, description="Required. The number of TestCases to get from the library.")
|
|
32
|
-
test_document_urls: Optional[List[StrictStr]] = Field(default=None, description="Optional. The list of target Test corpus document URLs to skip when returning library TestCases corpus.", alias="testDocumentUrls")
|
|
33
|
-
__properties: ClassVar[List[str]] = ["operation", "testSuiteUrl", "count", "testDocumentUrls"]
|
|
34
|
-
|
|
35
|
-
model_config = ConfigDict(
|
|
36
|
-
populate_by_name=True,
|
|
37
|
-
validate_assignment=True,
|
|
38
|
-
protected_namespaces=(),
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def to_str(self) -> str:
|
|
43
|
-
"""Returns the string representation of the model using alias"""
|
|
44
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
-
|
|
46
|
-
def to_json(self) -> str:
|
|
47
|
-
"""Returns the JSON representation of the model using alias"""
|
|
48
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
-
return json.dumps(self.to_dict())
|
|
50
|
-
|
|
51
|
-
@classmethod
|
|
52
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
-
"""Create an instance of TestServiceImportTestCasesFromLibraryRequest from a JSON string"""
|
|
54
|
-
return cls.from_dict(json.loads(json_str))
|
|
55
|
-
|
|
56
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
-
"""Return the dictionary representation of the model using alias.
|
|
58
|
-
|
|
59
|
-
This has the following differences from calling pydantic's
|
|
60
|
-
`self.model_dump(by_alias=True)`:
|
|
61
|
-
|
|
62
|
-
* `None` is only added to the output dict for nullable fields that
|
|
63
|
-
were set at model initialization. Other fields with value `None`
|
|
64
|
-
are ignored.
|
|
65
|
-
"""
|
|
66
|
-
excluded_fields: Set[str] = set([
|
|
67
|
-
])
|
|
68
|
-
|
|
69
|
-
_dict = self.model_dump(
|
|
70
|
-
by_alias=True,
|
|
71
|
-
exclude=excluded_fields,
|
|
72
|
-
exclude_none=True,
|
|
73
|
-
)
|
|
74
|
-
return _dict
|
|
75
|
-
|
|
76
|
-
@classmethod
|
|
77
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
78
|
-
"""Create an instance of TestServiceImportTestCasesFromLibraryRequest from a dict"""
|
|
79
|
-
if obj is None:
|
|
80
|
-
return None
|
|
81
|
-
|
|
82
|
-
if not isinstance(obj, dict):
|
|
83
|
-
return cls.model_validate(obj)
|
|
84
|
-
|
|
85
|
-
_obj = cls.model_validate({
|
|
86
|
-
"operation": obj.get("operation"),
|
|
87
|
-
"testSuiteUrl": obj.get("testSuiteUrl"),
|
|
88
|
-
"count": obj.get("count"),
|
|
89
|
-
"testDocumentUrls": obj.get("testDocumentUrls")
|
|
90
|
-
})
|
|
91
|
-
return _obj
|
|
92
|
-
|
|
93
|
-
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
ai/h2o/eval_studio/v1/collection.proto
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: version not set
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from typing import Optional, Set
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
class TestServiceListTestCaseLibraryItemsRequest(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
TestServiceListTestCaseLibraryItemsRequest
|
|
28
|
-
""" # noqa: E501
|
|
29
|
-
filter_by_categories: Optional[List[StrictStr]] = Field(default=None, description="Optional. Filter by categories.", alias="filterByCategories")
|
|
30
|
-
filter_by_purposes: Optional[List[StrictStr]] = Field(default=None, description="Optional. Filter by purposes.", alias="filterByPurposes")
|
|
31
|
-
filter_by_evaluates: Optional[List[StrictStr]] = Field(default=None, description="Optional. Filter by evaluates.", alias="filterByEvaluates")
|
|
32
|
-
filter_by_origin: Optional[StrictStr] = Field(default=None, description="Optional. Filter by origin.", alias="filterByOrigin")
|
|
33
|
-
filter_by_test_case_count: Optional[StrictInt] = Field(default=None, description="Optional. Filter by test case count.", alias="filterByTestCaseCount")
|
|
34
|
-
filter_by_test_count: Optional[StrictInt] = Field(default=None, description="Optional. Filter by test count.", alias="filterByTestCount")
|
|
35
|
-
filter_by_fts: Optional[StrictStr] = Field(default=None, description="Optional. Filter by FTS.", alias="filterByFts")
|
|
36
|
-
__properties: ClassVar[List[str]] = ["filterByCategories", "filterByPurposes", "filterByEvaluates", "filterByOrigin", "filterByTestCaseCount", "filterByTestCount", "filterByFts"]
|
|
37
|
-
|
|
38
|
-
model_config = ConfigDict(
|
|
39
|
-
populate_by_name=True,
|
|
40
|
-
validate_assignment=True,
|
|
41
|
-
protected_namespaces=(),
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
def to_str(self) -> str:
|
|
46
|
-
"""Returns the string representation of the model using alias"""
|
|
47
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
48
|
-
|
|
49
|
-
def to_json(self) -> str:
|
|
50
|
-
"""Returns the JSON representation of the model using alias"""
|
|
51
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
52
|
-
return json.dumps(self.to_dict())
|
|
53
|
-
|
|
54
|
-
@classmethod
|
|
55
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
56
|
-
"""Create an instance of TestServiceListTestCaseLibraryItemsRequest from a JSON string"""
|
|
57
|
-
return cls.from_dict(json.loads(json_str))
|
|
58
|
-
|
|
59
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
60
|
-
"""Return the dictionary representation of the model using alias.
|
|
61
|
-
|
|
62
|
-
This has the following differences from calling pydantic's
|
|
63
|
-
`self.model_dump(by_alias=True)`:
|
|
64
|
-
|
|
65
|
-
* `None` is only added to the output dict for nullable fields that
|
|
66
|
-
were set at model initialization. Other fields with value `None`
|
|
67
|
-
are ignored.
|
|
68
|
-
"""
|
|
69
|
-
excluded_fields: Set[str] = set([
|
|
70
|
-
])
|
|
71
|
-
|
|
72
|
-
_dict = self.model_dump(
|
|
73
|
-
by_alias=True,
|
|
74
|
-
exclude=excluded_fields,
|
|
75
|
-
exclude_none=True,
|
|
76
|
-
)
|
|
77
|
-
return _dict
|
|
78
|
-
|
|
79
|
-
@classmethod
|
|
80
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
81
|
-
"""Create an instance of TestServiceListTestCaseLibraryItemsRequest from a dict"""
|
|
82
|
-
if obj is None:
|
|
83
|
-
return None
|
|
84
|
-
|
|
85
|
-
if not isinstance(obj, dict):
|
|
86
|
-
return cls.model_validate(obj)
|
|
87
|
-
|
|
88
|
-
_obj = cls.model_validate({
|
|
89
|
-
"filterByCategories": obj.get("filterByCategories"),
|
|
90
|
-
"filterByPurposes": obj.get("filterByPurposes"),
|
|
91
|
-
"filterByEvaluates": obj.get("filterByEvaluates"),
|
|
92
|
-
"filterByOrigin": obj.get("filterByOrigin"),
|
|
93
|
-
"filterByTestCaseCount": obj.get("filterByTestCaseCount"),
|
|
94
|
-
"filterByTestCount": obj.get("filterByTestCount"),
|
|
95
|
-
"filterByFts": obj.get("filterByFts")
|
|
96
|
-
})
|
|
97
|
-
return _obj
|
|
98
|
-
|
|
99
|
-
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
ai/h2o/eval_studio/v1/collection.proto
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: version not set
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from typing import Optional, Set
|
|
23
|
-
from typing_extensions import Self
|
|
24
|
-
|
|
25
|
-
class V1BatchDeleteWorkflowsRequest(BaseModel):
|
|
26
|
-
"""
|
|
27
|
-
V1BatchDeleteWorkflowsRequest
|
|
28
|
-
""" # noqa: E501
|
|
29
|
-
names: Optional[List[StrictStr]] = Field(default=None, description="Required. The names of the Workflows to delete. A maximum of 1000 can be specified.")
|
|
30
|
-
__properties: ClassVar[List[str]] = ["names"]
|
|
31
|
-
|
|
32
|
-
model_config = ConfigDict(
|
|
33
|
-
populate_by_name=True,
|
|
34
|
-
validate_assignment=True,
|
|
35
|
-
protected_namespaces=(),
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def to_str(self) -> str:
|
|
40
|
-
"""Returns the string representation of the model using alias"""
|
|
41
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
42
|
-
|
|
43
|
-
def to_json(self) -> str:
|
|
44
|
-
"""Returns the JSON representation of the model using alias"""
|
|
45
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
46
|
-
return json.dumps(self.to_dict())
|
|
47
|
-
|
|
48
|
-
@classmethod
|
|
49
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
50
|
-
"""Create an instance of V1BatchDeleteWorkflowsRequest from a JSON string"""
|
|
51
|
-
return cls.from_dict(json.loads(json_str))
|
|
52
|
-
|
|
53
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
54
|
-
"""Return the dictionary representation of the model using alias.
|
|
55
|
-
|
|
56
|
-
This has the following differences from calling pydantic's
|
|
57
|
-
`self.model_dump(by_alias=True)`:
|
|
58
|
-
|
|
59
|
-
* `None` is only added to the output dict for nullable fields that
|
|
60
|
-
were set at model initialization. Other fields with value `None`
|
|
61
|
-
are ignored.
|
|
62
|
-
"""
|
|
63
|
-
excluded_fields: Set[str] = set([
|
|
64
|
-
])
|
|
65
|
-
|
|
66
|
-
_dict = self.model_dump(
|
|
67
|
-
by_alias=True,
|
|
68
|
-
exclude=excluded_fields,
|
|
69
|
-
exclude_none=True,
|
|
70
|
-
)
|
|
71
|
-
return _dict
|
|
72
|
-
|
|
73
|
-
@classmethod
|
|
74
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
75
|
-
"""Create an instance of V1BatchDeleteWorkflowsRequest from a dict"""
|
|
76
|
-
if obj is None:
|
|
77
|
-
return None
|
|
78
|
-
|
|
79
|
-
if not isinstance(obj, dict):
|
|
80
|
-
return cls.model_validate(obj)
|
|
81
|
-
|
|
82
|
-
_obj = cls.model_validate({
|
|
83
|
-
"names": obj.get("names")
|
|
84
|
-
})
|
|
85
|
-
return _obj
|
|
86
|
-
|
|
87
|
-
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
ai/h2o/eval_studio/v1/collection.proto
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: version not set
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from eval_studio_client.api.models.v1_workflow import V1Workflow
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class V1BatchDeleteWorkflowsResponse(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
V1BatchDeleteWorkflowsResponse
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
workflows: Optional[List[V1Workflow]] = Field(default=None, description="The deleted Workflows.")
|
|
31
|
-
__properties: ClassVar[List[str]] = ["workflows"]
|
|
32
|
-
|
|
33
|
-
model_config = ConfigDict(
|
|
34
|
-
populate_by_name=True,
|
|
35
|
-
validate_assignment=True,
|
|
36
|
-
protected_namespaces=(),
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def to_str(self) -> str:
|
|
41
|
-
"""Returns the string representation of the model using alias"""
|
|
42
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
-
|
|
44
|
-
def to_json(self) -> str:
|
|
45
|
-
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
-
|
|
49
|
-
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of V1BatchDeleteWorkflowsResponse from a JSON string"""
|
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
|
53
|
-
|
|
54
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
-
"""Return the dictionary representation of the model using alias.
|
|
56
|
-
|
|
57
|
-
This has the following differences from calling pydantic's
|
|
58
|
-
`self.model_dump(by_alias=True)`:
|
|
59
|
-
|
|
60
|
-
* `None` is only added to the output dict for nullable fields that
|
|
61
|
-
were set at model initialization. Other fields with value `None`
|
|
62
|
-
are ignored.
|
|
63
|
-
"""
|
|
64
|
-
excluded_fields: Set[str] = set([
|
|
65
|
-
])
|
|
66
|
-
|
|
67
|
-
_dict = self.model_dump(
|
|
68
|
-
by_alias=True,
|
|
69
|
-
exclude=excluded_fields,
|
|
70
|
-
exclude_none=True,
|
|
71
|
-
)
|
|
72
|
-
# override the default output from pydantic by calling `to_dict()` of each item in workflows (list)
|
|
73
|
-
_items = []
|
|
74
|
-
if self.workflows:
|
|
75
|
-
for _item in self.workflows:
|
|
76
|
-
if _item:
|
|
77
|
-
_items.append(_item.to_dict())
|
|
78
|
-
_dict['workflows'] = _items
|
|
79
|
-
return _dict
|
|
80
|
-
|
|
81
|
-
@classmethod
|
|
82
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
-
"""Create an instance of V1BatchDeleteWorkflowsResponse from a dict"""
|
|
84
|
-
if obj is None:
|
|
85
|
-
return None
|
|
86
|
-
|
|
87
|
-
if not isinstance(obj, dict):
|
|
88
|
-
return cls.model_validate(obj)
|
|
89
|
-
|
|
90
|
-
_obj = cls.model_validate({
|
|
91
|
-
"workflows": [V1Workflow.from_dict(_item) for _item in obj["workflows"]] if obj.get("workflows") is not None else None
|
|
92
|
-
})
|
|
93
|
-
return _obj
|
|
94
|
-
|
|
95
|
-
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
# coding: utf-8
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
ai/h2o/eval_studio/v1/collection.proto
|
|
5
|
-
|
|
6
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
-
|
|
8
|
-
The version of the OpenAPI document: version not set
|
|
9
|
-
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
-
|
|
11
|
-
Do not edit the class manually.
|
|
12
|
-
""" # noqa: E501
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
from __future__ import annotations
|
|
16
|
-
import pprint
|
|
17
|
-
import re # noqa: F401
|
|
18
|
-
import json
|
|
19
|
-
|
|
20
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
-
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
-
from eval_studio_client.api.models.v1_workflow_edge import V1WorkflowEdge
|
|
23
|
-
from typing import Optional, Set
|
|
24
|
-
from typing_extensions import Self
|
|
25
|
-
|
|
26
|
-
class V1BatchGetWorkflowEdgesResponse(BaseModel):
|
|
27
|
-
"""
|
|
28
|
-
V1BatchGetWorkflowEdgesResponse
|
|
29
|
-
""" # noqa: E501
|
|
30
|
-
edges: Optional[List[V1WorkflowEdge]] = Field(default=None, description="The WorkflowEdges requested.")
|
|
31
|
-
__properties: ClassVar[List[str]] = ["edges"]
|
|
32
|
-
|
|
33
|
-
model_config = ConfigDict(
|
|
34
|
-
populate_by_name=True,
|
|
35
|
-
validate_assignment=True,
|
|
36
|
-
protected_namespaces=(),
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
def to_str(self) -> str:
|
|
41
|
-
"""Returns the string representation of the model using alias"""
|
|
42
|
-
return pprint.pformat(self.model_dump(by_alias=True))
|
|
43
|
-
|
|
44
|
-
def to_json(self) -> str:
|
|
45
|
-
"""Returns the JSON representation of the model using alias"""
|
|
46
|
-
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
47
|
-
return json.dumps(self.to_dict())
|
|
48
|
-
|
|
49
|
-
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
51
|
-
"""Create an instance of V1BatchGetWorkflowEdgesResponse from a JSON string"""
|
|
52
|
-
return cls.from_dict(json.loads(json_str))
|
|
53
|
-
|
|
54
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
-
"""Return the dictionary representation of the model using alias.
|
|
56
|
-
|
|
57
|
-
This has the following differences from calling pydantic's
|
|
58
|
-
`self.model_dump(by_alias=True)`:
|
|
59
|
-
|
|
60
|
-
* `None` is only added to the output dict for nullable fields that
|
|
61
|
-
were set at model initialization. Other fields with value `None`
|
|
62
|
-
are ignored.
|
|
63
|
-
"""
|
|
64
|
-
excluded_fields: Set[str] = set([
|
|
65
|
-
])
|
|
66
|
-
|
|
67
|
-
_dict = self.model_dump(
|
|
68
|
-
by_alias=True,
|
|
69
|
-
exclude=excluded_fields,
|
|
70
|
-
exclude_none=True,
|
|
71
|
-
)
|
|
72
|
-
# override the default output from pydantic by calling `to_dict()` of each item in edges (list)
|
|
73
|
-
_items = []
|
|
74
|
-
if self.edges:
|
|
75
|
-
for _item in self.edges:
|
|
76
|
-
if _item:
|
|
77
|
-
_items.append(_item.to_dict())
|
|
78
|
-
_dict['edges'] = _items
|
|
79
|
-
return _dict
|
|
80
|
-
|
|
81
|
-
@classmethod
|
|
82
|
-
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
83
|
-
"""Create an instance of V1BatchGetWorkflowEdgesResponse from a dict"""
|
|
84
|
-
if obj is None:
|
|
85
|
-
return None
|
|
86
|
-
|
|
87
|
-
if not isinstance(obj, dict):
|
|
88
|
-
return cls.model_validate(obj)
|
|
89
|
-
|
|
90
|
-
_obj = cls.model_validate({
|
|
91
|
-
"edges": [V1WorkflowEdge.from_dict(_item) for _item in obj["edges"]] if obj.get("edges") is not None else None
|
|
92
|
-
})
|
|
93
|
-
return _obj
|
|
94
|
-
|
|
95
|
-
|