eval-studio-client 1.2.0a1__py3-none-any.whl → 1.2.0a3__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 (92) 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 +1420 -101
  8. eval_studio_client/api/docs/DashboardServiceApi.md +272 -0
  9. eval_studio_client/api/docs/InfoServiceApi.md +63 -0
  10. eval_studio_client/api/docs/PerturbationServiceCreatePerturbationRequest.md +1 -1
  11. eval_studio_client/api/docs/TestServiceApi.md +268 -0
  12. eval_studio_client/api/docs/TestServiceGrantTestAccessRequest.md +30 -0
  13. eval_studio_client/api/docs/TestServiceRevokeTestAccessRequest.md +30 -0
  14. eval_studio_client/api/docs/V1CreatePerturbationResponse.md +1 -1
  15. eval_studio_client/api/docs/V1FindWorkflowsByCollectionIDResponse.md +29 -0
  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/V1WorkflowResultArtifactType.md +12 -0
  32. eval_studio_client/api/docs/V1WorkflowResultReportFormat.md +11 -0
  33. eval_studio_client/api/docs/WorkflowResultServiceApi.md +282 -0
  34. eval_studio_client/api/docs/WorkflowServiceApi.md +340 -0
  35. eval_studio_client/api/docs/WorkflowServiceRevokeWorkflowAccessRequest.md +30 -0
  36. eval_studio_client/api/models/__init__.py +20 -0
  37. eval_studio_client/api/models/perturbation_service_create_perturbation_request.py +1 -1
  38. eval_studio_client/api/models/test_service_grant_test_access_request.py +90 -0
  39. eval_studio_client/api/models/test_service_revoke_test_access_request.py +90 -0
  40. eval_studio_client/api/models/v1_create_perturbation_response.py +1 -1
  41. eval_studio_client/api/models/v1_find_workflows_by_collection_id_response.py +95 -0
  42. eval_studio_client/api/models/v1_get_stats_response.py +91 -0
  43. eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +87 -0
  44. eval_studio_client/api/models/v1_get_workflow_result_report_response.py +89 -0
  45. eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +94 -0
  46. eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +87 -0
  47. eval_studio_client/api/models/v1_info.py +6 -2
  48. eval_studio_client/api/models/v1_list_dashboard_access_response.py +95 -0
  49. eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +95 -0
  50. eval_studio_client/api/models/v1_list_test_access_response.py +95 -0
  51. eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +95 -0
  52. eval_studio_client/api/models/v1_list_workflow_access_response.py +95 -0
  53. eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +95 -0
  54. eval_studio_client/api/models/v1_role.py +38 -0
  55. eval_studio_client/api/models/v1_role_binding.py +92 -0
  56. eval_studio_client/api/models/v1_stats.py +106 -0
  57. eval_studio_client/api/models/v1_workflow_node_type.py +1 -0
  58. eval_studio_client/api/models/v1_workflow_result_artifact_type.py +40 -0
  59. eval_studio_client/api/models/v1_workflow_result_report_format.py +37 -0
  60. eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +90 -0
  61. eval_studio_client/api/test/test_dashboard_service_api.py +28 -0
  62. eval_studio_client/api/test/test_info_service_api.py +6 -0
  63. eval_studio_client/api/test/test_test_service_api.py +24 -0
  64. eval_studio_client/api/test/test_test_service_grant_test_access_request.py +52 -0
  65. eval_studio_client/api/test/test_test_service_revoke_test_access_request.py +52 -0
  66. eval_studio_client/api/test/test_v1_find_workflows_by_collection_id_response.py +95 -0
  67. eval_studio_client/api/test/test_v1_get_info_response.py +3 -1
  68. eval_studio_client/api/test/test_v1_get_stats_response.py +54 -0
  69. eval_studio_client/api/test/test_v1_get_workflow_result_corpus_patch_response.py +51 -0
  70. eval_studio_client/api/test/test_v1_get_workflow_result_report_response.py +54 -0
  71. eval_studio_client/api/test/test_v1_get_workflow_result_summary_response.py +58 -0
  72. eval_studio_client/api/test/test_v1_get_workflow_result_system_prompt_patch_response.py +51 -0
  73. eval_studio_client/api/test/test_v1_info.py +3 -1
  74. eval_studio_client/api/test/test_v1_list_dashboard_access_response.py +56 -0
  75. eval_studio_client/api/test/test_v1_list_dashboards_shared_with_me_response.py +69 -0
  76. eval_studio_client/api/test/test_v1_list_test_access_response.py +56 -0
  77. eval_studio_client/api/test/test_v1_list_tests_shared_with_me_response.py +70 -0
  78. eval_studio_client/api/test/test_v1_list_workflow_access_response.py +56 -0
  79. eval_studio_client/api/test/test_v1_list_workflows_shared_with_me_response.py +95 -0
  80. eval_studio_client/api/test/test_v1_role.py +33 -0
  81. eval_studio_client/api/test/test_v1_role_binding.py +53 -0
  82. eval_studio_client/api/test/test_v1_stats.py +53 -0
  83. eval_studio_client/api/test/test_v1_workflow_result_artifact_type.py +33 -0
  84. eval_studio_client/api/test/test_v1_workflow_result_report_format.py +33 -0
  85. eval_studio_client/api/test/test_workflow_result_service_api.py +59 -0
  86. eval_studio_client/api/test/test_workflow_service_api.py +35 -0
  87. eval_studio_client/api/test/test_workflow_service_revoke_workflow_access_request.py +52 -0
  88. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +940 -13
  89. eval_studio_client/tests.py +3 -3
  90. {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a3.dist-info}/METADATA +2 -1
  91. {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a3.dist-info}/RECORD +92 -29
  92. {eval_studio_client-1.2.0a1.dist-info → eval_studio_client-1.2.0a3.dist-info}/WHEEL +0 -0
@@ -16,21 +16,27 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, field_validator
19
+ from pydantic import Field, StrictStr, field_validator
20
+ from typing import Any, Dict, Optional
20
21
  from typing_extensions import Annotated
21
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
22
24
  from eval_studio_client.api.models.v1_batch_delete_workflows_request import V1BatchDeleteWorkflowsRequest
23
25
  from eval_studio_client.api.models.v1_batch_delete_workflows_response import V1BatchDeleteWorkflowsResponse
24
26
  from eval_studio_client.api.models.v1_clone_workflow_response import V1CloneWorkflowResponse
25
27
  from eval_studio_client.api.models.v1_create_workflow_response import V1CreateWorkflowResponse
26
28
  from eval_studio_client.api.models.v1_delete_workflow_response import V1DeleteWorkflowResponse
29
+ from eval_studio_client.api.models.v1_find_workflows_by_collection_id_response import V1FindWorkflowsByCollectionIDResponse
27
30
  from eval_studio_client.api.models.v1_get_guardrails_configuration_response import V1GetGuardrailsConfigurationResponse
28
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
29
33
  from eval_studio_client.api.models.v1_list_workflow_dependencies_response import V1ListWorkflowDependenciesResponse
30
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
31
36
  from eval_studio_client.api.models.v1_update_workflow_response import V1UpdateWorkflowResponse
32
37
  from eval_studio_client.api.models.v1_workflow import V1Workflow
33
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
34
40
 
35
41
  from eval_studio_client.api.api_client import ApiClient, RequestSerialized
36
42
  from eval_studio_client.api.api_response import ApiResponse
@@ -1120,10 +1126,1310 @@ class WorkflowServiceApi:
1120
1126
 
1121
1127
 
1122
1128
 
