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
@@ -15,7 +15,7 @@ class IamClient(AbstractClient):
15
15
  """
16
16
  try:
17
17
  params = request._serialize()
18
- body = self.call("CreateUser", params)
18
+ body = self.call_judge("CreateUser", params, "application/x-www-form-urlencoded")
19
19
  response = json.loads(body)
20
20
  if "Error" not in response:
21
21
  return body
@@ -38,7 +38,7 @@ class IamClient(AbstractClient):
38
38
  """
39
39
  try:
40
40
  params = request._serialize()
41
- body = self.call("ListUsers", params)
41
+ body = self.call_judge("ListUsers", params, "application/x-www-form-urlencoded")
42
42
  response = json.loads(body)
43
43
  if "Error" not in response:
44
44
  return body
@@ -61,7 +61,7 @@ class IamClient(AbstractClient):
61
61
  """
62
62
  try:
63
63
  params = request._serialize()
64
- body = self.call("UpdateUser", params)
64
+ body = self.call_judge("UpdateUser", params, "application/x-www-form-urlencoded")
65
65
  response = json.loads(body)
66
66
  if "Error" not in response:
67
67
  return body
@@ -84,7 +84,7 @@ class IamClient(AbstractClient):
84
84
  """
85
85
  try:
86
86
  params = request._serialize()
87
- body = self.call("GetUser", params)
87
+ body = self.call_judge("GetUser", params, "application/x-www-form-urlencoded")
88
88
  response = json.loads(body)
89
89
  if "Error" not in response:
90
90
  return body
@@ -107,7 +107,30 @@ class IamClient(AbstractClient):
107
107
  """
108
108
  try:
109
109
  params = request._serialize()
110
- body = self.call("DeleteUser", params)
110
+ body = self.call_judge("DeleteUser", params, "application/x-www-form-urlencoded")
111
+ response = json.loads(body)
112
+ if "Error" not in response:
113
+ return body
114
+ else:
115
+ code = response["Error"]["Code"]
116
+ message = response["Error"]["Message"]
117
+ req_id = response["RequestId"]
118
+ raise KsyunSDKException(code, message, req_id)
119
+ except Exception as e:
120
+ if isinstance(e, KsyunSDKException):
121
+ raise
122
+ else:
123
+ raise KsyunSDKException(e.message, e.message)
124
+
125
+
126
+ def DetachUserPolicy(self, request):
127
+ """解绑IAM用户策略
128
+ :param request: Request instance for DetachUserPolicy.
129
+ :type request: :class:`ksyun.client.iam.v20151101.models.DetachUserPolicyRequest`
130
+ """
131
+ try:
132
+ params = request._serialize()
133
+ body = self.call_judge("DetachUserPolicy", params, "application/x-www-form-urlencoded")
111
134
  response = json.loads(body)
112
135
  if "Error" not in response:
113
136
  return body
@@ -130,7 +153,7 @@ class IamClient(AbstractClient):
130
153
  """
131
154
  try:
132
155
  params = request._serialize()
133
- body = self.call("ListAttachedUserPolicies", params)
156
+ body = self.call_judge("ListAttachedUserPolicies", params, "application/x-www-form-urlencoded")
134
157
  response = json.loads(body)
135
158
  if "Error" not in response:
136
159
  return body
@@ -153,7 +176,7 @@ class IamClient(AbstractClient):
153
176
  """
154
177
  try:
155
178
  params = request._serialize()
156
- body = self.call("ListPolicyVersions", params)
179
+ body = self.call_judge("ListPolicyVersions", params, "application/x-www-form-urlencoded")
157
180
  response = json.loads(body)
158
181
  if "Error" not in response:
159
182
  return body
@@ -176,7 +199,7 @@ class IamClient(AbstractClient):
176
199
  """
177
200
  try:
178
201
  params = request._serialize()
179
- body = self.call("SetDefaultPolicyVersion", params)
202
+ body = self.call_judge("SetDefaultPolicyVersion", params, "application/x-www-form-urlencoded")
180
203
  response = json.loads(body)
181
204
  if "Error" not in response:
182
205
  return body
