kingsoftcloud-sdk-python 1.1.1__py2.py3-none-any.whl → 1.5.8.44__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.
Files changed (288) hide show
  1. {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info}/METADATA +17 -4
  2. kingsoftcloud_sdk_python-1.5.8.44.dist-info/RECORD +337 -0
  3. {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info}/WHEEL +1 -1
  4. ksyun/__init__.py +1 -1
  5. ksyun/client/actiontrail/v20190401/client.py +1 -1
  6. ksyun/client/aicp/v20240612/client.py +1229 -0
  7. ksyun/client/aicp/v20240612/models.py +1778 -0
  8. ksyun/client/aicp/v20251212/__init__.py +0 -0
  9. ksyun/client/aicp/v20251212/client.py +56 -0
  10. ksyun/client/aicp/v20251212/models.py +114 -0
  11. ksyun/client/bill/v20180601/client.py +3 -72
  12. ksyun/client/bill/v20180601/models.py +29 -41
  13. ksyun/client/bill/v20220601/__init__.py +0 -0
  14. ksyun/client/bill/v20220601/client.py +56 -0
  15. ksyun/client/bill/v20220601/models.py +54 -0
  16. ksyun/client/bill_union/v20200101/client.py +77 -8
  17. ksyun/client/bill_union/v20200101/models.py +118 -2
  18. ksyun/client/bill_union/v20221222/__init__.py +0 -0
  19. ksyun/client/bill_union/v20221222/client.py +148 -0
  20. ksyun/client/bill_union/v20221222/models.py +193 -0
  21. ksyun/client/bill_union/v20250801/__init__.py +0 -0
  22. ksyun/client/bill_union/v20250801/client.py +56 -0
  23. ksyun/client/bill_union/v20250801/models.py +64 -0
  24. ksyun/client/bws/v20160304/client.py +29 -6
  25. ksyun/client/bws/v20160304/models.py +51 -0
  26. ksyun/client/cdn/__init__.py +0 -0
  27. ksyun/client/cdn/v20160901/__init__.py +0 -0
  28. ksyun/client/cdn/v20160901/client.py +79 -0
  29. ksyun/client/cdn/v20160901/models.py +51 -0
  30. ksyun/client/cdn/v20200630/__init__.py +0 -0
  31. ksyun/client/cdn/v20200630/client.py +401 -0
  32. ksyun/client/cdn/v20200630/models.py +826 -0
  33. ksyun/client/cdn/v20200901/__init__.py +0 -0
  34. ksyun/client/cdn/v20200901/client.py +171 -0
  35. ksyun/client/cdn/v20200901/models.py +224 -0
  36. ksyun/client/cdn/v20211201/__init__.py +0 -0
  37. ksyun/client/cdn/v20211201/client.py +33 -0
  38. ksyun/client/cdn/v20211201/models.py +23 -0
  39. ksyun/client/cdn/v3/__init__.py +0 -0
  40. ksyun/client/cdn/v3/client.py +999 -0
  41. ksyun/client/cdn/v3/models.py +1323 -0
  42. ksyun/client/cen/__init__.py +0 -0
  43. ksyun/client/cen/v20160304/__init__.py +0 -0
  44. ksyun/client/cen/v20160304/client.py +608 -0
  45. ksyun/client/cen/v20160304/models.py +718 -0
  46. ksyun/client/clickhouse/__init__.py +0 -0
  47. ksyun/client/clickhouse/v20210101/__init__.py +0 -0
  48. ksyun/client/clickhouse/v20210101/client.py +907 -0
  49. ksyun/client/clickhouse/v20210101/models.py +1127 -0
  50. ksyun/client/cloud_advisor/__init__.py +0 -0
  51. ksyun/client/cloud_advisor/v20250610/__init__.py +0 -0
  52. ksyun/client/cloud_advisor/v20250610/client.py +79 -0
  53. ksyun/client/cloud_advisor/v20250610/models.py +80 -0
  54. ksyun/client/dmp/__init__.py +0 -0
  55. ksyun/client/dmp/v20240101/__init__.py +0 -0
  56. ksyun/client/dmp/v20240101/client.py +470 -0
  57. ksyun/client/dmp/v20240101/models.py +423 -0
  58. ksyun/client/dts/__init__.py +0 -0
  59. ksyun/client/dts/v20180108/__init__.py +0 -0
  60. ksyun/client/dts/v20180108/client.py +447 -0
  61. ksyun/client/dts/v20180108/models.py +734 -0
  62. ksyun/client/ebs/v20160304/client.py +243 -36
  63. ksyun/client/ebs/v20160304/models.py +320 -66
  64. ksyun/client/eip/v20160304/client.py +122 -7
  65. ksyun/client/eip/v20160304/models.py +95 -1
  66. ksyun/client/epc/v20151101/client.py +1258 -131
  67. ksyun/client/epc/v20151101/models.py +2605 -134
  68. ksyun/client/iam/v20151101/client.py +271 -64
  69. ksyun/client/iam/v20151101/models.py +284 -28
  70. ksyun/client/iam/v20240513/__init__.py +0 -0
  71. ksyun/client/iam/v20240513/client.py +33 -0
  72. ksyun/client/iam/v20240513/models.py +33 -0
  73. ksyun/client/iam/v20240703/__init__.py +0 -0
  74. ksyun/client/iam/v20240703/client.py +33 -0
  75. ksyun/client/iam/v20240703/models.py +18 -0
  76. ksyun/client/influxdb/__init__.py +0 -0
  77. ksyun/client/influxdb/v20191010/__init__.py +0 -0
  78. ksyun/client/influxdb/v20191010/client.py +631 -0
  79. ksyun/client/influxdb/v20191010/models.py +655 -0
  80. ksyun/client/kad/v20161122/client.py +52 -6
  81. ksyun/client/kad/v20161122/models.py +38 -0
  82. ksyun/client/kce/__init__.py +0 -0
  83. ksyun/client/kce/v20180314/__init__.py +0 -0
  84. ksyun/client/kce/v20180314/client.py +401 -0
  85. ksyun/client/kce/v20180314/models.py +374 -0
  86. ksyun/client/kce/v20190806/__init__.py +0 -0
  87. ksyun/client/kce/v20190806/client.py +792 -0
  88. ksyun/client/kce/v20190806/models.py +1099 -0
  89. ksyun/client/kce/v20201231/__init__.py +0 -0
  90. ksyun/client/{bill_union/v20211209 → kce/v20201231}/client.py +9 -9
  91. ksyun/client/kce/v20201231/models.py +137 -0
  92. ksyun/client/kce/v20230101/__init__.py +0 -0
  93. ksyun/client/kce/v20230101/client.py +217 -0
  94. ksyun/client/kce/v20230101/models.py +259 -0
  95. ksyun/client/kce/v20230306/__init__.py +0 -0
  96. ksyun/client/kce/v20230306/client.py +516 -0
  97. ksyun/client/kce/v20230306/models.py +655 -0
  98. ksyun/client/kce/v20231115/__init__.py +0 -0
  99. ksyun/client/kce/v20231115/client.py +56 -0
  100. ksyun/client/kce/v20231115/models.py +59 -0
  101. ksyun/client/kce2/__init__.py +0 -0
  102. ksyun/client/kce2/v20230101/__init__.py +0 -0
  103. ksyun/client/kce2/v20230101/client.py +355 -0
  104. ksyun/client/kce2/v20230101/models.py +483 -0
  105. ksyun/client/kcf/__init__.py +0 -0
  106. ksyun/client/kcf/v20211215/__init__.py +0 -0
  107. ksyun/client/kcf/v20211215/client.py +217 -0
  108. ksyun/client/kcf/v20211215/models.py +313 -0
  109. ksyun/client/kci/__init__.py +0 -0
  110. ksyun/client/kci/v20200702/__init__.py +0 -0
  111. ksyun/client/kci/v20200702/client.py +355 -0
  112. ksyun/client/kci/v20200702/models.py +614 -0
  113. ksyun/client/kcm/__init__.py +0 -0
  114. ksyun/client/kcm/v20160304/__init__.py +0 -0
  115. ksyun/client/kcm/v20160304/client.py +240 -0
  116. ksyun/client/kcm/v20160304/models.py +394 -0
  117. ksyun/client/kcrs/__init__.py +0 -0
  118. ksyun/client/kcrs/v20211109/__init__.py +0 -0
  119. ksyun/client/kcrs/v20211109/client.py +1022 -0
  120. ksyun/client/kcrs/v20211109/models.py +1282 -0
  121. ksyun/client/kcs/__init__.py +0 -0
  122. ksyun/client/kcs/v20160701/__init__.py +0 -0
  123. ksyun/client/kcs/v20160701/client.py +1528 -0
  124. ksyun/client/kcs/v20160701/models.py +1917 -0
  125. ksyun/client/kcs/v20170401/__init__.py +0 -0
  126. ksyun/client/kcs/v20170401/client.py +33 -0
  127. ksyun/client/kcs/v20170401/models.py +28 -0
  128. ksyun/client/kcs/v20240701/__init__.py +0 -0
  129. ksyun/client/kcs/v20240701/client.py +33 -0
  130. ksyun/client/kcs/v20240701/models.py +23 -0
  131. ksyun/client/kead/v20200101/client.py +47 -1
  132. ksyun/client/kead/v20200101/models.py +52 -42
  133. ksyun/client/kec/v20160304/client.py +334 -127
  134. ksyun/client/kec/v20160304/models.py +701 -131
  135. ksyun/client/ked/__init__.py +0 -0
  136. ksyun/client/ked/v1/__init__.py +0 -0
  137. ksyun/client/ked/v1/client.py +1022 -0
  138. ksyun/client/ked/v1/models.py +1132 -0
  139. ksyun/client/kes/__init__.py +0 -0
  140. ksyun/client/kes/v20201215/__init__.py +0 -0
  141. ksyun/client/kes/v20201215/client.py +194 -0
  142. ksyun/client/kes/v20201215/models.py +252 -0
  143. ksyun/client/ket/__init__.py +0 -0
  144. ksyun/client/ket/v20170101/__init__.py +0 -0
  145. ksyun/client/ket/v20170101/client.py +194 -0
  146. ksyun/client/ket/v20170101/models.py +265 -0
  147. ksyun/client/kfw/__init__.py +0 -0
  148. ksyun/client/kfw/v20160304/__init__.py +0 -0
  149. ksyun/client/kfw/v20160304/client.py +56 -0
  150. ksyun/client/kfw/v20160304/models.py +35 -0
  151. ksyun/client/kingpay/__init__.py +0 -0
  152. ksyun/client/kingpay/v1/__init__.py +0 -0
  153. ksyun/client/kingpay/v1/client.py +33 -0
  154. ksyun/client/kingpay/v1/models.py +18 -0
  155. ksyun/client/kkms/__init__.py +0 -0
  156. ksyun/client/kkms/v20160304/__init__.py +0 -0
  157. ksyun/client/kkms/v20160304/client.py +194 -0
  158. ksyun/client/kkms/v20160304/models.py +185 -0
  159. ksyun/client/klog/__init__.py +0 -0
  160. ksyun/client/klog/v20200731/__init__.py +0 -0
  161. ksyun/client/klog/v20200731/client.py +378 -0
  162. ksyun/client/klog/v20200731/models.py +508 -0
  163. ksyun/client/kls/__init__.py +0 -0
  164. ksyun/client/kls/v20170101/__init__.py +0 -0
  165. ksyun/client/kls/v20170101/client.py +194 -0
  166. ksyun/client/kls/v20170101/models.py +320 -0
  167. ksyun/client/kmr/__init__.py +0 -0
  168. ksyun/client/kmr/v20210902/__init__.py +0 -0
  169. ksyun/client/kmr/v20210902/client.py +539 -0
  170. ksyun/client/kmr/v20210902/models.py +536 -0
  171. ksyun/client/kmr/v20231231/__init__.py +0 -0
  172. ksyun/client/kmr/v20231231/client.py +171 -0
  173. ksyun/client/kmr/v20231231/models.py +201 -0
  174. ksyun/client/kmr/v20240814/__init__.py +0 -0
  175. ksyun/client/kmr/v20240814/client.py +447 -0
  176. ksyun/client/kmr/v20240814/models.py +523 -0
  177. ksyun/client/knad/__init__.py +0 -0
  178. ksyun/client/knad/v20230323/__init__.py +0 -0
  179. ksyun/client/knad/v20230323/client.py +401 -0
  180. ksyun/client/knad/v20230323/models.py +470 -0
  181. ksyun/client/kpfs/__init__.py +0 -0
  182. ksyun/client/kpfs/v20240930/__init__.py +0 -0
  183. ksyun/client/kpfs/v20240930/client.py +217 -0
  184. ksyun/client/kpfs/v20240930/models.py +191 -0
  185. ksyun/client/krds/__init__.py +0 -0
  186. ksyun/client/krds/v20160701/__init__.py +0 -0
  187. ksyun/client/krds/v20160701/client.py +2103 -0
  188. ksyun/client/krds/v20160701/models.py +2722 -0
  189. ksyun/client/krds/v20200825/__init__.py +0 -0
  190. ksyun/client/krds/v20200825/client.py +240 -0
  191. ksyun/client/krds/v20200825/models.py +336 -0
  192. ksyun/client/memcached/__init__.py +0 -0
  193. ksyun/client/memcached/v20180627/__init__.py +0 -0
  194. ksyun/client/memcached/v20180627/client.py +309 -0
  195. ksyun/client/memcached/v20180627/models.py +317 -0
  196. ksyun/client/milvus/__init__.py +0 -0
  197. ksyun/client/milvus/v20231010/__init__.py +0 -0
  198. ksyun/client/milvus/v20231010/client.py +447 -0
  199. ksyun/client/milvus/v20231010/models.py +520 -0
  200. ksyun/client/mongodb/v20170101/client.py +280 -50
  201. ksyun/client/mongodb/v20170101/models.py +251 -34
  202. ksyun/client/mongodb/v20250101/__init__.py +0 -0
  203. ksyun/client/mongodb/v20250101/client.py +33 -0
  204. ksyun/client/mongodb/v20250101/models.py +18 -0
  205. ksyun/client/monitor/__init__.py +0 -0
  206. ksyun/client/monitor/v20100525/__init__.py +0 -0
  207. ksyun/client/monitor/v20100525/client.py +56 -0
  208. ksyun/client/monitor/v20100525/models.py +108 -0
  209. ksyun/client/monitor/v20181114/__init__.py +0 -0
  210. ksyun/client/monitor/v20181114/client.py +33 -0
  211. ksyun/client/monitor/v20181114/models.py +59 -0
  212. ksyun/client/monitor/v20210101/__init__.py +0 -0
  213. ksyun/client/monitor/v20210101/client.py +286 -0
  214. ksyun/client/monitor/v20210101/models.py +330 -0
  215. ksyun/client/monitor/v20220101/__init__.py +0 -0
  216. ksyun/client/monitor/v20220101/client.py +56 -0
  217. ksyun/client/monitor/v20220101/models.py +32 -0
  218. ksyun/client/monitor/v20250101/__init__.py +0 -0
  219. ksyun/client/monitor/v20250101/client.py +79 -0
  220. ksyun/client/monitor/v20250101/models.py +156 -0
  221. ksyun/client/pdns/__init__.py +0 -0
  222. ksyun/client/pdns/v20160304/__init__.py +0 -0
  223. ksyun/client/pdns/v20160304/client.py +815 -0
  224. ksyun/client/pdns/v20160304/models.py +805 -0
  225. ksyun/client/postgresql/__init__.py +0 -0
  226. ksyun/client/postgresql/v20181225/__init__.py +0 -0
  227. ksyun/client/postgresql/v20181225/client.py +1160 -0
  228. ksyun/client/postgresql/v20181225/models.py +1629 -0
  229. ksyun/client/rabbitmq/__init__.py +0 -0
  230. ksyun/client/rabbitmq/v20191017/__init__.py +0 -0
  231. ksyun/client/rabbitmq/v20191017/client.py +447 -0
  232. ksyun/client/rabbitmq/v20191017/models.py +413 -0
  233. ksyun/client/relyt/__init__.py +0 -0
  234. ksyun/client/relyt/v20240117/__init__.py +0 -0
  235. ksyun/client/{slb/v20171210 → relyt/v20240117}/client.py +9 -9
  236. ksyun/client/relyt/v20240117/models.py +23 -0
  237. ksyun/client/resourcemanager/v20210320/client.py +8 -8
  238. ksyun/client/sks/v20151101/client.py +5 -5
  239. ksyun/client/sks/v20151101/models.py +7 -0
  240. ksyun/client/slb/v20160304/client.py +1051 -62
  241. ksyun/client/slb/v20160304/models.py +1692 -19
  242. ksyun/client/slb/v20250430/__init__.py +0 -0
  243. ksyun/client/slb/v20250430/client.py +815 -0
  244. ksyun/client/slb/v20250430/models.py +1372 -0
  245. ksyun/client/sqlserver/__init__.py +0 -0
  246. ksyun/client/sqlserver/v20190425/__init__.py +0 -0
  247. ksyun/client/sqlserver/v20190425/client.py +1068 -0
  248. ksyun/client/sqlserver/v20190425/models.py +1528 -0
  249. ksyun/client/sts/v20151101/client.py +24 -1
  250. ksyun/client/sts/v20151101/models.py +54 -1
  251. ksyun/client/tagv2/v20200901/client.py +54 -8
  252. ksyun/client/tagv2/v20200901/models.py +56 -4
  253. ksyun/client/ter/__init__.py +0 -0
  254. ksyun/client/ter/v20240415/__init__.py +0 -0
  255. ksyun/client/ter/v20240415/client.py +125 -0
  256. ksyun/client/ter/v20240415/models.py +115 -0
  257. ksyun/client/tidb/__init__.py +0 -0
  258. ksyun/client/tidb/v20210520/__init__.py +0 -0
  259. ksyun/client/tidb/v20210520/client.py +930 -0
  260. ksyun/client/tidb/v20210520/models.py +1162 -0
  261. ksyun/client/trade/v20200114/client.py +1 -1
  262. ksyun/client/trade/v20200831/client.py +1 -1
  263. ksyun/client/trade/v20250220/__init__.py +0 -0
  264. ksyun/client/trade/v20250220/client.py +102 -0
  265. ksyun/client/trade/v20250220/models.py +91 -0
  266. ksyun/client/trade/v20250321/__init__.py +0 -0
  267. ksyun/client/trade/v20250321/client.py +102 -0
  268. ksyun/client/trade/v20250321/models.py +71 -0
  269. ksyun/client/trade/v20250828/__init__.py +0 -0
  270. ksyun/client/trade/v20250828/client.py +33 -0
  271. ksyun/client/trade/v20250828/models.py +81 -0
  272. ksyun/client/vpc/v20160304/client.py +1297 -147
  273. ksyun/client/vpc/v20160304/models.py +1536 -139
  274. ksyun/client/waf/__init__.py +0 -0
  275. ksyun/client/waf/v20200707/__init__.py +0 -0
  276. ksyun/client/waf/v20200707/client.py +470 -0
  277. ksyun/client/waf/v20200707/models.py +738 -0
  278. ksyun/common/abstract_client.py +42 -18
  279. ksyun/common/http/request.py +43 -6
  280. ksyun/common/profile/http_profile.py +26 -1
  281. kingsoftcloud_sdk_python-1.1.1.dist-info/RECORD +0 -105
  282. ksyun/client/bill_union/v20211209/models.py +0 -38
  283. ksyun/client/slb/v20171210/models.py +0 -33
  284. ksyun/common/sign.py +0 -33
  285. {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info/licenses}/LICENSE +0 -0
  286. {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info}/top_level.txt +0 -0
  287. /ksyun/client/{bill_union/v20211209 → aicp}/__init__.py +0 -0
  288. /ksyun/client/{slb/v20171210 → aicp/v20240612}/__init__.py +0 -0