1129
+ @validate_call
1130
+ def workflow_service_find_workflows_by_collection_id(
1131
+ self,
1132
+ collection_id: Annotated[Optional[StrictStr], Field(description="Required. The H2OGPTe collection ID to find the Workflow by.")] = None,
1133
+ _request_timeout: Union[
1134
+ None,
1135
+ Annotated[StrictFloat, Field(gt=0)],
1136
+ Tuple[
1137
+ Annotated[StrictFloat, Field(gt=0)],
1138
+ Annotated[StrictFloat, Field(gt=0)]
1139
+ ]
1140
+ ] = None,
1141
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1142
+ _content_type: Optional[StrictStr] = None,
1143
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1144
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1145
+ ) -> V1FindWorkflowsByCollectionIDResponse:
1146
+ """FindWorkflowByCollectionID finds a Workflow by used H2OGPTe collection ID.
1147
+
1148
+
1149
+ :param collection_id: Required. The H2OGPTe collection ID to find the Workflow by.
1150
+ :type collection_id: str
1151
+ :param _request_timeout: timeout setting for this request. If one
1152
+ number provided, it will be total request
1153
+ timeout. It can also be a pair (tuple) of
1154
+ (connection, read) timeouts.
1155
+ :type _request_timeout: int, tuple(int, int), optional
1156
+ :param _request_auth: set to override the auth_settings for an a single
1157
+ request; this effectively ignores the
1158
+ authentication in the spec for a single request.
1159
+ :type _request_auth: dict, optional
1160
+ :param _content_type: force content-type for the request.
1161
+ :type _content_type: str, Optional
1162
+ :param _headers: set to override the headers for a single
1163
+ request; this effectively ignores the headers
1164
+ in the spec for a single request.
1165
+ :type _headers: dict, optional
1166
+ :param _host_index: set to override the host_index for a single
1167
+ request; this effectively ignores the host_index
1168
+ in the spec for a single request.
1169
+ :type _host_index: int, optional
1170
+ :return: Returns the result object.
1171
+ """ # noqa: E501
1172
+
1173
+ _param = self._workflow_service_find_workflows_by_collection_id_serialize(
1174
+ collection_id=collection_id,
1175
+ _request_auth=_request_auth,
1176
+ _content_type=_content_type,
1177
+ _headers=_headers,
1178
+ _host_index=_host_index
1179
+ )
1180
+
1181
+ _response_types_map: Dict[str, Optional[str]] = {
1182
+ '200': "V1FindWorkflowsByCollectionIDResponse",
1183
+ }
1184
+ response_data = self.api_client.call_api(
1185
+ *_param,
1186
+ _request_timeout=_request_timeout
1187
+ )
1188
+ response_data.read()
1189
+ return self.api_client.response_deserialize(
1190
+ response_data=response_data,
1191
+ response_types_map=_response_types_map,
1192
+ ).data
1193
+
1194
+
1195
+ @validate_call
1196
+ def workflow_service_find_workflows_by_collection_id_with_http_info(
1197
+ self,
1198
+ collection_id: Annotated[Optional[StrictStr], Field(description="Required. The H2OGPTe collection ID to find the Workflow by.")] = None,
1199
+ _request_timeout: Union[
1200
+ None,
1201
+ Annotated[StrictFloat, Field(gt=0)],
1202
+ Tuple[
1203
+ Annotated[StrictFloat, Field(gt=0)],
1204
+ Annotated[StrictFloat, Field(gt=0)]
1205
+ ]
1206
+ ] = None,
1207
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1208
+ _content_type: Optional[StrictStr] = None,
1209
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1210
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1211
+ ) -> ApiResponse[V1FindWorkflowsByCollectionIDResponse]:
1212
+ """FindWorkflowByCollectionID finds a Workflow by used H2OGPTe collection ID.
1213
+
1214
+
1215
+ :param collection_id: Required. The H2OGPTe collection ID to find the Workflow by.
1216
+ :type collection_id: str
1217
+ :param _request_timeout: timeout setting for this request. If one
1218
+ number provided, it will be total request
1219
+ timeout. It can also be a pair (tuple) of
1220
+ (connection, read) timeouts.
1221
+ :type _request_timeout: int, tuple(int, int), optional
1222
+ :param _request_auth: set to override the auth_settings for an a single
1223
+ request; this effectively ignores the
1224
+ authentication in the spec for a single request.
1225
+ :type _request_auth: dict, optional
1226
+ :param _content_type: force content-type for the request.
1227
+ :type _content_type: str, Optional
1228
+ :param _headers: set to override the headers for a single
1229
+ request; this effectively ignores the headers
1230
+ in the spec for a single request.
1231
+ :type _headers: dict, optional
1232
+ :param _host_index: set to override the host_index for a single
1233
+ request; this effectively ignores the host_index
1234
+ in the spec for a single request.
1235
+ :type _host_index: int, optional
1236
+ :return: Returns the result object.
1237
+ """ # noqa: E501
1238
+
1239
+ _param = self._workflow_service_find_workflows_by_collection_id_serialize(
1240
+ collection_id=collection_id,
1241
+ _request_auth=_request_auth,
1242
+ _content_type=_content_type,
1243
+ _headers=_headers,
1244
+ _host_index=_host_index
1245
+ )
1246
+
1247
+ _response_types_map: Dict[str, Optional[str]] = {
1248
+ '200': "V1FindWorkflowsByCollectionIDResponse",
1249
+ }
1250
+ response_data = self.api_client.call_api(
1251
+ *_param,
1252
+ _request_timeout=_request_timeout
1253
+ )
1254
+ response_data.read()
1255
+ return self.api_client.response_deserialize(
1256
+ response_data=response_data,
1257
+ response_types_map=_response_types_map,
1258
+ )
1259
+
1260
+
1261
+ @validate_call
1262
+ def workflow_service_find_workflows_by_collection_id_without_preload_content(
1263
+ self,
1264
+ collection_id: Annotated[Optional[StrictStr], Field(description="Required. The H2OGPTe collection ID to find the Workflow by.")] = None,
1265
+ _request_timeout: Union[
1266
+ None,
1267
+ Annotated[StrictFloat, Field(gt=0)],
1268
+ Tuple[
1269
+ Annotated[StrictFloat, Field(gt=0)],
1270
+ Annotated[StrictFloat, Field(gt=0)]
1271
+ ]
1272
+ ] = None,
1273
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1274
+ _content_type: Optional[StrictStr] = None,
1275
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1276
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1277
+ ) -> RESTResponseType:
1278
+ """FindWorkflowByCollectionID finds a Workflow by used H2OGPTe collection ID.
1279
+
1280
+
1281
+ :param collection_id: Required. The H2OGPTe collection ID to find the Workflow by.
1282
+ :type collection_id: str
1283
+ :param _request_timeout: timeout setting for this request. If one
1284
+ number provided, it will be total request
1285
+ timeout. It can also be a pair (tuple) of
1286
+ (connection, read) timeouts.
1287
+ :type _request_timeout: int, tuple(int, int), optional
1288
+ :param _request_auth: set to override the auth_settings for an a single
1289
+ request; this effectively ignores the
1290
+ authentication in the spec for a single request.
1291
+ :type _request_auth: dict, optional
1292
+ :param _content_type: force content-type for the request.
1293
+ :type _content_type: str, Optional
1294
+ :param _headers: set to override the headers for a single
1295
+ request; this effectively ignores the headers
1296
+ in the spec for a single request.
1297
+ :type _headers: dict, optional
1298
+ :param _host_index: set to override the host_index for a single
1299
+ request; this effectively ignores the host_index
1300
+ in the spec for a single request.
1301
+ :type _host_index: int, optional
1302
+ :return: Returns the result object.
1303
+ """ # noqa: E501
1304
+
1305
+ _param = self._workflow_service_find_workflows_by_collection_id_serialize(
1306
+ collection_id=collection_id,
1307
+ _request_auth=_request_auth,
1308
+ _content_type=_content_type,
1309
+ _headers=_headers,
1310
+ _host_index=_host_index
1311
+ )
1312
+
1313
+ _response_types_map: Dict[str, Optional[str]] = {
1314
+ '200': "V1FindWorkflowsByCollectionIDResponse",
1315
+ }
1316
+ response_data = self.api_client.call_api(
1317
+ *_param,
1318
+ _request_timeout=_request_timeout
1319
+ )
1320
+ return response_data.response
1321
+
1322
+
1323
+ def _workflow_service_find_workflows_by_collection_id_serialize(
1324
+ self,
1325
+ collection_id,
1326
+ _request_auth,
1327
+ _content_type,
1328
+ _headers,
1329
+ _host_index,
1330
+ ) -> RequestSerialized:
1331
+
1332
+ _host = None
1333
+
1334
+ _collection_formats: Dict[str, str] = {
1335
+ }
1336
+
1337
+ _path_params: Dict[str, str] = {}
1338
+ _query_params: List[Tuple[str, str]] = []
1339
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1340
+ _form_params: List[Tuple[str, str]] = []
1341
+ _files: Dict[str, Union[str, bytes]] = {}
1342
+ _body_params: Optional[bytes] = None
1343
+
1344
+ # process the path parameters
1345
+ # process the query parameters
1346
+ if collection_id is not None:
1347
+
1348
+ _query_params.append(('collectionId', collection_id))
1349
+
1350
+ # process the header parameters
1351
+ # process the form parameters
1352
+ # process the body parameter
1353
+
1354
+
1355
+ # set the HTTP header `Accept`
1356
+ _header_params['Accept'] = self.api_client.select_header_accept(
1357
+ [
1358
+ 'application/json'
1359
+ ]
1360
+ )
1361
+
1362
+
1363
+ # authentication setting
1364
+ _auth_settings: List[str] = [
1365
+ ]
1366
+
1367
+ return self.api_client.param_serialize(
1368
+ method='GET',
1369
+ resource_path='/v1/workflows:findWorkflowByH2OGPTeCollectionID',
1370
+ path_params=_path_params,
1371
+ query_params=_query_params,
1372
+ header_params=_header_params,
1373
+ body=_body_params,
1374
+ post_params=_form_params,
1375
+ files=_files,
1376
+ auth_settings=_auth_settings,
1377
+ collection_formats=_collection_formats,
1378
+ _host=_host,
1379
+ _request_auth=_request_auth
1380
+ )
1381
+
1382
+
1383
+
1384
+
1123
1385
  @validate_call
