eval-studio-client 1.1.6a3__py3-none-any.whl → 1.2.0a2__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 (97) hide show
  1. eval_studio_client/api/__init__.py +20 -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 +1057 -0
  7. eval_studio_client/api/api/workflow_service_api.py +1125 -64
  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/RequiredTheUpdatedWorkflowNode.md +2 -0
  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/V1GetStatsResponse.md +29 -0
  15. eval_studio_client/api/docs/V1GetWorkflowResultCorpusPatchResponse.md +29 -0
  16. eval_studio_client/api/docs/V1GetWorkflowResultReportResponse.md +29 -0
  17. eval_studio_client/api/docs/V1GetWorkflowResultSummaryResponse.md +32 -0
  18. eval_studio_client/api/docs/V1GetWorkflowResultSystemPromptPatchResponse.md +29 -0
  19. eval_studio_client/api/docs/V1Info.md +1 -0
  20. eval_studio_client/api/docs/V1ListDashboardAccessResponse.md +29 -0
  21. eval_studio_client/api/docs/V1ListDashboardsSharedWithMeResponse.md +29 -0
  22. eval_studio_client/api/docs/V1ListTestAccessResponse.md +29 -0
  23. eval_studio_client/api/docs/V1ListTestsSharedWithMeResponse.md +29 -0
  24. eval_studio_client/api/docs/V1ListWorkflowAccessResponse.md +29 -0
  25. eval_studio_client/api/docs/V1ListWorkflowsSharedWithMeResponse.md +29 -0
  26. eval_studio_client/api/docs/V1Role.md +12 -0
  27. eval_studio_client/api/docs/V1RoleBinding.md +32 -0
  28. eval_studio_client/api/docs/V1Stats.md +31 -0
  29. eval_studio_client/api/docs/V1WorkflowNode.md +2 -0
  30. eval_studio_client/api/docs/V1WorkflowNodeResultStatus.md +12 -0
  31. eval_studio_client/api/docs/V1WorkflowResultArtifactType.md +12 -0
  32. eval_studio_client/api/docs/WorkflowResultServiceApi.md +280 -0
  33. eval_studio_client/api/docs/WorkflowServiceApi.md +277 -5
  34. eval_studio_client/api/docs/WorkflowServiceRevokeWorkflowAccessRequest.md +30 -0
  35. eval_studio_client/api/models/__init__.py +19 -0
  36. eval_studio_client/api/models/required_the_updated_workflow_node.py +10 -3
  37. eval_studio_client/api/models/test_service_grant_test_access_request.py +90 -0
  38. eval_studio_client/api/models/test_service_revoke_test_access_request.py +90 -0
  39. eval_studio_client/api/models/v1_get_stats_response.py +91 -0
  40. eval_studio_client/api/models/v1_get_workflow_result_corpus_patch_response.py +87 -0
  41. eval_studio_client/api/models/v1_get_workflow_result_report_response.py +87 -0
  42. eval_studio_client/api/models/v1_get_workflow_result_summary_response.py +94 -0
  43. eval_studio_client/api/models/v1_get_workflow_result_system_prompt_patch_response.py +87 -0
  44. eval_studio_client/api/models/v1_info.py +4 -2
  45. eval_studio_client/api/models/v1_list_dashboard_access_response.py +95 -0
  46. eval_studio_client/api/models/v1_list_dashboards_shared_with_me_response.py +95 -0
  47. eval_studio_client/api/models/v1_list_test_access_response.py +95 -0
  48. eval_studio_client/api/models/v1_list_tests_shared_with_me_response.py +95 -0
  49. eval_studio_client/api/models/v1_list_workflow_access_response.py +95 -0
  50. eval_studio_client/api/models/v1_list_workflows_shared_with_me_response.py +95 -0
  51. eval_studio_client/api/models/v1_role.py +38 -0
  52. eval_studio_client/api/models/v1_role_binding.py +92 -0
  53. eval_studio_client/api/models/v1_stats.py +99 -0
  54. eval_studio_client/api/models/v1_workflow_node.py +10 -3
  55. eval_studio_client/api/models/v1_workflow_node_result_status.py +40 -0
  56. eval_studio_client/api/models/v1_workflow_result_artifact_type.py +40 -0
  57. eval_studio_client/api/models/workflow_service_revoke_workflow_access_request.py +90 -0
  58. eval_studio_client/api/test/test_dashboard_service_api.py +28 -0
  59. eval_studio_client/api/test/test_info_service_api.py +6 -0
  60. eval_studio_client/api/test/test_required_the_updated_workflow_node.py +3 -1
  61. eval_studio_client/api/test/test_test_service_api.py +24 -0
  62. eval_studio_client/api/test/test_test_service_grant_test_access_request.py +52 -0
  63. eval_studio_client/api/test/test_test_service_revoke_test_access_request.py +52 -0
  64. eval_studio_client/api/test/test_v1_batch_get_workflow_nodes_response.py +3 -1
  65. eval_studio_client/api/test/test_v1_create_workflow_node_response.py +3 -1
  66. eval_studio_client/api/test/test_v1_delete_workflow_node_response.py +3 -1
  67. eval_studio_client/api/test/test_v1_get_info_response.py +2 -1
  68. eval_studio_client/api/test/test_v1_get_stats_response.py +53 -0
  69. eval_studio_client/api/test/test_v1_get_workflow_node_response.py +3 -1
  70. eval_studio_client/api/test/test_v1_get_workflow_result_corpus_patch_response.py +51 -0
  71. eval_studio_client/api/test/test_v1_get_workflow_result_report_response.py +51 -0
  72. eval_studio_client/api/test/test_v1_get_workflow_result_summary_response.py +58 -0
  73. eval_studio_client/api/test/test_v1_get_workflow_result_system_prompt_patch_response.py +51 -0
  74. eval_studio_client/api/test/test_v1_info.py +2 -1
  75. eval_studio_client/api/test/test_v1_init_workflow_node_response.py +3 -1
  76. eval_studio_client/api/test/test_v1_list_dashboard_access_response.py +56 -0
  77. eval_studio_client/api/test/test_v1_list_dashboards_shared_with_me_response.py +69 -0
  78. eval_studio_client/api/test/test_v1_list_test_access_response.py +56 -0
  79. eval_studio_client/api/test/test_v1_list_tests_shared_with_me_response.py +70 -0
  80. eval_studio_client/api/test/test_v1_list_workflow_access_response.py +56 -0
  81. eval_studio_client/api/test/test_v1_list_workflow_dependencies_response.py +3 -1
  82. eval_studio_client/api/test/test_v1_list_workflows_shared_with_me_response.py +95 -0
  83. eval_studio_client/api/test/test_v1_reset_workflow_node_response.py +3 -1
  84. eval_studio_client/api/test/test_v1_role.py +33 -0
  85. eval_studio_client/api/test/test_v1_role_binding.py +53 -0
  86. eval_studio_client/api/test/test_v1_stats.py +52 -0
  87. eval_studio_client/api/test/test_v1_update_workflow_node_response.py +3 -1
  88. eval_studio_client/api/test/test_v1_workflow_node.py +3 -1
  89. eval_studio_client/api/test/test_v1_workflow_node_result_status.py +33 -0
  90. eval_studio_client/api/test/test_v1_workflow_result_artifact_type.py +33 -0
  91. eval_studio_client/api/test/test_workflow_result_service_api.py +59 -0
  92. eval_studio_client/api/test/test_workflow_service_api.py +28 -0
  93. eval_studio_client/api/test/test_workflow_service_revoke_workflow_access_request.py +52 -0
  94. eval_studio_client/gen/openapiv2/eval_studio.swagger.json +891 -15
  95. {eval_studio_client-1.1.6a3.dist-info → eval_studio_client-1.2.0a2.dist-info}/METADATA +1 -1
  96. {eval_studio_client-1.1.6a3.dist-info → eval_studio_client-1.2.0a2.dist-info}/RECORD +97 -37
  97. {eval_studio_client-1.1.6a3.dist-info → eval_studio_client-1.2.0a2.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, StrictInt, StrictStr, field_validator
20
- from typing import List, Optional
20
+ from typing import Any, Dict, List, Optional
21
21
  from typing_extensions import Annotated
22
22
  from eval_studio_client.api.models.required_the_dashboard_to_update import RequiredTheDashboardToUpdate
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_dashboards_request import V1BatchDeleteDashboardsRequest
24
25
  from eval_studio_client.api.models.v1_batch_delete_dashboards_response import V1BatchDeleteDashboardsResponse
25
26
  from eval_studio_client.api.models.v1_batch_get_dashboards_response import V1BatchGetDashboardsResponse
@@ -27,9 +28,12 @@ from eval_studio_client.api.models.v1_create_dashboard_response import V1CreateD
27
28
  from eval_studio_client.api.models.v1_dashboard import V1Dashboard
28
29
  from eval_studio_client.api.models.v1_delete_dashboard_response import V1DeleteDashboardResponse
29
30
  from eval_studio_client.api.models.v1_get_dashboard_response import V1GetDashboardResponse
31
+ from eval_studio_client.api.models.v1_list_dashboard_access_response import V1ListDashboardAccessResponse
30
32
  from eval_studio_client.api.models.v1_list_dashboards_response import V1ListDashboardsResponse
33
+ from eval_studio_client.api.models.v1_list_dashboards_shared_with_me_response import V1ListDashboardsSharedWithMeResponse
31
34
  from eval_studio_client.api.models.v1_list_most_recent_dashboards_response import V1ListMostRecentDashboardsResponse
32
35
  from eval_studio_client.api.models.v1_update_dashboard_response import V1UpdateDashboardResponse
36
+ from eval_studio_client.api.models.workflow_service_revoke_workflow_access_request import WorkflowServiceRevokeWorkflowAccessRequest
33
37
 
34
38
  from eval_studio_client.api.api_client import ApiClient, RequestSerialized
35
39
  from eval_studio_client.api.api_response import ApiResponse
@@ -1348,10 +1352,925 @@ class DashboardServiceApi:
1348
1352
 
1349
1353
 
1350
1354
 
1355
+ @validate_call
1356
+ def dashboard_service_grant_dashboard_access(
1357
+ self,
1358
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to grant access to.")],
1359
+ body: TestServiceGrantTestAccessRequest,
1360
+ _request_timeout: Union[
1361
+ None,
1362
+ Annotated[StrictFloat, Field(gt=0)],
1363
+ Tuple[
1364
+ Annotated[StrictFloat, Field(gt=0)],
1365
+ Annotated[StrictFloat, Field(gt=0)]
1366
+ ]
1367
+ ] = None,
1368
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1369
+ _content_type: Optional[StrictStr] = None,
1370
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1371
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1372
+ ) -> object:
1373
+ """GrantDashboardAccess grants access to a Dashboard to a subject with a specified role.
1374
+
1375
+
1376
+ :param name: Required. The name of the Dashboard to grant access to. (required)
1377
+ :type name: str
1378
+ :param body: (required)
1379
+ :type body: TestServiceGrantTestAccessRequest
1380
+ :param _request_timeout: timeout setting for this request. If one
1381
+ number provided, it will be total request
1382
+ timeout. It can also be a pair (tuple) of
1383
+ (connection, read) timeouts.
1384
+ :type _request_timeout: int, tuple(int, int), optional
1385
+ :param _request_auth: set to override the auth_settings for an a single
1386
+ request; this effectively ignores the
1387
+ authentication in the spec for a single request.
1388
+ :type _request_auth: dict, optional
1389
+ :param _content_type: force content-type for the request.
1390
+ :type _content_type: str, Optional
1391
+ :param _headers: set to override the headers for a single
1392
+ request; this effectively ignores the headers
1393
+ in the spec for a single request.
1394
+ :type _headers: dict, optional
1395
+ :param _host_index: set to override the host_index for a single
1396
+ request; this effectively ignores the host_index
1397
+ in the spec for a single request.
1398
+ :type _host_index: int, optional
1399
+ :return: Returns the result object.
1400
+ """ # noqa: E501
1401
+
1402
+ _param = self._dashboard_service_grant_dashboard_access_serialize(
1403
+ name=name,
1404
+ body=body,
1405
+ _request_auth=_request_auth,
1406
+ _content_type=_content_type,
1407
+ _headers=_headers,
1408
+ _host_index=_host_index
1409
+ )
1410
+
1411
+ _response_types_map: Dict[str, Optional[str]] = {
1412
+ '200': "object",
1413
+ }
1414
+ response_data = self.api_client.call_api(
1415
+ *_param,
1416
+ _request_timeout=_request_timeout
1417
+ )
1418
+ response_data.read()
1419
+ return self.api_client.response_deserialize(
1420
+ response_data=response_data,
1421
+ response_types_map=_response_types_map,
1422
+ ).data
1423
+
1424
+
1425
+ @validate_call
1426
+ def dashboard_service_grant_dashboard_access_with_http_info(
1427
+ self,
1428
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to grant access to.")],
1429
+ body: TestServiceGrantTestAccessRequest,
1430
+ _request_timeout: Union[
1431
+ None,
1432
+ Annotated[StrictFloat, Field(gt=0)],
1433
+ Tuple[
1434
+ Annotated[StrictFloat, Field(gt=0)],
1435
+ Annotated[StrictFloat, Field(gt=0)]
1436
+ ]
1437
+ ] = None,
1438
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1439
+ _content_type: Optional[StrictStr] = None,
1440
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1441
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1442
+ ) -> ApiResponse[object]:
1443
+ """GrantDashboardAccess grants access to a Dashboard to a subject with a specified role.
1444
+
1445
+
1446
+ :param name: Required. The name of the Dashboard to grant access to. (required)
1447
+ :type name: str
1448
+ :param body: (required)
1449
+ :type body: TestServiceGrantTestAccessRequest
1450
+ :param _request_timeout: timeout setting for this request. If one
1451
+ number provided, it will be total request
1452
+ timeout. It can also be a pair (tuple) of
1453
+ (connection, read) timeouts.
1454
+ :type _request_timeout: int, tuple(int, int), optional
1455
+ :param _request_auth: set to override the auth_settings for an a single
1456
+ request; this effectively ignores the
1457
+ authentication in the spec for a single request.
1458
+ :type _request_auth: dict, optional
1459
+ :param _content_type: force content-type for the request.
1460
+ :type _content_type: str, Optional
1461
+ :param _headers: set to override the headers for a single
1462
+ request; this effectively ignores the headers
1463
+ in the spec for a single request.
1464
+ :type _headers: dict, optional
1465
+ :param _host_index: set to override the host_index for a single
1466
+ request; this effectively ignores the host_index
1467
+ in the spec for a single request.
1468
+ :type _host_index: int, optional
1469
+ :return: Returns the result object.
1470
+ """ # noqa: E501
1471
+
1472
+ _param = self._dashboard_service_grant_dashboard_access_serialize(
1473
+ name=name,
1474
+ body=body,
1475
+ _request_auth=_request_auth,
1476
+ _content_type=_content_type,
1477
+ _headers=_headers,
1478
+ _host_index=_host_index
1479
+ )
1480
+
1481
+ _response_types_map: Dict[str, Optional[str]] = {
1482
+ '200': "object",
1483
+ }
1484
+ response_data = self.api_client.call_api(
1485
+ *_param,
1486
+ _request_timeout=_request_timeout
1487
+ )
1488
+ response_data.read()
1489
+ return self.api_client.response_deserialize(
1490
+ response_data=response_data,
1491
+ response_types_map=_response_types_map,
1492
+ )
1493
+
1494
+
1495
+ @validate_call
1496
+ def dashboard_service_grant_dashboard_access_without_preload_content(
1497
+ self,
1498
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to grant access to.")],
1499
+ body: TestServiceGrantTestAccessRequest,
1500
+ _request_timeout: Union[
1501
+ None,
1502
+ Annotated[StrictFloat, Field(gt=0)],
1503
+ Tuple[
1504
+ Annotated[StrictFloat, Field(gt=0)],
1505
+ Annotated[StrictFloat, Field(gt=0)]
1506
+ ]
1507
+ ] = None,
1508
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1509
+ _content_type: Optional[StrictStr] = None,
1510
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1511
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1512
+ ) -> RESTResponseType:
1513
+ """GrantDashboardAccess grants access to a Dashboard to a subject with a specified role.
1514
+
1515
+
1516
+ :param name: Required. The name of the Dashboard to grant access to. (required)
1517
+ :type name: str
1518
+ :param body: (required)
1519
+ :type body: TestServiceGrantTestAccessRequest
1520
+ :param _request_timeout: timeout setting for this request. If one
1521
+ number provided, it will be total request
1522
+ timeout. It can also be a pair (tuple) of
1523
+ (connection, read) timeouts.
1524
+ :type _request_timeout: int, tuple(int, int), optional
1525
+ :param _request_auth: set to override the auth_settings for an a single
1526
+ request; this effectively ignores the
1527
+ authentication in the spec for a single request.
1528
+ :type _request_auth: dict, optional
1529
+ :param _content_type: force content-type for the request.
1530
+ :type _content_type: str, Optional
1531
+ :param _headers: set to override the headers for a single
1532
+ request; this effectively ignores the headers
1533
+ in the spec for a single request.
1534
+ :type _headers: dict, optional
1535
+ :param _host_index: set to override the host_index for a single
1536
+ request; this effectively ignores the host_index
1537
+ in the spec for a single request.
1538
+ :type _host_index: int, optional
1539
+ :return: Returns the result object.
1540
+ """ # noqa: E501
1541
+
1542
+ _param = self._dashboard_service_grant_dashboard_access_serialize(
1543
+ name=name,
1544
+ body=body,
1545
+ _request_auth=_request_auth,
1546
+ _content_type=_content_type,
1547
+ _headers=_headers,
1548
+ _host_index=_host_index
1549
+ )
1550
+
1551
+ _response_types_map: Dict[str, Optional[str]] = {
1552
+ '200': "object",
1553
+ }
1554
+ response_data = self.api_client.call_api(
1555
+ *_param,
1556
+ _request_timeout=_request_timeout
1557
+ )
1558
+ return response_data.response
1559
+
1560
+
1561
+ def _dashboard_service_grant_dashboard_access_serialize(
1562
+ self,
1563
+ name,
1564
+ body,
1565
+ _request_auth,
1566
+ _content_type,
1567
+ _headers,
1568
+ _host_index,
1569
+ ) -> RequestSerialized:
1570
+
1571
+ _host = None
1572
+
1573
+ _collection_formats: Dict[str, str] = {
1574
+ }
1575
+
1576
+ _path_params: Dict[str, str] = {}
1577
+ _query_params: List[Tuple[str, str]] = []
1578
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1579
+ _form_params: List[Tuple[str, str]] = []
1580
+ _files: Dict[str, Union[str, bytes]] = {}
1581
+ _body_params: Optional[bytes] = None
1582
+
1583
+ # process the path parameters
1584
+ if name is not None:
1585
+ _path_params['name'] = name
1586
+ # process the query parameters
1587
+ # process the header parameters
1588
+ # process the form parameters
1589
+ # process the body parameter
1590
+ if body is not None:
1591
+ _body_params = body
1592
+
1593
+
1594
+ # set the HTTP header `Accept`
1595
+ _header_params['Accept'] = self.api_client.select_header_accept(
1596
+ [
1597
+ 'application/json'
1598
+ ]
1599
+ )
1600
+
1601
+ # set the HTTP header `Content-Type`
1602
+ if _content_type:
1603
+ _header_params['Content-Type'] = _content_type
1604
+ else:
1605
+ _default_content_type = (
1606
+ self.api_client.select_header_content_type(
1607
+ [
1608
+ 'application/json'
1609
+ ]
1610
+ )
1611
+ )
1612
+ if _default_content_type is not None:
1613
+ _header_params['Content-Type'] = _default_content_type
1614
+
1615
+ # authentication setting
1616
+ _auth_settings: List[str] = [
1617
+ ]
1618
+
1619
+ return self.api_client.param_serialize(
1620
+ method='POST',
1621
+ resource_path='/v1/{name}:grantAccess',
1622
+ path_params=_path_params,
1623
+ query_params=_query_params,
1624
+ header_params=_header_params,
1625
+ body=_body_params,
1626
+ post_params=_form_params,
1627
+ files=_files,
1628
+ auth_settings=_auth_settings,
1629
+ collection_formats=_collection_formats,
1630
+ _host=_host,
1631
+ _request_auth=_request_auth
1632
+ )
1633
+
1634
+
1635
+
1636
+
1637
+ @validate_call
1638
+ def dashboard_service_list_dashboard_access(
1639
+ self,
1640
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to list access for.")],
1641
+ _request_timeout: Union[
1642
+ None,
1643
+ Annotated[StrictFloat, Field(gt=0)],
1644
+ Tuple[
1645
+ Annotated[StrictFloat, Field(gt=0)],
1646
+ Annotated[StrictFloat, Field(gt=0)]
1647
+ ]
1648
+ ] = None,
1649
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1650
+ _content_type: Optional[StrictStr] = None,
1651
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1652
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1653
+ ) -> V1ListDashboardAccessResponse:
1654
+ """ListDashboardAccess lists access to a Dashboard.
1655
+
1656
+
1657
+ :param name: Required. The name of the Dashboard to list access for. (required)
1658
+ :type name: str
1659
+ :param _request_timeout: timeout setting for this request. If one
1660
+ number provided, it will be total request
1661
+ timeout. It can also be a pair (tuple) of
1662
+ (connection, read) timeouts.
1663
+ :type _request_timeout: int, tuple(int, int), optional
1664
+ :param _request_auth: set to override the auth_settings for an a single
1665
+ request; this effectively ignores the
1666
+ authentication in the spec for a single request.
1667
+ :type _request_auth: dict, optional
1668
+ :param _content_type: force content-type for the request.
1669
+ :type _content_type: str, Optional
1670
+ :param _headers: set to override the headers for a single
1671
+ request; this effectively ignores the headers
1672
+ in the spec for a single request.
1673
+ :type _headers: dict, optional
1674
+ :param _host_index: set to override the host_index for a single
1675
+ request; this effectively ignores the host_index
1676
+ in the spec for a single request.
1677
+ :type _host_index: int, optional
1678
+ :return: Returns the result object.
1679
+ """ # noqa: E501
1680
+
1681
+ _param = self._dashboard_service_list_dashboard_access_serialize(
1682
+ name=name,
1683
+ _request_auth=_request_auth,
1684
+ _content_type=_content_type,
1685
+ _headers=_headers,
1686
+ _host_index=_host_index
1687
+ )
1688
+
1689
+ _response_types_map: Dict[str, Optional[str]] = {
1690
+ '200': "V1ListDashboardAccessResponse",
1691
+ }
1692
+ response_data = self.api_client.call_api(
1693
+ *_param,
1694
+ _request_timeout=_request_timeout
1695
+ )
1696
+ response_data.read()
1697
+ return self.api_client.response_deserialize(
1698
+ response_data=response_data,
1699
+ response_types_map=_response_types_map,
1700
+ ).data
1701
+
1702
+
1703
+ @validate_call
1704
+ def dashboard_service_list_dashboard_access_with_http_info(
1705
+ self,
1706
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to list access for.")],
1707
+ _request_timeout: Union[
1708
+ None,
1709
+ Annotated[StrictFloat, Field(gt=0)],
1710
+ Tuple[
1711
+ Annotated[StrictFloat, Field(gt=0)],
1712
+ Annotated[StrictFloat, Field(gt=0)]
1713
+ ]
1714
+ ] = None,
1715
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1716
+ _content_type: Optional[StrictStr] = None,
1717
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1718
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1719
+ ) -> ApiResponse[V1ListDashboardAccessResponse]:
1720
+ """ListDashboardAccess lists access to a Dashboard.
1721
+
1722
+
1723
+ :param name: Required. The name of the Dashboard to list access for. (required)
1724
+ :type name: str
1725
+ :param _request_timeout: timeout setting for this request. If one
1726
+ number provided, it will be total request
1727
+ timeout. It can also be a pair (tuple) of
1728
+ (connection, read) timeouts.
1729
+ :type _request_timeout: int, tuple(int, int), optional
1730
+ :param _request_auth: set to override the auth_settings for an a single
1731
+ request; this effectively ignores the
1732
+ authentication in the spec for a single request.
1733
+ :type _request_auth: dict, optional
1734
+ :param _content_type: force content-type for the request.
1735
+ :type _content_type: str, Optional
1736
+ :param _headers: set to override the headers for a single
1737
+ request; this effectively ignores the headers
1738
+ in the spec for a single request.
1739
+ :type _headers: dict, optional
1740
+ :param _host_index: set to override the host_index for a single
1741
+ request; this effectively ignores the host_index
1742
+ in the spec for a single request.
1743
+ :type _host_index: int, optional
1744
+ :return: Returns the result object.
1745
+ """ # noqa: E501
1746
+
1747
+ _param = self._dashboard_service_list_dashboard_access_serialize(
1748
+ name=name,
1749
+ _request_auth=_request_auth,
1750
+ _content_type=_content_type,
1751
+ _headers=_headers,
1752
+ _host_index=_host_index
1753
+ )
1754
+
1755
+ _response_types_map: Dict[str, Optional[str]] = {
1756
+ '200': "V1ListDashboardAccessResponse",
1757
+ }
1758
+ response_data = self.api_client.call_api(
1759
+ *_param,
1760
+ _request_timeout=_request_timeout
1761
+ )
1762
+ response_data.read()
1763
+ return self.api_client.response_deserialize(
1764
+ response_data=response_data,
1765
+ response_types_map=_response_types_map,
1766
+ )
1767
+
1768
+
1769
+ @validate_call
1770
+ def dashboard_service_list_dashboard_access_without_preload_content(
1771
+ self,
1772
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to list access for.")],
1773
+ _request_timeout: Union[
1774
+ None,
1775
+ Annotated[StrictFloat, Field(gt=0)],
1776
+ Tuple[
1777
+ Annotated[StrictFloat, Field(gt=0)],
1778
+ Annotated[StrictFloat, Field(gt=0)]
1779
+ ]
1780
+ ] = None,
1781
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1782
+ _content_type: Optional[StrictStr] = None,
1783
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1784
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1785
+ ) -> RESTResponseType:
1786
+ """ListDashboardAccess lists access to a Dashboard.
1787
+
1788
+
1789
+ :param name: Required. The name of the Dashboard to list access for. (required)
1790
+ :type name: str
1791
+ :param _request_timeout: timeout setting for this request. If one
1792
+ number provided, it will be total request
1793
+ timeout. It can also be a pair (tuple) of
1794
+ (connection, read) timeouts.
1795
+ :type _request_timeout: int, tuple(int, int), optional
1796
+ :param _request_auth: set to override the auth_settings for an a single
1797
+ request; this effectively ignores the
1798
+ authentication in the spec for a single request.
1799
+ :type _request_auth: dict, optional
1800
+ :param _content_type: force content-type for the request.
1801
+ :type _content_type: str, Optional
1802
+ :param _headers: set to override the headers for a single
1803
+ request; this effectively ignores the headers
1804
+ in the spec for a single request.
1805
+ :type _headers: dict, optional
1806
+ :param _host_index: set to override the host_index for a single
1807
+ request; this effectively ignores the host_index
1808
+ in the spec for a single request.
1809
+ :type _host_index: int, optional
1810
+ :return: Returns the result object.
1811
+ """ # noqa: E501
1812
+
1813
+ _param = self._dashboard_service_list_dashboard_access_serialize(
1814
+ name=name,
1815
+ _request_auth=_request_auth,
1816
+ _content_type=_content_type,
1817
+ _headers=_headers,
1818
+ _host_index=_host_index
1819
+ )
1820
+
1821
+ _response_types_map: Dict[str, Optional[str]] = {
1822
+ '200': "V1ListDashboardAccessResponse",
1823
+ }
1824
+ response_data = self.api_client.call_api(
1825
+ *_param,
1826
+ _request_timeout=_request_timeout
1827
+ )
1828
+ return response_data.response
1829
+
1830
+
1831
+ def _dashboard_service_list_dashboard_access_serialize(
1832
+ self,
1833
+ name,
1834
+ _request_auth,
1835
+ _content_type,
1836
+ _headers,
1837
+ _host_index,
1838
+ ) -> RequestSerialized:
1839
+
1840
+ _host = None
1841
+
1842
+ _collection_formats: Dict[str, str] = {
1843
+ }
1844
+
1845
+ _path_params: Dict[str, str] = {}
1846
+ _query_params: List[Tuple[str, str]] = []
1847
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1848
+ _form_params: List[Tuple[str, str]] = []
1849
+ _files: Dict[str, Union[str, bytes]] = {}
1850
+ _body_params: Optional[bytes] = None
1851
+
1852
+ # process the path parameters
1853
+ if name is not None:
1854
+ _path_params['name'] = name
1855
+ # process the query parameters
1856
+ # process the header parameters
1857
+ # process the form parameters
1858
+ # process the body parameter
1859
+
1860
+
1861
+ # set the HTTP header `Accept`
1862
+ _header_params['Accept'] = self.api_client.select_header_accept(
1863
+ [
1864
+ 'application/json'
1865
+ ]
1866
+ )
1867
+
1868
+
1869
+ # authentication setting
1870
+ _auth_settings: List[str] = [
1871
+ ]
1872
+
1873
+ return self.api_client.param_serialize(
1874
+ method='GET',
1875
+ resource_path='/v1/{name}:listAccess',
1876
+ path_params=_path_params,
1877
+ query_params=_query_params,
1878
+ header_params=_header_params,
1879
+ body=_body_params,
1880
+ post_params=_form_params,
1881
+ files=_files,
1882
+ auth_settings=_auth_settings,
1883
+ collection_formats=_collection_formats,
1884
+ _host=_host,
1885
+ _request_auth=_request_auth
1886
+ )
1887
+
1888
+
1889
+
1890
+
1351
1891
  @validate_call
1352
1892
  def dashboard_service_list_dashboards(
1353
1893
  self,
1354
- filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
1894
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
1895
+ _request_timeout: Union[
1896
+ None,
1897
+ Annotated[StrictFloat, Field(gt=0)],
1898
+ Tuple[
1899
+ Annotated[StrictFloat, Field(gt=0)],
1900
+ Annotated[StrictFloat, Field(gt=0)]
1901
+ ]
1902
+ ] = None,
1903
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1904
+ _content_type: Optional[StrictStr] = None,
1905
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1906
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1907
+ ) -> V1ListDashboardsResponse:
1908
+ """dashboard_service_list_dashboards
1909
+
1910
+
1911
+ :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
1912
+ :type filter: str
1913
+ :param _request_timeout: timeout setting for this request. If one
1914
+ number provided, it will be total request
1915
+ timeout. It can also be a pair (tuple) of
1916
+ (connection, read) timeouts.
1917
+ :type _request_timeout: int, tuple(int, int), optional
1918
+ :param _request_auth: set to override the auth_settings for an a single
1919
+ request; this effectively ignores the
1920
+ authentication in the spec for a single request.
1921
+ :type _request_auth: dict, optional
1922
+ :param _content_type: force content-type for the request.
1923
+ :type _content_type: str, Optional
1924
+ :param _headers: set to override the headers for a single
1925
+ request; this effectively ignores the headers
1926
+ in the spec for a single request.
1927
+ :type _headers: dict, optional
1928
+ :param _host_index: set to override the host_index for a single
1929
+ request; this effectively ignores the host_index
1930
+ in the spec for a single request.
1931
+ :type _host_index: int, optional
1932
+ :return: Returns the result object.
1933
+ """ # noqa: E501
1934
+
1935
+ _param = self._dashboard_service_list_dashboards_serialize(
1936
+ filter=filter,
1937
+ _request_auth=_request_auth,
1938
+ _content_type=_content_type,
1939
+ _headers=_headers,
1940
+ _host_index=_host_index
1941
+ )
1942
+
1943
+ _response_types_map: Dict[str, Optional[str]] = {
1944
+ '200': "V1ListDashboardsResponse",
1945
+ }
1946
+ response_data = self.api_client.call_api(
1947
+ *_param,
1948
+ _request_timeout=_request_timeout
1949
+ )
1950
+ response_data.read()
1951
+ return self.api_client.response_deserialize(
1952
+ response_data=response_data,
1953
+ response_types_map=_response_types_map,
1954
+ ).data
1955
+
1956
+
1957
+ @validate_call
1958
+ def dashboard_service_list_dashboards_with_http_info(
1959
+ self,
1960
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
1961
+ _request_timeout: Union[
1962
+ None,
1963
+ Annotated[StrictFloat, Field(gt=0)],
1964
+ Tuple[
1965
+ Annotated[StrictFloat, Field(gt=0)],
1966
+ Annotated[StrictFloat, Field(gt=0)]
1967
+ ]
1968
+ ] = None,
1969
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1970
+ _content_type: Optional[StrictStr] = None,
1971
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1972
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1973
+ ) -> ApiResponse[V1ListDashboardsResponse]:
1974
+ """dashboard_service_list_dashboards
1975
+
1976
+
1977
+ :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
1978
+ :type filter: str
1979
+ :param _request_timeout: timeout setting for this request. If one
1980
+ number provided, it will be total request
1981
+ timeout. It can also be a pair (tuple) of
1982
+ (connection, read) timeouts.
1983
+ :type _request_timeout: int, tuple(int, int), optional
1984
+ :param _request_auth: set to override the auth_settings for an a single
1985
+ request; this effectively ignores the
1986
+ authentication in the spec for a single request.
1987
+ :type _request_auth: dict, optional
1988
+ :param _content_type: force content-type for the request.
1989
+ :type _content_type: str, Optional
1990
+ :param _headers: set to override the headers for a single
1991
+ request; this effectively ignores the headers
1992
+ in the spec for a single request.
1993
+ :type _headers: dict, optional
1994
+ :param _host_index: set to override the host_index for a single
1995
+ request; this effectively ignores the host_index
1996
+ in the spec for a single request.
1997
+ :type _host_index: int, optional
1998
+ :return: Returns the result object.
1999
+ """ # noqa: E501
2000
+
2001
+ _param = self._dashboard_service_list_dashboards_serialize(
2002
+ filter=filter,
2003
+ _request_auth=_request_auth,
2004
+ _content_type=_content_type,
2005
+ _headers=_headers,
2006
+ _host_index=_host_index
2007
+ )
2008
+
2009
+ _response_types_map: Dict[str, Optional[str]] = {
2010
+ '200': "V1ListDashboardsResponse",
2011
+ }
2012
+ response_data = self.api_client.call_api(
2013
+ *_param,
2014
+ _request_timeout=_request_timeout
2015
+ )
2016
+ response_data.read()
2017
+ return self.api_client.response_deserialize(
2018
+ response_data=response_data,
2019
+ response_types_map=_response_types_map,
2020
+ )
2021
+
2022
+
2023
+ @validate_call
2024
+ def dashboard_service_list_dashboards_without_preload_content(
2025
+ self,
2026
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
2027
+ _request_timeout: Union[
2028
+ None,
2029
+ Annotated[StrictFloat, Field(gt=0)],
2030
+ Tuple[
2031
+ Annotated[StrictFloat, Field(gt=0)],
2032
+ Annotated[StrictFloat, Field(gt=0)]
2033
+ ]
2034
+ ] = None,
2035
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2036
+ _content_type: Optional[StrictStr] = None,
2037
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2038
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2039
+ ) -> RESTResponseType:
2040
+ """dashboard_service_list_dashboards
2041
+
2042
+
2043
+ :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
2044
+ :type filter: str
2045
+ :param _request_timeout: timeout setting for this request. If one
2046
+ number provided, it will be total request
2047
+ timeout. It can also be a pair (tuple) of
2048
+ (connection, read) timeouts.
2049
+ :type _request_timeout: int, tuple(int, int), optional
2050
+ :param _request_auth: set to override the auth_settings for an a single
2051
+ request; this effectively ignores the
2052
+ authentication in the spec for a single request.
2053
+ :type _request_auth: dict, optional
2054
+ :param _content_type: force content-type for the request.
2055
+ :type _content_type: str, Optional
2056
+ :param _headers: set to override the headers for a single
2057
+ request; this effectively ignores the headers
2058
+ in the spec for a single request.
2059
+ :type _headers: dict, optional
2060
+ :param _host_index: set to override the host_index for a single
2061
+ request; this effectively ignores the host_index
2062
+ in the spec for a single request.
2063
+ :type _host_index: int, optional
2064
+ :return: Returns the result object.
2065
+ """ # noqa: E501
2066
+
2067
+ _param = self._dashboard_service_list_dashboards_serialize(
2068
+ filter=filter,
2069
+ _request_auth=_request_auth,
2070
+ _content_type=_content_type,
2071
+ _headers=_headers,
2072
+ _host_index=_host_index
2073
+ )
2074
+
2075
+ _response_types_map: Dict[str, Optional[str]] = {
2076
+ '200': "V1ListDashboardsResponse",
2077
+ }
2078
+ response_data = self.api_client.call_api(
2079
+ *_param,
2080
+ _request_timeout=_request_timeout
2081
+ )
2082
+ return response_data.response
2083
+
2084
+
2085
+ def _dashboard_service_list_dashboards_serialize(
2086
+ self,
2087
+ filter,
2088
+ _request_auth,
2089
+ _content_type,
2090
+ _headers,
2091
+ _host_index,
2092
+ ) -> RequestSerialized:
2093
+
2094
+ _host = None
2095
+
2096
+ _collection_formats: Dict[str, str] = {
2097
+ }
2098
+
2099
+ _path_params: Dict[str, str] = {}
2100
+ _query_params: List[Tuple[str, str]] = []
2101
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2102
+ _form_params: List[Tuple[str, str]] = []
2103
+ _files: Dict[str, Union[str, bytes]] = {}
2104
+ _body_params: Optional[bytes] = None
2105
+
2106
+ # process the path parameters
2107
+ # process the query parameters
2108
+ if filter is not None:
2109
+
2110
+ _query_params.append(('filter', filter))
2111
+
2112
+ # process the header parameters
2113
+ # process the form parameters
2114
+ # process the body parameter
2115
+
2116
+
2117
+ # set the HTTP header `Accept`
2118
+ _header_params['Accept'] = self.api_client.select_header_accept(
2119
+ [
2120
+ 'application/json'
2121
+ ]
2122
+ )
2123
+
2124
+
2125
+ # authentication setting
2126
+ _auth_settings: List[str] = [
2127
+ ]
2128
+
2129
+ return self.api_client.param_serialize(
2130
+ method='GET',
2131
+ resource_path='/v1/dashboards',
2132
+ path_params=_path_params,
2133
+ query_params=_query_params,
2134
+ header_params=_header_params,
2135
+ body=_body_params,
2136
+ post_params=_form_params,
2137
+ files=_files,
2138
+ auth_settings=_auth_settings,
2139
+ collection_formats=_collection_formats,
2140
+ _host=_host,
2141
+ _request_auth=_request_auth
2142
+ )
2143
+
2144
+
2145
+
2146
+
2147
+ @validate_call
2148
+ def dashboard_service_list_dashboards_shared_with_me(
2149
+ self,
2150
+ _request_timeout: Union[
2151
+ None,
2152
+ Annotated[StrictFloat, Field(gt=0)],
2153
+ Tuple[
2154
+ Annotated[StrictFloat, Field(gt=0)],
2155
+ Annotated[StrictFloat, Field(gt=0)]
2156
+ ]
2157
+ ] = None,
2158
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2159
+ _content_type: Optional[StrictStr] = None,
2160
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2161
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2162
+ ) -> V1ListDashboardsSharedWithMeResponse:
2163
+ """ListDashboardsSharedWithMe lists Dashboards shared with the authenticated user.
2164
+
2165
+
2166
+ :param _request_timeout: timeout setting for this request. If one
2167
+ number provided, it will be total request
2168
+ timeout. It can also be a pair (tuple) of
2169
+ (connection, read) timeouts.
2170
+ :type _request_timeout: int, tuple(int, int), optional
2171
+ :param _request_auth: set to override the auth_settings for an a single
2172
+ request; this effectively ignores the
2173
+ authentication in the spec for a single request.
2174
+ :type _request_auth: dict, optional
2175
+ :param _content_type: force content-type for the request.
2176
+ :type _content_type: str, Optional
2177
+ :param _headers: set to override the headers for a single
2178
+ request; this effectively ignores the headers
2179
+ in the spec for a single request.
2180
+ :type _headers: dict, optional
2181
+ :param _host_index: set to override the host_index for a single
2182
+ request; this effectively ignores the host_index
2183
+ in the spec for a single request.
2184
+ :type _host_index: int, optional
2185
+ :return: Returns the result object.
2186
+ """ # noqa: E501
2187
+
2188
+ _param = self._dashboard_service_list_dashboards_shared_with_me_serialize(
2189
+ _request_auth=_request_auth,
2190
+ _content_type=_content_type,
2191
+ _headers=_headers,
2192
+ _host_index=_host_index
2193
+ )
2194
+
2195
+ _response_types_map: Dict[str, Optional[str]] = {
2196
+ '200': "V1ListDashboardsSharedWithMeResponse",
2197
+ }
2198
+ response_data = self.api_client.call_api(
2199
+ *_param,
2200
+ _request_timeout=_request_timeout
2201
+ )
2202
+ response_data.read()
2203
+ return self.api_client.response_deserialize(
2204
+ response_data=response_data,
2205
+ response_types_map=_response_types_map,
2206
+ ).data
2207
+
2208
+
2209
+ @validate_call
2210
+ def dashboard_service_list_dashboards_shared_with_me_with_http_info(
2211
+ self,
2212
+ _request_timeout: Union[
2213
+ None,
2214
+ Annotated[StrictFloat, Field(gt=0)],
2215
+ Tuple[
2216
+ Annotated[StrictFloat, Field(gt=0)],
2217
+ Annotated[StrictFloat, Field(gt=0)]
2218
+ ]
2219
+ ] = None,
2220
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2221
+ _content_type: Optional[StrictStr] = None,
2222
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2223
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2224
+ ) -> ApiResponse[V1ListDashboardsSharedWithMeResponse]:
2225
+ """ListDashboardsSharedWithMe lists Dashboards shared with the authenticated user.
2226
+
2227
+
2228
+ :param _request_timeout: timeout setting for this request. If one
2229
+ number provided, it will be total request
2230
+ timeout. It can also be a pair (tuple) of
2231
+ (connection, read) timeouts.
2232
+ :type _request_timeout: int, tuple(int, int), optional
2233
+ :param _request_auth: set to override the auth_settings for an a single
2234
+ request; this effectively ignores the
2235
+ authentication in the spec for a single request.
2236
+ :type _request_auth: dict, optional
2237
+ :param _content_type: force content-type for the request.
2238
+ :type _content_type: str, Optional
2239
+ :param _headers: set to override the headers for a single
2240
+ request; this effectively ignores the headers
2241
+ in the spec for a single request.
2242
+ :type _headers: dict, optional
2243
+ :param _host_index: set to override the host_index for a single
2244
+ request; this effectively ignores the host_index
2245
+ in the spec for a single request.
2246
+ :type _host_index: int, optional
2247
+ :return: Returns the result object.
2248
+ """ # noqa: E501
2249
+
2250
+ _param = self._dashboard_service_list_dashboards_shared_with_me_serialize(
2251
+ _request_auth=_request_auth,
2252
+ _content_type=_content_type,
2253
+ _headers=_headers,
2254
+ _host_index=_host_index
2255
+ )
2256
+
2257
+ _response_types_map: Dict[str, Optional[str]] = {
2258
+ '200': "V1ListDashboardsSharedWithMeResponse",
2259
+ }
2260
+ response_data = self.api_client.call_api(
2261
+ *_param,
2262
+ _request_timeout=_request_timeout
2263
+ )
2264
+ response_data.read()
2265
+ return self.api_client.response_deserialize(
2266
+ response_data=response_data,
2267
+ response_types_map=_response_types_map,
2268
+ )
2269
+
2270
+
2271
+ @validate_call
2272
+ def dashboard_service_list_dashboards_shared_with_me_without_preload_content(
2273
+ self,
1355
2274
  _request_timeout: Union[
1356
2275
  None,
1357
2276
  Annotated[StrictFloat, Field(gt=0)],
@@ -1364,11 +2283,130 @@ class DashboardServiceApi:
1364
2283
  _content_type: Optional[StrictStr] = None,
1365
2284
  _headers: Optional[Dict[StrictStr, Any]] = None,
1366
2285
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1367
- ) -> V1ListDashboardsResponse:
1368
- """dashboard_service_list_dashboards
2286
+ ) -> RESTResponseType:
2287
+ """ListDashboardsSharedWithMe lists Dashboards shared with the authenticated user.
1369
2288
 
1370
2289
 
1371
- :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
2290
+ :param _request_timeout: timeout setting for this request. If one
2291
+ number provided, it will be total request
2292
+ timeout. It can also be a pair (tuple) of
2293
+ (connection, read) timeouts.
2294
+ :type _request_timeout: int, tuple(int, int), optional
2295
+ :param _request_auth: set to override the auth_settings for an a single
2296
+ request; this effectively ignores the
2297
+ authentication in the spec for a single request.
2298
+ :type _request_auth: dict, optional
2299
+ :param _content_type: force content-type for the request.
2300
+ :type _content_type: str, Optional
2301
+ :param _headers: set to override the headers for a single
2302
+ request; this effectively ignores the headers
2303
+ in the spec for a single request.
2304
+ :type _headers: dict, optional
2305
+ :param _host_index: set to override the host_index for a single
2306
+ request; this effectively ignores the host_index
2307
+ in the spec for a single request.
2308
+ :type _host_index: int, optional
2309
+ :return: Returns the result object.
2310
+ """ # noqa: E501
2311
+
2312
+ _param = self._dashboard_service_list_dashboards_shared_with_me_serialize(
2313
+ _request_auth=_request_auth,
2314
+ _content_type=_content_type,
2315
+ _headers=_headers,
2316
+ _host_index=_host_index
2317
+ )
2318
+
2319
+ _response_types_map: Dict[str, Optional[str]] = {
2320
+ '200': "V1ListDashboardsSharedWithMeResponse",
2321
+ }
2322
+ response_data = self.api_client.call_api(
2323
+ *_param,
2324
+ _request_timeout=_request_timeout
2325
+ )
2326
+ return response_data.response
2327
+
2328
+
2329
+ def _dashboard_service_list_dashboards_shared_with_me_serialize(
2330
+ self,
2331
+ _request_auth,
2332
+ _content_type,
2333
+ _headers,
2334
+ _host_index,
2335
+ ) -> RequestSerialized:
2336
+
2337
+ _host = None
2338
+
2339
+ _collection_formats: Dict[str, str] = {
2340
+ }
2341
+
2342
+ _path_params: Dict[str, str] = {}
2343
+ _query_params: List[Tuple[str, str]] = []
2344
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2345
+ _form_params: List[Tuple[str, str]] = []
2346
+ _files: Dict[str, Union[str, bytes]] = {}
2347
+ _body_params: Optional[bytes] = None
2348
+
2349
+ # process the path parameters
2350
+ # process the query parameters
2351
+ # process the header parameters
2352
+ # process the form parameters
2353
+ # process the body parameter
2354
+
2355
+
2356
+ # set the HTTP header `Accept`
2357
+ _header_params['Accept'] = self.api_client.select_header_accept(
2358
+ [
2359
+ 'application/json'
2360
+ ]
2361
+ )
2362
+
2363
+
2364
+ # authentication setting
2365
+ _auth_settings: List[str] = [
2366
+ ]
2367
+
2368
+ return self.api_client.param_serialize(
2369
+ method='GET',
2370
+ resource_path='/v1/dashboards:sharedWithMe',
2371
+ path_params=_path_params,
2372
+ query_params=_query_params,
2373
+ header_params=_header_params,
2374
+ body=_body_params,
2375
+ post_params=_form_params,
2376
+ files=_files,
2377
+ auth_settings=_auth_settings,
2378
+ collection_formats=_collection_formats,
2379
+ _host=_host,
2380
+ _request_auth=_request_auth
2381
+ )
2382
+
2383
+
2384
+
2385
+
2386
+ @validate_call
2387
+ def dashboard_service_list_most_recent_dashboards(
2388
+ self,
2389
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
2390
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"")] = None,
2391
+ _request_timeout: Union[
2392
+ None,
2393
+ Annotated[StrictFloat, Field(gt=0)],
2394
+ Tuple[
2395
+ Annotated[StrictFloat, Field(gt=0)],
2396
+ Annotated[StrictFloat, Field(gt=0)]
2397
+ ]
2398
+ ] = None,
2399
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2400
+ _content_type: Optional[StrictStr] = None,
2401
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2402
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2403
+ ) -> V1ListMostRecentDashboardsResponse:
2404
+ """dashboard_service_list_most_recent_dashboards
2405
+
2406
+
2407
+ :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
2408
+ :type limit: int
2409
+ :param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"
1372
2410
  :type filter: str
1373
2411
  :param _request_timeout: timeout setting for this request. If one
1374
2412
  number provided, it will be total request
@@ -1392,7 +2430,8 @@ class DashboardServiceApi:
1392
2430
  :return: Returns the result object.
1393
2431
  """ # noqa: E501
1394
2432
 
1395
- _param = self._dashboard_service_list_dashboards_serialize(
2433
+ _param = self._dashboard_service_list_most_recent_dashboards_serialize(
2434
+ limit=limit,
1396
2435
  filter=filter,
1397
2436
  _request_auth=_request_auth,
1398
2437
  _content_type=_content_type,
@@ -1401,7 +2440,7 @@ class DashboardServiceApi:
1401
2440
  )
1402
2441
 
1403
2442
  _response_types_map: Dict[str, Optional[str]] = {
1404
- '200': "V1ListDashboardsResponse",
2443
+ '200': "V1ListMostRecentDashboardsResponse",
1405
2444
  }
1406
2445
  response_data = self.api_client.call_api(
1407
2446
  *_param,
@@ -1415,9 +2454,10 @@ class DashboardServiceApi:
1415
2454
 
1416
2455
 
1417
2456
  @validate_call
1418
- def dashboard_service_list_dashboards_with_http_info(
2457
+ def dashboard_service_list_most_recent_dashboards_with_http_info(
1419
2458
  self,
1420
- filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
2459
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
2460
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"")] = None,
1421
2461
  _request_timeout: Union[
1422
2462
  None,
1423
2463
  Annotated[StrictFloat, Field(gt=0)],
@@ -1430,11 +2470,13 @@ class DashboardServiceApi:
1430
2470
  _content_type: Optional[StrictStr] = None,
1431
2471
  _headers: Optional[Dict[StrictStr, Any]] = None,
1432
2472
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1433
- ) -> ApiResponse[V1ListDashboardsResponse]:
1434
- """dashboard_service_list_dashboards
2473
+ ) -> ApiResponse[V1ListMostRecentDashboardsResponse]:
2474
+ """dashboard_service_list_most_recent_dashboards
1435
2475
 
1436
2476
 
1437
- :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
2477
+ :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
2478
+ :type limit: int
2479
+ :param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"
1438
2480
  :type filter: str
1439
2481
  :param _request_timeout: timeout setting for this request. If one
1440
2482
  number provided, it will be total request
@@ -1458,7 +2500,8 @@ class DashboardServiceApi:
1458
2500
  :return: Returns the result object.
1459
2501
  """ # noqa: E501
1460
2502
 
1461
- _param = self._dashboard_service_list_dashboards_serialize(
2503
+ _param = self._dashboard_service_list_most_recent_dashboards_serialize(
2504
+ limit=limit,
1462
2505
  filter=filter,
1463
2506
  _request_auth=_request_auth,
1464
2507
  _content_type=_content_type,
@@ -1467,7 +2510,7 @@ class DashboardServiceApi:
1467
2510
  )
1468
2511
 
1469
2512
  _response_types_map: Dict[str, Optional[str]] = {
1470
- '200': "V1ListDashboardsResponse",
2513
+ '200': "V1ListMostRecentDashboardsResponse",
1471
2514
  }
1472
2515
  response_data = self.api_client.call_api(
1473
2516
  *_param,
@@ -1481,9 +2524,10 @@ class DashboardServiceApi:
1481
2524
 
1482
2525
 
1483
2526
  @validate_call
1484
- def dashboard_service_list_dashboards_without_preload_content(
2527
+ def dashboard_service_list_most_recent_dashboards_without_preload_content(
1485
2528
  self,
1486
- filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"")] = None,
2529
+ limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
2530
+ filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"")] = None,
1487
2531
  _request_timeout: Union[
1488
2532
  None,
1489
2533
  Annotated[StrictFloat, Field(gt=0)],
@@ -1497,10 +2541,12 @@ class DashboardServiceApi:
1497
2541
  _headers: Optional[Dict[StrictStr, Any]] = None,
1498
2542
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1499
2543
  ) -> RESTResponseType:
1500
- """dashboard_service_list_dashboards
2544
+ """dashboard_service_list_most_recent_dashboards
1501
2545
 
1502
2546
 
1503
- :param filter: Optional. If specified, only dashboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - models - only ':' operator (has) is supported (no wildcards), e.g. \"models:\\\"models/<UUID>\\\"\"
2547
+ :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
2548
+ :type limit: int
2549
+ :param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"
1504
2550
  :type filter: str
1505
2551
  :param _request_timeout: timeout setting for this request. If one
1506
2552
  number provided, it will be total request
@@ -1524,7 +2570,8 @@ class DashboardServiceApi:
1524
2570
  :return: Returns the result object.
1525
2571
  """ # noqa: E501
1526
2572
 
1527
- _param = self._dashboard_service_list_dashboards_serialize(
2573
+ _param = self._dashboard_service_list_most_recent_dashboards_serialize(
2574
+ limit=limit,
1528
2575
  filter=filter,
1529
2576
  _request_auth=_request_auth,
1530
2577
  _content_type=_content_type,
@@ -1533,7 +2580,7 @@ class DashboardServiceApi:
1533
2580
  )
1534
2581
 
1535
2582
  _response_types_map: Dict[str, Optional[str]] = {
1536
- '200': "V1ListDashboardsResponse",
2583
+ '200': "V1ListMostRecentDashboardsResponse",
1537
2584
  }
1538
2585
  response_data = self.api_client.call_api(
1539
2586
  *_param,
@@ -1542,8 +2589,9 @@ class DashboardServiceApi:
1542
2589
  return response_data.response
1543
2590
 
1544
2591
 
1545
- def _dashboard_service_list_dashboards_serialize(
2592
+ def _dashboard_service_list_most_recent_dashboards_serialize(
1546
2593
  self,
2594
+ limit,
1547
2595
  filter,
1548
2596
  _request_auth,
1549
2597
  _content_type,
@@ -1565,6 +2613,10 @@ class DashboardServiceApi:
1565
2613
 
1566
2614
  # process the path parameters
1567
2615
  # process the query parameters
2616
+ if limit is not None:
2617
+
2618
+ _query_params.append(('limit', limit))
2619
+
1568
2620
  if filter is not None:
1569
2621
 
1570
2622
  _query_params.append(('filter', filter))
@@ -1588,7 +2640,7 @@ class DashboardServiceApi:
1588
2640
 
1589
2641
  return self.api_client.param_serialize(
1590
2642
  method='GET',
1591
- resource_path='/v1/dashboards',
2643
+ resource_path='/v1/dashboards:mostRecent',
1592
2644
  path_params=_path_params,
1593
2645
  query_params=_query_params,
1594
2646
  header_params=_header_params,
@@ -1605,10 +2657,10 @@ class DashboardServiceApi:
1605
2657
 
1606
2658
 
1607
2659
  @validate_call
1608
- def dashboard_service_list_most_recent_dashboards(
2660
+ def dashboard_service_revoke_dashboard_access(
1609
2661
  self,
1610
- limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1611
- filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"")] = None,
2662
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to revoke access from.")],
2663
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
1612
2664
  _request_timeout: Union[
1613
2665
  None,
1614
2666
  Annotated[StrictFloat, Field(gt=0)],
@@ -1621,14 +2673,14 @@ class DashboardServiceApi:
1621
2673
  _content_type: Optional[StrictStr] = None,
1622
2674
  _headers: Optional[Dict[StrictStr, Any]] = None,
1623
2675
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1624
- ) -> V1ListMostRecentDashboardsResponse:
1625
- """dashboard_service_list_most_recent_dashboards
2676
+ ) -> object:
2677
+ """RevokeDashboardAccess revokes access to a Dashboard from a subject.
1626
2678
 
1627
2679
 
1628
- :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
1629
- :type limit: int
1630
- :param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"
1631
- :type filter: str
2680
+ :param name: Required. The name of the Dashboard to revoke access from. (required)
2681
+ :type name: str
2682
+ :param body: (required)
2683
+ :type body: WorkflowServiceRevokeWorkflowAccessRequest
1632
2684
  :param _request_timeout: timeout setting for this request. If one
1633
2685
  number provided, it will be total request
1634
2686
  timeout. It can also be a pair (tuple) of
@@ -1651,9 +2703,9 @@ class DashboardServiceApi:
1651
2703
  :return: Returns the result object.
1652
2704
  """ # noqa: E501
