eval-studio-client 1.0.0__py3-none-any.whl → 1.0.1__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 (179) hide show
  1. eval_studio_client/api/__init__.py +43 -0
  2. eval_studio_client/api/api/__init__.py +5 -0
  3. eval_studio_client/api/api/human_calibration_service_api.py +304 -0
  4. eval_studio_client/api/api/perturbator_service_api.py +268 -1
  5. eval_studio_client/api/api/prompt_library_service_api.py +669 -0
  6. eval_studio_client/api/api/test_service_api.py +568 -0
  7. eval_studio_client/api/api/workflow_edge_service_api.py +296 -0
  8. eval_studio_client/api/api/workflow_node_service_api.py +1634 -0
  9. eval_studio_client/api/api/workflow_service_api.py +1609 -0
  10. eval_studio_client/api/docs/HumanCalibrationServiceApi.md +77 -0
  11. eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +1 -0
  12. eval_studio_client/api/docs/PerturbatorServiceApi.md +33 -3
  13. eval_studio_client/api/docs/PromptGenerationServiceAutoGeneratePromptsRequest.md +2 -1
  14. eval_studio_client/api/docs/PromptLibraryServiceApi.md +155 -0
  15. eval_studio_client/api/docs/ProtobufNullValue.md +12 -0
  16. eval_studio_client/api/docs/RequiredTheTestCaseToUpdate.md +1 -0
  17. eval_studio_client/api/docs/RequiredTheUpdatedWorkflow.md +44 -0
  18. eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +44 -0
  19. eval_studio_client/api/docs/TestServiceApi.md +140 -0
  20. eval_studio_client/api/docs/TestServiceGenerateTestCasesRequest.md +1 -0
  21. eval_studio_client/api/docs/TestServiceImportTestCasesFromLibraryRequest.md +32 -0
  22. eval_studio_client/api/docs/TestServiceListTestCaseLibraryItemsRequest.md +35 -0
  23. eval_studio_client/api/docs/TestServicePerturbTestRequest.md +1 -0
  24. eval_studio_client/api/docs/V1BatchDeleteWorkflowsRequest.md +29 -0
  25. eval_studio_client/api/docs/V1BatchDeleteWorkflowsResponse.md +29 -0
  26. eval_studio_client/api/docs/V1BatchGetWorkflowEdgesResponse.md +29 -0
  27. eval_studio_client/api/docs/V1BatchGetWorkflowNodesResponse.md +29 -0
  28. eval_studio_client/api/docs/V1CreateEvaluationRequest.md +1 -0
  29. eval_studio_client/api/docs/V1CreateWorkflowResponse.md +29 -0
  30. eval_studio_client/api/docs/V1DeleteWorkflowNodeResponse.md +29 -0
  31. eval_studio_client/api/docs/V1DeleteWorkflowResponse.md +29 -0
  32. eval_studio_client/api/docs/V1EstimateThresholdRequest.md +33 -0
  33. eval_studio_client/api/docs/V1GetWorkflowNodePrerequisitesResponse.md +30 -0
  34. eval_studio_client/api/docs/V1GetWorkflowNodeResponse.md +29 -0
  35. eval_studio_client/api/docs/V1GetWorkflowResponse.md +29 -0
  36. eval_studio_client/api/docs/V1ImportEvaluationRequest.md +1 -0
  37. eval_studio_client/api/docs/V1ImportTestCasesFromLibraryResponse.md +29 -0
  38. eval_studio_client/api/docs/V1ImportTestCasesRequest.md +33 -0
  39. eval_studio_client/api/docs/V1LabeledTestCase.md +31 -0
  40. eval_studio_client/api/docs/V1ListPromptLibraryItemsResponse.md +29 -0
  41. eval_studio_client/api/docs/V1ListTestCaseLibraryItemsResponse.md +29 -0
  42. eval_studio_client/api/docs/V1ListWorkflowsResponse.md +29 -0
  43. eval_studio_client/api/docs/V1ProcessWorkflowNodeResponse.md +29 -0
  44. eval_studio_client/api/docs/V1PromptLibraryItem.md +42 -0
  45. eval_studio_client/api/docs/V1TestCase.md +1 -0
  46. eval_studio_client/api/docs/V1TestSuiteEvaluates.md +11 -0
  47. eval_studio_client/api/docs/V1UpdateWorkflowNodeResponse.md +29 -0
  48. eval_studio_client/api/docs/V1UpdateWorkflowResponse.md +29 -0
  49. eval_studio_client/api/docs/V1Workflow.md +46 -0
  50. eval_studio_client/api/docs/V1WorkflowEdge.md +40 -0
  51. eval_studio_client/api/docs/V1WorkflowEdgeType.md +12 -0
  52. eval_studio_client/api/docs/V1WorkflowNode.md +46 -0
  53. eval_studio_client/api/docs/V1WorkflowNodeArtifact.md +40 -0
  54. eval_studio_client/api/docs/V1WorkflowNodeArtifacts.md +29 -0
  55. eval_studio_client/api/docs/V1WorkflowNodeAttributes.md +30 -0
  56. eval_studio_client/api/docs/V1WorkflowNodeStatus.md +12 -0
  57. eval_studio_client/api/docs/V1WorkflowNodeType.md +12 -0
  58. eval_studio_client/api/docs/V1WorkflowNodeView.md +12 -0
  59. eval_studio_client/api/docs/V1WorkflowType.md +12 -0
  60. eval_studio_client/api/docs/WorkflowEdgeServiceApi.md +76 -0
  61. eval_studio_client/api/docs/WorkflowNodeServiceApi.md +423 -0
  62. eval_studio_client/api/docs/WorkflowServiceApi.md +417 -0
  63. eval_studio_client/api/models/__init__.py +38 -0
  64. eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +8 -2
  65. eval_studio_client/api/models/prompt_generation_service_auto_generate_prompts_request.py +5 -3
  66. eval_studio_client/api/models/protobuf_null_value.py +36 -0
  67. eval_studio_client/api/models/required_the_test_case_to_update.py +6 -2
  68. eval_studio_client/api/models/required_the_updated_workflow.py +152 -0
  69. eval_studio_client/api/models/required_the_updated_workflow_node.py +152 -0
  70. eval_studio_client/api/models/test_service_generate_test_cases_request.py +4 -2
  71. eval_studio_client/api/models/test_service_import_test_cases_from_library_request.py +93 -0
  72. eval_studio_client/api/models/test_service_list_test_case_library_items_request.py +99 -0
  73. eval_studio_client/api/models/test_service_perturb_test_request.py +4 -2
  74. eval_studio_client/api/models/v1_batch_delete_workflows_request.py +87 -0
  75. eval_studio_client/api/models/v1_batch_delete_workflows_response.py +95 -0
  76. eval_studio_client/api/models/v1_batch_get_workflow_edges_response.py +95 -0
  77. eval_studio_client/api/models/v1_batch_get_workflow_nodes_response.py +95 -0
  78. eval_studio_client/api/models/v1_create_evaluation_request.py +7 -2
  79. eval_studio_client/api/models/v1_create_workflow_response.py +91 -0
  80. eval_studio_client/api/models/v1_delete_workflow_node_response.py +91 -0
  81. eval_studio_client/api/models/v1_delete_workflow_response.py +91 -0
  82. eval_studio_client/api/models/v1_estimate_threshold_request.py +103 -0
  83. eval_studio_client/api/models/v1_get_workflow_node_prerequisites_response.py +89 -0
  84. eval_studio_client/api/models/v1_get_workflow_node_response.py +91 -0
  85. eval_studio_client/api/models/v1_get_workflow_response.py +91 -0
  86. eval_studio_client/api/models/v1_import_evaluation_request.py +7 -2
  87. eval_studio_client/api/models/v1_import_test_cases_from_library_response.py +91 -0
  88. eval_studio_client/api/models/v1_import_test_cases_request.py +95 -0
  89. eval_studio_client/api/models/v1_labeled_test_case.py +91 -0
  90. eval_studio_client/api/models/v1_list_prompt_library_items_response.py +95 -0
  91. eval_studio_client/api/models/v1_list_test_case_library_items_response.py +95 -0
  92. eval_studio_client/api/models/v1_list_workflows_response.py +95 -0
  93. eval_studio_client/api/models/v1_process_workflow_node_response.py +91 -0
  94. eval_studio_client/api/models/v1_prompt_library_item.py +129 -0
  95. eval_studio_client/api/models/v1_test_case.py +6 -2
  96. eval_studio_client/api/models/v1_test_suite_evaluates.py +39 -0
  97. eval_studio_client/api/models/v1_update_workflow_node_response.py +91 -0
  98. eval_studio_client/api/models/v1_update_workflow_response.py +91 -0
  99. eval_studio_client/api/models/v1_workflow.py +156 -0
  100. eval_studio_client/api/models/v1_workflow_edge.py +123 -0
  101. eval_studio_client/api/models/v1_workflow_edge_type.py +37 -0
  102. eval_studio_client/api/models/v1_workflow_node.py +156 -0
  103. eval_studio_client/api/models/v1_workflow_node_artifact.py +122 -0
  104. eval_studio_client/api/models/v1_workflow_node_artifacts.py +97 -0
  105. eval_studio_client/api/models/v1_workflow_node_attributes.py +87 -0
  106. eval_studio_client/api/models/v1_workflow_node_status.py +40 -0
  107. eval_studio_client/api/models/v1_workflow_node_type.py +41 -0
  108. eval_studio_client/api/models/v1_workflow_node_view.py +38 -0
  109. eval_studio_client/api/models/v1_workflow_type.py +37 -0
  110. eval_studio_client/api/test/test_human_calibration_service_api.py +38 -0
  111. eval_studio_client/api/test/test_perturbation_service_create_perturbation_request.py +20 -2
  112. eval_studio_client/api/test/test_prompt_generation_service_auto_generate_prompts_request.py +4 -1
  113. eval_studio_client/api/test/test_prompt_library_service_api.py +43 -0
  114. eval_studio_client/api/test/test_protobuf_null_value.py +33 -0
  115. eval_studio_client/api/test/test_required_the_test_case_to_update.py +4 -1
  116. eval_studio_client/api/test/test_required_the_updated_workflow.py +88 -0
  117. eval_studio_client/api/test/test_required_the_updated_workflow_node.py +80 -0
  118. eval_studio_client/api/test/test_test_service_api.py +12 -0
  119. eval_studio_client/api/test/test_test_service_generate_test_cases_request.py +4 -1
  120. eval_studio_client/api/test/test_test_service_import_test_cases_from_library_request.py +56 -0
  121. eval_studio_client/api/test/test_test_service_list_test_case_library_items_request.py +63 -0
  122. eval_studio_client/api/test/test_test_service_perturb_test_request.py +4 -1
  123. eval_studio_client/api/test/test_v1_batch_delete_test_cases_response.py +4 -1
  124. eval_studio_client/api/test/test_v1_batch_delete_workflows_request.py +53 -0
  125. eval_studio_client/api/test/test_v1_batch_delete_workflows_response.py +92 -0
  126. eval_studio_client/api/test/test_v1_batch_get_workflow_edges_response.py +64 -0
  127. eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +84 -0
  128. eval_studio_client/api/test/test_v1_create_evaluation_request.py +20 -2
  129. eval_studio_client/api/test/test_v1_create_test_case_response.py +4 -1
  130. eval_studio_client/api/test/test_v1_create_workflow_response.py +90 -0
  131. eval_studio_client/api/test/test_v1_delete_test_case_response.py +4 -1
  132. eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +82 -0
  133. eval_studio_client/api/test/test_v1_delete_workflow_response.py +90 -0
  134. eval_studio_client/api/test/test_v1_estimate_threshold_request.py +60 -0
  135. eval_studio_client/api/test/test_v1_evaluation_test.py +4 -1
  136. eval_studio_client/api/test/test_v1_find_all_test_cases_by_id_response.py +4 -1
  137. eval_studio_client/api/test/test_v1_get_test_case_response.py +4 -1
  138. eval_studio_client/api/test/test_v1_get_workflow_node_prerequisites_response.py +56 -0
  139. eval_studio_client/api/test/test_v1_get_workflow_node_response.py +82 -0
  140. eval_studio_client/api/test/test_v1_get_workflow_response.py +90 -0
  141. eval_studio_client/api/test/test_v1_import_evaluation_request.py +16 -1
  142. eval_studio_client/api/test/test_v1_import_test_cases_from_library_response.py +71 -0
  143. eval_studio_client/api/test/test_v1_import_test_cases_request.py +57 -0
  144. eval_studio_client/api/test/test_v1_labeled_test_case.py +53 -0
  145. eval_studio_client/api/test/test_v1_list_prompt_library_items_response.py +71 -0
  146. eval_studio_client/api/test/test_v1_list_test_case_library_items_response.py +71 -0
  147. eval_studio_client/api/test/test_v1_list_test_cases_response.py +4 -1
  148. eval_studio_client/api/test/test_v1_list_workflows_response.py +92 -0
  149. eval_studio_client/api/test/test_v1_process_workflow_node_response.py +71 -0
  150. eval_studio_client/api/test/test_v1_prompt_library_item.py +68 -0
  151. eval_studio_client/api/test/test_v1_test_case.py +4 -1
  152. eval_studio_client/api/test/test_v1_test_suite_evaluates.py +33 -0
  153. eval_studio_client/api/test/test_v1_update_test_case_response.py +4 -1
  154. eval_studio_client/api/test/test_v1_update_workflow_node_response.py +82 -0
  155. eval_studio_client/api/test/test_v1_update_workflow_response.py +90 -0
  156. eval_studio_client/api/test/test_v1_workflow.py +89 -0
  157. eval_studio_client/api/test/test_v1_workflow_edge.py +61 -0
  158. eval_studio_client/api/test/test_v1_workflow_edge_type.py +33 -0
  159. eval_studio_client/api/test/test_v1_workflow_node.py +81 -0
  160. eval_studio_client/api/test/test_v1_workflow_node_artifact.py +61 -0
  161. eval_studio_client/api/test/test_v1_workflow_node_artifacts.py +64 -0
  162. eval_studio_client/api/test/test_v1_workflow_node_attributes.py +51 -0
  163. eval_studio_client/api/test/test_v1_workflow_node_status.py +33 -0
  164. eval_studio_client/api/test/test_v1_workflow_node_type.py +33 -0
  165. eval_studio_client/api/test/test_v1_workflow_node_view.py +33 -0
  166. eval_studio_client/api/test/test_v1_workflow_type.py +33 -0
  167. eval_studio_client/api/test/test_workflow_edge_service_api.py +38 -0
  168. eval_studio_client/api/test/test_workflow_node_service_api.py +73 -0
  169. eval_studio_client/api/test/test_workflow_service_api.py +73 -0
  170. eval_studio_client/client.py +7 -0
  171. eval_studio_client/dashboards.py +29 -0
  172. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +2665 -794
  173. eval_studio_client/leaderboards.py +123 -0
  174. eval_studio_client/models.py +3 -42
  175. eval_studio_client/test_labs.py +49 -21
  176. eval_studio_client/tests.py +188 -1
  177. {eval_studio_client-1.0.0.dist-info → eval_studio_client-1.0.1.dist-info}/METADATA +1 -2
  178. {eval_studio_client-1.0.0.dist-info → eval_studio_client-1.0.1.dist-info}/RECORD +179 -50
  179. {eval_studio_client-1.0.0.dist-info → eval_studio_client-1.0.1.dist-info}/WHEEL +1 -1