1124
1386
  def workflow_service_get_guardrails_configuration(
1125
1387
  self,
1126
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
1388
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
1389
+ _request_timeout: Union[
1390
+ None,
1391
+ Annotated[StrictFloat, Field(gt=0)],
1392
+ Tuple[
1393
+ Annotated[StrictFloat, Field(gt=0)],
1394
+ Annotated[StrictFloat, Field(gt=0)]
1395
+ ]
1396
+ ] = None,
1397
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1398
+ _content_type: Optional[StrictStr] = None,
1399
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1400
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1401
+ ) -> V1GetGuardrailsConfigurationResponse:
1402
+ """workflow_service_get_guardrails_configuration
1403
+
1404
+
1405
+ :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
1406
+ :type name: str
1407
+ :param _request_timeout: timeout setting for this request. If one
1408
+ number provided, it will be total request
1409
+ timeout. It can also be a pair (tuple) of
1410
+ (connection, read) timeouts.
1411
+ :type _request_timeout: int, tuple(int, int), optional
1412
+ :param _request_auth: set to override the auth_settings for an a single
1413
+ request; this effectively ignores the
1414
+ authentication in the spec for a single request.
1415
+ :type _request_auth: dict, optional
1416
+ :param _content_type: force content-type for the request.
1417
+ :type _content_type: str, Optional
1418
+ :param _headers: set to override the headers for a single
1419
+ request; this effectively ignores the headers
1420
+ in the spec for a single request.
1421
+ :type _headers: dict, optional
1422
+ :param _host_index: set to override the host_index for a single
1423
+ request; this effectively ignores the host_index
1424
+ in the spec for a single request.
1425
+ :type _host_index: int, optional
1426
+ :return: Returns the result object.
1427
+ """ # noqa: E501
1428
+
1429
+ _param = self._workflow_service_get_guardrails_configuration_serialize(
1430
+ name=name,
1431
+ _request_auth=_request_auth,
1432
+ _content_type=_content_type,
1433
+ _headers=_headers,
1434
+ _host_index=_host_index
1435
+ )
1436
+
1437
+ _response_types_map: Dict[str, Optional[str]] = {
1438
+ '200': "V1GetGuardrailsConfigurationResponse",
1439
+ }
1440
+ response_data = self.api_client.call_api(
1441
+ *_param,
1442
+ _request_timeout=_request_timeout
1443
+ )
1444
+ response_data.read()
1445
+ return self.api_client.response_deserialize(
1446
+ response_data=response_data,
1447
+ response_types_map=_response_types_map,
1448
+ ).data
1449
+
1450
+
1451
+ @validate_call
1452
+ def workflow_service_get_guardrails_configuration_with_http_info(
1453
+ self,
1454
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
1455
+ _request_timeout: Union[
1456
+ None,
1457
+ Annotated[StrictFloat, Field(gt=0)],
1458
+ Tuple[
1459
+ Annotated[StrictFloat, Field(gt=0)],
1460
+ Annotated[StrictFloat, Field(gt=0)]
1461
+ ]
1462
+ ] = None,
1463
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1464
+ _content_type: Optional[StrictStr] = None,
1465
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1466
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1467
+ ) -> ApiResponse[V1GetGuardrailsConfigurationResponse]:
1468
+ """workflow_service_get_guardrails_configuration
1469
+
1470
+
1471
+ :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
1472
+ :type name: str
1473
+ :param _request_timeout: timeout setting for this request. If one
1474
+ number provided, it will be total request
1475
+ timeout. It can also be a pair (tuple) of
1476
+ (connection, read) timeouts.
1477
+ :type _request_timeout: int, tuple(int, int), optional
1478
+ :param _request_auth: set to override the auth_settings for an a single
1479
+ request; this effectively ignores the
1480
+ authentication in the spec for a single request.
1481
+ :type _request_auth: dict, optional
1482
+ :param _content_type: force content-type for the request.
1483
+ :type _content_type: str, Optional
1484
+ :param _headers: set to override the headers for a single
1485
+ request; this effectively ignores the headers
1486
+ in the spec for a single request.
1487
+ :type _headers: dict, optional
1488
+ :param _host_index: set to override the host_index for a single
1489
+ request; this effectively ignores the host_index
1490
+ in the spec for a single request.
1491
+ :type _host_index: int, optional
1492
+ :return: Returns the result object.
1493
+ """ # noqa: E501
1494
+
1495
+ _param = self._workflow_service_get_guardrails_configuration_serialize(
1496
+ name=name,
1497
+ _request_auth=_request_auth,
1498
+ _content_type=_content_type,
1499
+ _headers=_headers,
1500
+ _host_index=_host_index
1501
+ )
1502
+
1503
+ _response_types_map: Dict[str, Optional[str]] = {
1504
+ '200': "V1GetGuardrailsConfigurationResponse",
1505
+ }
1506
+ response_data = self.api_client.call_api(
1507
+ *_param,
1508
+ _request_timeout=_request_timeout
1509
+ )
1510
+ response_data.read()
1511
+ return self.api_client.response_deserialize(
1512
+ response_data=response_data,
1513
+ response_types_map=_response_types_map,
1514
+ )
1515
+
1516
+
1517
+ @validate_call
1518
+ def workflow_service_get_guardrails_configuration_without_preload_content(
1519
+ self,
1520
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
1521
+ _request_timeout: Union[
1522
+ None,
1523
+ Annotated[StrictFloat, Field(gt=0)],
1524
+ Tuple[
1525
+ Annotated[StrictFloat, Field(gt=0)],
1526
+ Annotated[StrictFloat, Field(gt=0)]
1527
+ ]
1528
+ ] = None,
1529
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1530
+ _content_type: Optional[StrictStr] = None,
1531
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1532
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1533
+ ) -> RESTResponseType:
1534
+ """workflow_service_get_guardrails_configuration
1535
+
1536
+
1537
+ :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
1538
+ :type name: str
1539
+ :param _request_timeout: timeout setting for this request. If one
1540
+ number provided, it will be total request
1541
+ timeout. It can also be a pair (tuple) of
1542
+ (connection, read) timeouts.
1543
+ :type _request_timeout: int, tuple(int, int), optional
1544
+ :param _request_auth: set to override the auth_settings for an a single
1545
+ request; this effectively ignores the
1546
+ authentication in the spec for a single request.
1547
+ :type _request_auth: dict, optional
1548
+ :param _content_type: force content-type for the request.
1549
+ :type _content_type: str, Optional
1550
+ :param _headers: set to override the headers for a single
1551
+ request; this effectively ignores the headers
1552
+ in the spec for a single request.
1553
+ :type _headers: dict, optional
1554
+ :param _host_index: set to override the host_index for a single
1555
+ request; this effectively ignores the host_index
1556
+ in the spec for a single request.
1557
+ :type _host_index: int, optional
1558
+ :return: Returns the result object.
1559
+ """ # noqa: E501
1560
+
1561
+ _param = self._workflow_service_get_guardrails_configuration_serialize(
1562
+ name=name,
1563
+ _request_auth=_request_auth,
1564
+ _content_type=_content_type,
1565
+ _headers=_headers,
1566
+ _host_index=_host_index
1567
+ )
1568
+
1569
+ _response_types_map: Dict[str, Optional[str]] = {
1570
+ '200': "V1GetGuardrailsConfigurationResponse",
1571
+ }
1572
+ response_data = self.api_client.call_api(
1573
+ *_param,
1574
+ _request_timeout=_request_timeout
1575
+ )
1576
+ return response_data.response
1577
+
1578
+
1579
+ def _workflow_service_get_guardrails_configuration_serialize(
1580
+ self,
1581
+ name,
1582
+ _request_auth,
1583
+ _content_type,
1584
+ _headers,
1585
+ _host_index,
1586
+ ) -> RequestSerialized:
1587
+
1588
+ _host = None
1589
+
1590
+ _collection_formats: Dict[str, str] = {
1591
+ }
1592
+
1593
+ _path_params: Dict[str, str] = {}
1594
+ _query_params: List[Tuple[str, str]] = []
1595
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1596
+ _form_params: List[Tuple[str, str]] = []
1597
+ _files: Dict[str, Union[str, bytes]] = {}
1598
+ _body_params: Optional[bytes] = None
1599
+
1600
+ # process the path parameters
1601
+ if name is not None:
1602
+ _path_params['name'] = name
1603
+ # process the query parameters
1604
+ # process the header parameters
1605
+ # process the form parameters
1606
+ # process the body parameter
1607
+
1608
+
1609
+ # set the HTTP header `Accept`
1610
+ _header_params['Accept'] = self.api_client.select_header_accept(
1611
+ [
1612
+ 'application/json'
1613
+ ]
1614
+ )
1615
+
1616
+
1617
+ # authentication setting
1618
+ _auth_settings: List[str] = [
1619
+ ]
1620
+
1621
+ return self.api_client.param_serialize(
1622
+ method='GET',
1623
+ resource_path='/v1/{name}:getGuardrailsConfiguration',
1624
+ path_params=_path_params,
1625
+ query_params=_query_params,
1626
+ header_params=_header_params,
1627
+ body=_body_params,
1628
+ post_params=_form_params,
1629
+ files=_files,
1630
+ auth_settings=_auth_settings,
1631
+ collection_formats=_collection_formats,
1632
+ _host=_host,
1633
+ _request_auth=_request_auth
1634
+ )
1635
+
1636
+
1637
+
1638
+
1639
+ @validate_call
1640
+ def workflow_service_get_workflow(
1641
+ self,
1642
+ name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1643
+ _request_timeout: Union[
1644
+ None,
1645
+ Annotated[StrictFloat, Field(gt=0)],
1646
+ Tuple[
1647
+ Annotated[StrictFloat, Field(gt=0)],
1648
+ Annotated[StrictFloat, Field(gt=0)]
1649
+ ]
1650
+ ] = None,
1651
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1652
+ _content_type: Optional[StrictStr] = None,
1653
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1654
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1655
+ ) -> V1GetWorkflowResponse:
1656
+ """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
1657
+
1658
+
1659
+ :param name_12: Required. The name of the Workflow to retrieve. (required)
1660
+ :type name_12: str
1661
+ :param _request_timeout: timeout setting for this request. If one
1662
+ number provided, it will be total request
1663
+ timeout. It can also be a pair (tuple) of
1664
+ (connection, read) timeouts.
1665
+ :type _request_timeout: int, tuple(int, int), optional
1666
+ :param _request_auth: set to override the auth_settings for an a single
1667
+ request; this effectively ignores the
1668
+ authentication in the spec for a single request.
1669
+ :type _request_auth: dict, optional
1670
+ :param _content_type: force content-type for the request.
1671
+ :type _content_type: str, Optional
1672
+ :param _headers: set to override the headers for a single
1673
+ request; this effectively ignores the headers
1674
+ in the spec for a single request.
1675
+ :type _headers: dict, optional
1676
+ :param _host_index: set to override the host_index for a single
1677
+ request; this effectively ignores the host_index
1678
+ in the spec for a single request.
1679
+ :type _host_index: int, optional
1680
+ :return: Returns the result object.
1681
+ """ # noqa: E501
1682
+
1683
+ _param = self._workflow_service_get_workflow_serialize(
1684
+ name_12=name_12,
1685
+ _request_auth=_request_auth,
1686
+ _content_type=_content_type,
1687
+ _headers=_headers,
1688
+ _host_index=_host_index
1689
+ )
1690
+
1691
+ _response_types_map: Dict[str, Optional[str]] = {
1692
+ '200': "V1GetWorkflowResponse",
1693
+ }
1694
+ response_data = self.api_client.call_api(
1695
+ *_param,
1696
+ _request_timeout=_request_timeout
1697
+ )
1698
+ response_data.read()
1699
+ return self.api_client.response_deserialize(
1700
+ response_data=response_data,
1701
+ response_types_map=_response_types_map,
1702
+ ).data
1703
+
1704
+
1705
+ @validate_call
1706
+ def workflow_service_get_workflow_with_http_info(
1707
+ self,
1708
+ name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1709
+ _request_timeout: Union[
1710
+ None,
1711
+ Annotated[StrictFloat, Field(gt=0)],
1712
+ Tuple[
1713
+ Annotated[StrictFloat, Field(gt=0)],
1714
+ Annotated[StrictFloat, Field(gt=0)]
1715
+ ]
1716
+ ] = None,
1717
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1718
+ _content_type: Optional[StrictStr] = None,
1719
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1720
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1721
+ ) -> ApiResponse[V1GetWorkflowResponse]:
1722
+ """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
1723
+
1724
+
1725
+ :param name_12: Required. The name of the Workflow to retrieve. (required)
1726
+ :type name_12: str
1727
+ :param _request_timeout: timeout setting for this request. If one
1728
+ number provided, it will be total request
1729
+ timeout. It can also be a pair (tuple) of
1730
+ (connection, read) timeouts.
1731
+ :type _request_timeout: int, tuple(int, int), optional
1732
+ :param _request_auth: set to override the auth_settings for an a single
1733
+ request; this effectively ignores the
1734
+ authentication in the spec for a single request.
1735
+ :type _request_auth: dict, optional
1736
+ :param _content_type: force content-type for the request.
1737
+ :type _content_type: str, Optional
1738
+ :param _headers: set to override the headers for a single
1739
+ request; this effectively ignores the headers
1740
+ in the spec for a single request.
1741
+ :type _headers: dict, optional
1742
+ :param _host_index: set to override the host_index for a single
1743
+ request; this effectively ignores the host_index
1744
+ in the spec for a single request.
1745
+ :type _host_index: int, optional
1746
+ :return: Returns the result object.
1747
+ """ # noqa: E501
1748
+
1749
+ _param = self._workflow_service_get_workflow_serialize(
1750
+ name_12=name_12,
1751
+ _request_auth=_request_auth,
1752
+ _content_type=_content_type,
1753
+ _headers=_headers,
1754
+ _host_index=_host_index
1755
+ )
1756
+
1757
+ _response_types_map: Dict[str, Optional[str]] = {
1758
+ '200': "V1GetWorkflowResponse",
1759
+ }
1760
+ response_data = self.api_client.call_api(
1761
+ *_param,
1762
+ _request_timeout=_request_timeout
1763
+ )
1764
+ response_data.read()
1765
+ return self.api_client.response_deserialize(
1766
+ response_data=response_data,
1767
+ response_types_map=_response_types_map,
1768
+ )
1769
+
1770
+
1771
+ @validate_call
1772
+ def workflow_service_get_workflow_without_preload_content(
1773
+ self,
1774
+ name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1775
+ _request_timeout: Union[
1776
+ None,
1777
+ Annotated[StrictFloat, Field(gt=0)],
1778
+ Tuple[
1779
+ Annotated[StrictFloat, Field(gt=0)],
1780
+ Annotated[StrictFloat, Field(gt=0)]
1781
+ ]
1782
+ ] = None,
1783
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1784
+ _content_type: Optional[StrictStr] = None,
1785
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1786
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1787
+ ) -> RESTResponseType:
1788
+ """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
1789
+
1790
+
1791
+ :param name_12: Required. The name of the Workflow to retrieve. (required)
1792
+ :type name_12: str
1793
+ :param _request_timeout: timeout setting for this request. If one
1794
+ number provided, it will be total request
1795
+ timeout. It can also be a pair (tuple) of
1796
+ (connection, read) timeouts.
1797
+ :type _request_timeout: int, tuple(int, int), optional
1798
+ :param _request_auth: set to override the auth_settings for an a single
1799
+ request; this effectively ignores the
1800
+ authentication in the spec for a single request.
1801
+ :type _request_auth: dict, optional
1802
+ :param _content_type: force content-type for the request.
1803
+ :type _content_type: str, Optional
1804
+ :param _headers: set to override the headers for a single
1805
+ request; this effectively ignores the headers
1806
+ in the spec for a single request.
1807
+ :type _headers: dict, optional
1808
+ :param _host_index: set to override the host_index for a single
1809
+ request; this effectively ignores the host_index
1810
+ in the spec for a single request.
1811
+ :type _host_index: int, optional
1812
+ :return: Returns the result object.
1813
+ """ # noqa: E501
1814
+
1815
+ _param = self._workflow_service_get_workflow_serialize(
1816
+ name_12=name_12,
1817
+ _request_auth=_request_auth,
1818
+ _content_type=_content_type,
1819
+ _headers=_headers,
1820
+ _host_index=_host_index
1821
+ )
1822
+
1823
+ _response_types_map: Dict[str, Optional[str]] = {
1824
+ '200': "V1GetWorkflowResponse",
1825
+ }
1826
+ response_data = self.api_client.call_api(
1827
+ *_param,
1828
+ _request_timeout=_request_timeout
1829
+ )
1830
+ return response_data.response
1831
+
1832
+
1833
+ def _workflow_service_get_workflow_serialize(
1834
+ self,
1835
+ name_12,
1836
+ _request_auth,
1837
+ _content_type,
1838
+ _headers,
1839
+ _host_index,
1840
+ ) -> RequestSerialized:
1841
+
1842
+ _host = None
1843
+
1844
+ _collection_formats: Dict[str, str] = {
1845
+ }
1846
+
1847
+ _path_params: Dict[str, str] = {}
1848
+ _query_params: List[Tuple[str, str]] = []
1849
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1850
+ _form_params: List[Tuple[str, str]] = []
1851
+ _files: Dict[str, Union[str, bytes]] = {}
1852
+ _body_params: Optional[bytes] = None
1853
+
1854
+ # process the path parameters
1855
+ if name_12 is not None:
1856
+ _path_params['name_12'] = name_12
1857
+ # process the query parameters
1858
+ # process the header parameters
1859
+ # process the form parameters
1860
+ # process the body parameter
1861
+
1862
+
1863
+ # set the HTTP header `Accept`
1864
+ _header_params['Accept'] = self.api_client.select_header_accept(
1865
+ [
1866
+ 'application/json'
1867
+ ]
1868
+ )
1869
+
1870
+
1871
+ # authentication setting
1872
+ _auth_settings: List[str] = [
1873
+ ]
1874
+
1875
+ return self.api_client.param_serialize(
1876
+ method='GET',
1877
+ resource_path='/v1/{name_12}',
1878
+ path_params=_path_params,
1879
+ query_params=_query_params,
1880
+ header_params=_header_params,
1881
+ body=_body_params,
1882
+ post_params=_form_params,
1883
+ files=_files,
1884
+ auth_settings=_auth_settings,
1885
+ collection_formats=_collection_formats,
1886
+ _host=_host,
1887
+ _request_auth=_request_auth
1888
+ )
1889
+
1890
+
1891
+
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
+
2429
+ @validate_call
2430
+ def workflow_service_list_workflow_dependencies(
2431
+ self,
2432
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1127
2433
  _request_timeout: Union[
1128
2434
  None,
1129
2435
  Annotated[StrictFloat, Field(gt=0)],
@@ -1136,11 +2442,11 @@ class WorkflowServiceApi:
1136
2442
  _content_type: Optional[StrictStr] = None,
1137
2443
  _headers: Optional[Dict[StrictStr, Any]] = None,
1138
2444
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1139
- ) -> V1GetGuardrailsConfigurationResponse:
1140
- """workflow_service_get_guardrails_configuration
2445
+ ) -> V1ListWorkflowDependenciesResponse:
2446
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
1141
2447
 
1142
2448
 
1143
- :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
2449
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1144
2450
  :type name: str
1145
2451
  :param _request_timeout: timeout setting for this request. If one
1146
2452
  number provided, it will be total request
@@ -1164,7 +2470,7 @@ class WorkflowServiceApi:
1164
2470
  :return: Returns the result object.
1165
2471
  """ # noqa: E501
1166
2472
 
1167
- _param = self._workflow_service_get_guardrails_configuration_serialize(
2473
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
1168
2474
  name=name,
1169
2475
  _request_auth=_request_auth,
1170
2476
  _content_type=_content_type,
@@ -1173,7 +2479,7 @@ class WorkflowServiceApi:
1173
2479
  )
1174
2480
 
1175
2481
  _response_types_map: Dict[str, Optional[str]] = {
1176
- '200': "V1GetGuardrailsConfigurationResponse",
2482
+ '200': "V1ListWorkflowDependenciesResponse",
1177
2483
  }
1178
2484
  response_data = self.api_client.call_api(
1179
2485
  *_param,
@@ -1187,9 +2493,9 @@ class WorkflowServiceApi:
1187
2493
 
1188
2494
 
1189
2495
  @validate_call
1190
- def workflow_service_get_guardrails_configuration_with_http_info(
2496
+ def workflow_service_list_workflow_dependencies_with_http_info(
1191
2497
  self,
1192
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
2498
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1193
2499
  _request_timeout: Union[
1194
2500
  None,
1195
2501
  Annotated[StrictFloat, Field(gt=0)],
@@ -1202,11 +2508,11 @@ class WorkflowServiceApi:
1202
2508
  _content_type: Optional[StrictStr] = None,
1203
2509
  _headers: Optional[Dict[StrictStr, Any]] = None,
1204
2510
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1205
- ) -> ApiResponse[V1GetGuardrailsConfigurationResponse]:
1206
- """workflow_service_get_guardrails_configuration
2511
+ ) -> ApiResponse[V1ListWorkflowDependenciesResponse]:
2512
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
1207
2513
 
1208
2514
 
1209
- :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
2515
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1210
2516
  :type name: str
1211
2517
  :param _request_timeout: timeout setting for this request. If one
1212
2518
  number provided, it will be total request
@@ -1230,7 +2536,7 @@ class WorkflowServiceApi:
1230
2536
  :return: Returns the result object.
1231
2537
  """ # noqa: E501
1232
2538
 
1233
- _param = self._workflow_service_get_guardrails_configuration_serialize(
2539
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
1234
2540
  name=name,
1235
2541
  _request_auth=_request_auth,
1236
2542
  _content_type=_content_type,
@@ -1239,7 +2545,7 @@ class WorkflowServiceApi:
1239
2545
  )
1240
2546
 
1241
2547
  _response_types_map: Dict[str, Optional[str]] = {
1242
- '200': "V1GetGuardrailsConfigurationResponse",
2548
+ '200': "V1ListWorkflowDependenciesResponse",
1243
2549
  }
1244
2550
  response_data = self.api_client.call_api(
1245
2551
  *_param,
@@ -1253,9 +2559,9 @@ class WorkflowServiceApi:
1253
2559
 
1254
2560
 
1255
2561
  @validate_call
1256
- def workflow_service_get_guardrails_configuration_without_preload_content(
2562
+ def workflow_service_list_workflow_dependencies_without_preload_content(
1257
2563
  self,
1258
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned.")],
2564
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1259
2565
  _request_timeout: Union[
1260
2566
  None,
1261
2567
  Annotated[StrictFloat, Field(gt=0)],
@@ -1269,10 +2575,10 @@ class WorkflowServiceApi:
1269
2575
  _headers: Optional[Dict[StrictStr, Any]] = None,
1270
2576
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1271
2577
  ) -> RESTResponseType:
1272
- """workflow_service_get_guardrails_configuration
2578
+ """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
1273
2579
 
1274
2580
 
1275
- :param name: Required. The name of the Workflow to retrieve guardrails configuration for. The Human Calibration node must be completed, otherwise an error is returned. (required)
2581
+ :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1276
2582
  :type name: str
1277
2583
  :param _request_timeout: timeout setting for this request. If one
1278
2584
  number provided, it will be total request
@@ -1296,7 +2602,7 @@ class WorkflowServiceApi:
1296
2602
  :return: Returns the result object.
1297
2603
  """ # noqa: E501
1298
2604
 
1299
- _param = self._workflow_service_get_guardrails_configuration_serialize(
2605
+ _param = self._workflow_service_list_workflow_dependencies_serialize(
1300
2606
  name=name,
1301
2607
  _request_auth=_request_auth,
1302
2608
  _content_type=_content_type,
@@ -1305,7 +2611,7 @@ class WorkflowServiceApi:
1305
2611
  )
1306
2612
 
1307
2613
  _response_types_map: Dict[str, Optional[str]] = {
1308
- '200': "V1GetGuardrailsConfigurationResponse",
2614
+ '200': "V1ListWorkflowDependenciesResponse",
1309
2615
  }
1310
2616
  response_data = self.api_client.call_api(
1311
2617
  *_param,
@@ -1314,7 +2620,7 @@ class WorkflowServiceApi:
1314
2620
  return response_data.response
1315
2621
 
1316
2622
 
1317
- def _workflow_service_get_guardrails_configuration_serialize(
2623
+ def _workflow_service_list_workflow_dependencies_serialize(
1318
2624
  self,
1319
2625
  name,
1320
2626
  _request_auth,
@@ -1358,7 +2664,7 @@ class WorkflowServiceApi:
1358
2664
 
1359
2665
  return self.api_client.param_serialize(
1360
2666
  method='GET',
1361
- resource_path='/v1/{name}:getGuardrailsConfiguration',
2667
+ resource_path='/v1/{name}:nodeDependencies',
1362
2668
  path_params=_path_params,
1363
2669
  query_params=_query_params,
1364
2670
  header_params=_header_params,
@@ -1375,9 +2681,8 @@ class WorkflowServiceApi:
1375
2681
 
1376
2682
 
1377
2683
  @validate_call
1378
- def workflow_service_get_workflow(
2684
+ def workflow_service_list_workflows(
1379
2685
  self,
1380
- name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1381
2686
  _request_timeout: Union[
1382
2687
  None,
1383
2688
  Annotated[StrictFloat, Field(gt=0)],
@@ -1390,12 +2695,10 @@ class WorkflowServiceApi:
1390
2695
  _content_type: Optional[StrictStr] = None,
1391
2696
  _headers: Optional[Dict[StrictStr, Any]] = None,
1392
2697
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1393
- ) -> V1GetWorkflowResponse:
1394
- """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
2698
+ ) -> V1ListWorkflowsResponse:
2699
+ """ListWorkflows lists Workflows.
1395
2700
 
1396
2701
 
1397
- :param name_12: Required. The name of the Workflow to retrieve. (required)
1398
- :type name_12: str
1399
2702
  :param _request_timeout: timeout setting for this request. If one
1400
2703
  number provided, it will be total request
1401
2704
  timeout. It can also be a pair (tuple) of
@@ -1418,8 +2721,7 @@ class WorkflowServiceApi:
1418
2721
  :return: Returns the result object.
1419
2722
  """ # noqa: E501
1420
2723
 
1421
- _param = self._workflow_service_get_workflow_serialize(
1422
- name_12=name_12,
2724
+ _param = self._workflow_service_list_workflows_serialize(
1423
2725
  _request_auth=_request_auth,
1424
2726
  _content_type=_content_type,
1425
2727
  _headers=_headers,
@@ -1427,7 +2729,7 @@ class WorkflowServiceApi:
1427
2729
  )
1428
2730
 
1429
2731
  _response_types_map: Dict[str, Optional[str]] = {
1430
- '200': "V1GetWorkflowResponse",
2732
+ '200': "V1ListWorkflowsResponse",
1431
2733
  }
1432
2734
  response_data = self.api_client.call_api(
1433
2735
  *_param,
@@ -1441,9 +2743,8 @@ class WorkflowServiceApi:
1441
2743
 
1442
2744
 
1443
2745
  @validate_call
1444
- def workflow_service_get_workflow_with_http_info(
2746
+ def workflow_service_list_workflows_with_http_info(
1445
2747
  self,
1446
- name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1447
2748
  _request_timeout: Union[
1448
2749
  None,
1449
2750
  Annotated[StrictFloat, Field(gt=0)],
@@ -1456,12 +2757,10 @@ class WorkflowServiceApi:
1456
2757
  _content_type: Optional[StrictStr] = None,
1457
2758
  _headers: Optional[Dict[StrictStr, Any]] = None,
1458
2759
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1459
- ) -> ApiResponse[V1GetWorkflowResponse]:
1460
- """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
2760
+ ) -> ApiResponse[V1ListWorkflowsResponse]:
2761
+ """ListWorkflows lists Workflows.
1461
2762
 
1462
2763
 
1463
- :param name_12: Required. The name of the Workflow to retrieve. (required)
1464
- :type name_12: str
1465
2764
  :param _request_timeout: timeout setting for this request. If one
1466
2765
  number provided, it will be total request
1467
2766
  timeout. It can also be a pair (tuple) of
@@ -1484,8 +2783,7 @@ class WorkflowServiceApi:
1484
2783
  :return: Returns the result object.
1485
2784
  """ # noqa: E501
1486
2785
 
1487
- _param = self._workflow_service_get_workflow_serialize(
1488
- name_12=name_12,
2786
+ _param = self._workflow_service_list_workflows_serialize(
1489
2787
  _request_auth=_request_auth,
1490
2788
  _content_type=_content_type,
1491
2789
  _headers=_headers,
@@ -1493,7 +2791,7 @@ class WorkflowServiceApi:
1493
2791
  )
1494
2792
 
1495
2793
  _response_types_map: Dict[str, Optional[str]] = {
1496
- '200': "V1GetWorkflowResponse",
2794
+ '200': "V1ListWorkflowsResponse",
1497
2795
  }
1498
2796
  response_data = self.api_client.call_api(
1499
2797
  *_param,
@@ -1507,9 +2805,8 @@ class WorkflowServiceApi:
1507
2805
 
1508
2806
 
1509
2807
  @validate_call
1510
- def workflow_service_get_workflow_without_preload_content(
2808
+ def workflow_service_list_workflows_without_preload_content(
1511
2809
  self,
1512
- name_12: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve.")],
1513
2810
  _request_timeout: Union[
1514
2811
  None,
1515
2812
  Annotated[StrictFloat, Field(gt=0)],
@@ -1523,11 +2820,9 @@ class WorkflowServiceApi:
1523
2820
  _headers: Optional[Dict[StrictStr, Any]] = None,
1524
2821
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1525
2822
  ) -> RESTResponseType:
1526
- """GetWorkflow retrieves a Workflow by name. Deleted Workflow is returned without error, it has a delete_time and deleter fields set.
2823
+ """ListWorkflows lists Workflows.
1527
2824
 
1528
2825
 
1529
- :param name_12: Required. The name of the Workflow to retrieve. (required)
1530
- :type name_12: str
1531
2826
  :param _request_timeout: timeout setting for this request. If one
1532
2827
  number provided, it will be total request
1533
2828
  timeout. It can also be a pair (tuple) of
@@ -1550,8 +2845,7 @@ class WorkflowServiceApi:
1550
2845
  :return: Returns the result object.
1551
2846
  """ # noqa: E501
1552
2847
 
1553
- _param = self._workflow_service_get_workflow_serialize(
1554
- name_12=name_12,
2848
+ _param = self._workflow_service_list_workflows_serialize(
1555
2849
  _request_auth=_request_auth,
1556
2850
  _content_type=_content_type,
1557
2851
  _headers=_headers,
@@ -1559,7 +2853,7 @@ class WorkflowServiceApi:
1559
2853
  )
1560
2854
 
1561
2855
  _response_types_map: Dict[str, Optional[str]] = {
1562
- '200': "V1GetWorkflowResponse",
2856
+ '200': "V1ListWorkflowsResponse",
1563
2857
  }
1564
2858
  response_data = self.api_client.call_api(
1565
2859
  *_param,
@@ -1568,9 +2862,8 @@ class WorkflowServiceApi:
1568
2862
  return response_data.response
1569
2863
 
1570
2864
 
1571
- def _workflow_service_get_workflow_serialize(
2865
+ def _workflow_service_list_workflows_serialize(
1572
2866
  self,
1573
- name_12,
1574
2867
  _request_auth,
1575
2868
  _content_type,
1576
2869
  _headers,
@@ -1590,8 +2883,6 @@ class WorkflowServiceApi:
1590
2883
  _body_params: Optional[bytes] = None
1591
2884
 
1592
2885
  # process the path parameters
1593
- if name_12 is not None:
1594
- _path_params['name_12'] = name_12
1595
2886
  # process the query parameters
1596
2887
  # process the header parameters
1597
2888
  # process the form parameters
@@ -1612,7 +2903,7 @@ class WorkflowServiceApi:
1612
2903
 
1613
2904
  return self.api_client.param_serialize(
1614
2905
  method='GET',
1615
- resource_path='/v1/{name_12}',
2906
+ resource_path='/v1/workflows',
1616
2907
  path_params=_path_params,
1617
2908
  query_params=_query_params,
1618
2909
  header_params=_header_params,
@@ -1629,9 +2920,8 @@ class WorkflowServiceApi:
1629
2920
 
1630
2921
 
1631
2922
  @validate_call
1632
- def workflow_service_list_workflow_dependencies(
2923
+ def workflow_service_list_workflows_shared_with_me(
1633
2924
  self,
1634
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1635
2925
  _request_timeout: Union[
1636
2926
  None,
1637
2927
  Annotated[StrictFloat, Field(gt=0)],
@@ -1644,12 +2934,10 @@ class WorkflowServiceApi:
1644
2934
  _content_type: Optional[StrictStr] = None,
1645
2935
  _headers: Optional[Dict[StrictStr, Any]] = None,
1646
2936
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1647
- ) -> V1ListWorkflowDependenciesResponse:
1648
- """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
2937
+ ) -> V1ListWorkflowsSharedWithMeResponse:
2938
+ """ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
1649
2939
 
1650
2940
 
1651
- :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1652
- :type name: str
1653
2941
  :param _request_timeout: timeout setting for this request. If one
1654
2942
  number provided, it will be total request
1655
2943
  timeout. It can also be a pair (tuple) of
@@ -1672,8 +2960,7 @@ class WorkflowServiceApi:
1672
2960
  :return: Returns the result object.
1673
2961
  """ # noqa: E501
1674
2962
 
1675
- _param = self._workflow_service_list_workflow_dependencies_serialize(
1676
- name=name,
2963
+ _param = self._workflow_service_list_workflows_shared_with_me_serialize(
1677
2964
  _request_auth=_request_auth,
1678
2965
  _content_type=_content_type,
1679
2966
  _headers=_headers,
@@ -1681,7 +2968,7 @@ class WorkflowServiceApi:
1681
2968
  )
1682
2969
 
1683
2970
  _response_types_map: Dict[str, Optional[str]] = {
1684
- '200': "V1ListWorkflowDependenciesResponse",
2971
+ '200': "V1ListWorkflowsSharedWithMeResponse",
1685
2972
  }
1686
2973
  response_data = self.api_client.call_api(
1687
2974
  *_param,
@@ -1695,9 +2982,8 @@ class WorkflowServiceApi:
1695
2982
 
1696
2983
 
1697
2984
  @validate_call
1698
- def workflow_service_list_workflow_dependencies_with_http_info(
2985
+ def workflow_service_list_workflows_shared_with_me_with_http_info(
1699
2986
  self,
1700
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1701
2987
  _request_timeout: Union[
1702
2988
  None,
1703
2989
  Annotated[StrictFloat, Field(gt=0)],
@@ -1710,12 +2996,10 @@ class WorkflowServiceApi:
1710
2996
  _content_type: Optional[StrictStr] = None,
1711
2997
  _headers: Optional[Dict[StrictStr, Any]] = None,
1712
2998
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1713
- ) -> ApiResponse[V1ListWorkflowDependenciesResponse]:
1714
- """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
2999
+ ) -> ApiResponse[V1ListWorkflowsSharedWithMeResponse]:
3000
+ """ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
1715
3001
 
1716
3002
 
1717
- :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1718
- :type name: str
1719
3003
  :param _request_timeout: timeout setting for this request. If one
1720
3004
  number provided, it will be total request
1721
3005
  timeout. It can also be a pair (tuple) of
@@ -1738,8 +3022,7 @@ class WorkflowServiceApi:
1738
3022
  :return: Returns the result object.
1739
3023
  """ # noqa: E501
1740
3024
 
1741
- _param = self._workflow_service_list_workflow_dependencies_serialize(
1742
- name=name,
3025
+ _param = self._workflow_service_list_workflows_shared_with_me_serialize(
1743
3026
  _request_auth=_request_auth,
1744
3027
  _content_type=_content_type,
1745
3028
  _headers=_headers,
@@ -1747,7 +3030,7 @@ class WorkflowServiceApi:
1747
3030
  )
1748
3031
 
1749
3032
  _response_types_map: Dict[str, Optional[str]] = {
1750
- '200': "V1ListWorkflowDependenciesResponse",
3033
+ '200': "V1ListWorkflowsSharedWithMeResponse",
1751
3034
  }
1752
3035
  response_data = self.api_client.call_api(
1753
3036
  *_param,
@@ -1761,9 +3044,8 @@ class WorkflowServiceApi:
1761
3044
 
1762
3045
 
1763
3046
  @validate_call
1764
- def workflow_service_list_workflow_dependencies_without_preload_content(
3047
+ def workflow_service_list_workflows_shared_with_me_without_preload_content(
1765
3048
  self,
1766
- name: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to retrieve dependencies for.")],
1767
3049
  _request_timeout: Union[
1768
3050
  None,
1769
3051
  Annotated[StrictFloat, Field(gt=0)],
@@ -1777,11 +3059,9 @@ class WorkflowServiceApi:
1777
3059
  _headers: Optional[Dict[StrictStr, Any]] = None,
1778
3060
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1779
3061
  ) -> RESTResponseType:
1780
- """ListWorkflowDependencies lists workflow nodes and map of the node dependencies.
3062
+ """ListWorkflowsSharedWithMe lists Workflows shared with the authenticated user.
1781
3063
 
1782
3064
 
1783
- :param name: Required. The name of the Workflow to retrieve dependencies for. (required)
1784
- :type name: str
1785
3065
  :param _request_timeout: timeout setting for this request. If one
1786
3066
  number provided, it will be total request
1787
3067
  timeout. It can also be a pair (tuple) of
@@ -1804,8 +3084,7 @@ class WorkflowServiceApi:
1804
3084
  :return: Returns the result object.
1805
3085
  """ # noqa: E501
1806
3086
 
1807
- _param = self._workflow_service_list_workflow_dependencies_serialize(
1808
- name=name,
3087
+ _param = self._workflow_service_list_workflows_shared_with_me_serialize(
1809
3088
  _request_auth=_request_auth,
1810
3089
  _content_type=_content_type,
1811
3090
  _headers=_headers,
@@ -1813,7 +3092,7 @@ class WorkflowServiceApi:
1813
3092
  )
1814
3093
 
1815
3094
  _response_types_map: Dict[str, Optional[str]] = {
1816
- '200': "V1ListWorkflowDependenciesResponse",
3095
+ '200': "V1ListWorkflowsSharedWithMeResponse",
1817
3096
  }
1818
3097
  response_data = self.api_client.call_api(
1819
3098
  *_param,
@@ -1822,9 +3101,8 @@ class WorkflowServiceApi:
1822
3101
  return response_data.response
1823
3102
 
1824
3103
 
1825
- def _workflow_service_list_workflow_dependencies_serialize(
3104
+ def _workflow_service_list_workflows_shared_with_me_serialize(
1826
3105
  self,
1827
- name,
1828
3106
  _request_auth,
1829
3107
  _content_type,
1830
3108
  _headers,
@@ -1844,8 +3122,6 @@ class WorkflowServiceApi:
1844
3122
  _body_params: Optional[bytes] = None
1845
3123
 
1846
3124
  # process the path parameters
1847
- if name is not None:
1848
- _path_params['name'] = name
1849
3125
  # process the query parameters
1850
3126
  # process the header parameters
1851
3127
  # process the form parameters
@@ -1866,7 +3142,7 @@ class WorkflowServiceApi:
1866
3142
 
1867
3143
  return self.api_client.param_serialize(
1868
3144
  method='GET',
1869
- resource_path='/v1/{name}:nodeDependencies',
3145
+ resource_path='/v1/workflows:sharedWithMe',
1870
3146
  path_params=_path_params,
1871
3147
  query_params=_query_params,
1872
3148
  header_params=_header_params,
@@ -1883,8 +3159,10 @@ class WorkflowServiceApi:
1883
3159
 
1884
3160
 
1885
3161
  @validate_call
1886
- def workflow_service_list_workflows(
3162
+ def workflow_service_revoke_workflow_access(
1887
3163
  self,
3164
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to revoke access from.")],
3165
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
1888
3166
  _request_timeout: Union[
1889
3167
  None,
1890
3168
  Annotated[StrictFloat, Field(gt=0)],
@@ -1897,10 +3175,14 @@ class WorkflowServiceApi:
1897
3175
  _content_type: Optional[StrictStr] = None,
1898
3176
  _headers: Optional[Dict[StrictStr, Any]] = None,
1899
3177
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1900
- ) -> V1ListWorkflowsResponse:
1901
- """ListWorkflows lists Workflows.
3178
+ ) -> object:
3179
+ """RevokeWorkflowAccess revokes access to a Workflow from a subject.
1902
3180
 
1903
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
1904
3186
  :param _request_timeout: timeout setting for this request. If one
1905
3187
  number provided, it will be total request
1906
3188
  timeout. It can also be a pair (tuple) of
@@ -1923,7 +3205,9 @@ class WorkflowServiceApi:
1923
3205
  :return: Returns the result object.
1924
3206
  """ # noqa: E501
1925
3207
 
1926
- _param = self._workflow_service_list_workflows_serialize(
3208
+ _param = self._workflow_service_revoke_workflow_access_serialize(
3209
+ name_2=name_2,
3210
+ body=body,
1927
3211
  _request_auth=_request_auth,
1928
3212
  _content_type=_content_type,
1929
3213
  _headers=_headers,
@@ -1931,7 +3215,7 @@ class WorkflowServiceApi:
1931
3215
  )
1932
3216
 
1933
3217
  _response_types_map: Dict[str, Optional[str]] = {
1934
- '200': "V1ListWorkflowsResponse",
3218
+ '200': "object",
1935
3219
  }
1936
3220
  response_data = self.api_client.call_api(
1937
3221
  *_param,
@@ -1945,8 +3229,10 @@ class WorkflowServiceApi:
1945
3229
 
1946
3230
 
1947
3231
  @validate_call
1948
- def workflow_service_list_workflows_with_http_info(
3232
+ def workflow_service_revoke_workflow_access_with_http_info(
1949
3233
  self,
3234
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to revoke access from.")],
3235
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
1950
3236
  _request_timeout: Union[
1951
3237
  None,
1952
3238
  Annotated[StrictFloat, Field(gt=0)],
@@ -1959,10 +3245,14 @@ class WorkflowServiceApi:
1959
3245
  _content_type: Optional[StrictStr] = None,
1960
3246
  _headers: Optional[Dict[StrictStr, Any]] = None,
1961
3247
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1962
- ) -> ApiResponse[V1ListWorkflowsResponse]:
1963
- """ListWorkflows lists Workflows.
3248
+ ) -> ApiResponse[object]:
3249
+ """RevokeWorkflowAccess revokes access to a Workflow from a subject.
1964
3250
 
1965
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
1966
3256
  :param _request_timeout: timeout setting for this request. If one
1967
3257
  number provided, it will be total request
1968
3258
  timeout. It can also be a pair (tuple) of
@@ -1985,7 +3275,9 @@ class WorkflowServiceApi:
1985
3275
  :return: Returns the result object.
1986
3276
  """ # noqa: E501
1987
3277
 
1988
- _param = self._workflow_service_list_workflows_serialize(
3278
+ _param = self._workflow_service_revoke_workflow_access_serialize(
3279
+ name_2=name_2,
3280
+ body=body,
1989
3281
  _request_auth=_request_auth,
1990
3282
  _content_type=_content_type,
1991
3283
  _headers=_headers,
@@ -1993,7 +3285,7 @@ class WorkflowServiceApi:
1993
3285
  )
1994
3286
 
1995
3287
  _response_types_map: Dict[str, Optional[str]] = {
1996
- '200': "V1ListWorkflowsResponse",
3288
+ '200': "object",
1997
3289
  }
1998
3290
  response_data = self.api_client.call_api(
1999
3291
  *_param,
@@ -2007,8 +3299,10 @@ class WorkflowServiceApi:
2007
3299
 
2008
3300
 
2009
3301
  @validate_call
2010
- def workflow_service_list_workflows_without_preload_content(
3302
+ def workflow_service_revoke_workflow_access_without_preload_content(
2011
3303
  self,
3304
+ name_2: Annotated[str, Field(strict=True, description="Required. The name of the Workflow to revoke access from.")],
3305
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
2012
3306
  _request_timeout: Union[
2013
3307
  None,
2014
3308
  Annotated[StrictFloat, Field(gt=0)],
@@ -2022,9 +3316,13 @@ class WorkflowServiceApi:
2022
3316
  _headers: Optional[Dict[StrictStr, Any]] = None,
2023
3317
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2024
3318
  ) -> RESTResponseType:
2025
- """ListWorkflows lists Workflows.
3319
+ """RevokeWorkflowAccess revokes access to a Workflow from a subject.
2026
3320
 
2027
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
2028
3326
  :param _request_timeout: timeout setting for this request. If one
2029
3327
  number provided, it will be total request
2030
3328
  timeout. It can also be a pair (tuple) of
@@ -2047,7 +3345,9 @@ class WorkflowServiceApi:
2047
3345
  :return: Returns the result object.
2048
3346
  """ # noqa: E501
2049
3347
 
2050
- _param = self._workflow_service_list_workflows_serialize(
3348
+ _param = self._workflow_service_revoke_workflow_access_serialize(
3349
+ name_2=name_2,
3350
+ body=body,
2051
3351
  _request_auth=_request_auth,
2052
3352
  _content_type=_content_type,
2053
3353
  _headers=_headers,
@@ -2055,7 +3355,7 @@ class WorkflowServiceApi:
2055
3355
  )
2056
3356
 
2057
3357
  _response_types_map: Dict[str, Optional[str]] = {
2058
- '200': "V1ListWorkflowsResponse",
3358
+ '200': "object",
2059
3359
  }
2060
3360
  response_data = self.api_client.call_api(
2061
3361
  *_param,
@@ -2064,8 +3364,10 @@ class WorkflowServiceApi:
2064
3364
  return response_data.response
2065
3365
 
2066
3366
 
2067
- def _workflow_service_list_workflows_serialize(
3367
+ def _workflow_service_revoke_workflow_access_serialize(
2068
3368
  self,
3369
+ name_2,
3370
+ body,
2069
3371
  _request_auth,
2070
3372
  _content_type,
2071
3373
  _headers,
@@ -2085,10 +3387,14 @@ class WorkflowServiceApi:
2085
3387
  _body_params: Optional[bytes] = None
2086
3388
 
2087
3389
  # process the path parameters
3390
+ if name_2 is not None:
3391
+ _path_params['name_2'] = name_2
2088
3392
  # process the query parameters
2089
3393
  # process the header parameters
2090
3394
  # process the form parameters
2091
3395
  # process the body parameter
3396
+ if body is not None:
3397
+ _body_params = body
2092
3398
 
2093
3399
 
2094
3400
  # set the HTTP header `Accept`
@@ -2098,14 +3404,27 @@ class WorkflowServiceApi:
2098
3404
  ]
2099
3405
  )
2100
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
2101
3420
 
2102
3421
  # authentication setting
2103
3422
  _auth_settings: List[str] = [
2104
3423
  ]
2105
3424
 
2106
3425
  return self.api_client.param_serialize(
2107
- method='GET',
2108
- resource_path='/v1/workflows',
3426
+ method='POST',
3427
+ resource_path='/v1/{name_2}:revokeAccess',
2109
3428
  path_params=_path_params,
2110
3429
  query_params=_query_params,
2111
3430
  header_params=_header_params,