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.
Files changed (106) hide show
  1. eval_studio_client/api/__init__.py +21 -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 +1075 -0
  7. eval_studio_client/api/api/workflow_service_api.py +1109 -48
  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/PerturbationServiceCreatePerturbationRequest.md +1 -1
  11. eval_studio_client/api/docs/RequiredTheUpdatedWorkflowNode.md +2 -0
  12. eval_studio_client/api/docs/TestServiceApi.md +268 -0
  13. eval_studio_client/api/docs/TestServiceGrantTestAccessRequest.md +30 -0
  14. eval_studio_client/api/docs/TestServiceRevokeTestAccessRequest.md +30 -0
  15. eval_studio_client/api/docs/V1CreatePerturbationResponse.md +1 -1
  16. eval_studio_client/api/docs/V1GetStatsResponse.md +29 -0
  17. eval_studio_client/api/docs/V1GetWorkflowResultCorpusPatchResponse.md +29 -0
  18. eval_studio_client/api/docs/V1GetWorkflowResultReportResponse.md +30 -0
  19. eval_studio_client/api/docs/V1GetWorkflowResultSummaryResponse.md +32 -0
  20. eval_studio_client/api/docs/V1GetWorkflowResultSystemPromptPatchResponse.md +29 -0
  21. eval_studio_client/api/docs/V1Info.md +2 -0
  22. eval_studio_client/api/docs/V1ListDashboardAccessResponse.md +29 -0
  23. eval_studio_client/api/docs/V1ListDashboardsSharedWithMeResponse.md +29 -0
  24. eval_studio_client/api/docs/V1ListTestAccessResponse.md +29 -0
  25. eval_studio_client/api/docs/V1ListTestsSharedWithMeResponse.md +29 -0
  26. eval_studio_client/api/docs/V1ListWorkflowAccessResponse.md +29 -0
  27. eval_studio_client/api/docs/V1ListWorkflowsSharedWithMeResponse.md +29 -0
  28. eval_studio_client/api/docs/V1Role.md +12 -0
  29. eval_studio_client/api/docs/V1RoleBinding.md +32 -0
  30. eval_studio_client/api/docs/V1Stats.md +32 -0
  31. eval_studio_client/api/docs/V1WorkflowNode.md +2 -0
  32. eval_studio_client/api/docs/V1WorkflowNodeResultStatus.md +12 -0
  33. eval_studio_client/api/docs/V1WorkflowResultArtifactType.md +12 -0
  34. eval_studio_client/api/docs/V1WorkflowResultReportFormat.md +11 -0
  35. eval_studio_client/api/docs/WorkflowResultServiceApi.md +282 -0
  36. eval_studio_client/api/docs/WorkflowServiceApi.md +272 -0
  37. eval_studio_client/api/docs/WorkflowServiceRevokeWorkflowAccessRequest.md +30 -0
  38. eval_studio_client/api/models/__init__.py +20 -0
  39. eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +1 -1
  40. eval_studio_client/api/models/required_the_updated_workflow_node.py +10 -3
  41. eval_studio_client/api/models/test_service_grant_test_access_request.py +90 -0
  42. eval_studio_client/api/models/test_service_revoke_test_access_request.py +90 -0
  43. eval_studio_client/api/models/v1_create_perturbation_response.py +1 -1
  44. eval_studio_client/api/models/v1_get_stats_response.py +91 -0
  45. eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +87 -0
  46. eval_studio_client/api/models/v1_get_workflow_result_report_response.py +89 -0
  47. eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +94 -0
  48. eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +87 -0
  49. eval_studio_client/api/models/v1_info.py +6 -2
  50. eval_studio_client/api/models/v1_list_dashboard_access_response.py +95 -0
  51. eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +95 -0
  52. eval_studio_client/api/models/v1_list_test_access_response.py +95 -0
  53. eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +95 -0
  54. eval_studio_client/api/models/v1_list_workflow_access_response.py +95 -0
  55. eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +95 -0
  56. eval_studio_client/api/models/v1_role.py +38 -0
  57. eval_studio_client/api/models/v1_role_binding.py +92 -0
  58. eval_studio_client/api/models/v1_stats.py +106 -0
  59. eval_studio_client/api/models/v1_workflow_node.py +10 -3
  60. eval_studio_client/api/models/v1_workflow_node_result_status.py +40 -0
  61. eval_studio_client/api/models/v1_workflow_node_type.py +1 -0
  62. eval_studio_client/api/models/v1_workflow_result_artifact_type.py +40 -0
  63. eval_studio_client/api/models/v1_workflow_result_report_format.py +37 -0
  64. eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +90 -0
  65. eval_studio_client/api/test/test_dashboard_service_api.py +28 -0
  66. eval_studio_client/api/test/test_info_service_api.py +6 -0
  67. eval_studio_client/api/test/test_required_the_updated_workflow_node.py +3 -1
  68. eval_studio_client/api/test/test_test_service_api.py +24 -0
  69. eval_studio_client/api/test/test_test_service_grant_test_access_request.py +52 -0
  70. eval_studio_client/api/test/test_test_service_revoke_test_access_request.py +52 -0
  71. eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +3 -1
  72. eval_studio_client/api/test/test_v1_create_workflow_node_response.py +3 -1
  73. eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +3 -1
  74. eval_studio_client/api/test/test_v1_get_info_response.py +3 -1
  75. eval_studio_client/api/test/test_v1_get_stats_response.py +54 -0
  76. eval_studio_client/api/test/test_v1_get_workflow_node_response.py +3 -1
  77. eval_studio_client/api/test/test_v1_get_workflow_result_corpus_patch_response.py +51 -0
  78. eval_studio_client/api/test/test_v1_get_workflow_result_report_response.py +54 -0
  79. eval_studio_client/api/test/test_v1_get_workflow_result_summary_response.py +58 -0
  80. eval_studio_client/api/test/test_v1_get_workflow_result_system_prompt_patch_response.py +51 -0
  81. eval_studio_client/api/test/test_v1_info.py +3 -1
  82. eval_studio_client/api/test/test_v1_init_workflow_node_response.py +3 -1
  83. eval_studio_client/api/test/test_v1_list_dashboard_access_response.py +56 -0
  84. eval_studio_client/api/test/test_v1_list_dashboards_shared_with_me_response.py +69 -0
  85. eval_studio_client/api/test/test_v1_list_test_access_response.py +56 -0
  86. eval_studio_client/api/test/test_v1_list_tests_shared_with_me_response.py +70 -0
  87. eval_studio_client/api/test/test_v1_list_workflow_access_response.py +56 -0
  88. eval_studio_client/api/test/test_v1_list_workflow_dependencies_response.py +3 -1
  89. eval_studio_client/api/test/test_v1_list_workflows_shared_with_me_response.py +95 -0
  90. eval_studio_client/api/test/test_v1_reset_workflow_node_response.py +3 -1
  91. eval_studio_client/api/test/test_v1_role.py +33 -0
  92. eval_studio_client/api/test/test_v1_role_binding.py +53 -0
  93. eval_studio_client/api/test/test_v1_stats.py +53 -0
  94. eval_studio_client/api/test/test_v1_update_workflow_node_response.py +3 -1
  95. eval_studio_client/api/test/test_v1_workflow_node.py +3 -1
  96. eval_studio_client/api/test/test_v1_workflow_node_result_status.py +33 -0
  97. eval_studio_client/api/test/test_v1_workflow_result_artifact_type.py +33 -0
  98. eval_studio_client/api/test/test_v1_workflow_result_report_format.py +33 -0
  99. eval_studio_client/api/test/test_workflow_result_service_api.py +59 -0
  100. eval_studio_client/api/test/test_workflow_service_api.py +28 -0
  101. eval_studio_client/api/test/test_workflow_service_revoke_workflow_access_request.py +52 -0
  102. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +921 -7
  103. eval_studio_client/tests.py +3 -3
  104. {eval_studio_client-1.1.6a5.dist-info → eval_studio_client-1.2.0.dist-info}/METADATA +1 -1
  105. {eval_studio_client-1.1.6a5.dist-info → eval_studio_client-1.2.0.dist-info}/RECORD +106 -43
  106. {eval_studio_client-1.1.6a5.dist-info → eval_studio_client-1.2.0.dist-info}/WHEEL +0 -0