@@ -0,0 +1,1778 @@
1
+ from ksyun.common.abstract_model import AbstractModel
2
+
3
+ class SaveNotebookImageRequest(AbstractModel):
4
+ """SaveNotebookImage请求参数结构体
5
+ """
6
+
7
+ def __init__(self):
8
+ r"""保存开发任务镜像
9
+ :param ImageName: 镜像名称
10
+ :type PathPrefix: String
11
+ :param Description: 描述
12
+ :type PathPrefix: String
13
+ :param ImageType: 镜像类型 Personal-个人版实例,Official-企业版实例
14
+ :type PathPrefix: String
15
+ :param Namespace: 命名空间
16
+ :type PathPrefix: String
17
+ :param NamespacePermission: 命名空间权限,Public-公有 / Private-私有
18
+ :type PathPrefix: String
19
+ :param ImageRepo: 镜像仓库
20
+ :type PathPrefix: String
21
+ :param ImageVersion: 版本号
22
+ :type PathPrefix: String
23
+ :param OfficialInstance: 企业版实例ID,当ImageType=Official 必填
24
+ :type PathPrefix: String
25
+ :param UserName: 用户名
26
+ :type PathPrefix: String
27
+ :param Password: 密码
28
+ :type PathPrefix: String
29
+ :param ImagePermission: 可见性 Public- 公开可见 / Private-仅自己可见
30
+ :type PathPrefix: String
31
+ :param NotebookId: 开发任务ID
32
+ :type PathPrefix: String
33
+ :param ImageDomain: 镜像仓库域名(参数已废弃)
34
+ :type PathPrefix: String
35
+ """
36
+ self.ImageName = None
37
+ self.Description = None
38
+ self.ImageType = None
39
+ self.Namespace = None
40
+ self.NamespacePermission = None
41
+ self.ImageRepo = None
42
+ self.ImageVersion = None
43
+ self.OfficialInstance = None
44
+ self.UserName = None
45
+ self.Password = None
46
+ self.ImagePermission = None
47
+ self.NotebookId = None
48
+ self.ImageDomain = None
49
+
50
+ def _deserialize(self, params):
51
+ if params.get("ImageName"):
52
+ self.ImageName = params.get("ImageName")
53
+ if params.get("Description"):
54
+ self.Description = params.get("Description")
55
+ if params.get("ImageType"):
56
+ self.ImageType = params.get("ImageType")
57
+ if params.get("Namespace"):
58
+ self.Namespace = params.get("Namespace")
59
+ if params.get("NamespacePermission"):
60
+ self.NamespacePermission = params.get("NamespacePermission")
61
+ if params.get("ImageRepo"):
62
+ self.ImageRepo = params.get("ImageRepo")
63
+ if params.get("ImageVersion"):
64
+ self.ImageVersion = params.get("ImageVersion")
65
+ if params.get("OfficialInstance"):
66
+ self.OfficialInstance = params.get("OfficialInstance")
67
+ if params.get("UserName"):
68
+ self.UserName = params.get("UserName")
69
+ if params.get("Password"):
70
+ self.Password = params.get("Password")
71
+ if params.get("ImagePermission"):
72
+ self.ImagePermission = params.get("ImagePermission")
73
+ if params.get("NotebookId"):
74
+ self.NotebookId = params.get("NotebookId")
75
+ if params.get("ImageDomain"):
76
+ self.ImageDomain = params.get("ImageDomain")
77
+
78
+
79
+ class ModifyNotebookRequest(AbstractModel):
80
+ """ModifyNotebook请求参数结构体
81
+ """
82
+
83
+ def __init__(self):
84
+ r"""修改开发任务
85
+ :param NotebookId: 开发任务ID
86
+ :type PathPrefix: String
87
+ :param NotebookName: 名称
88
+ :type PathPrefix: String
89
+ :param Description: 描述
90
+ :type PathPrefix: String
91
+ :param ImageId: 镜像ID
92
+ :type PathPrefix: String
93
+ :param QueueName: 队列名称
94
+ :type PathPrefix: String
95
+ :param GPUType: GPU类型
96
+ :type PathPrefix: String
97
+ :param GPUNumber: GPU核数,允许范围为0~10000
98
+ :type PathPrefix: Int
99
+ :param CPUNum: Cpu数量,允许范围为0~10000
100
+ :type PathPrefix: Int
101
+ :param Memory: 内存G,允许范围为0~10000
102
+ :type PathPrefix: Int
103
+ :param AccessType: 可见范围:
104
+ • Creator :仅实例创建者可见
105
+ • QueueMember :队列内成员可见
106
+
107
+ :type PathPrefix: String
108
+ :param EnablePublicNetworkSsh: 是否开启公网SSH访问模式,当EnableSsh=true时可设置该参数
109
+ :type PathPrefix: Boolean
110
+ :param SshAuthorizedKeys: SSH公钥,当EnableSsh=true时必传该参数
111
+ :type PathPrefix: String
112
+ :param StorageConfigs: 存储配置列表
113
+ (覆盖修改,需要传入全量的配置列表)
114
+ :type PathPrefix: Array
115
+ :param ServiceConfigs: 服务开放端口列表
116
+ :type PathPrefix: Array
117
+ :param AutoSave:
118
+ :type PathPrefix: Boolean
119
+ :param RunOnCPU: 仅调度CPU
120
+ :type PathPrefix: String
121
+ :param EnableSSH: 是否开启SSH访问
122
+ :type PathPrefix: String
123
+ :param SSHPort: SSH端口,范围为1~65535
124
+ :type PathPrefix: Int
125
+ :param SSHAuthorizedKeys: SSH公钥,当EnableSsh=true时必传该参数
126
+ :type PathPrefix: String
127
+ :param EnablePublicNetworkSSH: 是否开启公网SSH访问模式,当EnableSsh=true时可设置该参数
128
+ :type PathPrefix: Boolean
129
+ :param AllocationId: 弹性IP ID,当EnablePublicNetworkSsh=true时,此参数必传
130
+ :type PathPrefix: String
131
+ :param ImageTagId: 第三方镜像tagId
132
+ :type PathPrefix: String
133
+ :param ImageSource: 镜像来源,当改变镜像来源时,需传入该值。
134
+ - Official 官方镜像
135
+ - Personal 个人镜像
136
+ - ThirdParty 第三方镜像
137
+
138
+ 当修改镜像类型为第三方镜像时,需同时传入"ImageRegistryId", "ImageRepoId", "ImageTagId"三个入参
139
+
140
+ :type PathPrefix: String
141
+ :param ImageRepoId: 第三方镜像仓库ID
142
+ :type PathPrefix: String
143
+ :param ImageRegistryId: 第三方镜像ID
144
+ :type PathPrefix: String
145
+ """
146
+ self.NotebookId = None
147
+ self.NotebookName = None
148
+ self.Description = None
149
+ self.ImageId = None
150
+ self.QueueName = None
151
+ self.GPUType = None
152
+ self.GPUNumber = None
153
+ self.CPUNum = None
154
+ self.Memory = None
155
+ self.AccessType = None
156
+ self.EnablePublicNetworkSsh = None
157
+ self.SshAuthorizedKeys = None
158
+ self.StorageConfigs = None
159
+ self.ServiceConfigs = None
160
+ self.AutoSave = None
161
+ self.RunOnCPU = None
162
+ self.EnableSSH = None
163
+ self.SSHPort = None
164
+ self.SSHAuthorizedKeys = None
165
+ self.EnablePublicNetworkSSH = None
166
+ self.AllocationId = None
167
+ self.ImageTagId = None
168
+ self.ImageSource = None
169
+ self.ImageRepoId = None
170
+ self.ImageRegistryId = None
171
+
172
+ def _deserialize(self, params):
173
+ if params.get("NotebookId"):
174
+ self.NotebookId = params.get("NotebookId")
175
+ if params.get("NotebookName"):
176
+ self.NotebookName = params.get("NotebookName")
177
+ if params.get("Description"):
178
+ self.Description = params.get("Description")
179
+ if params.get("ImageId"):
180
+ self.ImageId = params.get("ImageId")
181
+ if params.get("QueueName"):
182
+ self.QueueName = params.get("QueueName")
183
+ if params.get("GPUType"):
184
+ self.GPUType = params.get("GPUType")
185
+ if params.get("GPUNumber"):
186
+ self.GPUNumber = params.get("GPUNumber")
187
+ if params.get("CPUNum"):
188
+ self.CPUNum = params.get("CPUNum")
189
+ if params.get("Memory"):
190
+ self.Memory = params.get("Memory")
191
+ if params.get("AccessType"):
192
+ self.AccessType = params.get("AccessType")
193
+ if params.get("EnablePublicNetworkSsh"):
194
+ self.EnablePublicNetworkSsh = params.get("EnablePublicNetworkSsh")
195
+ if params.get("SshAuthorizedKeys"):
196
+ self.SshAuthorizedKeys = params.get("SshAuthorizedKeys")
197
+ if params.get("StorageConfigs"):
198
+ self.StorageConfigs = params.get("StorageConfigs")
199
+ if params.get("ServiceConfigs"):
200
+ self.ServiceConfigs = params.get("ServiceConfigs")
201
+ if params.get("AutoSave"):
202
+ self.AutoSave = params.get("AutoSave")
203
+ if params.get("RunOnCPU"):
204
+ self.RunOnCPU = params.get("RunOnCPU")
205
+ if params.get("EnableSSH"):
206
+ self.EnableSSH = params.get("EnableSSH")
207
+ if params.get("SSHPort"):
208
+ self.SSHPort = params.get("SSHPort")
209
+ if params.get("SSHAuthorizedKeys"):
210
+ self.SSHAuthorizedKeys = params.get("SSHAuthorizedKeys")
211
+ if params.get("EnablePublicNetworkSSH"):
212
+ self.EnablePublicNetworkSSH = params.get("EnablePublicNetworkSSH")
213
+ if params.get("AllocationId"):
214
+ self.AllocationId = params.get("AllocationId")
215
+ if params.get("ImageTagId"):
216
+ self.ImageTagId = params.get("ImageTagId")
217
+ if params.get("ImageSource"):
218
+ self.ImageSource = params.get("ImageSource")
219
+ if params.get("ImageRepoId"):
220
+ self.ImageRepoId = params.get("ImageRepoId")
221
+ if params.get("ImageRegistryId"):
222
+ self.ImageRegistryId = params.get("ImageRegistryId")
223
+
224
+
225
+ class DeleteNotebookRequest(AbstractModel):
226
+ """DeleteNotebook请求参数结构体
227
+ """
228
+
229
+ def __init__(self):
230
+ r"""删除开发任务
231
+ :param NotebookId: 开发任务ID
232
+ :type PathPrefix: String
233
+ """
234
+ self.NotebookId = None
235
+
236
+ def _deserialize(self, params):
237
+ if params.get("NotebookId"):
238
+ self.NotebookId = params.get("NotebookId")
239
+
240
+
241
+ class DescribeNotebooksRequest(AbstractModel):
242
+ """DescribeNotebooks请求参数结构体
243
+ """
244
+
245
+ def __init__(self):
246
+ r"""查询开发任务
247
+ :param NotebookId: 开发任务ID
248
+ :type PathPrefix: Filter
249
+ :param Name: 开发任务名称
250
+ :type PathPrefix: String
251
+ :param Marker: 页数
252
+ :type PathPrefix: Int
253
+ :param MaxResults: 每页查询数目
254
+ :type PathPrefix: Int
255
+ :param State: 开发任务状态
256
+ :type PathPrefix: String
257
+ :param Filter: 条件过滤
258
+ :type PathPrefix: Filter
259
+ :param QueueId: 队列ID
260
+ :type PathPrefix: String
261
+ """
262
+ self.NotebookId = None
263
+ self.Name = None
264
+ self.Marker = None
265
+ self.MaxResults = None
266
+ self.State = None
267
+ self.Filter = None
268
+ self.QueueId = None
269
+
270
+ def _deserialize(self, params):
271
+ if params.get("NotebookId"):
272
+ self.NotebookId = params.get("NotebookId")
273
+ if params.get("Name"):
274
+ self.Name = params.get("Name")
275
+ if params.get("Marker"):
276
+ self.Marker = params.get("Marker")
277
+ if params.get("MaxResults"):
278
+ self.MaxResults = params.get("MaxResults")
279
+ if params.get("State"):
280
+ self.State = params.get("State")
281
+ if params.get("Filter"):
282
+ self.Filter = params.get("Filter")
283
+ if params.get("QueueId"):
284
+ self.QueueId = params.get("QueueId")
285
+
286
+
287
+ class CreateNotebookRequest(AbstractModel):
288
+ """CreateNotebook请求参数结构体
289
+ """
290
+
291
+ def __init__(self):
292
+ r"""创建开发任务
293
+ :param NotebookName: 任务名称
294
+ :type PathPrefix: String
295
+ :param Description: 描述信息
296
+ :type PathPrefix: String
297
+ :param ResourcePoolId: 资源池ID
298
+ :type PathPrefix: String
299
+ :param QueueName: 队列名称
300
+ :type PathPrefix: String
301
+ :param GPUType: GPU类型
302
+ :type PathPrefix: String
303
+ :param GPUNumber: GPU核数,允许范围为0~10000
304
+ :type PathPrefix: Int
305
+ :param CPUNum: Cpu数量,允许范围为0~10000
306
+ :type PathPrefix: Int
307
+ :param Memory: 内存G,允许范围为0~10000
308
+ :type PathPrefix: Int
309
+ :param AccessType: 可见范围,Creator(创建者可见),QueueMember(队列成员可见)
310
+ :type PathPrefix: String
311
+ :param StorageConfigs: 存储配置列表
312
+ :type PathPrefix: Array
313
+ :param AutoSave: 是否自动保存镜像
314
+ :type PathPrefix: Boolean
315
+ :param ServiceConfigs: 开放服务端口列表
316
+ :type PathPrefix: Array
317
+ :param ImageSource: 镜像来源
318
+ - 官方镜像 Official
319
+ - 个人镜像 Personal
320
+ - 第三方镜 ThirdParty
321
+
322
+ 当传入值为ThirdParty时,"ImageRegistryId", "ImageRepoId", "ImageTagId"必须传入
323
+ :type PathPrefix: String
324
+ :param ImageId: 镜像ID
325
+ 当镜像来源为第三方来源时,此参数不传递,其他镜像来源,此参数为必填项
326
+ :type PathPrefix: String
327
+ :param ImageRegistryId: 仓库连接 Id
328
+ :type PathPrefix: String
329
+ :param ImageRepoId: 仓库 Id
330
+ :type PathPrefix: String
331
+ :param ImageTagId: tagId
332
+ :type PathPrefix: String
333
+ :param EnableSSH: 是否开启SSH
334
+ :type PathPrefix: Boolean
335
+ :param SSHAuthorizedKeys: SSH公钥,当EnableSsh=true时必传该参数
336
+ :type PathPrefix: String
337
+ :param SSHPort: SSH端口,默认为22,范围为1~65535
338
+ :type PathPrefix: Int
339
+ :param EnablePublicNetworkSSH: 是否开启公网SSH访问模式,当EnableSsh=true时可设置该参数
340
+ :type PathPrefix: Boolean
341
+ :param AllocationId: 弹性IP ID,当EnablePublicNetworkSsh=true时,此参数必传
342
+ :type PathPrefix: String
343
+ :param RunOnCPU: 开启后,仅调度CPU
344
+ :type PathPrefix: String
345
+ """
346
+ self.NotebookName = None
347
+ self.Description = None
348
+ self.ResourcePoolId = None
349
+ self.QueueName = None
350
+ self.GPUType = None
351
+ self.GPUNumber = None
352
+ self.CPUNum = None
353
+ self.Memory = None
354
+ self.AccessType = None
355
+ self.StorageConfigs = None
356
+ self.AutoSave = None
357
+ self.ServiceConfigs = None
358
+ self.ImageSource = None
359
+ self.ImageId = None
360
+ self.ImageRegistryId = None
361
+ self.ImageRepoId = None
362
+ self.ImageTagId = None
363
+ self.EnableSSH = None
364
+ self.SSHAuthorizedKeys = None
365
+ self.SSHPort = None
366
+ self.EnablePublicNetworkSSH = None
367
+ self.AllocationId = None
368
+ self.RunOnCPU = None
369
+
370
+ def _deserialize(self, params):
371
+ if params.get("NotebookName"):
372
+ self.NotebookName = params.get("NotebookName")
373
+ if params.get("Description"):
374
+ self.Description = params.get("Description")
375
+ if params.get("ResourcePoolId"):
376
+ self.ResourcePoolId = params.get("ResourcePoolId")
377
+ if params.get("QueueName"):
378
+ self.QueueName = params.get("QueueName")
379
+ if params.get("GPUType"):
380
+ self.GPUType = params.get("GPUType")
381
+ if params.get("GPUNumber"):
382
+ self.GPUNumber = params.get("GPUNumber")
383
+ if params.get("CPUNum"):
384
+ self.CPUNum = params.get("CPUNum")
385
+ if params.get("Memory"):
386
+ self.Memory = params.get("Memory")
387
+ if params.get("AccessType"):
388
+ self.AccessType = params.get("AccessType")
389
+ if params.get("StorageConfigs"):
390
+ self.StorageConfigs = params.get("StorageConfigs")
391
+ if params.get("AutoSave"):
392
+ self.AutoSave = params.get("AutoSave")
393
+ if params.get("ServiceConfigs"):
394
+ self.ServiceConfigs = params.get("ServiceConfigs")
395
+ if params.get("ImageSource"):
396
+ self.ImageSource = params.get("ImageSource")
397
+ if params.get("ImageId"):
398
+ self.ImageId = params.get("ImageId")
399
+ if params.get("ImageRegistryId"):
400
+ self.ImageRegistryId = params.get("ImageRegistryId")
401
+ if params.get("ImageRepoId"):
402
+ self.ImageRepoId = params.get("ImageRepoId")
403
+ if params.get("ImageTagId"):
404
+ self.ImageTagId = params.get("ImageTagId")
405
+ if params.get("EnableSSH"):
406
+ self.EnableSSH = params.get("EnableSSH")
407
+ if params.get("SSHAuthorizedKeys"):
408
+ self.SSHAuthorizedKeys = params.get("SSHAuthorizedKeys")
409
+ if params.get("SSHPort"):
410
+ self.SSHPort = params.get("SSHPort")
411
+ if params.get("EnablePublicNetworkSSH"):
412
+ self.EnablePublicNetworkSSH = params.get("EnablePublicNetworkSSH")
413
+ if params.get("AllocationId"):
414
+ self.AllocationId = params.get("AllocationId")
415
+ if params.get("RunOnCPU"):
416
+ self.RunOnCPU = params.get("RunOnCPU")
417
+
418
+
419
+ class StopNotebookRequest(AbstractModel):
420
+ """StopNotebook请求参数结构体
421
+ """
422
+
423
+ def __init__(self):
424
+ r"""停止开发任务
425
+ :param NotebookId: 开发任务ID
426
+ :type PathPrefix: String
427
+ """
428
+ self.NotebookId = None
429
+
430
+ def _deserialize(self, params):
431
+ if params.get("NotebookId"):
432
+ self.NotebookId = params.get("NotebookId")
433
+
434
+
435
+ class StartNotebookRequest(AbstractModel):
436
+ """StartNotebook请求参数结构体
437
+ """
438
+
439
+ def __init__(self):
440
+ r"""启动开发任务
441
+ :param NotebookId: 开发任务ID
442
+ :type PathPrefix: String
443
+ """
444
+ self.NotebookId = None
445
+
446
+ def _deserialize(self, params):
447
+ if params.get("NotebookId"):
448
+ self.NotebookId = params.get("NotebookId")
449
+
450
+
451
+ class GetWebIdeUrlRequest(AbstractModel):
452
+ """GetWebIdeUrl请求参数结构体
453
+ """
454
+
455
+ def __init__(self):
456
+ r"""获取开发任务连接地址
457
+ :param NotebookId: 开发任务ID
458
+ :type PathPrefix: String
459
+ :param ExpirationMinute: 过期时间(分钟),默认时间是720分钟
460
+ :type PathPrefix: String
461
+ """
462
+ self.NotebookId = None
463
+ self.ExpirationMinute = None
464
+
465
+ def _deserialize(self, params):
466
+ if params.get("NotebookId"):
467
+ self.NotebookId = params.get("NotebookId")
468
+ if params.get("ExpirationMinute"):
469
+ self.ExpirationMinute = params.get("ExpirationMinute")
470
+
471
+
472
+ class DescribeNotebookEventsRequest(AbstractModel):
473
+ """DescribeNotebookEvents请求参数结构体
474
+ """
475
+
476
+ def __init__(self):
477
+ r"""查询开发任务事件列表
478
+ :param NotebookId: 开发任务ID
479
+ :type PathPrefix: String
480
+ """
481
+ self.NotebookId = None
482
+
483
+ def _deserialize(self, params):
484
+ if params.get("NotebookId"):
485
+ self.NotebookId = params.get("NotebookId")
486
+
487
+
488
+ class DescribeNotebookLogRequest(AbstractModel):
489
+ """DescribeNotebookLog请求参数结构体
490
+ """
491
+
492
+ def __init__(self):
493
+ r"""查看开发机日志
494
+ """
495
+
496
+ def _deserialize(self, params):
497
+ return
498
+
499
+
500
+ class StopNotebookSavingImageRequest(AbstractModel):
501
+ """StopNotebookSavingImage请求参数结构体
502
+ """
503
+
504
+ def __init__(self):
505
+ r"""终止开发任务镜像保存
506
+ :param NotebookId: 开发任务ID
507
+ :type PathPrefix: String
508
+ """
509
+ self.NotebookId = None
510
+
511
+ def _deserialize(self, params):
512
+ if params.get("NotebookId"):
513
+ self.NotebookId = params.get("NotebookId")
514
+
515
+
516
+ class EnableApikeyStatusRequest(AbstractModel):
517
+ """EnableApikeyStatus请求参数结构体
518
+ """
519
+
520
+ def __init__(self):
521
+ r"""启用API Key
522
+ :param KeyId: API Key的ID
523
+ :type PathPrefix: String
524
+ :param Status: 启禁用状态:1启用,2禁用
525
+ :type PathPrefix: String
526
+ """
527
+ self.KeyId = None
528
+ self.Status = None
529
+
530
+ def _deserialize(self, params):
531
+ if params.get("KeyId"):
532
+ self.KeyId = params.get("KeyId")
533
+ if params.get("Status"):
534
+ self.Status = params.get("Status")
535
+
536
+
537
+ class ModifyApikeyRequest(AbstractModel):
538
+ """ModifyApikey请求参数结构体
539
+ """
540
+
541
+ def __init__(self):
542
+ r"""编辑API Key
543
+ :param KeyId:
544
+ :type PathPrefix: String
545
+ :param Name: API Key 名称
546
+ :type PathPrefix: String
547
+ :param Description: API Key 描述
548
+ :type PathPrefix: String
549
+ :param AssociatedModelIds: API Key 关联的模型列表
550
+ :type PathPrefix: Array
551
+ :param AllAssociatedModel: 是否全选
552
+ :type PathPrefix: Boolean
553
+ """
554
+ self.KeyId = None
555
+ self.Name = None
556
+ self.Description = None
557
+ self.AssociatedModelIds = None
558
+ self.AllAssociatedModel = None
559
+
560
+ def _deserialize(self, params):
561
+ if params.get("KeyId"):
562
+ self.KeyId = params.get("KeyId")
563
+ if params.get("Name"):
564
+ self.Name = params.get("Name")
565
+ if params.get("Description"):
566
+ self.Description = params.get("Description")
567
+ if params.get("AssociatedModelIds"):
568
+ self.AssociatedModelIds = params.get("AssociatedModelIds")
569
+ if params.get("AllAssociatedModel"):
570
+ self.AllAssociatedModel = params.get("AllAssociatedModel")
571
+
572
+
573
+ class ActivateApiServiceRequest(AbstractModel):
574
+ """ActivateApiService请求参数结构体
575
+ """
576
+
577
+ def __init__(self):
578
+ r"""开通模型API服务
579
+ :param Status: 状态:1 表示开通服务
580
+ :type PathPrefix: String
581
+ """
582
+ self.Status = None
583
+
584
+ def _deserialize(self, params):
585
+ if params.get("Status"):
586
+ self.Status = params.get("Status")
587
+
588
+
589
+ class DeleteApikeyRequest(AbstractModel):
590
+ """DeleteApikey请求参数结构体
591
+ """
592
+
593
+ def __init__(self):
594
+ r"""删除API Key
595
+ :param KeyId: KeyId,例如:API-KEY-1158133806039134208
596
+ :type PathPrefix: String
597
+ """
598
+ self.KeyId = None
599
+
600
+ def _deserialize(self, params):
601
+ if params.get("KeyId"):
602
+ self.KeyId = params.get("KeyId")
603
+
604
+
605
+ class DescribeModelsRequest(AbstractModel):
606
+ """DescribeModels请求参数结构体
607
+ """
608
+
609
+ def __init__(self):
610
+ r"""查询模型列表(支持分页)
611
+ :param Marker: 分页页码,从1开始
612
+ :type PathPrefix: Int
613
+ :param MaxResults: 分页页长,最大100
614
+ :type PathPrefix: Int
615
+ :param ModelCategory: 模型类别筛选项
616
+ :type PathPrefix: Filter
617
+ :param Provider: 模型供应商
618
+ :type PathPrefix: Filter
619
+ :param ContextLength: 模型上下文长度
620
+ 1 - 128k及以下
621
+ 2 - 128k到256k
622
+ 3 - 256k以上
623
+ :type PathPrefix: Filter
624
+ :param ModelName: 模型名称关键词
625
+ :type PathPrefix: String
626
+ """
627
+ self.Marker = None
628
+ self.MaxResults = None
629
+ self.ModelCategory = None
630
+ self.Provider = None
631
+ self.ContextLength = None
632
+ self.ModelName = None
633
+
634
+ def _deserialize(self, params):
635
+ if params.get("Marker"):
636
+ self.Marker = params.get("Marker")
637
+ if params.get("MaxResults"):
638
+ self.MaxResults = params.get("MaxResults")
639
+ if params.get("ModelCategory"):
640
+ self.ModelCategory = params.get("ModelCategory")
641
+ if params.get("Provider"):
642
+ self.Provider = params.get("Provider")
643
+ if params.get("ContextLength"):
644
+ self.ContextLength = params.get("ContextLength")
645
+ if params.get("ModelName"):
646
+ self.ModelName = params.get("ModelName")
647
+
648
+
649
+ class CreateApikeyRequest(AbstractModel):
650
+ """CreateApikey请求参数结构体
651
+ """
652
+
653
+ def __init__(self):
654
+ r"""创建API Key
655
+ :param Name: API Key 名称
656
+ :type PathPrefix: String
657
+ :param Description: API Key 描述
658
+ :type PathPrefix: String
659
+ :param ProjectId: 项目ID
660
+ :type PathPrefix: Int
661
+ :param AssociatedModelIds: 关联的模型列表
662
+ :type PathPrefix: Array
663
+ :param AllAssociatedModel: 是否全选
664
+ :type PathPrefix: Boolean
665
+ :param AllowedIps: IP白名单,空数组表示不设置白名单
666
+ :type PathPrefix: Array
667
+ """
668
+ self.Name = None
669
+ self.Description = None
670
+ self.ProjectId = None
671
+ self.AssociatedModelIds = None
672
+ self.AllAssociatedModel = None
673
+ self.AllowedIps = None
674
+
675
+ def _deserialize(self, params):
676
+ if params.get("Name"):
677
+ self.Name = params.get("Name")
678
+ if params.get("Description"):
679
+ self.Description = params.get("Description")
680
+ if params.get("ProjectId"):
681
+ self.ProjectId = params.get("ProjectId")
682
+ if params.get("AssociatedModelIds"):
683
+ self.AssociatedModelIds = params.get("AssociatedModelIds")
684
+ if params.get("AllAssociatedModel"):
685
+ self.AllAssociatedModel = params.get("AllAssociatedModel")
686
+ if params.get("AllowedIps"):
687
+ self.AllowedIps = params.get("AllowedIps")
688
+
689
+
690
+ class GetModelDetailRequest(AbstractModel):
691
+ """GetModelDetail请求参数结构体
692
+ """
693
+
694
+ def __init__(self):
695
+ r"""查询模型详情
696
+ :param ModelId:
697
+ :type PathPrefix: String
698
+ """
699
+ self.ModelId = None
700
+
701
+ def _deserialize(self, params):
702
+ if params.get("ModelId"):
703
+ self.ModelId = params.get("ModelId")
704
+
705
+
706
+ class DescribeApikeysRequest(AbstractModel):
707
+ """DescribeApikeys请求参数结构体
708
+ """
709
+
710
+ def __init__(self):
711
+ r"""查询API Key列表(分页)
712
+ :param Marker: 分页页码,从1开始
713
+ :type PathPrefix: Int
714
+ :param MaxResults: 每页条数,最多100
715
+ :type PathPrefix: Int
716
+ :param AssociatedModelId: 通过模型查关联的API Key
717
+ :type PathPrefix: Filter
718
+ :param Status: 按状态过滤查询
719
+ :type PathPrefix: Filter
720
+ :param Namekeyword: 名称搜索关键词
721
+ :type PathPrefix: String
722
+ :param DefaultKey: 是否默认只查默认Key
723
+ :type PathPrefix: Boolean
724
+ :param KeyId: 按apiKeyId 查询
725
+ :type PathPrefix: Filter
726
+ """
727
+ self.Marker = None
728
+ self.MaxResults = None
729
+ self.AssociatedModelId = None
730
+ self.Status = None
731
+ self.Namekeyword = None
732
+ self.DefaultKey = None
733
+ self.KeyId = None
734
+
735
+ def _deserialize(self, params):
736
+ if params.get("Marker"):
737
+ self.Marker = params.get("Marker")
738
+ if params.get("MaxResults"):
739
+ self.MaxResults = params.get("MaxResults")
740
+ if params.get("AssociatedModelId"):
741
+ self.AssociatedModelId = params.get("AssociatedModelId")
742
+ if params.get("Status"):
743
+ self.Status = params.get("Status")
744
+ if params.get("Namekeyword"):
745
+ self.Namekeyword = params.get("Namekeyword")
746
+ if params.get("DefaultKey"):
747
+ self.DefaultKey = params.get("DefaultKey")
748
+ if params.get("KeyId"):
749
+ self.KeyId = params.get("KeyId")
750
+
751
+
752
+ class QueryTokenDataRequest(AbstractModel):
753
+ """QueryTokenData请求参数结构体
754
+ """
755
+
756
+ def __init__(self):
757
+ r"""查询模型API token用量(限定半年内的)
758
+ :param StartTimestamp: 开始时间,毫秒时间戳,仅支持最近180天内时间。
759
+ :type PathPrefix: Int
760
+ :param EndTimestamp: 截止时间,毫秒时间戳
761
+ :type PathPrefix: Int
762
+ :param MaxResults: 分页页长,最大10000
763
+ :type PathPrefix: Int
764
+ :param Keyword: 搜索关键词
765
+ :type PathPrefix: String
766
+ :param GroupBy: 分组字段:
767
+ model-按模型分组;keyId-按apikey分组。
768
+ :type PathPrefix: String
769
+ :param ReasoningType: 推理类型:normal-在线,batch-批量,web-在线体验,不传为查询全部。
770
+ :type PathPrefix: String
771
+ :param Marker: 页码,从1开始。
772
+ :type PathPrefix: Int
773
+ :param IsGlobalServer: 是否国际版:false-国内版,true-国际版
774
+ :type PathPrefix: Boolean
775
+ :param ModelName:
776
+ :type PathPrefix: String
777
+ """
778
+ self.StartTimestamp = None
779
+ self.EndTimestamp = None
780
+ self.MaxResults = None
781
+ self.Keyword = None
782
+ self.GroupBy = None
783
+ self.ReasoningType = None
784
+ self.Marker = None
785
+ self.IsGlobalServer = None
786
+ self.ModelName = None
787
+
788
+ def _deserialize(self, params):
789
+ if params.get("StartTimestamp"):
790
+ self.StartTimestamp = params.get("StartTimestamp")
791
+ if params.get("EndTimestamp"):
792
+ self.EndTimestamp = params.get("EndTimestamp")
793
+ if params.get("MaxResults"):
794
+ self.MaxResults = params.get("MaxResults")
795
+ if params.get("Keyword"):
796
+ self.Keyword = params.get("Keyword")
797
+ if params.get("GroupBy"):
798
+ self.GroupBy = params.get("GroupBy")
799
+ if params.get("ReasoningType"):
800
+ self.ReasoningType = params.get("ReasoningType")
801
+ if params.get("Marker"):
802
+ self.Marker = params.get("Marker")
803
+ if params.get("IsGlobalServer"):
804
+ self.IsGlobalServer = params.get("IsGlobalServer")
805
+ if params.get("ModelName"):
806
+ self.ModelName = params.get("ModelName")
807
+
808
+
809
+ class DisableApikeyStatusRequest(AbstractModel):
810
+ """DisableApikeyStatus请求参数结构体
811
+ """
812
+
813
+ def __init__(self):
814
+ r"""禁用API Key
815
+ :param KeyId: API Key的ID
816
+ :type PathPrefix: String
817
+ :param Status: 启禁用状态:1启用,2禁用
818
+ :type PathPrefix: String
819
+ """
820
+ self.KeyId = None
821
+ self.Status = None
822
+
823
+ def _deserialize(self, params):
824
+ if params.get("KeyId"):
825
+ self.KeyId = params.get("KeyId")
826
+ if params.get("Status"):
827
+ self.Status = params.get("Status")
828
+
829
+
830
+ class GetApiServiceRequest(AbstractModel):
831
+ """GetApiService请求参数结构体
832
+ """
833
+
834
+ def __init__(self):
835
+ r"""查询API服务开通状态
836
+ """
837
+
838
+ def _deserialize(self, params):
839
+ return
840
+
841
+
842
+ class GetBatchInferenceJobsFinalResultDownloadUrlRequest(AbstractModel):
843
+ """GetBatchInferenceJobsFinalResultDownloadUrl请求参数结构体
844
+ """
845
+
846
+ def __init__(self):
847
+ r"""查询批量推理任务最终结果下载链接
848
+ :param BatchId:
849
+ :type PathPrefix: String
850
+ """
851
+ self.BatchId = None
852
+
853
+ def _deserialize(self, params):
854
+ if params.get("BatchId"):
855
+ self.BatchId = params.get("BatchId")
856
+
857
+
858
+ class DescribeInferenceJobsKs3AuthInfoRequest(AbstractModel):
859
+ """DescribeInferenceJobsKs3AuthInfo请求参数结构体
860
+ """
861
+
862
+ def __init__(self):
863
+ r"""查询批量推理任务Ks3鉴权信息
864
+ """
865
+
866
+ def _deserialize(self, params):
867
+ return
868
+
869
+
870
+ class StopBatchInferenceJobRequest(AbstractModel):
871
+ """StopBatchInferenceJob请求参数结构体
872
+ """
873
+
874
+ def __init__(self):
875
+ r"""终止批量推理任务
876
+ :param BatchId:
877
+ :type PathPrefix: String
878
+ """
879
+ self.BatchId = None
880
+
881
+ def _deserialize(self, params):
882
+ if params.get("BatchId"):
883
+ self.BatchId = params.get("BatchId")
884
+
885
+
886
+ class CreateBatchInferenceJobRequest(AbstractModel):
887
+ """CreateBatchInferenceJob请求参数结构体
888
+ """
889
+
890
+ def __init__(self):
891
+ r"""创建批量推理任务
892
+ :param JobName:
893
+ :type PathPrefix: String
894
+ :param JobDesc:
895
+ :type PathPrefix: String
896
+ :param ApikeyId:
897
+ :type PathPrefix: String
898
+ :param Model: 模型名,如:deepseek-r1-0528
899
+ :type PathPrefix: String
900
+ :param ExecuteTimeoutMs:
901
+ :type PathPrefix: Int
902
+ :param InputDataType: 文件类型:user_ks3 用户ks3;upload_ks3 上传文件
903
+ :type PathPrefix: String
904
+ :param Ks3Region:
905
+ :type PathPrefix: String
906
+ :param Ks3Ak:
907
+ :type PathPrefix: String
908
+ :param Ks3Sk:
909
+ :type PathPrefix: String
910
+ :param InBucket:
911
+ :type PathPrefix: String
912
+ :param OutBucket:
913
+ :type PathPrefix: String
914
+ :param InObjectName:
915
+ :type PathPrefix: String
916
+ :param OutObjectName:
917
+ :type PathPrefix: String
918
+ """
919
+ self.JobName = None
920
+ self.JobDesc = None
921
+ self.ApikeyId = None
922
+ self.Model = None
923
+ self.ExecuteTimeoutMs = None
924
+ self.InputDataType = None
925
+ self.Ks3Region = None
926
+ self.Ks3Ak = None
927
+ self.Ks3Sk = None
928
+ self.InBucket = None
929
+ self.OutBucket = None
930
+ self.InObjectName = None
931
+ self.OutObjectName = None
932
+
933
+ def _deserialize(self, params):
934
+ if params.get("JobName"):
935
+ self.JobName = params.get("JobName")
936
+ if params.get("JobDesc"):
937
+ self.JobDesc = params.get("JobDesc")
938
+ if params.get("ApikeyId"):
939
+ self.ApikeyId = params.get("ApikeyId")
940
+ if params.get("Model"):
941
+ self.Model = params.get("Model")
942
+ if params.get("ExecuteTimeoutMs"):
943
+ self.ExecuteTimeoutMs = params.get("ExecuteTimeoutMs")
944
+ if params.get("InputDataType"):
945
+ self.InputDataType = params.get("InputDataType")
946
+ if params.get("Ks3Region"):
947
+ self.Ks3Region = params.get("Ks3Region")
948
+ if params.get("Ks3Ak"):
949
+ self.Ks3Ak = params.get("Ks3Ak")
950
+ if params.get("Ks3Sk"):
951
+ self.Ks3Sk = params.get("Ks3Sk")
952
+ if params.get("InBucket"):
953
+ self.InBucket = params.get("InBucket")
954
+ if params.get("OutBucket"):
955
+ self.OutBucket = params.get("OutBucket")
956
+ if params.get("InObjectName"):
957
+ self.InObjectName = params.get("InObjectName")
958
+ if params.get("OutObjectName"):
959
+ self.OutObjectName = params.get("OutObjectName")
960
+
961
+
962
+ class ModifyBatchInferenceJobRequest(AbstractModel):
963
+ """ModifyBatchInferenceJob请求参数结构体
964
+ """
965
+
966
+ def __init__(self):
967
+ r"""更新批量推理任务(修改jobName和jobDesc)
968
+ :param BatchId:
969
+ :type PathPrefix: String
970
+ :param JobName:
971
+ :type PathPrefix: String
972
+ :param JobDesc:
973
+ :type PathPrefix: String
974
+ """
975
+ self.BatchId = None
976
+ self.JobName = None
977
+ self.JobDesc = None
978
+
979
+ def _deserialize(self, params):
980
+ if params.get("BatchId"):
981
+ self.BatchId = params.get("BatchId")
982
+ if params.get("JobName"):
983
+ self.JobName = params.get("JobName")
984
+ if params.get("JobDesc"):
985
+ self.JobDesc = params.get("JobDesc")
986
+
987
+
988
+ class DescribeBatchInferenceJobsRequest(AbstractModel):
989
+ """DescribeBatchInferenceJobs请求参数结构体
990
+ """
991
+
992
+ def __init__(self):
993
+ r"""查询批量推理任务(支持分页,按创建用户过滤)
994
+ :param Marker: 页码,从1开始,默认是1
995
+ :type PathPrefix: Int
996
+ :param MaxResults: 页长,默认和最大都是100
997
+ :type PathPrefix: Int
998
+ :param JobNameKeyword: 任务名称模糊查询条件
999
+ :type PathPrefix: String
1000
+ :param Status: 按状态过滤查询
1001
+ init、queuing、running、terminated、completed、failed、timeout
1002
+ :type PathPrefix: Filter
1003
+ :param BatchId:
1004
+ :type PathPrefix: String
1005
+ """
1006
+ self.Marker = None
1007
+ self.MaxResults = None
1008
+ self.JobNameKeyword = None
1009
+ self.Status = None
1010
+ self.BatchId = None
1011
+
1012
+ def _deserialize(self, params):
1013
+ if params.get("Marker"):
1014
+ self.Marker = params.get("Marker")
1015
+ if params.get("MaxResults"):
1016
+ self.MaxResults = params.get("MaxResults")
1017
+ if params.get("JobNameKeyword"):
1018
+ self.JobNameKeyword = params.get("JobNameKeyword")
1019
+ if params.get("Status"):
1020
+ self.Status = params.get("Status")
1021
+ if params.get("BatchId"):
1022
+ self.BatchId = params.get("BatchId")
1023
+
1024
+
1025
+ class DeleteBatchInferenceJobRequest(AbstractModel):
1026
+ """DeleteBatchInferenceJob请求参数结构体
1027
+ """
1028
+
1029
+ def __init__(self):
1030
+ r"""删除批量推理任务
1031
+ :param BatchId:
1032
+ :type PathPrefix: String
1033
+ """
1034
+ self.BatchId = None
1035
+
1036
+ def _deserialize(self, params):
1037
+ if params.get("BatchId"):
1038
+ self.BatchId = params.get("BatchId")
1039
+
1040
+
1041
+ class EnableModelsRequest(AbstractModel):
1042
+ """EnableModels请求参数结构体
1043
+ """
1044
+
1045
+ def __init__(self):
1046
+ r"""开通模型,支持批量
1047
+ :param ModelIds:
1048
+ :type PathPrefix: Array
1049
+ """
1050
+ self.ModelIds = None
1051
+
1052
+ def _deserialize(self, params):
1053
+ if params.get("ModelIds"):
1054
+ self.ModelIds = params.get("ModelIds")
1055
+
1056
+
1057
+ class DescribeModelQuotasRequest(AbstractModel):
1058
+ """DescribeModelQuotas请求参数结构体
1059
+ """
1060
+
1061
+ def __init__(self):
1062
+ r"""查询模型配额列表
1063
+ :param Marker: 分页页码,从1开始
1064
+ :type PathPrefix: Int
1065
+ :param MaxResults: 分页页长,最大100
1066
+ :type PathPrefix: Int
1067
+ :param Keyword: 模型搜索关键词
1068
+ :type PathPrefix: String
1069
+ :param Type: 文本模型/视觉模型
1070
+ :type PathPrefix: String
1071
+ """
1072
+ self.Marker = None
1073
+ self.MaxResults = None
1074
+ self.Keyword = None
1075
+ self.Type = None
1076
+
1077
+ def _deserialize(self, params):
1078
+ if params.get("Marker"):
1079
+ self.Marker = params.get("Marker")
1080
+ if params.get("MaxResults"):
1081
+ self.MaxResults = params.get("MaxResults")
1082
+ if params.get("Keyword"):
1083
+ self.Keyword = params.get("Keyword")
1084
+ if params.get("Type"):
1085
+ self.Type = params.get("Type")
1086
+
1087
+
1088
+ class DisableModelsRequest(AbstractModel):
1089
+ """DisableModels请求参数结构体
1090
+ """
1091
+
1092
+ def __init__(self):
1093
+ r"""禁用对应模型
1094
+ :param ModelIds:
1095
+ :type PathPrefix: Array
1096
+ """
1097
+ self.ModelIds = None
1098
+
1099
+ def _deserialize(self, params):
1100
+ if params.get("ModelIds"):
1101
+ self.ModelIds = params.get("ModelIds")
1102
+
1103
+
1104
+ class EnableOverFreeLimitRequest(AbstractModel):
1105
+ """EnableOverFreeLimit请求参数结构体
1106
+ """
1107
+
1108
+ def __init__(self):
1109
+ r"""免费配额用完后禁用对应模型
1110
+ :param ModelIds:
1111
+ :type PathPrefix: Array
1112
+ """
1113
+ self.ModelIds = None
1114
+
1115
+ def _deserialize(self, params):
1116
+ if params.get("ModelIds"):
1117
+ self.ModelIds = params.get("ModelIds")
1118
+
1119
+
1120
+ class DisableOverFreeLimitRequest(AbstractModel):
1121
+ """DisableOverFreeLimit请求参数结构体
1122
+ """
1123
+
1124
+ def __init__(self):
1125
+ r"""即免费配额用完后继续使用计费配额
1126
+ :param ModelIds:
1127
+ :type PathPrefix: Array
1128
+ """
1129
+ self.ModelIds = None
1130
+
1131
+ def _deserialize(self, params):
1132
+ if params.get("ModelIds"):
1133
+ self.ModelIds = params.get("ModelIds")
1134
+
1135
+
1136
+ class CreateTrainJobRequest(AbstractModel):
1137
+ """CreateTrainJob请求参数结构体
1138
+ """
1139
+
1140
+ def __init__(self):
1141
+ r"""创建训练任务
1142
+ :param TrainJobName: 训练任务名称,名称规范:1-64个字符,允许字母 中文 数字 - _ . / ( )
1143
+ :type PathPrefix: String
1144
+ :param Description: 训练任务描述信息 0-200字符
1145
+ :type PathPrefix: String
1146
+ :param ResourcePoolId: 资源池id
1147
+ :type PathPrefix: String
1148
+ :param QueueName: 队列名称
1149
+ :type PathPrefix: String
1150
+ :param Priority: 优先级
1151
+ 可选项:
1152
+ • kaic-high 高
1153
+ • kaic-normal 中
1154
+ • kaic-low 低
1155
+ 默认kaic-normal
1156
+ :type PathPrefix: String
1157
+ :param Command: 启动命令
1158
+ :type PathPrefix: String
1159
+ :param Framework: 训练框架
1160
+ 可选项:
1161
+ • pytorch
1162
+ • tensorflow
1163
+ 默认pytorch
1164
+
1165
+ :type PathPrefix: String
1166
+ :param ImageSource: 镜像类型
1167
+ 可选项:
1168
+ • Official 官方镜像
1169
+ • Personal 自定义镜像
1170
+ • ThirdParty 第三方镜像
1171
+ :type PathPrefix: String
1172
+ :param FrameworkReplicas: 框架副本配置
1173
+ :type PathPrefix: Object
1174
+ :param RestartPolicy: 重启策略,可选值:
1175
+ · Always
1176
+ · OnFailure
1177
+ · Never
1178
+ :type PathPrefix: String
1179
+ :param Envs: 环境变量
1180
+ :type PathPrefix: Array
1181
+ :param SupportTensorboard: 是否开启Tensorboard,默认不开启
1182
+ :type PathPrefix: Boolean
1183
+ :param ImageId: 镜像ID
1184
+ :type PathPrefix: String
1185
+ :param ImageRegistryId: 镜像仓库id
1186
+ :type PathPrefix: String
1187
+ :param ImageRepoId: 镜像RepoId
1188
+ :type PathPrefix: String
1189
+ :param ImageTagId: 镜像tagId
1190
+ :type PathPrefix: String
1191
+ :param GPUType: GPU卡型
1192
+ :type PathPrefix: String
1193
+ :param GPUNumber: 范围0-10000
1194
+ :type PathPrefix: Int
1195
+ :param CPUNum: 范围0-10000
1196
+ :type PathPrefix: Int
1197
+ :param Memory: 0-10000
1198
+ :type PathPrefix: Int
1199
+ :param StorageConfigs: 存储配置
1200
+
1201
+ :type PathPrefix: Array
1202
+ :param AccessType: 任务可见性,可选:Creator|QueueMember 默认:Creator
1203
+ :type PathPrefix: String
1204
+ :param MaxRuntime: 运行时长0-240000,单位h
1205
+ :type PathPrefix: Int
1206
+ :param SelfHealing: 是否开启自愈,默认true
1207
+ :type PathPrefix: Boolean
1208
+ :param RunOnCPU: 任务是否仅运行在cpu节点上,默认false
1209
+ :type PathPrefix: Boolean
1210
+ """
1211
+ self.TrainJobName = None
1212
+ self.Description = None
1213
+ self.ResourcePoolId = None
1214
+ self.QueueName = None
1215
+ self.Priority = None
1216
+ self.Command = None
1217
+ self.Framework = None
1218
+ self.ImageSource = None
1219
+ self.FrameworkReplicas = None
1220
+ self.RestartPolicy = None
1221
+ self.Envs = None
1222
+ self.SupportTensorboard = None
1223
+ self.ImageId = None
1224
+ self.ImageRegistryId = None
1225
+ self.ImageRepoId = None
1226
+ self.ImageTagId = None
1227
+ self.GPUType = None
1228
+ self.GPUNumber = None
1229
+ self.CPUNum = None
1230
+ self.Memory = None
1231
+ self.StorageConfigs = None
1232
+ self.AccessType = None
1233
+ self.MaxRuntime = None
1234
+ self.SelfHealing = None
1235
+ self.RunOnCPU = None
1236
+
1237
+ def _deserialize(self, params):
1238
+ if params.get("TrainJobName"):
1239
+ self.TrainJobName = params.get("TrainJobName")
1240
+ if params.get("Description"):
1241
+ self.Description = params.get("Description")
1242
+ if params.get("ResourcePoolId"):
1243
+ self.ResourcePoolId = params.get("ResourcePoolId")
1244
+ if params.get("QueueName"):
1245
+ self.QueueName = params.get("QueueName")
1246
+ if params.get("Priority"):
1247
+ self.Priority = params.get("Priority")
1248
+ if params.get("Command"):
1249
+ self.Command = params.get("Command")
1250
+ if params.get("Framework"):
1251
+ self.Framework = params.get("Framework")
1252
+ if params.get("ImageSource"):
1253
+ self.ImageSource = params.get("ImageSource")
1254
+ if params.get("FrameworkReplicas"):
1255
+ self.FrameworkReplicas = params.get("FrameworkReplicas")
1256
+ if params.get("RestartPolicy"):
1257
+ self.RestartPolicy = params.get("RestartPolicy")
1258
+ if params.get("Envs"):
1259
+ self.Envs = params.get("Envs")
1260
+ if params.get("SupportTensorboard"):
1261
+ self.SupportTensorboard = params.get("SupportTensorboard")
1262
+ if params.get("ImageId"):
1263
+ self.ImageId = params.get("ImageId")
1264
+ if params.get("ImageRegistryId"):
1265
+ self.ImageRegistryId = params.get("ImageRegistryId")
1266
+ if params.get("ImageRepoId"):
1267
+ self.ImageRepoId = params.get("ImageRepoId")
1268
+ if params.get("ImageTagId"):
1269
+ self.ImageTagId = params.get("ImageTagId")
1270
+ if params.get("GPUType"):
1271
+ self.GPUType = params.get("GPUType")
1272
+ if params.get("GPUNumber"):
1273
+ self.GPUNumber = params.get("GPUNumber")
1274
+ if params.get("CPUNum"):
1275
+ self.CPUNum = params.get("CPUNum")
1276
+ if params.get("Memory"):
1277
+ self.Memory = params.get("Memory")
1278
+ if params.get("StorageConfigs"):
1279
+ self.StorageConfigs = params.get("StorageConfigs")
1280
+ if params.get("AccessType"):
1281
+ self.AccessType = params.get("AccessType")
1282
+ if params.get("MaxRuntime"):
1283
+ self.MaxRuntime = params.get("MaxRuntime")
1284
+ if params.get("SelfHealing"):
1285
+ self.SelfHealing = params.get("SelfHealing")
1286
+ if params.get("RunOnCPU"):
1287
+ self.RunOnCPU = params.get("RunOnCPU")
1288
+
1289
+
1290
+ class DescribeTrainJobEventsRequest(AbstractModel):
1291
+ """DescribeTrainJobEvents请求参数结构体
1292
+ """
1293
+
1294
+ def __init__(self):
1295
+ r"""查询训练任务pod事件
1296
+ :param ResourcePoolId:
1297
+ :type PathPrefix: String
1298
+ :param TrainJobId:
1299
+ :type PathPrefix: String
1300
+ """
1301
+ self.ResourcePoolId = None
1302
+ self.TrainJobId = None
1303
+
1304
+ def _deserialize(self, params):
1305
+ if params.get("ResourcePoolId"):
1306
+ self.ResourcePoolId = params.get("ResourcePoolId")
1307
+ if params.get("TrainJobId"):
1308
+ self.TrainJobId = params.get("TrainJobId")
1309
+
1310
+
1311
+ class StopTrainJobRequest(AbstractModel):
1312
+ """StopTrainJob请求参数结构体
1313
+ """
1314
+
1315
+ def __init__(self):
1316
+ r"""关停训练任务
1317
+ :param TrainJobId: 训练任务Id
1318
+ :type PathPrefix: String
1319
+ """
1320
+ self.TrainJobId = None
1321
+
1322
+ def _deserialize(self, params):
1323
+ if params.get("TrainJobId"):
1324
+ self.TrainJobId = params.get("TrainJobId")
1325
+
1326
+
1327
+ class DescribeTrainJobRequest(AbstractModel):
1328
+ """DescribeTrainJob请求参数结构体
1329
+ """
1330
+
1331
+ def __init__(self):
1332
+ r"""查询训练任务
1333
+ :param TrainJobId: 训练任务Id,多个TrainJobId.1=xx& TrainJobId.2=xx
1334
+ :type PathPrefix: Filter
1335
+ :param Filter:
1336
+ :type PathPrefix: Filter
1337
+ :param Marker: 分页参数
1338
+ :type PathPrefix: Int
1339
+ :param MaxResults: 返回最大值,默认1000
1340
+ :type PathPrefix: Int
1341
+ """
1342
+ self.TrainJobId = None
1343
+ self.Filter = None
1344
+ self.Marker = None
1345
+ self.MaxResults = None
1346
+
1347
+ def _deserialize(self, params):
1348
+ if params.get("TrainJobId"):
1349
+ self.TrainJobId = params.get("TrainJobId")
1350
+ if params.get("Filter"):
1351
+ self.Filter = params.get("Filter")
1352
+ if params.get("Marker"):
1353
+ self.Marker = params.get("Marker")
1354
+ if params.get("MaxResults"):
1355
+ self.MaxResults = params.get("MaxResults")
1356
+
1357
+
1358
+ class StartTrainJobRequest(AbstractModel):
1359
+ """StartTrainJob请求参数结构体
1360
+ """
1361
+
1362
+ def __init__(self):
1363
+ r"""开启训练任务
1364
+ :param TrainJobId:
1365
+ :type PathPrefix: String
1366
+ """
1367
+ self.TrainJobId = None
1368
+
1369
+ def _deserialize(self, params):
1370
+ if params.get("TrainJobId"):
1371
+ self.TrainJobId = params.get("TrainJobId")
1372
+
1373
+
1374
+ class DeleteTrainJobRequest(AbstractModel):
1375
+ """DeleteTrainJob请求参数结构体
1376
+ """
1377
+
1378
+ def __init__(self):
1379
+ r"""删除训练任务
1380
+ :param TrainJobId: 训练任务Id
1381
+ :type PathPrefix: String
1382
+ """
1383
+ self.TrainJobId = None
1384
+
1385
+ def _deserialize(self, params):
1386
+ if params.get("TrainJobId"):
1387
+ self.TrainJobId = params.get("TrainJobId")
1388
+
1389
+
1390
+ class ModifyTrainJobRequest(AbstractModel):
1391
+ """ModifyTrainJob请求参数结构体
1392
+ """
1393
+
1394
+ def __init__(self):
1395
+ r"""修改训练任务
1396
+ :param TrainJobId: 训练任务Id
1397
+ :type PathPrefix: String
1398
+ :param Priority: 优先级,可选值:
1399
+ ·kaic-high
1400
+ ·kaic-normal
1401
+ ·kaic-low
1402
+ :type PathPrefix: String
1403
+ """
1404
+ self.TrainJobId = None
1405
+ self.Priority = None
1406
+
1407
+ def _deserialize(self, params):
1408
+ if params.get("TrainJobId"):
1409
+ self.TrainJobId = params.get("TrainJobId")
1410
+ if params.get("Priority"):
1411
+ self.Priority = params.get("Priority")
1412
+
1413
+
1414
+ class DescribeTrainJobPodLogsRequest(AbstractModel):
1415
+ """DescribeTrainJobPodLogs请求参数结构体
1416
+ """
1417
+
1418
+ def __init__(self):
1419
+ r"""查询训练任务pod日志
1420
+ :param ResourcePoolId: 资源池Id
1421
+ :type PathPrefix: String
1422
+ :param TrainJobId: 训练任务ID
1423
+ :type PathPrefix: String
1424
+ :param PodName: PodName名称
1425
+ :type PathPrefix: String
1426
+ :param SinceSeconds: 秒,默认86400
1427
+ :type PathPrefix: Int
1428
+ :param TailLines: 行数
1429
+ :type PathPrefix: Int
1430
+ """
1431
+ self.ResourcePoolId = None
1432
+ self.TrainJobId = None
1433
+ self.PodName = None
1434
+ self.SinceSeconds = None
1435
+ self.TailLines = None
1436
+
1437
+ def _deserialize(self, params):
1438
+ if params.get("ResourcePoolId"):
1439
+ self.ResourcePoolId = params.get("ResourcePoolId")
1440
+ if params.get("TrainJobId"):
1441
+ self.TrainJobId = params.get("TrainJobId")
1442
+ if params.get("PodName"):
1443
+ self.PodName = params.get("PodName")
1444
+ if params.get("SinceSeconds"):
1445
+ self.SinceSeconds = params.get("SinceSeconds")
1446
+ if params.get("TailLines"):
1447
+ self.TailLines = params.get("TailLines")
1448
+
1449
+
1450
+ class DescribeTrainJobPodsRequest(AbstractModel):
1451
+ """DescribeTrainJobPods请求参数结构体
1452
+ """
1453
+
1454
+ def __init__(self):
1455
+ r"""查询训练任务pod列表
1456
+ :param Marker:
1457
+ :type PathPrefix: String
1458
+ :param MaxResults:
1459
+ :type PathPrefix: String
1460
+ :param TrainJobId:
1461
+ :type PathPrefix: String
1462
+ :param Filter:
1463
+ :type PathPrefix: Filter
1464
+ """
1465
+ self.Marker = None
1466
+ self.MaxResults = None
1467
+ self.TrainJobId = None
1468
+ self.Filter = None
1469
+
1470
+ def _deserialize(self, params):
1471
+ if params.get("Marker"):
1472
+ self.Marker = params.get("Marker")
1473
+ if params.get("MaxResults"):
1474
+ self.MaxResults = params.get("MaxResults")
1475
+ if params.get("TrainJobId"):
1476
+ self.TrainJobId = params.get("TrainJobId")
1477
+ if params.get("Filter"):
1478
+ self.Filter = params.get("Filter")
1479
+
1480
+
1481
+ class DescribeResourcePoolsRequest(AbstractModel):
1482
+ """DescribeResourcePools请求参数结构体
1483
+ """
1484
+
1485
+ def __init__(self):
1486
+ r"""查询资源组列表
1487
+ :param Sort: 排序方式:默认倒序
1488
+ - DESC 倒序
1489
+ - ASC 正序
1490
+ :type PathPrefix: String
1491
+ :param Page: 页码
1492
+ :type PathPrefix: Int
1493
+ :param PageSize: 单次调用所返回的最大实例数目,默认1000, 范围[5-1000]。
1494
+ :type PathPrefix: Int
1495
+ :param ResourcePoolName: 资源池名称,可模糊匹配
1496
+ :type PathPrefix: String
1497
+ :param Component: 组件名称:
1498
+ - spark
1499
+ - ray
1500
+ :type PathPrefix: String
1501
+ :param ResourcePoolId: 资源组ID
1502
+ :type PathPrefix: Filter
1503
+ :param Filter: 一个或者多个过滤器
1504
+ :type PathPrefix: Filter
1505
+ """
1506
+ self.Sort = None
1507
+ self.Page = None
1508
+ self.PageSize = None
1509
+ self.ResourcePoolName = None
1510
+ self.Component = None
1511
+ self.ResourcePoolId = None
1512
+ self.Filter = None
1513
+
1514
+ def _deserialize(self, params):
1515
+ if params.get("Sort"):
1516
+ self.Sort = params.get("Sort")
1517
+ if params.get("Page"):
1518
+ self.Page = params.get("Page")
1519
+ if params.get("PageSize"):
1520
+ self.PageSize = params.get("PageSize")
1521
+ if params.get("ResourcePoolName"):
1522
+ self.ResourcePoolName = params.get("ResourcePoolName")
1523
+ if params.get("Component"):
1524
+ self.Component = params.get("Component")
1525
+ if params.get("ResourcePoolId"):
1526
+ self.ResourcePoolId = params.get("ResourcePoolId")
1527
+ if params.get("Filter"):
1528
+ self.Filter = params.get("Filter")
1529
+
1530
+
1531
+ class DescribeResourcePoolInstancesRequest(AbstractModel):
1532
+ """DescribeResourcePoolInstances请求参数结构体
1533
+ """
1534
+
1535
+ def __init__(self):
1536
+ r"""查询资源组节点列表
1537
+ :param ResourcePoolId:
1538
+ 资源组d
1539
+ :type PathPrefix: String
1540
+ :param PageSize: 单次调用所返回的最大实例数目,默认1000, 范围值为[5, 1000]
1541
+ :type PathPrefix: Int
1542
+ :param Page: 页码
1543
+ :type PathPrefix: Int
1544
+ :param InstanceName: 实例名称,可模糊匹配
1545
+
1546
+
1547
+ :type PathPrefix: String
1548
+ :param InstanceId:
1549
+ 实例ID
1550
+ :type PathPrefix: Filter
1551
+ :param ProjectId: 项目制
1552
+ :type PathPrefix: Filter
1553
+ :param Filter: 一个或者多个过滤器
1554
+ :type PathPrefix: Filter
1555
+ """
1556
+ self.ResourcePoolId = None
1557
+ self.PageSize = None
1558
+ self.Page = None
1559
+ self.InstanceName = None
1560
+ self.InstanceId = None
1561
+ self.ProjectId = None
1562
+ self.Filter = None
1563
+
1564
+ def _deserialize(self, params):
1565
+ if params.get("ResourcePoolId"):
1566
+ self.ResourcePoolId = params.get("ResourcePoolId")
1567
+ if params.get("PageSize"):
1568
+ self.PageSize = params.get("PageSize")
1569
+ if params.get("Page"):
1570
+ self.Page = params.get("Page")
1571
+ if params.get("InstanceName"):
1572
+ self.InstanceName = params.get("InstanceName")
1573
+ if params.get("InstanceId"):
1574
+ self.InstanceId = params.get("InstanceId")
1575
+ if params.get("ProjectId"):
1576
+ self.ProjectId = params.get("ProjectId")
1577
+ if params.get("Filter"):
1578
+ self.Filter = params.get("Filter")
1579
+
1580
+
1581
+ class CreateInferenceEndpointRequest(AbstractModel):
1582
+ """CreateInferenceEndpoint请求参数结构体
1583
+ """
1584
+
1585
+ def __init__(self):
1586
+ r"""创建接入点
1587
+ :param EndpointName: 推理接入点名称,1-64个字符,允许字母中文,数字,特殊字符-_、()
1588
+ :type PathPrefix: String
1589
+ :param ProjectId: 项目制Id
1590
+ :type PathPrefix: String
1591
+ :param ModelName: 默认绑定的模型名称
1592
+ :type PathPrefix: String
1593
+ :param RateLimit : 接入点限流配置
1594
+ :type PathPrefix: Object
1595
+ :param ModelId: ModelId 模型名称
1596
+ :type PathPrefix: String
1597
+ """
1598
+ self.EndpointName = None
1599
+ self.ProjectId = None
1600
+ self.ModelName = None
1601
+ self.RateLimit_ = None
1602
+ self.ModelId = None
1603
+
1604
+ def _deserialize(self, params):
1605
+ if params.get("EndpointName"):
1606
+ self.EndpointName = params.get("EndpointName")
1607
+ if params.get("ProjectId"):
1608
+ self.ProjectId = params.get("ProjectId")
1609
+ if params.get("ModelName"):
1610
+ self.ModelName = params.get("ModelName")
1611
+ if params.get("RateLimit "):
1612
+ self.RateLimit_ = params.get("RateLimit ")
1613
+ if params.get("ModelId"):
1614
+ self.ModelId = params.get("ModelId")
1615
+
1616
+
1617
+ class DescribeInferenceEndpointsRequest(AbstractModel):
1618
+ """DescribeInferenceEndpoints请求参数结构体
1619
+ """
1620
+
1621
+ def __init__(self):
1622
+ r"""查询接入点
1623
+ :param EndpointId: 推理接入点 ID列表,范围为1-100
1624
+ :type PathPrefix: Filter
1625
+ :param EndpointName:
1626
+ :type PathPrefix: String
1627
+ :param Marker:
1628
+ :type PathPrefix: Int
1629
+ :param MaxResults:
1630
+ :type PathPrefix: Int
1631
+ :param ProjectId:
1632
+ :type PathPrefix: Filter
1633
+ :param Filter: 条件过滤,支持按照state状态和project过滤
1634
+ :type PathPrefix: Array
1635
+ """
1636
+ self.EndpointId = None
1637
+ self.EndpointName = None
1638
+ self.Marker = None
1639
+ self.MaxResults = None
1640
+ self.ProjectId = None
1641
+ self.Filter = None
1642
+
1643
+ def _deserialize(self, params):
1644
+ if params.get("EndpointId"):
1645
+ self.EndpointId = params.get("EndpointId")
1646
+ if params.get("EndpointName"):
1647
+ self.EndpointName = params.get("EndpointName")
1648
+ if params.get("Marker"):
1649
+ self.Marker = params.get("Marker")
1650
+ if params.get("MaxResults"):
1651
+ self.MaxResults = params.get("MaxResults")
1652
+ if params.get("ProjectId"):
1653
+ self.ProjectId = params.get("ProjectId")
1654
+ if params.get("Filter"):
1655
+ self.Filter = params.get("Filter")
1656
+
1657
+
1658
+ class EnableEndpointRateLimitRequest(AbstractModel):
1659
+ """EnableEndpointRateLimit请求参数结构体
1660
+ """
1661
+
1662
+ def __init__(self):
1663
+ r"""开启接入点限流
1664
+ :param EndpointId: 接入点id
1665
+ :type PathPrefix: String
1666
+ :param RateLimit:
1667
+ :type PathPrefix: Object
1668
+ """
1669
+ self.EndpointId = None
1670
+ self.RateLimit = None
1671
+
1672
+ def _deserialize(self, params):
1673
+ if params.get("EndpointId"):
1674
+ self.EndpointId = params.get("EndpointId")
1675
+ if params.get("RateLimit"):
1676
+ self.RateLimit = params.get("RateLimit")
1677
+
1678
+
1679
+ class UpdateInferenceEndpointRequest(AbstractModel):
1680
+ """UpdateInferenceEndpoint请求参数结构体
1681
+ """
1682
+
1683
+ def __init__(self):
1684
+ r"""创建接入点
1685
+ :param EndpointName: 推理接入点名称
1686
+ :type PathPrefix: String
1687
+ :param ProjectId: 项目制Id
1688
+ :type PathPrefix: String
1689
+ :param ModelName: 默认绑定的模型名称
1690
+ :type PathPrefix: String
1691
+ :param RateLimit : 接入点限流配置
1692
+ :type PathPrefix: Object
1693
+ :param EndpointId:
1694
+ :type PathPrefix: String
1695
+ """
1696
+ self.EndpointName = None
1697
+ self.ProjectId = None
1698
+ self.ModelName = None
1699
+ self.RateLimit_ = None
1700
+ self.EndpointId = None
1701
+
1702
+ def _deserialize(self, params):
1703
+ if params.get("EndpointName"):
1704
+ self.EndpointName = params.get("EndpointName")
1705
+ if params.get("ProjectId"):
1706
+ self.ProjectId = params.get("ProjectId")
1707
+ if params.get("ModelName"):
1708
+ self.ModelName = params.get("ModelName")
1709
+ if params.get("RateLimit "):
1710
+ self.RateLimit_ = params.get("RateLimit ")
1711
+ if params.get("EndpointId"):
1712
+ self.EndpointId = params.get("EndpointId")
1713
+
1714
+
1715
+ class StartInferenceEndpointRequest(AbstractModel):
1716
+ """StartInferenceEndpoint请求参数结构体
1717
+ """
1718
+
1719
+ def __init__(self):
1720
+ r"""开启接入点
1721
+ :param EndpointId:
1722
+ :type PathPrefix: String
1723
+ """
1724
+ self.EndpointId = None
1725
+
1726
+ def _deserialize(self, params):
1727
+ if params.get("EndpointId"):
1728
+ self.EndpointId = params.get("EndpointId")
1729
+
1730
+
1731
+ class StopInferenceEndpointRequest(AbstractModel):
1732
+ """StopInferenceEndpoint请求参数结构体
1733
+ """
1734
+
1735
+ def __init__(self):
1736
+ r"""关闭接入点
1737
+ :param EndpointId: 推理接入点名称
1738
+ :type PathPrefix: String
1739
+ """
1740
+ self.EndpointId = None
1741
+
1742
+ def _deserialize(self, params):
1743
+ if params.get("EndpointId"):
1744
+ self.EndpointId = params.get("EndpointId")
1745
+
1746
+
1747
+ class DeleteInferenceEndpointRequest(AbstractModel):
1748
+ """DeleteInferenceEndpoint请求参数结构体
1749
+ """
1750
+
1751
+ def __init__(self):
1752
+ r"""删除接入点
1753
+ :param EndpointId:
1754
+ :type PathPrefix: String
1755
+ """
1756
+ self.EndpointId = None
1757
+
1758
+ def _deserialize(self, params):
1759
+ if params.get("EndpointId"):
1760
+ self.EndpointId = params.get("EndpointId")
1761
+
1762
+
1763
+ class DisableEndpointRateLimitRequest(AbstractModel):
1764
+ """DisableEndpointRateLimit请求参数结构体
1765
+ """
1766
+
1767
+ def __init__(self):
1768
+ r"""关闭接入点限流
1769
+ :param EndpointId:
1770
+ :type PathPrefix: String
1771
+ """
1772
+ self.EndpointId = None
1773
+
1774
+ def _deserialize(self, params):
1775
+ if params.get("EndpointId"):
1776
+ self.EndpointId = params.get("EndpointId")
1777
+
1778
+