@@ -199,7 +222,7 @@ class IamClient(AbstractClient):
199
222
  """
200
223
  try:
201
224
  params = request._serialize()
202
- body = self.call("AttachUserPolicy", params)
225
+ body = self.call_judge("AttachUserPolicy", params, "application/x-www-form-urlencoded")
203
226
  response = json.loads(body)
204
227
  if "Error" not in response:
205
228
  return body
@@ -222,7 +245,7 @@ class IamClient(AbstractClient):
222
245
  """
223
246
  try:
224
247
  params = request._serialize()
225
- body = self.call("DeletePolicyVersion", params)
248
+ body = self.call_judge("DeletePolicyVersion", params, "application/x-www-form-urlencoded")
226
249
  response = json.loads(body)
227
250
  if "Error" not in response:
228
251
  return body
@@ -245,7 +268,7 @@ class IamClient(AbstractClient):
245
268
  """
246
269
  try:
247
270
  params = request._serialize()
248
- body = self.call("GetPolicyVersion", params)
271
+ body = self.call_judge("GetPolicyVersion", params, "application/x-www-form-urlencoded")
249
272
  response = json.loads(body)
250
273
  if "Error" not in response:
251
274
  return body
@@ -268,7 +291,7 @@ class IamClient(AbstractClient):
268
291
  """
269
292
  try:
270
293
  params = request._serialize()
271
- body = self.call("CreatePolicyVersion", params)
294
+ body = self.call_judge("CreatePolicyVersion", params, "application/x-www-form-urlencoded")
272
295
  response = json.loads(body)
273
296
  if "Error" not in response:
274
297
  return body
@@ -291,7 +314,7 @@ class IamClient(AbstractClient):
291
314
  """
292
315
  try:
293
316
  params = request._serialize()
294
- body = self.call("ListPolicies", params)
317
+ body = self.call_judge("ListPolicies", params, "application/x-www-form-urlencoded")
295
318
  response = json.loads(body)
296
319
  if "Error" not in response:
297
320
  return body
@@ -314,7 +337,7 @@ class IamClient(AbstractClient):
314
337
  """
315
338
  try:
316
339
  params = request._serialize()
317
- body = self.call("GetPolicy", params)
340
+ body = self.call_judge("GetPolicy", params, "application/x-www-form-urlencoded")
318
341
  response = json.loads(body)
319
342
  if "Error" not in response:
320
343
  return body
@@ -337,7 +360,7 @@ class IamClient(AbstractClient):
337
360
  """
338
361
  try:
339
362
  params = request._serialize()
340
- body = self.call("DeletePolicy", params)
363
+ body = self.call_judge("DeletePolicy", params, "application/x-www-form-urlencoded")
341
364
  response = json.loads(body)
342
365
  if "Error" not in response:
343
366
  return body
@@ -360,7 +383,7 @@ class IamClient(AbstractClient):
360
383
  """
361
384
  try:
362
385
  params = request._serialize()
363
- body = self.call("CreatePolicy", params)
386
+ body = self.call_judge("CreatePolicy", params, "application/x-www-form-urlencoded")
364
387
  response = json.loads(body)
365
388
  if "Error" not in response:
366
389
  return body
@@ -383,7 +406,7 @@ class IamClient(AbstractClient):
383
406
  """
384
407
  try:
385
408
  params = request._serialize()
386
- body = self.call("ChangePassword", params)
409
+ body = self.call_judge("ChangePassword", params, "application/x-www-form-urlencoded")
387
410
  response = json.loads(body)
388
411
  if "Error" not in response:
389
412
  return body
@@ -406,7 +429,7 @@ class IamClient(AbstractClient):
406
429
  """
407
430
  try:
408
431
  params = request._serialize()
409
- body = self.call("UpdateLoginProfile", params)
432
+ body = self.call_judge("UpdateLoginProfile", params, "application/x-www-form-urlencoded")
410
433
  response = json.loads(body)
411
434
  if "Error" not in response:
412
435
  return body
