rapidata 2.5.0__py3-none-any.whl → 2.7.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rapidata might be problematic. Click here for more details.

Files changed (39) hide show
  1. rapidata/api_client/__init__.py +17 -15
  2. rapidata/api_client/api/compare_workflow_api.py +49 -48
  3. rapidata/api_client/api/pipeline_api.py +559 -2
  4. rapidata/api_client/api/rapid_api.py +283 -0
  5. rapidata/api_client/api/simple_workflow_api.py +49 -82
  6. rapidata/api_client/api/workflow_api.py +0 -264
  7. rapidata/api_client/models/__init__.py +17 -15
  8. rapidata/api_client/models/ab_test_selection.py +122 -0
  9. rapidata/api_client/models/ab_test_selection_a_inner.py +212 -0
  10. rapidata/api_client/models/add_campaign_model.py +3 -3
  11. rapidata/api_client/models/capped_selection.py +3 -3
  12. rapidata/api_client/models/compare_match_status.py +39 -0
  13. rapidata/api_client/models/create_order_model.py +3 -3
  14. rapidata/api_client/models/get_compare_workflow_results_model.py +114 -0
  15. rapidata/api_client/models/get_compare_workflow_results_result.py +104 -0
  16. rapidata/api_client/models/get_compare_workflow_results_result_asset.py +170 -0
  17. rapidata/api_client/models/get_compare_workflow_results_result_paged_result.py +105 -0
  18. rapidata/api_client/models/get_simple_workflow_results_model.py +114 -0
  19. rapidata/api_client/models/get_simple_workflow_results_result.py +112 -0
  20. rapidata/api_client/models/get_simple_workflow_results_result_paged_result.py +105 -0
  21. rapidata/api_client/models/multi_asset_model2.py +3 -3
  22. rapidata/api_client/models/order_model.py +3 -1
  23. rapidata/api_client/models/preliminary_download_model.py +87 -0
  24. rapidata/api_client/models/preliminary_download_result.py +87 -0
  25. rapidata/api_client/models/query_validation_rapids_result.py +11 -2
  26. rapidata/api_client/models/rapid_response.py +101 -0
  27. rapidata/api_client/models/rapid_response_result.py +266 -0
  28. rapidata/api_client/models/rapid_state.py +40 -0
  29. rapidata/api_client/models/update_validation_rapid_model.py +105 -0
  30. rapidata/api_client/models/update_validation_rapid_model_truth.py +252 -0
  31. rapidata/api_client_README.md +22 -18
  32. rapidata/rapidata_client/order/_rapidata_order_builder.py +3 -3
  33. rapidata/rapidata_client/order/rapidata_order.py +41 -4
  34. rapidata/rapidata_client/selection/ab_test_selection.py +38 -0
  35. rapidata/rapidata_client/selection/capped_selection.py +3 -3
  36. {rapidata-2.5.0.dist-info → rapidata-2.7.0.dist-info}/METADATA +1 -1
  37. {rapidata-2.5.0.dist-info → rapidata-2.7.0.dist-info}/RECORD +39 -21
  38. {rapidata-2.5.0.dist-info → rapidata-2.7.0.dist-info}/LICENSE +0 -0
  39. {rapidata-2.5.0.dist-info → rapidata-2.7.0.dist-info}/WHEEL +0 -0
@@ -16,13 +16,15 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from pydantic import Field, StrictStr
20
- from typing import Optional
19
+ from pydantic import Field, StrictBytes, StrictStr
20
+ from typing import Optional, Tuple, Union
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.add_campaign_artifact_result import AddCampaignArtifactResult
23
23
  from rapidata.api_client.models.add_campaign_model import AddCampaignModel
24
24
  from rapidata.api_client.models.get_pipeline_by_id_result import GetPipelineByIdResult
25
25
  from rapidata.api_client.models.pipeline_id_workflow_put_request import PipelineIdWorkflowPutRequest
26
+ from rapidata.api_client.models.preliminary_download_model import PreliminaryDownloadModel
27
+ from rapidata.api_client.models.preliminary_download_result import PreliminaryDownloadResult
26
28
  from rapidata.api_client.models.update_campaign_model import UpdateCampaignModel
27
29
 
28
30
  from rapidata.api_client.api_client import ApiClient, RequestSerialized
@@ -1757,3 +1759,558 @@ class PipelineApi:
1757
1759
  )