@@ -21,6 +21,8 @@ from typing import List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from eval_studio_client.api.models.required_the_test_to_update import RequiredTheTestToUpdate
23
23
  from eval_studio_client.api.models.test_service_generate_test_cases_request import TestServiceGenerateTestCasesRequest
24
+ from eval_studio_client.api.models.test_service_import_test_cases_from_library_request import TestServiceImportTestCasesFromLibraryRequest
25
+ from eval_studio_client.api.models.test_service_list_test_case_library_items_request import TestServiceListTestCaseLibraryItemsRequest
24
26
  from eval_studio_client.api.models.test_service_perturb_test_request import TestServicePerturbTestRequest
25
27
  from eval_studio_client.api.models.v1_batch_delete_tests_request import V1BatchDeleteTestsRequest
26
28
  from eval_studio_client.api.models.v1_batch_delete_tests_response import V1BatchDeleteTestsResponse
@@ -31,7 +33,9 @@ from eval_studio_client.api.models.v1_create_test_response import V1CreateTestRe
31
33
  from eval_studio_client.api.models.v1_delete_test_response import V1DeleteTestResponse
32
34
  from eval_studio_client.api.models.v1_generate_test_cases_response import V1GenerateTestCasesResponse
33
35
  from eval_studio_client.api.models.v1_get_test_response import V1GetTestResponse