@@ -429,7 +452,7 @@ class IamClient(AbstractClient):
429
452
  """
430
453
  try:
431
454
  params = request._serialize()
432
- body = self.call("GetLoginProfile", params)
455
+ body = self.call_judge("GetLoginProfile", params, "application/x-www-form-urlencoded")
433
456
  response = json.loads(body)
434
457
  if "Error" not in response:
435
458
  return body
@@ -452,7 +475,7 @@ class IamClient(AbstractClient):
452
475
  """
453
476
  try:
454
477
  params = request._serialize()
455
- body = self.call("CreateAccessKey", params)
478
+ body = self.call_judge("CreateAccessKey", params, "application/x-www-form-urlencoded")
456
479
  response = json.loads(body)
457
480
  if "Error" not in response:
458
481
  return body
@@ -475,7 +498,7 @@ class IamClient(AbstractClient):
475
498
  """
476
499
  try:
477
500
  params = request._serialize()
478
- body = self.call("ListAccessKeys", params)
501
+ body = self.call_judge("ListAccessKeys", params, "application/x-www-form-urlencoded")
479
502
  response = json.loads(body)
480
503
  if "Error" not in response:
481
504
  return body
@@ -498,7 +521,7 @@ class IamClient(AbstractClient):
498
521
  """
499
522
  try:
500
523
  params = request._serialize()
501
- body = self.call("UpdateAccessKey", params)
524
+ body = self.call_judge("UpdateAccessKey", params, "application/x-www-form-urlencoded")
502
525
  response = json.loads(body)
503
526
  if "Error" not in response:
504
527
  return body
@@ -521,7 +544,7 @@ class IamClient(AbstractClient):
521
544
  """
522
545
  try:
523
546
  params = request._serialize()
524
- body = self.call("DeleteAccessKey", params)
547
+ body = self.call_judge("DeleteAccessKey", params, "application/x-www-form-urlencoded")
525
548
  response = json.loads(body)
526
549
  if "Error" not in response:
527
550
  return body
@@ -544,7 +567,7 @@ class IamClient(AbstractClient):
544
567
  """
545
568
  try:
546
569
  params = request._serialize()
547
- body = self.call("ListVirtualMFADevices", params)
570
+ body = self.call_judge("ListVirtualMFADevices", params, "application/x-www-form-urlencoded")
548
571
  response = json.loads(body)
549
572
  if "Error" not in response:
550
573
  return body
@@ -567,7 +590,7 @@ class IamClient(AbstractClient):
567
590
  """
568
591
  try:
569
592
  params = request._serialize()
570
- body = self.call("EnableMFADevice", params)
593
+ body = self.call_judge("EnableMFADevice", params, "application/x-www-form-urlencoded")
571
594
  response = json.loads(body)
572
595
  if "Error" not in response:
573
596
  return body
@@ -590,7 +613,7 @@ class IamClient(AbstractClient):
590
613
  """
591
614
  try:
592
615
  params = request._serialize()
593
- body = self.call("DeactivateMFADevice", params)
616
+ body = self.call_judge("DeactivateMFADevice", params, "application/x-www-form-urlencoded")
594
617
  response = json.loads(body)
595
618
  if "Error" not in response:
596
619
  return body
@@ -613,7 +636,7 @@ class IamClient(AbstractClient):
613
636
  """
614
637
  try:
615
638
  params = request._serialize()
616
- body = self.call("GetVirtualMFADevice", params)
639
+ body = self.call_judge("GetVirtualMFADevice", params, "application/x-www-form-urlencoded")
617
640
  response = json.loads(body)
618
641
  if "Error" not in response:
619
642
  return body
@@ -636,7 +659,7 @@ class IamClient(AbstractClient):
636
659
  """
637
660
  try:
638
661
  params = request._serialize()
639
- body = self.call("CreateRole", params)
662
+ body = self.call_judge("CreateRole", params, "application/x-www-form-urlencoded")
640
663
  response = json.loads(body)
641
664
  if "Error" not in response:
642
665
  return body
@@ -659,7 +682,7 @@ class IamClient(AbstractClient):
659
682
  """
660
683
  try:
661
684
  params = request._serialize()
662
- body = self.call("DeleteRole", params)
685
+ body = self.call_judge("DeleteRole", params, "application/x-www-form-urlencoded")
663
686
  response = json.loads(body)
664
687
  if "Error" not in response:
665
688
  return body
@@ -682,7 +705,7 @@ class IamClient(AbstractClient):
682
705
  """
