platform-api-python-client 4.8.4__py3-none-any.whl → 4.9.7__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.
- platform_api_python_client/__init__.py +5 -4
- platform_api_python_client/api/external_api.py +129 -420
- platform_api_python_client/api_client.py +1 -1
- platform_api_python_client/configuration.py +1 -1
- platform_api_python_client/models/__init__.py +4 -3
- platform_api_python_client/models/config_file_mount.py +99 -0
- platform_api_python_client/models/create_c_serve_v3_deployment_request.py +13 -2
- platform_api_python_client/models/create_inference_v3_deployment_request.py +29 -2
- platform_api_python_client/models/{create_rag_deployment_request.py → create_job_deployment_request.py} +32 -57
- platform_api_python_client/models/{create_rag_deployment_response.py → create_job_deployment_response.py} +4 -4
- platform_api_python_client/models/deployment_type.py +1 -0
- platform_api_python_client/models/get_c_serve_v3_deployment_response.py +9 -3
- platform_api_python_client/models/get_inference_v3_deployment_response.py +18 -3
- platform_api_python_client/models/{get_rag_deployment_response.py → get_job_deployment_response.py} +35 -48
- platform_api_python_client/models/pod_status.py +2 -0
- platform_api_python_client/models/service_status.py +4 -0
- {platform_api_python_client-4.8.4.dist-info → platform_api_python_client-4.9.7.dist-info}/METADATA +1 -1
- {platform_api_python_client-4.8.4.dist-info → platform_api_python_client-4.9.7.dist-info}/RECORD +20 -19
- {platform_api_python_client-4.8.4.dist-info → platform_api_python_client-4.9.7.dist-info}/WHEEL +0 -0
- {platform_api_python_client-4.8.4.dist-info → platform_api_python_client-4.9.7.dist-info}/top_level.txt +0 -0
|
@@ -30,10 +30,10 @@ from platform_api_python_client.models.create_compute_deployment_response import
|
|
|
30
30
|
from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest
|
|
31
31
|
from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
|
|
32
32
|
from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest
|
|
33
|
+
from platform_api_python_client.models.create_job_deployment_request import CreateJobDeploymentRequest
|
|
34
|
+
from platform_api_python_client.models.create_job_deployment_response import CreateJobDeploymentResponse
|
|
33
35
|
from platform_api_python_client.models.create_organization_request import CreateOrganizationRequest
|
|
34
36
|
from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse
|
|
35
|
-
from platform_api_python_client.models.create_rag_deployment_request import CreateRagDeploymentRequest
|
|
36
|
-
from platform_api_python_client.models.create_rag_deployment_response import CreateRagDeploymentResponse
|
|
37
37
|
from platform_api_python_client.models.create_url_request import CreateUrlRequest
|
|
38
38
|
from platform_api_python_client.models.create_url_response import CreateUrlResponse
|
|
39
39
|
from platform_api_python_client.models.credits_response import CreditsResponse
|
|
@@ -49,7 +49,7 @@ from platform_api_python_client.models.get_deployment_revision_response import G
|
|
|
49
49
|
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
50
50
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
51
51
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
52
|
-
from platform_api_python_client.models.
|
|
52
|
+
from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
|
|
53
53
|
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
54
54
|
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
55
55
|
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
@@ -1731,9 +1731,9 @@ class EXTERNALApi:
|
|
|
1731
1731
|
|
|
1732
1732
|
|
|
1733
1733
|
@validate_call
|
|
1734
|
-
def
|
|
1734
|
+
def create_job_deployment_deployments_job_post(
|
|
1735
1735
|
self,
|
|
1736
|
-
|
|
1736
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
1737
1737
|
_request_timeout: Union[
|
|
1738
1738
|
None,
|
|
1739
1739
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1746,12 +1746,12 @@ class EXTERNALApi:
|
|
|
1746
1746
|
_content_type: Optional[StrictStr] = None,
|
|
1747
1747
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1748
1748
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1749
|
-
) ->
|
|
1750
|
-
"""Create
|
|
1749
|
+
) -> CreateJobDeploymentResponse:
|
|
1750
|
+
"""Create Job Deployment
|
|
1751
1751
|
|
|
1752
1752
|
|
|
1753
|
-
:param
|
|
1754
|
-
:type
|
|
1753
|
+
:param create_job_deployment_request: (required)
|
|
1754
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
1755
1755
|
:param _request_timeout: timeout setting for this request. If one
|
|
1756
1756
|
number provided, it will be total request
|
|
1757
1757
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1774,8 +1774,8 @@ class EXTERNALApi:
|
|
|
1774
1774
|
:return: Returns the result object.
|
|
1775
1775
|
""" # noqa: E501
|
|
1776
1776
|
|
|
1777
|
-
_param = self.
|
|
1778
|
-
|
|
1777
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
1778
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
1779
1779
|
_request_auth=_request_auth,
|
|
1780
1780
|
_content_type=_content_type,
|
|
1781
1781
|
_headers=_headers,
|
|
@@ -1783,7 +1783,7 @@ class EXTERNALApi:
|
|
|
1783
1783
|
)
|
|
1784
1784
|
|
|
1785
1785
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1786
|
-
'200': "
|
|
1786
|
+
'200': "CreateJobDeploymentResponse",
|
|
1787
1787
|
'422': "HTTPValidationError",
|
|
1788
1788
|
}
|
|
1789
1789
|
response_data = self.api_client.call_api(
|
|
@@ -1798,9 +1798,9 @@ class EXTERNALApi:
|
|
|
1798
1798
|
|
|
1799
1799
|
|
|
1800
1800
|
@validate_call
|
|
1801
|
-
def
|
|
1801
|
+
def create_job_deployment_deployments_job_post_with_http_info(
|
|
1802
1802
|
self,
|
|
1803
|
-
|
|
1803
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
1804
1804
|
_request_timeout: Union[
|
|
1805
1805
|
None,
|
|
1806
1806
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1813,12 +1813,12 @@ class EXTERNALApi:
|
|
|
1813
1813
|
_content_type: Optional[StrictStr] = None,
|
|
1814
1814
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1815
1815
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1816
|
-
) -> ApiResponse[
|
|
1817
|
-
"""Create
|
|
1816
|
+
) -> ApiResponse[CreateJobDeploymentResponse]:
|
|
1817
|
+
"""Create Job Deployment
|
|
1818
1818
|
|
|
1819
1819
|
|
|
1820
|
-
:param
|
|
1821
|
-
:type
|
|
1820
|
+
:param create_job_deployment_request: (required)
|
|
1821
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
1822
1822
|
:param _request_timeout: timeout setting for this request. If one
|
|
1823
1823
|
number provided, it will be total request
|
|
1824
1824
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1841,8 +1841,8 @@ class EXTERNALApi:
|
|
|
1841
1841
|
:return: Returns the result object.
|
|
1842
1842
|
""" # noqa: E501
|
|
1843
1843
|
|
|
1844
|
-
_param = self.
|
|
1845
|
-
|
|
1844
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
1845
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
1846
1846
|
_request_auth=_request_auth,
|
|
1847
1847
|
_content_type=_content_type,
|
|
1848
1848
|
_headers=_headers,
|
|
@@ -1850,7 +1850,7 @@ class EXTERNALApi:
|
|
|
1850
1850
|
)
|
|
1851
1851
|
|
|
1852
1852
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1853
|
-
'200': "
|
|
1853
|
+
'200': "CreateJobDeploymentResponse",
|
|
1854
1854
|
'422': "HTTPValidationError",
|
|
1855
1855
|
}
|
|
1856
1856
|
response_data = self.api_client.call_api(
|
|
@@ -1865,9 +1865,9 @@ class EXTERNALApi:
|
|
|
1865
1865
|
|
|
1866
1866
|
|
|
1867
1867
|
@validate_call
|
|
1868
|
-
def
|
|
1868
|
+
def create_job_deployment_deployments_job_post_without_preload_content(
|
|
1869
1869
|
self,
|
|
1870
|
-
|
|
1870
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
1871
1871
|
_request_timeout: Union[
|
|
1872
1872
|
None,
|
|
1873
1873
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1881,11 +1881,11 @@ class EXTERNALApi:
|
|
|
1881
1881
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1882
1882
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1883
1883
|
) -> RESTResponseType:
|
|
1884
|
-
"""Create
|
|
1884
|
+
"""Create Job Deployment
|
|
1885
1885
|
|
|
1886
1886
|
|
|
1887
|
-
:param
|
|
1888
|
-
:type
|
|
1887
|
+
:param create_job_deployment_request: (required)
|
|
1888
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
1889
1889
|
:param _request_timeout: timeout setting for this request. If one
|
|
1890
1890
|
number provided, it will be total request
|
|
1891
1891
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1908,8 +1908,8 @@ class EXTERNALApi:
|
|
|
1908
1908
|
:return: Returns the result object.
|
|
1909
1909
|
""" # noqa: E501
|
|
1910
1910
|
|
|
1911
|
-
_param = self.
|
|
1912
|
-
|
|
1911
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
1912
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
1913
1913
|
_request_auth=_request_auth,
|
|
1914
1914
|
_content_type=_content_type,
|
|
1915
1915
|
_headers=_headers,
|
|
@@ -1917,7 +1917,7 @@ class EXTERNALApi:
|
|
|
1917
1917
|
)
|
|
1918
1918
|
|
|
1919
1919
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1920
|
-
'200': "
|
|
1920
|
+
'200': "CreateJobDeploymentResponse",
|
|
1921
1921
|
'422': "HTTPValidationError",
|
|
1922
1922
|
}
|
|
1923
1923
|
response_data = self.api_client.call_api(
|
|
@@ -1927,9 +1927,9 @@ class EXTERNALApi:
|
|
|
1927
1927
|
return response_data.response
|
|
1928
1928
|
|
|
1929
1929
|
|
|
1930
|
-
def
|
|
1930
|
+
def _create_job_deployment_deployments_job_post_serialize(
|
|
1931
1931
|
self,
|
|
1932
|
-
|
|
1932
|
+
create_job_deployment_request,
|
|
1933
1933
|
_request_auth,
|
|
1934
1934
|
_content_type,
|
|
1935
1935
|
_headers,
|
|
@@ -1955,8 +1955,8 @@ class EXTERNALApi:
|
|
|
1955
1955
|
# process the header parameters
|
|
1956
1956
|
# process the form parameters
|
|
1957
1957
|
# process the body parameter
|
|
1958
|
-
if
|
|
1959
|
-
_body_params =
|
|
1958
|
+
if create_job_deployment_request is not None:
|
|
1959
|
+
_body_params = create_job_deployment_request
|
|
1960
1960
|
|
|
1961
1961
|
|
|
1962
1962
|
# set the HTTP header `Accept`
|
|
@@ -1988,7 +1988,7 @@ class EXTERNALApi:
|
|
|
1988
1988
|
|
|
1989
1989
|
return self.api_client.param_serialize(
|
|
1990
1990
|
method='POST',
|
|
1991
|
-
resource_path='/
|
|
1991
|
+
resource_path='/deployments/job',
|
|
1992
1992
|
path_params=_path_params,
|
|
1993
1993
|
query_params=_query_params,
|
|
1994
1994
|
header_params=_header_params,
|
|
@@ -2005,9 +2005,9 @@ class EXTERNALApi:
|
|
|
2005
2005
|
|
|
2006
2006
|
|
|
2007
2007
|
@validate_call
|
|
2008
|
-
def
|
|
2008
|
+
def create_new_organization_organizations_post(
|
|
2009
2009
|
self,
|
|
2010
|
-
|
|
2010
|
+
create_organization_request: CreateOrganizationRequest,
|
|
2011
2011
|
_request_timeout: Union[
|
|
2012
2012
|
None,
|
|
2013
2013
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2020,12 +2020,12 @@ class EXTERNALApi:
|
|
|
2020
2020
|
_content_type: Optional[StrictStr] = None,
|
|
2021
2021
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2022
2022
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2023
|
-
) ->
|
|
2024
|
-
"""Create
|
|
2023
|
+
) -> CreateOrganizationResponse:
|
|
2024
|
+
"""Create New Organization
|
|
2025
2025
|
|
|
2026
2026
|
|
|
2027
|
-
:param
|
|
2028
|
-
:type
|
|
2027
|
+
:param create_organization_request: (required)
|
|
2028
|
+
:type create_organization_request: CreateOrganizationRequest
|
|
2029
2029
|
:param _request_timeout: timeout setting for this request. If one
|
|
2030
2030
|
number provided, it will be total request
|
|
2031
2031
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2048,8 +2048,8 @@ class EXTERNALApi:
|
|
|
2048
2048
|
:return: Returns the result object.
|
|
2049
2049
|
""" # noqa: E501
|
|
2050
2050
|
|
|
2051
|
-
_param = self.
|
|
2052
|
-
|
|
2051
|
+
_param = self._create_new_organization_organizations_post_serialize(
|
|
2052
|
+
create_organization_request=create_organization_request,
|
|
2053
2053
|
_request_auth=_request_auth,
|
|
2054
2054
|
_content_type=_content_type,
|
|
2055
2055
|
_headers=_headers,
|
|
@@ -2057,7 +2057,7 @@ class EXTERNALApi:
|
|
|
2057
2057
|
)
|
|
2058
2058
|
|
|
2059
2059
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2060
|
-
'200': "
|
|
2060
|
+
'200': "CreateOrganizationResponse",
|
|
2061
2061
|
'422': "HTTPValidationError",
|
|
2062
2062
|
}
|
|
2063
2063
|
response_data = self.api_client.call_api(
|
|
@@ -2072,9 +2072,9 @@ class EXTERNALApi:
|
|
|
2072
2072
|
|
|
2073
2073
|
|
|
2074
2074
|
@validate_call
|
|
2075
|
-
def
|
|
2075
|
+
def create_new_organization_organizations_post_with_http_info(
|
|
2076
2076
|
self,
|
|
2077
|
-
|
|
2077
|
+
create_organization_request: CreateOrganizationRequest,
|
|
2078
2078
|
_request_timeout: Union[
|
|
2079
2079
|
None,
|
|
2080
2080
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2087,12 +2087,12 @@ class EXTERNALApi:
|
|
|
2087
2087
|
_content_type: Optional[StrictStr] = None,
|
|
2088
2088
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2089
2089
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2090
|
-
) -> ApiResponse[
|
|
2091
|
-
"""Create
|
|
2090
|
+
) -> ApiResponse[CreateOrganizationResponse]:
|
|
2091
|
+
"""Create New Organization
|
|
2092
2092
|
|
|
2093
2093
|
|
|
2094
|
-
:param
|
|
2095
|
-
:type
|
|
2094
|
+
:param create_organization_request: (required)
|
|
2095
|
+
:type create_organization_request: CreateOrganizationRequest
|
|
2096
2096
|
:param _request_timeout: timeout setting for this request. If one
|
|
2097
2097
|
number provided, it will be total request
|
|
2098
2098
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2115,8 +2115,8 @@ class EXTERNALApi:
|
|
|
2115
2115
|
:return: Returns the result object.
|
|
2116
2116
|
""" # noqa: E501
|
|
2117
2117
|
|
|
2118
|
-
_param = self.
|
|
2119
|
-
|
|
2118
|
+
_param = self._create_new_organization_organizations_post_serialize(
|
|
2119
|
+
create_organization_request=create_organization_request,
|
|
2120
2120
|
_request_auth=_request_auth,
|
|
2121
2121
|
_content_type=_content_type,
|
|
2122
2122
|
_headers=_headers,
|
|
@@ -2124,7 +2124,7 @@ class EXTERNALApi:
|
|
|
2124
2124
|
)
|
|
2125
2125
|
|
|
2126
2126
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2127
|
-
'200': "
|
|
2127
|
+
'200': "CreateOrganizationResponse",
|
|
2128
2128
|
'422': "HTTPValidationError",
|
|
2129
2129
|
}
|
|
2130
2130
|
response_data = self.api_client.call_api(
|
|
@@ -2139,9 +2139,9 @@ class EXTERNALApi:
|
|
|
2139
2139
|
|
|
2140
2140
|
|
|
2141
2141
|
@validate_call
|
|
2142
|
-
def
|
|
2142
|
+
def create_new_organization_organizations_post_without_preload_content(
|
|
2143
2143
|
self,
|
|
2144
|
-
|
|
2144
|
+
create_organization_request: CreateOrganizationRequest,
|
|
2145
2145
|
_request_timeout: Union[
|
|
2146
2146
|
None,
|
|
2147
2147
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -2155,11 +2155,11 @@ class EXTERNALApi:
|
|
|
2155
2155
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2156
2156
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2157
2157
|
) -> RESTResponseType:
|
|
2158
|
-
"""Create
|
|
2158
|
+
"""Create New Organization
|
|
2159
2159
|
|
|
2160
2160
|
|
|
2161
|
-
:param
|
|
2162
|
-
:type
|
|
2161
|
+
:param create_organization_request: (required)
|
|
2162
|
+
:type create_organization_request: CreateOrganizationRequest
|
|
2163
2163
|
:param _request_timeout: timeout setting for this request. If one
|
|
2164
2164
|
number provided, it will be total request
|
|
2165
2165
|
timeout. It can also be a pair (tuple) of
|
|
@@ -2182,8 +2182,8 @@ class EXTERNALApi:
|
|
|
2182
2182
|
:return: Returns the result object.
|
|
2183
2183
|
""" # noqa: E501
|
|
2184
2184
|
|
|
2185
|
-
_param = self.
|
|
2186
|
-
|
|
2185
|
+
_param = self._create_new_organization_organizations_post_serialize(
|
|
2186
|
+
create_organization_request=create_organization_request,
|
|
2187
2187
|
_request_auth=_request_auth,
|
|
2188
2188
|
_content_type=_content_type,
|
|
2189
2189
|
_headers=_headers,
|
|
@@ -2191,7 +2191,7 @@ class EXTERNALApi:
|
|
|
2191
2191
|
)
|
|
2192
2192
|
|
|
2193
2193
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
2194
|
-
'200': "
|
|
2194
|
+
'200': "CreateOrganizationResponse",
|
|
2195
2195
|
'422': "HTTPValidationError",
|
|
2196
2196
|
}
|
|
2197
2197
|
response_data = self.api_client.call_api(
|
|
@@ -2201,9 +2201,9 @@ class EXTERNALApi:
|
|
|
2201
2201
|
return response_data.response
|
|
2202
2202
|
|
|
2203
2203
|
|
|
2204
|
-
def
|
|
2204
|
+
def _create_new_organization_organizations_post_serialize(
|
|
2205
2205
|
self,
|
|
2206
|
-
|
|
2206
|
+
create_organization_request,
|
|
2207
2207
|
_request_auth,
|
|
2208
2208
|
_content_type,
|
|
2209
2209
|
_headers,
|
|
@@ -2229,8 +2229,8 @@ class EXTERNALApi:
|
|
|
2229
2229
|
# process the header parameters
|
|
2230
2230
|
# process the form parameters
|
|
2231
2231
|
# process the body parameter
|
|
2232
|
-
if
|
|
2233
|
-
_body_params =
|
|
2232
|
+
if create_organization_request is not None:
|
|
2233
|
+
_body_params = create_organization_request
|
|
2234
2234
|
|
|
2235
2235
|
|
|
2236
2236
|
# set the HTTP header `Accept`
|
|
@@ -2262,7 +2262,7 @@ class EXTERNALApi:
|
|
|
2262
2262
|
|
|
2263
2263
|
return self.api_client.param_serialize(
|
|
2264
2264
|
method='POST',
|
|
2265
|
-
resource_path='/
|
|
2265
|
+
resource_path='/organizations',
|
|
2266
2266
|
path_params=_path_params,
|
|
2267
2267
|
query_params=_query_params,
|
|
2268
2268
|
header_params=_header_params,
|
|
@@ -8037,9 +8037,9 @@ class EXTERNALApi:
|
|
|
8037
8037
|
|
|
8038
8038
|
|
|
8039
8039
|
@validate_call
|
|
8040
|
-
def
|
|
8040
|
+
def get_job_deployment_deployments_job_deployment_id_get(
|
|
8041
8041
|
self,
|
|
8042
|
-
|
|
8042
|
+
deployment_id: StrictInt,
|
|
8043
8043
|
_request_timeout: Union[
|
|
8044
8044
|
None,
|
|
8045
8045
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8052,12 +8052,12 @@ class EXTERNALApi:
|
|
|
8052
8052
|
_content_type: Optional[StrictStr] = None,
|
|
8053
8053
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8054
8054
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8055
|
-
) ->
|
|
8056
|
-
"""Get
|
|
8055
|
+
) -> GetJobDeploymentResponse:
|
|
8056
|
+
"""Get Job Deployment
|
|
8057
8057
|
|
|
8058
8058
|
|
|
8059
|
-
:param
|
|
8060
|
-
:type
|
|
8059
|
+
:param deployment_id: (required)
|
|
8060
|
+
:type deployment_id: int
|
|
8061
8061
|
:param _request_timeout: timeout setting for this request. If one
|
|
8062
8062
|
number provided, it will be total request
|
|
8063
8063
|
timeout. It can also be a pair (tuple) of
|
|
@@ -8080,8 +8080,8 @@ class EXTERNALApi:
|
|
|
8080
8080
|
:return: Returns the result object.
|
|
8081
8081
|
""" # noqa: E501
|
|
8082
8082
|
|
|
8083
|
-
_param = self.
|
|
8084
|
-
|
|
8083
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8084
|
+
deployment_id=deployment_id,
|
|
8085
8085
|
_request_auth=_request_auth,
|
|
8086
8086
|
_content_type=_content_type,
|
|
8087
8087
|
_headers=_headers,
|
|
@@ -8089,7 +8089,7 @@ class EXTERNALApi:
|
|
|
8089
8089
|
)
|
|
8090
8090
|
|
|
8091
8091
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
8092
|
-
'200': "
|
|
8092
|
+
'200': "GetJobDeploymentResponse",
|
|
8093
8093
|
'422': "HTTPValidationError",
|
|
8094
8094
|
}
|
|
8095
8095
|
response_data = self.api_client.call_api(
|
|
@@ -8104,9 +8104,9 @@ class EXTERNALApi:
|
|
|
8104
8104
|
|
|
8105
8105
|
|
|
8106
8106
|
@validate_call
|
|
8107
|
-
def
|
|
8107
|
+
def get_job_deployment_deployments_job_deployment_id_get_with_http_info(
|
|
8108
8108
|
self,
|
|
8109
|
-
|
|
8109
|
+
deployment_id: StrictInt,
|
|
8110
8110
|
_request_timeout: Union[
|
|
8111
8111
|
None,
|
|
8112
8112
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8119,12 +8119,12 @@ class EXTERNALApi:
|
|
|
8119
8119
|
_content_type: Optional[StrictStr] = None,
|
|
8120
8120
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8121
8121
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8122
|
-
) -> ApiResponse[
|
|
8123
|
-
"""Get
|
|
8122
|
+
) -> ApiResponse[GetJobDeploymentResponse]:
|
|
8123
|
+
"""Get Job Deployment
|
|
8124
8124
|
|
|
8125
8125
|
|
|
8126
|
-
:param
|
|
8127
|
-
:type
|
|
8126
|
+
:param deployment_id: (required)
|
|
8127
|
+
:type deployment_id: int
|
|
8128
8128
|
:param _request_timeout: timeout setting for this request. If one
|
|
8129
8129
|
number provided, it will be total request
|
|
8130
8130
|
timeout. It can also be a pair (tuple) of
|
|
@@ -8147,8 +8147,8 @@ class EXTERNALApi:
|
|
|
8147
8147
|
:return: Returns the result object.
|
|
8148
8148
|
""" # noqa: E501
|
|
8149
8149
|
|
|
8150
|
-
_param = self.
|
|
8151
|
-
|
|
8150
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8151
|
+
deployment_id=deployment_id,
|
|
8152
8152
|
_request_auth=_request_auth,
|
|
8153
8153
|
_content_type=_content_type,
|
|
8154
8154
|
_headers=_headers,
|
|
@@ -8156,7 +8156,7 @@ class EXTERNALApi:
|
|
|
8156
8156
|
)
|
|
8157
8157
|
|
|
8158
8158
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
8159
|
-
'200': "
|
|
8159
|
+
'200': "GetJobDeploymentResponse",
|
|
8160
8160
|
'422': "HTTPValidationError",
|
|
8161
8161
|
}
|
|
8162
8162
|
response_data = self.api_client.call_api(
|
|
@@ -8171,9 +8171,9 @@ class EXTERNALApi:
|
|
|
8171
8171
|
|
|
8172
8172
|
|
|
8173
8173
|
@validate_call
|
|
8174
|
-
def
|
|
8174
|
+
def get_job_deployment_deployments_job_deployment_id_get_without_preload_content(
|
|
8175
8175
|
self,
|
|
8176
|
-
|
|
8176
|
+
deployment_id: StrictInt,
|
|
8177
8177
|
_request_timeout: Union[
|
|
8178
8178
|
None,
|
|
8179
8179
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8187,11 +8187,11 @@ class EXTERNALApi:
|
|
|
8187
8187
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8188
8188
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8189
8189
|
) -> RESTResponseType:
|
|
8190
|
-
"""Get
|
|
8190
|
+
"""Get Job Deployment
|
|
8191
8191
|
|
|
8192
8192
|
|
|
8193
|
-
:param
|
|
8194
|
-
:type
|
|
8193
|
+
:param deployment_id: (required)
|
|
8194
|
+
:type deployment_id: int
|
|
8195
8195
|
:param _request_timeout: timeout setting for this request. If one
|
|
8196
8196
|
number provided, it will be total request
|
|
8197
8197
|
timeout. It can also be a pair (tuple) of
|
|
@@ -8214,8 +8214,8 @@ class EXTERNALApi:
|
|
|
8214
8214
|
:return: Returns the result object.
|
|
8215
8215
|
""" # noqa: E501
|
|
8216
8216
|
|
|
8217
|
-
_param = self.
|
|
8218
|
-
|
|
8217
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8218
|
+
deployment_id=deployment_id,
|
|
8219
8219
|
_request_auth=_request_auth,
|
|
8220
8220
|
_content_type=_content_type,
|
|
8221
8221
|
_headers=_headers,
|
|
@@ -8223,7 +8223,7 @@ class EXTERNALApi:
|
|
|
8223
8223
|
)
|
|
8224
8224
|
|
|
8225
8225
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
8226
|
-
'200': "
|
|
8226
|
+
'200': "GetJobDeploymentResponse",
|
|
8227
8227
|
'422': "HTTPValidationError",
|
|
8228
8228
|
}
|
|
8229
8229
|
response_data = self.api_client.call_api(
|
|
@@ -8233,9 +8233,9 @@ class EXTERNALApi:
|
|
|
8233
8233
|
return response_data.response
|
|
8234
8234
|
|
|
8235
8235
|
|
|
8236
|
-
def
|
|
8236
|
+
def _get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8237
8237
|
self,
|
|
8238
|
-
|
|
8238
|
+
deployment_id,
|
|
8239
8239
|
_request_auth,
|
|
8240
8240
|
_content_type,
|
|
8241
8241
|
_headers,
|
|
@@ -8257,11 +8257,9 @@ class EXTERNALApi:
|
|
|
8257
8257
|
_body_params: Optional[bytes] = None
|
|
8258
8258
|
|
|
8259
8259
|
# process the path parameters
|
|
8260
|
+
if deployment_id is not None:
|
|
8261
|
+
_path_params['deployment_id'] = deployment_id
|
|
8260
8262
|
# process the query parameters
|
|
8261
|
-
if type is not None:
|
|
8262
|
-
|
|
8263
|
-
_query_params.append(('type', type.value))
|
|
8264
|
-
|
|
8265
8263
|
# process the header parameters
|
|
8266
8264
|
# process the form parameters
|
|
8267
8265
|
# process the body parameter
|
|
@@ -8283,7 +8281,7 @@ class EXTERNALApi:
|
|
|
8283
8281
|
|
|
8284
8282
|
return self.api_client.param_serialize(
|
|
8285
8283
|
method='GET',
|
|
8286
|
-
resource_path='/
|
|
8284
|
+
resource_path='/deployments/job/{deployment_id}',
|
|
8287
8285
|
path_params=_path_params,
|
|
8288
8286
|
query_params=_query_params,
|
|
8289
8287
|
header_params=_header_params,
|
|
@@ -8300,9 +8298,9 @@ class EXTERNALApi:
|
|
|
8300
8298
|
|
|
8301
8299
|
|
|
8302
8300
|
@validate_call
|
|
8303
|
-
def
|
|
8301
|
+
def get_prebuilt_images_prebuilt_images_get(
|
|
8304
8302
|
self,
|
|
8305
|
-
|
|
8303
|
+
type: Optional[DeploymentType] = None,
|
|
8306
8304
|
_request_timeout: Union[
|
|
8307
8305
|
None,
|
|
8308
8306
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8315,12 +8313,12 @@ class EXTERNALApi:
|
|
|
8315
8313
|
_content_type: Optional[StrictStr] = None,
|
|
8316
8314
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8317
8315
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8318
|
-
) ->
|
|
8319
|
-
"""Get
|
|
8316
|
+
) -> ListPrebuiltImageResponse:
|
|
8317
|
+
"""Get Prebuilt Images
|
|
8320
8318
|
|
|
8321
8319
|
|
|
8322
|
-
:param
|
|
8323
|
-
:type
|
|
8320
|
+
:param type:
|
|
8321
|
+
:type type: DeploymentType
|
|
8324
8322
|
:param _request_timeout: timeout setting for this request. If one
|
|
8325
8323
|
number provided, it will be total request
|
|
8326
8324
|
timeout. It can also be a pair (tuple) of
|
|
@@ -8343,8 +8341,8 @@ class EXTERNALApi:
|
|
|
8343
8341
|
:return: Returns the result object.
|
|
8344
8342
|
""" # noqa: E501
|
|
8345
8343
|
|
|
8346
|
-
_param = self.
|
|
8347
|
-
|
|
8344
|
+
_param = self._get_prebuilt_images_prebuilt_images_get_serialize(
|
|
8345
|
+
type=type,
|
|
8348
8346
|
_request_auth=_request_auth,
|
|
8349
8347
|
_content_type=_content_type,
|
|
8350
8348
|
_headers=_headers,
|
|
@@ -8352,7 +8350,7 @@ class EXTERNALApi:
|
|
|
8352
8350
|
)
|
|
8353
8351
|
|
|
8354
8352
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
8355
|
-
'200': "
|
|
8353
|
+
'200': "ListPrebuiltImageResponse",
|
|
8356
8354
|
'422': "HTTPValidationError",
|
|
8357
8355
|
}
|
|
8358
8356
|
response_data = self.api_client.call_api(
|
|
@@ -8367,9 +8365,9 @@ class EXTERNALApi:
|
|
|
8367
8365
|
|
|
8368
8366
|
|
|
8369
8367
|
@validate_call
|
|
8370
|
-
def
|
|
8368
|
+
def get_prebuilt_images_prebuilt_images_get_with_http_info(
|
|
8371
8369
|
self,
|
|
8372
|
-
|
|
8370
|
+
type: Optional[DeploymentType] = None,
|
|
8373
8371
|
_request_timeout: Union[
|
|
8374
8372
|
None,
|
|
8375
8373
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8382,12 +8380,12 @@ class EXTERNALApi:
|
|
|
8382
8380
|
_content_type: Optional[StrictStr] = None,
|
|
8383
8381
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8384
8382
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8385
|
-
) -> ApiResponse[
|
|
8386
|
-
"""Get
|
|
8383
|
+
) -> ApiResponse[ListPrebuiltImageResponse]:
|
|
8384
|
+
"""Get Prebuilt Images
|
|
8387
8385
|
|
|
8388
8386
|
|
|
8389
|
-
:param
|
|
8390
|
-
:type
|
|
8387
|
+
:param type:
|
|
8388
|
+
:type type: DeploymentType
|
|
8391
8389
|
:param _request_timeout: timeout setting for this request. If one
|
|
8392
8390
|
number provided, it will be total request
|
|
8393
8391
|
timeout. It can also be a pair (tuple) of
|
|
@@ -8410,8 +8408,8 @@ class EXTERNALApi:
|
|
|
8410
8408
|
:return: Returns the result object.
|
|
8411
8409
|
""" # noqa: E501
|
|
8412
8410
|
|
|
8413
|
-
_param = self.
|
|
8414
|
-
|
|
8411
|
+
_param = self._get_prebuilt_images_prebuilt_images_get_serialize(
|
|
8412
|
+
type=type,
|
|
8415
8413
|
_request_auth=_request_auth,
|
|
8416
8414
|
_content_type=_content_type,
|
|
8417
8415
|
_headers=_headers,
|
|
@@ -8419,7 +8417,7 @@ class EXTERNALApi:
|
|
|
8419
8417
|
)
|
|
8420
8418
|
|
|
8421
8419
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
8422
|
-
'200': "
|
|
8420
|
+
'200': "ListPrebuiltImageResponse",
|
|
8423
8421
|
'422': "HTTPValidationError",
|
|
8424
8422
|
}
|
|
8425
8423
|
response_data = self.api_client.call_api(
|
|
@@ -8434,9 +8432,9 @@ class EXTERNALApi:
|
|
|
8434
8432
|
|
|
8435
8433
|
|
|
8436
8434
|
@validate_call
|
|
8437
|
-
def
|
|
8435
|
+
def get_prebuilt_images_prebuilt_images_get_without_preload_content(
|
|
8438
8436
|
self,
|
|
8439
|
-
|
|
8437
|
+
type: Optional[DeploymentType] = None,
|
|
8440
8438
|
_request_timeout: Union[
|
|
8441
8439
|
None,
|
|
8442
8440
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -8450,11 +8448,11 @@ class EXTERNALApi:
|
|
|
8450
8448
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8451
8449
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8452
8450
|
) -> RESTResponseType:
|
|
8453
|
-
"""Get
|
|
8451
|
+
"""Get Prebuilt Images
|
|
8454
8452
|
|
|
8455
8453
|
|
|
8456
|
-
:param
|
|
8457
|
-
:type
|
|
8454
|
+
:param type:
|
|
8455
|
+
:type type: DeploymentType
|
|
8458
8456
|
:param _request_timeout: timeout setting for this request. If one
|
|
8459
8457
|
number provided, it will be total request
|
|
8460
8458
|
timeout. It can also be a pair (tuple) of
|
|
@@ -8477,8 +8475,8 @@ class EXTERNALApi:
|
|
|
8477
8475
|
:return: Returns the result object.
|
|
8478
8476
|
""" # noqa: E501
|
|
8479
8477
|
|
|
8480
|
-
_param = self.
|
|
8481
|
-
|
|
8478
|
+
_param = self._get_prebuilt_images_prebuilt_images_get_serialize(
|
|
8479
|
+
type=type,
|
|
8482
8480
|
_request_auth=_request_auth,
|
|
8483
8481
|
_content_type=_content_type,
|
|
8484
8482
|
_headers=_headers,
|
|
@@ -8486,7 +8484,7 @@ class EXTERNALApi:
|
|
|
8486
8484
|
)
|
|
8487
8485
|
|
|
8488
8486
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
8489
|
-
'200': "
|
|
8487
|
+
'200': "ListPrebuiltImageResponse",
|
|
8490
8488
|
'422': "HTTPValidationError",
|
|
8491
8489
|
}
|
|
8492
8490
|
response_data = self.api_client.call_api(
|
|
@@ -8496,9 +8494,9 @@ class EXTERNALApi:
|
|
|
8496
8494
|
return response_data.response
|
|
8497
8495
|
|
|
8498
8496
|
|
|
8499
|
-
def
|
|
8497
|
+
def _get_prebuilt_images_prebuilt_images_get_serialize(
|
|
8500
8498
|
self,
|
|
8501
|
-
|
|
8499
|
+
type,
|
|
8502
8500
|
_request_auth,
|
|
8503
8501
|
_content_type,
|
|
8504
8502
|
_headers,
|
|
@@ -8520,9 +8518,11 @@ class EXTERNALApi:
|
|
|
8520
8518
|
_body_params: Optional[bytes] = None
|
|
8521
8519
|
|
|
8522
8520
|
# process the path parameters
|
|
8523
|
-
if deployment_id is not None:
|
|
8524
|
-
_path_params['deployment_id'] = deployment_id
|
|
8525
8521
|
# process the query parameters
|
|
8522
|
+
if type is not None:
|
|
8523
|
+
|
|
8524
|
+
_query_params.append(('type', type.value))
|
|
8525
|
+
|
|
8526
8526
|
# process the header parameters
|
|
8527
8527
|
# process the form parameters
|
|
8528
8528
|
# process the body parameter
|
|
@@ -8544,7 +8544,7 @@ class EXTERNALApi:
|
|
|
8544
8544
|
|
|
8545
8545
|
return self.api_client.param_serialize(
|
|
8546
8546
|
method='GET',
|
|
8547
|
-
resource_path='/
|
|
8547
|
+
resource_path='/prebuilt-images',
|
|
8548
8548
|
path_params=_path_params,
|
|
8549
8549
|
query_params=_query_params,
|
|
8550
8550
|
header_params=_header_params,
|
|
@@ -12310,297 +12310,6 @@ class EXTERNALApi:
|
|
|
12310
12310
|
|
|
12311
12311
|
|
|
12312
12312
|
|
|
12313
|
-
@validate_call
|
|
12314
|
-
def update_rag_deployment_deployments_rag_put(
|
|
12315
|
-
self,
|
|
12316
|
-
deployment_id: StrictInt,
|
|
12317
|
-
create_rag_deployment_request: CreateRagDeploymentRequest,
|
|
12318
|
-
_request_timeout: Union[
|
|
12319
|
-
None,
|
|
12320
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
12321
|
-
Tuple[
|
|
12322
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
12323
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
12324
|
-
]
|
|
12325
|
-
] = None,
|
|
12326
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12327
|
-
_content_type: Optional[StrictStr] = None,
|
|
12328
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12329
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12330
|
-
) -> UpdateDeploymentResponse:
|
|
12331
|
-
"""Update Rag Deployment
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
:param deployment_id: (required)
|
|
12335
|
-
:type deployment_id: int
|
|
12336
|
-
:param create_rag_deployment_request: (required)
|
|
12337
|
-
:type create_rag_deployment_request: CreateRagDeploymentRequest
|
|
12338
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
12339
|
-
number provided, it will be total request
|
|
12340
|
-
timeout. It can also be a pair (tuple) of
|
|
12341
|
-
(connection, read) timeouts.
|
|
12342
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
12343
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
12344
|
-
request; this effectively ignores the
|
|
12345
|
-
authentication in the spec for a single request.
|
|
12346
|
-
:type _request_auth: dict, optional
|
|
12347
|
-
:param _content_type: force content-type for the request.
|
|
12348
|
-
:type _content_type: str, Optional
|
|
12349
|
-
:param _headers: set to override the headers for a single
|
|
12350
|
-
request; this effectively ignores the headers
|
|
12351
|
-
in the spec for a single request.
|
|
12352
|
-
:type _headers: dict, optional
|
|
12353
|
-
:param _host_index: set to override the host_index for a single
|
|
12354
|
-
request; this effectively ignores the host_index
|
|
12355
|
-
in the spec for a single request.
|
|
12356
|
-
:type _host_index: int, optional
|
|
12357
|
-
:return: Returns the result object.
|
|
12358
|
-
""" # noqa: E501
|
|
12359
|
-
|
|
12360
|
-
_param = self._update_rag_deployment_deployments_rag_put_serialize(
|
|
12361
|
-
deployment_id=deployment_id,
|
|
12362
|
-
create_rag_deployment_request=create_rag_deployment_request,
|
|
12363
|
-
_request_auth=_request_auth,
|
|
12364
|
-
_content_type=_content_type,
|
|
12365
|
-
_headers=_headers,
|
|
12366
|
-
_host_index=_host_index
|
|
12367
|
-
)
|
|
12368
|
-
|
|
12369
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
12370
|
-
'200': "UpdateDeploymentResponse",
|
|
12371
|
-
'422': "HTTPValidationError",
|
|
12372
|
-
}
|
|
12373
|
-
response_data = self.api_client.call_api(
|
|
12374
|
-
*_param,
|
|
12375
|
-
_request_timeout=_request_timeout
|
|
12376
|
-
)
|
|
12377
|
-
response_data.read()
|
|
12378
|
-
return self.api_client.response_deserialize(
|
|
12379
|
-
response_data=response_data,
|
|
12380
|
-
response_types_map=_response_types_map,
|
|
12381
|
-
).data
|
|
12382
|
-
|
|
12383
|
-
|
|
12384
|
-
@validate_call
|
|
12385
|
-
def update_rag_deployment_deployments_rag_put_with_http_info(
|
|
12386
|
-
self,
|
|
12387
|
-
deployment_id: StrictInt,
|
|
12388
|
-
create_rag_deployment_request: CreateRagDeploymentRequest,
|
|
12389
|
-
_request_timeout: Union[
|
|
12390
|
-
None,
|
|
12391
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
12392
|
-
Tuple[
|
|
12393
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
12394
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
12395
|
-
]
|
|
12396
|
-
] = None,
|
|
12397
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12398
|
-
_content_type: Optional[StrictStr] = None,
|
|
12399
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12400
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12401
|
-
) -> ApiResponse[UpdateDeploymentResponse]:
|
|
12402
|
-
"""Update Rag Deployment
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
:param deployment_id: (required)
|
|
12406
|
-
:type deployment_id: int
|
|
12407
|
-
:param create_rag_deployment_request: (required)
|
|
12408
|
-
:type create_rag_deployment_request: CreateRagDeploymentRequest
|
|
12409
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
12410
|
-
number provided, it will be total request
|
|
12411
|
-
timeout. It can also be a pair (tuple) of
|
|
12412
|
-
(connection, read) timeouts.
|
|
12413
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
12414
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
12415
|
-
request; this effectively ignores the
|
|
12416
|
-
authentication in the spec for a single request.
|
|
12417
|
-
:type _request_auth: dict, optional
|
|
12418
|
-
:param _content_type: force content-type for the request.
|
|
12419
|
-
:type _content_type: str, Optional
|
|
12420
|
-
:param _headers: set to override the headers for a single
|
|
12421
|
-
request; this effectively ignores the headers
|
|
12422
|
-
in the spec for a single request.
|
|
12423
|
-
:type _headers: dict, optional
|
|
12424
|
-
:param _host_index: set to override the host_index for a single
|
|
12425
|
-
request; this effectively ignores the host_index
|
|
12426
|
-
in the spec for a single request.
|
|
12427
|
-
:type _host_index: int, optional
|
|
12428
|
-
:return: Returns the result object.
|
|
12429
|
-
""" # noqa: E501
|
|
12430
|
-
|
|
12431
|
-
_param = self._update_rag_deployment_deployments_rag_put_serialize(
|
|
12432
|
-
deployment_id=deployment_id,
|
|
12433
|
-
create_rag_deployment_request=create_rag_deployment_request,
|
|
12434
|
-
_request_auth=_request_auth,
|
|
12435
|
-
_content_type=_content_type,
|
|
12436
|
-
_headers=_headers,
|
|
12437
|
-
_host_index=_host_index
|
|
12438
|
-
)
|
|
12439
|
-
|
|
12440
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
12441
|
-
'200': "UpdateDeploymentResponse",
|
|
12442
|
-
'422': "HTTPValidationError",
|
|
12443
|
-
}
|
|
12444
|
-
response_data = self.api_client.call_api(
|
|
12445
|
-
*_param,
|
|
12446
|
-
_request_timeout=_request_timeout
|
|
12447
|
-
)
|
|
12448
|
-
response_data.read()
|
|
12449
|
-
return self.api_client.response_deserialize(
|
|
12450
|
-
response_data=response_data,
|
|
12451
|
-
response_types_map=_response_types_map,
|
|
12452
|
-
)
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
@validate_call
|
|
12456
|
-
def update_rag_deployment_deployments_rag_put_without_preload_content(
|
|
12457
|
-
self,
|
|
12458
|
-
deployment_id: StrictInt,
|
|
12459
|
-
create_rag_deployment_request: CreateRagDeploymentRequest,
|
|
12460
|
-
_request_timeout: Union[
|
|
12461
|
-
None,
|
|
12462
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
12463
|
-
Tuple[
|
|
12464
|
-
Annotated[StrictFloat, Field(gt=0)],
|
|
12465
|
-
Annotated[StrictFloat, Field(gt=0)]
|
|
12466
|
-
]
|
|
12467
|
-
] = None,
|
|
12468
|
-
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
12469
|
-
_content_type: Optional[StrictStr] = None,
|
|
12470
|
-
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
12471
|
-
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
12472
|
-
) -> RESTResponseType:
|
|
12473
|
-
"""Update Rag Deployment
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
:param deployment_id: (required)
|
|
12477
|
-
:type deployment_id: int
|
|
12478
|
-
:param create_rag_deployment_request: (required)
|
|
12479
|
-
:type create_rag_deployment_request: CreateRagDeploymentRequest
|
|
12480
|
-
:param _request_timeout: timeout setting for this request. If one
|
|
12481
|
-
number provided, it will be total request
|
|
12482
|
-
timeout. It can also be a pair (tuple) of
|
|
12483
|
-
(connection, read) timeouts.
|
|
12484
|
-
:type _request_timeout: int, tuple(int, int), optional
|
|
12485
|
-
:param _request_auth: set to override the auth_settings for an a single
|
|
12486
|
-
request; this effectively ignores the
|
|
12487
|
-
authentication in the spec for a single request.
|
|
12488
|
-
:type _request_auth: dict, optional
|
|
12489
|
-
:param _content_type: force content-type for the request.
|
|
12490
|
-
:type _content_type: str, Optional
|
|
12491
|
-
:param _headers: set to override the headers for a single
|
|
12492
|
-
request; this effectively ignores the headers
|
|
12493
|
-
in the spec for a single request.
|
|
12494
|
-
:type _headers: dict, optional
|
|
12495
|
-
:param _host_index: set to override the host_index for a single
|
|
12496
|
-
request; this effectively ignores the host_index
|
|
12497
|
-
in the spec for a single request.
|
|
12498
|
-
:type _host_index: int, optional
|
|
12499
|
-
:return: Returns the result object.
|
|
12500
|
-
""" # noqa: E501
|
|
12501
|
-
|
|
12502
|
-
_param = self._update_rag_deployment_deployments_rag_put_serialize(
|
|
12503
|
-
deployment_id=deployment_id,
|
|
12504
|
-
create_rag_deployment_request=create_rag_deployment_request,
|
|
12505
|
-
_request_auth=_request_auth,
|
|
12506
|
-
_content_type=_content_type,
|
|
12507
|
-
_headers=_headers,
|
|
12508
|
-
_host_index=_host_index
|
|
12509
|
-
)
|
|
12510
|
-
|
|
12511
|
-
_response_types_map: Dict[str, Optional[str]] = {
|
|
12512
|
-
'200': "UpdateDeploymentResponse",
|
|
12513
|
-
'422': "HTTPValidationError",
|
|
12514
|
-
}
|
|
12515
|
-
response_data = self.api_client.call_api(
|
|
12516
|
-
*_param,
|
|
12517
|
-
_request_timeout=_request_timeout
|
|
12518
|
-
)
|
|
12519
|
-
return response_data.response
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
def _update_rag_deployment_deployments_rag_put_serialize(
|
|
12523
|
-
self,
|
|
12524
|
-
deployment_id,
|
|
12525
|
-
create_rag_deployment_request,
|
|
12526
|
-
_request_auth,
|
|
12527
|
-
_content_type,
|
|
12528
|
-
_headers,
|
|
12529
|
-
_host_index,
|
|
12530
|
-
) -> RequestSerialized:
|
|
12531
|
-
|
|
12532
|
-
_host = None
|
|
12533
|
-
|
|
12534
|
-
_collection_formats: Dict[str, str] = {
|
|
12535
|
-
}
|
|
12536
|
-
|
|
12537
|
-
_path_params: Dict[str, str] = {}
|
|
12538
|
-
_query_params: List[Tuple[str, str]] = []
|
|
12539
|
-
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
12540
|
-
_form_params: List[Tuple[str, str]] = []
|
|
12541
|
-
_files: Dict[
|
|
12542
|
-
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
12543
|
-
] = {}
|
|
12544
|
-
_body_params: Optional[bytes] = None
|
|
12545
|
-
|
|
12546
|
-
# process the path parameters
|
|
12547
|
-
# process the query parameters
|
|
12548
|
-
if deployment_id is not None:
|
|
12549
|
-
|
|
12550
|
-
_query_params.append(('deployment_id', deployment_id))
|
|
12551
|
-
|
|
12552
|
-
# process the header parameters
|
|
12553
|
-
# process the form parameters
|
|
12554
|
-
# process the body parameter
|
|
12555
|
-
if create_rag_deployment_request is not None:
|
|
12556
|
-
_body_params = create_rag_deployment_request
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
# set the HTTP header `Accept`
|
|
12560
|
-
if 'Accept' not in _header_params:
|
|
12561
|
-
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
12562
|
-
[
|
|
12563
|
-
'application/json'
|
|
12564
|
-
]
|
|
12565
|
-
)
|
|
12566
|
-
|
|
12567
|
-
# set the HTTP header `Content-Type`
|
|
12568
|
-
if _content_type:
|
|
12569
|
-
_header_params['Content-Type'] = _content_type
|
|
12570
|
-
else:
|
|
12571
|
-
_default_content_type = (
|
|
12572
|
-
self.api_client.select_header_content_type(
|
|
12573
|
-
[
|
|
12574
|
-
'application/json'
|
|
12575
|
-
]
|
|
12576
|
-
)
|
|
12577
|
-
)
|
|
12578
|
-
if _default_content_type is not None:
|
|
12579
|
-
_header_params['Content-Type'] = _default_content_type
|
|
12580
|
-
|
|
12581
|
-
# authentication setting
|
|
12582
|
-
_auth_settings: List[str] = [
|
|
12583
|
-
'HTTPBearer'
|
|
12584
|
-
]
|
|
12585
|
-
|
|
12586
|
-
return self.api_client.param_serialize(
|
|
12587
|
-
method='PUT',
|
|
12588
|
-
resource_path='/deployments/rag',
|
|
12589
|
-
path_params=_path_params,
|
|
12590
|
-
query_params=_query_params,
|
|
12591
|
-
header_params=_header_params,
|
|
12592
|
-
body=_body_params,
|
|
12593
|
-
post_params=_form_params,
|
|
12594
|
-
files=_files,
|
|
12595
|
-
auth_settings=_auth_settings,
|
|
12596
|
-
collection_formats=_collection_formats,
|
|
12597
|
-
_host=_host,
|
|
12598
|
-
_request_auth=_request_auth
|
|
12599
|
-
)
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
12313
|
@validate_call
|
|
12605
12314
|
def update_user_vault_item_endpoint_user_vault_put(
|
|
12606
12315
|
self,
|