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
@@ -15,7 +15,7 @@ class EipClient(AbstractClient):
15
15
  """
16
16
  try:
17
17
  params = request._serialize()
18
- body = self.call("GetLines", params)
18
+ body = self.call_judge("GetLines", params, "application/x-www-form-urlencoded")
19
19
  response = json.loads(body)
20
20
  if "Error" not in response:
21
21
  return body
@@ -28,7 +28,7 @@ class EipClient(AbstractClient):
28
28
  if isinstance(e, KsyunSDKException):
29
29
  raise
30
30
  else:
31
- raise KsyunSDKException(e.message, e.message)
31
+ raise KsyunSDKException(message=str(e))
32
32
 
33
33
 
34
34
  def DescribeAddresses(self, request):
@@ -38,7 +38,7 @@ class EipClient(AbstractClient):
38
38
  """
39
39
  try:
40
40
  params = request._serialize()
41
- body = self.call("DescribeAddresses", params)
41
+ body = self.call_judge("DescribeAddresses", params, "application/x-www-form-urlencoded")
42
42
  response = json.loads(body)
43
43
  if "Error" not in response:
44
44
  return body
@@ -51,7 +51,7 @@ class EipClient(AbstractClient):
51
51
  if isinstance(e, KsyunSDKException):
52
52
  raise
53
53
  else:
54
- raise KsyunSDKException(e.message, e.message)
54
+ raise KsyunSDKException(message=str(e))
55
55
 
56
56
 
57
57
  def AllocateAddress(self, request):
@@ -61,7 +61,7 @@ class EipClient(AbstractClient):
61
61
  """
62
62
  try:
63
63
  params = request._serialize()
64
- body = self.call("AllocateAddress", params)
64
+ body = self.call_judge("AllocateAddress", params, "application/x-www-form-urlencoded")
65
65
  response = json.loads(body)
66
66
  if "Error" not in response:
67
67
  return body
@@ -74,7 +74,7 @@ class EipClient(AbstractClient):
74
74
  if isinstance(e, KsyunSDKException):
75
75
  raise
76
76
  else:
77
- raise KsyunSDKException(e.message, e.message)
77
+ raise KsyunSDKException(message=str(e))
78
78
 
79
79
 
80
80
  def ReleaseAddress(self, request):
@@ -84,7 +84,7 @@ class EipClient(AbstractClient):
84
84
  """
85
85
  try:
86
86
  params = request._serialize()
87
- body = self.call("ReleaseAddress", params)
87
+ body = self.call_judge("ReleaseAddress", params, "application/x-www-form-urlencoded")
88
88
  response = json.loads(body)
89
89
  if "Error" not in response:
90
90
  return body
@@ -97,7 +97,7 @@ class EipClient(AbstractClient):
97
97
  if isinstance(e, KsyunSDKException):
98
98
  raise
99
99
  else:
100
- raise KsyunSDKException(e.message, e.message)
100
+ raise KsyunSDKException(message=str(e))
101
101
 
102
102
 
103
103
  def AssociateAddress(self, request):
@@ -107,7 +107,7 @@ class EipClient(AbstractClient):
107
107
  """
108
108
  try:
109
109
  params = request._serialize()
110
- body = self.call("AssociateAddress", params)
110
+ body = self.call_judge("AssociateAddress", params, "application/x-www-form-urlencoded")
111
111
  response = json.loads(body)
112
112
  if "Error" not in response:
113
113
  return body
@@ -120,7 +120,7 @@ class EipClient(AbstractClient):
120
120
  if isinstance(e, KsyunSDKException):
121
121
  raise
122
122
  else:
123
- raise KsyunSDKException(e.message, e.message)
123
+ raise KsyunSDKException(message=str(e))
124
124
 
125
125
 
126
126
  def DisassociateAddress(self, request):
@@ -130,7 +130,7 @@ class EipClient(AbstractClient):
130
130
  """
131
131
  try:
132
132
  params = request._serialize()
133
- body = self.call("DisassociateAddress", params)
133
+ body = self.call_judge("DisassociateAddress", params, "application/x-www-form-urlencoded")
134
134
  response = json.loads(body)
135
135
  if "Error" not in response:
136
136
  return body
@@ -143,7 +143,7 @@ class EipClient(AbstractClient):
143
143
  if isinstance(e, KsyunSDKException):
144
144
  raise
145
145
  else:
146
- raise KsyunSDKException(e.message, e.message)
146
+ raise KsyunSDKException(message=str(e))
147
147
 
148
148
 
149
149
  def ModifyAddress(self, request):