683
706
  try:
684
707
  params = request._serialize()
685
- body = self.call("GetRole", params)
708
+ body = self.call_judge("GetRole", params, "application/x-www-form-urlencoded")
686
709
  response = json.loads(body)
687
710
  if "Error" not in response:
688
711
  return body
@@ -705,7 +728,7 @@ class IamClient(AbstractClient):
705
728
  """
706
729
  try:
707
730
  params = request._serialize()
708
- body = self.call("ListRoles", params)
731
+ body = self.call_judge("ListRoles", params, "application/x-www-form-urlencoded")
709
732
  response = json.loads(body)
710
733
  if "Error" not in response:
711
734
  return body
@@ -728,7 +751,7 @@ class IamClient(AbstractClient):
728
751
  """
729
752
  try:
730
753
  params = request._serialize()
731
- body = self.call("AttachRolePolicy", params)
754
+ body = self.call_judge("AttachRolePolicy", params, "application/x-www-form-urlencoded")
732
755
  response = json.loads(body)
733
756
  if "Error" not in response:
734
757
  return body
@@ -751,7 +774,7 @@ class IamClient(AbstractClient):
751
774
  """
752
775
  try:
753
776
  params = request._serialize()
754
- body = self.call("DetachRolePolicy", params)
777
+ body = self.call_judge("DetachRolePolicy", params, "application/x-www-form-urlencoded")
755
778
  response = json.loads(body)
756
779
  if "Error" not in response:
757
780
  return body
@@ -774,7 +797,7 @@ class IamClient(AbstractClient):
774
797
  """
775
798
  try:
776
799
  params = request._serialize()
777
- body = self.call("ListAttachedRolePolicies", params)
800
+ body = self.call_judge("ListAttachedRolePolicies", params, "application/x-www-form-urlencoded")
778
801
  response = json.loads(body)
779
802
  if "Error" not in response:
780
803
  return body
@@ -797,7 +820,7 @@ class IamClient(AbstractClient):
797
820
  """
798
821
  try:
799
822
  params = request._serialize()
800
- body = self.call("UpdateRoleTrustAccounts", params)
823
+ body = self.call_judge("UpdateRoleTrustAccounts", params, "application/x-www-form-urlencoded")
801
824
  response = json.loads(body)
802
825
  if "Error" not in response:
803
826
  return body
@@ -820,7 +843,7 @@ class IamClient(AbstractClient):
820
843
  """
821
844
  try:
822
845
  params = request._serialize()
823
- body = self.call("CreateProject", params)
846
+ body = self.call_judge("CreateProject", params, "application/x-www-form-urlencoded")
824
847
  response = json.loads(body)
825
848
  if "Error" not in response:
826
849
  return body
@@ -836,14 +859,14 @@ class IamClient(AbstractClient):
836
859
  raise KsyunSDKException(e.message, e.message)
837
860
 
838
861
 
839
- def GetAccountAllProjectList(self, request):
840
- """获取主/子用户项目列表
841
- :param request: Request instance for GetAccountAllProjectList.
842
- :type request: :class:`ksyun.client.iam.v20151101.models.GetAccountAllProjectListRequest`
862
+ def UpdateProjectInfo(self, request):
863
+ """更新项目信息
864
+ :param request: Request instance for UpdateProjectInfo.
865
+ :type request: :class:`ksyun.client.iam.v20151101.models.UpdateProjectInfoRequest`
843
866
  """
844
867
  try:
845
868
  params = request._serialize()
846
- body = self.call("GetAccountAllProjectList", params)
869
+ body = self.call_judge("UpdateProjectInfo", params, "application/x-www-form-urlencoded")
847
870
  response = json.loads(body)
848
871
  if "Error" not in response:
849
872
  return body
@@ -859,14 +882,14 @@ class IamClient(AbstractClient):
859
882
  raise KsyunSDKException(e.message, e.message)
860
883
 
861
884
 
862
- def GetProjectInstanceList(self, request):
863
- """获取项目资源列表
864
- :param request: Request instance for GetProjectInstanceList.
865
- :type request: :class:`ksyun.client.iam.v20151101.models.GetProjectInstanceListRequest`
885
+ def GetAccountAllProjectList(self, request):
886
+ """获取主/子用户项目列表
887
+ :param request: Request instance for GetAccountAllProjectList.
888
+ :type request: :class:`ksyun.client.iam.v20151101.models.GetAccountAllProjectListRequest`
866
889
  """