36
+ from eval_studio_client.api.models.v1_import_test_cases_from_library_response import V1ImportTestCasesFromLibraryResponse
34
37
  from eval_studio_client.api.models.v1_list_most_recent_tests_response import V1ListMostRecentTestsResponse
38
+ from eval_studio_client.api.models.v1_list_test_case_library_items_response import V1ListTestCaseLibraryItemsResponse
35
39
  from eval_studio_client.api.models.v1_list_tests_response import V1ListTestsResponse
36
40
  from eval_studio_client.api.models.v1_perturb_test_response import V1PerturbTestResponse
37
41
  from eval_studio_client.api.models.v1_test import V1Test
@@ -1920,6 +1924,288 @@ class TestServiceApi:
1920
1924
 
1921
1925
 
1922
1926
 
1927
+ @validate_call
1928
+ def test_service_import_test_cases_from_library(
1929
+ self,
1930
+ name: Annotated[str, Field(strict=True, description="Required. The Test for which to get TestCases.")],
1931
+ body: TestServiceImportTestCasesFromLibraryRequest,
1932
+ _request_timeout: Union[
1933
+ None,
1934
+ Annotated[StrictFloat, Field(gt=0)],
1935
+ Tuple[
1936
+ Annotated[StrictFloat, Field(gt=0)],
1937
+ Annotated[StrictFloat, Field(gt=0)]
1938
+ ]
1939
+ ] = None,
1940
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1941
+ _content_type: Optional[StrictStr] = None,
1942
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1943
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1944
+ ) -> V1ImportTestCasesFromLibraryResponse:
1945
+ """test_service_import_test_cases_from_library
1946
+
1947
+
1948
+ :param name: Required. The Test for which to get TestCases. (required)
1949
+ :type name: str
1950
+ :param body: (required)
1951
+ :type body: TestServiceImportTestCasesFromLibraryRequest
1952
+ :param _request_timeout: timeout setting for this request. If one
1953
+ number provided, it will be total request
1954
+ timeout. It can also be a pair (tuple) of
1955
+ (connection, read) timeouts.
1956
+ :type _request_timeout: int, tuple(int, int), optional
1957
+ :param _request_auth: set to override the auth_settings for an a single
1958
+ request; this effectively ignores the
1959
+ authentication in the spec for a single request.
1960
+ :type _request_auth: dict, optional
1961
+ :param _content_type: force content-type for the request.
1962
+ :type _content_type: str, Optional
1963
+ :param _headers: set to override the headers for a single
1964
+ request; this effectively ignores the headers
1965
+ in the spec for a single request.
1966
+ :type _headers: dict, optional
1967
+ :param _host_index: set to override the host_index for a single
1968
+ request; this effectively ignores the host_index
1969
+ in the spec for a single request.
1970
+ :type _host_index: int, optional
1971
+ :return: Returns the result object.
1972
+ """ # noqa: E501
1973
+
1974
+ _param = self._test_service_import_test_cases_from_library_serialize(
1975
+ name=name,
1976
+ body=body,
1977
+ _request_auth=_request_auth,
1978
+ _content_type=_content_type,
1979
+ _headers=_headers,
1980
+ _host_index=_host_index
1981
+ )
1982
+
1983
+ _response_types_map: Dict[str, Optional[str]] = {
1984
+ '200': "V1ImportTestCasesFromLibraryResponse",
1985
+ }
1986
+ response_data = self.api_client.call_api(
1987
+ *_param,
1988
+ _request_timeout=_request_timeout
1989
+ )
1990
+ response_data.read()
1991
+ return self.api_client.response_deserialize(
1992
+ response_data=response_data,
1993
+ response_types_map=_response_types_map,
1994
+ ).data
1995
+
1996
+
1997
+ @validate_call
1998
+ def test_service_import_test_cases_from_library_with_http_info(
1999
+ self,
2000
+ name: Annotated[str, Field(strict=True, description="Required. The Test for which to get TestCases.")],
2001
+ body: TestServiceImportTestCasesFromLibraryRequest,
2002
+ _request_timeout: Union[
2003
+ None,
2004
+ Annotated[StrictFloat, Field(gt=0)],
2005
+ Tuple[
2006
+ Annotated[StrictFloat, Field(gt=0)],
2007
+ Annotated[StrictFloat, Field(gt=0)]
2008
+ ]
2009
+ ] = None,
2010
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2011
+ _content_type: Optional[StrictStr] = None,
2012
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2013
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2014
+ ) -> ApiResponse[V1ImportTestCasesFromLibraryResponse]:
2015
+ """test_service_import_test_cases_from_library
2016
+
2017
+
2018
+ :param name: Required. The Test for which to get TestCases. (required)
2019
+ :type name: str
2020
+ :param body: (required)
2021
+ :type body: TestServiceImportTestCasesFromLibraryRequest
2022
+ :param _request_timeout: timeout setting for this request. If one
2023
+ number provided, it will be total request
2024
+ timeout. It can also be a pair (tuple) of
2025
+ (connection, read) timeouts.
2026
+ :type _request_timeout: int, tuple(int, int), optional
2027
+ :param _request_auth: set to override the auth_settings for an a single
2028
+ request; this effectively ignores the
2029
+ authentication in the spec for a single request.
2030
+ :type _request_auth: dict, optional
2031
+ :param _content_type: force content-type for the request.
2032
+ :type _content_type: str, Optional
2033
+ :param _headers: set to override the headers for a single
2034
+ request; this effectively ignores the headers
2035
+ in the spec for a single request.
2036
+ :type _headers: dict, optional
2037
+ :param _host_index: set to override the host_index for a single
2038
+ request; this effectively ignores the host_index
2039
+ in the spec for a single request.
2040
+ :type _host_index: int, optional
2041
+ :return: Returns the result object.
2042
+ """ # noqa: E501
2043
+
2044
+ _param = self._test_service_import_test_cases_from_library_serialize(
2045
+ name=name,
2046
+ body=body,
2047
+ _request_auth=_request_auth,
2048
+ _content_type=_content_type,
2049
+ _headers=_headers,
2050
+ _host_index=_host_index
2051
+ )
2052
+
2053
+ _response_types_map: Dict[str, Optional[str]] = {
2054
+ '200': "V1ImportTestCasesFromLibraryResponse",
2055
+ }
2056
+ response_data = self.api_client.call_api(
2057
+ *_param,
2058
+ _request_timeout=_request_timeout
2059
+ )
2060
+ response_data.read()
2061
+ return self.api_client.response_deserialize(
2062
+ response_data=response_data,
2063
+ response_types_map=_response_types_map,
2064
+ )
2065
+
2066
+
2067
+ @validate_call
2068
+ def test_service_import_test_cases_from_library_without_preload_content(
2069
+ self,
2070
+ name: Annotated[str, Field(strict=True, description="Required. The Test for which to get TestCases.")],
2071
+ body: TestServiceImportTestCasesFromLibraryRequest,
2072
+ _request_timeout: Union[
2073
+ None,
2074
+ Annotated[StrictFloat, Field(gt=0)],
2075
+ Tuple[
2076
+ Annotated[StrictFloat, Field(gt=0)],
2077
+ Annotated[StrictFloat, Field(gt=0)]
2078
+ ]
2079
+ ] = None,
2080
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2081
+ _content_type: Optional[StrictStr] = None,
2082
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2083
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2084
+ ) -> RESTResponseType:
2085
+ """test_service_import_test_cases_from_library
2086
+
2087
+
2088
+ :param name: Required. The Test for which to get TestCases. (required)
2089
+ :type name: str
2090
+ :param body: (required)
2091
+ :type body: TestServiceImportTestCasesFromLibraryRequest
2092
+ :param _request_timeout: timeout setting for this request. If one
2093
+ number provided, it will be total request
2094
+ timeout. It can also be a pair (tuple) of
2095
+ (connection, read) timeouts.
2096
+ :type _request_timeout: int, tuple(int, int), optional
2097
+ :param _request_auth: set to override the auth_settings for an a single
2098
+ request; this effectively ignores the
2099
+ authentication in the spec for a single request.
2100
+ :type _request_auth: dict, optional
2101
+ :param _content_type: force content-type for the request.
2102
+ :type _content_type: str, Optional
2103
+ :param _headers: set to override the headers for a single
2104
+ request; this effectively ignores the headers
2105
+ in the spec for a single request.
2106
+ :type _headers: dict, optional
2107
+ :param _host_index: set to override the host_index for a single
2108
+ request; this effectively ignores the host_index
2109
+ in the spec for a single request.
2110
+ :type _host_index: int, optional
2111
+ :return: Returns the result object.
2112
+ """ # noqa: E501
2113
+
2114
+ _param = self._test_service_import_test_cases_from_library_serialize(
2115
+ name=name,
2116
+ body=body,
2117
+ _request_auth=_request_auth,
2118
+ _content_type=_content_type,
2119
+ _headers=_headers,
2120
+ _host_index=_host_index
2121
+ )
2122
+
2123
+ _response_types_map: Dict[str, Optional[str]] = {
2124
+ '200': "V1ImportTestCasesFromLibraryResponse",
2125
+ }
2126
+ response_data = self.api_client.call_api(
2127
+ *_param,
2128
+ _request_timeout=_request_timeout
2129
+ )
2130
+ return response_data.response
2131
+
2132
+
2133
+ def _test_service_import_test_cases_from_library_serialize(
2134
+ self,
2135
+ name,
2136
+ body,
2137
+ _request_auth,
2138
+ _content_type,
2139
+ _headers,
2140
+ _host_index,
2141
+ ) -> RequestSerialized:
2142
+
2143
+ _host = None
2144
+
2145
+ _collection_formats: Dict[str, str] = {
2146
+ }
2147
+
2148
+ _path_params: Dict[str, str] = {}
2149
+ _query_params: List[Tuple[str, str]] = []
2150
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2151
+ _form_params: List[Tuple[str, str]] = []
2152
+ _files: Dict[str, Union[str, bytes]] = {}
2153
+ _body_params: Optional[bytes] = None
2154
+
2155
+ # process the path parameters
2156
+ if name is not None:
2157
+ _path_params['name'] = name
2158
+ # process the query parameters
2159
+ # process the header parameters
2160
+ # process the form parameters
2161
+ # process the body parameter
2162
+ if body is not None:
2163
+ _body_params = body
2164
+
2165
+
2166
+ # set the HTTP header `Accept`
2167
+ _header_params['Accept'] = self.api_client.select_header_accept(
2168
+ [
2169
+ 'application/json'
2170
+ ]
2171
+ )
2172
+
2173
+ # set the HTTP header `Content-Type`
2174
+ if _content_type:
2175
+ _header_params['Content-Type'] = _content_type
2176
+ else:
2177
+ _default_content_type = (
2178
+ self.api_client.select_header_content_type(
2179
+ [
2180
+ 'application/json'
2181
+ ]
2182
+ )
2183
+ )
2184
+ if _default_content_type is not None:
2185
+ _header_params['Content-Type'] = _default_content_type
2186
+
2187
+ # authentication setting
2188
+ _auth_settings: List[str] = [
2189
+ ]
2190
+
2191
+ return self.api_client.param_serialize(
2192
+ method='POST',
2193
+ resource_path='/v1/{name}:importTestCasesFromLibrary',
2194
+ path_params=_path_params,
2195
+ query_params=_query_params,
2196
+ header_params=_header_params,
2197
+ body=_body_params,
2198
+ post_params=_form_params,
2199
+ files=_files,
2200
+ auth_settings=_auth_settings,
2201
+ collection_formats=_collection_formats,
2202
+ _host=_host,
2203
+ _request_auth=_request_auth
2204
+ )
2205
+
2206
+
2207
+
2208
+
1923
2209
  @validate_call