@@ -153,7 +153,7 @@ class EipClient(AbstractClient):
153
153
  """
154
154
  try:
155
155
  params = request._serialize()
156
- body = self.call("ModifyAddress", params)
156
+ body = self.call_judge("ModifyAddress", params, "application/x-www-form-urlencoded")
157
157
  response = json.loads(body)
158
158
  if "Error" not in response:
159
159
  return body
@@ -166,6 +166,119 @@ class EipClient(AbstractClient):
166
166
  if isinstance(e, KsyunSDKException):
167
167
  raise
168
168
  else:
169
- raise KsyunSDKException(e.message, e.message)
169
+ raise KsyunSDKException(message=str(e))
170
170
 
171
171
 
172
+ def CreateEipPool(self, request):
173
+ """创建EIP地址池
174
+ :param request: Request instance for CreateEipPool.
175
+ :type request: :class:`ksyun.client.eip.v20160304.models.CreateEipPoolRequest`
176
+ """
177
+ try:
178
+ params = request._serialize()
179
+ body = self.call_judge("CreateEipPool", params, "application/x-www-form-urlencoded")
180
+ response = json.loads(body)
181
+ if "Error" not in response:
182
+ return body
183
+ else:
184
+ code = response["Error"]["Code"]
185
+ message = response["Error"]["Message"]
186
+ req_id = response["RequestId"]
187
+ raise KsyunSDKException(code, message, req_id)
188
+ except Exception as e:
189
+ if isinstance(e, KsyunSDKException):
190
+ raise
191
+ else:
192
+ raise KsyunSDKException(message=str(e))
193
+
194
+
195
+ def DeleteEipPool(self, request):
196
+ """删除EIP地址池
197
+ :param request: Request instance for DeleteEipPool.
198
+ :type request: :class:`ksyun.client.eip.v20160304.models.DeleteEipPoolRequest`
199
+ """
200
+ try:
201
+ params = request._serialize()
202
+ body = self.call_judge("DeleteEipPool", params, "application/x-www-form-urlencoded")
203
+ response = json.loads(body)
204
+ if "Error" not in response:
205
+ return body
206
+ else:
207
+ code = response["Error"]["Code"]
208
+ message = response["Error"]["Message"]
209
+ req_id = response["RequestId"]
210
+ raise KsyunSDKException(code, message, req_id)
211
+ except Exception as e:
212
+ if isinstance(e, KsyunSDKException):
213
+ raise
214
+ else:
215
+ raise KsyunSDKException(message=str(e))
216
+
217
+
218
+ def ModifyEipPool(self, request):
219
+ """修改EIP地址池
220
+ :param request: Request instance for ModifyEipPool.
221
+ :type request: :class:`ksyun.client.eip.v20160304.models.ModifyEipPoolRequest`
222
+ """
223
+ try:
224
+ params = request._serialize()
225
+ body = self.call_judge("ModifyEipPool", params, "application/x-www-form-urlencoded")
226
+ response = json.loads(body)
227
+ if "Error" not in response:
228
+ return body
229
+ else:
230
+ code = response["Error"]["Code"]
231
+ message = response["Error"]["Message"]
232
+ req_id = response["RequestId"]
233
+ raise KsyunSDKException(code, message, req_id)
234
+ except Exception as e:
235
+ if isinstance(e, KsyunSDKException):
236
+ raise
237
+ else:
238
+ raise KsyunSDKException(message=str(e))
239
+
240
+
241
+ def DescribeEipPools(self, request):
242
+ """查询EIP地址池
243
+ :param request: Request instance for DescribeEipPools.
244
+ :type request: :class:`ksyun.client.eip.v20160304.models.DescribeEipPoolsRequest`
245
+ """
246
+ try:
247
+ params = request._serialize()
248
+ body = self.call_judge("DescribeEipPools", params, "application/x-www-form-urlencoded")
249
+ response = json.loads(body)
250
+ if "Error" not in response:
251
+ return body
252
+ else:
253
+ code = response["Error"]["Code"]
254
+ message = response["Error"]["Message"]
255
+ req_id = response["RequestId"]
256
+ raise KsyunSDKException(code, message, req_id)
257
+ except Exception as e:
258
+ if isinstance(e, KsyunSDKException):
259
+ raise
260
+ else:
261
+ raise KsyunSDKException(message=str(e))
262
+
263
+
264
+ def DescribeIpExistEipPoolUse(self, request):
265
+ """查询IP是否在地址池中使用
266
+ :param request: Request instance for DescribeIpExistEipPoolUse.
267
+ :type request: :class:`ksyun.client.eip.v20160304.models.DescribeIpExistEipPoolUseRequest`
268
+ """
269
+ try:
270
+ params = request._serialize()
271
+ body = self.call_judge("DescribeIpExistEipPoolUse", params, "application/x-www-form-urlencoded")
272
+ response = json.loads(body)
273
+ if "Error" not in response:
274
+ return body
275
+ else:
276
+ code = response["Error"]["Code"]
277
+ message = response["Error"]["Message"]
278
+ req_id = response["RequestId"]
279
+ raise KsyunSDKException(code, message, req_id)
280
+ except Exception as e:
281
+ if isinstance(e, KsyunSDKException):
282
+ raise
283
+ else:
284
+ raise KsyunSDKException(message=str(e))
@@ -6,10 +6,29 @@ class GetLinesRequest(AbstractModel):
6
6
 
7
7
  def __init__(self):
8
8
  r"""获取用户可选链路信息
