neurograph-core 1.202512062129__py3-none-any.whl → 1.202512080133__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.
neurograph/v1/__init__.py CHANGED
@@ -21,7 +21,6 @@ __all__ = [
21
21
  "AdminApi",
22
22
  "AuthenticationApi",
23
23
  "ClientApi",
24
- "ClientHealthApi",
25
24
  "ClientMetadataApi",
26
25
  "DagsterApi",
27
26
  "KnowledgeApi",
@@ -272,7 +271,6 @@ __all__ = [
272
271
  from neurograph.v1.api.admin_api import AdminApi as AdminApi
273
272
  from neurograph.v1.api.authentication_api import AuthenticationApi as AuthenticationApi
274
273
  from neurograph.v1.api.client_api import ClientApi as ClientApi
275
- from neurograph.v1.api.client_health_api import ClientHealthApi as ClientHealthApi
276
274
  from neurograph.v1.api.client_metadata_api import ClientMetadataApi as ClientMetadataApi
277
275
  from neurograph.v1.api.dagster_api import DagsterApi as DagsterApi
278
276
  from neurograph.v1.api.knowledge_api import KnowledgeApi as KnowledgeApi
@@ -4,7 +4,6 @@
4
4
  from neurograph.v1.api.admin_api import AdminApi
5
5
  from neurograph.v1.api.authentication_api import AuthenticationApi
6
6
  from neurograph.v1.api.client_api import ClientApi
7
- from neurograph.v1.api.client_health_api import ClientHealthApi
8
7
  from neurograph.v1.api.client_metadata_api import ClientMetadataApi
9
8
  from neurograph.v1.api.dagster_api import DagsterApi
10
9
  from neurograph.v1.api.knowledge_api import KnowledgeApi
@@ -22,6 +22,8 @@ from typing_extensions import Annotated
22
22
  from neurograph.v1.models.admin_users_org_response import AdminUsersOrgResponse
23
23
  from neurograph.v1.models.client_get_detail_response import ClientGetDetailResponse
24
24
  from neurograph.v1.models.client_get_many_response import ClientGetManyResponse
25
+ from neurograph.v1.models.client_healthcheck_create_request import ClientHealthcheckCreateRequest
26
+ from neurograph.v1.models.client_healthcheck_response import ClientHealthcheckResponse
25
27
  from neurograph.v1.models.client_personas_response import ClientPersonasResponse
26
28
  from neurograph.v1.models.client_trigger_probe_response import ClientTriggerProbeResponse
27
29
  from neurograph.v1.models.client_url_snapshot_response import ClientURLSnapshotResponse
@@ -1660,6 +1662,570 @@ class ClientApi:
1660
1662
 
1661
1663
 
1662
1664
 
1665
+ @validate_call
1666
+ def api_v1_clients_client_id_healthcheck_latest_get(
1667
+ self,
1668
+ client_id: Annotated[StrictStr, Field(description="Client ID")],
1669
+ _request_timeout: Union[
1670
+ None,
1671
+ Annotated[StrictFloat, Field(gt=0)],
1672
+ Tuple[
1673
+ Annotated[StrictFloat, Field(gt=0)],
1674
+ Annotated[StrictFloat, Field(gt=0)]
1675
+ ]
1676
+ ] = None,
1677
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1678
+ _content_type: Optional[StrictStr] = None,
1679
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1680
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1681
+ ) -> ClientHealthcheckResponse:
1682
+ """Get newest healthcheck entry
1683
+
1684
+ Retrieve the most recent healthcheck for a client
1685
+
1686
+ :param client_id: Client ID (required)
1687
+ :type client_id: str
1688
+ :param _request_timeout: timeout setting for this request. If one
1689
+ number provided, it will be total request
1690
+ timeout. It can also be a pair (tuple) of
1691
+ (connection, read) timeouts.
1692
+ :type _request_timeout: int, tuple(int, int), optional
1693
+ :param _request_auth: set to override the auth_settings for an a single
1694
+ request; this effectively ignores the
1695
+ authentication in the spec for a single request.
1696
+ :type _request_auth: dict, optional
1697
+ :param _content_type: force content-type for the request.
1698
+ :type _content_type: str, Optional
1699
+ :param _headers: set to override the headers for a single
1700
+ request; this effectively ignores the headers
1701
+ in the spec for a single request.
1702
+ :type _headers: dict, optional
1703
+ :param _host_index: set to override the host_index for a single
1704
+ request; this effectively ignores the host_index
1705
+ in the spec for a single request.
1706
+ :type _host_index: int, optional
1707
+ :return: Returns the result object.
1708
+ """ # noqa: E501
1709
+
1710
+ _param = self._api_v1_clients_client_id_healthcheck_latest_get_serialize(
1711
+ client_id=client_id,
1712
+ _request_auth=_request_auth,
1713
+ _content_type=_content_type,
1714
+ _headers=_headers,
1715
+ _host_index=_host_index
1716
+ )
1717
+
1718
+ _response_types_map: Dict[str, Optional[str]] = {
1719
+ '200': "ClientHealthcheckResponse",
1720
+ '404': "ClientHealthcheckResponse",
1721
+ '503': "ClientHealthcheckResponse",
1722
+ }
1723
+ response_data = self.api_client.call_api(
1724
+ *_param,
1725
+ _request_timeout=_request_timeout
1726
+ )
1727
+ response_data.read()
1728
+ return self.api_client.response_deserialize(
1729
+ response_data=response_data,
1730
+ response_types_map=_response_types_map,
1731
+ ).data
1732
+
1733
+
1734
+ @validate_call
1735
+ def api_v1_clients_client_id_healthcheck_latest_get_with_http_info(
1736
+ self,
1737
+ client_id: Annotated[StrictStr, Field(description="Client ID")],
1738
+ _request_timeout: Union[
1739
+ None,
1740
+ Annotated[StrictFloat, Field(gt=0)],
1741
+ Tuple[
1742
+ Annotated[StrictFloat, Field(gt=0)],
1743
+ Annotated[StrictFloat, Field(gt=0)]
1744
+ ]
1745
+ ] = None,
1746
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1747
+ _content_type: Optional[StrictStr] = None,
1748
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1749
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1750
+ ) -> ApiResponse[ClientHealthcheckResponse]:
1751
+ """Get newest healthcheck entry
1752
+
1753
+ Retrieve the most recent healthcheck for a client
1754
+
1755
+ :param client_id: Client ID (required)
1756
+ :type client_id: str
1757
+ :param _request_timeout: timeout setting for this request. If one
1758
+ number provided, it will be total request
1759
+ timeout. It can also be a pair (tuple) of
1760
+ (connection, read) timeouts.
1761
+ :type _request_timeout: int, tuple(int, int), optional
1762
+ :param _request_auth: set to override the auth_settings for an a single
1763
+ request; this effectively ignores the
1764
+ authentication in the spec for a single request.
1765
+ :type _request_auth: dict, optional
1766
+ :param _content_type: force content-type for the request.
1767
+ :type _content_type: str, Optional
1768
+ :param _headers: set to override the headers for a single
1769
+ request; this effectively ignores the headers
1770
+ in the spec for a single request.
1771
+ :type _headers: dict, optional
1772
+ :param _host_index: set to override the host_index for a single
1773
+ request; this effectively ignores the host_index
1774
+ in the spec for a single request.
1775
+ :type _host_index: int, optional
1776
+ :return: Returns the result object.
1777
+ """ # noqa: E501
1778
+
1779
+ _param = self._api_v1_clients_client_id_healthcheck_latest_get_serialize(
1780
+ client_id=client_id,
1781
+ _request_auth=_request_auth,
1782
+ _content_type=_content_type,
1783
+ _headers=_headers,
1784
+ _host_index=_host_index
1785
+ )
1786
+
1787
+ _response_types_map: Dict[str, Optional[str]] = {
1788
+ '200': "ClientHealthcheckResponse",
1789
+ '404': "ClientHealthcheckResponse",
1790
+ '503': "ClientHealthcheckResponse",
1791
+ }
1792
+ response_data = self.api_client.call_api(
1793
+ *_param,
1794
+ _request_timeout=_request_timeout
1795
+ )
1796
+ response_data.read()
1797
+ return self.api_client.response_deserialize(
1798
+ response_data=response_data,
1799
+ response_types_map=_response_types_map,
1800
+ )
1801
+
1802
+
1803
+ @validate_call
1804
+ def api_v1_clients_client_id_healthcheck_latest_get_without_preload_content(
1805
+ self,
1806
+ client_id: Annotated[StrictStr, Field(description="Client ID")],
1807
+ _request_timeout: Union[
1808
+ None,
1809
+ Annotated[StrictFloat, Field(gt=0)],
1810
+ Tuple[
1811
+ Annotated[StrictFloat, Field(gt=0)],
1812
+ Annotated[StrictFloat, Field(gt=0)]
1813
+ ]
1814
+ ] = None,
1815
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1816
+ _content_type: Optional[StrictStr] = None,
1817
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1818
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1819
+ ) -> RESTResponseType:
1820
+ """Get newest healthcheck entry
1821
+
1822
+ Retrieve the most recent healthcheck for a client
1823
+
1824
+ :param client_id: Client ID (required)
1825
+ :type client_id: str
1826
+ :param _request_timeout: timeout setting for this request. If one
1827
+ number provided, it will be total request
1828
+ timeout. It can also be a pair (tuple) of
1829
+ (connection, read) timeouts.
1830
+ :type _request_timeout: int, tuple(int, int), optional
1831
+ :param _request_auth: set to override the auth_settings for an a single
1832
+ request; this effectively ignores the
1833
+ authentication in the spec for a single request.
1834
+ :type _request_auth: dict, optional
1835
+ :param _content_type: force content-type for the request.
1836
+ :type _content_type: str, Optional
1837
+ :param _headers: set to override the headers for a single
1838
+ request; this effectively ignores the headers
1839
+ in the spec for a single request.
1840
+ :type _headers: dict, optional
1841
+ :param _host_index: set to override the host_index for a single
1842
+ request; this effectively ignores the host_index
1843
+ in the spec for a single request.
1844
+ :type _host_index: int, optional
1845
+ :return: Returns the result object.
1846
+ """ # noqa: E501
1847
+
1848
+ _param = self._api_v1_clients_client_id_healthcheck_latest_get_serialize(
1849
+ client_id=client_id,
1850
+ _request_auth=_request_auth,
1851
+ _content_type=_content_type,
1852
+ _headers=_headers,
1853
+ _host_index=_host_index
1854
+ )
1855
+
1856
+ _response_types_map: Dict[str, Optional[str]] = {
1857
+ '200': "ClientHealthcheckResponse",
1858
+ '404': "ClientHealthcheckResponse",
1859
+ '503': "ClientHealthcheckResponse",
1860
+ }
1861
+ response_data = self.api_client.call_api(
1862
+ *_param,
1863
+ _request_timeout=_request_timeout
1864
+ )
1865
+ return response_data.response
1866
+
1867
+
1868
+ def _api_v1_clients_client_id_healthcheck_latest_get_serialize(
1869
+ self,
1870
+ client_id,
1871
+ _request_auth,
1872
+ _content_type,
1873
+ _headers,
1874
+ _host_index,
1875
+ ) -> RequestSerialized:
1876
+
1877
+ _host = None
1878
+
1879
+ _collection_formats: Dict[str, str] = {
1880
+ }
1881
+
1882
+ _path_params: Dict[str, str] = {}
1883
+ _query_params: List[Tuple[str, str]] = []
1884
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1885
+ _form_params: List[Tuple[str, str]] = []
1886
+ _files: Dict[
1887
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1888
+ ] = {}
1889
+ _body_params: Optional[bytes] = None
1890
+
1891
+ # process the path parameters
1892
+ if client_id is not None:
1893
+ _path_params['client_id'] = client_id
1894
+ # process the query parameters
1895
+ # process the header parameters
1896
+ # process the form parameters
1897
+ # process the body parameter
1898
+
1899
+
1900
+ # set the HTTP header `Accept`
1901
+ if 'Accept' not in _header_params:
1902
+ _header_params['Accept'] = self.api_client.select_header_accept(
1903
+ [
1904
+ 'application/json'
1905
+ ]
1906
+ )
1907
+
1908
+
1909
+ # authentication setting
1910
+ _auth_settings: List[str] = [
1911
+ 'TokenAuth',
1912
+ 'ApiKeyAuth'
1913
+ ]
1914
+
1915
+ return self.api_client.param_serialize(
1916
+ method='GET',
1917
+ resource_path='/api/v1/clients/{client_id}/healthcheck/latest',
1918
+ path_params=_path_params,
1919
+ query_params=_query_params,
1920
+ header_params=_header_params,
1921
+ body=_body_params,
1922
+ post_params=_form_params,
1923
+ files=_files,
1924
+ auth_settings=_auth_settings,
1925
+ collection_formats=_collection_formats,
1926
+ _host=_host,
1927
+ _request_auth=_request_auth
1928
+ )
1929
+
1930
+
1931
+
1932
+
1933
+ @validate_call
1934
+ def api_v1_clients_client_id_healthcheck_post(
1935
+ self,
1936
+ client_id: Annotated[StrictStr, Field(description="Client ID")],
1937
+ request: Annotated[ClientHealthcheckCreateRequest, Field(description="Healthcheck data")],
1938
+ _request_timeout: Union[
1939
+ None,
1940
+ Annotated[StrictFloat, Field(gt=0)],
1941
+ Tuple[
1942
+ Annotated[StrictFloat, Field(gt=0)],
1943
+ Annotated[StrictFloat, Field(gt=0)]
1944
+ ]
1945
+ ] = None,
1946
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1947
+ _content_type: Optional[StrictStr] = None,
1948
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1949
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1950
+ ) -> ClientHealthcheckResponse:
1951
+ """Create healthcheck entry
1952
+
1953
+ Create a new client healthcheck for a specific date/hour
1954
+
1955
+ :param client_id: Client ID (required)
1956
+ :type client_id: str
1957
+ :param request: Healthcheck data (required)
1958
+ :type request: ClientHealthcheckCreateRequest
1959
+ :param _request_timeout: timeout setting for this request. If one
1960
+ number provided, it will be total request
1961
+ timeout. It can also be a pair (tuple) of
1962
+ (connection, read) timeouts.
1963
+ :type _request_timeout: int, tuple(int, int), optional
1964
+ :param _request_auth: set to override the auth_settings for an a single
1965
+ request; this effectively ignores the
1966
+ authentication in the spec for a single request.
1967
+ :type _request_auth: dict, optional
1968
+ :param _content_type: force content-type for the request.
1969
+ :type _content_type: str, Optional
1970
+ :param _headers: set to override the headers for a single
1971
+ request; this effectively ignores the headers
1972
+ in the spec for a single request.
1973
+ :type _headers: dict, optional
1974
+ :param _host_index: set to override the host_index for a single
1975
+ request; this effectively ignores the host_index
1976
+ in the spec for a single request.
1977
+ :type _host_index: int, optional
1978
+ :return: Returns the result object.
1979
+ """ # noqa: E501
1980
+
1981
+ _param = self._api_v1_clients_client_id_healthcheck_post_serialize(
1982
+ client_id=client_id,
1983
+ request=request,
1984
+ _request_auth=_request_auth,
1985
+ _content_type=_content_type,
1986
+ _headers=_headers,
1987
+ _host_index=_host_index
1988
+ )
1989
+
1990
+ _response_types_map: Dict[str, Optional[str]] = {
1991
+ '200': "ClientHealthcheckResponse",
1992
+ '400': "ClientHealthcheckResponse",
1993
+ '503': "ClientHealthcheckResponse",
1994
+ }
1995
+ response_data = self.api_client.call_api(
1996
+ *_param,
1997
+ _request_timeout=_request_timeout
1998
+ )
1999
+ response_data.read()
2000
+ return self.api_client.response_deserialize(
2001
+ response_data=response_data,
2002
+ response_types_map=_response_types_map,
2003
+ ).data
2004
+
2005
+
2006
+ @validate_call
2007
+ def api_v1_clients_client_id_healthcheck_post_with_http_info(
2008
+ self,
2009
+ client_id: Annotated[StrictStr, Field(description="Client ID")],
2010
+ request: Annotated[ClientHealthcheckCreateRequest, Field(description="Healthcheck data")],
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[ClientHealthcheckResponse]:
2024
+ """Create healthcheck entry
2025
+
2026
+ Create a new client healthcheck for a specific date/hour
2027
+
2028
+ :param client_id: Client ID (required)
2029
+ :type client_id: str
2030
+ :param request: Healthcheck data (required)
2031
+ :type request: ClientHealthcheckCreateRequest
2032
+ :param _request_timeout: timeout setting for this request. If one
2033
+ number provided, it will be total request
2034
+ timeout. It can also be a pair (tuple) of
2035
+ (connection, read) timeouts.
2036
+ :type _request_timeout: int, tuple(int, int), optional
2037
+ :param _request_auth: set to override the auth_settings for an a single
2038
+ request; this effectively ignores the
2039
+ authentication in the spec for a single request.
2040
+ :type _request_auth: dict, optional
2041
+ :param _content_type: force content-type for the request.
2042
+ :type _content_type: str, Optional
2043
+ :param _headers: set to override the headers for a single
2044
+ request; this effectively ignores the headers
2045
+ in the spec for a single request.
2046
+ :type _headers: dict, optional
2047
+ :param _host_index: set to override the host_index for a single
2048
+ request; this effectively ignores the host_index
2049
+ in the spec for a single request.
2050
+ :type _host_index: int, optional
2051
+ :return: Returns the result object.
2052
+ """ # noqa: E501
2053
+
2054
+ _param = self._api_v1_clients_client_id_healthcheck_post_serialize(
2055
+ client_id=client_id,
2056
+ request=request,
2057
+ _request_auth=_request_auth,
2058
+ _content_type=_content_type,
2059
+ _headers=_headers,
2060
+ _host_index=_host_index
2061
+ )
2062
+
2063
+ _response_types_map: Dict[str, Optional[str]] = {
2064
+ '200': "ClientHealthcheckResponse",
2065
+ '400': "ClientHealthcheckResponse",
2066
+ '503': "ClientHealthcheckResponse",
2067
+ }
2068
+ response_data = self.api_client.call_api(
2069
+ *_param,
2070
+ _request_timeout=_request_timeout
2071
+ )
2072
+ response_data.read()
2073
+ return self.api_client.response_deserialize(
2074
+ response_data=response_data,
2075
+ response_types_map=_response_types_map,
2076
+ )
2077
+
2078
+
2079
+ @validate_call
2080
+ def api_v1_clients_client_id_healthcheck_post_without_preload_content(
2081
+ self,
2082
+ client_id: Annotated[StrictStr, Field(description="Client ID")],
2083
+ request: Annotated[ClientHealthcheckCreateRequest, Field(description="Healthcheck data")],
2084
+ _request_timeout: Union[
2085
+ None,
2086
+ Annotated[StrictFloat, Field(gt=0)],
2087
+ Tuple[
2088
+ Annotated[StrictFloat, Field(gt=0)],
2089
+ Annotated[StrictFloat, Field(gt=0)]
2090
+ ]
2091
+ ] = None,
2092
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2093
+ _content_type: Optional[StrictStr] = None,
2094
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2095
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2096
+ ) -> RESTResponseType:
2097
+ """Create healthcheck entry
2098
+
2099
+ Create a new client healthcheck for a specific date/hour
2100
+
2101
+ :param client_id: Client ID (required)
2102
+ :type client_id: str
2103
+ :param request: Healthcheck data (required)
2104
+ :type request: ClientHealthcheckCreateRequest
2105
+ :param _request_timeout: timeout setting for this request. If one
2106
+ number provided, it will be total request
2107
+ timeout. It can also be a pair (tuple) of
2108
+ (connection, read) timeouts.
2109
+ :type _request_timeout: int, tuple(int, int), optional
2110
+ :param _request_auth: set to override the auth_settings for an a single
2111
+ request; this effectively ignores the
2112
+ authentication in the spec for a single request.
2113
+ :type _request_auth: dict, optional
2114
+ :param _content_type: force content-type for the request.
2115
+ :type _content_type: str, Optional
2116
+ :param _headers: set to override the headers for a single
2117
+ request; this effectively ignores the headers
2118
+ in the spec for a single request.
2119
+ :type _headers: dict, optional
2120
+ :param _host_index: set to override the host_index for a single
2121
+ request; this effectively ignores the host_index
2122
+ in the spec for a single request.
2123
+ :type _host_index: int, optional
2124
+ :return: Returns the result object.
2125
+ """ # noqa: E501
2126
+
2127
+ _param = self._api_v1_clients_client_id_healthcheck_post_serialize(
2128
+ client_id=client_id,
2129
+ request=request,
2130
+ _request_auth=_request_auth,
2131
+ _content_type=_content_type,
2132
+ _headers=_headers,
2133
+ _host_index=_host_index
2134
+ )
2135
+
2136
+ _response_types_map: Dict[str, Optional[str]] = {
2137
+ '200': "ClientHealthcheckResponse",
2138
+ '400': "ClientHealthcheckResponse",
2139
+ '503': "ClientHealthcheckResponse",
2140
+ }
2141
+ response_data = self.api_client.call_api(
2142
+ *_param,
2143
+ _request_timeout=_request_timeout
2144
+ )
2145
+ return response_data.response
2146
+
2147
+
2148
+ def _api_v1_clients_client_id_healthcheck_post_serialize(
2149
+ self,
2150
+ client_id,
2151
+ request,
2152
+ _request_auth,
2153
+ _content_type,
2154
+ _headers,
2155
+ _host_index,
2156
+ ) -> RequestSerialized:
2157
+
2158
+ _host = None
2159
+
2160
+ _collection_formats: Dict[str, str] = {
2161
+ }
2162
+
2163
+ _path_params: Dict[str, str] = {}
2164
+ _query_params: List[Tuple[str, str]] = []
2165
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2166
+ _form_params: List[Tuple[str, str]] = []
2167
+ _files: Dict[
2168
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2169
+ ] = {}
2170
+ _body_params: Optional[bytes] = None
2171
+
2172
+ # process the path parameters
2173
+ if client_id is not None:
2174
+ _path_params['client_id'] = client_id
2175
+ # process the query parameters
2176
+ # process the header parameters
2177
+ # process the form parameters
2178
+ # process the body parameter
2179
+ if request is not None:
2180
+ _body_params = request
2181
+
2182
+
2183
+ # set the HTTP header `Accept`
2184
+ if 'Accept' not in _header_params:
2185
+ _header_params['Accept'] = self.api_client.select_header_accept(
2186
+ [
2187
+ 'application/json'
2188
+ ]
2189
+ )
2190
+
2191
+ # set the HTTP header `Content-Type`
2192
+ if _content_type:
2193
+ _header_params['Content-Type'] = _content_type
2194
+ else:
2195
+ _default_content_type = (
2196
+ self.api_client.select_header_content_type(
2197
+ [
2198
+ 'application/json'
2199
+ ]
2200
+ )
2201
+ )
2202
+ if _default_content_type is not None:
2203
+ _header_params['Content-Type'] = _default_content_type
2204
+
2205
+ # authentication setting
2206
+ _auth_settings: List[str] = [
2207
+ 'TokenAuth',
2208
+ 'ApiKeyAuth'
2209
+ ]
2210
+
2211
+ return self.api_client.param_serialize(
2212
+ method='POST',
2213
+ resource_path='/api/v1/clients/{client_id}/healthcheck',
2214
+ path_params=_path_params,
2215
+ query_params=_query_params,
2216
+ header_params=_header_params,
2217
+ body=_body_params,
2218
+ post_params=_form_params,
2219
+ files=_files,
2220
+ auth_settings=_auth_settings,
2221
+ collection_formats=_collection_formats,
2222
+ _host=_host,
2223
+ _request_auth=_request_auth
2224
+ )
2225
+
2226
+
2227
+
2228
+
1663
2229
  @validate_call
1664
2230
  def api_v1_clients_client_id_users_get(
1665
2231
  self,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neurograph-core
3
- Version: 1.202512062129
3
+ Version: 1.202512080133
4
4
  Summary: Neurograph Core
5
5
  Home-page:
6
6
  Author: Neurograph Development Team
@@ -1,16 +1,15 @@
1
1
  neurograph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- neurograph/v1/__init__.py,sha256=fjbw0NhX9GizI3B64uQE1cixxGFjJTkh6h4FtgMpPUA,35899
2
+ neurograph/v1/__init__.py,sha256=PMLXqVjy14Va-4PllBY4wwD0xtXzvbnb6MY5gD-M4uA,35793
3
3
  neurograph/v1/api_client.py,sha256=DDElXCrEofUsxEKyghe4QzGQABihYiXZ7nQ-NXo0Qbo,27790
4
4
  neurograph/v1/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
5
5
  neurograph/v1/configuration.py,sha256=Z9W6H5lLIHbBY8hJwTw9Zd26kLWVOaoPwnc3daBOIVM,19190
6
6
  neurograph/v1/exceptions.py,sha256=I4t1fFbhv-J1GCFTfEPCwpt44WyqWNjLwQCVafRLMB4,6477
7
7
  neurograph/v1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  neurograph/v1/rest.py,sha256=76e_8kyCWAYYFmtCFJajhCm7clvTTufaidBiNl6pNEA,9473
9
- neurograph/v1/api/__init__.py,sha256=hsr2fS23pYM-ACaloWbw5iHrXSdihMi4ewM_Vji0Wr4,988
9
+ neurograph/v1/api/__init__.py,sha256=jzr1RuqGQ_loqq3CyAZWo52K7ifBbOyehvoePmVojcs,924
10
10
  neurograph/v1/api/admin_api.py,sha256=PxeLgMNBH-n6d4CmTe1kUa9BjIeeTRfRcL_FukbL1nI,43402
11
11
  neurograph/v1/api/authentication_api.py,sha256=5Qzs_TMzcjrPAQxbWAZ6HHXM80Fqfv42hq9_uzkKRAI,33388
12
- neurograph/v1/api/client_api.py,sha256=XEtI472SI4gtCLMt8LR54_bDqbsk_BEBqdI1bUjVHh8,97977
13
- neurograph/v1/api/client_health_api.py,sha256=lNarBqvvrG2z8jYcJb3CSh8w6dH9xrlisB7yY_yxbb0,23778
12
+ neurograph/v1/api/client_api.py,sha256=PzlbZ005X8Vd3Knhyn9MDLR1XdGTrHhWjNUGewys6XQ,120655
14
13
  neurograph/v1/api/client_metadata_api.py,sha256=799y_V9AdA_TYCeN-qTEtKUFbq05Mv1vgCc0UY4qpcc,45652
15
14
  neurograph/v1/api/dagster_api.py,sha256=ZTV1ozVWZvX3ocU-y4Ks2cUbnFjPut-EHDZ-bDXK7gU,22069
16
15
  neurograph/v1/api/knowledge_api.py,sha256=CEFX0AULDEOqiykyouuZ4xaQG_jZ8mbaHS2kvpttf9M,199015
@@ -247,7 +246,7 @@ neurograph/v1/models/workbench_workbench_version.py,sha256=AsgikzRU6BRj99gRFGGTl
247
246
  neurograph/v1/models/workbench_workbench_version_many_response.py,sha256=xuOxnMscyIo8DhsR-yyir1rruExSgNWMu3yMWzgWbc0,3195
248
247
  neurograph/v1/models/workbench_workbench_version_response.py,sha256=nMupKXBsoi4eXD-fsp_5PHrMislATwoBpVIZU7mG9RM,3283
249
248
  neurograph/v1/models/workbench_workbench_version_upsert_request.py,sha256=bAxjBeFe8EG3bXPUrLjfntlC65lK5p_ddPs_0yX3A9g,2994
250
- neurograph_core-1.202512062129.dist-info/METADATA,sha256=ZAh4OYzDygTU5o-tH2Bh414kdjdGeJvACMZuWD_MWu8,1902
251
- neurograph_core-1.202512062129.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
252
- neurograph_core-1.202512062129.dist-info/top_level.txt,sha256=iajcSUfGanaBq4McklJQ4IXVuwV24WJhY7FRzlQybxI,11
253
- neurograph_core-1.202512062129.dist-info/RECORD,,
249
+ neurograph_core-1.202512080133.dist-info/METADATA,sha256=et2znNGG5qLSFF3E17SvZNrg9ExwQlfNtdEfpzx2L7E,1902
250
+ neurograph_core-1.202512080133.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
251
+ neurograph_core-1.202512080133.dist-info/top_level.txt,sha256=iajcSUfGanaBq4McklJQ4IXVuwV24WJhY7FRzlQybxI,11
252
+ neurograph_core-1.202512080133.dist-info/RECORD,,
@@ -1,603 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Neurograph Core
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: 1.0
9
- Generated by OpenAPI Generator (https://openapi-generator.tech)
10
-
11
- Do not edit the class manually.
12
- """ # noqa: E501
13
-
14
- import warnings
15
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
- from typing import Any, Dict, List, Optional, Tuple, Union
17
- from typing_extensions import Annotated
18
-
19
- from pydantic import Field, StrictStr
20
- from typing_extensions import Annotated
21
- from neurograph.v1.models.client_healthcheck_create_request import ClientHealthcheckCreateRequest
22
- from neurograph.v1.models.client_healthcheck_response import ClientHealthcheckResponse
23
-
24
- from neurograph.v1.api_client import ApiClient, RequestSerialized
25
- from neurograph.v1.api_response import ApiResponse
26
- from neurograph.v1.rest import RESTResponseType
27
-
28
-
29
- class ClientHealthApi:
30
- """NOTE: This class is auto generated by OpenAPI Generator
31
- Ref: https://openapi-generator.tech
32
-
33
- Do not edit the class manually.
34
- """
35
-
36
- def __init__(self, api_client=None) -> None:
37
- if api_client is None:
38
- api_client = ApiClient.get_default()
39
- self.api_client = api_client
40
-
41
-
42
- @validate_call
43
- def api_v1_clients_client_id_healthcheck_latest_get(
44
- self,
45
- client_id: Annotated[StrictStr, Field(description="Client ID")],
46
- _request_timeout: Union[
47
- None,
48
- Annotated[StrictFloat, Field(gt=0)],
49
- Tuple[
50
- Annotated[StrictFloat, Field(gt=0)],
51
- Annotated[StrictFloat, Field(gt=0)]
52
- ]
53
- ] = None,
54
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
- _content_type: Optional[StrictStr] = None,
56
- _headers: Optional[Dict[StrictStr, Any]] = None,
57
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
- ) -> ClientHealthcheckResponse:
59
- """Get newest healthcheck entry
60
-
61
- Retrieve the most recent healthcheck for a client
62
-
63
- :param client_id: Client ID (required)
64
- :type client_id: str
65
- :param _request_timeout: timeout setting for this request. If one
66
- number provided, it will be total request
67
- timeout. It can also be a pair (tuple) of
68
- (connection, read) timeouts.
69
- :type _request_timeout: int, tuple(int, int), optional
70
- :param _request_auth: set to override the auth_settings for an a single
71
- request; this effectively ignores the
72
- authentication in the spec for a single request.
73
- :type _request_auth: dict, optional
74
- :param _content_type: force content-type for the request.
75
- :type _content_type: str, Optional
76
- :param _headers: set to override the headers for a single
77
- request; this effectively ignores the headers
78
- in the spec for a single request.
79
- :type _headers: dict, optional
80
- :param _host_index: set to override the host_index for a single
81
- request; this effectively ignores the host_index
82
- in the spec for a single request.
83
- :type _host_index: int, optional
84
- :return: Returns the result object.
85
- """ # noqa: E501
86
-
87
- _param = self._api_v1_clients_client_id_healthcheck_latest_get_serialize(
88
- client_id=client_id,
89
- _request_auth=_request_auth,
90
- _content_type=_content_type,
91
- _headers=_headers,
92
- _host_index=_host_index
93
- )
94
-
95
- _response_types_map: Dict[str, Optional[str]] = {
96
- '200': "ClientHealthcheckResponse",
97
- '404': "ClientHealthcheckResponse",
98
- '503': "ClientHealthcheckResponse",
99
- }
100
- response_data = self.api_client.call_api(
101
- *_param,
102
- _request_timeout=_request_timeout
103
- )
104
- response_data.read()
105
- return self.api_client.response_deserialize(
106
- response_data=response_data,
107
- response_types_map=_response_types_map,
108
- ).data
109
-
110
-
111
- @validate_call
112
- def api_v1_clients_client_id_healthcheck_latest_get_with_http_info(
113
- self,
114
- client_id: Annotated[StrictStr, Field(description="Client ID")],
115
- _request_timeout: Union[
116
- None,
117
- Annotated[StrictFloat, Field(gt=0)],
118
- Tuple[
119
- Annotated[StrictFloat, Field(gt=0)],
120
- Annotated[StrictFloat, Field(gt=0)]
121
- ]
122
- ] = None,
123
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
- _content_type: Optional[StrictStr] = None,
125
- _headers: Optional[Dict[StrictStr, Any]] = None,
126
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
- ) -> ApiResponse[ClientHealthcheckResponse]:
128
- """Get newest healthcheck entry
129
-
130
- Retrieve the most recent healthcheck for a client
131
-
132
- :param client_id: Client ID (required)
133
- :type client_id: str
134
- :param _request_timeout: timeout setting for this request. If one
135
- number provided, it will be total request
136
- timeout. It can also be a pair (tuple) of
137
- (connection, read) timeouts.
138
- :type _request_timeout: int, tuple(int, int), optional
139
- :param _request_auth: set to override the auth_settings for an a single
140
- request; this effectively ignores the
141
- authentication in the spec for a single request.
142
- :type _request_auth: dict, optional
143
- :param _content_type: force content-type for the request.
144
- :type _content_type: str, Optional
145
- :param _headers: set to override the headers for a single
146
- request; this effectively ignores the headers
147
- in the spec for a single request.
148
- :type _headers: dict, optional
149
- :param _host_index: set to override the host_index for a single
150
- request; this effectively ignores the host_index
151
- in the spec for a single request.
152
- :type _host_index: int, optional
153
- :return: Returns the result object.
154
- """ # noqa: E501
155
-
156
- _param = self._api_v1_clients_client_id_healthcheck_latest_get_serialize(
157
- client_id=client_id,
158
- _request_auth=_request_auth,
159
- _content_type=_content_type,
160
- _headers=_headers,
161
- _host_index=_host_index
162
- )
163
-
164
- _response_types_map: Dict[str, Optional[str]] = {
165
- '200': "ClientHealthcheckResponse",
166
- '404': "ClientHealthcheckResponse",
167
- '503': "ClientHealthcheckResponse",
168
- }
169
- response_data = self.api_client.call_api(
170
- *_param,
171
- _request_timeout=_request_timeout
172
- )
173
- response_data.read()
174
- return self.api_client.response_deserialize(
175
- response_data=response_data,
176
- response_types_map=_response_types_map,
177
- )
178
-
179
-
180
- @validate_call
181
- def api_v1_clients_client_id_healthcheck_latest_get_without_preload_content(
182
- self,
183
- client_id: Annotated[StrictStr, Field(description="Client ID")],
184
- _request_timeout: Union[
185
- None,
186
- Annotated[StrictFloat, Field(gt=0)],
187
- Tuple[
188
- Annotated[StrictFloat, Field(gt=0)],
189
- Annotated[StrictFloat, Field(gt=0)]
190
- ]
191
- ] = None,
192
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
193
- _content_type: Optional[StrictStr] = None,
194
- _headers: Optional[Dict[StrictStr, Any]] = None,
195
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
196
- ) -> RESTResponseType:
197
- """Get newest healthcheck entry
198
-
199
- Retrieve the most recent healthcheck for a client
200
-
201
- :param client_id: Client ID (required)
202
- :type client_id: str
203
- :param _request_timeout: timeout setting for this request. If one
204
- number provided, it will be total request
205
- timeout. It can also be a pair (tuple) of
206
- (connection, read) timeouts.
207
- :type _request_timeout: int, tuple(int, int), optional
208
- :param _request_auth: set to override the auth_settings for an a single
209
- request; this effectively ignores the
210
- authentication in the spec for a single request.
211
- :type _request_auth: dict, optional
212
- :param _content_type: force content-type for the request.
213
- :type _content_type: str, Optional
214
- :param _headers: set to override the headers for a single
215
- request; this effectively ignores the headers
216
- in the spec for a single request.
217
- :type _headers: dict, optional
218
- :param _host_index: set to override the host_index for a single
219
- request; this effectively ignores the host_index
220
- in the spec for a single request.
221
- :type _host_index: int, optional
222
- :return: Returns the result object.
223
- """ # noqa: E501
224
-
225
- _param = self._api_v1_clients_client_id_healthcheck_latest_get_serialize(
226
- client_id=client_id,
227
- _request_auth=_request_auth,
228
- _content_type=_content_type,
229
- _headers=_headers,
230
- _host_index=_host_index
231
- )
232
-
233
- _response_types_map: Dict[str, Optional[str]] = {
234
- '200': "ClientHealthcheckResponse",
235
- '404': "ClientHealthcheckResponse",
236
- '503': "ClientHealthcheckResponse",
237
- }
238
- response_data = self.api_client.call_api(
239
- *_param,
240
- _request_timeout=_request_timeout
241
- )
242
- return response_data.response
243
-
244
-
245
- def _api_v1_clients_client_id_healthcheck_latest_get_serialize(
246
- self,
247
- client_id,
248
- _request_auth,
249
- _content_type,
250
- _headers,
251
- _host_index,
252
- ) -> RequestSerialized:
253
-
254
- _host = None
255
-
256
- _collection_formats: Dict[str, str] = {
257
- }
258
-
259
- _path_params: Dict[str, str] = {}
260
- _query_params: List[Tuple[str, str]] = []
261
- _header_params: Dict[str, Optional[str]] = _headers or {}
262
- _form_params: List[Tuple[str, str]] = []
263
- _files: Dict[
264
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
265
- ] = {}
266
- _body_params: Optional[bytes] = None
267
-
268
- # process the path parameters
269
- if client_id is not None:
270
- _path_params['client_id'] = client_id
271
- # process the query parameters
272
- # process the header parameters
273
- # process the form parameters
274
- # process the body parameter
275
-
276
-
277
- # set the HTTP header `Accept`
278
- if 'Accept' not in _header_params:
279
- _header_params['Accept'] = self.api_client.select_header_accept(
280
- [
281
- 'application/json'
282
- ]
283
- )
284
-
285
-
286
- # authentication setting
287
- _auth_settings: List[str] = [
288
- 'TokenAuth',
289
- 'ApiKeyAuth'
290
- ]
291
-
292
- return self.api_client.param_serialize(
293
- method='GET',
294
- resource_path='/api/v1/clients/{client_id}/healthcheck/latest',
295
- path_params=_path_params,
296
- query_params=_query_params,
297
- header_params=_header_params,
298
- body=_body_params,
299
- post_params=_form_params,
300
- files=_files,
301
- auth_settings=_auth_settings,
302
- collection_formats=_collection_formats,
303
- _host=_host,
304
- _request_auth=_request_auth
305
- )
306
-
307
-
308
-
309
-
310
- @validate_call
311
- def api_v1_clients_client_id_healthcheck_post(
312
- self,
313
- client_id: Annotated[StrictStr, Field(description="Client ID")],
314
- request: Annotated[ClientHealthcheckCreateRequest, Field(description="Healthcheck data")],
315
- _request_timeout: Union[
316
- None,
317
- Annotated[StrictFloat, Field(gt=0)],
318
- Tuple[
319
- Annotated[StrictFloat, Field(gt=0)],
320
- Annotated[StrictFloat, Field(gt=0)]
321
- ]
322
- ] = None,
323
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
324
- _content_type: Optional[StrictStr] = None,
325
- _headers: Optional[Dict[StrictStr, Any]] = None,
326
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
327
- ) -> ClientHealthcheckResponse:
328
- """Create healthcheck entry
329
-
330
- Create a new client healthcheck for a specific date/hour
331
-
332
- :param client_id: Client ID (required)
333
- :type client_id: str
334
- :param request: Healthcheck data (required)
335
- :type request: ClientHealthcheckCreateRequest
336
- :param _request_timeout: timeout setting for this request. If one
337
- number provided, it will be total request
338
- timeout. It can also be a pair (tuple) of
339
- (connection, read) timeouts.
340
- :type _request_timeout: int, tuple(int, int), optional
341
- :param _request_auth: set to override the auth_settings for an a single
342
- request; this effectively ignores the
343
- authentication in the spec for a single request.
344
- :type _request_auth: dict, optional
345
- :param _content_type: force content-type for the request.
346
- :type _content_type: str, Optional
347
- :param _headers: set to override the headers for a single
348
- request; this effectively ignores the headers
349
- in the spec for a single request.
350
- :type _headers: dict, optional
351
- :param _host_index: set to override the host_index for a single
352
- request; this effectively ignores the host_index
353
- in the spec for a single request.
354
- :type _host_index: int, optional
355
- :return: Returns the result object.
356
- """ # noqa: E501
357
-
358
- _param = self._api_v1_clients_client_id_healthcheck_post_serialize(
359
- client_id=client_id,
360
- request=request,
361
- _request_auth=_request_auth,
362
- _content_type=_content_type,
363
- _headers=_headers,
364
- _host_index=_host_index
365
- )
366
-
367
- _response_types_map: Dict[str, Optional[str]] = {
368
- '200': "ClientHealthcheckResponse",
369
- '400': "ClientHealthcheckResponse",
370
- '503': "ClientHealthcheckResponse",
371
- }
372
- response_data = self.api_client.call_api(
373
- *_param,
374
- _request_timeout=_request_timeout
375
- )
376
- response_data.read()
377
- return self.api_client.response_deserialize(
378
- response_data=response_data,
379
- response_types_map=_response_types_map,
380
- ).data
381
-
382
-
383
- @validate_call
384
- def api_v1_clients_client_id_healthcheck_post_with_http_info(
385
- self,
386
- client_id: Annotated[StrictStr, Field(description="Client ID")],
387
- request: Annotated[ClientHealthcheckCreateRequest, Field(description="Healthcheck data")],
388
- _request_timeout: Union[
389
- None,
390
- Annotated[StrictFloat, Field(gt=0)],
391
- Tuple[
392
- Annotated[StrictFloat, Field(gt=0)],
393
- Annotated[StrictFloat, Field(gt=0)]
394
- ]
395
- ] = None,
396
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
397
- _content_type: Optional[StrictStr] = None,
398
- _headers: Optional[Dict[StrictStr, Any]] = None,
399
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
400
- ) -> ApiResponse[ClientHealthcheckResponse]:
401
- """Create healthcheck entry
402
-
403
- Create a new client healthcheck for a specific date/hour
404
-
405
- :param client_id: Client ID (required)
406
- :type client_id: str
407
- :param request: Healthcheck data (required)
408
- :type request: ClientHealthcheckCreateRequest
409
- :param _request_timeout: timeout setting for this request. If one
410
- number provided, it will be total request
411
- timeout. It can also be a pair (tuple) of
412
- (connection, read) timeouts.
413
- :type _request_timeout: int, tuple(int, int), optional
414
- :param _request_auth: set to override the auth_settings for an a single
415
- request; this effectively ignores the
416
- authentication in the spec for a single request.
417
- :type _request_auth: dict, optional
418
- :param _content_type: force content-type for the request.
419
- :type _content_type: str, Optional
420
- :param _headers: set to override the headers for a single
421
- request; this effectively ignores the headers
422
- in the spec for a single request.
423
- :type _headers: dict, optional
424
- :param _host_index: set to override the host_index for a single
425
- request; this effectively ignores the host_index
426
- in the spec for a single request.
427
- :type _host_index: int, optional
428
- :return: Returns the result object.
429
- """ # noqa: E501
430
-
431
- _param = self._api_v1_clients_client_id_healthcheck_post_serialize(
432
- client_id=client_id,
433
- request=request,
434
- _request_auth=_request_auth,
435
- _content_type=_content_type,
436
- _headers=_headers,
437
- _host_index=_host_index
438
- )
439
-
440
- _response_types_map: Dict[str, Optional[str]] = {
441
- '200': "ClientHealthcheckResponse",
442
- '400': "ClientHealthcheckResponse",
443
- '503': "ClientHealthcheckResponse",
444
- }
445
- response_data = self.api_client.call_api(
446
- *_param,
447
- _request_timeout=_request_timeout
448
- )
449
- response_data.read()
450
- return self.api_client.response_deserialize(
451
- response_data=response_data,
452
- response_types_map=_response_types_map,
453
- )
454
-
455
-
456
- @validate_call
457
- def api_v1_clients_client_id_healthcheck_post_without_preload_content(
458
- self,
459
- client_id: Annotated[StrictStr, Field(description="Client ID")],
460
- request: Annotated[ClientHealthcheckCreateRequest, Field(description="Healthcheck data")],
461
- _request_timeout: Union[
462
- None,
463
- Annotated[StrictFloat, Field(gt=0)],
464
- Tuple[
465
- Annotated[StrictFloat, Field(gt=0)],
466
- Annotated[StrictFloat, Field(gt=0)]
467
- ]
468
- ] = None,
469
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
470
- _content_type: Optional[StrictStr] = None,
471
- _headers: Optional[Dict[StrictStr, Any]] = None,
472
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
473
- ) -> RESTResponseType:
474
- """Create healthcheck entry
475
-
476
- Create a new client healthcheck for a specific date/hour
477
-
478
- :param client_id: Client ID (required)
479
- :type client_id: str
480
- :param request: Healthcheck data (required)
481
- :type request: ClientHealthcheckCreateRequest
482
- :param _request_timeout: timeout setting for this request. If one
483
- number provided, it will be total request
484
- timeout. It can also be a pair (tuple) of
485
- (connection, read) timeouts.
486
- :type _request_timeout: int, tuple(int, int), optional
487
- :param _request_auth: set to override the auth_settings for an a single
488
- request; this effectively ignores the
489
- authentication in the spec for a single request.
490
- :type _request_auth: dict, optional
491
- :param _content_type: force content-type for the request.
492
- :type _content_type: str, Optional
493
- :param _headers: set to override the headers for a single
494
- request; this effectively ignores the headers
495
- in the spec for a single request.
496
- :type _headers: dict, optional
497
- :param _host_index: set to override the host_index for a single
498
- request; this effectively ignores the host_index
499
- in the spec for a single request.
500
- :type _host_index: int, optional
501
- :return: Returns the result object.
502
- """ # noqa: E501
503
-
504
- _param = self._api_v1_clients_client_id_healthcheck_post_serialize(
505
- client_id=client_id,
506
- request=request,
507
- _request_auth=_request_auth,
508
- _content_type=_content_type,
509
- _headers=_headers,
510
- _host_index=_host_index
511
- )
512
-
513
- _response_types_map: Dict[str, Optional[str]] = {
514
- '200': "ClientHealthcheckResponse",
515
- '400': "ClientHealthcheckResponse",
516
- '503': "ClientHealthcheckResponse",
517
- }
518
- response_data = self.api_client.call_api(
519
- *_param,
520
- _request_timeout=_request_timeout
521
- )
522
- return response_data.response
523
-
524
-
525
- def _api_v1_clients_client_id_healthcheck_post_serialize(
526
- self,
527
- client_id,
528
- request,
529
- _request_auth,
530
- _content_type,
531
- _headers,
532
- _host_index,
533
- ) -> RequestSerialized:
534
-
535
- _host = None
536
-
537
- _collection_formats: Dict[str, str] = {
538
- }
539
-
540
- _path_params: Dict[str, str] = {}
541
- _query_params: List[Tuple[str, str]] = []
542
- _header_params: Dict[str, Optional[str]] = _headers or {}
543
- _form_params: List[Tuple[str, str]] = []
544
- _files: Dict[
545
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
546
- ] = {}
547
- _body_params: Optional[bytes] = None
548
-
549
- # process the path parameters
550
- if client_id is not None:
551
- _path_params['client_id'] = client_id
552
- # process the query parameters
553
- # process the header parameters
554
- # process the form parameters
555
- # process the body parameter
556
- if request is not None:
557
- _body_params = request
558
-
559
-
560
- # set the HTTP header `Accept`
561
- if 'Accept' not in _header_params:
562
- _header_params['Accept'] = self.api_client.select_header_accept(
563
- [
564
- 'application/json'
565
- ]
566
- )
567
-
568
- # set the HTTP header `Content-Type`
569
- if _content_type:
570
- _header_params['Content-Type'] = _content_type
571
- else:
572
- _default_content_type = (
573
- self.api_client.select_header_content_type(
574
- [
575
- 'application/json'
576
- ]
577
- )
578
- )
579
- if _default_content_type is not None:
580
- _header_params['Content-Type'] = _default_content_type
581
-
582
- # authentication setting
583
- _auth_settings: List[str] = [
584
- 'TokenAuth',
585
- 'ApiKeyAuth'
586
- ]
587
-
588
- return self.api_client.param_serialize(
589
- method='POST',
590
- resource_path='/api/v1/clients/{client_id}/healthcheck',
591
- path_params=_path_params,
592
- query_params=_query_params,
593
- header_params=_header_params,
594
- body=_body_params,
595
- post_params=_form_params,
596
- files=_files,
597
- auth_settings=_auth_settings,
598
- collection_formats=_collection_formats,
599
- _host=_host,
600
- _request_auth=_request_auth
601
- )
602
-
603
-