@@ -11,8 +11,12 @@ Method | HTTP request | Description
11
11
  [**workflow_service_find_workflows_by_collection_id**](WorkflowServiceApi.md#workflow_service_find_workflows_by_collection_id) | **GET** /v1/workflows:findWorkflowByH2OGPTeCollectionID | FindWorkflowByCollectionID finds a Workflow by used H2OGPTe collection ID.
12
12
  [**workflow_service_get_guardrails_configuration**](WorkflowServiceApi.md#workflow_service_get_guardrails_configuration) | **GET** /v1/{name}:getGuardrailsConfiguration |
13
13
  [**workflow_service_get_workflow**](WorkflowServiceApi.md#workflow_service_get_workflow) | **GET** /v1/{name_12} | GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
14
+ [**workflow_service_grant_workflow_access**](WorkflowServiceApi.md#workflow_service_grant_workflow_access) | **POST** /v1/{name_2}:grantAccess | GrantWorkflowAccess grants access to a Workflow to a subject with a specified role.
15
+ [**workflow_service_list_workflow_access**](WorkflowServiceApi.md#workflow_service_list_workflow_access) | **GET** /v1/{name_2}:listAccess | ListWorkflowAccess lists access to a Workflow.
14
16
  [**workflow_service_list_workflow_dependencies**](WorkflowServiceApi.md#workflow_service_list_workflow_dependencies) | **GET** /v1/{name}:nodeDependencies | ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
15
17
  [**workflow_service_list_workflows**](WorkflowServiceApi.md#workflow_service_list_workflows) | **GET** /v1/workflows | ListWorkflows lists Workflows.
18
+ [**workflow_service_list_workflows_shared_with_me**](WorkflowServiceApi.md#workflow_service_list_workflows_shared_with_me) | **GET** /v1/workflows:sharedWithMe | ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
19
+ [**workflow_service_revoke_workflow_access**](WorkflowServiceApi.md#workflow_service_revoke_workflow_access) | **POST** /v1/{name_2}:revokeAccess | RevokeWorkflowAccess revokes access to a Workflow from a subject.
16
20
  [**workflow_service_update_workflow**](WorkflowServiceApi.md#workflow_service_update_workflow) | **PATCH** /v1/{workflow.name} | UpdateWorkflow updates a Workflow. The update_mask is used to specify the fields to be updated.
17
21
 
18
22
 
@@ -489,6 +493,142 @@ No authorization required
489
493
 
490
494
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
491
495
 
496
+ # **workflow_service_grant_workflow_access**
497
+ > object workflow_service_grant_workflow_access(name_2, body)
498
+
499
+ GrantWorkflowAccess grants access to a Workflow to a subject with a specified role.
500
+
501
+ ### Example
502
+
503
+
504
+ ```python
505
+ import eval_studio_client.api
506
+ from eval_studio_client.api.models.test_service_grant_test_access_request import TestServiceGrantTestAccessRequest
507
+ from eval_studio_client.api.rest import ApiException
508
+ from pprint import pprint
509
+
510
+ # Defining the host is optional and defaults to http://localhost
511
+ # See configuration.py for a list of all supported configuration parameters.
512
+ configuration = eval_studio_client.api.Configuration(
513
+ host = "http://localhost"
514
+ )
515
+
516
+
517
+ # Enter a context with an instance of the API client
518
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
519
+ # Create an instance of the API class
520
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
521
+ name_2 = 'name_2_example' # str | Required. The name of the Workflow to grant access to.
522
+ body = eval_studio_client.api.TestServiceGrantTestAccessRequest() # TestServiceGrantTestAccessRequest |
523
+
524
+ try:
525
+ # GrantWorkflowAccess grants access to a Workflow to a subject with a specified role.
526
+ api_response = api_instance.workflow_service_grant_workflow_access(name_2, body)
527
+ print("The response of WorkflowServiceApi->workflow_service_grant_workflow_access:\n")
528
+ pprint(api_response)
529
+ except Exception as e:
530
+ print("Exception when calling WorkflowServiceApi->workflow_service_grant_workflow_access: %s\n" % e)
531
+ ```
532
+
533
+
534
+
535
+ ### Parameters
536
+
537
+
538
+ Name | Type | Description | Notes
539
+ ------------- | ------------- | ------------- | -------------
540
+ **name_2** | **str**| Required. The name of the Workflow to grant access to. |
541
+ **body** | [**TestServiceGrantTestAccessRequest**](TestServiceGrantTestAccessRequest.md)| |
542
+
543
+ ### Return type
544
+
545
+ **object**
546
+
547
+ ### Authorization
548
+
549
+ No authorization required
550
+
551
+ ### HTTP request headers
552
+
553
+ - **Content-Type**: application/json
554
+ - **Accept**: application/json
555
+
556
+ ### HTTP response details
557
+
558
+ | Status code | Description | Response headers |
559
+ |-------------|-------------|------------------|
560
+ **200** | A successful response. | - |
561
+ **0** | An unexpected error response. | - |
562
+
563
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
564
+
565
+ # **workflow_service_list_workflow_access**
566
+ > V1ListWorkflowAccessResponse workflow_service_list_workflow_access(name_2)
567
+
568
+ ListWorkflowAccess lists access to a Workflow.
569
+
570
+ ### Example
571
+
572
+
573
+ ```python
574
+ import eval_studio_client.api
575
+ from eval_studio_client.api.models.v1_list_workflow_access_response import V1ListWorkflowAccessResponse
576
+ from eval_studio_client.api.rest import ApiException
577
+ from pprint import pprint
578
+
579
+ # Defining the host is optional and defaults to http://localhost
580
+ # See configuration.py for a list of all supported configuration parameters.
581
+ configuration = eval_studio_client.api.Configuration(
582
+ host = "http://localhost"
583
+ )
584
+
585
+
586
+ # Enter a context with an instance of the API client
587
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
588
+ # Create an instance of the API class
589
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
590
+ name_2 = 'name_2_example' # str | Required. The name of the Workflow to list access for.
591
+
592
+ try:
593
+ # ListWorkflowAccess lists access to a Workflow.
594
+ api_response = api_instance.workflow_service_list_workflow_access(name_2)
595
+ print("The response of WorkflowServiceApi->workflow_service_list_workflow_access:\n")
596
+ pprint(api_response)
597
+ except Exception as e:
598
+ print("Exception when calling WorkflowServiceApi->workflow_service_list_workflow_access: %s\n" % e)
599
+ ```
600
+
601
+
602
+
603
+ ### Parameters
604
+
605
+
606
+ Name | Type | Description | Notes
607
+ ------------- | ------------- | ------------- | -------------
608
+ **name_2** | **str**| Required. The name of the Workflow to list access for. |
609
+
610
+ ### Return type
611
+
612
+ [**V1ListWorkflowAccessResponse**](V1ListWorkflowAccessResponse.md)
613
+
614
+ ### Authorization
615
+
616
+ No authorization required
617
+
618
+ ### HTTP request headers
619
+
620
+ - **Content-Type**: Not defined
621
+ - **Accept**: application/json
622
+
623
+ ### HTTP response details
624
+
625
+ | Status code | Description | Response headers |
626
+ |-------------|-------------|------------------|
627
+ **200** | A successful response. | - |
628
+ **0** | An unexpected error response. | - |
629
+
630
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
631
+
492
632
  # **workflow_service_list_workflow_dependencies**
493
633
  > V1ListWorkflowDependenciesResponse workflow_service_list_workflow_dependencies(name)
494
634
 
@@ -619,6 +759,138 @@ No authorization required
619
759
 
620
760
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
621
761
 
762
+ # **workflow_service_list_workflows_shared_with_me**
763
+ > V1ListWorkflowsSharedWithMeResponse workflow_service_list_workflows_shared_with_me()
764
+
765
+ ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
766
+
767
+ ### Example
768
+
769
+
770
+ ```python
771
+ import eval_studio_client.api
772
+ from eval_studio_client.api.models.v1_list_workflows_shared_with_me_response import V1ListWorkflowsSharedWithMeResponse
773
+ from eval_studio_client.api.rest import ApiException
774
+ from pprint import pprint
775
+
776
+ # Defining the host is optional and defaults to http://localhost
777
+ # See configuration.py for a list of all supported configuration parameters.
778
+ configuration = eval_studio_client.api.Configuration(
779
+ host = "http://localhost"
780
+ )
781
+
782
+
783
+ # Enter a context with an instance of the API client
784
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
785
+ # Create an instance of the API class
786
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
787
+
788
+ try:
789
+ # ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
790
+ api_response = api_instance.workflow_service_list_workflows_shared_with_me()
791
+ print("The response of WorkflowServiceApi->workflow_service_list_workflows_shared_with_me:\n")
792
+ pprint(api_response)
793
+ except Exception as e:
794
+ print("Exception when calling WorkflowServiceApi->workflow_service_list_workflows_shared_with_me: %s\n" % e)
795
+ ```
796
+
797
+
798
+
799
+ ### Parameters
800
+
801
+ This endpoint does not need any parameter.
802
+
803
+ ### Return type
804
+
805
+ [**V1ListWorkflowsSharedWithMeResponse**](V1ListWorkflowsSharedWithMeResponse.md)
806
+
807
+ ### Authorization
808
+
809
+ No authorization required
810
+
811
+ ### HTTP request headers
812
+
813
+ - **Content-Type**: Not defined
814
+ - **Accept**: application/json
815
+
816
+ ### HTTP response details
817
+
818
+ | Status code | Description | Response headers |
819
+ |-------------|-------------|------------------|
820
+ **200** | A successful response. | - |
821
+ **0** | An unexpected error response. | - |
822
+
823
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
824
+
825
+ # **workflow_service_revoke_workflow_access**
826
+ > object workflow_service_revoke_workflow_access(name_2, body)
827
+
828
+ RevokeWorkflowAccess revokes access to a Workflow from a subject.
829
+
830
+ ### Example
831
+
832
+
833
+ ```python
834
+ import eval_studio_client.api
835
+ from eval_studio_client.api.models.workflow_service_revoke_workflow_access_request import WorkflowServiceRevokeWorkflowAccessRequest
836
+ from eval_studio_client.api.rest import ApiException
837
+ from pprint import pprint
838
+
839
+ # Defining the host is optional and defaults to http://localhost
840
+ # See configuration.py for a list of all supported configuration parameters.
841
+ configuration = eval_studio_client.api.Configuration(
842
+ host = "http://localhost"
843
+ )
844
+
845
+
846
+ # Enter a context with an instance of the API client
847
+ with eval_studio_client.api.ApiClient(configuration) as api_client:
848
+ # Create an instance of the API class
849
+ api_instance = eval_studio_client.api.WorkflowServiceApi(api_client)
850
+ name_2 = 'name_2_example' # str | Required. The name of the Workflow to revoke access from.
851
+ body = eval_studio_client.api.WorkflowServiceRevokeWorkflowAccessRequest() # WorkflowServiceRevokeWorkflowAccessRequest |
852
+
853
+ try:
854
+ # RevokeWorkflowAccess revokes access to a Workflow from a subject.
855
+ api_response = api_instance.workflow_service_revoke_workflow_access(name_2, body)
856
+ print("The response of WorkflowServiceApi->workflow_service_revoke_workflow_access:\n")
857
+ pprint(api_response)
858
+ except Exception as e:
859
+ print("Exception when calling WorkflowServiceApi->workflow_service_revoke_workflow_access: %s\n" % e)
860
+ ```
861
+
862
+
863
+
864
+ ### Parameters
865
+
866
+
867
+ Name | Type | Description | Notes
868
+ ------------- | ------------- | ------------- | -------------
869
+ **name_2** | **str**| Required. The name of the Workflow to revoke access from. |
870
+ **body** | [**WorkflowServiceRevokeWorkflowAccessRequest**](WorkflowServiceRevokeWorkflowAccessRequest.md)| |
871
+
872
+ ### Return type
873
+
874
+ **object**
875
+
876
+ ### Authorization
877
+
878
+ No authorization required
879
+
880
+ ### HTTP request headers
881
+
882
+ - **Content-Type**: application/json
883
+ - **Accept**: application/json
884
+
885
+ ### HTTP response details
886
+
887
+ | Status code | Description | Response headers |
888
+ |-------------|-------------|------------------|
889
+ **200** | A successful response. | - |
890
+ **0** | An unexpected error response. | - |
891
+
892
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
893
+
622
894
  # **workflow_service_update_workflow**
623
895
  > V1UpdateWorkflowResponse workflow_service_update_workflow(workflow_name, workflow)
624
896
 
@@ -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
@@ -124,12 +126,17 @@ from eval_studio_client.api.models.v1_get_model_response import V1GetModelRespon
124
126
  from eval_studio_client.api.models.v1_get_operation_progress_by_parent_response import V1GetOperationProgressByParentResponse
125
127
  from eval_studio_client.api.models.v1_get_operation_response import V1GetOperationResponse
126
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
127
130
  from eval_studio_client.api.models.v1_get_test_case_response import V1GetTestCaseResponse
128
131
  from eval_studio_client.api.models.v1_get_test_class_response import V1GetTestClassResponse
129
132
  from eval_studio_client.api.models.v1_get_test_response import V1GetTestResponse
130
133
  from eval_studio_client.api.models.v1_get_workflow_node_prerequisites_response import V1GetWorkflowNodePrerequisitesResponse
131
134
  from eval_studio_client.api.models.v1_get_workflow_node_response import V1GetWorkflowNodeResponse
132
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
133
140
  from eval_studio_client.api.models.v1_import_evaluation_request import V1ImportEvaluationRequest
134
141
  from eval_studio_client.api.models.v1_import_leaderboard_request import V1ImportLeaderboardRequest
135
142
  from eval_studio_client.api.models.v1_import_leaderboard_response import V1ImportLeaderboardResponse
@@ -154,7 +161,9 @@ from eval_studio_client.api.models.v1_leaderboard_status import V1LeaderboardSta
154
161
  from eval_studio_client.api.models.v1_leaderboard_type import V1LeaderboardType
155
162
  from eval_studio_client.api.models.v1_leaderboard_view import V1LeaderboardView
156
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
157
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
158
167
  from eval_studio_client.api.models.v1_list_documents_response import V1ListDocumentsResponse
159
168
  from eval_studio_client.api.models.v1_list_evaluators_response import V1ListEvaluatorsResponse
160
169
  from eval_studio_client.api.models.v1_list_llm_models_response import V1ListLLMModelsResponse
@@ -169,13 +178,17 @@ from eval_studio_client.api.models.v1_list_operations_response import V1ListOper
169
178
  from eval_studio_client.api.models.v1_list_perturbators_response import V1ListPerturbatorsResponse
170
179
  from eval_studio_client.api.models.v1_list_prompt_library_items_response import V1ListPromptLibraryItemsResponse
171
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
172
182
  from eval_studio_client.api.models.v1_list_test_case_library_items_response import V1ListTestCaseLibraryItemsResponse
173
183
  from eval_studio_client.api.models.v1_list_test_case_relationships_response import V1ListTestCaseRelationshipsResponse
174
184
  from eval_studio_client.api.models.v1_list_test_cases_response import V1ListTestCasesResponse
175
185
  from eval_studio_client.api.models.v1_list_test_classes_response import V1ListTestClassesResponse
176
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
177
189
  from eval_studio_client.api.models.v1_list_workflow_dependencies_response import V1ListWorkflowDependenciesResponse
178
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
179
192
  from eval_studio_client.api.models.v1_metric_score import V1MetricScore
180
193
  from eval_studio_client.api.models.v1_metric_scores import V1MetricScores
181
194
  from eval_studio_client.api.models.v1_model import V1Model
@@ -193,6 +206,9 @@ from eval_studio_client.api.models.v1_prompt_library_item import V1PromptLibrary
193
206
  from eval_studio_client.api.models.v1_repeated_context import V1RepeatedContext
194
207
  from eval_studio_client.api.models.v1_repeated_string import V1RepeatedString
195
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
196
212
  from eval_studio_client.api.models.v1_test import V1Test
197
213
  from eval_studio_client.api.models.v1_test_case import V1TestCase
198
214
  from eval_studio_client.api.models.v1_test_case_relationship import V1TestCaseRelationship
@@ -220,8 +236,12 @@ from eval_studio_client.api.models.v1_workflow_node import V1WorkflowNode
220
236
  from eval_studio_client.api.models.v1_workflow_node_artifact import V1WorkflowNodeArtifact
221
237
  from eval_studio_client.api.models.v1_workflow_node_artifacts import V1WorkflowNodeArtifacts
222
238
  from eval_studio_client.api.models.v1_workflow_node_attributes import V1WorkflowNodeAttributes
239
+ from eval_studio_client.api.models.v1_workflow_node_result_status import V1WorkflowNodeResultStatus
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
244
+ from eval_studio_client.api.models.v1_workflow_result_report_format import V1WorkflowResultReportFormat
226
245
  from eval_studio_client.api.models.v1_workflow_type import V1WorkflowType
227
246
  from eval_studio_client.api.models.workflow_service_clone_workflow_request import WorkflowServiceCloneWorkflowRequest
247
+ from eval_studio_client.api.models.workflow_service_revoke_workflow_access_request import WorkflowServiceRevokeWorkflowAccessRequest
@@ -31,7 +31,7 @@ class PerturbationServiceCreatePerturbationRequest(BaseModel):
31
31
  PerturbationServiceCreatePerturbationRequest
32
32
  """ # noqa: E501
33
33
  perturbator_configurations: Optional[List[V1PerturbatorConfiguration]] = Field(default=None, description="Required. PerturbatorConfiguration to apply to the parent Test.", alias="perturbatorConfigurations")
34
- test_cases: Optional[List[V1TestCase]] = Field(default=None, description="Required. List of test cases to perturbate. These are the test cases from the parent test. TODO: breaks https://google.aip.dev/144", alias="testCases")
34
+ test_cases: Optional[List[V1TestCase]] = Field(default=None, description="Required. List of test cases to perturb. These are the test cases from the parent test. TODO: breaks https://google.aip.dev/144", alias="testCases")
35
35
  test_case_relationships: Optional[List[V1TestCaseRelationship]] = Field(default=None, description="Optional. List of relationships between test cases.", alias="testCaseRelationships")
36
36
  default_h2ogpte_model: Optional[V1Model] = Field(default=None, alias="defaultH2ogpteModel")
37
37
  __properties: ClassVar[List[str]] = ["perturbatorConfigurations", "testCases", "testCaseRelationships", "defaultH2ogpteModel"]
@@ -18,10 +18,11 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from eval_studio_client.api.models.v1_workflow_node_artifact import V1WorkflowNodeArtifact
24
24
  from eval_studio_client.api.models.v1_workflow_node_attributes import V1WorkflowNodeAttributes
25
+ from eval_studio_client.api.models.v1_workflow_node_result_status import V1WorkflowNodeResultStatus
25
26
  from eval_studio_client.api.models.v1_workflow_node_status import V1WorkflowNodeStatus
26
27
  from eval_studio_client.api.models.v1_workflow_node_type import V1WorkflowNodeType
27
28
  from typing import Optional, Set
@@ -47,7 +48,9 @@ class RequiredTheUpdatedWorkflowNode(BaseModel):
47
48
  status: Optional[V1WorkflowNodeStatus] = None
48
49
  attributes: Optional[V1WorkflowNodeAttributes] = None
49
50
  processed_by_operation: Optional[StrictStr] = Field(default=None, description="Output only. Optional. Resource name of the latest Operation that has processed or is currently processing this WorkflowNode.", alias="processedByOperation")
50
- __properties: ClassVar[List[str]] = ["parent", "displayName", "description", "createTime", "creator", "updateTime", "updater", "deleteTime", "deleter", "type", "parameters", "outputs", "outputArtifacts", "status", "attributes", "processedByOperation"]
51
+ result_status: Optional[V1WorkflowNodeResultStatus] = Field(default=None, alias="resultStatus")
52
+ stale: Optional[StrictBool] = Field(default=None, description="Output only. The stale field marks whether the internal result is outdated and need to be checked for validity.")
53
+ __properties: ClassVar[List[str]] = ["parent", "displayName", "description", "createTime", "creator", "updateTime", "updater", "deleteTime", "deleter", "type", "parameters", "outputs", "outputArtifacts", "status", "attributes", "processedByOperation", "resultStatus", "stale"]
51
54
 
52
55
  model_config = ConfigDict(
53
56
  populate_by_name=True,
@@ -89,6 +92,7 @@ class RequiredTheUpdatedWorkflowNode(BaseModel):
89
92
  * OpenAPI `readOnly` fields are excluded.
90
93
  * OpenAPI `readOnly` fields are excluded.
91
94
  * OpenAPI `readOnly` fields are excluded.
95
+ * OpenAPI `readOnly` fields are excluded.
92
96
  """
93
97
  excluded_fields: Set[str] = set([
94
98
  "parent",
@@ -101,6 +105,7 @@ class RequiredTheUpdatedWorkflowNode(BaseModel):
101
105
  "outputs",
102
106
  "output_artifacts",
103
107
  "processed_by_operation",
108
+ "stale",
104
109
  ])
105
110
 
106
111
  _dict = self.model_dump(
@@ -145,7 +150,9 @@ class RequiredTheUpdatedWorkflowNode(BaseModel):
145
150
  "outputArtifacts": [V1WorkflowNodeArtifact.from_dict(_item) for _item in obj["outputArtifacts"]] if obj.get("outputArtifacts") is not None else None,
146
151
  "status": obj.get("status"),
147
152
  "attributes": V1WorkflowNodeAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
148
- "processedByOperation": obj.get("processedByOperation")
153
+ "processedByOperation": obj.get("processedByOperation"),
154
+ "resultStatus": obj.get("resultStatus"),
155
+ "stale": obj.get("stale")
149
156
  })
150
157
  return _obj
151
158
 
@@ -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
+
@@ -26,7 +26,7 @@ class V1CreatePerturbationResponse(BaseModel):
26
26
  """
27
27
  V1CreatePerturbationResponse
28
28
  """ # noqa: E501
29
- test_suite: Optional[StrictStr] = Field(default=None, description="Perturbated test suite in JSON format.", alias="testSuite")
29
+ test_suite: Optional[StrictStr] = Field(default=None, description="Perturbed test suite in JSON format.", alias="testSuite")
30
30
  __properties: ClassVar[List[str]] = ["testSuite"]
31
31
 
32
32
  model_config = ConfigDict(