9
+ :param Uuid: 线路类型的ID
10
+ :type PathPrefix: String
11
+ :param Name: 线路LineName
12
+ :type PathPrefix: String
13
+ :param IpVersion: IpVersion版本,ipv6|ipv4|all,不传查询ipv4
14
+ :type PathPrefix: String
15
+ :param Type: LineType,线路类型,例如:Public
16
+ :type PathPrefix: String
9
17
  """
18
+ self.Uuid = None
19
+ self.Name = None
20
+ self.IpVersion = None
21
+ self.Type = None
10
22
 
11
23
  def _deserialize(self, params):
12
- return
24
+ if params.get("Uuid"):
25
+ self.Uuid = params.get("Uuid")
26
+ if params.get("Name"):
27
+ self.Name = params.get("Name")
28
+ if params.get("IpVersion"):
29
+ self.IpVersion = params.get("IpVersion")
30
+ if params.get("Type"):
31
+ self.Type = params.get("Type")
13
32
 
14
33
 
15
34
  class DescribeAddressesRequest(AbstractModel):
@@ -24,6 +43,12 @@ class DescribeAddressesRequest(AbstractModel):
24
43
  :type PathPrefix: Filter
25
44
  :param Filter: 筛选Filter
26
45
  :type PathPrefix: Filter
46
+ :param IsContainTag: 是否在返回值中包含资源标签信息
47
+ :type PathPrefix: Boolean
48
+ :param TagKey: 多个标签的键
49
+ :type PathPrefix: Filter
50
+ :param TagKV: 多个标签的键
51
+ :type PathPrefix: Filter
27
52
  :param MaxResults: 单次调用可返回的最大条目数量
28
53
  :type PathPrefix: Int
29
54
  :param NextToken: 获取另一页返回结果的 token.
@@ -36,6 +61,9 @@ class DescribeAddressesRequest(AbstractModel):
36
61
  self.ProjectId = None
37
62
  self.AllocationId = None
38
63
  self.Filter = None
64
+ self.IsContainTag = None
65
+ self.TagKey = None
66
+ self.TagKV = None
39
67
  self.MaxResults = None
40
68
  self.NextToken = None
41
69
  self.State = None
@@ -48,6 +76,12 @@ class DescribeAddressesRequest(AbstractModel):
48
76
  self.AllocationId = params.get("AllocationId")
49
77
  if params.get("Filter"):
50
78
  self.Filter = params.get("Filter")
79
+ if params.get("IsContainTag"):
80
+ self.IsContainTag = params.get("IsContainTag")
81
+ if params.get("TagKey"):
82
+ self.TagKey = params.get("TagKey")
83
+ if params.get("TagKV"):
84
+ self.TagKV = params.get("TagKV")
51
85
  if params.get("MaxResults"):
52
86
  self.MaxResults = params.get("MaxResults")
53
87
  if params.get("NextToken"):
@@ -195,3 +229,63 @@ class ModifyAddressRequest(AbstractModel):
195
229
  self.BandWidth = params.get("BandWidth")
196
230
 
197
231
 
232
+ class CreateEipPoolRequest(AbstractModel):
233
+ """CreateEipPool请求参数结构体
234
+ """
235
+
236
+ def __init__(self):
237
+ r"""创建EIP地址池
238
+ """
239
+
240
+ def _deserialize(self, params):
241
+ return
242
+
243
+
244
+ class DeleteEipPoolRequest(AbstractModel):
245
+ """DeleteEipPool请求参数结构体
246
+ """
247
+
248
+ def __init__(self):
249
+ r"""删除EIP地址池
250
+ """
251
+
252
+ def _deserialize(self, params):
253
+ return
254
+
255
+
256
+ class ModifyEipPoolRequest(AbstractModel):
257
+ """ModifyEipPool请求参数结构体
258
+ """
259
+
260
+ def __init__(self):
261
+ r"""修改EIP地址池
262
+ """
263
+
264
+ def _deserialize(self, params):
265
+ return
266
+
267
+
268
+ class DescribeEipPoolsRequest(AbstractModel):
269
+ """DescribeEipPools请求参数结构体
270
+ """
271
+
272
+ def __init__(self):
273
+ r"""查询EIP地址池
274
+ """
275
+
276
+ def _deserialize(self, params):
277
+ return
278
+
279
+
280
+ class DescribeIpExistEipPoolUseRequest(AbstractModel):
281
+ """DescribeIpExistEipPoolUse请求参数结构体
282
+ """
283
+
284
+ def __init__(self):
285
+ r"""查询IP是否在地址池中使用
286
+ """
287
+
288
+ def _deserialize(self, params):
289
+ return
290
+
291
+