867
890
  try:
868
891
  params = request._serialize()
869
- body = self.call("GetProjectInstanceList", params)
892
+ body = self.call_judge("GetAccountAllProjectList", params, "application/x-www-form-urlencoded")
870
893
  response = json.loads(body)
871
894
  if "Error" not in response:
872
895
  return body
@@ -889,7 +912,7 @@ class IamClient(AbstractClient):
889
912
  """
890
913
  try:
891
914
  params = request._serialize()
892
- body = self.call("UpdateInstanceProjectId", params)
915
+ body = self.call_judge("UpdateInstanceProjectId", params, "application/x-www-form-urlencoded")
893
916
  response = json.loads(body)
894
917
  if "Error" not in response:
895
918
  return body
@@ -912,7 +935,7 @@ class IamClient(AbstractClient):
912
935
  """
913
936
  try:
914
937
  params = request._serialize()
915
- body = self.call("ListEntitiesForPolicy", params)
938
+ body = self.call_judge("ListEntitiesForPolicy", params, "application/x-www-form-urlencoded")
916
939
  response = json.loads(body)
917
940
  if "Error" not in response:
918
941
  return body
@@ -935,7 +958,7 @@ class IamClient(AbstractClient):
935
958
  """
936
959
  try:
937
960
  params = request._serialize()
938
- body = self.call("ListProjectMember", params)
961
+ body = self.call_judge("ListProjectMember", params, "application/x-www-form-urlencoded")
939
962
  response = json.loads(body)
940
963
  if "Error" not in response:
941
964
  return body
@@ -958,7 +981,7 @@ class IamClient(AbstractClient):
958
981
  """
959
982
  try:
960
983
  params = request._serialize()
961
- body = self.call("DeleteProjectMember", params)
984
+ body = self.call_judge("DeleteProjectMember", params, "application/x-www-form-urlencoded")
962
985
  response = json.loads(body)
963
986
  if "Error" not in response:
964
987
  return body
@@ -981,7 +1004,7 @@ class IamClient(AbstractClient):
981
1004
  """
982
1005
  try:
983
1006
  params = request._serialize()
984
- body = self.call("AddProjectMember", params)
1007
+ body = self.call_judge("AddProjectMember", params, "application/x-www-form-urlencoded")
985
1008
  response = json.loads(body)
986
1009
  if "Error" not in response:
987
1010
  return body
@@ -1004,7 +1027,7 @@ class IamClient(AbstractClient):
1004
1027
  """
1005
1028
  try:
1006
1029
  params = request._serialize()
1007
- body = self.call("UpdateRole", params)
1030
+ body = self.call_judge("UpdateRole", params, "application/x-www-form-urlencoded")
1008
1031
  response = json.loads(body)
1009
1032
  if "Error" not in response:
1010
1033
  return body
@@ -1027,7 +1050,7 @@ class IamClient(AbstractClient):
1027
1050
  """
1028
1051
  try:
1029
1052
  params = request._serialize()
1030
- body = self.call("UpdatePolicy", params)
1053
+ body = self.call_judge("UpdatePolicy", params, "application/x-www-form-urlencoded")
1031
1054
  response = json.loads(body)
1032
1055
  if "Error" not in response:
1033
1056
  return body
@@ -1050,7 +1073,7 @@ class IamClient(AbstractClient):
1050
1073
  """
1051
1074
  try:
1052
1075
  params = request._serialize()
1053
- body = self.call("CreateGroup", params)
1076
+ body = self.call_judge("CreateGroup", params, "application/x-www-form-urlencoded")
1054
1077
  response = json.loads(body)