1924
2210
  def test_service_list_most_recent_tests(
1925
2211
  self,
@@ -2176,6 +2462,288 @@ class TestServiceApi:
2176
2462
 
2177
2463
 
2178
2464
 
2465
+ @validate_call
2466
+ def test_service_list_test_case_library_items(
2467
+ self,
2468
+ name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
2469
+ body: TestServiceListTestCaseLibraryItemsRequest,
2470
+ _request_timeout: Union[
2471
+ None,
2472
+ Annotated[StrictFloat, Field(gt=0)],
2473
+ Tuple[
2474
+ Annotated[StrictFloat, Field(gt=0)],
2475
+ Annotated[StrictFloat, Field(gt=0)]
2476
+ ]
2477
+ ] = None,
2478
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2479
+ _content_type: Optional[StrictStr] = None,
2480
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2481
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2482
+ ) -> V1ListTestCaseLibraryItemsResponse:
2483
+ """test_service_list_test_case_library_items
2484
+
2485
+
2486
+ :param name: Required. The Test for which to list the items. (required)
2487
+ :type name: str
2488
+ :param body: (required)
2489
+ :type body: TestServiceListTestCaseLibraryItemsRequest
2490
+ :param _request_timeout: timeout setting for this request. If one
2491
+ number provided, it will be total request
2492
+ timeout. It can also be a pair (tuple) of
2493
+ (connection, read) timeouts.
2494
+ :type _request_timeout: int, tuple(int, int), optional
2495
+ :param _request_auth: set to override the auth_settings for an a single
2496
+ request; this effectively ignores the
2497
+ authentication in the spec for a single request.
2498
+ :type _request_auth: dict, optional
2499
+ :param _content_type: force content-type for the request.
2500
+ :type _content_type: str, Optional
2501
+ :param _headers: set to override the headers for a single
2502
+ request; this effectively ignores the headers
2503
+ in the spec for a single request.
2504
+ :type _headers: dict, optional
2505
+ :param _host_index: set to override the host_index for a single
2506
+ request; this effectively ignores the host_index
2507
+ in the spec for a single request.
2508
+ :type _host_index: int, optional
2509
+ :return: Returns the result object.
2510
+ """ # noqa: E501
2511
+
2512
+ _param = self._test_service_list_test_case_library_items_serialize(
2513
+ name=name,
2514
+ body=body,
2515
+ _request_auth=_request_auth,
2516
+ _content_type=_content_type,
2517
+ _headers=_headers,
2518
+ _host_index=_host_index
2519
+ )
2520
+
2521
+ _response_types_map: Dict[str, Optional[str]] = {
2522
+ '200': "V1ListTestCaseLibraryItemsResponse",
2523
+ }
2524
+ response_data = self.api_client.call_api(
2525
+ *_param,
2526
+ _request_timeout=_request_timeout
2527
+ )
2528
+ response_data.read()
2529
+ return self.api_client.response_deserialize(
2530
+ response_data=response_data,
2531
+ response_types_map=_response_types_map,
2532
+ ).data
2533
+
2534
+
2535
+ @validate_call
2536
+ def test_service_list_test_case_library_items_with_http_info(
2537
+ self,
2538
+ name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
2539
+ body: TestServiceListTestCaseLibraryItemsRequest,
2540
+ _request_timeout: Union[
2541
+ None,
2542
+ Annotated[StrictFloat, Field(gt=0)],
2543
+ Tuple[
2544
+ Annotated[StrictFloat, Field(gt=0)],
2545
+ Annotated[StrictFloat, Field(gt=0)]
2546
+ ]
2547
+ ] = None,
2548
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2549
+ _content_type: Optional[StrictStr] = None,
2550
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2551
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2552
+ ) -> ApiResponse[V1ListTestCaseLibraryItemsResponse]:
2553
+ """test_service_list_test_case_library_items
2554
+
2555
+
2556
+ :param name: Required. The Test for which to list the items. (required)
2557
+ :type name: str
2558
+ :param body: (required)
2559
+ :type body: TestServiceListTestCaseLibraryItemsRequest
2560
+ :param _request_timeout: timeout setting for this request. If one
2561
+ number provided, it will be total request
2562
+ timeout. It can also be a pair (tuple) of
2563
+ (connection, read) timeouts.
2564
+ :type _request_timeout: int, tuple(int, int), optional
2565
+ :param _request_auth: set to override the auth_settings for an a single
2566
+ request; this effectively ignores the
2567
+ authentication in the spec for a single request.
2568
+ :type _request_auth: dict, optional
2569
+ :param _content_type: force content-type for the request.
2570
+ :type _content_type: str, Optional
2571
+ :param _headers: set to override the headers for a single
2572
+ request; this effectively ignores the headers
2573
+ in the spec for a single request.
2574
+ :type _headers: dict, optional
2575
+ :param _host_index: set to override the host_index for a single
2576
+ request; this effectively ignores the host_index
2577
+ in the spec for a single request.
2578
+ :type _host_index: int, optional
2579
+ :return: Returns the result object.
2580
+ """ # noqa: E501
2581
+
2582
+ _param = self._test_service_list_test_case_library_items_serialize(
2583
+ name=name,
2584
+ body=body,
2585
+ _request_auth=_request_auth,
2586
+ _content_type=_content_type,
2587
+ _headers=_headers,
2588
+ _host_index=_host_index
2589
+ )
2590
+
2591
+ _response_types_map: Dict[str, Optional[str]] = {
2592
+ '200': "V1ListTestCaseLibraryItemsResponse",
2593
+ }
2594
+ response_data = self.api_client.call_api(
2595
+ *_param,
2596
+ _request_timeout=_request_timeout
2597
+ )
2598
+ response_data.read()
2599
+ return self.api_client.response_deserialize(
2600
+ response_data=response_data,
2601
+ response_types_map=_response_types_map,
2602
+ )
2603
+
2604
+
2605
+ @validate_call
2606
+ def test_service_list_test_case_library_items_without_preload_content(
2607
+ self,
2608
+ name: Annotated[str, Field(strict=True, description="Required. The Test for which to list the items.")],
2609
+ body: TestServiceListTestCaseLibraryItemsRequest,
2610
+ _request_timeout: Union[
2611
+ None,
2612
+ Annotated[StrictFloat, Field(gt=0)],
2613
+ Tuple[
2614
+ Annotated[StrictFloat, Field(gt=0)],
2615
+ Annotated[StrictFloat, Field(gt=0)]
2616
+ ]
2617
+ ] = None,
2618
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2619
+ _content_type: Optional[StrictStr] = None,
2620
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2621
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2622
+ ) -> RESTResponseType:
2623
+ """test_service_list_test_case_library_items
2624
+
2625
+
2626
+ :param name: Required. The Test for which to list the items. (required)
2627
+ :type name: str
2628
+ :param body: (required)
2629
+ :type body: TestServiceListTestCaseLibraryItemsRequest
2630
+ :param _request_timeout: timeout setting for this request. If one
2631
+ number provided, it will be total request
2632
+ timeout. It can also be a pair (tuple) of
2633
+ (connection, read) timeouts.
2634
+ :type _request_timeout: int, tuple(int, int), optional
2635
+ :param _request_auth: set to override the auth_settings for an a single
2636
+ request; this effectively ignores the
2637
+ authentication in the spec for a single request.
2638
+ :type _request_auth: dict, optional
2639
+ :param _content_type: force content-type for the request.
2640
+ :type _content_type: str, Optional
2641
+ :param _headers: set to override the headers for a single
2642
+ request; this effectively ignores the headers
2643
+ in the spec for a single request.
2644
+ :type _headers: dict, optional
2645
+ :param _host_index: set to override the host_index for a single
2646
+ request; this effectively ignores the host_index
2647
+ in the spec for a single request.
2648
+ :type _host_index: int, optional
2649
+ :return: Returns the result object.
2650
+ """ # noqa: E501
2651
+
2652
+ _param = self._test_service_list_test_case_library_items_serialize(
2653
+ name=name,
2654
+ body=body,
2655
+ _request_auth=_request_auth,
2656
+ _content_type=_content_type,
2657
+ _headers=_headers,
2658
+ _host_index=_host_index
2659
+ )
2660
+
2661
+ _response_types_map: Dict[str, Optional[str]] = {
2662
+ '200': "V1ListTestCaseLibraryItemsResponse",
2663
+ }
2664
+ response_data = self.api_client.call_api(
2665
+ *_param,
2666
+ _request_timeout=_request_timeout
2667
+ )
2668
+ return response_data.response
2669
+
2670
+
2671
+ def _test_service_list_test_case_library_items_serialize(
2672
+ self,
2673
+ name,
2674
+ body,
2675
+ _request_auth,
2676
+ _content_type,
2677
+ _headers,
2678
+ _host_index,
2679
+ ) -> RequestSerialized:
2680
+
2681
+ _host = None
2682
+
2683
+ _collection_formats: Dict[str, str] = {
2684
+ }
2685
+
2686
+ _path_params: Dict[str, str] = {}
2687
+ _query_params: List[Tuple[str, str]] = []
2688
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2689
+ _form_params: List[Tuple[str, str]] = []
2690
+ _files: Dict[str, Union[str, bytes]] = {}
2691
+ _body_params: Optional[bytes] = None
2692
+
2693
+ # process the path parameters
2694
+ if name is not None:
2695
+ _path_params['name'] = name
2696
+ # process the query parameters
2697
+ # process the header parameters
2698
+ # process the form parameters
2699
+ # process the body parameter
2700
+ if body is not None:
2701
+ _body_params = body
2702
+
2703
+
2704
+ # set the HTTP header `Accept`
2705
+ _header_params['Accept'] = self.api_client.select_header_accept(
2706
+ [
2707
+ 'application/json'
2708
+ ]
2709
+ )
2710
+
2711
+ # set the HTTP header `Content-Type`
2712
+ if _content_type:
2713
+ _header_params['Content-Type'] = _content_type
2714
+ else:
2715
+ _default_content_type = (
2716
+ self.api_client.select_header_content_type(
2717
+ [
2718
+ 'application/json'
2719
+ ]
2720
+ )
2721
+ )
2722
+ if _default_content_type is not None:
2723
+ _header_params['Content-Type'] = _default_content_type
2724
+
2725
+ # authentication setting
2726
+ _auth_settings: List[str] = [
2727
+ ]
2728
+
2729
+ return self.api_client.param_serialize(
2730
+ method='POST',
2731
+ resource_path='/v1/{name}:listTestCaseLibraryItems',
2732
+ path_params=_path_params,
2733
+ query_params=_query_params,
2734
+ header_params=_header_params,
2735
+ body=_body_params,
2736
+ post_params=_form_params,
2737
+ files=_files,
2738
+ auth_settings=_auth_settings,
2739
+ collection_formats=_collection_formats,
2740
+ _host=_host,
2741
+ _request_auth=_request_auth
2742
+ )
2743
+
2744
+
2745
+
2746
+
2179
2747
  @validate_call
2180
2748
  def test_service_list_tests(
2181
2749
  self,