eval-studio-client 1.1.6a4__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.6a4.dist-info → eval_studio_client-1.2.0.dist-info}/METADATA +1 -1
  105. {eval_studio_client-1.1.6a4.dist-info → eval_studio_client-1.2.0.dist-info}/RECORD +106 -43
  106. {eval_studio_client-1.1.6a4.dist-info → eval_studio_client-1.2.0.dist-info}/WHEEL +0 -0
@@ -17,9 +17,10 @@ from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
19
  from pydantic import Field, StrictStr, field_validator
20
- from typing import Optional
20
+ from typing import Any, Dict, Optional
21
21
  from typing_extensions import Annotated
22
22
  from eval_studio_client.api.models.required_the_updated_workflow import RequiredTheUpdatedWorkflow
23
+ from eval_studio_client.api.models.test_service_grant_test_access_request import TestServiceGrantTestAccessRequest
23
24
  from eval_studio_client.api.models.v1_batch_delete_workflows_request import V1BatchDeleteWorkflowsRequest
24
25
  from eval_studio_client.api.models.v1_batch_delete_workflows_response import V1BatchDeleteWorkflowsResponse
25
26
  from eval_studio_client.api.models.v1_clone_workflow_response import V1CloneWorkflowResponse
@@ -28,11 +29,14 @@ from eval_studio_client.api.models.v1_delete_workflow_response import V1DeleteWo
28
29
  from eval_studio_client.api.models.v1_find_workflows_by_collection_id_response import V1FindWorkflowsByCollectionIDResponse
29
30
  from eval_studio_client.api.models.v1_get_guardrails_configuration_response import V1GetGuardrailsConfigurationResponse
30
31
  from eval_studio_client.api.models.v1_get_workflow_response import V1GetWorkflowResponse
32
+ from eval_studio_client.api.models.v1_list_workflow_access_response import V1ListWorkflowAccessResponse
31
33
  from eval_studio_client.api.models.v1_list_workflow_dependencies_response import V1ListWorkflowDependenciesResponse
32
34
  from eval_studio_client.api.models.v1_list_workflows_response import V1ListWorkflowsResponse
35
+ from eval_studio_client.api.models.v1_list_workflows_shared_with_me_response import V1ListWorkflowsSharedWithMeResponse
33
36
  from eval_studio_client.api.models.v1_update_workflow_response import V1UpdateWorkflowResponse
34
37
  from eval_studio_client.api.models.v1_workflow import V1Workflow
35
38
  from eval_studio_client.api.models.workflow_service_clone_workflow_request import WorkflowServiceCloneWorkflowRequest
39
+ from eval_studio_client.api.models.workflow_service_revoke_workflow_access_request import WorkflowServiceRevokeWorkflowAccessRequest
36
40
 
37
41
  from eval_studio_client.api.api_client import ApiClient, RequestSerialized
38
42
  from eval_studio_client.api.api_response import ApiResponse
@@ -1886,10 +1890,861 @@ class WorkflowServiceApi:
1886
1890
 
1887
1891
 
1888
1892
 
