eval-studio-client 1.2.0a1__py3-none-any.whl → 1.2.0a2__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.
Files changed (83) hide show
  1. eval_studio_client/api/__init__.py +20 -0
  2. eval_studio_client/api/api/__init__.py +1 -0
  3. eval_studio_client/api/api/dashboard_service_api.py +1134 -73
  4. eval_studio_client/api/api/info_service_api.py +240 -0
  5. eval_studio_client/api/api/test_service_api.py +1233 -172
  6. eval_studio_client/api/api/workflow_result_service_api.py +1057 -0
  7. eval_studio_client/api/api/workflow_service_api.py +1420 -101
  8. eval_studio_client/api/docs/DashboardServiceApi.md +272 -0
  9. eval_studio_client/api/docs/InfoServiceApi.md +63 -0
  10. eval_studio_client/api/docs/TestServiceApi.md +268 -0
  11. eval_studio_client/api/docs/TestServiceGrantTestAccessRequest.md +30 -0
  12. eval_studio_client/api/docs/TestServiceRevokeTestAccessRequest.md +30 -0
  13. eval_studio_client/api/docs/V1FindWorkflowsByCollectionIDResponse.md +29 -0
  14. eval_studio_client/api/docs/V1GetStatsResponse.md +29 -0
  15. eval_studio_client/api/docs/V1GetWorkflowResultCorpusPatchResponse.md +29 -0
  16. eval_studio_client/api/docs/V1GetWorkflowResultReportResponse.md +29 -0
  17. eval_studio_client/api/docs/V1GetWorkflowResultSummaryResponse.md +32 -0
  18. eval_studio_client/api/docs/V1GetWorkflowResultSystemPromptPatchResponse.md +29 -0
  19. eval_studio_client/api/docs/V1Info.md +1 -0
  20. eval_studio_client/api/docs/V1ListDashboardAccessResponse.md +29 -0
  21. eval_studio_client/api/docs/V1ListDashboardsSharedWithMeResponse.md +29 -0
  22. eval_studio_client/api/docs/V1ListTestAccessResponse.md +29 -0
  23. eval_studio_client/api/docs/V1ListTestsSharedWithMeResponse.md +29 -0
  24. eval_studio_client/api/docs/V1ListWorkflowAccessResponse.md +29 -0
  25. eval_studio_client/api/docs/V1ListWorkflowsSharedWithMeResponse.md +29 -0
  26. eval_studio_client/api/docs/V1Role.md +12 -0
  27. eval_studio_client/api/docs/V1RoleBinding.md +32 -0
  28. eval_studio_client/api/docs/V1Stats.md +31 -0
  29. eval_studio_client/api/docs/V1WorkflowResultArtifactType.md +12 -0
  30. eval_studio_client/api/docs/WorkflowResultServiceApi.md +280 -0
  31. eval_studio_client/api/docs/WorkflowServiceApi.md +345 -5
  32. eval_studio_client/api/docs/WorkflowServiceRevokeWorkflowAccessRequest.md +30 -0
  33. eval_studio_client/api/models/__init__.py +19 -0
  34. eval_studio_client/api/models/test_service_grant_test_access_request.py +90 -0
  35. eval_studio_client/api/models/test_service_revoke_test_access_request.py +90 -0
  36. eval_studio_client/api/models/v1_find_workflows_by_collection_id_response.py +95 -0
  37. eval_studio_client/api/models/v1_get_stats_response.py +91 -0
  38. eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +87 -0
  39. eval_studio_client/api/models/v1_get_workflow_result_report_response.py +87 -0
  40. eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +94 -0
  41. eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +87 -0
  42. eval_studio_client/api/models/v1_info.py +4 -2
  43. eval_studio_client/api/models/v1_list_dashboard_access_response.py +95 -0
  44. eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +95 -0
  45. eval_studio_client/api/models/v1_list_test_access_response.py +95 -0
  46. eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +95 -0
  47. eval_studio_client/api/models/v1_list_workflow_access_response.py +95 -0
  48. eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +95 -0
  49. eval_studio_client/api/models/v1_role.py +38 -0
  50. eval_studio_client/api/models/v1_role_binding.py +92 -0
  51. eval_studio_client/api/models/v1_stats.py +99 -0
  52. eval_studio_client/api/models/v1_workflow_result_artifact_type.py +40 -0
  53. eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +90 -0
  54. eval_studio_client/api/test/test_dashboard_service_api.py +28 -0
  55. eval_studio_client/api/test/test_info_service_api.py +6 -0
  56. eval_studio_client/api/test/test_test_service_api.py +24 -0
  57. eval_studio_client/api/test/test_test_service_grant_test_access_request.py +52 -0
  58. eval_studio_client/api/test/test_test_service_revoke_test_access_request.py +52 -0
  59. eval_studio_client/api/test/test_v1_find_workflows_by_collection_id_response.py +95 -0
  60. eval_studio_client/api/test/test_v1_get_info_response.py +2 -1
  61. eval_studio_client/api/test/test_v1_get_stats_response.py +53 -0
  62. eval_studio_client/api/test/test_v1_get_workflow_result_corpus_patch_response.py +51 -0
  63. eval_studio_client/api/test/test_v1_get_workflow_result_report_response.py +51 -0
  64. eval_studio_client/api/test/test_v1_get_workflow_result_summary_response.py +58 -0
  65. eval_studio_client/api/test/test_v1_get_workflow_result_system_prompt_patch_response.py +51 -0
  66. eval_studio_client/api/test/test_v1_info.py +2 -1
  67. eval_studio_client/api/test/test_v1_list_dashboard_access_response.py +56 -0
  68. eval_studio_client/api/test/test_v1_list_dashboards_shared_with_me_response.py +69 -0
  69. eval_studio_client/api/test/test_v1_list_test_access_response.py +56 -0
  70. eval_studio_client/api/test/test_v1_list_tests_shared_with_me_response.py +70 -0
  71. eval_studio_client/api/test/test_v1_list_workflow_access_response.py +56 -0
  72. eval_studio_client/api/test/test_v1_list_workflows_shared_with_me_response.py +95 -0
  73. eval_studio_client/api/test/test_v1_role.py +33 -0
  74. eval_studio_client/api/test/test_v1_role_binding.py +53 -0
  75. eval_studio_client/api/test/test_v1_stats.py +52 -0
  76. eval_studio_client/api/test/test_v1_workflow_result_artifact_type.py +33 -0
  77. eval_studio_client/api/test/test_workflow_result_service_api.py +59 -0
  78. eval_studio_client/api/test/test_workflow_service_api.py +35 -0
  79. eval_studio_client/api/test/test_workflow_service_revoke_workflow_access_request.py +52 -0
  80. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +905 -16
  81. {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a2.dist-info}/METADATA +2 -1
  82. {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a2.dist-info}/RECORD +83 -23
  83. {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,30 @@
1
+ # WorkflowServiceRevokeWorkflowAccessRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subject** | **str** | Required. The subject to revoke access from. | [optional]
9
+ **role** | [**V1Role**](V1Role.md) | | [optional]
10
+
11
+ ## Example
12
+
13
+ ```python
14
+ from eval_studio_client.api.models.workflow_service_revoke_workflow_access_request import WorkflowServiceRevokeWorkflowAccessRequest
15
+
16
+ # TODO update the JSON string below
17
+ json = "{}"
18
+ # create an instance of WorkflowServiceRevokeWorkflowAccessRequest from a JSON string
19
+ workflow_service_revoke_workflow_access_request_instance = WorkflowServiceRevokeWorkflowAccessRequest.from_json(json)
20
+ # print the JSON string representation of the object
21
+ print(WorkflowServiceRevokeWorkflowAccessRequest.to_json())
22
+
23
+ # convert the object into a dict
24
+ workflow_service_revoke_workflow_access_request_dict = workflow_service_revoke_workflow_access_request_instance.to_dict()
25
+ # create an instance of WorkflowServiceRevokeWorkflowAccessRequest from a dict
26
+ workflow_service_revoke_workflow_access_request_from_dict = WorkflowServiceRevokeWorkflowAccessRequest.from_dict(workflow_service_revoke_workflow_access_request_dict)
27
+ ```
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29
+
30
+
@@ -33,10 +33,12 @@ from eval_studio_client.api.models.rpc_status import RpcStatus
33
33
  from eval_studio_client.api.models.test_case_service_batch_delete_test_cases_request import TestCaseServiceBatchDeleteTestCasesRequest
34
34
  from eval_studio_client.api.models.test_service_clone_test_request import TestServiceCloneTestRequest
35
35
  from eval_studio_client.api.models.test_service_generate_test_cases_request import TestServiceGenerateTestCasesRequest
36
+ from eval_studio_client.api.models.test_service_grant_test_access_request import TestServiceGrantTestAccessRequest
36
37
  from eval_studio_client.api.models.test_service_import_test_cases_from_library_request import TestServiceImportTestCasesFromLibraryRequest
37
38
  from eval_studio_client.api.models.test_service_list_test_case_library_items_request import TestServiceListTestCaseLibraryItemsRequest
38
39
  from eval_studio_client.api.models.test_service_perturb_test_in_place_request import TestServicePerturbTestInPlaceRequest
39
40
  from eval_studio_client.api.models.test_service_perturb_test_request import TestServicePerturbTestRequest
41
+ from eval_studio_client.api.models.test_service_revoke_test_access_request import TestServiceRevokeTestAccessRequest
40
42
  from eval_studio_client.api.models.v1_abort_operation_response import V1AbortOperationResponse
41
43
  from eval_studio_client.api.models.v1_batch_create_leaderboards_request import V1BatchCreateLeaderboardsRequest
42
44
  from eval_studio_client.api.models.v1_batch_create_leaderboards_response import V1BatchCreateLeaderboardsResponse
@@ -111,6 +113,7 @@ from eval_studio_client.api.models.v1_evaluator_view import V1EvaluatorView
111
113
  from eval_studio_client.api.models.v1_finalize_operation_response import V1FinalizeOperationResponse
112
114
  from eval_studio_client.api.models.v1_find_all_test_cases_by_id_response import V1FindAllTestCasesByIDResponse
113
115
  from eval_studio_client.api.models.v1_find_test_lab_response import V1FindTestLabResponse
116
+ from eval_studio_client.api.models.v1_find_workflows_by_collection_id_response import V1FindWorkflowsByCollectionIDResponse
114
117
  from eval_studio_client.api.models.v1_generate_test_cases_response import V1GenerateTestCasesResponse
115
118
  from eval_studio_client.api.models.v1_get_dashboard_response import V1GetDashboardResponse
116
119
  from eval_studio_client.api.models.v1_get_document_response import V1GetDocumentResponse
@@ -123,12 +126,17 @@ from eval_studio_client.api.models.v1_get_model_response import V1GetModelRespon
123
126
  from eval_studio_client.api.models.v1_get_operation_progress_by_parent_response import V1GetOperationProgressByParentResponse
124
127
  from eval_studio_client.api.models.v1_get_operation_response import V1GetOperationResponse
125
128
  from eval_studio_client.api.models.v1_get_perturbator_response import V1GetPerturbatorResponse
129
+ from eval_studio_client.api.models.v1_get_stats_response import V1GetStatsResponse
126
130
  from eval_studio_client.api.models.v1_get_test_case_response import V1GetTestCaseResponse
127
131
  from eval_studio_client.api.models.v1_get_test_class_response import V1GetTestClassResponse
128
132
  from eval_studio_client.api.models.v1_get_test_response import V1GetTestResponse
129
133
  from eval_studio_client.api.models.v1_get_workflow_node_prerequisites_response import V1GetWorkflowNodePrerequisitesResponse
130
134
  from eval_studio_client.api.models.v1_get_workflow_node_response import V1GetWorkflowNodeResponse
131
135
  from eval_studio_client.api.models.v1_get_workflow_response import V1GetWorkflowResponse
136
+ from eval_studio_client.api.models.v1_get_workflow_result_corpus_patch_response import V1GetWorkflowResultCorpusPatchResponse
137
+ from eval_studio_client.api.models.v1_get_workflow_result_report_response import V1GetWorkflowResultReportResponse
138
+ from eval_studio_client.api.models.v1_get_workflow_result_summary_response import V1GetWorkflowResultSummaryResponse
139
+ from eval_studio_client.api.models.v1_get_workflow_result_system_prompt_patch_response import V1GetWorkflowResultSystemPromptPatchResponse
132
140
  from eval_studio_client.api.models.v1_import_evaluation_request import V1ImportEvaluationRequest
133
141
  from eval_studio_client.api.models.v1_import_leaderboard_request import V1ImportLeaderboardRequest
134
142
  from eval_studio_client.api.models.v1_import_leaderboard_response import V1ImportLeaderboardResponse
@@ -153,7 +161,9 @@ from eval_studio_client.api.models.v1_leaderboard_status import V1LeaderboardSta
153
161
  from eval_studio_client.api.models.v1_leaderboard_type import V1LeaderboardType
154
162
  from eval_studio_client.api.models.v1_leaderboard_view import V1LeaderboardView
155
163
  from eval_studio_client.api.models.v1_list_base_models_response import V1ListBaseModelsResponse
164
+ from eval_studio_client.api.models.v1_list_dashboard_access_response import V1ListDashboardAccessResponse
156
165
  from eval_studio_client.api.models.v1_list_dashboards_response import V1ListDashboardsResponse
166
+ from eval_studio_client.api.models.v1_list_dashboards_shared_with_me_response import V1ListDashboardsSharedWithMeResponse
157
167
  from eval_studio_client.api.models.v1_list_documents_response import V1ListDocumentsResponse
158
168
  from eval_studio_client.api.models.v1_list_evaluators_response import V1ListEvaluatorsResponse
159
169
  from eval_studio_client.api.models.v1_list_llm_models_response import V1ListLLMModelsResponse
@@ -168,13 +178,17 @@ from eval_studio_client.api.models.v1_list_operations_response import V1ListOper
168
178
  from eval_studio_client.api.models.v1_list_perturbators_response import V1ListPerturbatorsResponse
169
179
  from eval_studio_client.api.models.v1_list_prompt_library_items_response import V1ListPromptLibraryItemsResponse
170
180
  from eval_studio_client.api.models.v1_list_rag_collections_response import V1ListRAGCollectionsResponse
181
+ from eval_studio_client.api.models.v1_list_test_access_response import V1ListTestAccessResponse
171
182
  from eval_studio_client.api.models.v1_list_test_case_library_items_response import V1ListTestCaseLibraryItemsResponse
172
183
  from eval_studio_client.api.models.v1_list_test_case_relationships_response import V1ListTestCaseRelationshipsResponse
173
184
  from eval_studio_client.api.models.v1_list_test_cases_response import V1ListTestCasesResponse
174
185
  from eval_studio_client.api.models.v1_list_test_classes_response import V1ListTestClassesResponse
175
186
  from eval_studio_client.api.models.v1_list_tests_response import V1ListTestsResponse
187
+ from eval_studio_client.api.models.v1_list_tests_shared_with_me_response import V1ListTestsSharedWithMeResponse
188
+ from eval_studio_client.api.models.v1_list_workflow_access_response import V1ListWorkflowAccessResponse
176
189
  from eval_studio_client.api.models.v1_list_workflow_dependencies_response import V1ListWorkflowDependenciesResponse
177
190
  from eval_studio_client.api.models.v1_list_workflows_response import V1ListWorkflowsResponse
191
+ from eval_studio_client.api.models.v1_list_workflows_shared_with_me_response import V1ListWorkflowsSharedWithMeResponse
178
192
  from eval_studio_client.api.models.v1_metric_score import V1MetricScore
179
193
  from eval_studio_client.api.models.v1_metric_scores import V1MetricScores
180
194
  from eval_studio_client.api.models.v1_model import V1Model
@@ -192,6 +206,9 @@ from eval_studio_client.api.models.v1_prompt_library_item import V1PromptLibrary
192
206
  from eval_studio_client.api.models.v1_repeated_context import V1RepeatedContext
193
207
  from eval_studio_client.api.models.v1_repeated_string import V1RepeatedString
194
208
  from eval_studio_client.api.models.v1_reset_workflow_node_response import V1ResetWorkflowNodeResponse
209
+ from eval_studio_client.api.models.v1_role import V1Role
210
+ from eval_studio_client.api.models.v1_role_binding import V1RoleBinding
211
+ from eval_studio_client.api.models.v1_stats import V1Stats
195
212
  from eval_studio_client.api.models.v1_test import V1Test
196
213
  from eval_studio_client.api.models.v1_test_case import V1TestCase
197
214
  from eval_studio_client.api.models.v1_test_case_relationship import V1TestCaseRelationship
@@ -223,5 +240,7 @@ from eval_studio_client.api.models.v1_workflow_node_result_status import V1Workf
223
240
  from eval_studio_client.api.models.v1_workflow_node_status import V1WorkflowNodeStatus
224
241
  from eval_studio_client.api.models.v1_workflow_node_type import V1WorkflowNodeType
225
242
  from eval_studio_client.api.models.v1_workflow_node_view import V1WorkflowNodeView
243
+ from eval_studio_client.api.models.v1_workflow_result_artifact_type import V1WorkflowResultArtifactType
226
244
  from eval_studio_client.api.models.v1_workflow_type import V1WorkflowType
227
245
  from eval_studio_client.api.models.workflow_service_clone_workflow_request import WorkflowServiceCloneWorkflowRequest
246
+ from eval_studio_client.api.models.workflow_service_revoke_workflow_access_request import WorkflowServiceRevokeWorkflowAccessRequest
@@ -0,0 +1,90 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.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 eval_studio_client.api.models.v1_role import V1Role
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class TestServiceGrantTestAccessRequest(BaseModel):
27
+ """
28
+ TestServiceGrantTestAccessRequest
29
+ """ # noqa: E501
30
+ subject: Optional[StrictStr] = Field(default=None, description="Required. The subject to grant access to.")
31
+ role: Optional[V1Role] = None
32
+ __properties: ClassVar[List[str]] = ["subject", "role"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of TestServiceGrantTestAccessRequest from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ ])
67
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ return _dict
74
+
75
+ @classmethod
76
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
+ """Create an instance of TestServiceGrantTestAccessRequest from a dict"""
78
+ if obj is None:
79
+ return None
80
+
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
83
+
84
+ _obj = cls.model_validate({
85
+ "subject": obj.get("subject"),
86
+ "role": obj.get("role")
87
+ })
88
+ return _obj
89
+
90
+
@@ -0,0 +1,90 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.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 eval_studio_client.api.models.v1_role import V1Role
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class TestServiceRevokeTestAccessRequest(BaseModel):
27
+ """
28
+ TestServiceRevokeTestAccessRequest
29
+ """ # noqa: E501
30
+ subject: Optional[StrictStr] = Field(default=None, description="Required. The subject to revoke access to.")
31
+ role: Optional[V1Role] = None
32
+ __properties: ClassVar[List[str]] = ["subject", "role"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of TestServiceRevokeTestAccessRequest from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ ])
67
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ return _dict
74
+
75
+ @classmethod
76
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
+ """Create an instance of TestServiceRevokeTestAccessRequest from a dict"""
78
+ if obj is None:
79
+ return None
80
+
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
83
+
84
+ _obj = cls.model_validate({
85
+ "subject": obj.get("subject"),
86
+ "role": obj.get("role")
87
+ })
88
+ return _obj
89
+
90
+
@@ -0,0 +1,95 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.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 V1FindWorkflowsByCollectionIDResponse(BaseModel):
27
+ """
28
+ V1FindWorkflowsByCollectionIDResponse
29
+ """ # noqa: E501
30
+ workflows: Optional[List[V1Workflow]] = Field(default=None, description="The Workflows found.")
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 V1FindWorkflowsByCollectionIDResponse 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 V1FindWorkflowsByCollectionIDResponse 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
+
@@ -0,0 +1,91 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.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
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from eval_studio_client.api.models.v1_stats import V1Stats
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class V1GetStatsResponse(BaseModel):
27
+ """
28
+ V1GetStatsResponse
29
+ """ # noqa: E501
30
+ stats: Optional[V1Stats] = None
31
+ __properties: ClassVar[List[str]] = ["stats"]
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 V1GetStatsResponse 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 stats
73
+ if self.stats:
74
+ _dict['stats'] = self.stats.to_dict()
75
+ return _dict
76
+
77
+ @classmethod
78
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
79
+ """Create an instance of V1GetStatsResponse from a dict"""
80
+ if obj is None:
81
+ return None
82
+
83
+ if not isinstance(obj, dict):
84
+ return cls.model_validate(obj)
85
+
86
+ _obj = cls.model_validate({
87
+ "stats": V1Stats.from_dict(obj["stats"]) if obj.get("stats") is not None else None
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,87 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.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 V1GetWorkflowResultCorpusPatchResponse(BaseModel):
26
+ """
27
+ V1GetWorkflowResultCorpusPatchResponse
28
+ """ # noqa: E501
29
+ patch_html: Optional[StrictStr] = Field(default=None, description="The corpus patch workflow result content as a HTML string.", alias="patchHtml")
30
+ __properties: ClassVar[List[str]] = ["patchHtml"]
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 V1GetWorkflowResultCorpusPatchResponse 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 V1GetWorkflowResultCorpusPatchResponse 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
+ "patchHtml": obj.get("patchHtml")
84
+ })
85
+ return _obj
86
+
87
+
@@ -0,0 +1,87 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ ai/h2o/eval_studio/v1/insight.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 V1GetWorkflowResultReportResponse(BaseModel):
26
+ """
27
+ V1GetWorkflowResultReportResponse
28
+ """ # noqa: E501
29
+ report_html: Optional[StrictStr] = Field(default=None, description="The report workflow result content as a HTML string.", alias="reportHtml")
30
+ __properties: ClassVar[List[str]] = ["reportHtml"]
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 V1GetWorkflowResultReportResponse 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 V1GetWorkflowResultReportResponse 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
+ "reportHtml": obj.get("reportHtml")
84
+ })
85
+ return _obj
86
+
87
+