1758
1760
 
1759
1761
 
1762
+
1763
+
1764
+ @validate_call
1765
+ def pipeline_pipeline_id_preliminary_download_post(
1766
+ self,
1767
+ pipeline_id: StrictStr,
1768
+ preliminary_download_model: Optional[PreliminaryDownloadModel] = None,
1769
+ _request_timeout: Union[
1770
+ None,
1771
+ Annotated[StrictFloat, Field(gt=0)],
1772
+ Tuple[
1773
+ Annotated[StrictFloat, Field(gt=0)],
1774
+ Annotated[StrictFloat, Field(gt=0)]
1775
+ ]
1776
+ ] = None,
1777
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1778
+ _content_type: Optional[StrictStr] = None,
1779
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1780
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1781
+ ) -> PreliminaryDownloadResult:
1782
+ """Initiates a preliminary download of the pipeline.
1783
+
1784
+
1785
+ :param pipeline_id: (required)
1786
+ :type pipeline_id: str
1787
+ :param preliminary_download_model:
1788
+ :type preliminary_download_model: PreliminaryDownloadModel
1789
+ :param _request_timeout: timeout setting for this request. If one
1790
+ number provided, it will be total request
1791
+ timeout. It can also be a pair (tuple) of
1792
+ (connection, read) timeouts.
1793
+ :type _request_timeout: int, tuple(int, int), optional
1794
+ :param _request_auth: set to override the auth_settings for an a single
1795
+ request; this effectively ignores the
1796
+ authentication in the spec for a single request.
1797
+ :type _request_auth: dict, optional
1798
+ :param _content_type: force content-type for the request.
1799
+ :type _content_type: str, Optional
1800
+ :param _headers: set to override the headers for a single
1801
+ request; this effectively ignores the headers
1802
+ in the spec for a single request.
1803
+ :type _headers: dict, optional
1804
+ :param _host_index: set to override the host_index for a single
1805
+ request; this effectively ignores the host_index
1806
+ in the spec for a single request.
1807
+ :type _host_index: int, optional
1808
+ :return: Returns the result object.
1809
+ """ # noqa: E501
1810
+
1811
+ _param = self._pipeline_pipeline_id_preliminary_download_post_serialize(
1812
+ pipeline_id=pipeline_id,
1813
+ preliminary_download_model=preliminary_download_model,
1814
+ _request_auth=_request_auth,
1815
+ _content_type=_content_type,
1816
+ _headers=_headers,
1817
+ _host_index=_host_index
1818
+ )
1819
+
1820
+ _response_types_map: Dict[str, Optional[str]] = {
1821
+ '200': "PreliminaryDownloadResult",
1822
+ }
1823
+ response_data = self.api_client.call_api(
1824
+ *_param,
1825
+ _request_timeout=_request_timeout
1826
+ )
1827
+ response_data.read()
1828
+ return self.api_client.response_deserialize(
1829
+ response_data=response_data,
1830
+ response_types_map=_response_types_map,
1831
+ ).data
1832
+
1833
+
1834
+ @validate_call
1835
+ def pipeline_pipeline_id_preliminary_download_post_with_http_info(
1836
+ self,
1837
+ pipeline_id: StrictStr,
1838
+ preliminary_download_model: Optional[PreliminaryDownloadModel] = None,
1839
+ _request_timeout: Union[
1840
+ None,
1841
+ Annotated[StrictFloat, Field(gt=0)],
1842
+ Tuple[
1843
+ Annotated[StrictFloat, Field(gt=0)],
1844
+ Annotated[StrictFloat, Field(gt=0)]
1845
+ ]
1846
+ ] = None,
1847
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1848
+ _content_type: Optional[StrictStr] = None,
1849
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1850
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1851
+ ) -> ApiResponse[PreliminaryDownloadResult]:
1852
+ """Initiates a preliminary download of the pipeline.
1853
+
1854
+
1855
+ :param pipeline_id: (required)
1856
+ :type pipeline_id: str
1857
+ :param preliminary_download_model:
1858
+ :type preliminary_download_model: PreliminaryDownloadModel
1859
+ :param _request_timeout: timeout setting for this request. If one
1860
+ number provided, it will be total request
1861
+ timeout. It can also be a pair (tuple) of
1862
+ (connection, read) timeouts.
1863
+ :type _request_timeout: int, tuple(int, int), optional
1864
+ :param _request_auth: set to override the auth_settings for an a single
1865
+ request; this effectively ignores the
1866
+ authentication in the spec for a single request.
1867
+ :type _request_auth: dict, optional
1868
+ :param _content_type: force content-type for the request.
1869
+ :type _content_type: str, Optional
1870
+ :param _headers: set to override the headers for a single
1871
+ request; this effectively ignores the headers
1872
+ in the spec for a single request.
1873
+ :type _headers: dict, optional
1874
+ :param _host_index: set to override the host_index for a single
1875
+ request; this effectively ignores the host_index
1876
+ in the spec for a single request.
1877
+ :type _host_index: int, optional
1878
+ :return: Returns the result object.
1879
+ """ # noqa: E501
1880
+
1881
+ _param = self._pipeline_pipeline_id_preliminary_download_post_serialize(
1882
+ pipeline_id=pipeline_id,
1883
+ preliminary_download_model=preliminary_download_model,
1884
+ _request_auth=_request_auth,
1885
+ _content_type=_content_type,
1886
+ _headers=_headers,
1887
+ _host_index=_host_index
1888
+ )
1889
+
1890
+ _response_types_map: Dict[str, Optional[str]] = {
1891
+ '200': "PreliminaryDownloadResult",
1892
+ }
1893
+ response_data = self.api_client.call_api(
1894
+ *_param,
1895
+ _request_timeout=_request_timeout
1896
+ )
1897
+ response_data.read()
1898
+ return self.api_client.response_deserialize(
1899
+ response_data=response_data,
1900
+ response_types_map=_response_types_map,
1901
+ )
1902
+
1903
+
1904
+ @validate_call
1905
+ def pipeline_pipeline_id_preliminary_download_post_without_preload_content(
1906
+ self,
1907
+ pipeline_id: StrictStr,
1908
+ preliminary_download_model: Optional[PreliminaryDownloadModel] = None,
1909
+ _request_timeout: Union[
1910
+ None,
1911
+ Annotated[StrictFloat, Field(gt=0)],
1912
+ Tuple[
1913
+ Annotated[StrictFloat, Field(gt=0)],
1914
+ Annotated[StrictFloat, Field(gt=0)]
1915
+ ]
1916
+ ] = None,
1917
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1918
+ _content_type: Optional[StrictStr] = None,
1919
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1920
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1921
+ ) -> RESTResponseType:
1922
+ """Initiates a preliminary download of the pipeline.
1923
+
1924
+
1925
+ :param pipeline_id: (required)
1926
+ :type pipeline_id: str
1927
+ :param preliminary_download_model:
1928
+ :type preliminary_download_model: PreliminaryDownloadModel
1929
+ :param _request_timeout: timeout setting for this request. If one
1930
+ number provided, it will be total request
1931
+ timeout. It can also be a pair (tuple) of
1932
+ (connection, read) timeouts.
1933
+ :type _request_timeout: int, tuple(int, int), optional
1934
+ :param _request_auth: set to override the auth_settings for an a single
1935
+ request; this effectively ignores the
1936
+ authentication in the spec for a single request.
1937
+ :type _request_auth: dict, optional
1938
+ :param _content_type: force content-type for the request.
1939
+ :type _content_type: str, Optional
1940
+ :param _headers: set to override the headers for a single
1941
+ request; this effectively ignores the headers
1942
+ in the spec for a single request.
1943
+ :type _headers: dict, optional
1944
+ :param _host_index: set to override the host_index for a single
1945
+ request; this effectively ignores the host_index
1946
+ in the spec for a single request.
1947
+ :type _host_index: int, optional
1948
+ :return: Returns the result object.
1949
+ """ # noqa: E501
1950
+
1951
+ _param = self._pipeline_pipeline_id_preliminary_download_post_serialize(
1952
+ pipeline_id=pipeline_id,
1953
+ preliminary_download_model=preliminary_download_model,
1954
+ _request_auth=_request_auth,
1955
+ _content_type=_content_type,
1956
+ _headers=_headers,
1957
+ _host_index=_host_index
1958
+ )
1959
+
1960
+ _response_types_map: Dict[str, Optional[str]] = {
1961
+ '200': "PreliminaryDownloadResult",
1962
+ }
1963
+ response_data = self.api_client.call_api(
1964
+ *_param,
1965
+ _request_timeout=_request_timeout
1966
+ )
1967
+ return response_data.response
1968
+
1969
+
1970
+ def _pipeline_pipeline_id_preliminary_download_post_serialize(
1971
+ self,
1972
+ pipeline_id,
1973
+ preliminary_download_model,
1974
+ _request_auth,
1975
+ _content_type,
1976
+ _headers,
1977
+ _host_index,
1978
+ ) -> RequestSerialized:
1979
+
1980
+ _host = None
1981
+
1982
+ _collection_formats: Dict[str, str] = {
1983
+ }
1984
+
1985
+ _path_params: Dict[str, str] = {}
1986
+ _query_params: List[Tuple[str, str]] = []
1987
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1988
+ _form_params: List[Tuple[str, str]] = []
1989
+ _files: Dict[
1990
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1991
+ ] = {}
1992
+ _body_params: Optional[bytes] = None
1993
+
1994
+ # process the path parameters
1995
+ if pipeline_id is not None:
1996
+ _path_params['pipelineId'] = pipeline_id
1997
+ # process the query parameters
1998
+ # process the header parameters
1999
+ # process the form parameters
2000
+ # process the body parameter
2001
+ if preliminary_download_model is not None:
2002
+ _body_params = preliminary_download_model
2003
+
2004
+
2005
+ # set the HTTP header `Accept`
2006
+ if 'Accept' not in _header_params:
2007
+ _header_params['Accept'] = self.api_client.select_header_accept(
2008
+ [
2009
+ 'text/plain',
2010
+ 'application/json',
2011
+ 'text/json'
2012
+ ]
2013
+ )
2014
+
2015
+ # set the HTTP header `Content-Type`
2016
+ if _content_type:
2017
+ _header_params['Content-Type'] = _content_type
2018
+ else:
2019
+ _default_content_type = (
2020
+ self.api_client.select_header_content_type(
2021
+ [
2022
+ 'application/json',
2023
+ 'text/json',
2024
+ 'application/*+json'
2025
+ ]
2026
+ )
2027
+ )
2028
+ if _default_content_type is not None:
2029
+ _header_params['Content-Type'] = _default_content_type
2030
+
2031
+ # authentication setting
2032
+ _auth_settings: List[str] = [
2033
+ 'bearer',
2034
+ 'oauth2'
2035
+ ]
2036
+
2037
+ return self.api_client.param_serialize(
2038
+ method='POST',
2039
+ resource_path='/pipeline/{pipelineId}/preliminary-download',
2040
+ path_params=_path_params,
2041
+ query_params=_query_params,
2042
+ header_params=_header_params,
2043
+ body=_body_params,
2044
+ post_params=_form_params,
2045
+ files=_files,
2046
+ auth_settings=_auth_settings,
2047
+ collection_formats=_collection_formats,
2048
+ _host=_host,
2049
+ _request_auth=_request_auth
2050
+ )
2051
+
2052
+
2053
+
2054
+
2055
+ @validate_call
2056
+ def pipeline_preliminary_download_preliminary_download_id_get(
2057
+ self,
2058
+ preliminary_download_id: StrictStr,
2059
+ _request_timeout: Union[
2060
+ None,
2061
+ Annotated[StrictFloat, Field(gt=0)],
2062
+ Tuple[
2063
+ Annotated[StrictFloat, Field(gt=0)],
2064
+ Annotated[StrictFloat, Field(gt=0)]
2065
+ ]
2066
+ ] = None,
2067
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2068
+ _content_type: Optional[StrictStr] = None,
2069
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2070
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2071
+ ) -> bytearray:
2072
+ """Gets the preliminary download. If it's still processing the request will return 202 Accepted.
2073
+
2074
+
2075
+ :param preliminary_download_id: (required)
2076
+ :type preliminary_download_id: str
2077
+ :param _request_timeout: timeout setting for this request. If one
2078
+ number provided, it will be total request
2079
+ timeout. It can also be a pair (tuple) of
2080
+ (connection, read) timeouts.
2081
+ :type _request_timeout: int, tuple(int, int), optional
2082
+ :param _request_auth: set to override the auth_settings for an a single
2083
+ request; this effectively ignores the
2084
+ authentication in the spec for a single request.
2085
+ :type _request_auth: dict, optional
2086
+ :param _content_type: force content-type for the request.
2087
+ :type _content_type: str, Optional
2088
+ :param _headers: set to override the headers for a single
2089
+ request; this effectively ignores the headers
2090
+ in the spec for a single request.
2091
+ :type _headers: dict, optional
2092
+ :param _host_index: set to override the host_index for a single
2093
+ request; this effectively ignores the host_index
2094
+ in the spec for a single request.
2095
+ :type _host_index: int, optional
2096
+ :return: Returns the result object.
2097
+ """ # noqa: E501
2098
+
2099
+ _param = self._pipeline_preliminary_download_preliminary_download_id_get_serialize(
2100
+ preliminary_download_id=preliminary_download_id,
2101
+ _request_auth=_request_auth,
2102
+ _content_type=_content_type,
2103
+ _headers=_headers,
2104
+ _host_index=_host_index
2105
+ )
2106
+
2107
+ _response_types_map: Dict[str, Optional[str]] = {
2108
+ '200': "bytearray",
2109
+ '202': None,
2110
+ }
2111
+ response_data = self.api_client.call_api(
2112
+ *_param,
2113
+ _request_timeout=_request_timeout
2114
+ )
2115
+ response_data.read()
2116
+ return self.api_client.response_deserialize(
2117
+ response_data=response_data,
2118
+ response_types_map=_response_types_map,
2119
+ ).data
2120
+
2121
+
2122
+ @validate_call
2123
+ def pipeline_preliminary_download_preliminary_download_id_get_with_http_info(
2124
+ self,
2125
+ preliminary_download_id: StrictStr,
2126
+ _request_timeout: Union[
2127
+ None,
2128
+ Annotated[StrictFloat, Field(gt=0)],
2129
+ Tuple[
2130
+ Annotated[StrictFloat, Field(gt=0)],
2131
+ Annotated[StrictFloat, Field(gt=0)]
2132
+ ]
2133
+ ] = None,
2134
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2135
+ _content_type: Optional[StrictStr] = None,
2136
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2137
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2138
+ ) -> ApiResponse[bytearray]:
2139
+ """Gets the preliminary download. If it's still processing the request will return 202 Accepted.
2140
+
2141
+
2142
+ :param preliminary_download_id: (required)
2143
+ :type preliminary_download_id: str
2144
+ :param _request_timeout: timeout setting for this request. If one
2145
+ number provided, it will be total request
2146
+ timeout. It can also be a pair (tuple) of
2147
+ (connection, read) timeouts.
2148
+ :type _request_timeout: int, tuple(int, int), optional
2149
+ :param _request_auth: set to override the auth_settings for an a single
2150
+ request; this effectively ignores the
2151
+ authentication in the spec for a single request.
2152
+ :type _request_auth: dict, optional
2153
+ :param _content_type: force content-type for the request.
2154
+ :type _content_type: str, Optional
2155
+ :param _headers: set to override the headers for a single
2156
+ request; this effectively ignores the headers
2157
+ in the spec for a single request.
2158
+ :type _headers: dict, optional
2159
+ :param _host_index: set to override the host_index for a single
2160
+ request; this effectively ignores the host_index
2161
+ in the spec for a single request.
2162
+ :type _host_index: int, optional
2163
+ :return: Returns the result object.
2164
+ """ # noqa: E501
2165
+
2166
+ _param = self._pipeline_preliminary_download_preliminary_download_id_get_serialize(
2167
+ preliminary_download_id=preliminary_download_id,
2168
+ _request_auth=_request_auth,
2169
+ _content_type=_content_type,
2170
+ _headers=_headers,
2171
+ _host_index=_host_index
2172
+ )
2173
+
2174
+ _response_types_map: Dict[str, Optional[str]] = {
2175
+ '200': "bytearray",
2176
+ '202': None,
2177
+ }
2178
+ response_data = self.api_client.call_api(
2179
+ *_param,
2180
+ _request_timeout=_request_timeout
2181
+ )
2182
+ response_data.read()
2183
+ return self.api_client.response_deserialize(
2184
+ response_data=response_data,
2185
+ response_types_map=_response_types_map,
2186
+ )
2187
+
2188
+
2189
+ @validate_call
2190
+ def pipeline_preliminary_download_preliminary_download_id_get_without_preload_content(
2191
+ self,
2192
+ preliminary_download_id: StrictStr,
2193
+ _request_timeout: Union[
2194
+ None,
2195
+ Annotated[StrictFloat, Field(gt=0)],
2196
+ Tuple[
2197
+ Annotated[StrictFloat, Field(gt=0)],
2198
+ Annotated[StrictFloat, Field(gt=0)]
2199
+ ]
2200
+ ] = None,
2201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2202
+ _content_type: Optional[StrictStr] = None,
2203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2205
+ ) -> RESTResponseType:
2206
+ """Gets the preliminary download. If it's still processing the request will return 202 Accepted.
2207
+
2208
+
2209
+ :param preliminary_download_id: (required)
2210
+ :type preliminary_download_id: str
2211
+ :param _request_timeout: timeout setting for this request. If one
2212
+ number provided, it will be total request
2213
+ timeout. It can also be a pair (tuple) of
2214
+ (connection, read) timeouts.
2215
+ :type _request_timeout: int, tuple(int, int), optional
2216
+ :param _request_auth: set to override the auth_settings for an a single
2217
+ request; this effectively ignores the
2218
+ authentication in the spec for a single request.
2219
+ :type _request_auth: dict, optional
2220
+ :param _content_type: force content-type for the request.
2221
+ :type _content_type: str, Optional
2222
+ :param _headers: set to override the headers for a single
2223
+ request; this effectively ignores the headers
2224
+ in the spec for a single request.
2225
+ :type _headers: dict, optional
2226
+ :param _host_index: set to override the host_index for a single
2227
+ request; this effectively ignores the host_index
2228
+ in the spec for a single request.
2229
+ :type _host_index: int, optional
2230
+ :return: Returns the result object.
2231
+ """ # noqa: E501
2232
+
2233
+ _param = self._pipeline_preliminary_download_preliminary_download_id_get_serialize(
2234
+ preliminary_download_id=preliminary_download_id,
2235
+ _request_auth=_request_auth,
2236
+ _content_type=_content_type,
2237
+ _headers=_headers,
2238
+ _host_index=_host_index
2239
+ )
2240
+
2241
+ _response_types_map: Dict[str, Optional[str]] = {
2242
+ '200': "bytearray",
2243
+ '202': None,
2244
+ }
2245
+ response_data = self.api_client.call_api(
2246
+ *_param,
2247
+ _request_timeout=_request_timeout
2248
+ )
2249
+ return response_data.response
2250
+
2251
+
2252
+ def _pipeline_preliminary_download_preliminary_download_id_get_serialize(
2253
+ self,
2254
+ preliminary_download_id,
2255
+ _request_auth,
2256
+ _content_type,
2257
+ _headers,
2258
+ _host_index,
2259
+ ) -> RequestSerialized:
2260
+
2261
+ _host = None
2262
+
2263
+ _collection_formats: Dict[str, str] = {
2264
+ }
2265
+
2266
+ _path_params: Dict[str, str] = {}
2267
+ _query_params: List[Tuple[str, str]] = []
2268
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2269
+ _form_params: List[Tuple[str, str]] = []
2270
+ _files: Dict[
2271
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2272
+ ] = {}
2273
+ _body_params: Optional[bytes] = None
2274
+
2275
+ # process the path parameters
2276
+ if preliminary_download_id is not None:
2277
+ _path_params['preliminaryDownloadId'] = preliminary_download_id
2278
+ # process the query parameters
2279
+ # process the header parameters
2280
+ # process the form parameters
2281
+ # process the body parameter
2282
+
2283
+
2284
+ # set the HTTP header `Accept`
2285
+ if 'Accept' not in _header_params:
2286
+ _header_params['Accept'] = self.api_client.select_header_accept(
2287
+ [
2288
+ 'text/plain',
2289
+ 'application/json',
2290
+ 'text/json'
2291
+ ]
2292
+ )
2293
+
2294
+
2295
+ # authentication setting
2296
+ _auth_settings: List[str] = [
2297
+ 'bearer',
2298
+ 'oauth2'
2299
+ ]
2300
+
2301
+ return self.api_client.param_serialize(
2302
+ method='GET',
2303
+ resource_path='/pipeline/preliminary-download/{preliminaryDownloadId}',
2304
+ path_params=_path_params,
2305
+ query_params=_query_params,
2306
+ header_params=_header_params,
2307
+ body=_body_params,
2308
+ post_params=_form_params,
2309
+ files=_files,
2310
+ auth_settings=_auth_settings,
2311
+ collection_formats=_collection_formats,
2312
+ _host=_host,
2313
+ _request_auth=_request_auth
2314
+ )
2315
+
2316
+