1055
1078
  if "Error" not in response:
1056
1079
  return body
@@ -1073,7 +1096,7 @@ class IamClient(AbstractClient):
1073
1096
  """
1074
1097
  try:
1075
1098
  params = request._serialize()
1076
- body = self.call("DeleteGroup", params)
1099
+ body = self.call_judge("DeleteGroup", params, "application/x-www-form-urlencoded")
1077
1100
  response = json.loads(body)
1078
1101
  if "Error" not in response:
1079
1102
  return body
@@ -1096,7 +1119,7 @@ class IamClient(AbstractClient):
1096
1119
  """
1097
1120
  try:
1098
1121
  params = request._serialize()
1099
- body = self.call("DetachGroupPolicy", params)
1122
+ body = self.call_judge("DetachGroupPolicy", params, "application/x-www-form-urlencoded")
1100
1123
  response = json.loads(body)
1101
1124
  if "Error" not in response:
1102
1125
  return body
@@ -1119,7 +1142,7 @@ class IamClient(AbstractClient):
1119
1142
  """
1120
1143
  try:
1121
1144
  params = request._serialize()
1122
- body = self.call("AttachGroupPolicy", params)
1145
+ body = self.call_judge("AttachGroupPolicy", params, "application/x-www-form-urlencoded")
1123
1146
  response = json.loads(body)
1124
1147
  if "Error" not in response:
1125
1148
  return body
@@ -1142,7 +1165,7 @@ class IamClient(AbstractClient):
1142
1165
  """
1143
1166
  try:
1144
1167
  params = request._serialize()
1145
- body = self.call("ListGroupPolicies", params)
1168
+ body = self.call_judge("ListGroupPolicies", params, "application/x-www-form-urlencoded")
1146
1169
  response = json.loads(body)
1147
1170
  if "Error" not in response:
1148
1171
  return body
@@ -1165,7 +1188,7 @@ class IamClient(AbstractClient):
1165
1188
  """
1166
1189
  try:
1167
1190
  params = request._serialize()
1168
- body = self.call("AddUserToGroup", params)
1191
+ body = self.call_judge("AddUserToGroup", params, "application/x-www-form-urlencoded")
1169
1192
  response = json.loads(body)
1170
1193
  if "Error" not in response:
1171
1194
  return body
@@ -1188,7 +1211,7 @@ class IamClient(AbstractClient):
1188
1211
  """
1189
1212
  try:
1190
1213
  params = request._serialize()
1191
- body = self.call("GetGroup", params)
1214
+ body = self.call_judge("GetGroup", params, "application/x-www-form-urlencoded")
1192
1215
  response = json.loads(body)
1193
1216
  if "Error" not in response:
1194
1217
  return body
@@ -1211,7 +1234,7 @@ class IamClient(AbstractClient):
1211
1234
  """
1212
1235
  try:
1213
1236
  params = request._serialize()
1214
- body = self.call("ListGroupsForUser", params)
1237
+ body = self.call_judge("ListGroupsForUser", params, "application/x-www-form-urlencoded")
1215
1238
  response = json.loads(body)
1216
1239
  if "Error" not in response:
1217
1240
  return body
@@ -1234,7 +1257,7 @@ class IamClient(AbstractClient):
1234
1257
  """
1235
1258
  try:
1236
1259
  params = request._serialize()
1237
- body = self.call("ListGroups", params)
1260
+ body = self.call_judge("ListGroups", params, "application/x-www-form-urlencoded")
1238
1261
  response = json.loads(body)
1239
1262
  if "Error" not in response:
1240
1263
  return body
