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,1162 @@
1
+ from ksyun.common.abstract_model import AbstractModel
2
+
3
+ class CreateInstanceRequest(AbstractModel):
4
+ """CreateInstance请求参数结构体
5
+ """
6
+
7
+ def __init__(self):
8
+ r"""创建实例(支持基于备份及指定时间点)
9
+ :param InstanceName: 实例名称。需满足以下规则:6-64个中文或者英文字符,包括汉字,大小写字母,数字,下划线及中划线
10
+ :type PathPrefix: String
11
+ :param EnableModules: 集群已开启的实例类型,多个模块用逗号分隔。如:"tidb,pd,tikv,timonitor,tidcd"。
12
+ :type PathPrefix: String
13
+ :param ModuleConfigs: 集群各个模块配置, 需与EnableModules参数中定义的各模块对应。Object: {
14
+ "moduleType": "tidb",
15
+ "packageCode": "DB_1C2G",
16
+ "replicas": 1,
17
+ "cpu": 1,
18
+ "mem": 2,
19
+ "tidisk": 0
20
+ }
21
+ :type PathPrefix: Filter
22
+ :param AdminUser: 管理员账号名称,默认:root。
23
+ :type PathPrefix: String
24
+ :param AdminPassword: 管理员账号密码。
25
+ :type PathPrefix: String
26
+ :param VpcId: 虚拟网络ID。
27
+ :type PathPrefix: String
28
+ :param SubnetId: 终端子网ID。
29
+ :type PathPrefix: String
30
+ :param BillType: 计费类型。可选:1(包年包月);5(按量付费-按日月结);87(按量付费)。
31
+ :type PathPrefix: Int
32
+ :param Duration: 仅计费类型为包年包月(BillType=1)时用。默认为1。
33
+ :type PathPrefix: String
34
+ :param ProductType: 商品类型。取固定值:577。
35
+ :type PathPrefix: Int
36
+ :param ProjectId: 项目制ID。如默认项目:"0"。
37
+ :type PathPrefix: String
38
+ :param EnableAutoBackup: 开启自动备份。取固定值:true。
39
+ :type PathPrefix: Boolean
40
+ :param Engine: 实例引擎。默认:tidb。
41
+ :type PathPrefix: String
42
+ :param EngineVersion: 引擎版本。默认:4.0。
43
+ :type PathPrefix: String
44
+ :param ClientPort: 实例端口。默认:4000。
45
+ :type PathPrefix: Int
46
+ :param Az: 可用区。
47
+ :type PathPrefix: String
48
+ :param SecurityGroupId: 安全组ID。
49
+ :type PathPrefix: String
50
+ :param BackupConfig: 备份配置
51
+ :type PathPrefix: Object
52
+ :param backupId: 实例备份id(指定备份恢复时需传)
53
+ :type PathPrefix: String
54
+ :param backupRestoreInstanceId: 备份恢复实例ID(根据时间点恢复的源实例)
55
+ ```
56
+ 指定时间点恢复,需要如下参数都传
57
+
58
+ 注意:
59
+ backupRestoreInstanceId
60
+ backupRestoreTime
61
+ ```
62
+ :type PathPrefix: String
63
+ :param backupRestoreTime: 备份恢复时间点(根据时间点恢复的指定时间点)
64
+ ```
65
+ 格式:2024-03-14 10:46:02
66
+
67
+ 注意:
68
+ backupRestoreInstanceId
69
+ backupRestoreTime
70
+ ```
71
+ :type PathPrefix: String
72
+ """
73
+ self.InstanceName = None
74
+ self.EnableModules = None
75
+ self.ModuleConfigs = None
76
+ self.AdminUser = None
77
+ self.AdminPassword = None
78
+ self.VpcId = None
79
+ self.SubnetId = None
80
+ self.BillType = None
81
+ self.Duration = None
82
+ self.ProductType = None
83
+ self.ProjectId = None
84
+ self.EnableAutoBackup = None
85
+ self.Engine = None
86
+ self.EngineVersion = None
87
+ self.ClientPort = None
88
+ self.Az = None
89
+ self.SecurityGroupId = None
90
+ self.BackupConfig = None
91
+ self.backupId = None
92
+ self.backupRestoreInstanceId = None
93
+ self.backupRestoreTime = None
94
+
95
+ def _deserialize(self, params):
96
+ if params.get("InstanceName"):
97
+ self.InstanceName = params.get("InstanceName")
98
+ if params.get("EnableModules"):
99
+ self.EnableModules = params.get("EnableModules")
100
+ if params.get("ModuleConfigs"):
101
+ self.ModuleConfigs = params.get("ModuleConfigs")
102
+ if params.get("AdminUser"):
103
+ self.AdminUser = params.get("AdminUser")
104
+ if params.get("AdminPassword"):
105
+ self.AdminPassword = params.get("AdminPassword")
106
+ if params.get("VpcId"):
107
+ self.VpcId = params.get("VpcId")
108
+ if params.get("SubnetId"):
109
+ self.SubnetId = params.get("SubnetId")
110
+ if params.get("BillType"):
111
+ self.BillType = params.get("BillType")
112
+ if params.get("Duration"):
113
+ self.Duration = params.get("Duration")
114
+ if params.get("ProductType"):
115
+ self.ProductType = params.get("ProductType")
116
+ if params.get("ProjectId"):
117
+ self.ProjectId = params.get("ProjectId")
118
+ if params.get("EnableAutoBackup"):
119
+ self.EnableAutoBackup = params.get("EnableAutoBackup")
120
+ if params.get("Engine"):
121
+ self.Engine = params.get("Engine")
122
+ if params.get("EngineVersion"):
123
+ self.EngineVersion = params.get("EngineVersion")
124
+ if params.get("ClientPort"):
125
+ self.ClientPort = params.get("ClientPort")
126
+ if params.get("Az"):
127
+ self.Az = params.get("Az")
128
+ if params.get("SecurityGroupId"):
129
+ self.SecurityGroupId = params.get("SecurityGroupId")
130
+ if params.get("BackupConfig"):
131
+ self.BackupConfig = params.get("BackupConfig")
132
+ if params.get("backupId"):
133
+ self.backupId = params.get("backupId")
134
+ if params.get("backupRestoreInstanceId"):
135
+ self.backupRestoreInstanceId = params.get("backupRestoreInstanceId")
136
+ if params.get("backupRestoreTime"):
137
+ self.backupRestoreTime = params.get("backupRestoreTime")
138
+
139
+
140
+ class ListInstanceRequest(AbstractModel):
141
+ """ListInstance请求参数结构体
142
+ """
143
+
144
+ def __init__(self):
145
+ r"""查询实例列表(区分Region)
146
+ :param ProjectIds: 项目ID列表,多个项目ID以逗号分隔。不填表示全部项目。
147
+ :type PathPrefix: String
148
+ :param InstanceStatus: 实例状态。查询多种实例状态时,用逗号分隔。如:running,error
149
+ :type PathPrefix: String
150
+ :param FuzzySearch: 模糊查找。支持:实例ID、实例名称、项目名称、VIP、实例状态。
151
+ :type PathPrefix: String
152
+ :param Offset: 查找第几页数据,从0开始。
153
+ :type PathPrefix: Int
154
+ :param Limit: 每页最大记录数。默认:10。
155
+ :type PathPrefix: Int
156
+ :param OrderBy: 排序字段。
157
+ :type PathPrefix: String
158
+ :param ProductType: 商品类型,默认:577
159
+ :type PathPrefix: Int
160
+ """
161
+ self.ProjectIds = None
162
+ self.InstanceStatus = None
163
+ self.FuzzySearch = None
164
+ self.Offset = None
165
+ self.Limit = None
166
+ self.OrderBy = None
167
+ self.ProductType = None
168
+
169
+ def _deserialize(self, params):
170
+ if params.get("ProjectIds"):
171
+ self.ProjectIds = params.get("ProjectIds")
172
+ if params.get("InstanceStatus"):
173
+ self.InstanceStatus = params.get("InstanceStatus")
174
+ if params.get("FuzzySearch"):
175
+ self.FuzzySearch = params.get("FuzzySearch")
176
+ if params.get("Offset"):
177
+ self.Offset = params.get("Offset")
178
+ if params.get("Limit"):
179
+ self.Limit = params.get("Limit")
180
+ if params.get("OrderBy"):
181
+ self.OrderBy = params.get("OrderBy")
182
+ if params.get("ProductType"):
183
+ self.ProductType = params.get("ProductType")
184
+
185
+
186
+ class DescribeInstanceRequest(AbstractModel):
187
+ """DescribeInstance请求参数结构体
188
+ """
189
+
190
+ def __init__(self):
191
+ r"""查询实例详情
192
+ :param InstanceId: 实例ID
193
+ :type PathPrefix: String
194
+ """
195
+ self.InstanceId = None
196
+
197
+ def _deserialize(self, params):
198
+ if params.get("InstanceId"):
199
+ self.InstanceId = params.get("InstanceId")
200
+
201
+
202
+ class DeleteInstanceRequest(AbstractModel):
203
+ """DeleteInstance请求参数结构体
204
+ """
205
+
206
+ def __init__(self):
207
+ r"""删除实例(支持批量)
208
+ :param InstanceIds: 实例ID列表。多个实例ID请用英文逗号隔开。
209
+ :type PathPrefix: String
210
+ """
211
+ self.InstanceIds = None
212
+
213
+ def _deserialize(self, params):
214
+ if params.get("InstanceIds"):
215
+ self.InstanceIds = params.get("InstanceIds")
216
+
217
+
218
+ class RenameInstanceRequest(AbstractModel):
219
+ """RenameInstance请求参数结构体
220
+ """
221
+
222
+ def __init__(self):
223
+ r"""修改名称(重命名)
224
+ :param InstanceId: 实例ID。
225
+ :type PathPrefix: String
226
+ :param InstanceName: 实例新名称。
227
+ :type PathPrefix: String
228
+ """
229
+ self.InstanceId = None
230
+ self.InstanceName = None
231
+
232
+ def _deserialize(self, params):
233
+ if params.get("InstanceId"):
234
+ self.InstanceId = params.get("InstanceId")
235
+ if params.get("InstanceName"):
236
+ self.InstanceName = params.get("InstanceName")
237
+
238
+
239
+ class ListRegionRequest(AbstractModel):
240
+ """ListRegion请求参数结构体
241
+ """
242
+
243
+ def __init__(self):
244
+ r"""查询地域列表
245
+ :param ProductType: 产品线ID
246
+
247
+ ```json
248
+ 集群版:577
249
+ 企业版:711
250
+ ```
251
+ :type PathPrefix: Int
252
+ """
253
+ self.ProductType = None
254
+
255
+ def _deserialize(self, params):
256
+ if params.get("ProductType"):
257
+ self.ProductType = params.get("ProductType")
258
+
259
+
260
+ class DescRegionRequest(AbstractModel):
261
+ """DescRegion请求参数结构体
262
+ """
263
+
264
+ def __init__(self):
265
+ r"""查询指定地域详情
266
+ :param RegionCode: 地域标识。例如:cn-shanghai-2
267
+ :type PathPrefix: String
268
+ :param ProductType: 产品线商品ID
269
+
270
+ ```json
271
+ 集群版:577
272
+ 企业版:711
273
+ ```
274
+ :type PathPrefix: Int
275
+ """
276
+ self.RegionCode = None
277
+ self.ProductType = None
278
+
279
+ def _deserialize(self, params):
280
+ if params.get("RegionCode"):
281
+ self.RegionCode = params.get("RegionCode")
282
+ if params.get("ProductType"):
283
+ self.ProductType = params.get("ProductType")
284
+
285
+
286
+ class CreateSecurityGroupRequest(AbstractModel):
287
+ """CreateSecurityGroup请求参数结构体
288
+ """
289
+
290
+ def __init__(self):
291
+ r"""创建安全组
292
+ :param ProductType: 商品类型。取固定值:577。
293
+ :type PathPrefix: Int
294
+ :param SecurityGroupName: 安全组名称。长度[2,64]
295
+ :type PathPrefix: String
296
+ :param IpVersion: 安全组IP类型。默认ipv4;取值:ipv4,ipv6。
297
+ :type PathPrefix: String
298
+ :param Description: 安全组描述。
299
+ :type PathPrefix: String
300
+ """
301
+ self.ProductType = None
302
+ self.SecurityGroupName = None
303
+ self.IpVersion = None
304
+ self.Description = None
305
+
306
+ def _deserialize(self, params):
307
+ if params.get("ProductType"):
308
+ self.ProductType = params.get("ProductType")
309
+ if params.get("SecurityGroupName"):
310
+ self.SecurityGroupName = params.get("SecurityGroupName")
311
+ if params.get("IpVersion"):
312
+ self.IpVersion = params.get("IpVersion")
313
+ if params.get("Description"):
314
+ self.Description = params.get("Description")
315
+
316
+
317
+ class ListSecurityGroupRequest(AbstractModel):
318
+ """ListSecurityGroup请求参数结构体
319
+ """
320
+
321
+ def __init__(self):
322
+ r"""查询安全组列表
323
+ :param FuzzySearch: 模糊查找。支持:安全组名称、安全组描述。
324
+ :type PathPrefix: String
325
+ :param Offset: 第几页,从0开始。默认为0。
326
+ :type PathPrefix: Int
327
+ :param Limit: 每页最大记录数。默认为10。
328
+ :type PathPrefix: Int
329
+ :param OrderBy: 排序字段。格式:col1.asc,col2.desc。
330
+ :type PathPrefix: String
331
+ """
332
+ self.FuzzySearch = None
333
+ self.Offset = None
334
+ self.Limit = None
335
+ self.OrderBy = None
336
+
337
+ def _deserialize(self, params):
338
+ if params.get("FuzzySearch"):
339
+ self.FuzzySearch = params.get("FuzzySearch")
340
+ if params.get("Offset"):
341
+ self.Offset = params.get("Offset")
342
+ if params.get("Limit"):
343
+ self.Limit = params.get("Limit")
344
+ if params.get("OrderBy"):
345
+ self.OrderBy = params.get("OrderBy")
346
+
347
+
348
+ class DescribeSecurityGroupRequest(AbstractModel):
349
+ """DescribeSecurityGroup请求参数结构体
350
+ """
351
+
352
+ def __init__(self):
353
+ r"""查询安全组详情
354
+ :param SecurityGroupId: 安全组ID。
355
+ :type PathPrefix: String
356
+ :param RuleFuzzySearch: 规则模糊匹配,CIDR规则 or 描述
357
+ :type PathPrefix: String
358
+ :param InstanceFuzzySearch: 实例模糊匹配:实例名称 or IP
359
+ :type PathPrefix: String
360
+ """
361
+ self.SecurityGroupId = None
362
+ self.RuleFuzzySearch = None
363
+ self.InstanceFuzzySearch = None
364
+
365
+ def _deserialize(self, params):
366
+ if params.get("SecurityGroupId"):
367
+ self.SecurityGroupId = params.get("SecurityGroupId")
368
+ if params.get("RuleFuzzySearch"):
369
+ self.RuleFuzzySearch = params.get("RuleFuzzySearch")
370
+ if params.get("InstanceFuzzySearch"):
371
+ self.InstanceFuzzySearch = params.get("InstanceFuzzySearch")
372
+
373
+
374
+ class DeleteSecurityGroupRequest(AbstractModel):
375
+ """DeleteSecurityGroup请求参数结构体
376
+ """
377
+
378
+ def __init__(self):
379
+ r"""删除安全组(支持批量)
380
+ :param SecurityGroupIds: 安全组ID列表。多个安全组ID请用英文逗号隔开。
381
+ :type PathPrefix: String
382
+ """
383
+ self.SecurityGroupIds = None
384
+
385
+ def _deserialize(self, params):
386
+ if params.get("SecurityGroupIds"):
387
+ self.SecurityGroupIds = params.get("SecurityGroupIds")
388
+
389
+
390
+ class UpdateSecurityGroupRequest(AbstractModel):
391
+ """UpdateSecurityGroup请求参数结构体
392
+ """
393
+
394
+ def __init__(self):
395
+ r"""更新安全组
396
+ :param SecurityGroupId: 安全组名称。
397
+ :type PathPrefix: String
398
+ :param SecurityGroupName: 安全组新名称。请注意:SecurityGroupName和Description参数必填其一。
399
+ :type PathPrefix: String
400
+ :param Description: 安全组新描述。请注意:SecurityGroupName和Description参数必填其一。
401
+ :type PathPrefix: String
402
+ """
403
+ self.SecurityGroupId = None
404
+ self.SecurityGroupName = None
405
+ self.Description = None
406
+
407
+ def _deserialize(self, params):
408
+ if params.get("SecurityGroupId"):
409
+ self.SecurityGroupId = params.get("SecurityGroupId")
410
+ if params.get("SecurityGroupName"):
411
+ self.SecurityGroupName = params.get("SecurityGroupName")
412
+ if params.get("Description"):
413
+ self.Description = params.get("Description")
414
+
415
+
416
+ class CloneSecurityGroupRequest(AbstractModel):
417
+ """CloneSecurityGroup请求参数结构体
418
+ """
419
+
420
+ def __init__(self):
421
+ r"""复制安全组(仅规则)
422
+ :param SrcSecurityGroupId: 原安全组ID。
423
+ :type PathPrefix: String
424
+ :param SecurityGroupName: 新安全组名称。
425
+ :type PathPrefix: String
426
+ :param Description: 新安全组描述。
427
+ :type PathPrefix: String
428
+ """
429
+ self.SrcSecurityGroupId = None
430
+ self.SecurityGroupName = None
431
+ self.Description = None
432
+
433
+ def _deserialize(self, params):
434
+ if params.get("SrcSecurityGroupId"):
435
+ self.SrcSecurityGroupId = params.get("SrcSecurityGroupId")
436
+ if params.get("SecurityGroupName"):
437
+ self.SecurityGroupName = params.get("SecurityGroupName")
438
+ if params.get("Description"):
439
+ self.Description = params.get("Description")
440
+
441
+
442
+ class BindSecurityGroupRequest(AbstractModel):
443
+ """BindSecurityGroup请求参数结构体
444
+ """
445
+
446
+ def __init__(self):
447
+ r"""实例绑定安全组
448
+ :param SecurityGroupId: 安全组ID。
449
+ :type PathPrefix: String
450
+ :param InstanceIds: 实例ID列表。多个ID请以英文逗号分隔。
451
+ :type PathPrefix: String
452
+ """
453
+ self.SecurityGroupId = None
454
+ self.InstanceIds = None
455
+
456
+ def _deserialize(self, params):
457
+ if params.get("SecurityGroupId"):
458
+ self.SecurityGroupId = params.get("SecurityGroupId")
459
+ if params.get("InstanceIds"):
460
+ self.InstanceIds = params.get("InstanceIds")
461
+
462
+
463
+ class UnbindSecurityGroupRequest(AbstractModel):
464
+ """UnbindSecurityGroup请求参数结构体
465
+ """
466
+
467
+ def __init__(self):
468
+ r"""实例解绑安全组
469
+ :param SecurityGroupId: 安全组ID。
470
+ :type PathPrefix: String
471
+ :param InstanceIds: 实例ID列表。多个ID以英文逗号分隔。
472
+ :type PathPrefix: String
473
+ """
474
+ self.SecurityGroupId = None
475
+ self.InstanceIds = None
476
+
477
+ def _deserialize(self, params):
478
+ if params.get("SecurityGroupId"):
479
+ self.SecurityGroupId = params.get("SecurityGroupId")
480
+ if params.get("InstanceIds"):
481
+ self.InstanceIds = params.get("InstanceIds")
482
+
483
+
484
+ class RebindSecurityGroupRequest(AbstractModel):
485
+ """RebindSecurityGroup请求参数结构体
486
+ """
487
+
488
+ def __init__(self):
489
+ r"""重新绑定实例安全组
490
+ :param SecurityGroupId: 安全组ID。
491
+ :type PathPrefix: String
492
+ :param InstanceId: 实例ID。
493
+ :type PathPrefix: String
494
+ """
495
+ self.SecurityGroupId = None
496
+ self.InstanceId = None
497
+
498
+ def _deserialize(self, params):
499
+ if params.get("SecurityGroupId"):
500
+ self.SecurityGroupId = params.get("SecurityGroupId")
501
+ if params.get("InstanceId"):
502
+ self.InstanceId = params.get("InstanceId")
503
+
504
+
505
+ class CreateSecurityRuleRequest(AbstractModel):
506
+ """CreateSecurityRule请求参数结构体
507
+ """
508
+
509
+ def __init__(self):
510
+ r"""创建安全规则(CIDR)
511
+ :param SecurityGroupId: 安全组ID。
512
+ :type PathPrefix: String
513
+ :param Rules: 安全组规则。格式:{Rules: [{"Cidr": "***", "Desc": "***", "AclAction": "***"}]}。
514
+ 请注意:1. Cidr为必填参数;2. AclAction(控制策略)可选:accept(放行),reject(拒绝);默认为accept。
515
+ :type PathPrefix: Object
516
+ """
517
+ self.SecurityGroupId = None
518
+ self.Rules = None
519
+
520
+ def _deserialize(self, params):
521
+ if params.get("SecurityGroupId"):
522
+ self.SecurityGroupId = params.get("SecurityGroupId")
523
+ if params.get("Rules"):
524
+ self.Rules = params.get("Rules")
525
+
526
+
527
+ class UpdateSecurityRuleRequest(AbstractModel):
528
+ """UpdateSecurityRule请求参数结构体
529
+ """
530
+
531
+ def __init__(self):
532
+ r"""更新安全规则(CIDR)
533
+ :param RuleId: 安全组规则ID。可通过DescribeSecurityGroup接口获取。
534
+ :type PathPrefix: String
535
+ :param Description: 安全组规则新描述。
536
+ :type PathPrefix: String
537
+ :param Cidr: 安全组新规则。
538
+ :type PathPrefix: String
539
+ """
540
+ self.RuleId = None
541
+ self.Description = None
542
+ self.Cidr = None
543
+
544
+ def _deserialize(self, params):
545
+ if params.get("RuleId"):
546
+ self.RuleId = params.get("RuleId")
547
+ if params.get("Description"):
548
+ self.Description = params.get("Description")
549
+ if params.get("Cidr"):
550
+ self.Cidr = params.get("Cidr")
551
+
552
+
553
+ class DeleteSecurityRuleRequest(AbstractModel):
554
+ """DeleteSecurityRule请求参数结构体
555
+ """
556
+
557
+ def __init__(self):
558
+ r"""删除安全规则(CIDR)
559
+ :param SecurityGroupId: 安全组ID。
560
+ :type PathPrefix: String
561
+ :param RuleIds: 安全组规则ID列表。多个安全组规则ID请用英文逗号隔开。
562
+ :type PathPrefix: String
563
+ """
564
+ self.SecurityGroupId = None
565
+ self.RuleIds = None
566
+
567
+ def _deserialize(self, params):
568
+ if params.get("SecurityGroupId"):
569
+ self.SecurityGroupId = params.get("SecurityGroupId")
570
+ if params.get("RuleIds"):
571
+ self.RuleIds = params.get("RuleIds")
572
+
573
+
574
+ class ListSecuredInstanceRequest(AbstractModel):
575
+ """ListSecuredInstance请求参数结构体
576
+ """
577
+
578
+ def __init__(self):
579
+ r"""查询已绑定安全组实例列表
580
+ :param SecurityGroupId: 安全组ID。
581
+ :type PathPrefix: String
582
+ :param ProjectIds: 不填表示全部项目,多个id以逗号分隔。
583
+ :type PathPrefix: String
584
+ :param FuzzySearch: 模糊搜索。支持:实例ID、实例名称、项目名称、VIP。
585
+ :type PathPrefix: String
586
+ :param Offset: 第几页,从0开始。默认为0。
587
+ :type PathPrefix: Int
588
+ :param Limit: 每页最大记录数。默认为10。
589
+ :type PathPrefix: Int
590
+ :param OrderBy: 排序字段列表。请注意,格式:col1.asc,col2.desc。
591
+ :type PathPrefix: String
592
+ """
593
+ self.SecurityGroupId = None
594
+ self.ProjectIds = None
595
+ self.FuzzySearch = None
596
+ self.Offset = None
597
+ self.Limit = None
598
+ self.OrderBy = None
599
+
600
+ def _deserialize(self, params):
601
+ if params.get("SecurityGroupId"):
602
+ self.SecurityGroupId = params.get("SecurityGroupId")
603
+ if params.get("ProjectIds"):
604
+ self.ProjectIds = params.get("ProjectIds")
605
+ if params.get("FuzzySearch"):
606
+ self.FuzzySearch = params.get("FuzzySearch")
607
+ if params.get("Offset"):
608
+ self.Offset = params.get("Offset")
609
+ if params.get("Limit"):
610
+ self.Limit = params.get("Limit")
611
+ if params.get("OrderBy"):
612
+ self.OrderBy = params.get("OrderBy")
613
+
614
+
615
+ class ListUnsecuredInstanceRequest(AbstractModel):
616
+ """ListUnsecuredInstance请求参数结构体
617
+ """
618
+
619
+ def __init__(self):
620
+ r"""查询未绑定安全组实例列表
621
+ :param ProjectIds: 项目ID列表。不填表示全部项目,多个id以逗号分隔。
622
+ :type PathPrefix: String
623
+ :param FuzzySearch: 模糊搜索。支持:实例ID、实例名称、项目名称、VIP。
624
+ :type PathPrefix: String
625
+ :param Offset: 第几页,从0开始。
626
+ :type PathPrefix: Int
627
+ :param Limit: 每页最大记录数。
628
+ :type PathPrefix: Int
629
+ :param OrderBy: 排序字段列表。请注意,格式为:col1.asc,col2.desc。
630
+ :type PathPrefix: String
631
+ """
632
+ self.ProjectIds = None
633
+ self.FuzzySearch = None
634
+ self.Offset = None
635
+ self.Limit = None
636
+ self.OrderBy = None
637
+
638
+ def _deserialize(self, params):
639
+ if params.get("ProjectIds"):
640
+ self.ProjectIds = params.get("ProjectIds")
641
+ if params.get("FuzzySearch"):
642
+ self.FuzzySearch = params.get("FuzzySearch")
643
+ if params.get("Offset"):
644
+ self.Offset = params.get("Offset")
645
+ if params.get("Limit"):
646
+ self.Limit = params.get("Limit")
647
+ if params.get("OrderBy"):
648
+ self.OrderBy = params.get("OrderBy")
649
+
650
+
651
+ class ListBackupRequest(AbstractModel):
652
+ """ListBackup请求参数结构体
653
+ """
654
+
655
+ def __init__(self):
656
+ r"""查询备份列表
657
+ :param InstanceId: 实例ID。
658
+ :type PathPrefix: String
659
+ :param Keyword: 备份名称模糊查询。
660
+ :type PathPrefix: String
661
+ """
662
+ self.InstanceId = None
663
+ self.Keyword = None
664
+
665
+ def _deserialize(self, params):
666
+ if params.get("InstanceId"):
667
+ self.InstanceId = params.get("InstanceId")
668
+ if params.get("Keyword"):
669
+ self.Keyword = params.get("Keyword")
670
+
671
+
672
+ class CreateBackupRequest(AbstractModel):
673
+ """CreateBackup请求参数结构体
674
+ """
675
+
676
+ def __init__(self):
677
+ r"""创建备份(手动)
678
+ :param InstanceId: 实例ID。
679
+ :type PathPrefix: String
680
+ :param BackupName: 备份名称。
681
+ :type PathPrefix: String
682
+ """
683
+ self.InstanceId = None
684
+ self.BackupName = None
685
+
686
+ def _deserialize(self, params):
687
+ if params.get("InstanceId"):
688
+ self.InstanceId = params.get("InstanceId")
689
+ if params.get("BackupName"):
690
+ self.BackupName = params.get("BackupName")
691
+
692
+
693
+ class UpdateBackupRuleRequest(AbstractModel):
694
+ """UpdateBackupRule请求参数结构体
695
+ """
696
+
697
+ def __init__(self):
698
+ r"""更新自动备份规则
699
+ :param InstanceId: 实例id
700
+ :type PathPrefix: String
701
+ :param PreferredBackupTime: 备份时段选择:
702
+ 格式:HH:mm-HH:mm
703
+ :type PathPrefix: String
704
+ :param EnableAutobackup: 是否开启自动备份
705
+ ```
706
+ false 未开启; true 开启
707
+ ```
708
+ :type PathPrefix: Boolean
709
+ :param EnableIncremental: 是否开启增量备份
710
+ ```
711
+ false 未开启; true 开启
712
+ ```
713
+ :type PathPrefix: Boolean
714
+ """
715
+ self.InstanceId = None
716
+ self.PreferredBackupTime = None
717
+ self.EnableAutobackup = None
718
+ self.EnableIncremental = None
719
+
720
+ def _deserialize(self, params):
721
+ if params.get("InstanceId"):
722
+ self.InstanceId = params.get("InstanceId")
723
+ if params.get("PreferredBackupTime"):
724
+ self.PreferredBackupTime = params.get("PreferredBackupTime")
725
+ if params.get("EnableAutobackup"):
726
+ self.EnableAutobackup = params.get("EnableAutobackup")
727
+ if params.get("EnableIncremental"):
728
+ self.EnableIncremental = params.get("EnableIncremental")
729
+
730
+
731
+ class DeleteBackupRequest(AbstractModel):
732
+ """DeleteBackup请求参数结构体
733
+ """
734
+
735
+ def __init__(self):
736
+ r"""批量删除备份记录
737
+ :param InstanceId: 实例ID。
738
+ :type PathPrefix: String
739
+ :param BackupIds: 备份ID列表。多个备份ID请用英文逗号隔开。
740
+ :type PathPrefix: String
741
+ """
742
+ self.InstanceId = None
743
+ self.BackupIds = None
744
+
745
+ def _deserialize(self, params):
746
+ if params.get("InstanceId"):
747
+ self.InstanceId = params.get("InstanceId")
748
+ if params.get("BackupIds"):
749
+ self.BackupIds = params.get("BackupIds")
750
+
751
+
752
+ class CreateRestoreRequest(AbstractModel):
753
+ """CreateRestore请求参数结构体
754
+ """
755
+
756
+ def __init__(self):
757
+ r"""创建恢复任务
758
+ :param InstanceId: 实例id
759
+ :type PathPrefix: String
760
+ :param BackupId: 恢复关联的备份记录ID
761
+ :type PathPrefix: String
762
+ """
763
+ self.InstanceId = None
764
+ self.BackupId = None
765
+
766
+ def _deserialize(self, params):
767
+ if params.get("InstanceId"):
768
+ self.InstanceId = params.get("InstanceId")
769
+ if params.get("BackupId"):
770
+ self.BackupId = params.get("BackupId")
771
+
772
+
773
+ class OpenTiMonitorRequest(AbstractModel):
774
+ """OpenTiMonitor请求参数结构体
775
+ """
776
+
777
+ def __init__(self):
778
+ r"""打开timonitor监控
779
+ :param InstanceId: 实例ID
780
+ :type PathPrefix: String
781
+ """
782
+ self.InstanceId = None
783
+
784
+ def _deserialize(self, params):
785
+ if params.get("InstanceId"):
786
+ self.InstanceId = params.get("InstanceId")
787
+
788
+
789
+ class CreateTaskRequest(AbstractModel):
790
+ """CreateTask请求参数结构体
791
+ """
792
+
793
+ def __init__(self):
794
+ r"""创建任务(TICDC)
795
+ :param InstanceId: 实例ID
796
+ :type PathPrefix: String
797
+ :param TaskName: 任务名称,不可重复
798
+ :type PathPrefix: String
799
+ :param TargetId: 目标端实例ID
800
+ :type PathPrefix: String
801
+ :param VpcId: 目标端VpcId
802
+ 仅Kafka需要传,Mysql不需要
803
+ :type PathPrefix: String
804
+ :param VnetId: 目标端VnetId
805
+ 仅Kafka需要传,Mysql不需要
806
+ :type PathPrefix: String
807
+ :param TargetType: 目标端实例类型
808
+ 仅支持:MySQLKAFKA
809
+ :type PathPrefix: String
810
+ :param TargetMySQL: 目标端拓展信息
811
+ 若TargetType=MySQL,根据需要填写
812
+ :type PathPrefix: Object
813
+ :param TargetKafka: 目标端拓展信息
814
+ 若TargetType=KAFKA,根据需要填写
815
+ :type PathPrefix: Object
816
+ """
817
+ self.InstanceId = None
818
+ self.TaskName = None
819
+ self.TargetId = None
820
+ self.VpcId = None
821
+ self.VnetId = None
822
+ self.TargetType = None
823
+ self.TargetMySQL = None
824
+ self.TargetKafka = None
825
+
826
+ def _deserialize(self, params):
827
+ if params.get("InstanceId"):
828
+ self.InstanceId = params.get("InstanceId")
829
+ if params.get("TaskName"):
830
+ self.TaskName = params.get("TaskName")
831
+ if params.get("TargetId"):
832
+ self.TargetId = params.get("TargetId")
833
+ if params.get("VpcId"):
834
+ self.VpcId = params.get("VpcId")
835
+ if params.get("VnetId"):
836
+ self.VnetId = params.get("VnetId")
837
+ if params.get("TargetType"):
838
+ self.TargetType = params.get("TargetType")
839
+ if params.get("TargetMySQL"):
840
+ self.TargetMySQL = params.get("TargetMySQL")
841
+ if params.get("TargetKafka"):
842
+ self.TargetKafka = params.get("TargetKafka")
843
+
844
+
845
+ class OperationTasksRequest(AbstractModel):
846
+ """OperationTasks请求参数结构体
847
+ """
848
+
849
+ def __init__(self):
850
+ r"""任务操作(TICDC)
851
+ :param InstanceId: 实例id
852
+ :type PathPrefix: String
853
+ :param TaskList: 任务名称列表,多个任务以  英文逗号分隔
854
+ :type PathPrefix: String
855
+ :param Operation: 操作类型:
856
+ DeleteTask 删除
857
+ RetryTask 重试
858
+ PauseTask 暂停
859
+ ResumeTask 恢复
860
+ :type PathPrefix: String
861
+ """
862
+ self.InstanceId = None
863
+ self.TaskList = None
864
+ self.Operation = None
865
+
866
+ def _deserialize(self, params):
867
+ if params.get("InstanceId"):
868
+ self.InstanceId = params.get("InstanceId")
869
+ if params.get("TaskList"):
870
+ self.TaskList = params.get("TaskList")
871
+ if params.get("Operation"):
872
+ self.Operation = params.get("Operation")
873
+
874
+
875
+ class CheckTaskNameRequest(AbstractModel):
876
+ """CheckTaskName请求参数结构体
877
+ """
878
+
879
+ def __init__(self):
880
+ r"""名称列表(TICDC)
881
+ :param InstanceId: 实例id
882
+ :type PathPrefix: String
883
+ """
884
+ self.InstanceId = None
885
+
886
+ def _deserialize(self, params):
887
+ if params.get("InstanceId"):
888
+ self.InstanceId = params.get("InstanceId")
889
+
890
+
891
+ class DescribeTaskRequest(AbstractModel):
892
+ """DescribeTask请求参数结构体
893
+ """
894
+
895
+ def __init__(self):
896
+ r"""任务详情(TICDC)
897
+ :param InstanceId: 实例ID
898
+ :type PathPrefix: String
899
+ :param TaskName: 任务名称
900
+ :type PathPrefix: String
901
+ """
902
+ self.InstanceId = None
903
+ self.TaskName = None
904
+
905
+ def _deserialize(self, params):
906
+ if params.get("InstanceId"):
907
+ self.InstanceId = params.get("InstanceId")
908
+ if params.get("TaskName"):
909
+ self.TaskName = params.get("TaskName")
910
+
911
+
912
+ class ListTasksRequest(AbstractModel):
913
+ """ListTasks请求参数结构体
914
+ """
915
+
916
+ def __init__(self):
917
+ r"""任务列表(TICDC)
918
+ :param InstanceId: 实例ID
919
+ :type PathPrefix: String
920
+ """
921
+ self.InstanceId = None
922
+
923
+ def _deserialize(self, params):
924
+ if params.get("InstanceId"):
925
+ self.InstanceId = params.get("InstanceId")
926
+
927
+
928
+ class DescribeDatabasesRequest(AbstractModel):
929
+ """DescribeDatabases请求参数结构体
930
+ """
931
+
932
+ def __init__(self):
933
+ r"""查询库表列表
934
+ :param InstanceId: 实例id
935
+ :type PathPrefix: String
936
+ """
937
+ self.InstanceId = None
938
+
939
+ def _deserialize(self, params):
940
+ if params.get("InstanceId"):
941
+ self.InstanceId = params.get("InstanceId")
942
+
943
+
944
+ class DescribeAccountsRequest(AbstractModel):
945
+ """DescribeAccounts请求参数结构体
946
+ """
947
+
948
+ def __init__(self):
949
+ r"""查询账号列表
950
+ :param InstanceId: 实例id
951
+ :type PathPrefix: String
952
+ """
953
+ self.InstanceId = None
954
+
955
+ def _deserialize(self, params):
956
+ if params.get("InstanceId"):
957
+ self.InstanceId = params.get("InstanceId")
958
+
959
+
960
+ class CreateAccountRequest(AbstractModel):
961
+ """CreateAccount请求参数结构体
962
+ """
963
+
964
+ def __init__(self):
965
+ r"""创建账号(指定实例)
966
+ :param InstanceId: 实例id
967
+ :type PathPrefix: String
968
+ :param AccountName: 账户名称
969
+
970
+ ```json
971
+ 注:支持数字字母,中划线,下划线。不支持保留字符串。
972
+ ```
973
+ :type PathPrefix: String
974
+ :param AccountPassword: 账户密码
975
+ :type PathPrefix: String
976
+ :param Describe: 账户描述
977
+ :type PathPrefix: String
978
+ :param Privileges: 权限列表,支持多传,接收参数为Map<String,String>
979
+
980
+ 例如:"Privileges":{"test":"onlyDdl"}
981
+ :type PathPrefix: String
982
+ """
983
+ self.InstanceId = None
984
+ self.AccountName = None
985
+ self.AccountPassword = None
986
+ self.Describe = None
987
+ self.Privileges = None
988
+
989
+ def _deserialize(self, params):
990
+ if params.get("InstanceId"):
991
+ self.InstanceId = params.get("InstanceId")
992
+ if params.get("AccountName"):
993
+ self.AccountName = params.get("AccountName")
994
+ if params.get("AccountPassword"):
995
+ self.AccountPassword = params.get("AccountPassword")
996
+ if params.get("Describe"):
997
+ self.Describe = params.get("Describe")
998
+ if params.get("Privileges"):
999
+ self.Privileges = params.get("Privileges")
1000
+
1001
+
1002
+ class DeleteAccountRequest(AbstractModel):
1003
+ """DeleteAccount请求参数结构体
1004
+ """
1005
+
1006
+ def __init__(self):
1007
+ r"""删除账号(支持批量)
1008
+ :param InstanceId: 实例id
1009
+ :type PathPrefix: String
1010
+ :param AccountName: 账户名称,支持批量删除,中间用  ',' 分隔
1011
+ :type PathPrefix: String
1012
+ """
1013
+ self.InstanceId = None
1014
+ self.AccountName = None
1015
+
1016
+ def _deserialize(self, params):
1017
+ if params.get("InstanceId"):
1018
+ self.InstanceId = params.get("InstanceId")
1019
+ if params.get("AccountName"):
1020
+ self.AccountName = params.get("AccountName")
1021
+
1022
+
1023
+ class ModifyAccountInfoRequest(AbstractModel):
1024
+ """ModifyAccountInfo请求参数结构体
1025
+ """
1026
+
1027
+ def __init__(self):
1028
+ r"""编辑账号信息(修改密码)
1029
+ :param InstanceId: 实例id
1030
+ :type PathPrefix: String
1031
+ :param AccountName: 账户名
1032
+ :type PathPrefix: String
1033
+ :param AccountPassword: 账户密码
1034
+ :type PathPrefix: String
1035
+ :param AccountType: 账户类型:非必传,修改管理员用户的时候需指定'admin'
1036
+ :type PathPrefix: String
1037
+ """
1038
+ self.InstanceId = None
1039
+ self.AccountName = None
1040
+ self.AccountPassword = None
1041
+ self.AccountType = None
1042
+
1043
+ def _deserialize(self, params):
1044
+ if params.get("InstanceId"):
1045
+ self.InstanceId = params.get("InstanceId")
1046
+ if params.get("AccountName"):
1047
+ self.AccountName = params.get("AccountName")
1048
+ if params.get("AccountPassword"):
1049
+ self.AccountPassword = params.get("AccountPassword")
1050
+ if params.get("AccountType"):
1051
+ self.AccountType = params.get("AccountType")
1052
+
1053
+
1054
+ class ModifyAccountPrivilegesRequest(AbstractModel):
1055
+ """ModifyAccountPrivileges请求参数结构体
1056
+ """
1057
+
1058
+ def __init__(self):
1059
+ r"""编辑账号权限
1060
+ :param InstanceId: 实例id
1061
+ :type PathPrefix: String
1062
+ :param AccountName: 账户名称
1063
+ :type PathPrefix: String
1064
+ :param OldPrivileges: 旧权限列表:Map<string,string>
1065
+ :type PathPrefix: String
1066
+ :param NewPrivileges: 新权限:Map<string,string>
1067
+ :type PathPrefix: String
1068
+ """
1069
+ self.InstanceId = None
1070
+ self.AccountName = None
1071
+ self.OldPrivileges = None
1072
+ self.NewPrivileges = None
1073
+
1074
+ def _deserialize(self, params):
1075
+ if params.get("InstanceId"):
1076
+ self.InstanceId = params.get("InstanceId")
1077
+ if params.get("AccountName"):
1078
+ self.AccountName = params.get("AccountName")
1079
+ if params.get("OldPrivileges"):
1080
+ self.OldPrivileges = params.get("OldPrivileges")
1081
+ if params.get("NewPrivileges"):
1082
+ self.NewPrivileges = params.get("NewPrivileges")
1083
+
1084
+
1085
+ class ConfigurationInstanceEipRequest(AbstractModel):
1086
+ """ConfigurationInstanceEip请求参数结构体
1087
+ """
1088
+
1089
+ def __init__(self):
1090
+ r"""申请/释放外网EIP
1091
+ :param InstanceId: 实例ID
1092
+ :type PathPrefix: String
1093
+ :param Operation: 操作类型
1094
+ :type PathPrefix: String
1095
+ :param EipPort: 端口号
1096
+
1097
+ ```json
1098
+ 自定义支持区间:[10000, 65500]
1099
+ ```
1100
+ :type PathPrefix: Int
1101
+ """
1102
+ self.InstanceId = None
1103
+ self.Operation = None
1104
+ self.EipPort = None
1105
+
1106
+ def _deserialize(self, params):
1107
+ if params.get("InstanceId"):
1108
+ self.InstanceId = params.get("InstanceId")
1109
+ if params.get("Operation"):
1110
+ self.Operation = params.get("Operation")
1111
+ if params.get("EipPort"):
1112
+ self.EipPort = params.get("EipPort")
1113
+
1114
+
1115
+ class UpdateInstanceTrialOrderRequest(AbstractModel):
1116
+ """UpdateInstanceTrialOrder请求参数结构体
1117
+ """
1118
+
1119
+ def __init__(self):
1120
+ r"""试用订单转正/延期
1121
+ :param InstanceId: 实例id
1122
+ :type PathPrefix: String
1123
+ :param OperateType: 操作类型
1124
+
1125
+ ```json
1126
+ 试用延期:delay
1127
+ 试用转正:buy
1128
+
1129
+ 注意:无默认,不区分大小写
1130
+ ```
1131
+ :type PathPrefix: String
1132
+ :param BillType: 计费类型
1133
+
1134
+ ```json
1135
+ 包年包月:1
1136
+ 按量付费:87
1137
+ 按量付费(按日月结):5
1138
+ ```
1139
+ :type PathPrefix: Int
1140
+ :param Duration: 延期或转正时间
1141
+
1142
+ ```json
1143
+ 默认1天/年,按日结算和按量付费不用指定
1144
+ ```
1145
+ :type PathPrefix: Int
1146
+ """
1147
+ self.InstanceId = None
1148
+ self.OperateType = None
1149
+ self.BillType = None
1150
+ self.Duration = None
1151
+
1152
+ def _deserialize(self, params):
1153
+ if params.get("InstanceId"):
1154
+ self.InstanceId = params.get("InstanceId")
1155
+ if params.get("OperateType"):
1156
+ self.OperateType = params.get("OperateType")
1157
+ if params.get("BillType"):
1158
+ self.BillType = params.get("BillType")
1159
+ if params.get("Duration"):
1160
+ self.Duration = params.get("Duration")
1161
+
1162
+