rapidata 2.26.1__py3-none-any.whl → 2.27.1__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 (65) hide show
  1. rapidata/__init__.py +2 -2
  2. rapidata/api_client/__init__.py +11 -3
  3. rapidata/api_client/api/__init__.py +2 -1
  4. rapidata/api_client/api/client_api.py +0 -257
  5. rapidata/api_client/api/customer_rapid_api.py +1644 -0
  6. rapidata/api_client/api/dataset_api.py +358 -1
  7. rapidata/api_client/api/newsletter_api.py +11 -299
  8. rapidata/api_client/api/user_rapid_api.py +1385 -0
  9. rapidata/api_client/api/validation_set_api.py +6 -6
  10. rapidata/api_client/models/__init__.py +9 -2
  11. rapidata/api_client/models/add_campaign_model.py +5 -0
  12. rapidata/api_client/models/add_validation_rapid_model.py +3 -3
  13. rapidata/api_client/models/add_validation_rapid_model_truth.py +25 -11
  14. rapidata/api_client/models/add_validation_text_rapid_model.py +3 -3
  15. rapidata/api_client/models/asset_metadata_model.py +2 -8
  16. rapidata/api_client/models/compare_result.py +1 -10
  17. rapidata/api_client/models/compare_workflow_model.py +3 -3
  18. rapidata/api_client/models/create_datapoint_from_files_model.py +3 -3
  19. rapidata/api_client/models/create_datapoint_from_text_sources_model.py +3 -3
  20. rapidata/api_client/models/create_datapoint_from_urls_model.py +3 -3
  21. rapidata/api_client/models/create_order_model.py +2 -4
  22. rapidata/api_client/models/datapoint.py +3 -3
  23. rapidata/api_client/models/datapoint_metadata_model.py +3 -3
  24. rapidata/api_client/models/datapoint_model.py +3 -3
  25. rapidata/api_client/models/dataset_dataset_id_datapoints_post_request_metadata_inner.py +182 -0
  26. rapidata/api_client/models/file_asset_model.py +1 -3
  27. rapidata/api_client/models/file_asset_model_metadata_value.py +1 -3
  28. rapidata/api_client/models/get_compare_workflow_results_result.py +3 -3
  29. rapidata/api_client/models/get_datapoint_by_id_result.py +3 -3
  30. rapidata/api_client/models/get_rapid_responses_result.py +5 -5
  31. rapidata/api_client/models/get_validation_rapids_result.py +12 -3
  32. rapidata/api_client/models/get_validation_rapids_result_truth.py +25 -11
  33. rapidata/api_client/models/get_workflow_results_result.py +5 -5
  34. rapidata/api_client/models/multi_asset_model.py +4 -4
  35. rapidata/api_client/models/multi_compare_truth.py +96 -0
  36. rapidata/api_client/models/naive_referee_info.py +96 -0
  37. rapidata/api_client/models/never_ending_referee_info.py +94 -0
  38. rapidata/api_client/models/null_asset_model.py +1 -3
  39. rapidata/api_client/models/probabilistic_attach_category_referee_info.py +98 -0
  40. rapidata/api_client/models/rapid_model.py +173 -0
  41. rapidata/api_client/models/rapid_model_paged_result.py +105 -0
  42. rapidata/api_client/models/rapid_model_referee.py +154 -0
  43. rapidata/api_client/models/rapid_state.py +1 -0
  44. rapidata/api_client/models/text_asset_model.py +1 -3
  45. rapidata/api_client/models/update_access_model.py +1 -1
  46. rapidata/api_client/models/update_validation_rapid_model.py +3 -8
  47. rapidata/api_client/models/update_validation_rapid_model_truth.py +26 -12
  48. rapidata/api_client/models/upload_files_from_s3_bucket_model.py +12 -2
  49. rapidata/api_client/models/upload_text_sources_to_dataset_model.py +3 -3
  50. rapidata/api_client_README.md +21 -13
  51. rapidata/rapidata_client/__init__.py +1 -1
  52. rapidata/rapidata_client/assets/_multi_asset.py +0 -5
  53. rapidata/rapidata_client/logging/__init__.py +1 -1
  54. rapidata/rapidata_client/logging/output_manager.py +2 -2
  55. rapidata/rapidata_client/order/_rapidata_dataset.py +16 -39
  56. rapidata/rapidata_client/order/rapidata_order.py +20 -15
  57. rapidata/rapidata_client/order/rapidata_order_manager.py +5 -2
  58. rapidata/rapidata_client/validation/rapids/rapids.py +3 -4
  59. rapidata/rapidata_client/validation/validation_set_manager.py +2 -2
  60. rapidata/rapidata_client/workflow/_ranking_workflow.py +2 -6
  61. rapidata/service/credential_manager.py +6 -6
  62. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/METADATA +1 -1
  63. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/RECORD +65 -55
  64. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/LICENSE +0 -0
  65. {rapidata-2.26.1.dist-info → rapidata-2.27.1.dist-info}/WHEEL +0 -0
