eval-studio-client 1.1.6a5__py3-none-any.whl → 1.2.0__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 +21 -0
- eval_studio_client/api/api/__init__.py +1 -0
- eval_studio_client/api/api/dashboard_service_api.py +1134 -73
- eval_studio_client/api/api/info_service_api.py +240 -0
- eval_studio_client/api/api/test_service_api.py +1233 -172
- eval_studio_client/api/api/workflow_result_service_api.py +1075 -0
- eval_studio_client/api/api/workflow_service_api.py +1109 -48
- eval_studio_client/api/docs/DashboardServiceApi.md +272 -0
- eval_studio_client/api/docs/InfoServiceApi.md +63 -0
- eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +1 -1
- eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +2 -0
- eval_studio_client/api/docs/TestServiceApi.md +268 -0
- eval_studio_client/api/docs/TestServiceGrantTestAccessRequest.md +30 -0
- eval_studio_client/api/docs/TestServiceRevokeTestAccessRequest.md +30 -0
- eval_studio_client/api/docs/V1CreatePerturbationResponse.md +1 -1
- eval_studio_client/api/docs/V1GetStatsResponse.md +29 -0
- eval_studio_client/api/docs/V1GetWorkflowResultCorpusPatchResponse.md +29 -0
- eval_studio_client/api/docs/V1GetWorkflowResultReportResponse.md +30 -0
- eval_studio_client/api/docs/V1GetWorkflowResultSummaryResponse.md +32 -0
- eval_studio_client/api/docs/V1GetWorkflowResultSystemPromptPatchResponse.md +29 -0
- eval_studio_client/api/docs/V1Info.md +2 -0
- eval_studio_client/api/docs/V1ListDashboardAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListDashboardsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListTestsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1ListWorkflowAccessResponse.md +29 -0
- eval_studio_client/api/docs/V1ListWorkflowsSharedWithMeResponse.md +29 -0
- eval_studio_client/api/docs/V1Role.md +12 -0
- eval_studio_client/api/docs/V1RoleBinding.md +32 -0
- eval_studio_client/api/docs/V1Stats.md +32 -0
- eval_studio_client/api/docs/V1WorkflowNode.md +2 -0
- eval_studio_client/api/docs/V1WorkflowNodeResultStatus.md +12 -0
- eval_studio_client/api/docs/V1WorkflowResultArtifactType.md +12 -0
- eval_studio_client/api/docs/V1WorkflowResultReportFormat.md +11 -0
- eval_studio_client/api/docs/WorkflowResultServiceApi.md +282 -0
- eval_studio_client/api/docs/WorkflowServiceApi.md +272 -0
- eval_studio_client/api/docs/WorkflowServiceRevokeWorkflowAccessRequest.md +30 -0
- eval_studio_client/api/models/__init__.py +20 -0
- eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +1 -1
- eval_studio_client/api/models/required_the_updated_workflow_node.py +10 -3
- eval_studio_client/api/models/test_service_grant_test_access_request.py +90 -0
- eval_studio_client/api/models/test_service_revoke_test_access_request.py +90 -0
- eval_studio_client/api/models/v1_create_perturbation_response.py +1 -1
- eval_studio_client/api/models/v1_get_stats_response.py +91 -0
- eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +87 -0
- eval_studio_client/api/models/v1_get_workflow_result_report_response.py +89 -0
- eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +94 -0
- eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +87 -0
- eval_studio_client/api/models/v1_info.py +6 -2
- eval_studio_client/api/models/v1_list_dashboard_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_list_test_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_list_workflow_access_response.py +95 -0
- eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +95 -0
- eval_studio_client/api/models/v1_role.py +38 -0
- eval_studio_client/api/models/v1_role_binding.py +92 -0
- eval_studio_client/api/models/v1_stats.py +106 -0
- eval_studio_client/api/models/v1_workflow_node.py +10 -3
- eval_studio_client/api/models/v1_workflow_node_result_status.py +40 -0
- eval_studio_client/api/models/v1_workflow_node_type.py +1 -0
- eval_studio_client/api/models/v1_workflow_result_artifact_type.py +40 -0
- eval_studio_client/api/models/v1_workflow_result_report_format.py +37 -0
- eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +90 -0
- eval_studio_client/api/test/test_dashboard_service_api.py +28 -0
- eval_studio_client/api/test/test_info_service_api.py +6 -0
- eval_studio_client/api/test/test_required_the_updated_workflow_node.py +3 -1
- eval_studio_client/api/test/test_test_service_api.py +24 -0
- eval_studio_client/api/test/test_test_service_grant_test_access_request.py +52 -0
- eval_studio_client/api/test/test_test_service_revoke_test_access_request.py +52 -0
- eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +3 -1
- eval_studio_client/api/test/test_v1_create_workflow_node_response.py +3 -1
- eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +3 -1
- eval_studio_client/api/test/test_v1_get_info_response.py +3 -1
- eval_studio_client/api/test/test_v1_get_stats_response.py +54 -0
- eval_studio_client/api/test/test_v1_get_workflow_node_response.py +3 -1
- eval_studio_client/api/test/test_v1_get_workflow_result_corpus_patch_response.py +51 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_report_response.py +54 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_summary_response.py +58 -0
- eval_studio_client/api/test/test_v1_get_workflow_result_system_prompt_patch_response.py +51 -0
- eval_studio_client/api/test/test_v1_info.py +3 -1
- eval_studio_client/api/test/test_v1_init_workflow_node_response.py +3 -1
- eval_studio_client/api/test/test_v1_list_dashboard_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_dashboards_shared_with_me_response.py +69 -0
- eval_studio_client/api/test/test_v1_list_test_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_tests_shared_with_me_response.py +70 -0
- eval_studio_client/api/test/test_v1_list_workflow_access_response.py +56 -0
- eval_studio_client/api/test/test_v1_list_workflow_dependencies_response.py +3 -1
- eval_studio_client/api/test/test_v1_list_workflows_shared_with_me_response.py +95 -0
- eval_studio_client/api/test/test_v1_reset_workflow_node_response.py +3 -1
- eval_studio_client/api/test/test_v1_role.py +33 -0
- eval_studio_client/api/test/test_v1_role_binding.py +53 -0
- eval_studio_client/api/test/test_v1_stats.py +53 -0
- eval_studio_client/api/test/test_v1_update_workflow_node_response.py +3 -1
- eval_studio_client/api/test/test_v1_workflow_node.py +3 -1
- eval_studio_client/api/test/test_v1_workflow_node_result_status.py +33 -0
- eval_studio_client/api/test/test_v1_workflow_result_artifact_type.py +33 -0
- eval_studio_client/api/test/test_v1_workflow_result_report_format.py +33 -0
- eval_studio_client/api/test/test_workflow_result_service_api.py +59 -0
- eval_studio_client/api/test/test_workflow_service_api.py +28 -0
- eval_studio_client/api/test/test_workflow_service_revoke_workflow_access_request.py +52 -0
- eval_studio_client/gen/openapiv2/eval_studio.swagger.json +921 -7
- eval_studio_client/tests.py +3 -3
- {eval_studio_client-1.1.6a5.dist-info → eval_studio_client-1.2.0.dist-info}/METADATA +1 -1
- {eval_studio_client-1.1.6a5.dist-info → eval_studio_client-1.2.0.dist-info}/RECORD +106 -43
- {eval_studio_client-1.1.6a5.dist-info → eval_studio_client-1.2.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
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 json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class V1WorkflowNodeResultStatus(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
WorkflowNodeResultStatus represents the result status of the finished computation of the node. - WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED: Unspecified status. - WORKFLOW_NODE_RESULT_STATUS_NONE: The process has a no result yet (no computation was done). - WORKFLOW_NODE_RESULT_STATUS_SUCCESS: The process succeeded with a valid computation. - WORKFLOW_NODE_RESULT_STATUS_WARNING: The process ends up with a result and warning. - WORKFLOW_NODE_RESULT_STATUS_ERROR: The process failed and no result was produced.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED = 'WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED'
|
|
30
|
+
WORKFLOW_NODE_RESULT_STATUS_NONE = 'WORKFLOW_NODE_RESULT_STATUS_NONE'
|
|
31
|
+
WORKFLOW_NODE_RESULT_STATUS_SUCCESS = 'WORKFLOW_NODE_RESULT_STATUS_SUCCESS'
|
|
32
|
+
WORKFLOW_NODE_RESULT_STATUS_WARNING = 'WORKFLOW_NODE_RESULT_STATUS_WARNING'
|
|
33
|
+
WORKFLOW_NODE_RESULT_STATUS_ERROR = 'WORKFLOW_NODE_RESULT_STATUS_ERROR'
|
|
34
|
+
|
|
35
|
+
@classmethod
|
|
36
|
+
def from_json(cls, json_str: str) -> Self:
|
|
37
|
+
"""Create an instance of V1WorkflowNodeResultStatus from a JSON string"""
|
|
38
|
+
return cls(json.loads(json_str))
|
|
39
|
+
|
|
40
|
+
|
|
@@ -35,6 +35,7 @@ class V1WorkflowNodeType(str, Enum):
|
|
|
35
35
|
WORKFLOW_NODE_TYPE_MARGINAL_ANALYSIS = 'WORKFLOW_NODE_TYPE_MARGINAL_ANALYSIS'
|
|
36
36
|
WORKFLOW_NODE_TYPE_VALIDATION = 'WORKFLOW_NODE_TYPE_VALIDATION'
|
|
37
37
|
WORKFLOW_NODE_TYPE_ADVERSARIAL_INPUTS = 'WORKFLOW_NODE_TYPE_ADVERSARIAL_INPUTS'
|
|
38
|
+
WORKFLOW_NODE_TYPE_FAILURE_CLUSTERING = 'WORKFLOW_NODE_TYPE_FAILURE_CLUSTERING'
|
|
38
39
|
|
|
39
40
|
@classmethod
|
|
40
41
|
def from_json(cls, json_str: str) -> Self:
|
|
@@ -0,0 +1,40 @@
|
|
|
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 json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class V1WorkflowResultArtifactType(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
WorkflowResultArtifactType enum representing the types of artifacts that can be produced by a Workflow result.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
WORKFLOW_RESULT_ARTIFACT_TYPE_UNSPECIFIED = 'WORKFLOW_RESULT_ARTIFACT_TYPE_UNSPECIFIED'
|
|
30
|
+
WORKFLOW_RESULT_ARTIFACT_TYPE_REPORT = 'WORKFLOW_RESULT_ARTIFACT_TYPE_REPORT'
|
|
31
|
+
WORKFLOW_RESULT_ARTIFACT_TYPE_CORPUS_PATCH = 'WORKFLOW_RESULT_ARTIFACT_TYPE_CORPUS_PATCH'
|
|
32
|
+
WORKFLOW_RESULT_ARTIFACT_TYPE_SYSTEM_PROMPT_PATCH = 'WORKFLOW_RESULT_ARTIFACT_TYPE_SYSTEM_PROMPT_PATCH'
|
|
33
|
+
WORKFLOW_RESULT_ARTIFACT_TYPE_GUARDRAIL_CONFIG = 'WORKFLOW_RESULT_ARTIFACT_TYPE_GUARDRAIL_CONFIG'
|
|
34
|
+
|
|
35
|
+
@classmethod
|
|
36
|
+
def from_json(cls, json_str: str) -> Self:
|
|
37
|
+
"""Create an instance of V1WorkflowResultArtifactType from a JSON string"""
|
|
38
|
+
return cls(json.loads(json_str))
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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 json
|
|
17
|
+
from enum import Enum
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class V1WorkflowResultReportFormat(str, Enum):
|
|
22
|
+
"""
|
|
23
|
+
V1WorkflowResultReportFormat
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
WORKFLOW_RESULT_REPORT_FORMAT_UNSPECIFIED = 'WORKFLOW_RESULT_REPORT_FORMAT_UNSPECIFIED'
|
|
30
|
+
WORKFLOW_RESULT_REPORT_FORMAT_HTML = 'WORKFLOW_RESULT_REPORT_FORMAT_HTML'
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_json(cls, json_str: str) -> Self:
|
|
34
|
+
"""Create an instance of V1WorkflowResultReportFormat from a JSON string"""
|
|
35
|
+
return cls(json.loads(json_str))
|
|
36
|
+
|
|
37
|
+
|
|
@@ -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 WorkflowServiceRevokeWorkflowAccessRequest(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
WorkflowServiceRevokeWorkflowAccessRequest
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
subject: Optional[StrictStr] = Field(default=None, description="Required. The subject to revoke access from.")
|
|
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 WorkflowServiceRevokeWorkflowAccessRequest 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 WorkflowServiceRevokeWorkflowAccessRequest 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
|
+
|
|
@@ -56,18 +56,46 @@ class TestDashboardServiceApi(unittest.TestCase):
|
|
|
56
56
|
"""
|
|
57
57
|
pass
|
|
58
58
|
|
|
59
|
+
def test_dashboard_service_grant_dashboard_access(self) -> None:
|
|
60
|
+
"""Test case for dashboard_service_grant_dashboard_access
|
|
61
|
+
|
|
62
|
+
GrantDashboardAccess grants access to a Dashboard to a subject with a specified role.
|
|
63
|
+
"""
|
|
64
|
+
pass
|
|
65
|
+
|
|
66
|
+
def test_dashboard_service_list_dashboard_access(self) -> None:
|
|
67
|
+
"""Test case for dashboard_service_list_dashboard_access
|
|
68
|
+
|
|
69
|
+
ListDashboardAccess lists access to a Dashboard.
|
|
70
|
+
"""
|
|
71
|
+
pass
|
|
72
|
+
|
|
59
73
|
def test_dashboard_service_list_dashboards(self) -> None:
|
|
60
74
|
"""Test case for dashboard_service_list_dashboards
|
|
61
75
|
|
|
62
76
|
"""
|
|
63
77
|
pass
|
|
64
78
|
|
|
79
|
+
def test_dashboard_service_list_dashboards_shared_with_me(self) -> None:
|
|
80
|
+
"""Test case for dashboard_service_list_dashboards_shared_with_me
|
|
81
|
+
|
|
82
|
+
ListDashboardsSharedWithMe lists Dashboards shared with the authenticated user.
|
|
83
|
+
"""
|
|
84
|
+
pass
|
|
85
|
+
|
|
65
86
|
def test_dashboard_service_list_most_recent_dashboards(self) -> None:
|
|
66
87
|
"""Test case for dashboard_service_list_most_recent_dashboards
|
|
67
88
|
|
|
68
89
|
"""
|
|
69
90
|
pass
|
|
70
91
|
|
|
92
|
+
def test_dashboard_service_revoke_dashboard_access(self) -> None:
|
|
93
|
+
"""Test case for dashboard_service_revoke_dashboard_access
|
|
94
|
+
|
|
95
|
+
RevokeDashboardAccess revokes access to a Dashboard from a subject.
|
|
96
|
+
"""
|
|
97
|
+
pass
|
|
98
|
+
|
|
71
99
|
def test_dashboard_service_update_dashboard(self) -> None:
|
|
72
100
|
"""Test case for dashboard_service_update_dashboard
|
|
73
101
|
|
|
@@ -65,7 +65,9 @@ class TestRequiredTheUpdatedWorkflowNode(unittest.TestCase):
|
|
|
65
65
|
status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
|
|
66
66
|
attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
|
|
67
67
|
can_delete = True, ),
|
|
68
|
-
processed_by_operation = ''
|
|
68
|
+
processed_by_operation = '',
|
|
69
|
+
result_status = 'WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED',
|
|
70
|
+
stale = True
|
|
69
71
|
)
|
|
70
72
|
else:
|
|
71
73
|
return RequiredTheUpdatedWorkflowNode(
|
|
@@ -74,6 +74,12 @@ class TestTestServiceApi(unittest.TestCase):
|
|
|
74
74
|
"""
|
|
75
75
|
pass
|
|
76
76
|
|
|
77
|
+
def test_test_service_grant_test_access(self) -> None:
|
|
78
|
+
"""Test case for test_service_grant_test_access
|
|
79
|
+
|
|
80
|
+
"""
|
|
81
|
+
pass
|
|
82
|
+
|
|
77
83
|
def test_test_service_import_test_cases_from_library(self) -> None:
|
|
78
84
|
"""Test case for test_service_import_test_cases_from_library
|
|
79
85
|
|
|
@@ -86,6 +92,12 @@ class TestTestServiceApi(unittest.TestCase):
|
|
|
86
92
|
"""
|
|
87
93
|
pass
|
|
88
94
|
|
|
95
|
+
def test_test_service_list_test_access(self) -> None:
|
|
96
|
+
"""Test case for test_service_list_test_access
|
|
97
|
+
|
|
98
|
+
"""
|
|
99
|
+
pass
|
|
100
|
+
|
|
89
101
|
def test_test_service_list_test_case_library_items(self) -> None:
|
|
90
102
|
"""Test case for test_service_list_test_case_library_items
|
|
91
103
|
|
|
@@ -98,6 +110,12 @@ class TestTestServiceApi(unittest.TestCase):
|
|
|
98
110
|
"""
|
|
99
111
|
pass
|
|
100
112
|
|
|
113
|
+
def test_test_service_list_tests_shared_with_me(self) -> None:
|
|
114
|
+
"""Test case for test_service_list_tests_shared_with_me
|
|
115
|
+
|
|
116
|
+
"""
|
|
117
|
+
pass
|
|
118
|
+
|
|
101
119
|
def test_test_service_perturb_test(self) -> None:
|
|
102
120
|
"""Test case for test_service_perturb_test
|
|
103
121
|
|
|
@@ -110,6 +128,12 @@ class TestTestServiceApi(unittest.TestCase):
|
|
|
110
128
|
"""
|
|
111
129
|
pass
|
|
112
130
|
|
|
131
|
+
def test_test_service_revoke_test_access(self) -> None:
|
|
132
|
+
"""Test case for test_service_revoke_test_access
|
|
133
|
+
|
|
134
|
+
"""
|
|
135
|
+
pass
|
|
136
|
+
|
|
113
137
|
def test_test_service_update_test(self) -> None:
|
|
114
138
|
"""Test case for test_service_update_test
|
|
115
139
|
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.test_service_grant_test_access_request import TestServiceGrantTestAccessRequest
|
|
18
|
+
|
|
19
|
+
class TestTestServiceGrantTestAccessRequest(unittest.TestCase):
|
|
20
|
+
"""TestServiceGrantTestAccessRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> TestServiceGrantTestAccessRequest:
|
|
29
|
+
"""Test TestServiceGrantTestAccessRequest
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `TestServiceGrantTestAccessRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = TestServiceGrantTestAccessRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return TestServiceGrantTestAccessRequest(
|
|
38
|
+
subject = '',
|
|
39
|
+
role = 'ROLE_UNSPECIFIED'
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return TestServiceGrantTestAccessRequest(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testTestServiceGrantTestAccessRequest(self):
|
|
47
|
+
"""Test TestServiceGrantTestAccessRequest"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.test_service_revoke_test_access_request import TestServiceRevokeTestAccessRequest
|
|
18
|
+
|
|
19
|
+
class TestTestServiceRevokeTestAccessRequest(unittest.TestCase):
|
|
20
|
+
"""TestServiceRevokeTestAccessRequest unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> TestServiceRevokeTestAccessRequest:
|
|
29
|
+
"""Test TestServiceRevokeTestAccessRequest
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `TestServiceRevokeTestAccessRequest`
|
|
34
|
+
"""
|
|
35
|
+
model = TestServiceRevokeTestAccessRequest()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return TestServiceRevokeTestAccessRequest(
|
|
38
|
+
subject = '',
|
|
39
|
+
role = 'ROLE_UNSPECIFIED'
|
|
40
|
+
)
|
|
41
|
+
else:
|
|
42
|
+
return TestServiceRevokeTestAccessRequest(
|
|
43
|
+
)
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
def testTestServiceRevokeTestAccessRequest(self):
|
|
47
|
+
"""Test TestServiceRevokeTestAccessRequest"""
|
|
48
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
49
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
50
|
+
|
|
51
|
+
if __name__ == '__main__':
|
|
52
|
+
unittest.main()
|
|
@@ -67,7 +67,9 @@ class TestV1BatchGetWorkflowNodesResponse(unittest.TestCase):
|
|
|
67
67
|
status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
|
|
68
68
|
attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
|
|
69
69
|
can_delete = True, ),
|
|
70
|
-
processed_by_operation = '',
|
|
70
|
+
processed_by_operation = '',
|
|
71
|
+
result_status = 'WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED',
|
|
72
|
+
stale = True, )
|
|
71
73
|
]
|
|
72
74
|
)
|
|
73
75
|
else:
|
|
@@ -66,7 +66,9 @@ class TestV1CreateWorkflowNodeResponse(unittest.TestCase):
|
|
|
66
66
|
status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
|
|
67
67
|
attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
|
|
68
68
|
can_delete = True, ),
|
|
69
|
-
processed_by_operation = '',
|
|
69
|
+
processed_by_operation = '',
|
|
70
|
+
result_status = 'WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED',
|
|
71
|
+
stale = True, )
|
|
70
72
|
)
|
|
71
73
|
else:
|
|
72
74
|
return V1CreateWorkflowNodeResponse(
|
|
@@ -66,7 +66,9 @@ class TestV1DeleteWorkflowNodeResponse(unittest.TestCase):
|
|
|
66
66
|
status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
|
|
67
67
|
attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
|
|
68
68
|
can_delete = True, ),
|
|
69
|
-
processed_by_operation = '',
|
|
69
|
+
processed_by_operation = '',
|
|
70
|
+
result_status = 'WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED',
|
|
71
|
+
stale = True, )
|
|
70
72
|
)
|
|
71
73
|
else:
|
|
72
74
|
return V1DeleteWorkflowNodeResponse(
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_get_stats_response import V1GetStatsResponse
|
|
18
|
+
|
|
19
|
+
class TestV1GetStatsResponse(unittest.TestCase):
|
|
20
|
+
"""V1GetStatsResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1GetStatsResponse:
|
|
29
|
+
"""Test V1GetStatsResponse
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1GetStatsResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = V1GetStatsResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1GetStatsResponse(
|
|
38
|
+
stats = eval_studio_client.api.models.v1_stats.v1Stats(
|
|
39
|
+
topic_modeling_pending_jobs = '',
|
|
40
|
+
test_validation_pending_jobs = '',
|
|
41
|
+
failure_clustering_pending_jobs = '', )
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return V1GetStatsResponse(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testV1GetStatsResponse(self):
|
|
49
|
+
"""Test V1GetStatsResponse"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|
|
@@ -66,7 +66,9 @@ class TestV1GetWorkflowNodeResponse(unittest.TestCase):
|
|
|
66
66
|
status = 'WORKFLOW_NODE_STATUS_UNSPECIFIED',
|
|
67
67
|
attributes = eval_studio_client.api.models.v1_workflow_node_attributes.v1WorkflowNodeAttributes(
|
|
68
68
|
can_delete = True, ),
|
|
69
|
-
processed_by_operation = '',
|
|
69
|
+
processed_by_operation = '',
|
|
70
|
+
result_status = 'WORKFLOW_NODE_RESULT_STATUS_UNSPECIFIED',
|
|
71
|
+
stale = True, )
|
|
70
72
|
)
|
|
71
73
|
else:
|
|
72
74
|
return V1GetWorkflowNodeResponse(
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_get_workflow_result_corpus_patch_response import V1GetWorkflowResultCorpusPatchResponse
|
|
18
|
+
|
|
19
|
+
class TestV1GetWorkflowResultCorpusPatchResponse(unittest.TestCase):
|
|
20
|
+
"""V1GetWorkflowResultCorpusPatchResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1GetWorkflowResultCorpusPatchResponse:
|
|
29
|
+
"""Test V1GetWorkflowResultCorpusPatchResponse
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1GetWorkflowResultCorpusPatchResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = V1GetWorkflowResultCorpusPatchResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1GetWorkflowResultCorpusPatchResponse(
|
|
38
|
+
patch_html = ''
|
|
39
|
+
)
|
|
40
|
+
else:
|
|
41
|
+
return V1GetWorkflowResultCorpusPatchResponse(
|
|
42
|
+
)
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
def testV1GetWorkflowResultCorpusPatchResponse(self):
|
|
46
|
+
"""Test V1GetWorkflowResultCorpusPatchResponse"""
|
|
47
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
48
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
49
|
+
|
|
50
|
+
if __name__ == '__main__':
|
|
51
|
+
unittest.main()
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
import unittest
|
|
16
|
+
|
|
17
|
+
from eval_studio_client.api.models.v1_get_workflow_result_report_response import V1GetWorkflowResultReportResponse
|
|
18
|
+
|
|
19
|
+
class TestV1GetWorkflowResultReportResponse(unittest.TestCase):
|
|
20
|
+
"""V1GetWorkflowResultReportResponse unit test stubs"""
|
|
21
|
+
|
|
22
|
+
def setUp(self):
|
|
23
|
+
pass
|
|
24
|
+
|
|
25
|
+
def tearDown(self):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
def make_instance(self, include_optional) -> V1GetWorkflowResultReportResponse:
|
|
29
|
+
"""Test V1GetWorkflowResultReportResponse
|
|
30
|
+
include_option is a boolean, when False only required
|
|
31
|
+
params are included, when True both required and
|
|
32
|
+
optional params are included """
|
|
33
|
+
# uncomment below to create an instance of `V1GetWorkflowResultReportResponse`
|
|
34
|
+
"""
|
|
35
|
+
model = V1GetWorkflowResultReportResponse()
|
|
36
|
+
if include_optional:
|
|
37
|
+
return V1GetWorkflowResultReportResponse(
|
|
38
|
+
report_static = '',
|
|
39
|
+
report_hypertext_diff = {
|
|
40
|
+
'key' : ''
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return V1GetWorkflowResultReportResponse(
|
|
45
|
+
)
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def testV1GetWorkflowResultReportResponse(self):
|
|
49
|
+
"""Test V1GetWorkflowResultReportResponse"""
|
|
50
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
51
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
52
|
+
|
|
53
|
+
if __name__ == '__main__':
|
|
54
|
+
unittest.main()
|