kingsoftcloud-sdk-python 1.5.8.74__py2.py3-none-any.whl → 1.5.8.76__py2.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.
- {kingsoftcloud_sdk_python-1.5.8.74.dist-info → kingsoftcloud_sdk_python-1.5.8.76.dist-info}/METADATA +1 -1
- {kingsoftcloud_sdk_python-1.5.8.74.dist-info → kingsoftcloud_sdk_python-1.5.8.76.dist-info}/RECORD +10 -10
- ksyun/__init__.py +1 -1
- ksyun/client/aicp/v20240612/client.py +231 -1
- ksyun/client/aicp/v20240612/models.py +297 -3
- ksyun/client/aicp/v20251114/client.py +345 -0
- ksyun/client/aicp/v20251114/models.py +424 -0
- {kingsoftcloud_sdk_python-1.5.8.74.dist-info → kingsoftcloud_sdk_python-1.5.8.76.dist-info}/WHEEL +0 -0
- {kingsoftcloud_sdk_python-1.5.8.74.dist-info → kingsoftcloud_sdk_python-1.5.8.76.dist-info}/licenses/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.5.8.74.dist-info → kingsoftcloud_sdk_python-1.5.8.76.dist-info}/top_level.txt +0 -0
{kingsoftcloud_sdk_python-1.5.8.74.dist-info → kingsoftcloud_sdk_python-1.5.8.76.dist-info}/RECORD
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
2
|
-
ksyun/__init__.py,sha256=
|
|
1
|
+
kingsoftcloud_sdk_python-1.5.8.76.dist-info/licenses/LICENSE,sha256=AJyIQ6mPzTpsFn6i0cG6OPVdhJ85l_mfdoOR7J4DnRw,11351
|
|
2
|
+
ksyun/__init__.py,sha256=2_SAJarT6OlYJiiD7nWjX4ntol3bEe8JNT-GKoM2aB0,624
|
|
3
3
|
ksyun/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
ksyun/client/actiontrail/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
ksyun/client/actiontrail/v20190401/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -7,11 +7,11 @@ ksyun/client/actiontrail/v20190401/client.py,sha256=h2Vn_QdsdjUg6EGwGG0_UeljmWp4
|
|
|
7
7
|
ksyun/client/actiontrail/v20190401/models.py,sha256=Gp8mcXLF9_DN3fq-Posjl4pNfta5d5TK2DSyF8a32zo,2959
|
|
8
8
|
ksyun/client/aicp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
ksyun/client/aicp/v20240612/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
ksyun/client/aicp/v20240612/client.py,sha256=
|
|
11
|
-
ksyun/client/aicp/v20240612/models.py,sha256=
|
|
10
|
+
ksyun/client/aicp/v20240612/client.py,sha256=iRERArUf3lJaPcG102hlf71mr2EHK6dQjYOz0T1uG5E,77337
|
|
11
|
+
ksyun/client/aicp/v20240612/models.py,sha256=tiW9yZm8M6bIMbaGsQnvHyZUlyHg89hpoWvW1ODntHo,95647
|
|
12
12
|
ksyun/client/aicp/v20251114/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
-
ksyun/client/aicp/v20251114/client.py,sha256=
|
|
14
|
-
ksyun/client/aicp/v20251114/models.py,sha256=
|
|
13
|
+
ksyun/client/aicp/v20251114/client.py,sha256=pFbRWNTvBs7ZOZW-g5VQ89fP0R-kf1ZPcJMZA-7M7fo,30311
|
|
14
|
+
ksyun/client/aicp/v20251114/models.py,sha256=WwhGwdAH2macC3MlyDNfaPaEfof2CbjCE_zm_cxmpNg,29777
|
|
15
15
|
ksyun/client/aicp/v20251212/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
ksyun/client/aicp/v20251212/client.py,sha256=R9DDXSXzJofccusM7gUcLH5Gi5kV17rUQ2U7XjxkqeA,11187
|
|
17
17
|
ksyun/client/aicp/v20251212/models.py,sha256=xWoi_L3s0nkWAN-5_q737sLf5c6DmHIOLevmMzl-j4Y,15613
|
|
@@ -338,7 +338,7 @@ ksyun/common/http/request.py,sha256=x8cWSnSQWFqitiTUZ1DAS4UVS96oR-K-X8adgeGmOmY,
|
|
|
338
338
|
ksyun/common/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
339
339
|
ksyun/common/profile/client_profile.py,sha256=RJGav6wx8kPnEQ1unEwzys1ZJuP9jUXCcAMleJDacqU,1594
|
|
340
340
|
ksyun/common/profile/http_profile.py,sha256=pf_F81rldkVfDyUynNTIyjIIxrHqA3WsJ1oirTa9Rhg,2621
|
|
341
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
342
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
343
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
344
|
-
kingsoftcloud_sdk_python-1.5.8.
|
|
341
|
+
kingsoftcloud_sdk_python-1.5.8.76.dist-info/METADATA,sha256=DpOcSo5AfcqB4itjcR_MXLHa9jqWXwe5_gpqlaE-MN4,2117
|
|
342
|
+
kingsoftcloud_sdk_python-1.5.8.76.dist-info/WHEEL,sha256=TdQ5LtNwLuxTCjgxN51AgdU5w-KkB9ttmLbzjTH02pg,109
|
|
343
|
+
kingsoftcloud_sdk_python-1.5.8.76.dist-info/top_level.txt,sha256=mzM04AZwi_rRte0l5x-qpr79yKptjcaFLfIPtRA-8Dk,6
|
|
344
|
+
kingsoftcloud_sdk_python-1.5.8.76.dist-info/RECORD,,
|
ksyun/__init__.py
CHANGED
|
@@ -538,7 +538,7 @@ class AicpClient(AbstractClient):
|
|
|
538
538
|
|
|
539
539
|
|
|
540
540
|
def EnableApikeyStatus(self, request):
|
|
541
|
-
"""启用
|
|
541
|
+
"""启用 API Key
|
|
542
542
|
:param request: Request instance for EnableApikeyStatus.
|
|
543
543
|
:type request: :class:`ksyun.client.aicp.v20240612.models.EnableApikeyStatusRequest`
|
|
544
544
|
"""
|
|
@@ -1457,6 +1457,29 @@ class AicpClient(AbstractClient):
|
|
|
1457
1457
|
raise KsyunSDKException(message=str(e))
|
|
1458
1458
|
|
|
1459
1459
|
|
|
1460
|
+
def EnableKpfsComponent(self, request):
|
|
1461
|
+
"""开启安装kpfs组件
|
|
1462
|
+
:param request: Request instance for EnableKpfsComponent.
|
|
1463
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.EnableKpfsComponentRequest`
|
|
1464
|
+
"""
|
|
1465
|
+
try:
|
|
1466
|
+
params = request._serialize()
|
|
1467
|
+
body = self.call_judge("EnableKpfsComponent", params, "application/json")
|
|
1468
|
+
response = json.loads(body)
|
|
1469
|
+
if "Error" not in response:
|
|
1470
|
+
return body
|
|
1471
|
+
else:
|
|
1472
|
+
code = response["Error"]["Code"]
|
|
1473
|
+
message = response["Error"]["Message"]
|
|
1474
|
+
req_id = response["RequestId"]
|
|
1475
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1476
|
+
except Exception as e:
|
|
1477
|
+
if isinstance(e, KsyunSDKException):
|
|
1478
|
+
raise
|
|
1479
|
+
else:
|
|
1480
|
+
raise KsyunSDKException(message=str(e))
|
|
1481
|
+
|
|
1482
|
+
|
|
1460
1483
|
def CreateInferenceEndpoint(self, request):
|
|
1461
1484
|
"""创建接入点
|
|
1462
1485
|
:param request: Request instance for CreateInferenceEndpoint.
|
|
@@ -1710,3 +1733,210 @@ class AicpClient(AbstractClient):
|
|
|
1710
1733
|
raise KsyunSDKException(message=str(e))
|
|
1711
1734
|
|
|
1712
1735
|
|
|
1736
|
+
def CreateQueue(self, request):
|
|
1737
|
+
"""创建资源组队列
|
|
1738
|
+
:param request: Request instance for CreateQueue.
|
|
1739
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.CreateQueueRequest`
|
|
1740
|
+
"""
|
|
1741
|
+
try:
|
|
1742
|
+
params = request._serialize()
|
|
1743
|
+
body = self.call_judge("CreateQueue", params, "application/json")
|
|
1744
|
+
response = json.loads(body)
|
|
1745
|
+
if "Error" not in response:
|
|
1746
|
+
return body
|
|
1747
|
+
else:
|
|
1748
|
+
code = response["Error"]["Code"]
|
|
1749
|
+
message = response["Error"]["Message"]
|
|
1750
|
+
req_id = response["RequestId"]
|
|
1751
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1752
|
+
except Exception as e:
|
|
1753
|
+
if isinstance(e, KsyunSDKException):
|
|
1754
|
+
raise
|
|
1755
|
+
else:
|
|
1756
|
+
raise KsyunSDKException(message=str(e))
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
def ModifyQueue(self, request):
|
|
1760
|
+
"""修改资源组队列
|
|
1761
|
+
:param request: Request instance for ModifyQueue.
|
|
1762
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.ModifyQueueRequest`
|
|
1763
|
+
"""
|
|
1764
|
+
try:
|
|
1765
|
+
params = request._serialize()
|
|
1766
|
+
body = self.call_judge("ModifyQueue", params, "application/json")
|
|
1767
|
+
response = json.loads(body)
|
|
1768
|
+
if "Error" not in response:
|
|
1769
|
+
return body
|
|
1770
|
+
else:
|
|
1771
|
+
code = response["Error"]["Code"]
|
|
1772
|
+
message = response["Error"]["Message"]
|
|
1773
|
+
req_id = response["RequestId"]
|
|
1774
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1775
|
+
except Exception as e:
|
|
1776
|
+
if isinstance(e, KsyunSDKException):
|
|
1777
|
+
raise
|
|
1778
|
+
else:
|
|
1779
|
+
raise KsyunSDKException(message=str(e))
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
def DeleteQueue(self, request):
|
|
1783
|
+
"""删除队列接口
|
|
1784
|
+
:param request: Request instance for DeleteQueue.
|
|
1785
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.DeleteQueueRequest`
|
|
1786
|
+
"""
|
|
1787
|
+
try:
|
|
1788
|
+
params = request._serialize()
|
|
1789
|
+
body = self.call_judge("DeleteQueue", params, "application/x-www-form-urlencoded")
|
|
1790
|
+
response = json.loads(body)
|
|
1791
|
+
if "Error" not in response:
|
|
1792
|
+
return body
|
|
1793
|
+
else:
|
|
1794
|
+
code = response["Error"]["Code"]
|
|
1795
|
+
message = response["Error"]["Message"]
|
|
1796
|
+
req_id = response["RequestId"]
|
|
1797
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1798
|
+
except Exception as e:
|
|
1799
|
+
if isinstance(e, KsyunSDKException):
|
|
1800
|
+
raise
|
|
1801
|
+
else:
|
|
1802
|
+
raise KsyunSDKException(message=str(e))
|
|
1803
|
+
|
|
1804
|
+
|
|
1805
|
+
def AddQueueAccessUser(self, request):
|
|
1806
|
+
"""添加队列成员
|
|
1807
|
+
:param request: Request instance for AddQueueAccessUser.
|
|
1808
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.AddQueueAccessUserRequest`
|
|
1809
|
+
"""
|
|
1810
|
+
try:
|
|
1811
|
+
params = request._serialize()
|
|
1812
|
+
body = self.call_judge("AddQueueAccessUser", params, "application/x-www-form-urlencoded")
|
|
1813
|
+
response = json.loads(body)
|
|
1814
|
+
if "Error" not in response:
|
|
1815
|
+
return body
|
|
1816
|
+
else:
|
|
1817
|
+
code = response["Error"]["Code"]
|
|
1818
|
+
message = response["Error"]["Message"]
|
|
1819
|
+
req_id = response["RequestId"]
|
|
1820
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1821
|
+
except Exception as e:
|
|
1822
|
+
if isinstance(e, KsyunSDKException):
|
|
1823
|
+
raise
|
|
1824
|
+
else:
|
|
1825
|
+
raise KsyunSDKException(message=str(e))
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
def RemoveQueueAccessUser(self, request):
|
|
1829
|
+
"""移出队列成员
|
|
1830
|
+
:param request: Request instance for RemoveQueueAccessUser.
|
|
1831
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.RemoveQueueAccessUserRequest`
|
|
1832
|
+
"""
|
|
1833
|
+
try:
|
|
1834
|
+
params = request._serialize()
|
|
1835
|
+
body = self.call_judge("RemoveQueueAccessUser", params, "application/x-www-form-urlencoded")
|
|
1836
|
+
response = json.loads(body)
|
|
1837
|
+
if "Error" not in response:
|
|
1838
|
+
return body
|
|
1839
|
+
else:
|
|
1840
|
+
code = response["Error"]["Code"]
|
|
1841
|
+
message = response["Error"]["Message"]
|
|
1842
|
+
req_id = response["RequestId"]
|
|
1843
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1844
|
+
except Exception as e:
|
|
1845
|
+
if isinstance(e, KsyunSDKException):
|
|
1846
|
+
raise
|
|
1847
|
+
else:
|
|
1848
|
+
raise KsyunSDKException(message=str(e))
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
def DescribeModelTypes(self, request):
|
|
1852
|
+
"""查询模型类别
|
|
1853
|
+
:param request: Request instance for DescribeModelTypes.
|
|
1854
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.DescribeModelTypesRequest`
|
|
1855
|
+
"""
|
|
1856
|
+
try:
|
|
1857
|
+
params = request._serialize()
|
|
1858
|
+
body = self.call_judge("DescribeModelTypes", params, "application/x-www-form-urlencoded")
|
|
1859
|
+
response = json.loads(body)
|
|
1860
|
+
if "Error" not in response:
|
|
1861
|
+
return body
|
|
1862
|
+
else:
|
|
1863
|
+
code = response["Error"]["Code"]
|
|
1864
|
+
message = response["Error"]["Message"]
|
|
1865
|
+
req_id = response["RequestId"]
|
|
1866
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1867
|
+
except Exception as e:
|
|
1868
|
+
if isinstance(e, KsyunSDKException):
|
|
1869
|
+
raise
|
|
1870
|
+
else:
|
|
1871
|
+
raise KsyunSDKException(message=str(e))
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
def EnableEndpointQuotaLimit(self, request):
|
|
1875
|
+
"""开启配额限制
|
|
1876
|
+
:param request: Request instance for EnableEndpointQuotaLimit.
|
|
1877
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.EnableEndpointQuotaLimitRequest`
|
|
1878
|
+
"""
|
|
1879
|
+
try:
|
|
1880
|
+
params = request._serialize()
|
|
1881
|
+
body = self.call_judge("EnableEndpointQuotaLimit", params, "application/json")
|
|
1882
|
+
response = json.loads(body)
|
|
1883
|
+
if "Error" not in response:
|
|
1884
|
+
return body
|
|
1885
|
+
else:
|
|
1886
|
+
code = response["Error"]["Code"]
|
|
1887
|
+
message = response["Error"]["Message"]
|
|
1888
|
+
req_id = response["RequestId"]
|
|
1889
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1890
|
+
except Exception as e:
|
|
1891
|
+
if isinstance(e, KsyunSDKException):
|
|
1892
|
+
raise
|
|
1893
|
+
else:
|
|
1894
|
+
raise KsyunSDKException(message=str(e))
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
def DisableEndpointQuotaLimit(self, request):
|
|
1898
|
+
"""关闭配额限制
|
|
1899
|
+
:param request: Request instance for DisableEndpointQuotaLimit.
|
|
1900
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.DisableEndpointQuotaLimitRequest`
|
|
1901
|
+
"""
|
|
1902
|
+
try:
|
|
1903
|
+
params = request._serialize()
|
|
1904
|
+
body = self.call_judge("DisableEndpointQuotaLimit", params, "application/json")
|
|
1905
|
+
response = json.loads(body)
|
|
1906
|
+
if "Error" not in response:
|
|
1907
|
+
return body
|
|
1908
|
+
else:
|
|
1909
|
+
code = response["Error"]["Code"]
|
|
1910
|
+
message = response["Error"]["Message"]
|
|
1911
|
+
req_id = response["RequestId"]
|
|
1912
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1913
|
+
except Exception as e:
|
|
1914
|
+
if isinstance(e, KsyunSDKException):
|
|
1915
|
+
raise
|
|
1916
|
+
else:
|
|
1917
|
+
raise KsyunSDKException(message=str(e))
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
def GetQueueMember(self, request):
|
|
1921
|
+
"""查询队列子用户资源使用信息
|
|
1922
|
+
:param request: Request instance for GetQueueMember.
|
|
1923
|
+
:type request: :class:`ksyun.client.aicp.v20240612.models.GetQueueMemberRequest`
|
|
1924
|
+
"""
|
|
1925
|
+
try:
|
|
1926
|
+
params = request._serialize()
|
|
1927
|
+
body = self.call_judge("GetQueueMember", params, "application/x-www-form-urlencoded")
|
|
1928
|
+
response = json.loads(body)
|
|
1929
|
+
if "Error" not in response:
|
|
1930
|
+
return body
|
|
1931
|
+
else:
|
|
1932
|
+
code = response["Error"]["Code"]
|
|
1933
|
+
message = response["Error"]["Message"]
|
|
1934
|
+
req_id = response["RequestId"]
|
|
1935
|
+
raise KsyunSDKException(code, message, req_id)
|
|
1936
|
+
except Exception as e:
|
|
1937
|
+
if isinstance(e, KsyunSDKException):
|
|
1938
|
+
raise
|
|
1939
|
+
else:
|
|
1940
|
+
raise KsyunSDKException(message=str(e))
|
|
1941
|
+
|
|
1942
|
+
|
|
@@ -174,6 +174,7 @@ class SaveNotebookImageRequest(AbstractModel):
|
|
|
174
174
|
:param NamespacePermission: 命名空间权限,Public-公有 / Private-私有
|
|
175
175
|
:type PathPrefix: String
|
|
176
176
|
:param ImageRepo: 镜像仓库
|
|
177
|
+
>长度为2-30位,支持填写小写英文字母、数字、分隔符"_"和"-"(分隔符不能在首位或末位)
|
|
177
178
|
:type PathPrefix: String
|
|
178
179
|
:param ImageVersion: 版本号
|
|
179
180
|
:type PathPrefix: String
|
|
@@ -1126,7 +1127,7 @@ class EnableApikeyStatusRequest(AbstractModel):
|
|
|
1126
1127
|
"""
|
|
1127
1128
|
|
|
1128
1129
|
def __init__(self):
|
|
1129
|
-
r"""启用
|
|
1130
|
+
r"""启用 API Key
|
|
1130
1131
|
:param KeyId: API Key的ID
|
|
1131
1132
|
:type PathPrefix: String
|
|
1132
1133
|
:param Status: 启禁用状态:1启用,2禁用
|
|
@@ -1220,9 +1221,9 @@ class DescribeModelsRequest(AbstractModel):
|
|
|
1220
1221
|
:type PathPrefix: Int
|
|
1221
1222
|
:param MaxResults: 分页页长,最大100
|
|
1222
1223
|
:type PathPrefix: Int
|
|
1223
|
-
:param ModelCategory:
|
|
1224
|
+
:param ModelCategory: 模型类别筛选项,如"文本模型"。
|
|
1224
1225
|
:type PathPrefix: Filter
|
|
1225
|
-
:param Provider:
|
|
1226
|
+
:param Provider: 模型供应商,如"Qwen"。
|
|
1226
1227
|
:type PathPrefix: Filter
|
|
1227
1228
|
:param ContextLength: 模型上下文长度
|
|
1228
1229
|
1 - 128k及以下
|
|
@@ -1331,6 +1332,8 @@ class DescribeApikeysRequest(AbstractModel):
|
|
|
1331
1332
|
:type PathPrefix: Boolean
|
|
1332
1333
|
:param KeyId: 按apiKeyId 查询
|
|
1333
1334
|
:type PathPrefix: Filter
|
|
1335
|
+
:param ExcludeTypes: 需要排除的key 类型:1- kscc key。
|
|
1336
|
+
:type PathPrefix: Filter
|
|
1334
1337
|
"""
|
|
1335
1338
|
self.Marker = None
|
|
1336
1339
|
self.MaxResults = None
|
|
@@ -1339,6 +1342,7 @@ class DescribeApikeysRequest(AbstractModel):
|
|
|
1339
1342
|
self.Namekeyword = None
|
|
1340
1343
|
self.DefaultKey = None
|
|
1341
1344
|
self.KeyId = None
|
|
1345
|
+
self.ExcludeTypes = None
|
|
1342
1346
|
|
|
1343
1347
|
def _deserialize(self, params):
|
|
1344
1348
|
if params.get("Marker"):
|
|
@@ -1355,6 +1359,8 @@ class DescribeApikeysRequest(AbstractModel):
|
|
|
1355
1359
|
self.DefaultKey = params.get("DefaultKey")
|
|
1356
1360
|
if params.get("KeyId"):
|
|
1357
1361
|
self.KeyId = params.get("KeyId")
|
|
1362
|
+
if params.get("ExcludeTypes"):
|
|
1363
|
+
self.ExcludeTypes = params.get("ExcludeTypes")
|
|
1358
1364
|
|
|
1359
1365
|
|
|
1360
1366
|
class QueryTokenDataRequest(AbstractModel):
|
|
@@ -2220,6 +2226,27 @@ class DescribeResourcePoolInstancesRequest(AbstractModel):
|
|
|
2220
2226
|
self.Filter = params.get("Filter")
|
|
2221
2227
|
|
|
2222
2228
|
|
|
2229
|
+
class EnableKpfsComponentRequest(AbstractModel):
|
|
2230
|
+
"""EnableKpfsComponent请求参数结构体
|
|
2231
|
+
"""
|
|
2232
|
+
|
|
2233
|
+
def __init__(self):
|
|
2234
|
+
r"""开启安装kpfs组件
|
|
2235
|
+
:param ResourcePoolId: 资源组id
|
|
2236
|
+
:type PathPrefix: String
|
|
2237
|
+
:param FileSystemId: 文件系统id
|
|
2238
|
+
:type PathPrefix: String
|
|
2239
|
+
"""
|
|
2240
|
+
self.ResourcePoolId = None
|
|
2241
|
+
self.FileSystemId = None
|
|
2242
|
+
|
|
2243
|
+
def _deserialize(self, params):
|
|
2244
|
+
if params.get("ResourcePoolId"):
|
|
2245
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
2246
|
+
if params.get("FileSystemId"):
|
|
2247
|
+
self.FileSystemId = params.get("FileSystemId")
|
|
2248
|
+
|
|
2249
|
+
|
|
2223
2250
|
class CreateInferenceEndpointRequest(AbstractModel):
|
|
2224
2251
|
"""CreateInferenceEndpoint请求参数结构体
|
|
2225
2252
|
"""
|
|
@@ -2510,3 +2537,270 @@ class DescribeQueuesRequest(AbstractModel):
|
|
|
2510
2537
|
self.Filter = params.get("Filter")
|
|
2511
2538
|
|
|
2512
2539
|
|
|
2540
|
+
class CreateQueueRequest(AbstractModel):
|
|
2541
|
+
"""CreateQueue请求参数结构体
|
|
2542
|
+
"""
|
|
2543
|
+
|
|
2544
|
+
def __init__(self):
|
|
2545
|
+
r"""创建资源组队列
|
|
2546
|
+
:param ResourcePoolId: 资源池ID
|
|
2547
|
+
:type PathPrefix: String
|
|
2548
|
+
:param QueueName: 允许小写字母、数字、"."、"-",以字母、数字开头和结尾 且"-"和"."不可相邻, 长度 1-64
|
|
2549
|
+
:type PathPrefix: String
|
|
2550
|
+
:param Capability: 资源配额,GPU、CPU、内存等
|
|
2551
|
+
:type PathPrefix: Object
|
|
2552
|
+
:param AllowBorrowing: 是否允许向其他队列借资源
|
|
2553
|
+
:type PathPrefix: Boolean
|
|
2554
|
+
:param Description: 队列描述, 长度最大200
|
|
2555
|
+
:type PathPrefix: String
|
|
2556
|
+
:param AccessList: 访问控制列表(子账号权限信息)
|
|
2557
|
+
:type PathPrefix: Array
|
|
2558
|
+
:param WorkloadType: 支持负载类型,默认不传表示不限制使用类型
|
|
2559
|
+
- Notebook(开发任务)
|
|
2560
|
+
- TrainJob(训练任务)
|
|
2561
|
+
- Inference(推理任务)
|
|
2562
|
+
- DataJob(数据处理任务)
|
|
2563
|
+
:type PathPrefix: Array
|
|
2564
|
+
"""
|
|
2565
|
+
self.ResourcePoolId = None
|
|
2566
|
+
self.QueueName = None
|
|
2567
|
+
self.Capability = None
|
|
2568
|
+
self.AllowBorrowing = None
|
|
2569
|
+
self.Description = None
|
|
2570
|
+
self.AccessList = None
|
|
2571
|
+
self.WorkloadType = None
|
|
2572
|
+
|
|
2573
|
+
def _deserialize(self, params):
|
|
2574
|
+
if params.get("ResourcePoolId"):
|
|
2575
|
+
self.ResourcePoolId = params.get("ResourcePoolId")
|
|
2576
|
+
if params.get("QueueName"):
|
|
2577
|
+
self.QueueName = params.get("QueueName")
|
|
2578
|
+
if params.get("Capability"):
|
|
2579
|
+
self.Capability = params.get("Capability")
|
|
2580
|
+
if params.get("AllowBorrowing"):
|
|
2581
|
+
self.AllowBorrowing = params.get("AllowBorrowing")
|
|
2582
|
+
if params.get("Description"):
|
|
2583
|
+
self.Description = params.get("Description")
|
|
2584
|
+
if params.get("AccessList"):
|
|
2585
|
+
self.AccessList = params.get("AccessList")
|
|
2586
|
+
if params.get("WorkloadType"):
|
|
2587
|
+
self.WorkloadType = params.get("WorkloadType")
|
|
2588
|
+
|
|
2589
|
+
|
|
2590
|
+
class ModifyQueueRequest(AbstractModel):
|
|
2591
|
+
"""ModifyQueue请求参数结构体
|
|
2592
|
+
"""
|
|
2593
|
+
|
|
2594
|
+
def __init__(self):
|
|
2595
|
+
r"""修改资源组队列
|
|
2596
|
+
:param QueueId: 队列ID
|
|
2597
|
+
:type PathPrefix: String
|
|
2598
|
+
:param Capability: 资源配额,不传该字段表示不修改,若传入,则CPU、Memory、GPUInfos会全量覆盖
|
|
2599
|
+
:type PathPrefix: Object
|
|
2600
|
+
:param AllowBorrowing: 是否允许向其他队列借资源,不传该字段表示不修改
|
|
2601
|
+
:type PathPrefix: Boolean
|
|
2602
|
+
:param Description: 队列描述,不传该字段表示不修改
|
|
2603
|
+
:type PathPrefix: String
|
|
2604
|
+
:param AccessList: 访问控制列表,若传入会进行全量覆盖式修改。传入空数组代表清理全部已授权子用户
|
|
2605
|
+
:type PathPrefix: Array
|
|
2606
|
+
:param WorkloadType: 支持负载类型,不传该字段表示不修改,传空数组表示修改为不限制
|
|
2607
|
+
- Notebook(开发任务)
|
|
2608
|
+
- TrainJob(训练任务)
|
|
2609
|
+
- Inference(推理任务)
|
|
2610
|
+
- DataJob(数据处理任务)
|
|
2611
|
+
:type PathPrefix: Array
|
|
2612
|
+
"""
|
|
2613
|
+
self.QueueId = None
|
|
2614
|
+
self.Capability = None
|
|
2615
|
+
self.AllowBorrowing = None
|
|
2616
|
+
self.Description = None
|
|
2617
|
+
self.AccessList = None
|
|
2618
|
+
self.WorkloadType = None
|
|
2619
|
+
|
|
2620
|
+
def _deserialize(self, params):
|
|
2621
|
+
if params.get("QueueId"):
|
|
2622
|
+
self.QueueId = params.get("QueueId")
|
|
2623
|
+
if params.get("Capability"):
|
|
2624
|
+
self.Capability = params.get("Capability")
|
|
2625
|
+
if params.get("AllowBorrowing"):
|
|
2626
|
+
self.AllowBorrowing = params.get("AllowBorrowing")
|
|
2627
|
+
if params.get("Description"):
|
|
2628
|
+
self.Description = params.get("Description")
|
|
2629
|
+
if params.get("AccessList"):
|
|
2630
|
+
self.AccessList = params.get("AccessList")
|
|
2631
|
+
if params.get("WorkloadType"):
|
|
2632
|
+
self.WorkloadType = params.get("WorkloadType")
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
class DeleteQueueRequest(AbstractModel):
|
|
2636
|
+
"""DeleteQueue请求参数结构体
|
|
2637
|
+
"""
|
|
2638
|
+
|
|
2639
|
+
def __init__(self):
|
|
2640
|
+
r"""删除队列接口
|
|
2641
|
+
:param QueueId: 队列ID
|
|
2642
|
+
:type PathPrefix: String
|
|
2643
|
+
"""
|
|
2644
|
+
self.QueueId = None
|
|
2645
|
+
|
|
2646
|
+
def _deserialize(self, params):
|
|
2647
|
+
if params.get("QueueId"):
|
|
2648
|
+
self.QueueId = params.get("QueueId")
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
class AddQueueAccessUserRequest(AbstractModel):
|
|
2652
|
+
"""AddQueueAccessUser请求参数结构体
|
|
2653
|
+
"""
|
|
2654
|
+
|
|
2655
|
+
def __init__(self):
|
|
2656
|
+
r"""添加队列成员
|
|
2657
|
+
:param QueueId: 队列ID
|
|
2658
|
+
:type PathPrefix: String
|
|
2659
|
+
:param SubAccountId: 子账号ID
|
|
2660
|
+
:type PathPrefix: String
|
|
2661
|
+
:param Permission: 权限类型,有效值:
|
|
2662
|
+
- writer,管理员
|
|
2663
|
+
- reader,队列成员
|
|
2664
|
+
:type PathPrefix: String
|
|
2665
|
+
"""
|
|
2666
|
+
self.QueueId = None
|
|
2667
|
+
self.SubAccountId = None
|
|
2668
|
+
self.Permission = None
|
|
2669
|
+
|
|
2670
|
+
def _deserialize(self, params):
|
|
2671
|
+
if params.get("QueueId"):
|
|
2672
|
+
self.QueueId = params.get("QueueId")
|
|
2673
|
+
if params.get("SubAccountId"):
|
|
2674
|
+
self.SubAccountId = params.get("SubAccountId")
|
|
2675
|
+
if params.get("Permission"):
|
|
2676
|
+
self.Permission = params.get("Permission")
|
|
2677
|
+
|
|
2678
|
+
|
|
2679
|
+
class RemoveQueueAccessUserRequest(AbstractModel):
|
|
2680
|
+
"""RemoveQueueAccessUser请求参数结构体
|
|
2681
|
+
"""
|
|
2682
|
+
|
|
2683
|
+
def __init__(self):
|
|
2684
|
+
r"""移出队列成员
|
|
2685
|
+
:param QueueId: 队列ID
|
|
2686
|
+
:type PathPrefix: String
|
|
2687
|
+
:param SubAccountId: 子账号ID
|
|
2688
|
+
:type PathPrefix: String
|
|
2689
|
+
"""
|
|
2690
|
+
self.QueueId = None
|
|
2691
|
+
self.SubAccountId = None
|
|
2692
|
+
|
|
2693
|
+
def _deserialize(self, params):
|
|
2694
|
+
if params.get("QueueId"):
|
|
2695
|
+
self.QueueId = params.get("QueueId")
|
|
2696
|
+
if params.get("SubAccountId"):
|
|
2697
|
+
self.SubAccountId = params.get("SubAccountId")
|
|
2698
|
+
|
|
2699
|
+
|
|
2700
|
+
class DescribeModelTypesRequest(AbstractModel):
|
|
2701
|
+
"""DescribeModelTypes请求参数结构体
|
|
2702
|
+
"""
|
|
2703
|
+
|
|
2704
|
+
def __init__(self):
|
|
2705
|
+
r"""查询模型类别
|
|
2706
|
+
"""
|
|
2707
|
+
|
|
2708
|
+
def _deserialize(self, params):
|
|
2709
|
+
return
|
|
2710
|
+
|
|
2711
|
+
|
|
2712
|
+
class EnableEndpointQuotaLimitRequest(AbstractModel):
|
|
2713
|
+
"""EnableEndpointQuotaLimit请求参数结构体
|
|
2714
|
+
"""
|
|
2715
|
+
|
|
2716
|
+
def __init__(self):
|
|
2717
|
+
r"""开启配额限制
|
|
2718
|
+
:param EndpointId: 接入点ID
|
|
2719
|
+
:type PathPrefix: String
|
|
2720
|
+
:param QuotaLimitCycle: 限额周期:
|
|
2721
|
+
daily, weekly, monthly, custom
|
|
2722
|
+
:type PathPrefix: String
|
|
2723
|
+
:param CustomCycle: 自定义周期,当QuotaLimitCycle为custom时必传
|
|
2724
|
+
:type PathPrefix: Int
|
|
2725
|
+
:param QuotaLimitAmount: 限额数量
|
|
2726
|
+
:type PathPrefix: Long
|
|
2727
|
+
"""
|
|
2728
|
+
self.EndpointId = None
|
|
2729
|
+
self.QuotaLimitCycle = None
|
|
2730
|
+
self.CustomCycle = None
|
|
2731
|
+
self.QuotaLimitAmount = None
|
|
2732
|
+
|
|
2733
|
+
def _deserialize(self, params):
|
|
2734
|
+
if params.get("EndpointId"):
|
|
2735
|
+
self.EndpointId = params.get("EndpointId")
|
|
2736
|
+
if params.get("QuotaLimitCycle"):
|
|
2737
|
+
self.QuotaLimitCycle = params.get("QuotaLimitCycle")
|
|
2738
|
+
if params.get("CustomCycle"):
|
|
2739
|
+
self.CustomCycle = params.get("CustomCycle")
|
|
2740
|
+
if params.get("QuotaLimitAmount"):
|
|
2741
|
+
self.QuotaLimitAmount = params.get("QuotaLimitAmount")
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
class DisableEndpointQuotaLimitRequest(AbstractModel):
|
|
2745
|
+
"""DisableEndpointQuotaLimit请求参数结构体
|
|
2746
|
+
"""
|
|
2747
|
+
|
|
2748
|
+
def __init__(self):
|
|
2749
|
+
r"""关闭配额限制
|
|
2750
|
+
:param EndpointId: 接入点ID
|
|
2751
|
+
:type PathPrefix: String
|
|
2752
|
+
:param QuotaLimitCycle: 限额周期:
|
|
2753
|
+
daily, weekly, monthly, custom
|
|
2754
|
+
:type PathPrefix: String
|
|
2755
|
+
:param CustomCycle: 自定义周期,QuotaLimitCycle为custom时必填
|
|
2756
|
+
:type PathPrefix: String
|
|
2757
|
+
:param QuotaLimitAmount: 限额数量
|
|
2758
|
+
:type PathPrefix: String
|
|
2759
|
+
"""
|
|
2760
|
+
self.EndpointId = None
|
|
2761
|
+
self.QuotaLimitCycle = None
|
|
2762
|
+
self.CustomCycle = None
|
|
2763
|
+
self.QuotaLimitAmount = None
|
|
2764
|
+
|
|
2765
|
+
def _deserialize(self, params):
|
|
2766
|
+
if params.get("EndpointId"):
|
|
2767
|
+
self.EndpointId = params.get("EndpointId")
|
|
2768
|
+
if params.get("QuotaLimitCycle"):
|
|
2769
|
+
self.QuotaLimitCycle = params.get("QuotaLimitCycle")
|
|
2770
|
+
if params.get("CustomCycle"):
|
|
2771
|
+
self.CustomCycle = params.get("CustomCycle")
|
|
2772
|
+
if params.get("QuotaLimitAmount"):
|
|
2773
|
+
self.QuotaLimitAmount = params.get("QuotaLimitAmount")
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
class GetQueueMemberRequest(AbstractModel):
|
|
2777
|
+
"""GetQueueMember请求参数结构体
|
|
2778
|
+
"""
|
|
2779
|
+
|
|
2780
|
+
def __init__(self):
|
|
2781
|
+
r"""查询队列子用户资源使用信息
|
|
2782
|
+
:param QueueId: 队列ID
|
|
2783
|
+
:type PathPrefix: String
|
|
2784
|
+
:param SubAccountId: 子账号ID
|
|
2785
|
+
:type PathPrefix: String
|
|
2786
|
+
:param Page: 页码
|
|
2787
|
+
:type PathPrefix: Int
|
|
2788
|
+
:param PageSize: 单次调用可返回的最大条目数量。可选范围5-1000
|
|
2789
|
+
:type PathPrefix: Int
|
|
2790
|
+
"""
|
|
2791
|
+
self.QueueId = None
|
|
2792
|
+
self.SubAccountId = None
|
|
2793
|
+
self.Page = None
|
|
2794
|
+
self.PageSize = None
|
|
2795
|
+
|
|
2796
|
+
def _deserialize(self, params):
|
|
2797
|
+
if params.get("QueueId"):
|
|
2798
|
+
self.QueueId = params.get("QueueId")
|
|
2799
|
+
if params.get("SubAccountId"):
|
|
2800
|
+
self.SubAccountId = params.get("SubAccountId")
|
|
2801
|
+
if params.get("Page"):
|
|
2802
|
+
self.Page = params.get("Page")
|
|
2803
|
+
if params.get("PageSize"):
|
|
2804
|
+
self.PageSize = params.get("PageSize")
|
|
2805
|
+
|
|
2806
|
+
|