@@ -16,7 +16,7 @@ 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, StrictBytes, StrictStr
19
+ from pydantic import Field, StrictBytes, StrictInt, StrictStr
20
20
  from typing import List, Optional, Tuple, Union
21
21
  from typing_extensions import Annotated
22
22
  from rapidata.api_client.models.create_datapoint_from_files_model import CreateDatapointFromFilesModel
@@ -25,6 +25,7 @@ from rapidata.api_client.models.create_datapoint_from_urls_model import CreateDa
25
25
  from rapidata.api_client.models.create_datapoint_result import CreateDatapointResult
26
26
  from rapidata.api_client.models.create_datapoints_from_s3_bucket_model import CreateDatapointsFromS3BucketModel
27
27
  from rapidata.api_client.models.datapoint_metadata_model import DatapointMetadataModel
28
+ from rapidata.api_client.models.dataset_dataset_id_datapoints_post_request_metadata_inner import DatasetDatasetIdDatapointsPostRequestMetadataInner
28
29
  from rapidata.api_client.models.get_datapoints_by_dataset_id_result import GetDatapointsByDatasetIdResult
29
30
  from rapidata.api_client.models.get_dataset_by_id_result import GetDatasetByIdResult
30
31
  from rapidata.api_client.models.get_dataset_progress_result import GetDatasetProgressResult
@@ -1753,6 +1754,362 @@ class DatasetApi:
1753
1754
 
1754
1755
 
1755
1756
 
