kingsoftcloud-sdk-python 1.1.1__py2.py3-none-any.whl → 1.5.8.49__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 (294) hide show
  1. kingsoftcloud_sdk_python-1.5.8.49.dist-info/METADATA +71 -0
  2. kingsoftcloud_sdk_python-1.5.8.49.dist-info/RECORD +337 -0
  3. {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/WHEEL +1 -1
  4. ksyun/__init__.py +1 -1
  5. ksyun/client/actiontrail/v20190401/client.py +2 -4
  6. ksyun/client/aicp/v20240612/client.py +1344 -0
  7. ksyun/client/aicp/v20240612/models.py +1963 -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 +6 -77
  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 +54 -0
  15. ksyun/client/bill/v20220601/models.py +54 -0
  16. ksyun/client/bill_union/v20200101/client.py +81 -14
  17. ksyun/client/bill_union/v20200101/models.py +119 -3
  18. ksyun/client/bill_union/v20221222/__init__.py +0 -0
  19. ksyun/client/bill_union/v20221222/client.py +146 -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 +54 -0
  23. ksyun/client/bill_union/v20250801/models.py +64 -0
  24. ksyun/client/bws/v20160304/client.py +33 -12
  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 +77 -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 +399 -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 +169 -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 +31 -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 +997 -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 +606 -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 +905 -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 +77 -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 +468 -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 +445 -0
  61. ksyun/client/dts/v20180108/models.py +734 -0
  62. ksyun/client/ebs/v20160304/client.py +260 -55
  63. ksyun/client/ebs/v20160304/models.py +320 -66
  64. ksyun/client/eip/v20160304/client.py +127 -14
  65. ksyun/client/eip/v20160304/models.py +95 -1
  66. ksyun/client/epc/v20151101/client.py +1309 -184
  67. ksyun/client/epc/v20151101/models.py +2623 -137
  68. ksyun/client/iam/v20151101/client.py +325 -120
  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 +31 -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 +31 -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 +629 -0
  79. ksyun/client/influxdb/v20191010/models.py +655 -0
  80. ksyun/client/kad/v20161122/client.py +56 -12
  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 +399 -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 +790 -0
  88. ksyun/client/kce/v20190806/models.py +1099 -0
  89. ksyun/client/kce/v20201231/__init__.py +0 -0
  90. ksyun/client/{slb/v20171210 → kce/v20201231}/client.py +10 -12
  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 +215 -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 +514 -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 +54 -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 +353 -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 +215 -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 +353 -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 +238 -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 +1020 -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 +1526 -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 +31 -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 +31 -0
  130. ksyun/client/kcs/v20240701/models.py +23 -0
  131. ksyun/client/kead/v20200101/client.py +48 -4
  132. ksyun/client/kead/v20200101/models.py +52 -42
  133. ksyun/client/kec/v20160304/client.py +890 -223
  134. ksyun/client/kec/v20160304/models.py +1377 -140
  135. ksyun/client/ked/__init__.py +0 -0
  136. ksyun/client/ked/v1/__init__.py +0 -0
  137. ksyun/client/ked/v1/client.py +1020 -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 +192 -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 +192 -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 +692 -0
  150. ksyun/client/kfw/v20160304/models.py +1029 -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 +31 -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 +192 -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 +376 -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 +192 -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 +537 -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 +169 -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 +445 -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 +399 -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 +396 -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 +2101 -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 +238 -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 +307 -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 +445 -0
  199. ksyun/client/milvus/v20231010/models.py +520 -0
  200. ksyun/client/mongodb/v20170101/client.py +312 -84
  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 +31 -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 +54 -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 +31 -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 +284 -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 +54 -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 +121 -0
  220. ksyun/client/monitor/v20250101/models.py +188 -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 +813 -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 +1158 -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 +445 -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/{bill_union/v20211209 → relyt/v20240117}/client.py +10 -12
  236. ksyun/client/relyt/v20240117/models.py +23 -0
  237. ksyun/client/resourcemanager/v20210320/client.py +16 -18
  238. ksyun/client/sks/v20151101/client.py +11 -13
  239. ksyun/client/sks/v20151101/models.py +28 -2
  240. ksyun/client/slb/v20160304/client.py +1099 -112
  241. ksyun/client/slb/v20160304/models.py +1697 -24
  242. ksyun/client/slb/v20250430/__init__.py +0 -0
  243. ksyun/client/slb/v20250430/client.py +813 -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 +1066 -0
  248. ksyun/client/sqlserver/v20190425/models.py +1528 -0
  249. ksyun/client/sts/v20151101/client.py +23 -2
  250. ksyun/client/sts/v20151101/models.py +54 -1
  251. ksyun/client/tagv2/v20200901/client.py +60 -16
  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 +123 -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 +928 -0
  260. ksyun/client/tidb/v20210520/models.py +1162 -0
  261. ksyun/client/trade/v20200114/client.py +2 -4
  262. ksyun/client/trade/v20200831/client.py +2 -4
  263. ksyun/client/trade/v20250220/__init__.py +0 -0
  264. ksyun/client/trade/v20250220/client.py +100 -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 +100 -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 +31 -0
  271. ksyun/client/trade/v20250828/models.py +81 -0
  272. ksyun/client/vpc/v20160304/client.py +1377 -229
  273. ksyun/client/vpc/v20160304/models.py +1540 -138
  274. ksyun/client/waf/__init__.py +0 -0
  275. ksyun/client/waf/v20200707/__init__.py +0 -0
  276. ksyun/client/waf/v20200707/client.py +468 -0
  277. ksyun/client/waf/v20200707/models.py +738 -0
  278. ksyun/common/abstract_client.py +57 -21
  279. ksyun/common/abstract_model.py +3 -3
  280. ksyun/common/common_client.py +2 -0
  281. ksyun/common/credential.py +2 -0
  282. ksyun/common/exception/ksyun_sdk_exception.py +11 -7
  283. ksyun/common/http/request.py +45 -6
  284. ksyun/common/profile/client_profile.py +3 -0
  285. ksyun/common/profile/http_profile.py +28 -1
  286. kingsoftcloud_sdk_python-1.1.1.dist-info/METADATA +0 -47
  287. kingsoftcloud_sdk_python-1.1.1.dist-info/RECORD +0 -105
  288. ksyun/client/bill_union/v20211209/models.py +0 -38
  289. ksyun/client/slb/v20171210/models.py +0 -33
  290. ksyun/common/sign.py +0 -33
  291. {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info/licenses}/LICENSE +0 -0
  292. {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
  293. /ksyun/client/{bill_union/v20211209 → aicp}/__init__.py +0 -0
  294. /ksyun/client/{slb/v20171210 → aicp/v20240612}/__init__.py +0 -0
@@ -0,0 +1,1099 @@
1
+ from ksyun.common.abstract_model import AbstractModel
2
+
3
+ class DescribeClusterInstanceRequest(AbstractModel):
4
+ """DescribeClusterInstance请求参数结构体
5
+ """
6
+
7
+ def __init__(self):
8
+ r"""查询集群节点列表
9
+ :param ClusterId: 集群id
10
+ :type PathPrefix: String
11
+ :param MaxResults: 单次调用所返回的最大实例数目,默认10,最大50。
12
+ :type PathPrefix: Int
13
+ :param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0。
14
+ :type PathPrefix: Int
15
+ :param Filter:
16
+ :type PathPrefix: Filter
17
+ :param Search: 模糊匹配,可以匹配如下字段:<br>主网卡私有IP(PrivateIpAddress)。
18
+ :type PathPrefix: String
19
+ """
20
+ self.ClusterId = None
21
+ self.MaxResults = None
22
+ self.Marker = None
23
+ self.Filter = None
24
+ self.Search = None
25
+
26
+ def _deserialize(self, params):
27
+ if params.get("ClusterId"):
28
+ self.ClusterId = params.get("ClusterId")
29
+ if params.get("MaxResults"):
30
+ self.MaxResults = params.get("MaxResults")
31
+ if params.get("Marker"):
32
+ self.Marker = params.get("Marker")
33
+ if params.get("Filter"):
34
+ self.Filter = params.get("Filter")
35
+ if params.get("Search"):
36
+ self.Search = params.get("Search")
37
+
38
+
39
+ class DeleteClusterRequest(AbstractModel):
40
+ """DeleteCluster请求参数结构体
41
+ """
42
+
43
+ def __init__(self):
44
+ r"""删除集群
45
+ :param ClusterId: 集群id
46
+ :type PathPrefix: String
47
+ :param InstanceDeleteMode: 节点的删除模式,有效值:
48
+
49
+ - Terminate(默认值)销毁实例(仅针对于按量付费的云服务器,对于包年包月的云服务器和裸金属服务器不生效)
50
+ - Remove 仅把节点移除集群,实例本身不销毁
51
+ :type PathPrefix: String
52
+ """
53
+ self.ClusterId = None
54
+ self.InstanceDeleteMode = None
55
+
56
+ def _deserialize(self, params):
57
+ if params.get("ClusterId"):
58
+ self.ClusterId = params.get("ClusterId")
59
+ if params.get("InstanceDeleteMode"):
60
+ self.InstanceDeleteMode = params.get("InstanceDeleteMode")
61
+
62
+
63
+ class DownloadClusterConfigRequest(AbstractModel):
64
+ """DownloadClusterConfig请求参数结构体
65
+ """
66
+
67
+ def __init__(self):
68
+ r"""下载集群配置文件
69
+ :param ClusterId: 集群id
70
+ :type PathPrefix: String
71
+ :param IsPublic: 获取的config类型<br>true:公网访问config文件<br>false:VPC内网config文件<br>默认值:true
72
+ :type PathPrefix: Boolean
73
+ """
74
+ self.ClusterId = None
75
+ self.IsPublic = None
76
+
77
+ def _deserialize(self, params):
78
+ if params.get("ClusterId"):
79
+ self.ClusterId = params.get("ClusterId")
80
+ if params.get("IsPublic"):
81
+ self.IsPublic = params.get("IsPublic")
82
+
83
+
84
+ class ModifyClusterInfoRequest(AbstractModel):
85
+ """ModifyClusterInfo请求参数结构体
86
+ """
87
+
88
+ def __init__(self):
89
+ r"""修改集群基本信息
90
+ :param ClusterId: 集群id
91
+ :type PathPrefix: String
92
+ :param ClusterName: 集群名称
93
+ :type PathPrefix: String
94
+ :param ClusterDesc: 集群描述信息
95
+ :type PathPrefix: String
96
+ :param EnableKMSE: 是否支持微服务
97
+
98
+ true:支持
99
+
100
+ false:不支持
101
+ :type PathPrefix: Boolean
102
+ :param ControlPlaneLog: 支持对托管集群控制面日志采集配置进行全量更新
103
+ :type PathPrefix: Object
104
+ """
105
+ self.ClusterId = None
106
+ self.ClusterName = None
107
+ self.ClusterDesc = None
108
+ self.EnableKMSE = None
109
+ self.ControlPlaneLog = None
110
+
111
+ def _deserialize(self, params):
112
+ if params.get("ClusterId"):
113
+ self.ClusterId = params.get("ClusterId")
114
+ if params.get("ClusterName"):
115
+ self.ClusterName = params.get("ClusterName")
116
+ if params.get("ClusterDesc"):
117
+ self.ClusterDesc = params.get("ClusterDesc")
118
+ if params.get("EnableKMSE"):
119
+ self.EnableKMSE = params.get("EnableKMSE")
120
+ if params.get("ControlPlaneLog"):
121
+ self.ControlPlaneLog = params.get("ControlPlaneLog")
122
+
123
+
124
+ class DescribeInstanceImageRequest(AbstractModel):
125
+ """DescribeInstanceImage请求参数结构体
126
+ """
127
+
128
+ def __init__(self):
129
+ r"""获取容器服务支持的节点操作系统
130
+ """
131
+
132
+ def _deserialize(self, params):
133
+ return
134
+
135
+
136
+ class AddClusterInstancesRequest(AbstractModel):
137
+ """AddClusterInstances请求参数结构体
138
+ """
139
+
140
+ def __init__(self):
141
+ r"""新增节点
142
+ :param ClusterId: 集群id
143
+ :type PathPrefix: String
144
+ :param InstanceSet: 建议仅填写一条InstanceSet数据,不要填写多条。
145
+ :type PathPrefix: Filter
146
+ """
147
+ self.ClusterId = None
148
+ self.InstanceSet = None
149
+
150
+ def _deserialize(self, params):
151
+ if params.get("ClusterId"):
152
+ self.ClusterId = params.get("ClusterId")
153
+ if params.get("InstanceSet"):
154
+ self.InstanceSet = params.get("InstanceSet")
155
+
156
+
157
+ class DeleteClusterInstancesRequest(AbstractModel):
158
+ """DeleteClusterInstances请求参数结构体
159
+ """
160
+
161
+ def __init__(self):
162
+ r"""移除集群中的节点
163
+ :param ClusterId: 集群id
164
+ :type PathPrefix: String
165
+ :param InstanceId: 需要移除的节点id列表,只允许移除Worker节点(N的范围为1-50)。
166
+ :type PathPrefix: Filter
167
+ :param InstanceDeleteMode: 节点的删除模式,有效值:
168
+ - **Terminate**(默认值)销毁实例(仅针对于按量付费的云服务器,对于包年包月的云服务器和裸金属服务器不生效)
169
+ - **Remove** 仅把节点移除集群,实例本身不销毁。
170
+ :type PathPrefix: String
171
+ """
172
+ self.ClusterId = None
173
+ self.InstanceId = None
174
+ self.InstanceDeleteMode = None
175
+
176
+ def _deserialize(self, params):
177
+ if params.get("ClusterId"):
178
+ self.ClusterId = params.get("ClusterId")
179
+ if params.get("InstanceId"):
180
+ self.InstanceId = params.get("InstanceId")
181
+ if params.get("InstanceDeleteMode"):
182
+ self.InstanceDeleteMode = params.get("InstanceDeleteMode")
183
+
184
+
185
+ class DescribeEpcForClusterRequest(AbstractModel):
186
+ """DescribeEpcForCluster请求参数结构体
187
+ """
188
+
189
+ def __init__(self):
190
+ r"""获取支持移入集群的裸金属服务器列表
191
+ :param ClusterId: 集群id
192
+ :type PathPrefix: String
193
+ :param InstanceId: 裸金属服务器实例id
194
+ :type PathPrefix: Filter
195
+ :param Filter:
196
+ :type PathPrefix: Filter
197
+ :param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0。
198
+ :type PathPrefix: Int
199
+ :param MaxResults: 单次调用所返回的最大实例数目,默认20, 范围(1-50]。
200
+ :type PathPrefix: Int
201
+ :param OperatorType: 操作类型,可取值:AddNode,传递该值后,返回的数据则自动增加状态过滤,只返回Running、HotStandby状态的EPC实例
202
+ :type PathPrefix: String
203
+ """
204
+ self.ClusterId = None
205
+ self.InstanceId = None
206
+ self.Filter = None
207
+ self.Marker = None
208
+ self.MaxResults = None
209
+ self.OperatorType = None
210
+
211
+ def _deserialize(self, params):
212
+ if params.get("ClusterId"):
213
+ self.ClusterId = params.get("ClusterId")
214
+ if params.get("InstanceId"):
215
+ self.InstanceId = params.get("InstanceId")
216
+ if params.get("Filter"):
217
+ self.Filter = params.get("Filter")
218
+ if params.get("Marker"):
219
+ self.Marker = params.get("Marker")
220
+ if params.get("MaxResults"):
221
+ self.MaxResults = params.get("MaxResults")
222
+ if params.get("OperatorType"):
223
+ self.OperatorType = params.get("OperatorType")
224
+
225
+
226
+ class AddClusterEpcInstancesRequest(AbstractModel):
227
+ """AddClusterEpcInstances请求参数结构体
228
+ """
229
+
230
+ def __init__(self):
231
+ r"""移入裸金属服务器到集群
232
+ :param ClusterId: 集群id
233
+ :type PathPrefix: String
234
+ :param InstanceId: 移入集群的裸金属服务器实例id,即HostId
235
+
236
+ 注:参数InstanceId.N和EpcPara.N必须填写一个,不能同时填写,也不能同时为空
237
+ :type PathPrefix: Filter
238
+ :param EpcPara: 裸金属服务器产品重新安装操作系统的透传参数,json化字符串格式,详见[重装租赁裸金属服务器](https://apiexplorer.ksyun.com/#/api/44/ReinstallEpc/2015-11-01/1003)。
239
+ :type PathPrefix: Filter
240
+ :param AdvancedSetting: 节点高级设置
241
+ :type PathPrefix: Object
242
+ """
243
+ self.ClusterId = None
244
+ self.InstanceId = None
245
+ self.EpcPara = None
246
+ self.AdvancedSetting = None
247
+
248
+ def _deserialize(self, params):
249
+ if params.get("ClusterId"):
250
+ self.ClusterId = params.get("ClusterId")
251
+ if params.get("InstanceId"):
252
+ self.InstanceId = params.get("InstanceId")
253
+ if params.get("EpcPara"):
254
+ self.EpcPara = params.get("EpcPara")
255
+ if params.get("AdvancedSetting"):
256
+ self.AdvancedSetting = params.get("AdvancedSetting")
257
+
258
+
259
+ class DescribeExistedInstancesRequest(AbstractModel):
260
+ """DescribeExistedInstances请求参数结构体
261
+ """
262
+
263
+ def __init__(self):
264
+ r"""查询已经存在的云服务器
265
+ :param ClusterId: 集群id
266
+ :type PathPrefix: String
267
+ :param InstanceId: 云服务器id
268
+ :type PathPrefix: Filter
269
+ :param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0。
270
+ :type PathPrefix: Int
271
+ :param MaxResults: 单次调用所返回的最大实例数目,默认10, 范围(0-50]。
272
+ :type PathPrefix: String
273
+ :param Filter:
274
+ :type PathPrefix: Filter
275
+ :param Search: 模糊匹配,可匹配如下字段:<br>服务器名称(InstanceName)、主网卡私有IP(PrivateIpAddress)。
276
+ :type PathPrefix: String
277
+ """
278
+ self.ClusterId = None
279
+ self.InstanceId = None
280
+ self.Marker = None
281
+ self.MaxResults = None
282
+ self.Filter = None
283
+ self.Search = None
284
+
285
+ def _deserialize(self, params):
286
+ if params.get("ClusterId"):
287
+ self.ClusterId = params.get("ClusterId")
288
+ if params.get("InstanceId"):
289
+ self.InstanceId = params.get("InstanceId")
290
+ if params.get("Marker"):
291
+ self.Marker = params.get("Marker")
292
+ if params.get("MaxResults"):
293
+ self.MaxResults = params.get("MaxResults")
294
+ if params.get("Filter"):
295
+ self.Filter = params.get("Filter")
296
+ if params.get("Search"):
297
+ self.Search = params.get("Search")
298
+
299
+
300
+ class AddExistedInstancesRequest(AbstractModel):
301
+ """AddExistedInstances请求参数结构体
302
+ """
303
+
304
+ def __init__(self):
305
+ r"""添加已有的服务器
306
+ :param ClusterId: 集群id
307
+ :type PathPrefix: String
308
+ :param ExistedInstanceKecSet: 选择已有的虚拟机(包含专属云主机)作为集群的Worker节点,其中NodeRole只能是Worker。<br>N:1-99
309
+ :type PathPrefix: Filter
310
+ """
311
+ self.ClusterId = None
312
+ self.ExistedInstanceKecSet = None
313
+
314
+ def _deserialize(self, params):
315
+ if params.get("ClusterId"):
316
+ self.ClusterId = params.get("ClusterId")
317
+ if params.get("ExistedInstanceKecSet"):
318
+ self.ExistedInstanceKecSet = params.get("ExistedInstanceKecSet")
319
+
320
+
321
+ class CreateNodePoolRequest(AbstractModel):
322
+ """CreateNodePool请求参数结构体
323
+ """
324
+
325
+ def __init__(self):
326
+ r"""创建节点池
327
+ :param NodePoolName: 节点池名称<br>校验规则:2-64个字符,支持中文,英文,数字,以及特殊字符-,.!$^*()%#&+/:;<=>[]_`{
328
+ :type PathPrefix: String
329
+ :param ClusterId: 集群id
330
+ :type PathPrefix: String
331
+ :param EnableAutoScale: 是否开启弹性伸缩,有效值:<br>True:开启弹性伸缩<br>False:关闭弹性伸缩<br>默认值:False<br>注:默认未开启自动缩容,若您想开启弹性缩容,后续可在参数ScaleDownEnabled中进行配置开启
332
+ :type PathPrefix: Boolean
333
+ :param NodeTemplate: 节点模板信息
334
+ :type PathPrefix: Object
335
+ :param Label: 节点标签
336
+ :type PathPrefix: Filter
337
+ :param Taint: 节点污点
338
+ :type PathPrefix: Filter
339
+ :param MinSize: 最小节点数量,即为最小能缩容的实例数量,范围[0-50],不大于maxSize
340
+ :type PathPrefix: Int
341
+ :param MaxSize: 最大节点数量,即为最大能扩容的实例数量,范围[0-50],不小于minSize
342
+ :type PathPrefix: Int
343
+ :param DesiredCapacity: 期望节点数量,即节点池刚创建时的实例数量,必须在最小节点数量与最大节点数量之间
344
+ :type PathPrefix: Int
345
+ :param EnableDelProtection: 开启删除保护
346
+ 默认值:True
347
+ :type PathPrefix: Boolean
348
+ :param FailureAutoDelete: 开启自动删除实例
349
+ 默认值:false
350
+ :type PathPrefix: Boolean
351
+ """
352
+ self.NodePoolName = None
353
+ self.ClusterId = None
354
+ self.EnableAutoScale = None
355
+ self.NodeTemplate = None
356
+ self.Label = None
357
+ self.Taint = None
358
+ self.MinSize = None
359
+ self.MaxSize = None
360
+ self.DesiredCapacity = None
361
+ self.EnableDelProtection = None
362
+ self.FailureAutoDelete = None
363
+
364
+ def _deserialize(self, params):
365
+ if params.get("NodePoolName"):
366
+ self.NodePoolName = params.get("NodePoolName")
367
+ if params.get("ClusterId"):
368
+ self.ClusterId = params.get("ClusterId")
369
+ if params.get("EnableAutoScale"):
370
+ self.EnableAutoScale = params.get("EnableAutoScale")
371
+ if params.get("NodeTemplate"):
372
+ self.NodeTemplate = params.get("NodeTemplate")
373
+ if params.get("Label"):
374
+ self.Label = params.get("Label")
375
+ if params.get("Taint"):
376
+ self.Taint = params.get("Taint")
377
+ if params.get("MinSize"):
378
+ self.MinSize = params.get("MinSize")
379
+ if params.get("MaxSize"):
380
+ self.MaxSize = params.get("MaxSize")
381
+ if params.get("DesiredCapacity"):
382
+ self.DesiredCapacity = params.get("DesiredCapacity")
383
+ if params.get("EnableDelProtection"):
384
+ self.EnableDelProtection = params.get("EnableDelProtection")
385
+ if params.get("FailureAutoDelete"):
386
+ self.FailureAutoDelete = params.get("FailureAutoDelete")
387
+
388
+
389
+ class DescribeNodePoolRequest(AbstractModel):
390
+ """DescribeNodePool请求参数结构体
391
+ """
392
+
393
+ def __init__(self):
394
+ r"""查询节点池详细信息
395
+ :param ClusterId: 集群id
396
+ :type PathPrefix: String
397
+ :param NodePoolId: 节点池id
398
+ :type PathPrefix: Filter
399
+ :param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0
400
+ :type PathPrefix: Int
401
+ :param MaxResults: 单次调用所返回的最大实例数目,默认10, 范围(0-50]
402
+ :type PathPrefix: Int
403
+ :param NodePoolName: 节点池名称
404
+ :type PathPrefix: String
405
+ """
406
+ self.ClusterId = None
407
+ self.NodePoolId = None
408
+ self.Marker = None
409
+ self.MaxResults = None
410
+ self.NodePoolName = None
411
+
412
+ def _deserialize(self, params):
413
+ if params.get("ClusterId"):
414
+ self.ClusterId = params.get("ClusterId")
415
+ if params.get("NodePoolId"):
416
+ self.NodePoolId = params.get("NodePoolId")
417
+ if params.get("Marker"):
418
+ self.Marker = params.get("Marker")
419
+ if params.get("MaxResults"):
420
+ self.MaxResults = params.get("MaxResults")
421
+ if params.get("NodePoolName"):
422
+ self.NodePoolName = params.get("NodePoolName")
423
+
424
+
425
+ class DeleteNodePoolRequest(AbstractModel):
426
+ """DeleteNodePool请求参数结构体
427
+ """
428
+
429
+ def __init__(self):
430
+ r"""删除节点池
431
+ :param ClusterId: 集群id
432
+ :type PathPrefix: String
433
+ :param NodePoolId: 节点池id
434
+ :type PathPrefix: Filter
435
+ :param InstanceDeleteMode: 节点的删除模式,有效值:<br>- **Terminate**:销毁实例<br>- **Remove**:仅把节点移出集群,实例本身不销毁<br>默认值:Terminate
436
+ :type PathPrefix: String
437
+ """
438
+ self.ClusterId = None
439
+ self.NodePoolId = None
440
+ self.InstanceDeleteMode = None
441
+
442
+ def _deserialize(self, params):
443
+ if params.get("ClusterId"):
444
+ self.ClusterId = params.get("ClusterId")
445
+ if params.get("NodePoolId"):
446
+ self.NodePoolId = params.get("NodePoolId")
447
+ if params.get("InstanceDeleteMode"):
448
+ self.InstanceDeleteMode = params.get("InstanceDeleteMode")
449
+
450
+
451
+ class ModifyNodePoolRequest(AbstractModel):
452
+ """ModifyNodePool请求参数结构体
453
+ """
454
+
455
+ def __init__(self):
456
+ r"""修改节点池
457
+ :param ClusterId: 集群id
458
+ :type PathPrefix: String
459
+ :param NodePoolId: 节点池id
460
+ :type PathPrefix: String
461
+ :param NodePoolName: 节点池名称
462
+ :type PathPrefix: String
463
+ :param EnableAutoScale: 是否开启弹性伸缩,有效值:<br>- **False**:关闭弹性伸缩
464
+ :type PathPrefix: Boolean
465
+ :param MinSize: 最小节点数量,即为最小能缩容的实例数量,范围[0-50],不大于maxSize
466
+ :type PathPrefix: Int
467
+ :param MaxSize: 最大节点数量,即为最大能扩容的实例数量,范围[0-50],不小于minSize
468
+ :type PathPrefix: Int
469
+ :param DesiredCapacity: 期望节点数量,必须在最小节点数量与最大节点数量之间<br>注:若EnableAutoScale参数为True,不可修改该参数
470
+ :type PathPrefix: Int
471
+ :param Label: 节点标签
472
+ :type PathPrefix: Filter
473
+ :param Taint: 节点污点
474
+ :type PathPrefix: Filter
475
+ :param UpdateExistingNodes: Label、Taints更新是否对节点池内所有已有节点生效,有效值:<br>- **True**:对节点池内已有节点以及扩容出来的节点生效<br>- **False**:只对扩容出来的节点生效<br>默认值:False
476
+ :type PathPrefix: Boolean
477
+ """
478
+ self.ClusterId = None
479
+ self.NodePoolId = None
480
+ self.NodePoolName = None
481
+ self.EnableAutoScale = None
482
+ self.MinSize = None
483
+ self.MaxSize = None
484
+ self.DesiredCapacity = None
485
+ self.Label = None
486
+ self.Taint = None
487
+ self.UpdateExistingNodes = None
488
+
489
+ def _deserialize(self, params):
490
+ if params.get("ClusterId"):
491
+ self.ClusterId = params.get("ClusterId")
492
+ if params.get("NodePoolId"):
493
+ self.NodePoolId = params.get("NodePoolId")
494
+ if params.get("NodePoolName"):
495
+ self.NodePoolName = params.get("NodePoolName")
496
+ if params.get("EnableAutoScale"):
497
+ self.EnableAutoScale = params.get("EnableAutoScale")
498
+ if params.get("MinSize"):
499
+ self.MinSize = params.get("MinSize")
500
+ if params.get("MaxSize"):
501
+ self.MaxSize = params.get("MaxSize")
502
+ if params.get("DesiredCapacity"):
503
+ self.DesiredCapacity = params.get("DesiredCapacity")
504
+ if params.get("Label"):
505
+ self.Label = params.get("Label")
506
+ if params.get("Taint"):
507
+ self.Taint = params.get("Taint")
508
+ if params.get("UpdateExistingNodes"):
509
+ self.UpdateExistingNodes = params.get("UpdateExistingNodes")
510
+
511
+
512
+ class ModifyNodeTemplateRequest(AbstractModel):
513
+ """ModifyNodeTemplate请求参数结构体
514
+ """
515
+
516
+ def __init__(self):
517
+ r"""修改节点池模板
518
+ :param ClusterId: 集群id
519
+ :type PathPrefix: String
520
+ :param NodePoolId: 节点池id
521
+ :type PathPrefix: String
522
+ :param NodeTemplate: 节点模板信息<br>注:不可修改计费方式、节点池所在vpc
523
+ :type PathPrefix: Object
524
+ """
525
+ self.ClusterId = None
526
+ self.NodePoolId = None
527
+ self.NodeTemplate = None
528
+
529
+ def _deserialize(self, params):
530
+ if params.get("ClusterId"):
531
+ self.ClusterId = params.get("ClusterId")
532
+ if params.get("NodePoolId"):
533
+ self.NodePoolId = params.get("NodePoolId")
534
+ if params.get("NodeTemplate"):
535
+ self.NodeTemplate = params.get("NodeTemplate")
536
+
537
+
538
+ class ModifyNodePoolScaleUpPolicyRequest(AbstractModel):
539
+ """ModifyNodePoolScaleUpPolicy请求参数结构体
540
+ """
541
+
542
+ def __init__(self):
543
+ r"""修改节点池扩容策略
544
+ :param ClusterId: 集群id
545
+ :type PathPrefix: String
546
+ :param ScaleUpPolicy: 扩容算法,有效值:<br>- **random**<br>- **most-pods**<br>- **least-waste**<br>注:仅对开启弹性伸缩的节点池生效
547
+ :type PathPrefix: String
548
+ """
549
+ self.ClusterId = None
550
+ self.ScaleUpPolicy = None
551
+
552
+ def _deserialize(self, params):
553
+ if params.get("ClusterId"):
554
+ self.ClusterId = params.get("ClusterId")
555
+ if params.get("ScaleUpPolicy"):
556
+ self.ScaleUpPolicy = params.get("ScaleUpPolicy")
557
+
558
+
559
+ class ModifyNodePoolScaleDownPolicyRequest(AbstractModel):
560
+ """ModifyNodePoolScaleDownPolicy请求参数结构体
561
+ """
562
+
563
+ def __init__(self):
564
+ r"""修改节点池缩容策略
565
+ :param ClusterId: 集群id
566
+ :type PathPrefix: String
567
+ :param MaxEmptyBulkDelete: 缩容最大并发数,默认值10
568
+ :type PathPrefix: Int
569
+ :param ScaleDownDelayAfterAdd: 集群扩容后多少分钟开始考虑缩容条件,默认值10
570
+ :type PathPrefix: Int
571
+ :param ScaleDownEnabled: 是否启用自动缩容,有效值:<br>- **True**:开启自动缩容<br>- **False**:关闭自动缩容
572
+ :type PathPrefix: Boolean
573
+ :param ScaleDownUnneededTime: 节点满足缩容条件多少分钟后开始启动缩容,默认值10
574
+ :type PathPrefix: Int
575
+ :param ScaleDownUtilizationThreshold: 缩容阈值百分比。Node已分配资源/node可分配资源小于多少(百分比)时,开始判断缩容条件,默认值50
576
+ :type PathPrefix: Int
577
+ """
578
+ self.ClusterId = None
579
+ self.MaxEmptyBulkDelete = None
580
+ self.ScaleDownDelayAfterAdd = None
581
+ self.ScaleDownEnabled = None
582
+ self.ScaleDownUnneededTime = None
583
+ self.ScaleDownUtilizationThreshold = None
584
+
585
+ def _deserialize(self, params):
586
+ if params.get("ClusterId"):
587
+ self.ClusterId = params.get("ClusterId")
588
+ if params.get("MaxEmptyBulkDelete"):
589
+ self.MaxEmptyBulkDelete = params.get("MaxEmptyBulkDelete")
590
+ if params.get("ScaleDownDelayAfterAdd"):
591
+ self.ScaleDownDelayAfterAdd = params.get("ScaleDownDelayAfterAdd")
592
+ if params.get("ScaleDownEnabled"):
593
+ self.ScaleDownEnabled = params.get("ScaleDownEnabled")
594
+ if params.get("ScaleDownUnneededTime"):
595
+ self.ScaleDownUnneededTime = params.get("ScaleDownUnneededTime")
596
+ if params.get("ScaleDownUtilizationThreshold"):
597
+ self.ScaleDownUtilizationThreshold = params.get("ScaleDownUtilizationThreshold")
598
+
599
+
600
+ class AddClusterInstanceToNodePoolRequest(AbstractModel):
601
+ """AddClusterInstanceToNodePool请求参数结构体
602
+ """
603
+
604
+ def __init__(self):
605
+ r"""将集群内节点移入节点池
606
+ :param ClusterId: 集群id
607
+ :type PathPrefix: String
608
+ :param NodePoolId: 节点池id
609
+ :type PathPrefix: String
610
+ :param InstanceIds: 节点id
611
+ :type PathPrefix: Filter
612
+ """
613
+ self.ClusterId = None
614
+ self.NodePoolId = None
615
+ self.InstanceIds = None
616
+
617
+ def _deserialize(self, params):
618
+ if params.get("ClusterId"):
619
+ self.ClusterId = params.get("ClusterId")
620
+ if params.get("NodePoolId"):
621
+ self.NodePoolId = params.get("NodePoolId")
622
+ if params.get("InstanceIds"):
623
+ self.InstanceIds = params.get("InstanceIds")
624
+
625
+
626
+ class ProtectedFromScaleDownRequest(AbstractModel):
627
+ """ProtectedFromScaleDown请求参数结构体
628
+ """
629
+
630
+ def __init__(self):
631
+ r"""节点池节点设置缩容保护
632
+ :param ClusterId: 集群id
633
+ :type PathPrefix: String
634
+ :param NodePoolId: 节点池id
635
+ :type PathPrefix: String
636
+ :param InstanceIds: 节点id
637
+ :type PathPrefix: Filter
638
+ :param ProtectedFromScaleDown: 节点是否开启缩容保护,有效值:<br>- **True**:开启缩容保护<br>- **False**:关闭缩容保护<br>
639
+ :type PathPrefix: Boolean
640
+ """
641
+ self.ClusterId = None
642
+ self.NodePoolId = None
643
+ self.InstanceIds = None
644
+ self.ProtectedFromScaleDown = None
645
+
646
+ def _deserialize(self, params):
647
+ if params.get("ClusterId"):
648
+ self.ClusterId = params.get("ClusterId")
649
+ if params.get("NodePoolId"):
650
+ self.NodePoolId = params.get("NodePoolId")
651
+ if params.get("InstanceIds"):
652
+ self.InstanceIds = params.get("InstanceIds")
653
+ if params.get("ProtectedFromScaleDown"):
654
+ self.ProtectedFromScaleDown = params.get("ProtectedFromScaleDown")
655
+
656
+
657
+ class DeleteClusterInstancesFromNodePoolRequest(AbstractModel):
658
+ """DeleteClusterInstancesFromNodePool请求参数结构体
659
+ """
660
+
661
+ def __init__(self):
662
+ r"""移出节点池节点
663
+ :param ClusterId: 集群id
664
+ :type PathPrefix: String
665
+ :param NodePoolId: 节点池id
666
+ :type PathPrefix: String
667
+ :param InstanceIds: 节点id
668
+ :type PathPrefix: Filter
669
+ :param InstanceDeleteMode: 节点的删除模式,有效值:<br>- **Terminate**:销毁实例<br>- **Remove**:仅把节点移出集群,实例本身不销毁<br>默认值:Terminate
670
+ :type PathPrefix: Boolean
671
+ """
672
+ self.ClusterId = None
673
+ self.NodePoolId = None
674
+ self.InstanceIds = None
675
+ self.InstanceDeleteMode = None
676
+
677
+ def _deserialize(self, params):
678
+ if params.get("ClusterId"):
679
+ self.ClusterId = params.get("ClusterId")
680
+ if params.get("NodePoolId"):
681
+ self.NodePoolId = params.get("NodePoolId")
682
+ if params.get("InstanceIds"):
683
+ self.InstanceIds = params.get("InstanceIds")
684
+ if params.get("InstanceDeleteMode"):
685
+ self.InstanceDeleteMode = params.get("InstanceDeleteMode")
686
+
687
+
688
+ class DescribeEpcImageRequest(AbstractModel):
689
+ """DescribeEpcImage请求参数结构体
690
+ """
691
+
692
+ def __init__(self):
693
+ r"""获取裸金属服务器支持的系统镜像
694
+ :param ImageId: 镜像id
695
+ :type PathPrefix: Filter
696
+ """
697
+ self.ImageId = None
698
+
699
+ def _deserialize(self, params):
700
+ if params.get("ImageId"):
701
+ self.ImageId = params.get("ImageId")
702
+
703
+
704
+ class EditEventCollectingRequest(AbstractModel):
705
+ """EditEventCollecting请求参数结构体
706
+ """
707
+
708
+ def __init__(self):
709
+ r"""开启事件推送
710
+ :param ClusterId:
711
+ :type PathPrefix: String
712
+ :param EnableEventCollecting: 是否开启推送
713
+
714
+ - true 开启
715
+ - false 关闭
716
+ :type PathPrefix: Boolean
717
+ """
718
+ self.ClusterId = None
719
+ self.EnableEventCollecting = None
720
+
721
+ def _deserialize(self, params):
722
+ if params.get("ClusterId"):
723
+ self.ClusterId = params.get("ClusterId")
724
+ if params.get("EnableEventCollecting"):
725
+ self.EnableEventCollecting = params.get("EnableEventCollecting")
726
+
727
+
728
+ class DescribeNodePoolSummaryRequest(AbstractModel):
729
+ """DescribeNodePoolSummary请求参数结构体
730
+ """
731
+
732
+ def __init__(self):
733
+ r"""查询集群全量节点池的轻量级API
734
+ :param ClusterId: 集群ID
735
+ :type PathPrefix: String
736
+ """
737
+ self.ClusterId = None
738
+
739
+ def _deserialize(self, params):
740
+ if params.get("ClusterId"):
741
+ self.ClusterId = params.get("ClusterId")
742
+
743
+
744
+ class CreateLogRuleRequest(AbstractModel):
745
+ """CreateLogRule请求参数结构体
746
+ """
747
+
748
+ def __init__(self):
749
+ r"""CreateLogRule
750
+ :param ClusterId: 集群Id
751
+ :type PathPrefix: String
752
+ :param RuleName: 日志规则名称
753
+ - 不超过40个字符,只能包含小写字母、数字及分隔符("-"、"_"、"."),且必须以小写字母、数字开头和结尾
754
+ :type PathPrefix: String
755
+ :param InputConfig: 日志源
756
+ :type PathPrefix: Object
757
+ :param OutputConfig: 消费端
758
+ :type PathPrefix: Object
759
+ """
760
+ self.ClusterId = None
761
+ self.RuleName = None
762
+ self.InputConfig = None
763
+ self.OutputConfig = None
764
+
765
+ def _deserialize(self, params):
766
+ if params.get("ClusterId"):
767
+ self.ClusterId = params.get("ClusterId")
768
+ if params.get("RuleName"):
769
+ self.RuleName = params.get("RuleName")
770
+ if params.get("InputConfig"):
771
+ self.InputConfig = params.get("InputConfig")
772
+ if params.get("OutputConfig"):
773
+ self.OutputConfig = params.get("OutputConfig")
774
+
775
+
776
+ class DescribeClusterSummaryRequest(AbstractModel):
777
+ """DescribeClusterSummary请求参数结构体
778
+ """
779
+
780
+ def __init__(self):
781
+ r"""查询用户指定机房下的全量集群基础信息
782
+ """
783
+
784
+ def _deserialize(self, params):
785
+ return
786
+
787
+
788
+ class UpdateNodePoolDelProtectionRequest(AbstractModel):
789
+ """UpdateNodePoolDelProtection请求参数结构体
790
+ """
791
+
792
+ def __init__(self):
793
+ r"""UpdateNodePoolDelProtection
794
+ :param NodePoolId: 节点池Id
795
+ :type PathPrefix: String
796
+ :param EnableDelProtection: 是否开启删除保护
797
+ :type PathPrefix: Boolean
798
+ """
799
+ self.NodePoolId = None
800
+ self.EnableDelProtection = None
801
+
802
+ def _deserialize(self, params):
803
+ if params.get("NodePoolId"):
804
+ self.NodePoolId = params.get("NodePoolId")
805
+ if params.get("EnableDelProtection"):
806
+ self.EnableDelProtection = params.get("EnableDelProtection")
807
+
808
+
809
+ class DescribeReleaseRequest(AbstractModel):
810
+ """DescribeRelease请求参数结构体
811
+ """
812
+
813
+ def __init__(self):
814
+ r"""查询Helm3应用
815
+ :param ClusterId: 集群 Id
816
+ :type PathPrefix: String
817
+ :param Filter: helm应用筛选条件
818
+ :type PathPrefix: String
819
+ """
820
+ self.ClusterId = None
821
+ self.Filter = None
822
+
823
+ def _deserialize(self, params):
824
+ if params.get("ClusterId"):
825
+ self.ClusterId = params.get("ClusterId")
826
+ if params.get("Filter"):
827
+ self.Filter = params.get("Filter")
828
+
829
+
830
+ class DescribeReleaseHistoryRequest(AbstractModel):
831
+ """DescribeReleaseHistory请求参数结构体
832
+ """
833
+
834
+ def __init__(self):
835
+ r"""查询Helm3应用历史版本
836
+ :param ClusterId: 集群 Id
837
+ :type PathPrefix: String
838
+ :param ReleaseName: Helm应用名称
839
+ :type PathPrefix: String
840
+ :param Namespace: 命名空间
841
+ :type PathPrefix: String
842
+ """
843
+ self.ClusterId = None
844
+ self.ReleaseName = None
845
+ self.Namespace = None
846
+
847
+ def _deserialize(self, params):
848
+ if params.get("ClusterId"):
849
+ self.ClusterId = params.get("ClusterId")
850
+ if params.get("ReleaseName"):
851
+ self.ReleaseName = params.get("ReleaseName")
852
+ if params.get("Namespace"):
853
+ self.Namespace = params.get("Namespace")
854
+
855
+
856
+ class DescribeReleaseDetailRequest(AbstractModel):
857
+ """DescribeReleaseDetail请求参数结构体
858
+ """
859
+
860
+ def __init__(self):
861
+ r"""查询Helm3应用详情
862
+ :param ClusterId: 集群Id
863
+ :type PathPrefix: String
864
+ :param ReleaseName: helm应用名称
865
+ :type PathPrefix: String
866
+ :param Namespace: 命名空间
867
+ :type PathPrefix: String
868
+ """
869
+ self.ClusterId = None
870
+ self.ReleaseName = None
871
+ self.Namespace = None
872
+
873
+ def _deserialize(self, params):
874
+ if params.get("ClusterId"):
875
+ self.ClusterId = params.get("ClusterId")
876
+ if params.get("ReleaseName"):
877
+ self.ReleaseName = params.get("ReleaseName")
878
+ if params.get("Namespace"):
879
+ self.Namespace = params.get("Namespace")
880
+
881
+
882
+ class DeleteReleaseRequest(AbstractModel):
883
+ """DeleteRelease请求参数结构体
884
+ """
885
+
886
+ def __init__(self):
887
+ r"""删除Helm3应用
888
+ :param ClusterId: 集群 Id
889
+ :type PathPrefix: String
890
+ :param ReleaseName: 应用名称
891
+ :type PathPrefix: String
892
+ :param Namespace: 命名空间
893
+ :type PathPrefix: String
894
+ """
895
+ self.ClusterId = None
896
+ self.ReleaseName = None
897
+ self.Namespace = None
898
+
899
+ def _deserialize(self, params):
900
+ if params.get("ClusterId"):
901
+ self.ClusterId = params.get("ClusterId")
902
+ if params.get("ReleaseName"):
903
+ self.ReleaseName = params.get("ReleaseName")
904
+ if params.get("Namespace"):
905
+ self.Namespace = params.get("Namespace")
906
+
907
+
908
+ class RollbackReleaseRequest(AbstractModel):
909
+ """RollbackRelease请求参数结构体
910
+ """
911
+
912
+ def __init__(self):
913
+ r"""回滚Helm3应用
914
+ :param ClusterId: 集群 Id
915
+ :type PathPrefix: String
916
+ :param ReleaseName: 应用名称
917
+ :type PathPrefix: String
918
+ :param Namespace: 命名空间
919
+ :type PathPrefix: String
920
+ :param ReleaseVersion: 版本号
921
+ :type PathPrefix: Int
922
+ """
923
+ self.ClusterId = None
924
+ self.ReleaseName = None
925
+ self.Namespace = None
926
+ self.ReleaseVersion = None
927
+
928
+ def _deserialize(self, params):
929
+ if params.get("ClusterId"):
930
+ self.ClusterId = params.get("ClusterId")
931
+ if params.get("ReleaseName"):
932
+ self.ReleaseName = params.get("ReleaseName")
933
+ if params.get("Namespace"):
934
+ self.Namespace = params.get("Namespace")
935
+ if params.get("ReleaseVersion"):
936
+ self.ReleaseVersion = params.get("ReleaseVersion")
937
+
938
+
939
+ class InstallReleaseRequest(AbstractModel):
940
+ """InstallRelease请求参数结构体
941
+ """
942
+
943
+ def __init__(self):
944
+ r"""安装Helm3应用
945
+ :param ClusterId: 集群 Id
946
+ :type PathPrefix: String
947
+ :param Namespace: 命名空间
948
+ :type PathPrefix: String
949
+ :param ReleaseName: 应用名称
950
+ :type PathPrefix: String
951
+ :param ChartSource: Chart 来源
952
+ :type PathPrefix: String
953
+ :param ChartNamespace: Chart命名空间,ChartSource为KSYUN 时,必填
954
+ :type PathPrefix: String
955
+ :param ChartName: Chart 名称,ChartSource为KSYUN 时,必填
956
+ :type PathPrefix: String
957
+ :param ChartVersion: Chart版本,ChartSource为 KSYUN时,必填
958
+ :type PathPrefix: String
959
+ :param ChartUrl: Chart 仓库地址,ChartSource 为THIRD时,必填
960
+ :type PathPrefix: String
961
+ :param ChartRepoType: 仓库类型
962
+ :type PathPrefix: String
963
+ :param ChartRepoUsername: 仓库的用户名
964
+ ChartRepoType 为PRIVATE时,必填
965
+ :type PathPrefix: String
966
+ :param ChartRepoPassword: 仓库的密码
967
+ ChartRepoType为PRIVATE时,必填
968
+ :type PathPrefix: String
969
+ :param Values: Values.yaml文件内容
970
+ :type PathPrefix: String
971
+ """
972
+ self.ClusterId = None
973
+ self.Namespace = None
974
+ self.ReleaseName = None
975
+ self.ChartSource = None
976
+ self.ChartNamespace = None
977
+ self.ChartName = None
978
+ self.ChartVersion = None
979
+ self.ChartUrl = None
980
+ self.ChartRepoType = None
981
+ self.ChartRepoUsername = None
982
+ self.ChartRepoPassword = None
983
+ self.Values = None
984
+
985
+ def _deserialize(self, params):
986
+ if params.get("ClusterId"):
987
+ self.ClusterId = params.get("ClusterId")
988
+ if params.get("Namespace"):
989
+ self.Namespace = params.get("Namespace")
990
+ if params.get("ReleaseName"):
991
+ self.ReleaseName = params.get("ReleaseName")
992
+ if params.get("ChartSource"):
993
+ self.ChartSource = params.get("ChartSource")
994
+ if params.get("ChartNamespace"):
995
+ self.ChartNamespace = params.get("ChartNamespace")
996
+ if params.get("ChartName"):
997
+ self.ChartName = params.get("ChartName")
998
+ if params.get("ChartVersion"):
999
+ self.ChartVersion = params.get("ChartVersion")
1000
+ if params.get("ChartUrl"):
1001
+ self.ChartUrl = params.get("ChartUrl")
1002
+ if params.get("ChartRepoType"):
1003
+ self.ChartRepoType = params.get("ChartRepoType")
1004
+ if params.get("ChartRepoUsername"):
1005
+ self.ChartRepoUsername = params.get("ChartRepoUsername")
1006
+ if params.get("ChartRepoPassword"):
1007
+ self.ChartRepoPassword = params.get("ChartRepoPassword")
1008
+ if params.get("Values"):
1009
+ self.Values = params.get("Values")
1010
+
1011
+
1012
+ class UpgradeReleaseRequest(AbstractModel):
1013
+ """UpgradeRelease请求参数结构体
1014
+ """
1015
+
1016
+ def __init__(self):
1017
+ r"""安装Helm3应用
1018
+ :param ClusterId: 集群 Id
1019
+
1020
+
1021
+ :type PathPrefix: String
1022
+ :param Namespace: 命名空间
1023
+
1024
+ :type PathPrefix: String
1025
+ :param ReleaseName: 应用名称
1026
+ :type PathPrefix: String
1027
+ :param ChartSource: Chart来源
1028
+ :type PathPrefix: String
1029
+ :param ChartNamespace: Chart命名空间,ChartSource为KSYUN 时,必填
1030
+
1031
+ :type PathPrefix: String
1032
+ :param ChartName: Chart 名称,ChartSource为KSYUN 时,必填
1033
+
1034
+
1035
+ :type PathPrefix: String
1036
+ :param ChartVersion: Chart版本,ChartSource为 KSYUN时,必填
1037
+
1038
+
1039
+ :type PathPrefix: String
1040
+ :param ChartUrl: Chart 仓库地址,ChartSource 为THIRD时,必填
1041
+
1042
+
1043
+ :type PathPrefix: String
1044
+ :param ChartRepoType: 仓库类型
1045
+
1046
+
1047
+ :type PathPrefix: String
1048
+ :param ChartRepoUsername: 仓库的用户名
1049
+ ChartRepoType 为PRIVATE时,必填
1050
+ :type PathPrefix: String
1051
+ :param ChartRepoPassword:
1052
+ 仓库的密码
1053
+ ChartRepoType为PRIVATE时,必填
1054
+ :type PathPrefix: String
1055
+ :param Values: Values.yaml文件内容
1056
+
1057
+
1058
+ :type PathPrefix: String
1059
+ """
1060
+ self.ClusterId = None
1061
+ self.Namespace = None
1062
+ self.ReleaseName = None
1063
+ self.ChartSource = None
1064
+ self.ChartNamespace = None
1065
+ self.ChartName = None
1066
+ self.ChartVersion = None
1067
+ self.ChartUrl = None
1068
+ self.ChartRepoType = None
1069
+ self.ChartRepoUsername = None
1070
+ self.ChartRepoPassword = None
1071
+ self.Values = None
1072
+
1073
+ def _deserialize(self, params):
1074
+ if params.get("ClusterId"):
1075
+ self.ClusterId = params.get("ClusterId")
1076
+ if params.get("Namespace"):
1077
+ self.Namespace = params.get("Namespace")
1078
+ if params.get("ReleaseName"):
1079
+ self.ReleaseName = params.get("ReleaseName")
1080
+ if params.get("ChartSource"):
1081
+ self.ChartSource = params.get("ChartSource")
1082
+ if params.get("ChartNamespace"):
1083
+ self.ChartNamespace = params.get("ChartNamespace")
1084
+ if params.get("ChartName"):
1085
+ self.ChartName = params.get("ChartName")
1086
+ if params.get("ChartVersion"):
1087
+ self.ChartVersion = params.get("ChartVersion")
1088
+ if params.get("ChartUrl"):
1089
+ self.ChartUrl = params.get("ChartUrl")
1090
+ if params.get("ChartRepoType"):
1091
+ self.ChartRepoType = params.get("ChartRepoType")
1092
+ if params.get("ChartRepoUsername"):
1093
+ self.ChartRepoUsername = params.get("ChartRepoUsername")
1094
+ if params.get("ChartRepoPassword"):
1095
+ self.ChartRepoPassword = params.get("ChartRepoPassword")
1096
+ if params.get("Values"):
1097
+ self.Values = params.get("Values")
1098
+
1099
+