@@ -1257,7 +1280,53 @@ class IamClient(AbstractClient):
1257
1280
  """
1258
1281
  try:
1259
1282
  params = request._serialize()
1260
- body = self.call("RemoveUserFromGroup", params)
1283
+ body = self.call_judge("RemoveUserFromGroup", params, "application/x-www-form-urlencoded")
1284
+ response = json.loads(body)
1285
+ if "Error" not in response:
1286
+ return body
1287
+ else:
1288
+ code = response["Error"]["Code"]
1289
+ message = response["Error"]["Message"]
1290
+ req_id = response["RequestId"]
1291
+ raise KsyunSDKException(code, message, req_id)
1292
+ except Exception as e:
1293
+ if isinstance(e, KsyunSDKException):
1294
+ raise
1295
+ else:
1296
+ raise KsyunSDKException(e.message, e.message)
1297
+
1298
+
1299
+ def UpdateGroup(self, request):
1300
+ """更新用户组基本信息
1301
+ :param request: Request instance for UpdateGroup.
1302
+ :type request: :class:`ksyun.client.iam.v20151101.models.UpdateGroupRequest`
1303
+ """
1304
+ try:
1305
+ params = request._serialize()
1306
+ body = self.call_judge("UpdateGroup", params, "application/x-www-form-urlencoded")
1307
+ response = json.loads(body)
1308
+ if "Error" not in response:
1309
+ return body
1310
+ else:
1311
+ code = response["Error"]["Code"]
1312
+ message = response["Error"]["Message"]
1313
+ req_id = response["RequestId"]
1314
+ raise KsyunSDKException(code, message, req_id)
1315
+ except Exception as e:
1316
+ if isinstance(e, KsyunSDKException):
1317
+ raise
1318
+ else:
1319
+ raise KsyunSDKException(e.message, e.message)
1320
+
1321
+
1322
+ def ListUsersForGroup(self, request):
1323
+ """获取组成员列表
1324
+ :param request: Request instance for ListUsersForGroup.
1325
+ :type request: :class:`ksyun.client.iam.v20151101.models.ListUsersForGroupRequest`
1326
+ """
1327
+ try:
1328
+ params = request._serialize()
1329
+ body = self.call_judge("ListUsersForGroup", params, "application/x-www-form-urlencoded")
1261
1330
  response = json.loads(body)
1262
1331
  if "Error" not in response:
1263
1332
  return body
@@ -1280,7 +1349,145 @@ class IamClient(AbstractClient):
1280
1349
  """
1281
1350
  try:
1282
1351
  params = request._serialize()