1757
+ @validate_call
1758
+ def dataset_dataset_id_datapoints_post(
1759
+ self,
1760
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1761
+ file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
1762
+ text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1763
+ url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
1764
+ metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1765
+ sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1766
+ _request_timeout: Union[
1767
+ None,
1768
+ Annotated[StrictFloat, Field(gt=0)],
1769
+ Tuple[
1770
+ Annotated[StrictFloat, Field(gt=0)],
1771
+ Annotated[StrictFloat, Field(gt=0)]
1772
+ ]
1773
+ ] = None,
1774
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1775
+ _content_type: Optional[StrictStr] = None,
1776
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1777
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1778
+ ) -> CreateDatapointResult:
1779
+ """Creates a new datapoint from multiple possible sources.
1780
+
1781
+ Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
1782
+
1783
+ :param dataset_id: The id of the dataset (required)
1784
+ :type dataset_id: str
1785
+ :param file: The files to upload from the local storage. Must be either images or videos.
1786
+ :type file: List[bytearray]
1787
+ :param text: The texts to upload. The length limit is set at 256 characters per text.
1788
+ :type text: List[str]
1789
+ :param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
1790
+ :type url: List[str]
1791
+ :param metadata: Optional metadata to attach to the datapoint.
1792
+ :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1793
+ :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1794
+ :type sort_index: int
1795
+ :param _request_timeout: timeout setting for this request. If one
1796
+ number provided, it will be total request
1797
+ timeout. It can also be a pair (tuple) of
1798
+ (connection, read) timeouts.
1799
+ :type _request_timeout: int, tuple(int, int), optional
1800
+ :param _request_auth: set to override the auth_settings for an a single
1801
+ request; this effectively ignores the
1802
+ authentication in the spec for a single request.
1803
+ :type _request_auth: dict, optional
1804
+ :param _content_type: force content-type for the request.
1805
+ :type _content_type: str, Optional
1806
+ :param _headers: set to override the headers for a single
1807
+ request; this effectively ignores the headers
1808
+ in the spec for a single request.
1809
+ :type _headers: dict, optional
1810
+ :param _host_index: set to override the host_index for a single
1811
+ request; this effectively ignores the host_index
1812
+ in the spec for a single request.
1813
+ :type _host_index: int, optional
1814
+ :return: Returns the result object.
1815
+ """ # noqa: E501
1816
+
1817
+ _param = self._dataset_dataset_id_datapoints_post_serialize(
1818
+ dataset_id=dataset_id,
1819
+ file=file,
1820
+ text=text,
1821
+ url=url,
1822
+ metadata=metadata,
1823
+ sort_index=sort_index,
1824
+ _request_auth=_request_auth,
1825
+ _content_type=_content_type,
1826
+ _headers=_headers,
1827
+ _host_index=_host_index
1828
+ )
1829
+
1830
+ _response_types_map: Dict[str, Optional[str]] = {
1831
+ '200': "CreateDatapointResult",
1832
+ }
1833
+ response_data = self.api_client.call_api(
1834
+ *_param,
1835
+ _request_timeout=_request_timeout
1836
+ )
1837
+ response_data.read()
1838
+ return self.api_client.response_deserialize(
1839
+ response_data=response_data,
1840
+ response_types_map=_response_types_map,
1841
+ ).data
1842
+
1843
+
1844
+ @validate_call
1845
+ def dataset_dataset_id_datapoints_post_with_http_info(
1846
+ self,
1847
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1848
+ file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
1849
+ text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1850
+ url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
1851
+ metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1852
+ sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1853
+ _request_timeout: Union[
1854
+ None,
1855
+ Annotated[StrictFloat, Field(gt=0)],
1856
+ Tuple[
1857
+ Annotated[StrictFloat, Field(gt=0)],
1858
+ Annotated[StrictFloat, Field(gt=0)]
1859
+ ]
1860
+ ] = None,
1861
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1862
+ _content_type: Optional[StrictStr] = None,
1863
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1864
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1865
+ ) -> ApiResponse[CreateDatapointResult]:
1866
+ """Creates a new datapoint from multiple possible sources.
1867
+
1868
+ Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
1869
+
1870
+ :param dataset_id: The id of the dataset (required)
1871
+ :type dataset_id: str
1872
+ :param file: The files to upload from the local storage. Must be either images or videos.
1873
+ :type file: List[bytearray]
1874
+ :param text: The texts to upload. The length limit is set at 256 characters per text.
1875
+ :type text: List[str]
1876
+ :param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
1877
+ :type url: List[str]
1878
+ :param metadata: Optional metadata to attach to the datapoint.
1879
+ :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1880
+ :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1881
+ :type sort_index: int
1882
+ :param _request_timeout: timeout setting for this request. If one
1883
+ number provided, it will be total request
1884
+ timeout. It can also be a pair (tuple) of
1885
+ (connection, read) timeouts.
1886
+ :type _request_timeout: int, tuple(int, int), optional
1887
+ :param _request_auth: set to override the auth_settings for an a single
1888
+ request; this effectively ignores the
1889
+ authentication in the spec for a single request.
1890
+ :type _request_auth: dict, optional
1891
+ :param _content_type: force content-type for the request.
1892
+ :type _content_type: str, Optional
1893
+ :param _headers: set to override the headers for a single
1894
+ request; this effectively ignores the headers
1895
+ in the spec for a single request.
1896
+ :type _headers: dict, optional
1897
+ :param _host_index: set to override the host_index for a single
1898
+ request; this effectively ignores the host_index
1899
+ in the spec for a single request.
1900
+ :type _host_index: int, optional
1901
+ :return: Returns the result object.
1902
+ """ # noqa: E501
1903
+
1904
+ _param = self._dataset_dataset_id_datapoints_post_serialize(
1905
+ dataset_id=dataset_id,
1906
+ file=file,
1907
+ text=text,
1908
+ url=url,
1909
+ metadata=metadata,
1910
+ sort_index=sort_index,
1911
+ _request_auth=_request_auth,
1912
+ _content_type=_content_type,
1913
+ _headers=_headers,
1914
+ _host_index=_host_index
1915
+ )
1916
+
1917
+ _response_types_map: Dict[str, Optional[str]] = {
1918
+ '200': "CreateDatapointResult",
1919
+ }
1920
+ response_data = self.api_client.call_api(
1921
+ *_param,
1922
+ _request_timeout=_request_timeout
1923
+ )
1924
+ response_data.read()
1925
+ return self.api_client.response_deserialize(
1926
+ response_data=response_data,
1927
+ response_types_map=_response_types_map,
1928
+ )
1929
+
1930
+
1931
+ @validate_call
1932
+ def dataset_dataset_id_datapoints_post_without_preload_content(
1933
+ self,
1934
+ dataset_id: Annotated[StrictStr, Field(description="The id of the dataset")],
1935
+ file: Annotated[Optional[List[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]]], Field(description="The files to upload from the local storage. Must be either images or videos.")] = None,
1936
+ text: Annotated[Optional[List[StrictStr]], Field(description="The texts to upload. The length limit is set at 256 characters per text.")] = None,
1937
+ url: Annotated[Optional[List[StrictStr]], Field(description="Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>")] = None,
1938
+ metadata: Annotated[Optional[List[DatasetDatasetIdDatapointsPostRequestMetadataInner]], Field(description="Optional metadata to attach to the datapoint.")] = None,
1939
+ sort_index: Annotated[Optional[StrictInt], Field(description="The index will be used to keep the datapoints in order. Useful if upload is parallelized")] = None,
1940
+ _request_timeout: Union[
1941
+ None,
1942
+ Annotated[StrictFloat, Field(gt=0)],
1943
+ Tuple[
1944
+ Annotated[StrictFloat, Field(gt=0)],
1945
+ Annotated[StrictFloat, Field(gt=0)]
1946
+ ]
1947
+ ] = None,
1948
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1949
+ _content_type: Optional[StrictStr] = None,
1950
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1951
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1952
+ ) -> RESTResponseType:
1953
+ """Creates a new datapoint from multiple possible sources.
1954
+
1955
+ Multiple files, texts, and urls can be provided. If multiple files are provided, a multi-asset datapoint will be created, meaning that all sources provided will be stored as sub-assets of the datapoint. If multiple datapoints are desired, one should not pass in multiple files, texts, or urls, instead, one should call this endpoint multiple times with the desired file, text, or url per datapoint. The request must be a multipart form request, where each parameter is sent as a separate part. The files, texts, and urls can be mixed and matched as needed, however, at least one of them must be provided, and one should make sure that mixing them makes sense for the dataset.
1956
+
1957
+ :param dataset_id: The id of the dataset (required)
1958
+ :type dataset_id: str
1959
+ :param file: The files to upload from the local storage. Must be either images or videos.
1960
+ :type file: List[bytearray]
1961
+ :param text: The texts to upload. The length limit is set at 256 characters per text.
1962
+ :type text: List[str]
1963
+ :param url: Creates an asset from a url. The url needs to point to a publicly accessible resource. The server will download the resource and store it as an asset in the background. <remarks> Additionally, to the urls having to be publicly accessible, they need to support HTTP HEAD requests. </remarks>
1964
+ :type url: List[str]
1965
+ :param metadata: Optional metadata to attach to the datapoint.
1966
+ :type metadata: List[DatasetDatasetIdDatapointsPostRequestMetadataInner]
1967
+ :param sort_index: The index will be used to keep the datapoints in order. Useful if upload is parallelized
1968
+ :type sort_index: int
1969
+ :param _request_timeout: timeout setting for this request. If one
1970
+ number provided, it will be total request
1971
+ timeout. It can also be a pair (tuple) of
1972
+ (connection, read) timeouts.
1973
+ :type _request_timeout: int, tuple(int, int), optional
1974
+ :param _request_auth: set to override the auth_settings for an a single
1975
+ request; this effectively ignores the
1976
+ authentication in the spec for a single request.
1977
+ :type _request_auth: dict, optional
1978
+ :param _content_type: force content-type for the request.
1979
+ :type _content_type: str, Optional
1980
+ :param _headers: set to override the headers for a single
1981
+ request; this effectively ignores the headers
1982
+ in the spec for a single request.
1983
+ :type _headers: dict, optional
1984
+ :param _host_index: set to override the host_index for a single
1985
+ request; this effectively ignores the host_index
1986
+ in the spec for a single request.
1987
+ :type _host_index: int, optional
1988
+ :return: Returns the result object.
1989
+ """ # noqa: E501
1990
+
1991
+ _param = self._dataset_dataset_id_datapoints_post_serialize(
1992
+ dataset_id=dataset_id,
1993
+ file=file,
1994
+ text=text,
1995
+ url=url,
1996
+ metadata=metadata,
1997
+ sort_index=sort_index,
1998
+ _request_auth=_request_auth,
1999
+ _content_type=_content_type,
2000
+ _headers=_headers,
2001
+ _host_index=_host_index
2002
+ )
2003
+
2004
+ _response_types_map: Dict[str, Optional[str]] = {
2005
+ '200': "CreateDatapointResult",
2006
+ }
2007
+ response_data = self.api_client.call_api(
2008
+ *_param,
2009
+ _request_timeout=_request_timeout
2010
+ )
2011
+ return response_data.response
2012
+
2013
+
2014
+ def _dataset_dataset_id_datapoints_post_serialize(
2015
+ self,
2016
+ dataset_id,
2017
+ file,
2018
+ text,
2019
+ url,
2020
+ metadata,
2021
+ sort_index,
2022
+ _request_auth,
2023
+ _content_type,
2024
+ _headers,
2025
+ _host_index,
2026
+ ) -> RequestSerialized:
2027
+
2028
+ _host = None
2029
+
2030
+ _collection_formats: Dict[str, str] = {
2031
+ 'file': 'csv',
2032
+ 'text': 'multi',
2033
+ 'url': 'multi',
2034
+ 'metadata': 'multi',
2035
+ }
2036
+
2037
+ _path_params: Dict[str, str] = {}
2038
+ _query_params: List[Tuple[str, str]] = []
2039
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2040
+ _form_params: List[Tuple[str, str]] = []
2041
+ _files: Dict[
2042
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2043
+ ] = {}
2044
+ _body_params: Optional[bytes] = None
2045
+
2046
+ # process the path parameters
2047
+ if dataset_id is not None:
2048
+ _path_params['datasetId'] = dataset_id
2049
+ # process the query parameters
2050
+ # process the header parameters
2051
+ # process the form parameters
2052
+ if file is not None:
2053
+ _files['file'] = file
2054
+ if text is not None:
2055
+ _form_params.append(('text', text))
2056
+ if url is not None:
2057
+ _form_params.append(('url', url))
2058
+ if metadata is not None:
2059
+ _form_params.append(('metadata', metadata))
2060
+ if sort_index is not None:
2061
+ _form_params.append(('sortIndex', sort_index))
2062
+ # process the body parameter
2063
+
2064
+
2065
+ # set the HTTP header `Accept`
2066
+ if 'Accept' not in _header_params:
2067
+ _header_params['Accept'] = self.api_client.select_header_accept(
2068
+ [
2069
+ 'text/plain',
2070
+ 'application/json',
2071
+ 'text/json'
2072
+ ]
2073
+ )
2074
+
2075
+ # set the HTTP header `Content-Type`
2076
+ if _content_type:
2077
+ _header_params['Content-Type'] = _content_type
2078
+ else:
2079
+ _default_content_type = (
2080
+ self.api_client.select_header_content_type(
2081
+ [
2082
+ 'multipart/form-data'
2083
+ ]
2084
+ )
2085
+ )
2086
+ if _default_content_type is not None:
2087
+ _header_params['Content-Type'] = _default_content_type
2088
+
2089
+ # authentication setting
2090
+ _auth_settings: List[str] = [
2091
+ 'bearer',
2092
+ 'oauth2'
2093
+ ]
2094
+
2095
+ return self.api_client.param_serialize(
2096
+ method='POST',
2097
+ resource_path='/dataset/{datasetId}/datapoints',
2098
+ path_params=_path_params,
2099
+ query_params=_query_params,
2100
+ header_params=_header_params,
2101
+ body=_body_params,
2102
+ post_params=_form_params,
2103
+ files=_files,
2104
+ auth_settings=_auth_settings,
2105
+ collection_formats=_collection_formats,
2106
+ _host=_host,
2107
+ _request_auth=_request_auth
2108
+ )
2109
+
2110
+
2111
+
2112
+
1756
2113
  @validate_call
1757
2114
  def dataset_dataset_id_datapoints_s3_post(
1758
2115
  self,