1653
2705
 
1654
- _param = self._dashboard_service_list_most_recent_dashboards_serialize(
1655
- limit=limit,
1656
- filter=filter,
2706
+ _param = self._dashboard_service_revoke_dashboard_access_serialize(
2707
+ name=name,
2708
+ body=body,
1657
2709
  _request_auth=_request_auth,
1658
2710
  _content_type=_content_type,
1659
2711
  _headers=_headers,
@@ -1661,7 +2713,7 @@ class DashboardServiceApi:
1661
2713
  )
1662
2714
 
1663
2715
  _response_types_map: Dict[str, Optional[str]] = {
1664
- '200': "V1ListMostRecentDashboardsResponse",
2716
+ '200': "object",
1665
2717
  }
1666
2718
  response_data = self.api_client.call_api(
1667
2719
  *_param,
@@ -1675,10 +2727,10 @@ class DashboardServiceApi:
1675
2727
 
1676
2728
 
1677
2729
  @validate_call
1678
- def dashboard_service_list_most_recent_dashboards_with_http_info(
2730
+ def dashboard_service_revoke_dashboard_access_with_http_info(
1679
2731
  self,
1680
- limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1681
- filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"")] = None,
2732
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to revoke access from.")],
2733
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
1682
2734
  _request_timeout: Union[
1683
2735
  None,
1684
2736
  Annotated[StrictFloat, Field(gt=0)],
@@ -1691,14 +2743,14 @@ class DashboardServiceApi:
1691
2743
  _content_type: Optional[StrictStr] = None,
1692
2744
  _headers: Optional[Dict[StrictStr, Any]] = None,
1693
2745
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1694
- ) -> ApiResponse[V1ListMostRecentDashboardsResponse]:
1695
- """dashboard_service_list_most_recent_dashboards
2746
+ ) -> ApiResponse[object]:
2747
+ """RevokeDashboardAccess revokes access to a Dashboard from a subject.
1696
2748
 
1697
2749
 
1698
- :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
1699
- :type limit: int
1700
- :param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"
1701
- :type filter: str
2750
+ :param name: Required. The name of the Dashboard to revoke access from. (required)
2751
+ :type name: str
2752
+ :param body: (required)
2753
+ :type body: WorkflowServiceRevokeWorkflowAccessRequest
1702
2754
  :param _request_timeout: timeout setting for this request. If one
1703
2755
  number provided, it will be total request
1704
2756
  timeout. It can also be a pair (tuple) of
@@ -1721,9 +2773,9 @@ class DashboardServiceApi:
1721
2773
  :return: Returns the result object.
1722
2774
  """ # noqa: E501
1723
2775
 
1724
- _param = self._dashboard_service_list_most_recent_dashboards_serialize(
1725
- limit=limit,
1726
- filter=filter,
2776
+ _param = self._dashboard_service_revoke_dashboard_access_serialize(
2777
+ name=name,
2778
+ body=body,
1727
2779
  _request_auth=_request_auth,
1728
2780
  _content_type=_content_type,
1729
2781
  _headers=_headers,
@@ -1731,7 +2783,7 @@ class DashboardServiceApi:
1731
2783
  )
1732
2784
 
1733
2785
  _response_types_map: Dict[str, Optional[str]] = {
1734
- '200': "V1ListMostRecentDashboardsResponse",
2786
+ '200': "object",
1735
2787
  }
1736
2788
  response_data = self.api_client.call_api(
1737
2789
  *_param,
@@ -1745,10 +2797,10 @@ class DashboardServiceApi:
1745
2797
 
1746
2798
 
1747
2799
  @validate_call
1748
- def dashboard_service_list_most_recent_dashboards_without_preload_content(
2800
+ def dashboard_service_revoke_dashboard_access_without_preload_content(
1749
2801
  self,
1750
- limit: Annotated[Optional[StrictInt], Field(description="Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.")] = None,
1751
- filter: Annotated[Optional[StrictStr], Field(description="Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"")] = None,
2802
+ name: Annotated[str, Field(strict=True, description="Required. The name of the Dashboard to revoke access from.")],
2803
+ body: WorkflowServiceRevokeWorkflowAccessRequest,
1752
2804
  _request_timeout: Union[
1753
2805
  None,
1754
2806
  Annotated[StrictFloat, Field(gt=0)],
@@ -1762,13 +2814,13 @@ class DashboardServiceApi:
1762
2814
  _headers: Optional[Dict[StrictStr, Any]] = None,
1763
2815
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1764
2816
  ) -> RESTResponseType:
1765
- """dashboard_service_list_most_recent_dashboards
2817
+ """RevokeDashboardAccess revokes access to a Dashboard from a subject.
1766
2818
 
1767
2819
 
1768
- :param limit: Optional. The max number of the most recent Dashboards to retrieve. Use -1 to retrieve all. Defaults to 3.
1769
- :type limit: int
1770
- :param filter: Optional. If specified, only leaderboards matching the filter will be returned. Attempts to implement AIP-160 (https://aip.dev/160), although not all fields, operators and features are supported. Supported fields: - model - only '=' operator is supported, e.g. \"model = \\\"models/<UUID>\\\"\"
1771
- :type filter: str
2820
+ :param name: Required. The name of the Dashboard to revoke access from. (required)
2821
+ :type name: str
2822
+ :param body: (required)
2823
+ :type body: WorkflowServiceRevokeWorkflowAccessRequest
1772
2824
  :param _request_timeout: timeout setting for this request. If one
1773
2825
  number provided, it will be total request
1774
2826
  timeout. It can also be a pair (tuple) of
@@ -1791,9 +2843,9 @@ class DashboardServiceApi:
1791
2843
  :return: Returns the result object.
1792
2844
  """ # noqa: E501
1793
2845
 
1794
- _param = self._dashboard_service_list_most_recent_dashboards_serialize(
1795
- limit=limit,
1796
- filter=filter,
2846
+ _param = self._dashboard_service_revoke_dashboard_access_serialize(
2847
+ name=name,
2848
+ body=body,
1797
2849
  _request_auth=_request_auth,
1798
2850
  _content_type=_content_type,
1799
2851
  _headers=_headers,
@@ -1801,7 +2853,7 @@ class DashboardServiceApi:
1801
2853
  )
1802
2854
 
1803
2855
  _response_types_map: Dict[str, Optional[str]] = {
1804
- '200': "V1ListMostRecentDashboardsResponse",
2856
+ '200': "object",
1805
2857
  }
1806
2858
  response_data = self.api_client.call_api(
1807
2859
  *_param,
@@ -1810,10 +2862,10 @@ class DashboardServiceApi:
1810
2862
  return response_data.response
1811
2863
 
1812
2864
 
1813
- def _dashboard_service_list_most_recent_dashboards_serialize(
2865
+ def _dashboard_service_revoke_dashboard_access_serialize(
1814
2866
  self,
1815
- limit,
1816
- filter,
2867
+ name,
2868
+ body,
1817
2869
  _request_auth,
1818
2870
  _content_type,
1819
2871
  _headers,
@@ -1833,18 +2885,14 @@ class DashboardServiceApi:
1833
2885
  _body_params: Optional[bytes] = None
1834
2886
 
1835
2887
  # process the path parameters
2888
+ if name is not None:
2889
+ _path_params['name'] = name
1836
2890
  # process the query parameters
1837
- if limit is not None:
1838
-
1839
- _query_params.append(('limit', limit))
1840
-
1841
- if filter is not None:
1842
-
1843
- _query_params.append(('filter', filter))
1844
-
1845
2891
  # process the header parameters
1846
2892
  # process the form parameters
1847
2893
  # process the body parameter
2894
+ if body is not None:
2895
+ _body_params = body
1848
2896
 
1849
2897
 
1850
2898
  # set the HTTP header `Accept`
@@ -1854,14 +2902,27 @@ class DashboardServiceApi:
1854
2902
  ]
1855
2903
  )
1856
2904
 
2905
+ # set the HTTP header `Content-Type`
2906
+ if _content_type:
2907
+ _header_params['Content-Type'] = _content_type
2908
+ else:
2909
+ _default_content_type = (
2910
+ self.api_client.select_header_content_type(
2911
+ [
2912
+ 'application/json'
2913
+ ]
2914
+ )
2915
+ )
2916
+ if _default_content_type is not None:
2917
+ _header_params['Content-Type'] = _default_content_type
1857
2918
 
1858
2919
  # authentication setting
1859
2920
  _auth_settings: List[str] = [
1860
2921
  ]
1861
2922
 
1862
2923
  return self.api_client.param_serialize(
1863
- method='GET',
1864
- resource_path='/v1/dashboards:mostRecent',
2924
+ method='POST',
2925
+ resource_path='/v1/{name}:revokeAccess',
1865
2926
  path_params=_path_params,
1866
2927
  query_params=_query_params,
1867
2928
  header_params=_header_params,