cosmotech-api 5.0.0b4__py3-none-any.whl → 5.0.0b6__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.

Potentially problematic release.


This version of cosmotech-api might be problematic. Click here for more details.

Files changed (171) hide show
  1. cosmotech_api/__init__.py +2 -6
  2. cosmotech_api/api/connector_api.py +4 -7
  3. cosmotech_api/api/dataset_api.py +471 -40
  4. cosmotech_api/api/meta_api.py +1 -1
  5. cosmotech_api/api/organization_api.py +1 -1
  6. cosmotech_api/api/run_api.py +1 -674
  7. cosmotech_api/api/runner_api.py +13 -13
  8. cosmotech_api/api/scenario_api.py +1 -1
  9. cosmotech_api/api/scenariorun_api.py +1 -1
  10. cosmotech_api/api/solution_api.py +399 -1860
  11. cosmotech_api/api/twingraph_api.py +1 -1
  12. cosmotech_api/api/workspace_api.py +1 -1
  13. cosmotech_api/api_client.py +1 -1
  14. cosmotech_api/configuration.py +2 -2
  15. cosmotech_api/exceptions.py +1 -1
  16. cosmotech_api/models/__init__.py +2 -6
  17. cosmotech_api/models/about_info.py +1 -1
  18. cosmotech_api/models/about_info_version.py +1 -1
  19. cosmotech_api/models/component_role_permissions.py +1 -1
  20. cosmotech_api/models/connector.py +1 -1
  21. cosmotech_api/models/connector_parameter.py +1 -1
  22. cosmotech_api/models/connector_parameter_group.py +1 -1
  23. cosmotech_api/models/container_resource_size_info.py +1 -1
  24. cosmotech_api/models/container_resource_sizing.py +1 -1
  25. cosmotech_api/models/create_info.py +1 -1
  26. cosmotech_api/models/created_run.py +1 -1
  27. cosmotech_api/models/dataset.py +1 -1
  28. cosmotech_api/models/dataset_access_control.py +1 -1
  29. cosmotech_api/models/dataset_compatibility.py +1 -1
  30. cosmotech_api/models/dataset_connector.py +1 -1
  31. cosmotech_api/models/dataset_copy_parameters.py +1 -1
  32. cosmotech_api/models/dataset_create_request.py +1 -1
  33. cosmotech_api/models/dataset_part.py +2 -2
  34. cosmotech_api/models/dataset_part_create_request.py +3 -3
  35. cosmotech_api/models/dataset_part_type_enum.py +2 -2
  36. cosmotech_api/models/dataset_part_update_request.py +1 -1
  37. cosmotech_api/models/dataset_role.py +1 -1
  38. cosmotech_api/models/dataset_search.py +1 -1
  39. cosmotech_api/models/dataset_security.py +1 -1
  40. cosmotech_api/models/dataset_source_type.py +1 -1
  41. cosmotech_api/models/dataset_twin_graph_hash.py +1 -1
  42. cosmotech_api/models/dataset_twin_graph_info.py +1 -1
  43. cosmotech_api/models/dataset_twin_graph_query.py +1 -1
  44. cosmotech_api/models/dataset_update_request.py +1 -1
  45. cosmotech_api/models/delete_historical_data.py +1 -1
  46. cosmotech_api/models/edit_info.py +1 -1
  47. cosmotech_api/models/file_upload_metadata.py +1 -1
  48. cosmotech_api/models/file_upload_validation.py +1 -1
  49. cosmotech_api/models/graph_properties.py +1 -1
  50. cosmotech_api/models/ingestion_status_enum.py +1 -1
  51. cosmotech_api/models/io_types_enum.py +1 -1
  52. cosmotech_api/models/last_run_info.py +1 -1
  53. cosmotech_api/models/organization.py +1 -1
  54. cosmotech_api/models/organization_access_control.py +1 -1
  55. cosmotech_api/models/organization_create_request.py +1 -1
  56. cosmotech_api/models/organization_edit_info.py +1 -1
  57. cosmotech_api/models/organization_role.py +1 -1
  58. cosmotech_api/models/organization_security.py +1 -1
  59. cosmotech_api/models/organization_service.py +1 -1
  60. cosmotech_api/models/organization_services.py +1 -1
  61. cosmotech_api/models/organization_update_request.py +1 -1
  62. cosmotech_api/models/query_result.py +1 -1
  63. cosmotech_api/models/resource_size_info.py +1 -1
  64. cosmotech_api/models/run.py +1 -1
  65. cosmotech_api/models/run_container.py +1 -1
  66. cosmotech_api/models/run_container_artifact.py +1 -1
  67. cosmotech_api/models/run_container_logs.py +1 -1
  68. cosmotech_api/models/run_data.py +2 -2
  69. cosmotech_api/models/run_data_query.py +1 -1
  70. cosmotech_api/models/run_edit_info.py +1 -1
  71. cosmotech_api/models/run_logs.py +1 -1
  72. cosmotech_api/models/run_logs_entry.py +1 -1
  73. cosmotech_api/models/run_resource_requested.py +1 -1
  74. cosmotech_api/models/run_search.py +1 -1
  75. cosmotech_api/models/run_search_state.py +1 -1
  76. cosmotech_api/models/run_start_containers.py +1 -1
  77. cosmotech_api/models/run_state.py +1 -1
  78. cosmotech_api/models/run_status.py +1 -1
  79. cosmotech_api/models/run_status_node.py +1 -1
  80. cosmotech_api/models/run_template.py +1 -1
  81. cosmotech_api/models/run_template_create_request.py +1 -1
  82. cosmotech_api/models/run_template_handler_id.py +1 -1
  83. cosmotech_api/models/run_template_orchestrator.py +1 -1
  84. cosmotech_api/models/run_template_parameter.py +1 -1
  85. cosmotech_api/models/run_template_parameter_create_request.py +1 -1
  86. cosmotech_api/models/run_template_parameter_group.py +1 -1
  87. cosmotech_api/models/run_template_parameter_group_create_request.py +1 -1
  88. cosmotech_api/models/run_template_parameter_group_update_request.py +1 -1
  89. cosmotech_api/models/run_template_parameter_update_request.py +1 -1
  90. cosmotech_api/models/run_template_parameter_value.py +1 -1
  91. cosmotech_api/models/run_template_resource_sizing.py +1 -1
  92. cosmotech_api/models/run_template_step_source.py +1 -1
  93. cosmotech_api/models/run_template_update_request.py +1 -1
  94. cosmotech_api/models/runner.py +8 -4
  95. cosmotech_api/models/runner_access_control.py +1 -1
  96. cosmotech_api/models/runner_changed_parameter_value.py +1 -1
  97. cosmotech_api/models/runner_comparison_result.py +1 -1
  98. cosmotech_api/models/runner_create_request.py +1 -9
  99. cosmotech_api/models/runner_data_download_info.py +1 -1
  100. cosmotech_api/models/runner_data_download_job.py +1 -1
  101. cosmotech_api/models/runner_datasets.py +92 -0
  102. cosmotech_api/models/runner_edit_info.py +1 -1
  103. cosmotech_api/models/runner_job_state.py +1 -1
  104. cosmotech_api/models/runner_last_run.py +1 -1
  105. cosmotech_api/models/runner_parent_last_run.py +1 -1
  106. cosmotech_api/models/runner_resource_sizing.py +1 -1
  107. cosmotech_api/models/runner_role.py +1 -1
  108. cosmotech_api/models/runner_root_last_run.py +1 -1
  109. cosmotech_api/models/runner_run_template_parameter_value.py +1 -3
  110. cosmotech_api/models/runner_security.py +1 -1
  111. cosmotech_api/models/runner_update_request.py +1 -5
  112. cosmotech_api/models/runner_validation_status.py +1 -1
  113. cosmotech_api/models/scenario.py +1 -1
  114. cosmotech_api/models/scenario_access_control.py +1 -1
  115. cosmotech_api/models/scenario_changed_parameter_value.py +1 -1
  116. cosmotech_api/models/scenario_comparison_result.py +1 -1
  117. cosmotech_api/models/scenario_data_download_info.py +1 -1
  118. cosmotech_api/models/scenario_data_download_job.py +1 -1
  119. cosmotech_api/models/scenario_job_state.py +1 -1
  120. cosmotech_api/models/scenario_last_run.py +1 -1
  121. cosmotech_api/models/scenario_resource_sizing.py +1 -1
  122. cosmotech_api/models/scenario_role.py +1 -1
  123. cosmotech_api/models/scenario_run.py +1 -1
  124. cosmotech_api/models/scenario_run_container.py +1 -1
  125. cosmotech_api/models/scenario_run_container_artifact.py +1 -1
  126. cosmotech_api/models/scenario_run_container_logs.py +1 -1
  127. cosmotech_api/models/scenario_run_logs.py +1 -1
  128. cosmotech_api/models/scenario_run_resource_requested.py +1 -1
  129. cosmotech_api/models/scenario_run_search.py +1 -1
  130. cosmotech_api/models/scenario_run_search_state.py +1 -1
  131. cosmotech_api/models/scenario_run_start_containers.py +1 -1
  132. cosmotech_api/models/scenario_run_state.py +1 -1
  133. cosmotech_api/models/scenario_run_status.py +1 -1
  134. cosmotech_api/models/scenario_run_status_node.py +1 -1
  135. cosmotech_api/models/scenario_run_template_parameter_value.py +1 -1
  136. cosmotech_api/models/scenario_security.py +1 -1
  137. cosmotech_api/models/scenario_validation_status.py +1 -1
  138. cosmotech_api/models/send_run_data_request.py +5 -5
  139. cosmotech_api/models/solution.py +1 -1
  140. cosmotech_api/models/solution_access_control.py +1 -1
  141. cosmotech_api/models/solution_create_request.py +1 -1
  142. cosmotech_api/models/solution_edit_info.py +1 -1
  143. cosmotech_api/models/solution_file.py +1 -1
  144. cosmotech_api/models/solution_role.py +1 -1
  145. cosmotech_api/models/solution_security.py +1 -1
  146. cosmotech_api/models/solution_update_request.py +1 -1
  147. cosmotech_api/models/source_info.py +1 -1
  148. cosmotech_api/models/sub_dataset_graph_query.py +1 -1
  149. cosmotech_api/models/twin_graph_batch_result.py +1 -1
  150. cosmotech_api/models/twin_graph_hash.py +1 -1
  151. cosmotech_api/models/twin_graph_query.py +1 -1
  152. cosmotech_api/models/twincache_status_enum.py +1 -1
  153. cosmotech_api/models/validator.py +1 -1
  154. cosmotech_api/models/workspace.py +1 -1
  155. cosmotech_api/models/workspace_access_control.py +1 -1
  156. cosmotech_api/models/workspace_create_request.py +1 -1
  157. cosmotech_api/models/workspace_edit_info.py +1 -1
  158. cosmotech_api/models/workspace_file.py +1 -1
  159. cosmotech_api/models/workspace_role.py +1 -1
  160. cosmotech_api/models/workspace_secret.py +1 -1
  161. cosmotech_api/models/workspace_security.py +1 -1
  162. cosmotech_api/models/workspace_solution.py +16 -2
  163. cosmotech_api/models/workspace_update_request.py +1 -1
  164. cosmotech_api/models/workspace_web_app.py +1 -1
  165. cosmotech_api/rest.py +1 -1
  166. {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/METADATA +1 -1
  167. cosmotech_api-5.0.0b6.dist-info/RECORD +295 -0
  168. cosmotech_api-5.0.0b4.dist-info/RECORD +0 -294
  169. {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/WHEEL +0 -0
  170. {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/licenses/LICENSE +0 -0
  171. {cosmotech_api-5.0.0b4.dist-info → cosmotech_api-5.0.0b6.dist-info}/top_level.txt +0 -0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Cosmo Tech Platform API
7
7
 
8
- The version of the OpenAPI document: 5.0.0-beta4
8
+ The version of the OpenAPI document: 5.0.0-beta6
9
9
  Contact: platform@cosmotech.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -20,12 +20,8 @@ from typing_extensions import Annotated
20
20
  from pydantic import Field, StrictInt, StrictStr
21
21
  from typing import List, Optional
22
22
  from typing_extensions import Annotated
23
- from cosmotech_api.models.query_result import QueryResult
24
23
  from cosmotech_api.models.run import Run
25
- from cosmotech_api.models.run_data import RunData
26
- from cosmotech_api.models.run_data_query import RunDataQuery
27
24
  from cosmotech_api.models.run_status import RunStatus
28
- from cosmotech_api.models.send_run_data_request import SendRunDataRequest
29
25
 
30
26
  from cosmotech_api.api_client import ApiClient, RequestSerialized
31
27
  from cosmotech_api.api_response import ApiResponse
@@ -1582,672 +1578,3 @@ class RunApi:
1582
1578
  )
1583
1579
 
1584
1580
 
1585
-
1586
-
1587
- @validate_call
1588
- def query_run_data(
1589
- self,
1590
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1591
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1592
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1593
- run_id: Annotated[StrictStr, Field(description="the Run identifier")],
1594
- run_data_query: Annotated[RunDataQuery, Field(description="the query to run")],
1595
- _request_timeout: Union[
1596
- None,
1597
- Annotated[StrictFloat, Field(gt=0)],
1598
- Tuple[
1599
- Annotated[StrictFloat, Field(gt=0)],
1600
- Annotated[StrictFloat, Field(gt=0)]
1601
- ]
1602
- ] = None,
1603
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1604
- _content_type: Optional[StrictStr] = None,
1605
- _headers: Optional[Dict[StrictStr, Any]] = None,
1606
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1607
- ) -> QueryResult:
1608
- """query the run data
1609
-
1610
-
1611
- :param organization_id: the Organization identifier (required)
1612
- :type organization_id: str
1613
- :param workspace_id: the Workspace identifier (required)
1614
- :type workspace_id: str
1615
- :param runner_id: the Runner identifier (required)
1616
- :type runner_id: str
1617
- :param run_id: the Run identifier (required)
1618
- :type run_id: str
1619
- :param run_data_query: the query to run (required)
1620
- :type run_data_query: RunDataQuery
1621
- :param _request_timeout: timeout setting for this request. If one
1622
- number provided, it will be total request
1623
- timeout. It can also be a pair (tuple) of
1624
- (connection, read) timeouts.
1625
- :type _request_timeout: int, tuple(int, int), optional
1626
- :param _request_auth: set to override the auth_settings for an a single
1627
- request; this effectively ignores the
1628
- authentication in the spec for a single request.
1629
- :type _request_auth: dict, optional
1630
- :param _content_type: force content-type for the request.
1631
- :type _content_type: str, Optional
1632
- :param _headers: set to override the headers for a single
1633
- request; this effectively ignores the headers
1634
- in the spec for a single request.
1635
- :type _headers: dict, optional
1636
- :param _host_index: set to override the host_index for a single
1637
- request; this effectively ignores the host_index
1638
- in the spec for a single request.
1639
- :type _host_index: int, optional
1640
- :return: Returns the result object.
1641
- """ # noqa: E501
1642
-
1643
- _param = self._query_run_data_serialize(
1644
- organization_id=organization_id,
1645
- workspace_id=workspace_id,
1646
- runner_id=runner_id,
1647
- run_id=run_id,
1648
- run_data_query=run_data_query,
1649
- _request_auth=_request_auth,
1650
- _content_type=_content_type,
1651
- _headers=_headers,
1652
- _host_index=_host_index
1653
- )
1654
-
1655
- _response_types_map: Dict[str, Optional[str]] = {
1656
- '200': "QueryResult",
1657
- }
1658
- response_data = self.api_client.call_api(
1659
- *_param,
1660
- _request_timeout=_request_timeout
1661
- )
1662
- response_data.read()
1663
- return self.api_client.response_deserialize(
1664
- response_data=response_data,
1665
- response_types_map=_response_types_map,
1666
- ).data
1667
-
1668
-
1669
- @validate_call
1670
- def query_run_data_with_http_info(
1671
- self,
1672
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1673
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1674
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1675
- run_id: Annotated[StrictStr, Field(description="the Run identifier")],
1676
- run_data_query: Annotated[RunDataQuery, Field(description="the query to run")],
1677
- _request_timeout: Union[
1678
- None,
1679
- Annotated[StrictFloat, Field(gt=0)],
1680
- Tuple[
1681
- Annotated[StrictFloat, Field(gt=0)],
1682
- Annotated[StrictFloat, Field(gt=0)]
1683
- ]
1684
- ] = None,
1685
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1686
- _content_type: Optional[StrictStr] = None,
1687
- _headers: Optional[Dict[StrictStr, Any]] = None,
1688
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1689
- ) -> ApiResponse[QueryResult]:
1690
- """query the run data
1691
-
1692
-
1693
- :param organization_id: the Organization identifier (required)
1694
- :type organization_id: str
1695
- :param workspace_id: the Workspace identifier (required)
1696
- :type workspace_id: str
1697
- :param runner_id: the Runner identifier (required)
1698
- :type runner_id: str
1699
- :param run_id: the Run identifier (required)
1700
- :type run_id: str
1701
- :param run_data_query: the query to run (required)
1702
- :type run_data_query: RunDataQuery
1703
- :param _request_timeout: timeout setting for this request. If one
1704
- number provided, it will be total request
1705
- timeout. It can also be a pair (tuple) of
1706
- (connection, read) timeouts.
1707
- :type _request_timeout: int, tuple(int, int), optional
1708
- :param _request_auth: set to override the auth_settings for an a single
1709
- request; this effectively ignores the
1710
- authentication in the spec for a single request.
1711
- :type _request_auth: dict, optional
1712
- :param _content_type: force content-type for the request.
1713
- :type _content_type: str, Optional
1714
- :param _headers: set to override the headers for a single
1715
- request; this effectively ignores the headers
1716
- in the spec for a single request.
1717
- :type _headers: dict, optional
1718
- :param _host_index: set to override the host_index for a single
1719
- request; this effectively ignores the host_index
1720
- in the spec for a single request.
1721
- :type _host_index: int, optional
1722
- :return: Returns the result object.
1723
- """ # noqa: E501
1724
-
1725
- _param = self._query_run_data_serialize(
1726
- organization_id=organization_id,
1727
- workspace_id=workspace_id,
1728
- runner_id=runner_id,
1729
- run_id=run_id,
1730
- run_data_query=run_data_query,
1731
- _request_auth=_request_auth,
1732
- _content_type=_content_type,
1733
- _headers=_headers,
1734
- _host_index=_host_index
1735
- )
1736
-
1737
- _response_types_map: Dict[str, Optional[str]] = {
1738
- '200': "QueryResult",
1739
- }
1740
- response_data = self.api_client.call_api(
1741
- *_param,
1742
- _request_timeout=_request_timeout
1743
- )
1744
- response_data.read()
1745
- return self.api_client.response_deserialize(
1746
- response_data=response_data,
1747
- response_types_map=_response_types_map,
1748
- )
1749
-
1750
-
1751
- @validate_call
1752
- def query_run_data_without_preload_content(
1753
- self,
1754
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1755
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1756
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1757
- run_id: Annotated[StrictStr, Field(description="the Run identifier")],
1758
- run_data_query: Annotated[RunDataQuery, Field(description="the query to run")],
1759
- _request_timeout: Union[
1760
- None,
1761
- Annotated[StrictFloat, Field(gt=0)],
1762
- Tuple[
1763
- Annotated[StrictFloat, Field(gt=0)],
1764
- Annotated[StrictFloat, Field(gt=0)]
1765
- ]
1766
- ] = None,
1767
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1768
- _content_type: Optional[StrictStr] = None,
1769
- _headers: Optional[Dict[StrictStr, Any]] = None,
1770
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1771
- ) -> RESTResponseType:
1772
- """query the run data
1773
-
1774
-
1775
- :param organization_id: the Organization identifier (required)
1776
- :type organization_id: str
1777
- :param workspace_id: the Workspace identifier (required)
1778
- :type workspace_id: str
1779
- :param runner_id: the Runner identifier (required)
1780
- :type runner_id: str
1781
- :param run_id: the Run identifier (required)
1782
- :type run_id: str
1783
- :param run_data_query: the query to run (required)
1784
- :type run_data_query: RunDataQuery
1785
- :param _request_timeout: timeout setting for this request. If one
1786
- number provided, it will be total request
1787
- timeout. It can also be a pair (tuple) of
1788
- (connection, read) timeouts.
1789
- :type _request_timeout: int, tuple(int, int), optional
1790
- :param _request_auth: set to override the auth_settings for an a single
1791
- request; this effectively ignores the
1792
- authentication in the spec for a single request.
1793
- :type _request_auth: dict, optional
1794
- :param _content_type: force content-type for the request.
1795
- :type _content_type: str, Optional
1796
- :param _headers: set to override the headers for a single
1797
- request; this effectively ignores the headers
1798
- in the spec for a single request.
1799
- :type _headers: dict, optional
1800
- :param _host_index: set to override the host_index for a single
1801
- request; this effectively ignores the host_index
1802
- in the spec for a single request.
1803
- :type _host_index: int, optional
1804
- :return: Returns the result object.
1805
- """ # noqa: E501
1806
-
1807
- _param = self._query_run_data_serialize(
1808
- organization_id=organization_id,
1809
- workspace_id=workspace_id,
1810
- runner_id=runner_id,
1811
- run_id=run_id,
1812
- run_data_query=run_data_query,
1813
- _request_auth=_request_auth,
1814
- _content_type=_content_type,
1815
- _headers=_headers,
1816
- _host_index=_host_index
1817
- )
1818
-
1819
- _response_types_map: Dict[str, Optional[str]] = {
1820
- '200': "QueryResult",
1821
- }
1822
- response_data = self.api_client.call_api(
1823
- *_param,
1824
- _request_timeout=_request_timeout
1825
- )
1826
- return response_data.response
1827
-
1828
-
1829
- def _query_run_data_serialize(
1830
- self,
1831
- organization_id,
1832
- workspace_id,
1833
- runner_id,
1834
- run_id,
1835
- run_data_query,
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[
1852
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1853
- ] = {}
1854
- _body_params: Optional[bytes] = None
1855
-
1856
- # process the path parameters
1857
- if organization_id is not None:
1858
- _path_params['organization_id'] = organization_id
1859
- if workspace_id is not None:
1860
- _path_params['workspace_id'] = workspace_id
1861
- if runner_id is not None:
1862
- _path_params['runner_id'] = runner_id
1863
- if run_id is not None:
1864
- _path_params['run_id'] = run_id
1865
- # process the query parameters
1866
- # process the header parameters
1867
- # process the form parameters
1868
- # process the body parameter
1869
- if run_data_query is not None:
1870
- _body_params = run_data_query
1871
-
1872
-
1873
- # set the HTTP header `Accept`
1874
- if 'Accept' not in _header_params:
1875
- _header_params['Accept'] = self.api_client.select_header_accept(
1876
- [
1877
- 'application/json',
1878
- 'application/yaml'
1879
- ]
1880
- )
1881
-
1882
- # set the HTTP header `Content-Type`
1883
- if _content_type:
1884
- _header_params['Content-Type'] = _content_type
1885
- else:
1886
- _default_content_type = (
1887
- self.api_client.select_header_content_type(
1888
- [
1889
- 'application/json',
1890
- 'application/yaml'
1891
- ]
1892
- )
1893
- )
1894
- if _default_content_type is not None:
1895
- _header_params['Content-Type'] = _default_content_type
1896
-
1897
- # authentication setting
1898
- _auth_settings: List[str] = [
1899
- 'oAuth2AuthCode'
1900
- ]
1901
-
1902
- return self.api_client.param_serialize(
1903
- method='POST',
1904
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/query',
1905
- path_params=_path_params,
1906
- query_params=_query_params,
1907
- header_params=_header_params,
1908
- body=_body_params,
1909
- post_params=_form_params,
1910
- files=_files,
1911
- auth_settings=_auth_settings,
1912
- collection_formats=_collection_formats,
1913
- _host=_host,
1914
- _request_auth=_request_auth
1915
- )
1916
-
1917
-
1918
-
1919
-
1920
- @validate_call
1921
- def send_run_data(
1922
- self,
1923
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
1924
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
1925
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
1926
- run_id: Annotated[StrictStr, Field(description="the Run identifier")],
1927
- send_run_data_request: Annotated[SendRunDataRequest, Field(description="Custom data to register")],
1928
- _request_timeout: Union[
1929
- None,
1930
- Annotated[StrictFloat, Field(gt=0)],
1931
- Tuple[
1932
- Annotated[StrictFloat, Field(gt=0)],
1933
- Annotated[StrictFloat, Field(gt=0)]
1934
- ]
1935
- ] = None,
1936
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1937
- _content_type: Optional[StrictStr] = None,
1938
- _headers: Optional[Dict[StrictStr, Any]] = None,
1939
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1940
- ) -> RunData:
1941
- """Send data associated to a run
1942
-
1943
-
1944
- :param organization_id: the Organization identifier (required)
1945
- :type organization_id: str
1946
- :param workspace_id: the Workspace identifier (required)
1947
- :type workspace_id: str
1948
- :param runner_id: the Runner identifier (required)
1949
- :type runner_id: str
1950
- :param run_id: the Run identifier (required)
1951
- :type run_id: str
1952
- :param send_run_data_request: Custom data to register (required)
1953
- :type send_run_data_request: SendRunDataRequest
1954
- :param _request_timeout: timeout setting for this request. If one
1955
- number provided, it will be total request
1956
- timeout. It can also be a pair (tuple) of
1957
- (connection, read) timeouts.
1958
- :type _request_timeout: int, tuple(int, int), optional
1959
- :param _request_auth: set to override the auth_settings for an a single
1960
- request; this effectively ignores the
1961
- authentication in the spec for a single request.
1962
- :type _request_auth: dict, optional
1963
- :param _content_type: force content-type for the request.
1964
- :type _content_type: str, Optional
1965
- :param _headers: set to override the headers for a single
1966
- request; this effectively ignores the headers
1967
- in the spec for a single request.
1968
- :type _headers: dict, optional
1969
- :param _host_index: set to override the host_index for a single
1970
- request; this effectively ignores the host_index
1971
- in the spec for a single request.
1972
- :type _host_index: int, optional
1973
- :return: Returns the result object.
1974
- """ # noqa: E501
1975
-
1976
- _param = self._send_run_data_serialize(
1977
- organization_id=organization_id,
1978
- workspace_id=workspace_id,
1979
- runner_id=runner_id,
1980
- run_id=run_id,
1981
- send_run_data_request=send_run_data_request,
1982
- _request_auth=_request_auth,
1983
- _content_type=_content_type,
1984
- _headers=_headers,
1985
- _host_index=_host_index
1986
- )
1987
-
1988
- _response_types_map: Dict[str, Optional[str]] = {
1989
- '201': "RunData",
1990
- '400': None,
1991
- }
1992
- response_data = self.api_client.call_api(
1993
- *_param,
1994
- _request_timeout=_request_timeout
1995
- )
1996
- response_data.read()
1997
- return self.api_client.response_deserialize(
1998
- response_data=response_data,
1999
- response_types_map=_response_types_map,
2000
- ).data
2001
-
2002
-
2003
- @validate_call
2004
- def send_run_data_with_http_info(
2005
- self,
2006
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2007
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2008
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2009
- run_id: Annotated[StrictStr, Field(description="the Run identifier")],
2010
- send_run_data_request: Annotated[SendRunDataRequest, Field(description="Custom data to register")],
2011
- _request_timeout: Union[
2012
- None,
2013
- Annotated[StrictFloat, Field(gt=0)],
2014
- Tuple[
2015
- Annotated[StrictFloat, Field(gt=0)],
2016
- Annotated[StrictFloat, Field(gt=0)]
2017
- ]
2018
- ] = None,
2019
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2020
- _content_type: Optional[StrictStr] = None,
2021
- _headers: Optional[Dict[StrictStr, Any]] = None,
2022
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2023
- ) -> ApiResponse[RunData]:
2024
- """Send data associated to a run
2025
-
2026
-
2027
- :param organization_id: the Organization identifier (required)
2028
- :type organization_id: str
2029
- :param workspace_id: the Workspace identifier (required)
2030
- :type workspace_id: str
2031
- :param runner_id: the Runner identifier (required)
2032
- :type runner_id: str
2033
- :param run_id: the Run identifier (required)
2034
- :type run_id: str
2035
- :param send_run_data_request: Custom data to register (required)
2036
- :type send_run_data_request: SendRunDataRequest
2037
- :param _request_timeout: timeout setting for this request. If one
2038
- number provided, it will be total request
2039
- timeout. It can also be a pair (tuple) of
2040
- (connection, read) timeouts.
2041
- :type _request_timeout: int, tuple(int, int), optional
2042
- :param _request_auth: set to override the auth_settings for an a single
2043
- request; this effectively ignores the
2044
- authentication in the spec for a single request.
2045
- :type _request_auth: dict, optional
2046
- :param _content_type: force content-type for the request.
2047
- :type _content_type: str, Optional
2048
- :param _headers: set to override the headers for a single
2049
- request; this effectively ignores the headers
2050
- in the spec for a single request.
2051
- :type _headers: dict, optional
2052
- :param _host_index: set to override the host_index for a single
2053
- request; this effectively ignores the host_index
2054
- in the spec for a single request.
2055
- :type _host_index: int, optional
2056
- :return: Returns the result object.
2057
- """ # noqa: E501
2058
-
2059
- _param = self._send_run_data_serialize(
2060
- organization_id=organization_id,
2061
- workspace_id=workspace_id,
2062
- runner_id=runner_id,
2063
- run_id=run_id,
2064
- send_run_data_request=send_run_data_request,
2065
- _request_auth=_request_auth,
2066
- _content_type=_content_type,
2067
- _headers=_headers,
2068
- _host_index=_host_index
2069
- )
2070
-
2071
- _response_types_map: Dict[str, Optional[str]] = {
2072
- '201': "RunData",
2073
- '400': None,
2074
- }
2075
- response_data = self.api_client.call_api(
2076
- *_param,
2077
- _request_timeout=_request_timeout
2078
- )
2079
- response_data.read()
2080
- return self.api_client.response_deserialize(
2081
- response_data=response_data,
2082
- response_types_map=_response_types_map,
2083
- )
2084
-
2085
-
2086
- @validate_call
2087
- def send_run_data_without_preload_content(
2088
- self,
2089
- organization_id: Annotated[StrictStr, Field(description="the Organization identifier")],
2090
- workspace_id: Annotated[StrictStr, Field(description="the Workspace identifier")],
2091
- runner_id: Annotated[StrictStr, Field(description="the Runner identifier")],
2092
- run_id: Annotated[StrictStr, Field(description="the Run identifier")],
2093
- send_run_data_request: Annotated[SendRunDataRequest, Field(description="Custom data to register")],
2094
- _request_timeout: Union[
2095
- None,
2096
- Annotated[StrictFloat, Field(gt=0)],
2097
- Tuple[
2098
- Annotated[StrictFloat, Field(gt=0)],
2099
- Annotated[StrictFloat, Field(gt=0)]
2100
- ]
2101
- ] = None,
2102
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
2103
- _content_type: Optional[StrictStr] = None,
2104
- _headers: Optional[Dict[StrictStr, Any]] = None,
2105
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2106
- ) -> RESTResponseType:
2107
- """Send data associated to a run
2108
-
2109
-
2110
- :param organization_id: the Organization identifier (required)
2111
- :type organization_id: str
2112
- :param workspace_id: the Workspace identifier (required)
2113
- :type workspace_id: str
2114
- :param runner_id: the Runner identifier (required)
2115
- :type runner_id: str
2116
- :param run_id: the Run identifier (required)
2117
- :type run_id: str
2118
- :param send_run_data_request: Custom data to register (required)
2119
- :type send_run_data_request: SendRunDataRequest
2120
- :param _request_timeout: timeout setting for this request. If one
2121
- number provided, it will be total request
2122
- timeout. It can also be a pair (tuple) of
2123
- (connection, read) timeouts.
2124
- :type _request_timeout: int, tuple(int, int), optional
2125
- :param _request_auth: set to override the auth_settings for an a single
2126
- request; this effectively ignores the
2127
- authentication in the spec for a single request.
2128
- :type _request_auth: dict, optional
2129
- :param _content_type: force content-type for the request.
2130
- :type _content_type: str, Optional
2131
- :param _headers: set to override the headers for a single
2132
- request; this effectively ignores the headers
2133
- in the spec for a single request.
2134
- :type _headers: dict, optional
2135
- :param _host_index: set to override the host_index for a single
2136
- request; this effectively ignores the host_index
2137
- in the spec for a single request.
2138
- :type _host_index: int, optional
2139
- :return: Returns the result object.
2140
- """ # noqa: E501
2141
-
2142
- _param = self._send_run_data_serialize(
2143
- organization_id=organization_id,
2144
- workspace_id=workspace_id,
2145
- runner_id=runner_id,
2146
- run_id=run_id,
2147
- send_run_data_request=send_run_data_request,
2148
- _request_auth=_request_auth,
2149
- _content_type=_content_type,
2150
- _headers=_headers,
2151
- _host_index=_host_index
2152
- )
2153
-
2154
- _response_types_map: Dict[str, Optional[str]] = {
2155
- '201': "RunData",
2156
- '400': None,
2157
- }
2158
- response_data = self.api_client.call_api(
2159
- *_param,
2160
- _request_timeout=_request_timeout
2161
- )
2162
- return response_data.response
2163
-
2164
-
2165
- def _send_run_data_serialize(
2166
- self,
2167
- organization_id,
2168
- workspace_id,
2169
- runner_id,
2170
- run_id,
2171
- send_run_data_request,
2172
- _request_auth,
2173
- _content_type,
2174
- _headers,
2175
- _host_index,
2176
- ) -> RequestSerialized:
2177
-
2178
- _host = None
2179
-
2180
- _collection_formats: Dict[str, str] = {
2181
- }
2182
-
2183
- _path_params: Dict[str, str] = {}
2184
- _query_params: List[Tuple[str, str]] = []
2185
- _header_params: Dict[str, Optional[str]] = _headers or {}
2186
- _form_params: List[Tuple[str, str]] = []
2187
- _files: Dict[
2188
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2189
- ] = {}
2190
- _body_params: Optional[bytes] = None
2191
-
2192
- # process the path parameters
2193
- if organization_id is not None:
2194
- _path_params['organization_id'] = organization_id
2195
- if workspace_id is not None:
2196
- _path_params['workspace_id'] = workspace_id
2197
- if runner_id is not None:
2198
- _path_params['runner_id'] = runner_id
2199
- if run_id is not None:
2200
- _path_params['run_id'] = run_id
2201
- # process the query parameters
2202
- # process the header parameters
2203
- # process the form parameters
2204
- # process the body parameter
2205
- if send_run_data_request is not None:
2206
- _body_params = send_run_data_request
2207
-
2208
-
2209
- # set the HTTP header `Accept`
2210
- if 'Accept' not in _header_params:
2211
- _header_params['Accept'] = self.api_client.select_header_accept(
2212
- [
2213
- 'application/json',
2214
- 'application/yaml'
2215
- ]
2216
- )
2217
-
2218
- # set the HTTP header `Content-Type`
2219
- if _content_type:
2220
- _header_params['Content-Type'] = _content_type
2221
- else:
2222
- _default_content_type = (
2223
- self.api_client.select_header_content_type(
2224
- [
2225
- 'application/json',
2226
- 'application/yaml'
2227
- ]
2228
- )
2229
- )
2230
- if _default_content_type is not None:
2231
- _header_params['Content-Type'] = _default_content_type
2232
-
2233
- # authentication setting
2234
- _auth_settings: List[str] = [
2235
- 'oAuth2AuthCode'
2236
- ]
2237
-
2238
- return self.api_client.param_serialize(
2239
- method='POST',
2240
- resource_path='/organizations/{organization_id}/workspaces/{workspace_id}/runners/{runner_id}/runs/{run_id}/data/send',
2241
- path_params=_path_params,
2242
- query_params=_query_params,
2243
- header_params=_header_params,
2244
- body=_body_params,
2245
- post_params=_form_params,
2246
- files=_files,
2247
- auth_settings=_auth_settings,
2248
- collection_formats=_collection_formats,
2249
- _host=_host,
2250
- _request_auth=_request_auth
2251
- )
2252
-
2253
-