1893
+ @validate_call
1894
+ def workflow_service_grant_workflow_access(
1895
+ self,
1896
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to grant access to.")],
1897
+ body: TestServiceGrantTestAccessRequest,
1898
+ _request_timeout: Union[
1899
+ None,
1900
+ Annotated[StrictFloat, Field(gt=0)],
1901
+ Tuple[
1902
+ Annotated[StrictFloat, Field(gt=0)],
1903
+ Annotated[StrictFloat, Field(gt=0)]
1904
+ ]
1905
+ ] = None,
1906
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1907
+ _content_type: Optional[StrictStr] = None,
1908
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1909
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1910
+ ) -> object:
1911
+ """GrantWorkflowAccess grants access to a Workflow to a subject with a specified role.
1912
+
1913
+
1914
+ :param name_2: Required. The name of the Workflow to grant access to. (required)
1915
+ :type name_2: str
1916
+ :param body: (required)
1917
+ :type body: TestServiceGrantTestAccessRequest
1918
+ :param _request_timeout: timeout setting for this request. If one
1919
+ number provided, it will be total request
1920
+ timeout. It can also be a pair (tuple) of
1921
+ (connection, read) timeouts.
1922
+ :type _request_timeout: int, tuple(int, int), optional
1923
+ :param _request_auth: set to override the auth_settings for an a single
1924
+ request; this effectively ignores the
1925
+ authentication in the spec for a single request.
1926
+ :type _request_auth: dict, optional
1927
+ :param _content_type: force content-type for the request.
1928
+ :type _content_type: str, Optional
1929
+ :param _headers: set to override the headers for a single
1930
+ request; this effectively ignores the headers
1931
+ in the spec for a single request.
1932
+ :type _headers: dict, optional
1933
+ :param _host_index: set to override the host_index for a single
1934
+ request; this effectively ignores the host_index
1935
+ in the spec for a single request.
1936
+ :type _host_index: int, optional
1937
+ :return: Returns the result object.
1938
+ """ # noqa: E501
1939
+
1940
+ _param = self._workflow_service_grant_workflow_access_serialize(
1941
+ name_2=name_2,
1942
+ body=body,
1943
+ _request_auth=_request_auth,
1944
+ _content_type=_content_type,
1945
+ _headers=_headers,
1946
+ _host_index=_host_index
1947
+ )
1948
+
1949
+ _response_types_map: Dict[str, Optional[str]] = {
1950
+ '200': "object",
1951
+ }
1952
+ response_data = self.api_client.call_api(
1953
+ *_param,
1954
+ _request_timeout=_request_timeout
1955
+ )
1956
+ response_data.read()
1957
+ return self.api_client.response_deserialize(
1958
+ response_data=response_data,
1959
+ response_types_map=_response_types_map,
1960
+ ).data
1961
+
1962
+
1963
+ @validate_call
1964
+ def workflow_service_grant_workflow_access_with_http_info(
1965
+ self,
1966
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to grant access to.")],
1967
+ body: TestServiceGrantTestAccessRequest,
1968
+ _request_timeout: Union[
1969
+ None,
1970
+ Annotated[StrictFloat, Field(gt=0)],
1971
+ Tuple[
1972
+ Annotated[StrictFloat, Field(gt=0)],
1973
+ Annotated[StrictFloat, Field(gt=0)]
1974
+ ]
1975
+ ] = None,
1976
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1977
+ _content_type: Optional[StrictStr] = None,
1978
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1979
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1980
+ ) -> ApiResponse[object]:
1981
+ """GrantWorkflowAccess grants access to a Workflow to a subject with a specified role.
1982
+
1983
+
1984
+ :param name_2: Required. The name of the Workflow to grant access to. (required)
1985
+ :type name_2: str
1986
+ :param body: (required)
1987
+ :type body: TestServiceGrantTestAccessRequest
1988
+ :param _request_timeout: timeout setting for this request. If one
1989
+ number provided, it will be total request
1990
+ timeout. It can also be a pair (tuple) of
1991
+ (connection, read) timeouts.
1992
+ :type _request_timeout: int, tuple(int, int), optional
1993
+ :param _request_auth: set to override the auth_settings for an a single
1994
+ request; this effectively ignores the
1995
+ authentication in the spec for a single request.
1996
+ :type _request_auth: dict, optional
1997
+ :param _content_type: force content-type for the request.
1998
+ :type _content_type: str, Optional
1999
+ :param _headers: set to override the headers for a single
2000
+ request; this effectively ignores the headers
2001
+ in the spec for a single request.
2002
+ :type _headers: dict, optional
2003
+ :param _host_index: set to override the host_index for a single
2004
+ request; this effectively ignores the host_index
2005
+ in the spec for a single request.
2006
+ :type _host_index: int, optional
2007
+ :return: Returns the result object.
2008
+ """ # noqa: E501
2009
+
2010
+ _param = self._workflow_service_grant_workflow_access_serialize(
2011
+ name_2=name_2,
2012
+ body=body,
2013
+ _request_auth=_request_auth,
2014
+ _content_type=_content_type,
2015
+ _headers=_headers,
2016
+ _host_index=_host_index
2017
+ )
2018
+
2019
+ _response_types_map: Dict[str, Optional[str]] = {
2020
+ '200': "object",
2021
+ }
2022
+ response_data = self.api_client.call_api(
2023
+ *_param,
2024
+ _request_timeout=_request_timeout
2025
+ )
2026
+ response_data.read()
2027
+ return self.api_client.response_deserialize(
2028
+ response_data=response_data,
2029
+ response_types_map=_response_types_map,
2030
+ )
2031
+
2032
+
2033
+ @validate_call
2034
+ def workflow_service_grant_workflow_access_without_preload_content(
2035
+ self,
2036
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to grant access to.")],
2037
+ body: TestServiceGrantTestAccessRequest,
2038
+ _request_timeout: Union[
2039
+ None,
2040
+ Annotated[StrictFloat, Field(gt=0)],
2041
+ Tuple[
2042
+ Annotated[StrictFloat, Field(gt=0)],
2043
+ Annotated[StrictFloat, Field(gt=0)]
2044
+ ]
2045
+ ] = None,
2046
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2047
+ _content_type: Optional[StrictStr] = None,
2048
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2049
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2050
+ ) -> RESTResponseType:
2051
+ """GrantWorkflowAccess grants access to a Workflow to a subject with a specified role.
2052
+
2053
+
2054
+ :param name_2: Required. The name of the Workflow to grant access to. (required)
2055
+ :type name_2: str
2056
+ :param body: (required)
2057
+ :type body: TestServiceGrantTestAccessRequest
2058
+ :param _request_timeout: timeout setting for this request. If one
2059
+ number provided, it will be total request
2060
+ timeout. It can also be a pair (tuple) of
2061
+ (connection, read) timeouts.
2062
+ :type _request_timeout: int, tuple(int, int), optional
2063
+ :param _request_auth: set to override the auth_settings for an a single
2064
+ request; this effectively ignores the
2065
+ authentication in the spec for a single request.
2066
+ :type _request_auth: dict, optional
2067
+ :param _content_type: force content-type for the request.
2068
+ :type _content_type: str, Optional
2069
+ :param _headers: set to override the headers for a single
2070
+ request; this effectively ignores the headers
2071
+ in the spec for a single request.
2072
+ :type _headers: dict, optional
2073
+ :param _host_index: set to override the host_index for a single
2074
+ request; this effectively ignores the host_index
2075
+ in the spec for a single request.
2076
+ :type _host_index: int, optional
2077
+ :return: Returns the result object.
2078
+ """ # noqa: E501
2079
+
2080
+ _param = self._workflow_service_grant_workflow_access_serialize(
2081
+ name_2=name_2,
2082
+ body=body,
2083
+ _request_auth=_request_auth,
2084
+ _content_type=_content_type,
2085
+ _headers=_headers,
2086
+ _host_index=_host_index
2087
+ )
2088
+
2089
+ _response_types_map: Dict[str, Optional[str]] = {
2090
+ '200': "object",
2091
+ }
2092
+ response_data = self.api_client.call_api(
2093
+ *_param,
2094
+ _request_timeout=_request_timeout
2095
+ )
2096
+ return response_data.response
2097
+
2098
+
2099
+ def _workflow_service_grant_workflow_access_serialize(
2100
+ self,
2101
+ name_2,
2102
+ body,
2103
+ _request_auth,
2104
+ _content_type,
2105
+ _headers,
2106
+ _host_index,
2107
+ ) -> RequestSerialized:
2108
+
2109
+ _host = None
2110
+
2111
+ _collection_formats: Dict[str, str] = {
2112
+ }
2113
+
2114
+ _path_params: Dict[str, str] = {}
2115
+ _query_params: List[Tuple[str, str]] = []
2116
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2117
+ _form_params: List[Tuple[str, str]] = []
2118
+ _files: Dict[str, Union[str, bytes]] = {}
2119
+ _body_params: Optional[bytes] = None
2120
+
2121
+ # process the path parameters
2122
+ if name_2 is not None:
2123
+ _path_params['name_2'] = name_2
2124
+ # process the query parameters
2125
+ # process the header parameters
2126
+ # process the form parameters
2127
+ # process the body parameter
2128
+ if body is not None:
2129
+ _body_params = body
2130
+
2131
+
2132
+ # set the HTTP header `Accept`
2133
+ _header_params['Accept'] = self.api_client.select_header_accept(
2134
+ [
2135
+ 'application/json'
2136
+ ]
2137
+ )
2138
+
2139
+ # set the HTTP header `Content-Type`
2140
+ if _content_type:
2141
+ _header_params['Content-Type'] = _content_type
2142
+ else:
2143
+ _default_content_type = (
2144
+ self.api_client.select_header_content_type(
2145
+ [
2146
+ 'application/json'
2147
+ ]
2148
+ )
2149
+ )
2150
+ if _default_content_type is not None:
2151
+ _header_params['Content-Type'] = _default_content_type
2152
+
2153
+ # authentication setting
2154
+ _auth_settings: List[str] = [
2155
+ ]
2156
+
2157
+ return self.api_client.param_serialize(
2158
+ method='POST',
2159
+ resource_path='/v1/{name_2}:grantAccess',
2160
+ path_params=_path_params,
2161
+ query_params=_query_params,
2162
+ header_params=_header_params,
2163
+ body=_body_params,
2164
+ post_params=_form_params,
2165
+ files=_files,
2166
+ auth_settings=_auth_settings,
2167
+ collection_formats=_collection_formats,
2168
+ _host=_host,
2169
+ _request_auth=_request_auth
2170
+ )
2171
+
2172
+
2173
+
2174
+
2175
+ @validate_call
2176
+ def workflow_service_list_workflow_access(
2177
+ self,
2178
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to list access for.")],
2179
+ _request_timeout: Union[
2180
+ None,
2181
+ Annotated[StrictFloat, Field(gt=0)],
2182
+ Tuple[
2183
+ Annotated[StrictFloat, Field(gt=0)],
2184
+ Annotated[StrictFloat, Field(gt=0)]
2185
+ ]
2186
+ ] = None,
2187
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2188
+ _content_type: Optional[StrictStr] = None,
2189
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2190
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2191
+ ) -> V1ListWorkflowAccessResponse:
2192
+ """ListWorkflowAccess lists access to a Workflow.
2193
+
2194
+
2195
+ :param name_2: Required. The name of the Workflow to list access for. (required)
2196
+ :type name_2: str
2197
+ :param _request_timeout: timeout setting for this request. If one
2198
+ number provided, it will be total request
2199
+ timeout. It can also be a pair (tuple) of
2200
+ (connection, read) timeouts.
2201
+ :type _request_timeout: int, tuple(int, int), optional
2202
+ :param _request_auth: set to override the auth_settings for an a single
2203
+ request; this effectively ignores the
2204
+ authentication in the spec for a single request.
2205
+ :type _request_auth: dict, optional
2206
+ :param _content_type: force content-type for the request.
2207
+ :type _content_type: str, Optional
2208
+ :param _headers: set to override the headers for a single
2209
+ request; this effectively ignores the headers
2210
+ in the spec for a single request.
2211
+ :type _headers: dict, optional
2212
+ :param _host_index: set to override the host_index for a single
2213
+ request; this effectively ignores the host_index
2214
+ in the spec for a single request.
2215
+ :type _host_index: int, optional
2216
+ :return: Returns the result object.
2217
+ """ # noqa: E501
2218
+
2219
+ _param = self._workflow_service_list_workflow_access_serialize(
2220
+ name_2=name_2,
2221
+ _request_auth=_request_auth,
2222
+ _content_type=_content_type,
2223
+ _headers=_headers,
2224
+ _host_index=_host_index
2225
+ )
2226
+
2227
+ _response_types_map: Dict[str, Optional[str]] = {
2228
+ '200': "V1ListWorkflowAccessResponse",
2229
+ }
2230
+ response_data = self.api_client.call_api(
2231
+ *_param,
2232
+ _request_timeout=_request_timeout
2233
+ )
2234
+ response_data.read()
2235
+ return self.api_client.response_deserialize(
2236
+ response_data=response_data,
2237
+ response_types_map=_response_types_map,
2238
+ ).data
2239
+
2240
+
2241
+ @validate_call
2242
+ def workflow_service_list_workflow_access_with_http_info(
2243
+ self,
2244
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to list access for.")],
2245
+ _request_timeout: Union[
2246
+ None,
2247
+ Annotated[StrictFloat, Field(gt=0)],
2248
+ Tuple[
2249
+ Annotated[StrictFloat, Field(gt=0)],
2250
+ Annotated[StrictFloat, Field(gt=0)]
2251
+ ]
2252
+ ] = None,
2253
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2254
+ _content_type: Optional[StrictStr] = None,
2255
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2256
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2257
+ ) -> ApiResponse[V1ListWorkflowAccessResponse]:
2258
+ """ListWorkflowAccess lists access to a Workflow.
2259
+
2260
+
2261
+ :param name_2: Required. The name of the Workflow to list access for. (required)
2262
+ :type name_2: str
2263
+ :param _request_timeout: timeout setting for this request. If one
2264
+ number provided, it will be total request
2265
+ timeout. It can also be a pair (tuple) of
2266
+ (connection, read) timeouts.
2267
+ :type _request_timeout: int, tuple(int, int), optional
2268
+ :param _request_auth: set to override the auth_settings for an a single
2269
+ request; this effectively ignores the
2270
+ authentication in the spec for a single request.
2271
+ :type _request_auth: dict, optional
2272
+ :param _content_type: force content-type for the request.
2273
+ :type _content_type: str, Optional
2274
+ :param _headers: set to override the headers for a single
2275
+ request; this effectively ignores the headers
2276
+ in the spec for a single request.
2277
+ :type _headers: dict, optional
2278
+ :param _host_index: set to override the host_index for a single
2279
+ request; this effectively ignores the host_index
2280
+ in the spec for a single request.
2281
+ :type _host_index: int, optional
2282
+ :return: Returns the result object.
2283
+ """ # noqa: E501
2284
+
2285
+ _param = self._workflow_service_list_workflow_access_serialize(
2286
+ name_2=name_2,
2287
+ _request_auth=_request_auth,
2288
+ _content_type=_content_type,
2289
+ _headers=_headers,
2290
+ _host_index=_host_index
2291
+ )
2292
+
2293
+ _response_types_map: Dict[str, Optional[str]] = {
2294
+ '200': "V1ListWorkflowAccessResponse",
2295
+ }
2296
+ response_data = self.api_client.call_api(
2297
+ *_param,
2298
+ _request_timeout=_request_timeout
2299
+ )
2300
+ response_data.read()
2301
+ return self.api_client.response_deserialize(
2302
+ response_data=response_data,
2303
+ response_types_map=_response_types_map,
2304
+ )
2305
+
2306
+
2307
+ @validate_call
2308
+ def workflow_service_list_workflow_access_without_preload_content(
2309
+ self,
2310
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to list access for.")],
2311
+ _request_timeout: Union[
2312
+ None,
2313
+ Annotated[StrictFloat, Field(gt=0)],
2314
+ Tuple[
2315
+ Annotated[StrictFloat, Field(gt=0)],
2316
+ Annotated[StrictFloat, Field(gt=0)]
2317
+ ]
2318
+ ] = None,
2319
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2320
+ _content_type: Optional[StrictStr] = None,
2321
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2322
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2323
+ ) -> RESTResponseType:
2324
+ """ListWorkflowAccess lists access to a Workflow.
2325
+
2326
+
2327
+ :param name_2: Required. The name of the Workflow to list access for. (required)
2328
+ :type name_2: str
2329
+ :param _request_timeout: timeout setting for this request. If one
2330
+ number provided, it will be total request
2331
+ timeout. It can also be a pair (tuple) of
2332
+ (connection, read) timeouts.
2333
+ :type _request_timeout: int, tuple(int, int), optional
2334
+ :param _request_auth: set to override the auth_settings for an a single
2335
+ request; this effectively ignores the
2336
+ authentication in the spec for a single request.
2337
+ :type _request_auth: dict, optional
2338
+ :param _content_type: force content-type for the request.
2339
+ :type _content_type: str, Optional
2340
+ :param _headers: set to override the headers for a single
2341
+ request; this effectively ignores the headers
2342
+ in the spec for a single request.
2343
+ :type _headers: dict, optional
2344
+ :param _host_index: set to override the host_index for a single
2345
+ request; this effectively ignores the host_index
2346
+ in the spec for a single request.
2347
+ :type _host_index: int, optional
2348
+ :return: Returns the result object.
2349
+ """ # noqa: E501
2350
+
2351
+ _param = self._workflow_service_list_workflow_access_serialize(
2352
+ name_2=name_2,
2353
+ _request_auth=_request_auth,
2354
+ _content_type=_content_type,
2355
+ _headers=_headers,
2356
+ _host_index=_host_index
2357
+ )
2358
+
2359
+ _response_types_map: Dict[str, Optional[str]] = {
2360
+ '200': "V1ListWorkflowAccessResponse",
2361
+ }
2362
+ response_data = self.api_client.call_api(
2363
+ *_param,
2364
+ _request_timeout=_request_timeout
2365
+ )
2366
+ return response_data.response
2367
+
2368
+
2369
+ def _workflow_service_list_workflow_access_serialize(
2370
+ self,
2371
+ name_2,
2372
+ _request_auth,
2373
+ _content_type,
2374
+ _headers,
2375
+ _host_index,
2376
+ ) -> RequestSerialized:
2377
+
2378
+ _host = None
2379
+
2380
+ _collection_formats: Dict[str, str] = {
2381
+ }
2382
+
2383
+ _path_params: Dict[str, str] = {}
2384
+ _query_params: List[Tuple[str, str]] = []
2385
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2386
+ _form_params: List[Tuple[str, str]] = []
2387
+ _files: Dict[str, Union[str, bytes]] = {}
2388
+ _body_params: Optional[bytes] = None
2389
+
2390
+ # process the path parameters
2391
+ if name_2 is not None:
2392
+ _path_params['name_2'] = name_2
2393
+ # process the query parameters
2394
+ # process the header parameters
2395
+ # process the form parameters
2396
+ # process the body parameter
2397
+
2398
+
2399
+ # set the HTTP header `Accept`
2400
+ _header_params['Accept'] = self.api_client.select_header_accept(
2401
+ [
2402
+ 'application/json'
2403
+ ]
2404
+ )
2405
+
2406
+
2407
+ # authentication setting
2408
+ _auth_settings: List[str] = [
2409
+ ]
2410
+
2411
+ return self.api_client.param_serialize(
2412
+ method='GET',
2413
+ resource_path='/v1/{name_2}:listAccess',
2414
+ path_params=_path_params,
2415
+ query_params=_query_params,
2416
+ header_params=_header_params,
2417
+ body=_body_params,
2418
+ post_params=_form_params,
2419
+ files=_files,
2420
+ auth_settings=_auth_settings,
2421
+ collection_formats=_collection_formats,
2422
+ _host=_host,
2423
+ _request_auth=_request_auth
2424
+ )
2425
+
2426
+
2427
+
2428
+
1889
2429
  @validate_call