1283
- body = self.call("ListAllUserAccessKeys", params)
1352
+ body = self.call_judge("ListAllUserAccessKeys", params, "application/x-www-form-urlencoded")
1353
+ response = json.loads(body)
1354
+ if "Error" not in response:
1355
+ return body
1356
+ else:
1357
+ code = response["Error"]["Code"]
1358
+ message = response["Error"]["Message"]
1359
+ req_id = response["RequestId"]
1360
+ raise KsyunSDKException(code, message, req_id)
1361
+ except Exception as e:
1362
+ if isinstance(e, KsyunSDKException):
1363
+ raise
1364
+ else:
1365
+ raise KsyunSDKException(e.message, e.message)
1366
+
1367
+
1368
+ def InsertInstanceToES(self, request):
1369
+ """非标实例插入es
1370
+ :param request: Request instance for InsertInstanceToES.
1371
+ :type request: :class:`ksyun.client.iam.v20151101.models.InsertInstanceToESRequest`
1372
+ """
1373
+ try:
1374
+ params = request._serialize()
1375
+ body = self.call_judge("InsertInstanceToES", params, "application/x-www-form-urlencoded")
1376
+ response = json.loads(body)
1377
+ if "Error" not in response:
1378
+ return body
1379
+ else:
1380
+ code = response["Error"]["Code"]
1381
+ message = response["Error"]["Message"]
1382
+ req_id = response["RequestId"]
1383
+ raise KsyunSDKException(code, message, req_id)
1384
+ except Exception as e:
1385
+ if isinstance(e, KsyunSDKException):
1386
+ raise
1387
+ else:
1388
+ raise KsyunSDKException(e.message, e.message)
1389
+
1390
+
1391
+ def DelInstanceFromES(self, request):
1392
+ """删除非标实例
1393
+ :param request: Request instance for DelInstanceFromES.
1394
+ :type request: :class:`ksyun.client.iam.v20151101.models.DelInstanceFromESRequest`
1395
+ """
1396
+ try:
1397
+ params = request._serialize()
1398
+ body = self.call_judge("DelInstanceFromES", params, "application/x-www-form-urlencoded")
1399
+ response = json.loads(body)
1400
+ if "Error" not in response:
1401
+ return body
1402
+ else:
1403
+ code = response["Error"]["Code"]
1404
+ message = response["Error"]["Message"]
1405
+ req_id = response["RequestId"]
1406
+ raise KsyunSDKException(code, message, req_id)
1407
+ except Exception as e:
1408
+ if isinstance(e, KsyunSDKException):
1409
+ raise
1410
+ else:
1411
+ raise KsyunSDKException(e.message, e.message)
1412
+
1413
+
1414
+ def GetAccountAllProjectsByParams(self, request):
1415
+ """根据参数获取账户项目列表
1416
+ :param request: Request instance for GetAccountAllProjectsByParams.
1417
+ :type request: :class:`ksyun.client.iam.v20151101.models.GetAccountAllProjectsByParamsRequest`
1418
+ """
1419
+ try:
1420
+ params = request._serialize()
1421
+ body = self.call_judge("GetAccountAllProjectsByParams", params, "application/json")
1422
+ response = json.loads(body)
1423
+ if "Error" not in response:
1424
+ return body
1425
+ else:
1426
+ code = response["Error"]["Code"]
1427
+ message = response["Error"]["Message"]
1428
+ req_id = response["RequestId"]
1429
+ raise KsyunSDKException(code, message, req_id)
1430
+ except Exception as e:
1431
+ if isinstance(e, KsyunSDKException):
1432
+ raise
1433
+ else:
1434
+ raise KsyunSDKException(e.message, e.message)
1435
+
1436
+
1437
+ def SetUserSsoSettings(self, request):
1438
+ """设置用户SSO身份提供商信息
1439
+ :param request: Request instance for SetUserSsoSettings.
1440
+ :type request: :class:`ksyun.client.iam.v20151101.models.SetUserSsoSettingsRequest`
1441
+ """
1442
+ try:
1443
+ params = request._serialize()
1444
+ body = self.call_judge("SetUserSsoSettings", params, "application/json")
1445
+ response = json.loads(body)
1446
+ if "Error" not in response:
1447
+ return body
1448
+ else:
1449
+ code = response["Error"]["Code"]
1450
+ message = response["Error"]["Message"]
1451
+ req_id = response["RequestId"]
1452
+ raise KsyunSDKException(code, message, req_id)
1453
+ except Exception as e:
1454
+ if isinstance(e, KsyunSDKException):
1455
+ raise
1456
+ else:
1457
+ raise KsyunSDKException(e.message, e.message)
1458
+
1459
+
1460
+ def GetUserSsoSettings(self, request):
1461
+ """查询用户SSO身份提供商信息
1462
+ :param request: Request instance for GetUserSsoSettings.
1463
+ :type request: :class:`ksyun.client.iam.v20151101.models.GetUserSsoSettingsRequest`
1464
+ """
1465
+ try:
1466
+ params = request._serialize()
1467
+ body = self.call_judge("GetUserSsoSettings", params, "application/json")
1468
+ response = json.loads(body)
1469
+ if "Error" not in response:
1470
+ return body
1471
+ else:
1472
+ code = response["Error"]["Code"]
1473
+ message = response["Error"]["Message"]
1474
+ req_id = response["RequestId"]
1475
+ raise KsyunSDKException(code, message, req_id)
1476
+ except Exception as e:
1477
+ if isinstance(e, KsyunSDKException):
1478
+ raise
1479
+ else:
1480
+ raise KsyunSDKException(e.message, e.message)
1481
+
1482
+
1483
+ def GetEffectivePolicies(self, request):
1484
+ """获取有效的策略信息
1485
+ :param request: Request instance for GetEffectivePolicies.
1486
+ :type request: :class:`ksyun.client.iam.v20151101.models.GetEffectivePoliciesRequest`
1487
+ """
1488
+ try:
1489
+ params = request._serialize()
1490
+ body = self.call_judge("GetEffectivePolicies", params, "application/x-www-form-urlencoded")
1284
1491
  response = json.loads(body)
1285
1492
  if "Error" not in response:
1286
1493
  return body