platform-api-python-client 4.9.0__py3-none-any.whl → 4.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- platform_api_python_client/__init__.py +5 -1
- platform_api_python_client/api/external_api.py +538 -0
- 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 -0
- platform_api_python_client/models/config_file_mount.py +99 -0
- platform_api_python_client/models/create_c_serve_v3_deployment_request.py +11 -2
- platform_api_python_client/models/create_inference_v3_deployment_request.py +29 -2
- platform_api_python_client/models/create_job_deployment_request.py +139 -0
- platform_api_python_client/models/create_job_deployment_response.py +92 -0
- platform_api_python_client/models/deployment_type.py +1 -0
- platform_api_python_client/models/get_c_serve_v3_deployment_response.py +7 -3
- platform_api_python_client/models/get_inference_v3_deployment_response.py +18 -3
- platform_api_python_client/models/get_job_deployment_response.py +167 -0
- 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.9.0.dist-info → platform_api_python_client-4.10.0.dist-info}/METADATA +1 -1
- {platform_api_python_client-4.9.0.dist-info → platform_api_python_client-4.10.0.dist-info}/RECORD +20 -16
- {platform_api_python_client-4.9.0.dist-info → platform_api_python_client-4.10.0.dist-info}/WHEEL +0 -0
- {platform_api_python_client-4.9.0.dist-info → platform_api_python_client-4.10.0.dist-info}/top_level.txt +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "4.
|
|
17
|
+
__version__ = "4.10.0"
|
|
18
18
|
|
|
19
19
|
# import apis into sdk package
|
|
20
20
|
from platform_api_python_client.api.external_api import EXTERNALApi
|
|
@@ -38,6 +38,7 @@ from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePe
|
|
|
38
38
|
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
39
39
|
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
|
|
40
40
|
from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse
|
|
41
|
+
from platform_api_python_client.models.config_file_mount import ConfigFileMount
|
|
41
42
|
from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest
|
|
42
43
|
from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse
|
|
43
44
|
from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest
|
|
@@ -47,6 +48,8 @@ from platform_api_python_client.models.create_compute_deployment_response import
|
|
|
47
48
|
from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest
|
|
48
49
|
from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
|
|
49
50
|
from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest
|
|
51
|
+
from platform_api_python_client.models.create_job_deployment_request import CreateJobDeploymentRequest
|
|
52
|
+
from platform_api_python_client.models.create_job_deployment_response import CreateJobDeploymentResponse
|
|
50
53
|
from platform_api_python_client.models.create_organization_request import CreateOrganizationRequest
|
|
51
54
|
from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse
|
|
52
55
|
from platform_api_python_client.models.create_url_request import CreateUrlRequest
|
|
@@ -71,6 +74,7 @@ from platform_api_python_client.models.get_deployment_revision_response import G
|
|
|
71
74
|
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
72
75
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
73
76
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
77
|
+
from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
|
|
74
78
|
from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
|
|
75
79
|
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
76
80
|
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|
|
@@ -30,6 +30,8 @@ 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
37
|
from platform_api_python_client.models.create_url_request import CreateUrlRequest
|
|
@@ -47,6 +49,7 @@ from platform_api_python_client.models.get_deployment_revision_response import G
|
|
|
47
49
|
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
48
50
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
49
51
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
52
|
+
from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
|
|
50
53
|
from platform_api_python_client.models.invite_user_request import InviteUserRequest
|
|
51
54
|
from platform_api_python_client.models.list_api_key_response import ListAPIKeyResponse
|
|
52
55
|
from platform_api_python_client.models.list_c_serve_recipe_response import ListCServeRecipeResponse
|
|
@@ -1727,6 +1730,280 @@ class EXTERNALApi:
|
|
|
1727
1730
|
|
|
1728
1731
|
|
|
1729
1732
|
|
|
1733
|
+
@validate_call
|
|
1734
|
+
def create_job_deployment_deployments_job_post(
|
|
1735
|
+
self,
|
|
1736
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
1737
|
+
_request_timeout: Union[
|
|
1738
|
+
None,
|
|
1739
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1740
|
+
Tuple[
|
|
1741
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1742
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1743
|
+
]
|
|
1744
|
+
] = None,
|
|
1745
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1746
|
+
_content_type: Optional[StrictStr] = None,
|
|
1747
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1748
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1749
|
+
) -> CreateJobDeploymentResponse:
|
|
1750
|
+
"""Create Job Deployment
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
:param create_job_deployment_request: (required)
|
|
1754
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
1755
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1756
|
+
number provided, it will be total request
|
|
1757
|
+
timeout. It can also be a pair (tuple) of
|
|
1758
|
+
(connection, read) timeouts.
|
|
1759
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1760
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1761
|
+
request; this effectively ignores the
|
|
1762
|
+
authentication in the spec for a single request.
|
|
1763
|
+
:type _request_auth: dict, optional
|
|
1764
|
+
:param _content_type: force content-type for the request.
|
|
1765
|
+
:type _content_type: str, Optional
|
|
1766
|
+
:param _headers: set to override the headers for a single
|
|
1767
|
+
request; this effectively ignores the headers
|
|
1768
|
+
in the spec for a single request.
|
|
1769
|
+
:type _headers: dict, optional
|
|
1770
|
+
:param _host_index: set to override the host_index for a single
|
|
1771
|
+
request; this effectively ignores the host_index
|
|
1772
|
+
in the spec for a single request.
|
|
1773
|
+
:type _host_index: int, optional
|
|
1774
|
+
:return: Returns the result object.
|
|
1775
|
+
""" # noqa: E501
|
|
1776
|
+
|
|
1777
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
1778
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
1779
|
+
_request_auth=_request_auth,
|
|
1780
|
+
_content_type=_content_type,
|
|
1781
|
+
_headers=_headers,
|
|
1782
|
+
_host_index=_host_index
|
|
1783
|
+
)
|
|
1784
|
+
|
|
1785
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1786
|
+
'200': "CreateJobDeploymentResponse",
|
|
1787
|
+
'422': "HTTPValidationError",
|
|
1788
|
+
}
|
|
1789
|
+
response_data = self.api_client.call_api(
|
|
1790
|
+
*_param,
|
|
1791
|
+
_request_timeout=_request_timeout
|
|
1792
|
+
)
|
|
1793
|
+
response_data.read()
|
|
1794
|
+
return self.api_client.response_deserialize(
|
|
1795
|
+
response_data=response_data,
|
|
1796
|
+
response_types_map=_response_types_map,
|
|
1797
|
+
).data
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
@validate_call
|
|
1801
|
+
def create_job_deployment_deployments_job_post_with_http_info(
|
|
1802
|
+
self,
|
|
1803
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
1804
|
+
_request_timeout: Union[
|
|
1805
|
+
None,
|
|
1806
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1807
|
+
Tuple[
|
|
1808
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1809
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1810
|
+
]
|
|
1811
|
+
] = None,
|
|
1812
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1813
|
+
_content_type: Optional[StrictStr] = None,
|
|
1814
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1815
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1816
|
+
) -> ApiResponse[CreateJobDeploymentResponse]:
|
|
1817
|
+
"""Create Job Deployment
|
|
1818
|
+
|
|
1819
|
+
|
|
1820
|
+
:param create_job_deployment_request: (required)
|
|
1821
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
1822
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1823
|
+
number provided, it will be total request
|
|
1824
|
+
timeout. It can also be a pair (tuple) of
|
|
1825
|
+
(connection, read) timeouts.
|
|
1826
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1827
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1828
|
+
request; this effectively ignores the
|
|
1829
|
+
authentication in the spec for a single request.
|
|
1830
|
+
:type _request_auth: dict, optional
|
|
1831
|
+
:param _content_type: force content-type for the request.
|
|
1832
|
+
:type _content_type: str, Optional
|
|
1833
|
+
:param _headers: set to override the headers for a single
|
|
1834
|
+
request; this effectively ignores the headers
|
|
1835
|
+
in the spec for a single request.
|
|
1836
|
+
:type _headers: dict, optional
|
|
1837
|
+
:param _host_index: set to override the host_index for a single
|
|
1838
|
+
request; this effectively ignores the host_index
|
|
1839
|
+
in the spec for a single request.
|
|
1840
|
+
:type _host_index: int, optional
|
|
1841
|
+
:return: Returns the result object.
|
|
1842
|
+
""" # noqa: E501
|
|
1843
|
+
|
|
1844
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
1845
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
1846
|
+
_request_auth=_request_auth,
|
|
1847
|
+
_content_type=_content_type,
|
|
1848
|
+
_headers=_headers,
|
|
1849
|
+
_host_index=_host_index
|
|
1850
|
+
)
|
|
1851
|
+
|
|
1852
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1853
|
+
'200': "CreateJobDeploymentResponse",
|
|
1854
|
+
'422': "HTTPValidationError",
|
|
1855
|
+
}
|
|
1856
|
+
response_data = self.api_client.call_api(
|
|
1857
|
+
*_param,
|
|
1858
|
+
_request_timeout=_request_timeout
|
|
1859
|
+
)
|
|
1860
|
+
response_data.read()
|
|
1861
|
+
return self.api_client.response_deserialize(
|
|
1862
|
+
response_data=response_data,
|
|
1863
|
+
response_types_map=_response_types_map,
|
|
1864
|
+
)
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
@validate_call
|
|
1868
|
+
def create_job_deployment_deployments_job_post_without_preload_content(
|
|
1869
|
+
self,
|
|
1870
|
+
create_job_deployment_request: CreateJobDeploymentRequest,
|
|
1871
|
+
_request_timeout: Union[
|
|
1872
|
+
None,
|
|
1873
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1874
|
+
Tuple[
|
|
1875
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1876
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1877
|
+
]
|
|
1878
|
+
] = None,
|
|
1879
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1880
|
+
_content_type: Optional[StrictStr] = None,
|
|
1881
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1882
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1883
|
+
) -> RESTResponseType:
|
|
1884
|
+
"""Create Job Deployment
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
:param create_job_deployment_request: (required)
|
|
1888
|
+
:type create_job_deployment_request: CreateJobDeploymentRequest
|
|
1889
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1890
|
+
number provided, it will be total request
|
|
1891
|
+
timeout. It can also be a pair (tuple) of
|
|
1892
|
+
(connection, read) timeouts.
|
|
1893
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1894
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1895
|
+
request; this effectively ignores the
|
|
1896
|
+
authentication in the spec for a single request.
|
|
1897
|
+
:type _request_auth: dict, optional
|
|
1898
|
+
:param _content_type: force content-type for the request.
|
|
1899
|
+
:type _content_type: str, Optional
|
|
1900
|
+
:param _headers: set to override the headers for a single
|
|
1901
|
+
request; this effectively ignores the headers
|
|
1902
|
+
in the spec for a single request.
|
|
1903
|
+
:type _headers: dict, optional
|
|
1904
|
+
:param _host_index: set to override the host_index for a single
|
|
1905
|
+
request; this effectively ignores the host_index
|
|
1906
|
+
in the spec for a single request.
|
|
1907
|
+
:type _host_index: int, optional
|
|
1908
|
+
:return: Returns the result object.
|
|
1909
|
+
""" # noqa: E501
|
|
1910
|
+
|
|
1911
|
+
_param = self._create_job_deployment_deployments_job_post_serialize(
|
|
1912
|
+
create_job_deployment_request=create_job_deployment_request,
|
|
1913
|
+
_request_auth=_request_auth,
|
|
1914
|
+
_content_type=_content_type,
|
|
1915
|
+
_headers=_headers,
|
|
1916
|
+
_host_index=_host_index
|
|
1917
|
+
)
|
|
1918
|
+
|
|
1919
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1920
|
+
'200': "CreateJobDeploymentResponse",
|
|
1921
|
+
'422': "HTTPValidationError",
|
|
1922
|
+
}
|
|
1923
|
+
response_data = self.api_client.call_api(
|
|
1924
|
+
*_param,
|
|
1925
|
+
_request_timeout=_request_timeout
|
|
1926
|
+
)
|
|
1927
|
+
return response_data.response
|
|
1928
|
+
|
|
1929
|
+
|
|
1930
|
+
def _create_job_deployment_deployments_job_post_serialize(
|
|
1931
|
+
self,
|
|
1932
|
+
create_job_deployment_request,
|
|
1933
|
+
_request_auth,
|
|
1934
|
+
_content_type,
|
|
1935
|
+
_headers,
|
|
1936
|
+
_host_index,
|
|
1937
|
+
) -> RequestSerialized:
|
|
1938
|
+
|
|
1939
|
+
_host = None
|
|
1940
|
+
|
|
1941
|
+
_collection_formats: Dict[str, str] = {
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
_path_params: Dict[str, str] = {}
|
|
1945
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1946
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1947
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1948
|
+
_files: Dict[
|
|
1949
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1950
|
+
] = {}
|
|
1951
|
+
_body_params: Optional[bytes] = None
|
|
1952
|
+
|
|
1953
|
+
# process the path parameters
|
|
1954
|
+
# process the query parameters
|
|
1955
|
+
# process the header parameters
|
|
1956
|
+
# process the form parameters
|
|
1957
|
+
# process the body parameter
|
|
1958
|
+
if create_job_deployment_request is not None:
|
|
1959
|
+
_body_params = create_job_deployment_request
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
# set the HTTP header `Accept`
|
|
1963
|
+
if 'Accept' not in _header_params:
|
|
1964
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1965
|
+
[
|
|
1966
|
+
'application/json'
|
|
1967
|
+
]
|
|
1968
|
+
)
|
|
1969
|
+
|
|
1970
|
+
# set the HTTP header `Content-Type`
|
|
1971
|
+
if _content_type:
|
|
1972
|
+
_header_params['Content-Type'] = _content_type
|
|
1973
|
+
else:
|
|
1974
|
+
_default_content_type = (
|
|
1975
|
+
self.api_client.select_header_content_type(
|
|
1976
|
+
[
|
|
1977
|
+
'application/json'
|
|
1978
|
+
]
|
|
1979
|
+
)
|
|
1980
|
+
)
|
|
1981
|
+
if _default_content_type is not None:
|
|
1982
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1983
|
+
|
|
1984
|
+
# authentication setting
|
|
1985
|
+
_auth_settings: List[str] = [
|
|
1986
|
+
'HTTPBearer'
|
|
1987
|
+
]
|
|
1988
|
+
|
|
1989
|
+
return self.api_client.param_serialize(
|
|
1990
|
+
method='POST',
|
|
1991
|
+
resource_path='/deployments/job',
|
|
1992
|
+
path_params=_path_params,
|
|
1993
|
+
query_params=_query_params,
|
|
1994
|
+
header_params=_header_params,
|
|
1995
|
+
body=_body_params,
|
|
1996
|
+
post_params=_form_params,
|
|
1997
|
+
files=_files,
|
|
1998
|
+
auth_settings=_auth_settings,
|
|
1999
|
+
collection_formats=_collection_formats,
|
|
2000
|
+
_host=_host,
|
|
2001
|
+
_request_auth=_request_auth
|
|
2002
|
+
)
|
|
2003
|
+
|
|
2004
|
+
|
|
2005
|
+
|
|
2006
|
+
|
|
1730
2007
|
@validate_call
|
|
1731
2008
|
def create_new_organization_organizations_post(
|
|
1732
2009
|
self,
|
|
@@ -7759,6 +8036,267 @@ class EXTERNALApi:
|
|
|
7759
8036
|
|
|
7760
8037
|
|
|
7761
8038
|
|
|
8039
|
+
@validate_call
|
|
8040
|
+
def get_job_deployment_deployments_job_deployment_id_get(
|
|
8041
|
+
self,
|
|
8042
|
+
deployment_id: StrictInt,
|
|
8043
|
+
_request_timeout: Union[
|
|
8044
|
+
None,
|
|
8045
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
8046
|
+
Tuple[
|
|
8047
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
8048
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
8049
|
+
]
|
|
8050
|
+
] = None,
|
|
8051
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
8052
|
+
_content_type: Optional[StrictStr] = None,
|
|
8053
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8054
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8055
|
+
) -> GetJobDeploymentResponse:
|
|
8056
|
+
"""Get Job Deployment
|
|
8057
|
+
|
|
8058
|
+
|
|
8059
|
+
:param deployment_id: (required)
|
|
8060
|
+
:type deployment_id: int
|
|
8061
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8062
|
+
number provided, it will be total request
|
|
8063
|
+
timeout. It can also be a pair (tuple) of
|
|
8064
|
+
(connection, read) timeouts.
|
|
8065
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
8066
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
8067
|
+
request; this effectively ignores the
|
|
8068
|
+
authentication in the spec for a single request.
|
|
8069
|
+
:type _request_auth: dict, optional
|
|
8070
|
+
:param _content_type: force content-type for the request.
|
|
8071
|
+
:type _content_type: str, Optional
|
|
8072
|
+
:param _headers: set to override the headers for a single
|
|
8073
|
+
request; this effectively ignores the headers
|
|
8074
|
+
in the spec for a single request.
|
|
8075
|
+
:type _headers: dict, optional
|
|
8076
|
+
:param _host_index: set to override the host_index for a single
|
|
8077
|
+
request; this effectively ignores the host_index
|
|
8078
|
+
in the spec for a single request.
|
|
8079
|
+
:type _host_index: int, optional
|
|
8080
|
+
:return: Returns the result object.
|
|
8081
|
+
""" # noqa: E501
|
|
8082
|
+
|
|
8083
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8084
|
+
deployment_id=deployment_id,
|
|
8085
|
+
_request_auth=_request_auth,
|
|
8086
|
+
_content_type=_content_type,
|
|
8087
|
+
_headers=_headers,
|
|
8088
|
+
_host_index=_host_index
|
|
8089
|
+
)
|
|
8090
|
+
|
|
8091
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
8092
|
+
'200': "GetJobDeploymentResponse",
|
|
8093
|
+
'422': "HTTPValidationError",
|
|
8094
|
+
}
|
|
8095
|
+
response_data = self.api_client.call_api(
|
|
8096
|
+
*_param,
|
|
8097
|
+
_request_timeout=_request_timeout
|
|
8098
|
+
)
|
|
8099
|
+
response_data.read()
|
|
8100
|
+
return self.api_client.response_deserialize(
|
|
8101
|
+
response_data=response_data,
|
|
8102
|
+
response_types_map=_response_types_map,
|
|
8103
|
+
).data
|
|
8104
|
+
|
|
8105
|
+
|
|
8106
|
+
@validate_call
|
|
8107
|
+
def get_job_deployment_deployments_job_deployment_id_get_with_http_info(
|
|
8108
|
+
self,
|
|
8109
|
+
deployment_id: StrictInt,
|
|
8110
|
+
_request_timeout: Union[
|
|
8111
|
+
None,
|
|
8112
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
8113
|
+
Tuple[
|
|
8114
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
8115
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
8116
|
+
]
|
|
8117
|
+
] = None,
|
|
8118
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
8119
|
+
_content_type: Optional[StrictStr] = None,
|
|
8120
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8121
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8122
|
+
) -> ApiResponse[GetJobDeploymentResponse]:
|
|
8123
|
+
"""Get Job Deployment
|
|
8124
|
+
|
|
8125
|
+
|
|
8126
|
+
:param deployment_id: (required)
|
|
8127
|
+
:type deployment_id: int
|
|
8128
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8129
|
+
number provided, it will be total request
|
|
8130
|
+
timeout. It can also be a pair (tuple) of
|
|
8131
|
+
(connection, read) timeouts.
|
|
8132
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
8133
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
8134
|
+
request; this effectively ignores the
|
|
8135
|
+
authentication in the spec for a single request.
|
|
8136
|
+
:type _request_auth: dict, optional
|
|
8137
|
+
:param _content_type: force content-type for the request.
|
|
8138
|
+
:type _content_type: str, Optional
|
|
8139
|
+
:param _headers: set to override the headers for a single
|
|
8140
|
+
request; this effectively ignores the headers
|
|
8141
|
+
in the spec for a single request.
|
|
8142
|
+
:type _headers: dict, optional
|
|
8143
|
+
:param _host_index: set to override the host_index for a single
|
|
8144
|
+
request; this effectively ignores the host_index
|
|
8145
|
+
in the spec for a single request.
|
|
8146
|
+
:type _host_index: int, optional
|
|
8147
|
+
:return: Returns the result object.
|
|
8148
|
+
""" # noqa: E501
|
|
8149
|
+
|
|
8150
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8151
|
+
deployment_id=deployment_id,
|
|
8152
|
+
_request_auth=_request_auth,
|
|
8153
|
+
_content_type=_content_type,
|
|
8154
|
+
_headers=_headers,
|
|
8155
|
+
_host_index=_host_index
|
|
8156
|
+
)
|
|
8157
|
+
|
|
8158
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
8159
|
+
'200': "GetJobDeploymentResponse",
|
|
8160
|
+
'422': "HTTPValidationError",
|
|
8161
|
+
}
|
|
8162
|
+
response_data = self.api_client.call_api(
|
|
8163
|
+
*_param,
|
|
8164
|
+
_request_timeout=_request_timeout
|
|
8165
|
+
)
|
|
8166
|
+
response_data.read()
|
|
8167
|
+
return self.api_client.response_deserialize(
|
|
8168
|
+
response_data=response_data,
|
|
8169
|
+
response_types_map=_response_types_map,
|
|
8170
|
+
)
|
|
8171
|
+
|
|
8172
|
+
|
|
8173
|
+
@validate_call
|
|
8174
|
+
def get_job_deployment_deployments_job_deployment_id_get_without_preload_content(
|
|
8175
|
+
self,
|
|
8176
|
+
deployment_id: StrictInt,
|
|
8177
|
+
_request_timeout: Union[
|
|
8178
|
+
None,
|
|
8179
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
8180
|
+
Tuple[
|
|
8181
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
8182
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
8183
|
+
]
|
|
8184
|
+
] = None,
|
|
8185
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
8186
|
+
_content_type: Optional[StrictStr] = None,
|
|
8187
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
8188
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
8189
|
+
) -> RESTResponseType:
|
|
8190
|
+
"""Get Job Deployment
|
|
8191
|
+
|
|
8192
|
+
|
|
8193
|
+
:param deployment_id: (required)
|
|
8194
|
+
:type deployment_id: int
|
|
8195
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
8196
|
+
number provided, it will be total request
|
|
8197
|
+
timeout. It can also be a pair (tuple) of
|
|
8198
|
+
(connection, read) timeouts.
|
|
8199
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
8200
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
8201
|
+
request; this effectively ignores the
|
|
8202
|
+
authentication in the spec for a single request.
|
|
8203
|
+
:type _request_auth: dict, optional
|
|
8204
|
+
:param _content_type: force content-type for the request.
|
|
8205
|
+
:type _content_type: str, Optional
|
|
8206
|
+
:param _headers: set to override the headers for a single
|
|
8207
|
+
request; this effectively ignores the headers
|
|
8208
|
+
in the spec for a single request.
|
|
8209
|
+
:type _headers: dict, optional
|
|
8210
|
+
:param _host_index: set to override the host_index for a single
|
|
8211
|
+
request; this effectively ignores the host_index
|
|
8212
|
+
in the spec for a single request.
|
|
8213
|
+
:type _host_index: int, optional
|
|
8214
|
+
:return: Returns the result object.
|
|
8215
|
+
""" # noqa: E501
|
|
8216
|
+
|
|
8217
|
+
_param = self._get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8218
|
+
deployment_id=deployment_id,
|
|
8219
|
+
_request_auth=_request_auth,
|
|
8220
|
+
_content_type=_content_type,
|
|
8221
|
+
_headers=_headers,
|
|
8222
|
+
_host_index=_host_index
|
|
8223
|
+
)
|
|
8224
|
+
|
|
8225
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
8226
|
+
'200': "GetJobDeploymentResponse",
|
|
8227
|
+
'422': "HTTPValidationError",
|
|
8228
|
+
}
|
|
8229
|
+
response_data = self.api_client.call_api(
|
|
8230
|
+
*_param,
|
|
8231
|
+
_request_timeout=_request_timeout
|
|
8232
|
+
)
|
|
8233
|
+
return response_data.response
|
|
8234
|
+
|
|
8235
|
+
|
|
8236
|
+
def _get_job_deployment_deployments_job_deployment_id_get_serialize(
|
|
8237
|
+
self,
|
|
8238
|
+
deployment_id,
|
|
8239
|
+
_request_auth,
|
|
8240
|
+
_content_type,
|
|
8241
|
+
_headers,
|
|
8242
|
+
_host_index,
|
|
8243
|
+
) -> RequestSerialized:
|
|
8244
|
+
|
|
8245
|
+
_host = None
|
|
8246
|
+
|
|
8247
|
+
_collection_formats: Dict[str, str] = {
|
|
8248
|
+
}
|
|
8249
|
+
|
|
8250
|
+
_path_params: Dict[str, str] = {}
|
|
8251
|
+
_query_params: List[Tuple[str, str]] = []
|
|
8252
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
8253
|
+
_form_params: List[Tuple[str, str]] = []
|
|
8254
|
+
_files: Dict[
|
|
8255
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
8256
|
+
] = {}
|
|
8257
|
+
_body_params: Optional[bytes] = None
|
|
8258
|
+
|
|
8259
|
+
# process the path parameters
|
|
8260
|
+
if deployment_id is not None:
|
|
8261
|
+
_path_params['deployment_id'] = deployment_id
|
|
8262
|
+
# process the query parameters
|
|
8263
|
+
# process the header parameters
|
|
8264
|
+
# process the form parameters
|
|
8265
|
+
# process the body parameter
|
|
8266
|
+
|
|
8267
|
+
|
|
8268
|
+
# set the HTTP header `Accept`
|
|
8269
|
+
if 'Accept' not in _header_params:
|
|
8270
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
8271
|
+
[
|
|
8272
|
+
'application/json'
|
|
8273
|
+
]
|
|
8274
|
+
)
|
|
8275
|
+
|
|
8276
|
+
|
|
8277
|
+
# authentication setting
|
|
8278
|
+
_auth_settings: List[str] = [
|
|
8279
|
+
'HTTPBearer'
|
|
8280
|
+
]
|
|
8281
|
+
|
|
8282
|
+
return self.api_client.param_serialize(
|
|
8283
|
+
method='GET',
|
|
8284
|
+
resource_path='/deployments/job/{deployment_id}',
|
|
8285
|
+
path_params=_path_params,
|
|
8286
|
+
query_params=_query_params,
|
|
8287
|
+
header_params=_header_params,
|
|
8288
|
+
body=_body_params,
|
|
8289
|
+
post_params=_form_params,
|
|
8290
|
+
files=_files,
|
|
8291
|
+
auth_settings=_auth_settings,
|
|
8292
|
+
collection_formats=_collection_formats,
|
|
8293
|
+
_host=_host,
|
|
8294
|
+
_request_auth=_request_auth
|
|
8295
|
+
)
|
|
8296
|
+
|
|
8297
|
+
|
|
8298
|
+
|
|
8299
|
+
|
|
7762
8300
|
@validate_call
|
|
7763
8301
|
def get_prebuilt_images_prebuilt_images_get(
|
|
7764
8302
|
self,
|
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/4.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/4.10.0/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
|
@@ -392,7 +392,7 @@ class Configuration:
|
|
|
392
392
|
"OS: {env}\n"\
|
|
393
393
|
"Python Version: {pyversion}\n"\
|
|
394
394
|
"Version of the API: 0.1.0\n"\
|
|
395
|
-
"SDK Package Version: 4.
|
|
395
|
+
"SDK Package Version: 4.10.0".\
|
|
396
396
|
format(env=sys.platform, pyversion=sys.version)
|
|
397
397
|
|
|
398
398
|
def get_host_settings(self):
|
|
@@ -21,6 +21,7 @@ from platform_api_python_client.models.c_serve_recipe_perf import CServeRecipePe
|
|
|
21
21
|
from platform_api_python_client.models.c_serve_recipe_response import CServeRecipeResponse
|
|
22
22
|
from platform_api_python_client.models.c_serve_v2_recipe import CServeV2Recipe
|
|
23
23
|
from platform_api_python_client.models.cluster_capacity_response import ClusterCapacityResponse
|
|
24
|
+
from platform_api_python_client.models.config_file_mount import ConfigFileMount
|
|
24
25
|
from platform_api_python_client.models.create_c_serve_v2_deployment_request import CreateCServeV2DeploymentRequest
|
|
25
26
|
from platform_api_python_client.models.create_c_serve_v2_deployment_response import CreateCServeV2DeploymentResponse
|
|
26
27
|
from platform_api_python_client.models.create_c_serve_v3_deployment_request import CreateCServeV3DeploymentRequest
|
|
@@ -30,6 +31,8 @@ from platform_api_python_client.models.create_compute_deployment_response import
|
|
|
30
31
|
from platform_api_python_client.models.create_inference_deployment_request import CreateInferenceDeploymentRequest
|
|
31
32
|
from platform_api_python_client.models.create_inference_deployment_response import CreateInferenceDeploymentResponse
|
|
32
33
|
from platform_api_python_client.models.create_inference_v3_deployment_request import CreateInferenceV3DeploymentRequest
|
|
34
|
+
from platform_api_python_client.models.create_job_deployment_request import CreateJobDeploymentRequest
|
|
35
|
+
from platform_api_python_client.models.create_job_deployment_response import CreateJobDeploymentResponse
|
|
33
36
|
from platform_api_python_client.models.create_organization_request import CreateOrganizationRequest
|
|
34
37
|
from platform_api_python_client.models.create_organization_response import CreateOrganizationResponse
|
|
35
38
|
from platform_api_python_client.models.create_url_request import CreateUrlRequest
|
|
@@ -54,6 +57,7 @@ from platform_api_python_client.models.get_deployment_revision_response import G
|
|
|
54
57
|
from platform_api_python_client.models.get_deployment_usage_response import GetDeploymentUsageResponse
|
|
55
58
|
from platform_api_python_client.models.get_inference_deployment_response import GetInferenceDeploymentResponse
|
|
56
59
|
from platform_api_python_client.models.get_inference_v3_deployment_response import GetInferenceV3DeploymentResponse
|
|
60
|
+
from platform_api_python_client.models.get_job_deployment_response import GetJobDeploymentResponse
|
|
57
61
|
from platform_api_python_client.models.gpu_type_capacity import GpuTypeCapacity
|
|
58
62
|
from platform_api_python_client.models.http_validation_error import HTTPValidationError
|
|
59
63
|
from platform_api_python_client.models.hardware_instance_response import HardwareInstanceResponse
|