1890
2430
  def workflow_service_list_workflow_dependencies(
1891
2431
  self,
1892
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
2432
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
2433
+ _request_timeout: Union[
2434
+ None,
2435
+ Annotated[StrictFloat, Field(gt=0)],
2436
+ Tuple[
2437
+ Annotated[StrictFloat, Field(gt=0)],
2438
+ Annotated[StrictFloat, Field(gt=0)]
2439
+ ]
2440
+ ] = None,
2441
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2442
+ _content_type: Optional[StrictStr] = None,
2443
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2444
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2445
+ ) -> V1ListWorkflowDependenciesResponse:
2446
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
2447
+
2448
+
2449
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
2450
+ :type name: str
2451
+ :param _request_timeout: timeout setting for this request. If one
2452
+ number provided, it will be total request
2453
+ timeout. It can also be a pair (tuple) of
2454
+ (connection, read) timeouts.
2455
+ :type _request_timeout: int, tuple(int, int), optional
2456
+ :param _request_auth: set to override the auth_settings for an a single
2457
+ request; this effectively ignores the
2458
+ authentication in the spec for a single request.
2459
+ :type _request_auth: dict, optional
2460
+ :param _content_type: force content-type for the request.
2461
+ :type _content_type: str, Optional
2462
+ :param _headers: set to override the headers for a single
2463
+ request; this effectively ignores the headers
2464
+ in the spec for a single request.
2465
+ :type _headers: dict, optional
2466
+ :param _host_index: set to override the host_index for a single
2467
+ request; this effectively ignores the host_index
2468
+ in the spec for a single request.
2469
+ :type _host_index: int, optional
2470
+ :return: Returns the result object.
2471
+ """ # noqa: E501
2472
+
2473
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
2474
+ name=name,
2475
+ _request_auth=_request_auth,
2476
+ _content_type=_content_type,
2477
+ _headers=_headers,
2478
+ _host_index=_host_index
2479
+ )
2480
+
2481
+ _response_types_map: Dict[str, Optional[str]] = {
2482
+ '200': "V1ListWorkflowDependenciesResponse",
2483
+ }
2484
+ response_data = self.api_client.call_api(
2485
+ *_param,
2486
+ _request_timeout=_request_timeout
2487
+ )
2488
+ response_data.read()
2489
+ return self.api_client.response_deserialize(
2490
+ response_data=response_data,
2491
+ response_types_map=_response_types_map,
2492
+ ).data
2493
+
2494
+
2495
+ @validate_call
2496
+ def workflow_service_list_workflow_dependencies_with_http_info(
2497
+ self,
2498
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
2499
+ _request_timeout: Union[
2500
+ None,
2501
+ Annotated[StrictFloat, Field(gt=0)],
2502
+ Tuple[
2503
+ Annotated[StrictFloat, Field(gt=0)],
2504
+ Annotated[StrictFloat, Field(gt=0)]
2505
+ ]
2506
+ ] = None,
2507
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2508
+ _content_type: Optional[StrictStr] = None,
2509
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2510
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2511
+ ) -> ApiResponse[V1ListWorkflowDependenciesResponse]:
2512
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
2513
+
2514
+
2515
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
2516
+ :type name: str
2517
+ :param _request_timeout: timeout setting for this request. If one
2518
+ number provided, it will be total request
2519
+ timeout. It can also be a pair (tuple) of
2520
+ (connection, read) timeouts.
2521
+ :type _request_timeout: int, tuple(int, int), optional
2522
+ :param _request_auth: set to override the auth_settings for an a single
2523
+ request; this effectively ignores the
2524
+ authentication in the spec for a single request.
2525
+ :type _request_auth: dict, optional
2526
+ :param _content_type: force content-type for the request.
2527
+ :type _content_type: str, Optional
2528
+ :param _headers: set to override the headers for a single
2529
+ request; this effectively ignores the headers
2530
+ in the spec for a single request.
2531
+ :type _headers: dict, optional
2532
+ :param _host_index: set to override the host_index for a single
2533
+ request; this effectively ignores the host_index
2534
+ in the spec for a single request.
2535
+ :type _host_index: int, optional
2536
+ :return: Returns the result object.
2537
+ """ # noqa: E501
2538
+
2539
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
2540
+ name=name,
2541
+ _request_auth=_request_auth,
2542
+ _content_type=_content_type,
2543
+ _headers=_headers,
2544
+ _host_index=_host_index
2545
+ )
2546
+
2547
+ _response_types_map: Dict[str, Optional[str]] = {
2548
+ '200': "V1ListWorkflowDependenciesResponse",
2549
+ }
2550
+ response_data = self.api_client.call_api(
2551
+ *_param,
2552
+ _request_timeout=_request_timeout
2553
+ )
2554
+ response_data.read()
2555
+ return self.api_client.response_deserialize(
2556
+ response_data=response_data,
2557
+ response_types_map=_response_types_map,
2558
+ )
2559
+
2560
+
2561
+ @validate_call
2562
+ def workflow_service_list_workflow_dependencies_without_preload_content(
2563
+ self,
2564
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
2565
+ _request_timeout: Union[
2566
+ None,
2567
+ Annotated[StrictFloat, Field(gt=0)],
2568
+ Tuple[
2569
+ Annotated[StrictFloat, Field(gt=0)],
2570
+ Annotated[StrictFloat, Field(gt=0)]
2571
+ ]
2572
+ ] = None,
2573
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2574
+ _content_type: Optional[StrictStr] = None,
2575
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2576
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2577
+ ) -> RESTResponseType:
2578
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
2579
+
2580
+
2581
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
2582
+ :type name: str
2583
+ :param _request_timeout: timeout setting for this request. If one
2584
+ number provided, it will be total request
2585
+ timeout. It can also be a pair (tuple) of
2586
+ (connection, read) timeouts.
2587
+ :type _request_timeout: int, tuple(int, int), optional
2588
+ :param _request_auth: set to override the auth_settings for an a single
2589
+ request; this effectively ignores the
2590
+ authentication in the spec for a single request.
2591
+ :type _request_auth: dict, optional
2592
+ :param _content_type: force content-type for the request.
2593
+ :type _content_type: str, Optional
2594
+ :param _headers: set to override the headers for a single
2595
+ request; this effectively ignores the headers
2596
+ in the spec for a single request.
2597
+ :type _headers: dict, optional
2598
+ :param _host_index: set to override the host_index for a single
2599
+ request; this effectively ignores the host_index
2600
+ in the spec for a single request.
2601
+ :type _host_index: int, optional
2602
+ :return: Returns the result object.
2603
+ """ # noqa: E501
2604
+
2605
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
2606
+ name=name,
2607
+ _request_auth=_request_auth,
2608
+ _content_type=_content_type,
2609
+ _headers=_headers,
2610
+ _host_index=_host_index
2611
+ )
2612
+
2613
+ _response_types_map: Dict[str, Optional[str]] = {
2614
+ '200': "V1ListWorkflowDependenciesResponse",
2615
+ }
2616
+ response_data = self.api_client.call_api(
2617
+ *_param,
2618
+ _request_timeout=_request_timeout
2619
+ )
2620
+ return response_data.response
2621
+
2622
+
2623
+ def _workflow_service_list_workflow_dependencies_serialize(
2624
+ self,
2625
+ name,
2626
+ _request_auth,
2627
+ _content_type,
2628
+ _headers,
2629
+ _host_index,
2630
+ ) -> RequestSerialized:
2631
+
2632
+ _host = None
2633
+
2634
+ _collection_formats: Dict[str, str] = {
2635
+ }
2636
+
2637
+ _path_params: Dict[str, str] = {}
2638
+ _query_params: List[Tuple[str, str]] = []
2639
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2640
+ _form_params: List[Tuple[str, str]] = []
2641
+ _files: Dict[str, Union[str, bytes]] = {}
2642
+ _body_params: Optional[bytes] = None
2643
+
2644
+ # process the path parameters
2645
+ if name is not None:
2646
+ _path_params['name'] = name
2647
+ # process the query parameters
2648
+ # process the header parameters
2649
+ # process the form parameters
2650
+ # process the body parameter
2651
+
2652
+
2653
+ # set the HTTP header `Accept`
2654
+ _header_params['Accept'] = self.api_client.select_header_accept(
2655
+ [
2656
+ 'application/json'
2657
+ ]
2658
+ )
2659
+
2660
+
2661
+ # authentication setting
2662
+ _auth_settings: List[str] = [
2663
+ ]
2664
+
2665
+ return self.api_client.param_serialize(
2666
+ method='GET',
2667
+ resource_path='/v1/{name}:nodeDependencies',
2668
+ path_params=_path_params,
2669
+ query_params=_query_params,
2670
+ header_params=_header_params,
2671
+ body=_body_params,
2672
+ post_params=_form_params,
2673
+ files=_files,
2674
+ auth_settings=_auth_settings,
2675
+ collection_formats=_collection_formats,
2676
+ _host=_host,
2677
+ _request_auth=_request_auth
2678
+ )
2679
+
2680
+
2681
+
2682
+
2683
+ @validate_call
2684
+ def workflow_service_list_workflows(
2685
+ self,
2686
+ _request_timeout: Union[
2687
+ None,
2688
+ Annotated[StrictFloat, Field(gt=0)],
2689
+ Tuple[
2690
+ Annotated[StrictFloat, Field(gt=0)],
2691
+ Annotated[StrictFloat, Field(gt=0)]
2692
+ ]
2693
+ ] = None,
2694
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2695
+ _content_type: Optional[StrictStr] = None,
2696
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2697
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2698
+ ) -> V1ListWorkflowsResponse:
2699
+ """ListWorkflows lists Workflows.
2700
+
2701
+
2702
+ :param _request_timeout: timeout setting for this request. If one
2703
+ number provided, it will be total request
2704
+ timeout. It can also be a pair (tuple) of
2705
+ (connection, read) timeouts.
2706
+ :type _request_timeout: int, tuple(int, int), optional
2707
+ :param _request_auth: set to override the auth_settings for an a single
2708
+ request; this effectively ignores the
2709
+ authentication in the spec for a single request.
2710
+ :type _request_auth: dict, optional
2711
+ :param _content_type: force content-type for the request.
2712
+ :type _content_type: str, Optional
2713
+ :param _headers: set to override the headers for a single
2714
+ request; this effectively ignores the headers
2715
+ in the spec for a single request.
2716
+ :type _headers: dict, optional
2717
+ :param _host_index: set to override the host_index for a single
2718
+ request; this effectively ignores the host_index
2719
+ in the spec for a single request.
2720
+ :type _host_index: int, optional
2721
+ :return: Returns the result object.
2722
+ """ # noqa: E501
2723
+
2724
+ _param = self._workflow_service_list_workflows_serialize(
2725
+ _request_auth=_request_auth,
2726
+ _content_type=_content_type,
2727
+ _headers=_headers,
2728
+ _host_index=_host_index
2729
+ )
2730
+
2731
+ _response_types_map: Dict[str, Optional[str]] = {
2732
+ '200': "V1ListWorkflowsResponse",
2733
+ }
2734
+ response_data = self.api_client.call_api(
2735
+ *_param,
2736
+ _request_timeout=_request_timeout
2737
+ )
2738
+ response_data.read()
2739
+ return self.api_client.response_deserialize(
2740
+ response_data=response_data,
2741
+ response_types_map=_response_types_map,
2742
+ ).data
2743
+
2744
+
2745
+ @validate_call
2746
+ def workflow_service_list_workflows_with_http_info(
2747
+ self,
1893
2748
  _request_timeout: Union[
1894
2749
  None,
1895
2750
  Annotated[StrictFloat, Field(gt=0)],
@@ -1902,12 +2757,10 @@ class WorkflowServiceApi:
1902
2757
  _content_type: Optional[StrictStr] = None,
1903
2758
  _headers: Optional[Dict[StrictStr, Any]] = None,
1904
2759
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1905
- ) -> V1ListWorkflowDependenciesResponse:
1906
- """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
2760
+ ) -> ApiResponse[V1ListWorkflowsResponse]:
2761
+ """ListWorkflows lists Workflows.
1907
2762
 
1908
2763
 
1909
- :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1910
- :type name: str
1911
2764
  :param _request_timeout: timeout setting for this request. If one
1912
2765
  number provided, it will be total request
1913
2766
  timeout. It can also be a pair (tuple) of
@@ -1930,8 +2783,7 @@ class WorkflowServiceApi:
1930
2783
  :return: Returns the result object.
1931
2784
  """ # noqa: E501
1932
2785
 
1933
- _param = self._workflow_service_list_workflow_dependencies_serialize(
1934
- name=name,
2786
+ _param = self._workflow_service_list_workflows_serialize(
1935
2787
  _request_auth=_request_auth,
1936
2788
  _content_type=_content_type,
1937
2789
  _headers=_headers,
@@ -1939,7 +2791,184 @@ class WorkflowServiceApi:
1939
2791
  )
1940
2792
 
1941
2793
  _response_types_map: Dict[str, Optional[str]] = {
1942
- '200': "V1ListWorkflowDependenciesResponse",
2794
+ '200': "V1ListWorkflowsResponse",
2795
+ }
2796
+ response_data = self.api_client.call_api(
2797
+ *_param,
2798
+ _request_timeout=_request_timeout
2799
+ )
2800
+ response_data.read()
2801
+ return self.api_client.response_deserialize(
2802
+ response_data=response_data,
2803
+ response_types_map=_response_types_map,
2804
+ )
2805
+
2806
+
2807
+ @validate_call
2808
+ def workflow_service_list_workflows_without_preload_content(
2809
+ self,
2810
+ _request_timeout: Union[
2811
+ None,
2812
+ Annotated[StrictFloat, Field(gt=0)],
2813
+ Tuple[
2814
+ Annotated[StrictFloat, Field(gt=0)],
2815
+ Annotated[StrictFloat, Field(gt=0)]
2816
+ ]
2817
+ ] = None,
2818
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2819
+ _content_type: Optional[StrictStr] = None,
2820
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2821
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2822
+ ) -> RESTResponseType:
2823
+ """ListWorkflows lists Workflows.
2824
+
2825
+
2826
+ :param _request_timeout: timeout setting for this request. If one
2827
+ number provided, it will be total request
2828
+ timeout. It can also be a pair (tuple) of
2829
+ (connection, read) timeouts.
2830
+ :type _request_timeout: int, tuple(int, int), optional
2831
+ :param _request_auth: set to override the auth_settings for an a single
2832
+ request; this effectively ignores the
2833
+ authentication in the spec for a single request.
2834
+ :type _request_auth: dict, optional
2835
+ :param _content_type: force content-type for the request.
2836
+ :type _content_type: str, Optional
2837
+ :param _headers: set to override the headers for a single
2838
+ request; this effectively ignores the headers
2839
+ in the spec for a single request.
2840
+ :type _headers: dict, optional
2841
+ :param _host_index: set to override the host_index for a single
2842
+ request; this effectively ignores the host_index
2843
+ in the spec for a single request.
2844
+ :type _host_index: int, optional
2845
+ :return: Returns the result object.
2846
+ """ # noqa: E501
2847
+
2848
+ _param = self._workflow_service_list_workflows_serialize(
2849
+ _request_auth=_request_auth,
2850
+ _content_type=_content_type,
2851
+ _headers=_headers,
2852
+ _host_index=_host_index
2853
+ )
2854
+
2855
+ _response_types_map: Dict[str, Optional[str]] = {
2856
+ '200': "V1ListWorkflowsResponse",
2857
+ }
2858
+ response_data = self.api_client.call_api(
2859
+ *_param,
2860
+ _request_timeout=_request_timeout
2861
+ )
2862
+ return response_data.response
2863
+
2864
+
2865
+ def _workflow_service_list_workflows_serialize(
2866
+ self,
2867
+ _request_auth,
2868
+ _content_type,
2869
+ _headers,
2870
+ _host_index,
2871
+ ) -> RequestSerialized:
2872
+
2873
+ _host = None
2874
+
2875
+ _collection_formats: Dict[str, str] = {
2876
+ }
2877
+
2878
+ _path_params: Dict[str, str] = {}
2879
+ _query_params: List[Tuple[str, str]] = []
2880
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2881
+ _form_params: List[Tuple[str, str]] = []
2882
+ _files: Dict[str, Union[str, bytes]] = {}
2883
+ _body_params: Optional[bytes] = None
2884
+
2885
+ # process the path parameters
2886
+ # process the query parameters
2887
+ # process the header parameters
2888
+ # process the form parameters
2889
+ # process the body parameter
2890
+
2891
+
2892
+ # set the HTTP header `Accept`
2893
+ _header_params['Accept'] = self.api_client.select_header_accept(
2894
+ [
2895
+ 'application/json'
2896
+ ]
2897
+ )
2898
+
2899
+
2900
+ # authentication setting
2901
+ _auth_settings: List[str] = [
2902
+ ]
2903
+
2904
+ return self.api_client.param_serialize(
2905
+ method='GET',
2906
+ resource_path='/v1/workflows',
2907
+ path_params=_path_params,
2908
+ query_params=_query_params,
2909
+ header_params=_header_params,
2910
+ body=_body_params,
2911
+ post_params=_form_params,
2912
+ files=_files,
2913
+ auth_settings=_auth_settings,
2914
+ collection_formats=_collection_formats,
2915
+ _host=_host,
2916
+ _request_auth=_request_auth
2917
+ )
2918
+
2919
+
2920
+
2921
+
2922
+ @validate_call
2923
+ def workflow_service_list_workflows_shared_with_me(
2924
+ self,
2925
+ _request_timeout: Union[
2926
+ None,
2927
+ Annotated[StrictFloat, Field(gt=0)],
2928
+ Tuple[
2929
+ Annotated[StrictFloat, Field(gt=0)],
2930
+ Annotated[StrictFloat, Field(gt=0)]
2931
+ ]
2932
+ ] = None,
2933
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2934
+ _content_type: Optional[StrictStr] = None,
2935
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2936
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2937
+ ) -> V1ListWorkflowsSharedWithMeResponse:
2938
+ """ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
2939
+
2940
+
2941
+ :param _request_timeout: timeout setting for this request. If one
2942
+ number provided, it will be total request
2943
+ timeout. It can also be a pair (tuple) of
2944
+ (connection, read) timeouts.
2945
+ :type _request_timeout: int, tuple(int, int), optional
2946
+ :param _request_auth: set to override the auth_settings for an a single
2947
+ request; this effectively ignores the
2948
+ authentication in the spec for a single request.
2949
+ :type _request_auth: dict, optional
2950
+ :param _content_type: force content-type for the request.
2951
+ :type _content_type: str, Optional
2952
+ :param _headers: set to override the headers for a single
2953
+ request; this effectively ignores the headers
2954
+ in the spec for a single request.
2955
+ :type _headers: dict, optional
2956
+ :param _host_index: set to override the host_index for a single
2957
+ request; this effectively ignores the host_index
2958
+ in the spec for a single request.
2959
+ :type _host_index: int, optional
2960
+ :return: Returns the result object.
2961
+ """ # noqa: E501
2962
+
2963
+ _param = self._workflow_service_list_workflows_shared_with_me_serialize(
2964
+ _request_auth=_request_auth,
2965
+ _content_type=_content_type,
2966
+ _headers=_headers,
2967
+ _host_index=_host_index
2968
+ )
2969
+
2970
+ _response_types_map: Dict[str, Optional[str]] = {
2971
+ '200': "V1ListWorkflowsSharedWithMeResponse",
1943
2972
  }
1944
2973
  response_data = self.api_client.call_api(
1945
2974
  *_param,
@@ -1953,9 +2982,8 @@ class WorkflowServiceApi:
1953
2982
 
1954
2983
 
1955
2984
  @validate_call
1956
- def workflow_service_list_workflow_dependencies_with_http_info(
2985
+ def workflow_service_list_workflows_shared_with_me_with_http_info(
1957
2986
  self,
1958
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1959
2987
  _request_timeout: Union[
1960
2988
  None,
1961
2989
  Annotated[StrictFloat, Field(gt=0)],
@@ -1968,12 +2996,10 @@ class WorkflowServiceApi:
1968
2996
  _content_type: Optional[StrictStr] = None,
1969
2997
  _headers: Optional[Dict[StrictStr, Any]] = None,
1970
2998
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1971
- ) -> ApiResponse[V1ListWorkflowDependenciesResponse]:
1972
- """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
2999
+ ) -> ApiResponse[V1ListWorkflowsSharedWithMeResponse]:
3000
+ """ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
1973
3001
 
1974
3002
 
1975
- :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1976
- :type name: str
1977
3003
  :param _request_timeout: timeout setting for this request. If one
1978
3004
  number provided, it will be total request
1979
3005
  timeout. It can also be a pair (tuple) of
@@ -1996,8 +3022,7 @@ class WorkflowServiceApi:
1996
3022
  :return: Returns the result object.
1997
3023
  """ # noqa: E501
1998
3024
 
1999
- _param = self._workflow_service_list_workflow_dependencies_serialize(
2000
- name=name,
3025
+ _param = self._workflow_service_list_workflows_shared_with_me_serialize(
2001
3026
  _request_auth=_request_auth,
2002
3027
  _content_type=_content_type,
2003
3028
  _headers=_headers,
@@ -2005,7 +3030,7 @@ class WorkflowServiceApi:
2005
3030
  )
2006
3031
 
2007
3032
  _response_types_map: Dict[str, Optional[str]] = {
2008
- '200': "V1ListWorkflowDependenciesResponse",
3033
+ '200': "V1ListWorkflowsSharedWithMeResponse",
2009
3034
  }
2010
3035
  response_data = self.api_client.call_api(
2011
3036
  *_param,
@@ -2019,9 +3044,8 @@ class WorkflowServiceApi:
2019
3044
 
2020
3045
 
2021
3046
  @validate_call
2022
- def workflow_service_list_workflow_dependencies_without_preload_content(
3047
+ def workflow_service_list_workflows_shared_with_me_without_preload_content(
2023
3048
  self,
2024
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
2025
3049
  _request_timeout: Union[
2026
3050
  None,
2027
3051
  Annotated[StrictFloat, Field(gt=0)],
@@ -2035,11 +3059,9 @@ class WorkflowServiceApi:
2035
3059
  _headers: Optional[Dict[StrictStr, Any]] = None,
2036
3060
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2037
3061
  ) -> RESTResponseType:
2038
- """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
3062
+ """ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
2039
3063
 
2040
3064
 
2041
- :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
2042
- :type name: str
2043
3065
  :param _request_timeout: timeout setting for this request. If one
2044
3066
  number provided, it will be total request
2045
3067
  timeout. It can also be a pair (tuple) of
@@ -2062,8 +3084,7 @@ class WorkflowServiceApi:
2062
3084
  :return: Returns the result object.
2063
3085
  """ # noqa: E501
2064
3086
 
2065
- _param = self._workflow_service_list_workflow_dependencies_serialize(
2066
- name=name,
3087
+ _param = self._workflow_service_list_workflows_shared_with_me_serialize(
2067
3088
  _request_auth=_request_auth,
2068
3089
  _content_type=_content_type,
2069
3090
  _headers=_headers,
@@ -2071,7 +3092,7 @@ class WorkflowServiceApi:
2071
3092
  )
2072
3093
 
2073
3094
  _response_types_map: Dict[str, Optional[str]] = {
2074
- '200': "V1ListWorkflowDependenciesResponse",
3095
+ '200': "V1ListWorkflowsSharedWithMeResponse",
2075
3096
  }
2076
3097
  response_data = self.api_client.call_api(
2077
3098
  *_param,
@@ -2080,9 +3101,8 @@ class WorkflowServiceApi:
2080
3101
  return response_data.response
2081
3102
 
2082
3103
 
2083
- def _workflow_service_list_workflow_dependencies_serialize(
3104
+ def _workflow_service_list_workflows_shared_with_me_serialize(
2084
3105
  self,
2085
- name,
2086
3106
  _request_auth,
2087
3107
  _content_type,
2088
3108
  _headers,
@@ -2102,8 +3122,6 @@ class WorkflowServiceApi:
2102
3122
  _body_params: Optional[bytes] = None
2103
3123
 
2104
3124
  # process the path parameters
2105
- if name is not None:
2106
- _path_params['name'] = name
2107
3125
  # process the query parameters
2108
3126
  # process the header parameters
2109
3127
  # process the form parameters
@@ -2124,7 +3142,7 @@ class WorkflowServiceApi:
2124
3142
 
2125
3143
  return self.api_client.param_serialize(
2126
3144
  method='GET',
2127
- resource_path='/v1/{name}:nodeDependencies',
3145
+ resource_path='/v1/workflows:sharedWithMe',
2128
3146
  path_params=_path_params,
2129
3147
  query_params=_query_params,
2130
3148
  header_params=_header_params,
@@ -2141,8 +3159,10 @@ class WorkflowServiceApi:
2141
3159
 
2142
3160
 
2143
3161
  @validate_call
2144
- def workflow_service_list_workflows(
3162
+ def workflow_service_revoke_workflow_access(
2145
3163
  self,
3164
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to revoke access from.")],
3165
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
2146
3166
  _request_timeout: Union[
2147
3167
  None,
2148
3168
  Annotated[StrictFloat, Field(gt=0)],
@@ -2155,10 +3175,14 @@ class WorkflowServiceApi:
2155
3175
  _content_type: Optional[StrictStr] = None,
2156
3176
  _headers: Optional[Dict[StrictStr, Any]] = None,
2157
3177
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2158
- ) -> V1ListWorkflowsResponse:
2159
- """ListWorkflows lists Workflows.
3178
+ ) -> object:
3179
+ """RevokeWorkflowAccess revokes access to a Workflow from a subject.
2160
3180
 
2161
3181
 
3182
+ :param name_2: Required. The name of the Workflow to revoke access from. (required)
3183
+ :type name_2: str
3184
+ :param body: (required)
3185
+ :type body: WorkflowServiceRevokeWorkflowAccessRequest
2162
3186
  :param _request_timeout: timeout setting for this request. If one
2163
3187
  number provided, it will be total request
2164
3188
  timeout. It can also be a pair (tuple) of
@@ -2181,7 +3205,9 @@ class WorkflowServiceApi:
2181
3205
  :return: Returns the result object.
2182
3206
  """ # noqa: E501
2183
3207
 
2184
- _param = self._workflow_service_list_workflows_serialize(
3208
+ _param = self._workflow_service_revoke_workflow_access_serialize(
3209
+ name_2=name_2,
3210
+ body=body,
2185
3211
  _request_auth=_request_auth,
2186
3212
  _content_type=_content_type,
2187
3213
  _headers=_headers,
@@ -2189,7 +3215,7 @@ class WorkflowServiceApi:
2189
3215
  )
2190
3216
 
2191
3217
  _response_types_map: Dict[str, Optional[str]] = {
2192
- '200': "V1ListWorkflowsResponse",
3218
+ '200': "object",
2193
3219
  }
2194
3220
  response_data = self.api_client.call_api(
2195
3221
  *_param,
@@ -2203,8 +3229,10 @@ class WorkflowServiceApi:
2203
3229
 
2204
3230
 
2205
3231
  @validate_call
2206
- def workflow_service_list_workflows_with_http_info(
3232
+ def workflow_service_revoke_workflow_access_with_http_info(
2207
3233
  self,
3234
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to revoke access from.")],
3235
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
2208
3236
  _request_timeout: Union[
2209
3237
  None,
2210
3238
  Annotated[StrictFloat, Field(gt=0)],
@@ -2217,10 +3245,14 @@ class WorkflowServiceApi:
2217
3245
  _content_type: Optional[StrictStr] = None,
2218
3246
  _headers: Optional[Dict[StrictStr, Any]] = None,
2219
3247
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2220
- ) -> ApiResponse[V1ListWorkflowsResponse]:
2221
- """ListWorkflows lists Workflows.
3248
+ ) -> ApiResponse[object]:
3249
+ """RevokeWorkflowAccess revokes access to a Workflow from a subject.
2222
3250
 
2223
3251
 
3252
+ :param name_2: Required. The name of the Workflow to revoke access from. (required)
3253
+ :type name_2: str
3254
+ :param body: (required)
3255
+ :type body: WorkflowServiceRevokeWorkflowAccessRequest
2224
3256
  :param _request_timeout: timeout setting for this request. If one
2225
3257
  number provided, it will be total request
2226
3258
  timeout. It can also be a pair (tuple) of
@@ -2243,7 +3275,9 @@ class WorkflowServiceApi:
2243
3275
  :return: Returns the result object.
2244
3276
  """ # noqa: E501
2245
3277
 
2246
- _param = self._workflow_service_list_workflows_serialize(
3278
+ _param = self._workflow_service_revoke_workflow_access_serialize(
3279
+ name_2=name_2,
3280
+ body=body,
2247
3281
  _request_auth=_request_auth,
2248
3282
  _content_type=_content_type,
2249
3283
  _headers=_headers,
@@ -2251,7 +3285,7 @@ class WorkflowServiceApi:
2251
3285
  )
2252
3286
 
2253
3287
  _response_types_map: Dict[str, Optional[str]] = {
2254
- '200': "V1ListWorkflowsResponse",
3288
+ '200': "object",
2255
3289
  }
2256
3290
  response_data = self.api_client.call_api(
2257
3291
  *_param,
@@ -2265,8 +3299,10 @@ class WorkflowServiceApi:
2265
3299
 
2266
3300
 
2267
3301
  @validate_call
2268
- def workflow_service_list_workflows_without_preload_content(
3302
+ def workflow_service_revoke_workflow_access_without_preload_content(
2269
3303
  self,
3304
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to revoke access from.")],
3305
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
2270
3306
  _request_timeout: Union[
2271
3307
  None,
2272
3308
  Annotated[StrictFloat, Field(gt=0)],
@@ -2280,9 +3316,13 @@ class WorkflowServiceApi:
2280
3316
  _headers: Optional[Dict[StrictStr, Any]] = None,
2281
3317
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2282
3318
  ) -> RESTResponseType:
2283
- """ListWorkflows lists Workflows.
3319
+ """RevokeWorkflowAccess revokes access to a Workflow from a subject.
2284
3320
 
2285
3321
 
3322
+ :param name_2: Required. The name of the Workflow to revoke access from. (required)
3323
+ :type name_2: str
3324
+ :param body: (required)
3325
+ :type body: WorkflowServiceRevokeWorkflowAccessRequest
2286
3326
  :param _request_timeout: timeout setting for this request. If one
2287
3327
  number provided, it will be total request
2288
3328
  timeout. It can also be a pair (tuple) of
@@ -2305,7 +3345,9 @@ class WorkflowServiceApi:
2305
3345
  :return: Returns the result object.
2306
3346
  """ # noqa: E501
2307
3347
 
2308
- _param = self._workflow_service_list_workflows_serialize(
3348
+ _param = self._workflow_service_revoke_workflow_access_serialize(
3349
+ name_2=name_2,
3350
+ body=body,
2309
3351
  _request_auth=_request_auth,
2310
3352
  _content_type=_content_type,
2311
3353
  _headers=_headers,
@@ -2313,7 +3355,7 @@ class WorkflowServiceApi:
2313
3355
  )
2314
3356
 
2315
3357
  _response_types_map: Dict[str, Optional[str]] = {
2316
- '200': "V1ListWorkflowsResponse",
3358
+ '200': "object",
2317
3359
  }
2318
3360
  response_data = self.api_client.call_api(
2319
3361
  *_param,
@@ -2322,8 +3364,10 @@ class WorkflowServiceApi:
2322
3364
  return response_data.response
2323
3365
 
2324
3366
 
2325
- def _workflow_service_list_workflows_serialize(
3367
+ def _workflow_service_revoke_workflow_access_serialize(
2326
3368
  self,
3369
+ name_2,
3370
+ body,
2327
3371
  _request_auth,
2328
3372
  _content_type,
2329
3373
  _headers,
@@ -2343,10 +3387,14 @@ class WorkflowServiceApi:
2343
3387
  _body_params: Optional[bytes] = None
2344
3388
 
2345
3389
  # process the path parameters
3390
+ if name_2 is not None:
3391
+ _path_params['name_2'] = name_2
2346
3392
  # process the query parameters
2347
3393
  # process the header parameters
2348
3394
  # process the form parameters
2349
3395
  # process the body parameter
3396
+ if body is not None:
3397
+ _body_params = body
2350
3398
 
2351
3399
 
2352
3400
  # set the HTTP header `Accept`
@@ -2356,14 +3404,27 @@ class WorkflowServiceApi:
2356
3404
  ]
2357
3405
  )
2358
3406
 
3407
+ # set the HTTP header `Content-Type`
3408
+ if _content_type:
3409
+ _header_params['Content-Type'] = _content_type
3410
+ else:
3411
+ _default_content_type = (
3412
+ self.api_client.select_header_content_type(
3413
+ [
3414
+ 'application/json'
3415
+ ]
3416
+ )
3417
+ )
3418
+ if _default_content_type is not None:
3419
+ _header_params['Content-Type'] = _default_content_type
2359
3420
 
2360
3421
  # authentication setting
2361
3422
  _auth_settings: List[str] = [
2362
3423
  ]
2363
3424
 
2364
3425
  return self.api_client.param_serialize(
2365
- method='GET',
2366
- resource_path='/v1/workflows',
3426
+ method='POST',
3427
+ resource_path='/v1/{name_2}:revokeAccess',
2367
3428
  path_params=_path_params,
2368
3429
  query_params=_query_params,
2369
3430
  header_params=_header_params,