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,2722 @@
1
+ from ksyun.common.abstract_model import AbstractModel
2
+
3
+ class RebootDBInstanceRequest(AbstractModel):
4
+ """RebootDBInstance请求参数结构体
5
+ """
6
+
7
+ def __init__(self):
8
+ r"""重启指定实例
9
+ :param DBInstanceIdentifier: 实例ID
10
+ :type PathPrefix: String
11
+ """
12
+ self.DBInstanceIdentifier = None
13
+
14
+ def _deserialize(self, params):
15
+ if params.get("DBInstanceIdentifier"):
16
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
17
+
18
+
19
+ class ModifyDBParameterGroupRequest(AbstractModel):
20
+ """ModifyDBParameterGroup请求参数结构体
21
+ """
22
+
23
+ def __init__(self):
24
+ r"""修改参数组
25
+ :param DBParameterGroupId: 参数组ID
26
+ :type PathPrefix: String
27
+ :param Parameters: 参数名 参数名与参数值同时填写;参数组名-参数值/参数组名称/参数组描述,至少填写一项
28
+ :type PathPrefix: Filter
29
+ :param DBParameterGroupName: 参数组名称 请勿修改实例唯一参数组;参数组名-参数值/参数组名称/参数组描述,至少填写一项
30
+ :type PathPrefix: String
31
+ :param Description: 参数组描述 请勿修改实例唯一参数组;参数组名-参数值/参数组名称/参数组描述,至少填写一项
32
+ :type PathPrefix: String
33
+ """
34
+ self.DBParameterGroupId = None
35
+ self.Parameters = None
36
+ self.DBParameterGroupName = None
37
+ self.Description = None
38
+
39
+ def _deserialize(self, params):
40
+ if params.get("DBParameterGroupId"):
41
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
42
+ if params.get("Parameters"):
43
+ self.Parameters = params.get("Parameters")
44
+ if params.get("DBParameterGroupName"):
45
+ self.DBParameterGroupName = params.get("DBParameterGroupName")
46
+ if params.get("Description"):
47
+ self.Description = params.get("Description")
48
+
49
+
50
+ class ResetDBParameterGroupRequest(AbstractModel):
51
+ """ResetDBParameterGroup请求参数结构体
52
+ """
53
+
54
+ def __init__(self):
55
+ r"""重置参数组
56
+ :param DBParameterGroupId: 参数组ID 通过[参数组-列表(详情)接口](https://docs.ksyun.com/documents/344)获取
57
+ :type PathPrefix: String
58
+ """
59
+ self.DBParameterGroupId = None
60
+
61
+ def _deserialize(self, params):
62
+ if params.get("DBParameterGroupId"):
63
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
64
+
65
+
66
+ class DescribeDBParameterGroupRequest(AbstractModel):
67
+ """DescribeDBParameterGroup请求参数结构体
68
+ """
69
+
70
+ def __init__(self):
71
+ r"""参数组列表/详情
72
+ :param DBParameterGroupId: 参数组ID UUID
73
+ :type PathPrefix: String
74
+ :param Keyword: 搜索关键字 根据name或description匹配出对应参数组
75
+ :type PathPrefix: String
76
+ :param Marker: 开始查询条数 默认:0
77
+ :type PathPrefix: Int
78
+ :param MaxRecords: 每页展示条数 默认:10,区间:[10,100]
79
+ :type PathPrefix: Int
80
+ :param Source: 模板类型 模板类型,取值范围:TEMPLATE/DEFAULT/INSTANCE<br>默认值:<br>TEMPLATE
81
+ :type PathPrefix: String
82
+ """
83
+ self.DBParameterGroupId = None
84
+ self.Keyword = None
85
+ self.Marker = None
86
+ self.MaxRecords = None
87
+ self.Source = None
88
+
89
+ def _deserialize(self, params):
90
+ if params.get("DBParameterGroupId"):
91
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
92
+ if params.get("Keyword"):
93
+ self.Keyword = params.get("Keyword")
94
+ if params.get("Marker"):
95
+ self.Marker = params.get("Marker")
96
+ if params.get("MaxRecords"):
97
+ self.MaxRecords = params.get("MaxRecords")
98
+ if params.get("Source"):
99
+ self.Source = params.get("Source")
100
+
101
+
102
+ class DescribeEngineDefaultParametersRequest(AbstractModel):
103
+ """DescribeEngineDefaultParameters请求参数结构体
104
+ """
105
+
106
+ def __init__(self):
107
+ r"""查询默认参数模版(指定引擎及版本号)
108
+ :param Engine: 数据库引擎名称
109
+ :type PathPrefix: String
110
+ :param EngineVersion: 数据库引擎版本
111
+ :type PathPrefix: String
112
+ """
113
+ self.Engine = None
114
+ self.EngineVersion = None
115
+
116
+ def _deserialize(self, params):
117
+ if params.get("Engine"):
118
+ self.Engine = params.get("Engine")
119
+ if params.get("EngineVersion"):
120
+ self.EngineVersion = params.get("EngineVersion")
121
+
122
+
123
+ class CreateDBParameterGroupRequest(AbstractModel):
124
+ """CreateDBParameterGroup请求参数结构体
125
+ """
126
+
127
+ def __init__(self):
128
+ r"""创建参数组
129
+ :param DBParameterGroupName: 参数组名称
130
+ :type PathPrefix: String
131
+ :param Engine: 数据库引擎名称 不同的数据库引擎,需要不同的数据库参数组<br>Engine与EngineVersion的对应关系:<br>mysql 5.5、5.6、5.7、8.0 <br> percona 5.6<br>consistent_mysql 5.7<br>ebs_mysql 5.6、5.7
132
+ :type PathPrefix: String
133
+ :param EngineVersion: 数据库引擎版本
134
+ :type PathPrefix: String
135
+ :param Parameters.Name: 参数名 参数名与参数值同时填写
136
+ :type PathPrefix: Filter
137
+ :param Parameters.Value: 参数值
138
+ :type PathPrefix: Filter
139
+ :param Description: 参数组描述
140
+ :type PathPrefix: String
141
+ """
142
+ self.DBParameterGroupName = None
143
+ self.Engine = None
144
+ self.EngineVersion = None
145
+ self.Parameters_Name = None
146
+ self.Parameters_Value = None
147
+ self.Description = None
148
+
149
+ def _deserialize(self, params):
150
+ if params.get("DBParameterGroupName"):
151
+ self.DBParameterGroupName = params.get("DBParameterGroupName")
152
+ if params.get("Engine"):
153
+ self.Engine = params.get("Engine")
154
+ if params.get("EngineVersion"):
155
+ self.EngineVersion = params.get("EngineVersion")
156
+ if params.get("Parameters.Name"):
157
+ self.Parameters_Name = params.get("Parameters.Name")
158
+ if params.get("Parameters.Value"):
159
+ self.Parameters_Value = params.get("Parameters.Value")
160
+ if params.get("Description"):
161
+ self.Description = params.get("Description")
162
+
163
+
164
+ class DeleteDBParameterGroupRequest(AbstractModel):
165
+ """DeleteDBParameterGroup请求参数结构体
166
+ """
167
+
168
+ def __init__(self):
169
+ r"""删除参数组
170
+ :param DBParameterGroupId: 参数组ID
171
+ :type PathPrefix: String
172
+ """
173
+ self.DBParameterGroupId = None
174
+
175
+ def _deserialize(self, params):
176
+ if params.get("DBParameterGroupId"):
177
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
178
+
179
+
180
+ class CreateDBInstanceRequest(AbstractModel):
181
+ """CreateDBInstance请求参数结构体
182
+ """
183
+
184
+ def __init__(self):
185
+ r"""创建实例(不含只读类型)
186
+ :param Mem: 内存大小 客户只能购买特定规格的套餐,否则将会报错
187
+ :type PathPrefix: Int
188
+ :param Disk: 磁盘大小 客户只能购买特定规格的套餐,否则将会报错
189
+ :type PathPrefix: Int
190
+ :param DBInstanceName: 实例名称 不超过256个字节,仅支持中文、大小写字母、数字、减号和下划线
191
+ :type PathPrefix: String
192
+ :param Engine: 实例中数据库引擎的名称 区分大小写,取值范围:mysql、percona,企业版:consistent_mysql(5.7),云盘版:ebs_mysql(5.6/5.7)
193
+ :type PathPrefix: String
194
+ :param EngineVersion: 实例中数据库引擎的版本 取值范围:其中mysql支持:5.5、5.6、5.7、8.0;其中percona支持:5.6
195
+ :type PathPrefix: String
196
+ :param MasterUserPassword: 数据库用户密码 8-30个字符,必须包含大小写字母和数字,支持的特殊字符为!@#$%^&*()_+=-
197
+ :type PathPrefix: String
198
+ :param MasterUserName: 数据库用户名 root, rdsrepladmin, rdsadmin不可用
199
+ :type PathPrefix: String
200
+ :param DBInstanceType: 数据库类型 区分大小写,取值范围:高可用实例:HRDS、单实例:SINGLERDS、企业版:ERDS、云盘版:CDS_HRDS
201
+ :type PathPrefix: String
202
+ :param VpcId: VPC网络ID,可在网络控制台获取。
203
+ :type PathPrefix: String
204
+ :param SubnetId: VPC 终端子网ID,可在网络控制台获取(注意类型必须为终端子网)。
205
+ :type PathPrefix: String
206
+ :param PreferredBackupTime: 自动备份发起时间范围 格式(hh:mm-hh:mm,如:01:00-02:00),如不指定后台将随机分配
207
+ :type PathPrefix: String
208
+ :param DBParameterGroupId: 参数组ID 指定实例的参数组,如不指定,系统将采用默认的参数组来创建实例。用户需事先在控制台创建好参数组。
209
+ :type PathPrefix: String
210
+ :param SecurityGroupId: 安全组ID。不传入默认为空
211
+ :type PathPrefix: String
212
+ :param Port: 数据库连接端口 默认3306
213
+ :type PathPrefix: String
214
+ :param BillType: 计费方式 默认值:YEAR_MONTH
215
+ ```json
216
+ 包年包月:YEAR_MONTH
217
+ 按量付费(按日月结):DAY
218
+ 按量付费:HourlyInstantSettlement
219
+
220
+ 备注:
221
+ 1.按日月结(按日配置付费月结)
222
+ 2.按量付费 (按小时实时结算,按量实时计费&结算)
223
+ ```
224
+ :type PathPrefix: String
225
+ :param Duration: 购买时长 默认值:1
226
+ :type PathPrefix: String
227
+ :param DurationUnit: 购买时长单位 取值范围:M(月),默认值:M(区分大小写)
228
+ :type PathPrefix: String
229
+ :param AvailabilityZone: 可用区字段 示例(AvailabilityZone.1=cn-beijing-6a&AvailabilityZone.2=cn-beijing-6b),表示实例的主副本在a区,备副本在b区。如果没有跨可用区的需求,建议将实例创建在云主机的可用区内已减少网络延时。其中企业版ERDS可用区为3个(1主2备)
230
+ :type PathPrefix: Filter
231
+ :param ProjectId: 项目ID 可从IAM获取ProjectId。可按项目来进行细粒度权限控制,将实例归类到某个项目下
232
+ :type PathPrefix: Int
233
+ :param TableNamesAreCaseSensitive: 表名是否区分大小写 取值范围:1:表名不区分大小写 0:表名区分大小写。不传则默认为不区分大小写
234
+ :type PathPrefix: Int
235
+ """
236
+ self.Mem = None
237
+ self.Disk = None
238
+ self.DBInstanceName = None
239
+ self.Engine = None
240
+ self.EngineVersion = None
241
+ self.MasterUserPassword = None
242
+ self.MasterUserName = None
243
+ self.DBInstanceType = None
244
+ self.VpcId = None
245
+ self.SubnetId = None
246
+ self.PreferredBackupTime = None
247
+ self.DBParameterGroupId = None
248
+ self.SecurityGroupId = None
249
+ self.Port = None
250
+ self.BillType = None
251
+ self.Duration = None
252
+ self.DurationUnit = None
253
+ self.AvailabilityZone = None
254
+ self.ProjectId = None
255
+ self.TableNamesAreCaseSensitive = None
256
+
257
+ def _deserialize(self, params):
258
+ if params.get("Mem"):
259
+ self.Mem = params.get("Mem")
260
+ if params.get("Disk"):
261
+ self.Disk = params.get("Disk")
262
+ if params.get("DBInstanceName"):
263
+ self.DBInstanceName = params.get("DBInstanceName")
264
+ if params.get("Engine"):
265
+ self.Engine = params.get("Engine")
266
+ if params.get("EngineVersion"):
267
+ self.EngineVersion = params.get("EngineVersion")
268
+ if params.get("MasterUserPassword"):
269
+ self.MasterUserPassword = params.get("MasterUserPassword")
270
+ if params.get("MasterUserName"):
271
+ self.MasterUserName = params.get("MasterUserName")
272
+ if params.get("DBInstanceType"):
273
+ self.DBInstanceType = params.get("DBInstanceType")
274
+ if params.get("VpcId"):
275
+ self.VpcId = params.get("VpcId")
276
+ if params.get("SubnetId"):
277
+ self.SubnetId = params.get("SubnetId")
278
+ if params.get("PreferredBackupTime"):
279
+ self.PreferredBackupTime = params.get("PreferredBackupTime")
280
+ if params.get("DBParameterGroupId"):
281
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
282
+ if params.get("SecurityGroupId"):
283
+ self.SecurityGroupId = params.get("SecurityGroupId")
284
+ if params.get("Port"):
285
+ self.Port = params.get("Port")
286
+ if params.get("BillType"):
287
+ self.BillType = params.get("BillType")
288
+ if params.get("Duration"):
289
+ self.Duration = params.get("Duration")
290
+ if params.get("DurationUnit"):
291
+ self.DurationUnit = params.get("DurationUnit")
292
+ if params.get("AvailabilityZone"):
293
+ self.AvailabilityZone = params.get("AvailabilityZone")
294
+ if params.get("ProjectId"):
295
+ self.ProjectId = params.get("ProjectId")
296
+ if params.get("TableNamesAreCaseSensitive"):
297
+ self.TableNamesAreCaseSensitive = params.get("TableNamesAreCaseSensitive")
298
+
299
+
300
+ class RestoreDBInstanceFromDBBackupRequest(AbstractModel):
301
+ """RestoreDBInstanceFromDBBackup请求参数结构体
302
+ """
303
+
304
+ def __init__(self):
305
+ r"""基于备份创建实例(临时/高可用)
306
+ :param DBInstanceName: 实例名称
307
+ :type PathPrefix: String
308
+ :param DBBackupIdentifier: 备份ID
309
+ :type PathPrefix: String
310
+ :param DBInstanceType: 实例类型 如,临时实例:TRDS,高可用实例:HRDS
311
+ :type PathPrefix: String
312
+ :param ProjectId: 项目ID
313
+ :type PathPrefix: String
314
+ :param AvailabilityZone: 实例可用区
315
+ :type PathPrefix: String
316
+ :param Duration: 时长 时长 默认值:1(单位:月) 注:billType=1(包年包月)则必填
317
+ :type PathPrefix: Int
318
+ :param DurationUnit: 时长单位 时长单位 默认值:M
319
+ :type PathPrefix: String
320
+ :param Port: 端口号 支持修改端口号
321
+ :type PathPrefix: Int
322
+ :param BillType: 计费方式:
323
+ YEAR_MONTH(包年包月),DAY(按量付费-按日月结),HourlyInstantSettlement(按量付费-按小时结)
324
+ :type PathPrefix: String
325
+ """
326
+ self.DBInstanceName = None
327
+ self.DBBackupIdentifier = None
328
+ self.DBInstanceType = None
329
+ self.ProjectId = None
330
+ self.AvailabilityZone = None
331
+ self.Duration = None
332
+ self.DurationUnit = None
333
+ self.Port = None
334
+ self.BillType = None
335
+
336
+ def _deserialize(self, params):
337
+ if params.get("DBInstanceName"):
338
+ self.DBInstanceName = params.get("DBInstanceName")
339
+ if params.get("DBBackupIdentifier"):
340
+ self.DBBackupIdentifier = params.get("DBBackupIdentifier")
341
+ if params.get("DBInstanceType"):
342
+ self.DBInstanceType = params.get("DBInstanceType")
343
+ if params.get("ProjectId"):
344
+ self.ProjectId = params.get("ProjectId")
345
+ if params.get("AvailabilityZone"):
346
+ self.AvailabilityZone = params.get("AvailabilityZone")
347
+ if params.get("Duration"):
348
+ self.Duration = params.get("Duration")
349
+ if params.get("DurationUnit"):
350
+ self.DurationUnit = params.get("DurationUnit")
351
+ if params.get("Port"):
352
+ self.Port = params.get("Port")
353
+ if params.get("BillType"):
354
+ self.BillType = params.get("BillType")
355
+
356
+
357
+ class DeleteDBInstanceRequest(AbstractModel):
358
+ """DeleteDBInstance请求参数结构体
359
+ """
360
+
361
+ def __init__(self):
362
+ r"""删除实例(不支持批量)
363
+ :param DBInstanceIdentifier: 实例ID
364
+ :type PathPrefix: String
365
+ """
366
+ self.DBInstanceIdentifier = None
367
+
368
+ def _deserialize(self, params):
369
+ if params.get("DBInstanceIdentifier"):
370
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
371
+
372
+
373
+ class CreateDBInstanceReadReplicaRequest(AbstractModel):
374
+ """CreateDBInstanceReadReplica请求参数结构体
375
+ """
376
+
377
+ def __init__(self):
378
+ r"""创建只读实例(基于高可用实例)
379
+ :param DBInstanceIdentifier: 主实例ID。一个主实例最多只能有3个只读实例。
380
+ :type PathPrefix: String
381
+ :param DBInstanceName: 实例名称 不超过256个字节,仅支持中文、大小写字母、数字、减号和下划线
382
+ :type PathPrefix: String
383
+ :param AttachedVipId: 共享同一主实例下的只读实例IP,默认创建一个新的IP
384
+ :type PathPrefix: String
385
+ :param BillType: 计费方式 YEAR_MONTH(包年包月),DAY(按日计费),默认值:YEAR_MONTH
386
+ :type PathPrefix: String
387
+ :param Duration: 购买时长 时长 默认值:1(单位:月) 注:billType=1(包年包月)则必填
388
+ :type PathPrefix: String
389
+ :param DurationUnit: 购买时长单位 取值范围:M(月),默认值:M(区分大小写)
390
+ :type PathPrefix: String
391
+ :param AvailabilityZone.1: 可用区 示例(AvailabilityZone.1=cn-beijing-6a),默认情况下只读实例可用区与主实例一致,如果主实例是跨可用区实例,只读实例会随机分布。
392
+ :type PathPrefix: String
393
+ :param ProjectId: 项目ID 可从IAM获取ProjectId
394
+ :type PathPrefix: Int
395
+ :param Vip: 只读IP地址 选定的IP地址
396
+ :type PathPrefix: String
397
+ :param Mem: 实例内存 实例内存大小
398
+ :type PathPrefix: Int
399
+ :param Disk: 实例硬盘 实例硬盘大小
400
+ :type PathPrefix: Int
401
+ """
402
+ self.DBInstanceIdentifier = None
403
+ self.DBInstanceName = None
404
+ self.AttachedVipId = None
405
+ self.BillType = None
406
+ self.Duration = None
407
+ self.DurationUnit = None
408
+ self.AvailabilityZone_1 = None
409
+ self.ProjectId = None
410
+ self.Vip = None
411
+ self.Mem = None
412
+ self.Disk = None
413
+
414
+ def _deserialize(self, params):
415
+ if params.get("DBInstanceIdentifier"):
416
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
417
+ if params.get("DBInstanceName"):
418
+ self.DBInstanceName = params.get("DBInstanceName")
419
+ if params.get("AttachedVipId"):
420
+ self.AttachedVipId = params.get("AttachedVipId")
421
+ if params.get("BillType"):
422
+ self.BillType = params.get("BillType")
423
+ if params.get("Duration"):
424
+ self.Duration = params.get("Duration")
425
+ if params.get("DurationUnit"):
426
+ self.DurationUnit = params.get("DurationUnit")
427
+ if params.get("AvailabilityZone.1"):
428
+ self.AvailabilityZone_1 = params.get("AvailabilityZone.1")
429
+ if params.get("ProjectId"):
430
+ self.ProjectId = params.get("ProjectId")
431
+ if params.get("Vip"):
432
+ self.Vip = params.get("Vip")
433
+ if params.get("Mem"):
434
+ self.Mem = params.get("Mem")
435
+ if params.get("Disk"):
436
+ self.Disk = params.get("Disk")
437
+
438
+
439
+ class RestoreDBInstanceToPointInTimeRequest(AbstractModel):
440
+ """RestoreDBInstanceToPointInTime请求参数结构体
441
+ """
442
+
443
+ def __init__(self):
444
+ r"""恢复数据到指定时间点(本实例/临时实例)
445
+ :param DBInstanceIdentifier: 实例ID
446
+ :type PathPrefix: String
447
+ :param RestorableTime: 恢复到时间点 例如:2021-09-09 00:00:00
448
+ :type PathPrefix: String
449
+ """
450
+ self.DBInstanceIdentifier = None
451
+ self.RestorableTime = None
452
+
453
+ def _deserialize(self, params):
454
+ if params.get("DBInstanceIdentifier"):
455
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
456
+ if params.get("RestorableTime"):
457
+ self.RestorableTime = params.get("RestorableTime")
458
+
459
+
460
+ class DescribeDBInstanceRestorableTimeRequest(AbstractModel):
461
+ """DescribeDBInstanceRestorableTime请求参数结构体
462
+ """
463
+
464
+ def __init__(self):
465
+ r"""查询可恢复到的时间点区间
466
+ :param DBInstanceIdentifier: 实例ID
467
+ :type PathPrefix: String
468
+ """
469
+ self.DBInstanceIdentifier = None
470
+
471
+ def _deserialize(self, params):
472
+ if params.get("DBInstanceIdentifier"):
473
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
474
+
475
+
476
+ class ModifyDBInstanceRequest(AbstractModel):
477
+ """ModifyDBInstance请求参数结构体
478
+ """
479
+
480
+ def __init__(self):
481
+ r"""修改实例配置
482
+ :param DBInstanceIdentifier: 实例ID
483
+ :type PathPrefix: String
484
+ :param PreferredBackupTime: 备份时间段 例如:02:00-03:00,范围取值:[00:00-01:00,23:00-24:00], 间隔一小时的整点时刻
485
+ :type PathPrefix: String
486
+ :param DBInstanceName: 实例新名称,不超过256个字节,仅支持中文、大小写字母、数字、减号和下划线
487
+
488
+ :type PathPrefix: String
489
+ :param DBParameterGroupId: 参数组ID
490
+ :type PathPrefix: String
491
+ """
492
+ self.DBInstanceIdentifier = None
493
+ self.PreferredBackupTime = None
494
+ self.DBInstanceName = None
495
+ self.DBParameterGroupId = None
496
+
497
+ def _deserialize(self, params):
498
+ if params.get("DBInstanceIdentifier"):
499
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
500
+ if params.get("PreferredBackupTime"):
501
+ self.PreferredBackupTime = params.get("PreferredBackupTime")
502
+ if params.get("DBInstanceName"):
503
+ self.DBInstanceName = params.get("DBInstanceName")
504
+ if params.get("DBParameterGroupId"):
505
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
506
+
507
+
508
+ class DescribeDBLogFilesRequest(AbstractModel):
509
+ """DescribeDBLogFiles请求参数结构体
510
+ """
511
+
512
+ def __init__(self):
513
+ r"""查询日志文件列表
514
+ :param DBInstanceIdentifier: 实例ID
515
+ :type PathPrefix: String
516
+ :param DBLogType: 日志类型 大小写敏感,取值范围:SlowLog\/ErrorLog\/Binlog
517
+ :type PathPrefix: String
518
+ :param Marker: 偏移量 默认: 0
519
+ :type PathPrefix: Int
520
+ :param MaxRecords: 每页结果中包含的最大条数 默认:200,区间 = [10,200]
521
+ :type PathPrefix: Int
522
+ """
523
+ self.DBInstanceIdentifier = None
524
+ self.DBLogType = None
525
+ self.Marker = None
526
+ self.MaxRecords = None
527
+
528
+ def _deserialize(self, params):
529
+ if params.get("DBInstanceIdentifier"):
530
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
531
+ if params.get("DBLogType"):
532
+ self.DBLogType = params.get("DBLogType")
533
+ if params.get("Marker"):
534
+ self.Marker = params.get("Marker")
535
+ if params.get("MaxRecords"):
536
+ self.MaxRecords = params.get("MaxRecords")
537
+
538
+
539
+ class DescribeDBBackupsRequest(AbstractModel):
540
+ """DescribeDBBackups请求参数结构体
541
+ """
542
+
543
+ def __init__(self):
544
+ r"""查询备份列表
545
+ :param DBInstanceIdentifier: 实例ID
546
+ :type PathPrefix: String
547
+ :param BackupType: 数据库快照类型 数据库快照类型,取值范围:AutoBackup(自动产生的备份)、Snapshot(手动发起的备份)
548
+ :type PathPrefix: String
549
+ :param Keyword: 备份搜索关键字 备份搜索关键字(根据备份名字)
550
+ :type PathPrefix: String
551
+ :param Marker: 获取记录开始偏移量 默认:0,获取记录开始偏移量 default=0
552
+ :type PathPrefix: String
553
+ :param MaxRecords: 每页结果中包含的最大条数 默认:10,每页结果中包含的最大条数 区间 [10,100]
554
+ :type PathPrefix: Int
555
+ """
556
+ self.DBInstanceIdentifier = None
557
+ self.BackupType = None
558
+ self.Keyword = None
559
+ self.Marker = None
560
+ self.MaxRecords = None
561
+
562
+ def _deserialize(self, params):
563
+ if params.get("DBInstanceIdentifier"):
564
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
565
+ if params.get("BackupType"):
566
+ self.BackupType = params.get("BackupType")
567
+ if params.get("Keyword"):
568
+ self.Keyword = params.get("Keyword")
569
+ if params.get("Marker"):
570
+ self.Marker = params.get("Marker")
571
+ if params.get("MaxRecords"):
572
+ self.MaxRecords = params.get("MaxRecords")
573
+
574
+
575
+ class ModifyDBInstanceSpecRequest(AbstractModel):
576
+ """ModifyDBInstanceSpec请求参数结构体
577
+ """
578
+
579
+ def __init__(self):
580
+ r"""实例更配(修改内存磁盘配置)
581
+ :param DBInstanceIdentifier: 实例ID
582
+ :type PathPrefix: String
583
+ :param Mem: 内存规格
584
+ :type PathPrefix: Int
585
+ :param Disk: 磁盘规格
586
+ :type PathPrefix: Int
587
+ """
588
+ self.DBInstanceIdentifier = None
589
+ self.Mem = None
590
+ self.Disk = None
591
+
592
+ def _deserialize(self, params):
593
+ if params.get("DBInstanceIdentifier"):
594
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
595
+ if params.get("Mem"):
596
+ self.Mem = params.get("Mem")
597
+ if params.get("Disk"):
598
+ self.Disk = params.get("Disk")
599
+
600
+
601
+ class DescribeDBInstancesRequest(AbstractModel):
602
+ """DescribeDBInstances请求参数结构体
603
+ """
604
+
605
+ def __init__(self):
606
+ r"""查询实例列表(详情)
607
+ :param DBInstanceIdentifier: 实例ID(传入实例ID,获取的是该实例的详情,否则则获取list)
608
+ :type PathPrefix: String
609
+ :param DBInstanceType: 实例类型
610
+ HRDS(高可用)
611
+ RR(只读实例)
612
+ TRDS(临时实例)
613
+ SINGLERDS(单机版)
614
+ ERDS(三节点企业版)
615
+ CDS_HRDS(高可用_云盘版)
616
+ CDS_TRDS(临时云盘版)
617
+ :type PathPrefix: String
618
+ :param DBInstanceStatus: 按实例状态过滤
619
+ ACTIVE(运行中)
620
+ INVALID(请续费)
621
+ :type PathPrefix: String
622
+ :param Keyword: 按名称/VIP模糊过滤
623
+ :type PathPrefix: String
624
+ :param Order: 排序方式
625
+ 区分大小写,取值范围:DEFAULT(默认排序方式),GROUP(按复制组排序,会把只读实例排在所属主实例的后面)
626
+ :type PathPrefix: String
627
+ :param ProjectId: 项目制Id
628
+ 默认值为所有项目
629
+ :type PathPrefix: String
630
+ :param Marker: 记录开始偏移量
631
+ :type PathPrefix: Int
632
+ :param MaxRecords: 每页结果中包含的最大条数
633
+ 取值范围:10-10000
634
+ :type PathPrefix: Int
635
+ :param DBInstanceIdentifierIn: 实例ids
636
+ 实例id多选筛选   例如:DBInstanceIdentifierIn.0=xxx&DBInstanceIdentifierIn.1=xxx
637
+ :type PathPrefix: Filter
638
+ :param DBInstanceNameIn: 按实例名称过滤
639
+ 示例(DBInstanceNameIn.1=test1,DBInstanceNameIn.2=test2)
640
+ :type PathPrefix: Filter
641
+ :param VipIn: 按vip过滤
642
+ 示例(VipIn.1=10.9.2.3,VipIn.2=10.9.2.4)
643
+ :type PathPrefix: Filter
644
+ :param EIPIn: 按eip过滤
645
+ :type PathPrefix: Filter
646
+ :param ExpiryDateLessThan: 按照实例过期时间过滤
647
+ :type PathPrefix: Int
648
+ """
649
+ self.DBInstanceIdentifier = None
650
+ self.DBInstanceType = None
651
+ self.DBInstanceStatus = None
652
+ self.Keyword = None
653
+ self.Order = None
654
+ self.ProjectId = None
655
+ self.Marker = None
656
+ self.MaxRecords = None
657
+ self.DBInstanceIdentifierIn = None
658
+ self.DBInstanceNameIn = None
659
+ self.VipIn = None
660
+ self.EIPIn = None
661
+ self.ExpiryDateLessThan = None
662
+
663
+ def _deserialize(self, params):
664
+ if params.get("DBInstanceIdentifier"):
665
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
666
+ if params.get("DBInstanceType"):
667
+ self.DBInstanceType = params.get("DBInstanceType")
668
+ if params.get("DBInstanceStatus"):
669
+ self.DBInstanceStatus = params.get("DBInstanceStatus")
670
+ if params.get("Keyword"):
671
+ self.Keyword = params.get("Keyword")
672
+ if params.get("Order"):
673
+ self.Order = params.get("Order")
674
+ if params.get("ProjectId"):
675
+ self.ProjectId = params.get("ProjectId")
676
+ if params.get("Marker"):
677
+ self.Marker = params.get("Marker")
678
+ if params.get("MaxRecords"):
679
+ self.MaxRecords = params.get("MaxRecords")
680
+ if params.get("DBInstanceIdentifierIn"):
681
+ self.DBInstanceIdentifierIn = params.get("DBInstanceIdentifierIn")
682
+ if params.get("DBInstanceNameIn"):
683
+ self.DBInstanceNameIn = params.get("DBInstanceNameIn")
684
+ if params.get("VipIn"):
685
+ self.VipIn = params.get("VipIn")
686
+ if params.get("EIPIn"):
687
+ self.EIPIn = params.get("EIPIn")
688
+ if params.get("ExpiryDateLessThan"):
689
+ self.ExpiryDateLessThan = params.get("ExpiryDateLessThan")
690
+
691
+
692
+ class OverrideDBInstanceRequest(AbstractModel):
693
+ """OverrideDBInstance请求参数结构体
694
+ """
695
+
696
+ def __init__(self):
697
+ r"""基于备份恢复到本实例
698
+ :param DBInstanceIdentifier: 实例ID
699
+ :type PathPrefix: String
700
+ :param DBBackupIdentifier: 备份ID
701
+ :type PathPrefix: String
702
+ """
703
+ self.DBInstanceIdentifier = None
704
+ self.DBBackupIdentifier = None
705
+
706
+ def _deserialize(self, params):
707
+ if params.get("DBInstanceIdentifier"):
708
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
709
+ if params.get("DBBackupIdentifier"):
710
+ self.DBBackupIdentifier = params.get("DBBackupIdentifier")
711
+
712
+
713
+ class DescribeDBEngineVersionsRequest(AbstractModel):
714
+ """DescribeDBEngineVersions请求参数结构体
715
+ """
716
+
717
+ def __init__(self):
718
+ r"""查询数据库引擎版本(全量)
719
+ """
720
+
721
+ def _deserialize(self, params):
722
+ return
723
+
724
+
725
+ class UpgradeDBInstanceEngineVersionRequest(AbstractModel):
726
+ """UpgradeDBInstanceEngineVersion请求参数结构体
727
+ """
728
+
729
+ def __init__(self):
730
+ r"""大版本升级(5.x)
731
+ :param DBInstanceIdentifier: 实例ID
732
+ :type PathPrefix: String
733
+ :param Engine: 实例中数据库引擎的名称 区分大小写、取值范围:mysql、percona
734
+ :type PathPrefix: String
735
+ :param EngineVersion: 实例中数据库引擎的版本 取值范围:5.5、5.6、5.7<br>mysql暂时不支持由5.7升级到8.0
736
+ :type PathPrefix: String
737
+ """
738
+ self.DBInstanceIdentifier = None
739
+ self.Engine = None
740
+ self.EngineVersion = None
741
+
742
+ def _deserialize(self, params):
743
+ if params.get("DBInstanceIdentifier"):
744
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
745
+ if params.get("Engine"):
746
+ self.Engine = params.get("Engine")
747
+ if params.get("EngineVersion"):
748
+ self.EngineVersion = params.get("EngineVersion")
749
+
750
+
751
+ class ModifyDBInstanceTypeRequest(AbstractModel):
752
+ """ModifyDBInstanceType请求参数结构体
753
+ """
754
+
755
+ def __init__(self):
756
+ r"""实例类型转换
757
+ :param DBInstanceIdentifier: 实例ID
758
+ :type PathPrefix: String
759
+ :param DBInstanceType: 实例类型 目前支持:<br>1:HRDS(临时实例)升级为HA(高可用)<br>2:仅mysql5.7版本的高可用升级为(ERDS)三节点企业版
760
+ :type PathPrefix: String
761
+ :param BillType: 计费类型 计费类型<br>'YEAR_MONTH':包年包月 <br>'DAY':按天结
762
+ :type PathPrefix: String
763
+ :param Duration: 时长
764
+ :type PathPrefix: Int
765
+ :param DurationUnit: 时长单位
766
+ :type PathPrefix: String
767
+ :param AvailabilityZone: 可用区名称 可用区名称(升级为ERDS不支持此参数)
768
+ :type PathPrefix: String
769
+ """
770
+ self.DBInstanceIdentifier = None
771
+ self.DBInstanceType = None
772
+ self.BillType = None
773
+ self.Duration = None
774
+ self.DurationUnit = None
775
+ self.AvailabilityZone = None
776
+
777
+ def _deserialize(self, params):
778
+ if params.get("DBInstanceIdentifier"):
779
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
780
+ if params.get("DBInstanceType"):
781
+ self.DBInstanceType = params.get("DBInstanceType")
782
+ if params.get("BillType"):
783
+ self.BillType = params.get("BillType")
784
+ if params.get("Duration"):
785
+ self.Duration = params.get("Duration")
786
+ if params.get("DurationUnit"):
787
+ self.DurationUnit = params.get("DurationUnit")
788
+ if params.get("AvailabilityZone"):
789
+ self.AvailabilityZone = params.get("AvailabilityZone")
790
+
791
+
792
+ class DescribeDBInstanceParametersRequest(AbstractModel):
793
+ """DescribeDBInstanceParameters请求参数结构体
794
+ """
795
+
796
+ def __init__(self):
797
+ r"""查看运行中参数
798
+ :param DBInstanceIdentifier: 实例ID
799
+ :type PathPrefix: String
800
+ """
801
+ self.DBInstanceIdentifier = None
802
+
803
+ def _deserialize(self, params):
804
+ if params.get("DBInstanceIdentifier"):
805
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
806
+
807
+
808
+ class ModifyDBBackupPolicyRequest(AbstractModel):
809
+ """ModifyDBBackupPolicy请求参数结构体
810
+ """
811
+
812
+ def __init__(self):
813
+ r"""修改备份策略
814
+ :param DBInstanceIdentifier: 实例ID
815
+ :type PathPrefix: String
816
+ :param PreferredBackupTime: 备份时间段。 例如:02:00-03:00,范围取值:[00:00-01:00,23:00-24:00], 间隔一小时的整点时刻。
817
+ :type PathPrefix: String
818
+ :param ExpireAfter: 备份保留天数。取值范围[7,1830]。
819
+ :type PathPrefix: Int
820
+ :param IncrementalBackupCycle: 增量备份策略,单位小时。可选:8,12,24。
821
+ :type PathPrefix: String
822
+ :param FullBackupCycle: 全量备份策略,单位星期。如"1,3,7"表示选择在星期一、星期三、星期日做备份。
823
+ :type PathPrefix: String
824
+ :param BinlogExpireAfter: bing过期时间;
825
+ 默认:7 单位:天
826
+ :type PathPrefix: Int
827
+ :param HighFrequencyBackup: 高频备份开关(暂不支持修改);
828
+ 默认关闭:false
829
+ 状态:flase 关闭  true 开启 
830
+ :type PathPrefix: Boolean
831
+ """
832
+ self.DBInstanceIdentifier = None
833
+ self.PreferredBackupTime = None
834
+ self.ExpireAfter = None
835
+ self.IncrementalBackupCycle = None
836
+ self.FullBackupCycle = None
837
+ self.BinlogExpireAfter = None
838
+ self.HighFrequencyBackup = None
839
+
840
+ def _deserialize(self, params):
841
+ if params.get("DBInstanceIdentifier"):
842
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
843
+ if params.get("PreferredBackupTime"):
844
+ self.PreferredBackupTime = params.get("PreferredBackupTime")
845
+ if params.get("ExpireAfter"):
846
+ self.ExpireAfter = params.get("ExpireAfter")
847
+ if params.get("IncrementalBackupCycle"):
848
+ self.IncrementalBackupCycle = params.get("IncrementalBackupCycle")
849
+ if params.get("FullBackupCycle"):
850
+ self.FullBackupCycle = params.get("FullBackupCycle")
851
+ if params.get("BinlogExpireAfter"):
852
+ self.BinlogExpireAfter = params.get("BinlogExpireAfter")
853
+ if params.get("HighFrequencyBackup"):
854
+ self.HighFrequencyBackup = params.get("HighFrequencyBackup")
855
+
856
+
857
+ class DescribeDBBackupPolicyRequest(AbstractModel):
858
+ """DescribeDBBackupPolicy请求参数结构体
859
+ """
860
+
861
+ def __init__(self):
862
+ r"""查询备份策略
863
+ :param DBInstanceIdentifier: 实例ID
864
+ :type PathPrefix: String
865
+ """
866
+ self.DBInstanceIdentifier = None
867
+
868
+ def _deserialize(self, params):
869
+ if params.get("DBInstanceIdentifier"):
870
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
871
+
872
+
873
+ class DeleteDBBackupRequest(AbstractModel):
874
+ """DeleteDBBackup请求参数结构体
875
+ """
876
+
877
+ def __init__(self):
878
+ r"""删除快照备份
879
+ :param DBBackupIdentifier: 备份ID
880
+ :type PathPrefix: String
881
+ """
882
+ self.DBBackupIdentifier = None
883
+
884
+ def _deserialize(self, params):
885
+ if params.get("DBBackupIdentifier"):
886
+ self.DBBackupIdentifier = params.get("DBBackupIdentifier")
887
+
888
+
889
+ class CreateDBBackupRequest(AbstractModel):
890
+ """CreateDBBackup请求参数结构体
891
+ """
892
+
893
+ def __init__(self):
894
+ r"""创建快照备份
895
+ :param DBInstanceIdentifier: 实例ID
896
+ :type PathPrefix: String
897
+ :param DBBackupName: 备份名称 2-64个字符,支持字母,数字,以及-_
898
+ :type PathPrefix: String
899
+ :param Description: 备份描述 前端页面暂时没有填写入口,接口支持填写备份描述
900
+ :type PathPrefix: String
901
+ """
902
+ self.DBInstanceIdentifier = None
903
+ self.DBBackupName = None
904
+ self.Description = None
905
+
906
+ def _deserialize(self, params):
907
+ if params.get("DBInstanceIdentifier"):
908
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
909
+ if params.get("DBBackupName"):
910
+ self.DBBackupName = params.get("DBBackupName")
911
+ if params.get("Description"):
912
+ self.Description = params.get("Description")
913
+
914
+
915
+ class SwitchDBInstanceHARequest(AbstractModel):
916
+ """SwitchDBInstanceHA请求参数结构体
917
+ """
918
+
919
+ def __init__(self):
920
+ r"""主备库切换
921
+ :param DBInstanceIdentifier: 实例ID
922
+ :type PathPrefix: String
923
+ """
924
+ self.DBInstanceIdentifier = None
925
+
926
+ def _deserialize(self, params):
927
+ if params.get("DBInstanceIdentifier"):
928
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
929
+
930
+
931
+ class GenerateDBAdminURLRequest(AbstractModel):
932
+ """GenerateDBAdminURL请求参数结构体
933
+ """
934
+
935
+ def __init__(self):
936
+ r"""获取登录链接
937
+ :param DBInstanceIdentifier: 实例ID
938
+ :type PathPrefix: String
939
+ """
940
+ self.DBInstanceIdentifier = None
941
+
942
+ def _deserialize(self, params):
943
+ if params.get("DBInstanceIdentifier"):
944
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
945
+
946
+
947
+ class AllocateDBInstanceEipRequest(AbstractModel):
948
+ """AllocateDBInstanceEip请求参数结构体
949
+ """
950
+
951
+ def __init__(self):
952
+ r"""申请外网访问IP地址
953
+ :param DBInstanceIdentifier: 实例ID
954
+ :type PathPrefix: String
955
+ :param Port: EIP端口号 固定取值:[10000,65500] 未指定则默认随机分配
956
+ :type PathPrefix: String
957
+ """
958
+ self.DBInstanceIdentifier = None
959
+ self.Port = None
960
+
961
+ def _deserialize(self, params):
962
+ if params.get("DBInstanceIdentifier"):
963
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
964
+ if params.get("Port"):
965
+ self.Port = params.get("Port")
966
+
967
+
968
+ class ReleaseDBInstanceEipRequest(AbstractModel):
969
+ """ReleaseDBInstanceEip请求参数结构体
970
+ """
971
+
972
+ def __init__(self):
973
+ r"""释放外网访问IP地址
974
+ :param DBInstanceIdentifier: 实例ID
975
+ :type PathPrefix: String
976
+ """
977
+ self.DBInstanceIdentifier = None
978
+
979
+ def _deserialize(self, params):
980
+ if params.get("DBInstanceIdentifier"):
981
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
982
+
983
+
984
+ class ModifyDBInstanceAvailabilityZoneRequest(AbstractModel):
985
+ """ModifyDBInstanceAvailabilityZone请求参数结构体
986
+ """
987
+
988
+ def __init__(self):
989
+ r"""迁移可用区
990
+ :param DBInstanceIdentifier: 实例ID
991
+ :type PathPrefix: String
992
+ :param AvailabilityZone.1: 主可用区 主所在可用区不可变
993
+ :type PathPrefix: String
994
+ :param AvailabilityZone.2: 备可用区
995
+ :type PathPrefix: String
996
+ """
997
+ self.DBInstanceIdentifier = None
998
+ self.AvailabilityZone_1 = None
999
+ self.AvailabilityZone_2 = None
1000
+
1001
+ def _deserialize(self, params):
1002
+ if params.get("DBInstanceIdentifier"):
1003
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1004
+ if params.get("AvailabilityZone.1"):
1005
+ self.AvailabilityZone_1 = params.get("AvailabilityZone.1")
1006
+ if params.get("AvailabilityZone.2"):
1007
+ self.AvailabilityZone_2 = params.get("AvailabilityZone.2")
1008
+
1009
+
1010
+ class CreateSecurityGroupRequest(AbstractModel):
1011
+ """CreateSecurityGroup请求参数结构体
1012
+ """
1013
+
1014
+ def __init__(self):
1015
+ r"""创建安全组(GET)
1016
+ :param SecurityGroupName: 安全组名称
1017
+ :type PathPrefix: String
1018
+ :param SecurityGroupRule: 安全组规则,支持以英文逗号隔开的传值形式,或者List<String>传值形式
1019
+ :type PathPrefix: Filter
1020
+ :param DBInstanceIdentifier: 实例id
1021
+ :type PathPrefix: String
1022
+ :param SecurityGroupDescription: 安全组描述
1023
+ :type PathPrefix: String
1024
+ """
1025
+ self.SecurityGroupName = None
1026
+ self.SecurityGroupRule = None
1027
+ self.DBInstanceIdentifier = None
1028
+ self.SecurityGroupDescription = None
1029
+
1030
+ def _deserialize(self, params):
1031
+ if params.get("SecurityGroupName"):
1032
+ self.SecurityGroupName = params.get("SecurityGroupName")
1033
+ if params.get("SecurityGroupRule"):
1034
+ self.SecurityGroupRule = params.get("SecurityGroupRule")
1035
+ if params.get("DBInstanceIdentifier"):
1036
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1037
+ if params.get("SecurityGroupDescription"):
1038
+ self.SecurityGroupDescription = params.get("SecurityGroupDescription")
1039
+
1040
+
1041
+ class DescribeSecurityGroupRequest(AbstractModel):
1042
+ """DescribeSecurityGroup请求参数结构体
1043
+ """
1044
+
1045
+ def __init__(self):
1046
+ r"""查询安全组列表/详情
1047
+ :param SecurityGroupId: 安全组id
1048
+ :type PathPrefix: String
1049
+ :param Type: 安全组类型:IPV4 / IPV6 (默认IPV4)
1050
+ :type PathPrefix: String
1051
+ """
1052
+ self.SecurityGroupId = None
1053
+ self.Type = None
1054
+
1055
+ def _deserialize(self, params):
1056
+ if params.get("SecurityGroupId"):
1057
+ self.SecurityGroupId = params.get("SecurityGroupId")
1058
+ if params.get("Type"):
1059
+ self.Type = params.get("Type")
1060
+
1061
+
1062
+ class DeleteSecurityGroupRequest(AbstractModel):
1063
+ """DeleteSecurityGroup请求参数结构体
1064
+ """
1065
+
1066
+ def __init__(self):
1067
+ r"""删除安全组
1068
+ :param SecurityGroupIdList: 安全组ID列表,支持批量,用英文逗号隔开
1069
+ :type PathPrefix: String
1070
+ """
1071
+ self.SecurityGroupIdList = None
1072
+
1073
+ def _deserialize(self, params):
1074
+ if params.get("SecurityGroupIdList"):
1075
+ self.SecurityGroupIdList = params.get("SecurityGroupIdList")
1076
+
1077
+
1078
+ class ModifySecurityGroupRequest(AbstractModel):
1079
+ """ModifySecurityGroup请求参数结构体
1080
+ """
1081
+
1082
+ def __init__(self):
1083
+ r"""修改安全组(描述/名称)
1084
+ :param SecurityGroupId: 安全组id
1085
+ :type PathPrefix: String
1086
+ :param SecurityGroupName: 预期修改后的安全组名称
1087
+ :type PathPrefix: String
1088
+ :param SecurityGroupDescription: 预期修改后的安全组描述
1089
+ :type PathPrefix: String
1090
+ """
1091
+ self.SecurityGroupId = None
1092
+ self.SecurityGroupName = None
1093
+ self.SecurityGroupDescription = None
1094
+
1095
+ def _deserialize(self, params):
1096
+ if params.get("SecurityGroupId"):
1097
+ self.SecurityGroupId = params.get("SecurityGroupId")
1098
+ if params.get("SecurityGroupName"):
1099
+ self.SecurityGroupName = params.get("SecurityGroupName")
1100
+ if params.get("SecurityGroupDescription"):
1101
+ self.SecurityGroupDescription = params.get("SecurityGroupDescription")
1102
+
1103
+
1104
+ class CloneSecurityGroupRequest(AbstractModel):
1105
+ """CloneSecurityGroup请求参数结构体
1106
+ """
1107
+
1108
+ def __init__(self):
1109
+ r"""克隆安全组(仅含CIDR规则)
1110
+ :param SecurityGroupId: 源端安全组id
1111
+ :type PathPrefix: String
1112
+ :param SecurityGroupName: 安全组名称
1113
+ :type PathPrefix: String
1114
+ :param SecurityGroupDescription: 安全组描述
1115
+ :type PathPrefix: String
1116
+ """
1117
+ self.SecurityGroupId = None
1118
+ self.SecurityGroupName = None
1119
+ self.SecurityGroupDescription = None
1120
+
1121
+ def _deserialize(self, params):
1122
+ if params.get("SecurityGroupId"):
1123
+ self.SecurityGroupId = params.get("SecurityGroupId")
1124
+ if params.get("SecurityGroupName"):
1125
+ self.SecurityGroupName = params.get("SecurityGroupName")
1126
+ if params.get("SecurityGroupDescription"):
1127
+ self.SecurityGroupDescription = params.get("SecurityGroupDescription")
1128
+
1129
+
1130
+ class ModifySecurityGroupRuleRequest(AbstractModel):
1131
+ """ModifySecurityGroupRule请求参数结构体
1132
+ """
1133
+
1134
+ def __init__(self):
1135
+ r"""修改安全组规则
1136
+ :param SecurityGroupRuleAction: 取值范围:Attach|Delete|Cover
1137
+ Attach: 将传入的规则列表(SecurityGroupRuleName,SecurityGroupRuleProtocol)追加到安全组规则列表内。所有绑定了此安全组的实例都会发生变化。
1138
+ Delete:从安全组中删除传入的规则列表(SecurityGroupRuleId)。所有绑定了此安全组的实例都会发生变化。
1139
+ Cover:用传入的规则列表(SecurityGroupRuleName,SecurityGroupRuleProtocol)覆盖安全组规则列表。所有绑定了此安全组的实例都会发生变化。
1140
+ :type PathPrefix: String
1141
+ :param SecurityGroupId: 安全组Id
1142
+ :type PathPrefix: String
1143
+ :param SecurityGroupRule.SecurityGroupRuleId.N: 规则id列表. 如SecurityGroupRule.SecurityGroupRuleId.1=*****
1144
+ :type PathPrefix: String
1145
+ :param SecurityGroupRule.SecurityGroupRuleName.N: 规则名称列表。不超过256个字节,仅支持中文、大小写字母、数字、减号和下划线。如SecurityGroupRule.SecurityGroupRuleName.1=***
1146
+ :type PathPrefix: String
1147
+ :param SecurityGroupRule.SecurityGroupRuleCidr.N: 规则协议列表。 0.0.0.0/32格式
1148
+ :type PathPrefix: String
1149
+ """
1150
+ self.SecurityGroupRuleAction = None
1151
+ self.SecurityGroupId = None
1152
+ self.SecurityGroupRule_SecurityGroupRuleId_N = None
1153
+ self.SecurityGroupRule_SecurityGroupRuleName_N = None
1154
+ self.SecurityGroupRule_SecurityGroupRuleCidr_N = None
1155
+
1156
+ def _deserialize(self, params):
1157
+ if params.get("SecurityGroupRuleAction"):
1158
+ self.SecurityGroupRuleAction = params.get("SecurityGroupRuleAction")
1159
+ if params.get("SecurityGroupId"):
1160
+ self.SecurityGroupId = params.get("SecurityGroupId")
1161
+ if params.get("SecurityGroupRule.SecurityGroupRuleId.N"):
1162
+ self.SecurityGroupRule_SecurityGroupRuleId_N = params.get("SecurityGroupRule.SecurityGroupRuleId.N")
1163
+ if params.get("SecurityGroupRule.SecurityGroupRuleName.N"):
1164
+ self.SecurityGroupRule_SecurityGroupRuleName_N = params.get("SecurityGroupRule.SecurityGroupRuleName.N")
1165
+ if params.get("SecurityGroupRule.SecurityGroupRuleCidr.N"):
1166
+ self.SecurityGroupRule_SecurityGroupRuleCidr_N = params.get("SecurityGroupRule.SecurityGroupRuleCidr.N")
1167
+
1168
+
1169
+ class SecurityGroupRelationRequest(AbstractModel):
1170
+ """SecurityGroupRelation请求参数结构体
1171
+ """
1172
+
1173
+ def __init__(self):
1174
+ r"""修改安全组绑定关系
1175
+ :param SecurityGroupId: 安全组ID
1176
+ :type PathPrefix: String
1177
+ :param RelationAction: 安全组操作
1178
+ Attach:绑定
1179
+ Dettach:解绑
1180
+ :type PathPrefix: String
1181
+ :param DBInstanceIdentifier: 实例ID列表
1182
+ :type PathPrefix: Filter
1183
+ """
1184
+ self.SecurityGroupId = None
1185
+ self.RelationAction = None
1186
+ self.DBInstanceIdentifier = None
1187
+
1188
+ def _deserialize(self, params):
1189
+ if params.get("SecurityGroupId"):
1190
+ self.SecurityGroupId = params.get("SecurityGroupId")
1191
+ if params.get("RelationAction"):
1192
+ self.RelationAction = params.get("RelationAction")
1193
+ if params.get("DBInstanceIdentifier"):
1194
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1195
+
1196
+
1197
+ class ModifySecurityGroupRuleNameRequest(AbstractModel):
1198
+ """ModifySecurityGroupRuleName请求参数结构体
1199
+ """
1200
+
1201
+ def __init__(self):
1202
+ r"""修改安全组规则名称
1203
+ :param SecurityGroupRuleId: 安全组规则id
1204
+ :type PathPrefix: String
1205
+ :param SecurityGroupRuleName: 安全组规则名称
1206
+ :type PathPrefix: String
1207
+ """
1208
+ self.SecurityGroupRuleId = None
1209
+ self.SecurityGroupRuleName = None
1210
+
1211
+ def _deserialize(self, params):
1212
+ if params.get("SecurityGroupRuleId"):
1213
+ self.SecurityGroupRuleId = params.get("SecurityGroupRuleId")
1214
+ if params.get("SecurityGroupRuleName"):
1215
+ self.SecurityGroupRuleName = params.get("SecurityGroupRuleName")
1216
+
1217
+
1218
+ class DescribeLastLogRequest(AbstractModel):
1219
+ """DescribeLastLog请求参数结构体
1220
+ """
1221
+
1222
+ def __init__(self):
1223
+ r"""获取实时日志
1224
+ :param DBInstanceIdentifier: 实例ID
1225
+ :type PathPrefix: String
1226
+ :param DBLogType: 日志类型 大小写敏感,取值范围:SlowLog/ErrorLog/Binlog
1227
+ :type PathPrefix: String
1228
+ """
1229
+ self.DBInstanceIdentifier = None
1230
+ self.DBLogType = None
1231
+
1232
+ def _deserialize(self, params):
1233
+ if params.get("DBInstanceIdentifier"):
1234
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1235
+ if params.get("DBLogType"):
1236
+ self.DBLogType = params.get("DBLogType")
1237
+
1238
+
1239
+ class StartAuditRequest(AbstractModel):
1240
+ """StartAudit请求参数结构体
1241
+ """
1242
+
1243
+ def __init__(self):
1244
+ r"""开启审计
1245
+ :param DBInstanceIdentifier: 实例ID
1246
+ :type PathPrefix: String
1247
+ """
1248
+ self.DBInstanceIdentifier = None
1249
+
1250
+ def _deserialize(self, params):
1251
+ if params.get("DBInstanceIdentifier"):
1252
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1253
+
1254
+
1255
+ class StopAuditRequest(AbstractModel):
1256
+ """StopAudit请求参数结构体
1257
+ """
1258
+
1259
+ def __init__(self):
1260
+ r"""关闭审计
1261
+ :param DBInstanceIdentifier: 实例ID
1262
+ :type PathPrefix: String
1263
+ """
1264
+ self.DBInstanceIdentifier = None
1265
+
1266
+ def _deserialize(self, params):
1267
+ if params.get("DBInstanceIdentifier"):
1268
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1269
+
1270
+
1271
+ class ListAuditRequest(AbstractModel):
1272
+ """ListAudit请求参数结构体
1273
+ """
1274
+
1275
+ def __init__(self):
1276
+ r"""查询审计列表
1277
+ :param DBInstanceIdentifier: 实例ID
1278
+ :type PathPrefix: String
1279
+ :param AccessSqlStatement: 根据SQL操作命令筛选结果 例如:SELECT/INSERT/LOGOUT/CALL 可组合查询,字段以`/`分开
1280
+ :type PathPrefix: String
1281
+ :param AccessSqlLanguage: 根据访问SQL类型筛选结果 例如:DQL/DML;可组合查询,字段以`/`分开
1282
+ :type PathPrefix: String
1283
+ :param AccessDBName: 根据访问数据库名称筛选结果 例如:products;可组合查询,字段以`/`分开
1284
+ :type PathPrefix: String
1285
+ :param SourceIp: 根据来源Ip筛选结果 例如:10.208.0.100;可组合查询,字段以`/`分开
1286
+ :type PathPrefix: String
1287
+ :param AccessUsername: 根据登录用户名筛选结果 例如:rdsrepladmin;可组合查询,字段以`/`分开
1288
+ :type PathPrefix: String
1289
+ :param AuditBeginTime: 查询开始时间 例如:2021-08-31 19:47:37;同查询结束时间一起填写
1290
+ :type PathPrefix: String
1291
+ :param AuditEndTime: 查询结束时间 例如:2021-08-31 19:47:37;同查询开始时间一起填写
1292
+ :type PathPrefix: String
1293
+ :param RunResult: 执行结果 默认成功。0: 失败,1 成功;可组合查询,字段以`/`分开
1294
+ :type PathPrefix: String
1295
+ :param KeyWord: SQL模糊查询 默认无;<br>注意:<br>1.以`/`为分隔符隔开,并在末尾追加`&`或者`
1296
+ :type PathPrefix: String
1297
+ :param SortBy: 排序字段 例如:ExecTime;<br>注意:<br>支持且仅支持如下字段(支持小驼峰传参):<br>Duration<br>RowSent<br>ExecTime
1298
+ :type PathPrefix: String
1299
+ :param SortWay: 排序方式 默认按照ExecTime倒叙排序;1-正序 2-倒序
1300
+ :type PathPrefix: String
1301
+ :param Marker: Offset,默认0 默认0
1302
+ :type PathPrefix: String
1303
+ :param MaxRecords: Limit,默认10 默认10,范围[10,10000]
1304
+ :type PathPrefix: String
1305
+ """
1306
+ self.DBInstanceIdentifier = None
1307
+ self.AccessSqlStatement = None
1308
+ self.AccessSqlLanguage = None
1309
+ self.AccessDBName = None
1310
+ self.SourceIp = None
1311
+ self.AccessUsername = None
1312
+ self.AuditBeginTime = None
1313
+ self.AuditEndTime = None
1314
+ self.RunResult = None
1315
+ self.KeyWord = None
1316
+ self.SortBy = None
1317
+ self.SortWay = None
1318
+ self.Marker = None
1319
+ self.MaxRecords = None
1320
+
1321
+ def _deserialize(self, params):
1322
+ if params.get("DBInstanceIdentifier"):
1323
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1324
+ if params.get("AccessSqlStatement"):
1325
+ self.AccessSqlStatement = params.get("AccessSqlStatement")
1326
+ if params.get("AccessSqlLanguage"):
1327
+ self.AccessSqlLanguage = params.get("AccessSqlLanguage")
1328
+ if params.get("AccessDBName"):
1329
+ self.AccessDBName = params.get("AccessDBName")
1330
+ if params.get("SourceIp"):
1331
+ self.SourceIp = params.get("SourceIp")
1332
+ if params.get("AccessUsername"):
1333
+ self.AccessUsername = params.get("AccessUsername")
1334
+ if params.get("AuditBeginTime"):
1335
+ self.AuditBeginTime = params.get("AuditBeginTime")
1336
+ if params.get("AuditEndTime"):
1337
+ self.AuditEndTime = params.get("AuditEndTime")
1338
+ if params.get("RunResult"):
1339
+ self.RunResult = params.get("RunResult")
1340
+ if params.get("KeyWord"):
1341
+ self.KeyWord = params.get("KeyWord")
1342
+ if params.get("SortBy"):
1343
+ self.SortBy = params.get("SortBy")
1344
+ if params.get("SortWay"):
1345
+ self.SortWay = params.get("SortWay")
1346
+ if params.get("Marker"):
1347
+ self.Marker = params.get("Marker")
1348
+ if params.get("MaxRecords"):
1349
+ self.MaxRecords = params.get("MaxRecords")
1350
+
1351
+
1352
+ class AuditStatisticRequest(AbstractModel):
1353
+ """AuditStatistic请求参数结构体
1354
+ """
1355
+
1356
+ def __init__(self):
1357
+ r"""查询审计统计数据列表
1358
+ :param DBInstanceIdentifier: 实例ID
1359
+ :type PathPrefix: String
1360
+ :param AuditStatisticBeginTime: 统计开始时间
1361
+ :type PathPrefix: String
1362
+ :param AuditStatisticEndTime: 统计结束时间
1363
+ :type PathPrefix: String
1364
+ """
1365
+ self.DBInstanceIdentifier = None
1366
+ self.AuditStatisticBeginTime = None
1367
+ self.AuditStatisticEndTime = None
1368
+
1369
+ def _deserialize(self, params):
1370
+ if params.get("DBInstanceIdentifier"):
1371
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1372
+ if params.get("AuditStatisticBeginTime"):
1373
+ self.AuditStatisticBeginTime = params.get("AuditStatisticBeginTime")
1374
+ if params.get("AuditStatisticEndTime"):
1375
+ self.AuditStatisticEndTime = params.get("AuditStatisticEndTime")
1376
+
1377
+
1378
+ class GetCurrentDatabaseInfoRequest(AbstractModel):
1379
+ """GetCurrentDatabaseInfo请求参数结构体
1380
+ """
1381
+
1382
+ def __init__(self):
1383
+ r"""查询当前库表信息(前置)
1384
+ :param DBInstanceIdentifier: 实例ID
1385
+ :type PathPrefix: String
1386
+ """
1387
+ self.DBInstanceIdentifier = None
1388
+
1389
+ def _deserialize(self, params):
1390
+ if params.get("DBInstanceIdentifier"):
1391
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1392
+
1393
+
1394
+ class GetTableRestorableTimeRequest(AbstractModel):
1395
+ """GetTableRestorableTime请求参数结构体
1396
+ """
1397
+
1398
+ def __init__(self):
1399
+ r"""获取可恢复时间段(前置)
1400
+ :param DBInstanceIdentifier: 实例ID
1401
+ :type PathPrefix: String
1402
+ """
1403
+ self.DBInstanceIdentifier = None
1404
+
1405
+ def _deserialize(self, params):
1406
+ if params.get("DBInstanceIdentifier"):
1407
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1408
+
1409
+
1410
+ class GetHistoryDatabaseInfoRequest(AbstractModel):
1411
+ """GetHistoryDatabaseInfo请求参数结构体
1412
+ """
1413
+
1414
+ def __init__(self):
1415
+ r"""获取指定时间点/备份集附近的库表信息
1416
+ :param DBInstanceIdentifier: 实例ID
1417
+ :type PathPrefix: String
1418
+ :param DBBackupIdentifier: 备份ID 根据备份集查询必传
1419
+ :type PathPrefix: String
1420
+ :param RestorableTime: 恢复时间 例如:2021-09-22 00:00:00 根据时间查询必传
1421
+ :type PathPrefix: String
1422
+ """
1423
+ self.DBInstanceIdentifier = None
1424
+ self.DBBackupIdentifier = None
1425
+ self.RestorableTime = None
1426
+
1427
+ def _deserialize(self, params):
1428
+ if params.get("DBInstanceIdentifier"):
1429
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1430
+ if params.get("DBBackupIdentifier"):
1431
+ self.DBBackupIdentifier = params.get("DBBackupIdentifier")
1432
+ if params.get("RestorableTime"):
1433
+ self.RestorableTime = params.get("RestorableTime")
1434
+
1435
+
1436
+ class OverrideDBInstanceByPointInTimeRequest(AbstractModel):
1437
+ """OverrideDBInstanceByPointInTime请求参数结构体
1438
+ """
1439
+
1440
+ def __init__(self):
1441
+ r"""恢复到原实例(指定时间点/备份集)
1442
+ :param DBInstanceIdentifier: 实例ID
1443
+ :type PathPrefix: String
1444
+ :param DBBackupIdentifier: 备份ID 指定备份集恢复必传
1445
+ :type PathPrefix: String
1446
+ :param RestorableTime: 恢复的时间点 指定时间点恢复必传 yyyy-MM-dd HH:mm:ss
1447
+ :type PathPrefix: String
1448
+ """
1449
+ self.DBInstanceIdentifier = None
1450
+ self.DBBackupIdentifier = None
1451
+ self.RestorableTime = None
1452
+
1453
+ def _deserialize(self, params):
1454
+ if params.get("DBInstanceIdentifier"):
1455
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1456
+ if params.get("DBBackupIdentifier"):
1457
+ self.DBBackupIdentifier = params.get("DBBackupIdentifier")
1458
+ if params.get("RestorableTime"):
1459
+ self.RestorableTime = params.get("RestorableTime")
1460
+
1461
+
1462
+ class RestoreToCurInstanceRequest(AbstractModel):
1463
+ """RestoreToCurInstance请求参数结构体
1464
+ """
1465
+
1466
+ def __init__(self):
1467
+ r"""恢复到原实例(指定库表)
1468
+ :param DBInstanceIdentifier: 实例ID
1469
+ :type PathPrefix: String
1470
+ :param DBBackupIdentifier: 备份ID 根据备份恢复,必传备份ID,且必传SrcDatabases和DstDatabases
1471
+ :type PathPrefix: String
1472
+ :param RestorableTime: 恢复时间 根据时间点恢复,必传时间点,且必传SrcDatabases和DstDatabases;格式:yyyy-MM-dd HH:mm:ss
1473
+ :type PathPrefix: String
1474
+ :param SrcDatabases: 源 [{<br> "DatabaseName": "wang",<br>"WholeDatabase":"True",<br>"TableNames": [<br>"li"]<br>}]
1475
+ :type PathPrefix: Filter
1476
+ :param DstDatabases: 目标 [{<br>"DatabaseName": "wang",<br>"WholeDatabase":"True",<br>"TableNames": [<br> "li"]<br> }]
1477
+ :type PathPrefix: Filter
1478
+ """
1479
+ self.DBInstanceIdentifier = None
1480
+ self.DBBackupIdentifier = None
1481
+ self.RestorableTime = None
1482
+ self.SrcDatabases = None
1483
+ self.DstDatabases = None
1484
+
1485
+ def _deserialize(self, params):
1486
+ if params.get("DBInstanceIdentifier"):
1487
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1488
+ if params.get("DBBackupIdentifier"):
1489
+ self.DBBackupIdentifier = params.get("DBBackupIdentifier")
1490
+ if params.get("RestorableTime"):
1491
+ self.RestorableTime = params.get("RestorableTime")
1492
+ if params.get("SrcDatabases"):
1493
+ self.SrcDatabases = params.get("SrcDatabases")
1494
+ if params.get("DstDatabases"):
1495
+ self.DstDatabases = params.get("DstDatabases")
1496
+
1497
+
1498
+ class RestoreToSgInstanceRequest(AbstractModel):
1499
+ """RestoreToSgInstance请求参数结构体
1500
+ """
1501
+
1502
+ def __init__(self):
1503
+ r"""恢复到临时实例
1504
+ :param DBInstanceIdentifier: 实例ID
1505
+ :type PathPrefix: String
1506
+ :param DBBackupIdentifier: 备份ID 根据备份恢复,必传备份ID,且必传SrcDatabases和DstDatabases
1507
+ :type PathPrefix: String
1508
+ :param RestorableTime: 恢复时间 根据时间点恢复,必传时间点,且必传SrcDatabases和DstDatabases;格式:yyyy-MM-dd HH:mm:ss
1509
+ :type PathPrefix: String
1510
+ :param SrcDatabases: 源 [{<br> "DatabaseName": "wang",<br>"WholeDatabase":"True",<br>"TableNames": [<br>"li"]<br>}]
1511
+ :type PathPrefix: Filter
1512
+ :param DstDatabases: 目标 [{<br>"DatabaseName": "wang",<br>"WholeDatabase":"True",<br>"TableNames": [<br> "li"]<br> }]
1513
+ :type PathPrefix: Filter
1514
+ """
1515
+ self.DBInstanceIdentifier = None
1516
+ self.DBBackupIdentifier = None
1517
+ self.RestorableTime = None
1518
+ self.SrcDatabases = None
1519
+ self.DstDatabases = None
1520
+
1521
+ def _deserialize(self, params):
1522
+ if params.get("DBInstanceIdentifier"):
1523
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1524
+ if params.get("DBBackupIdentifier"):
1525
+ self.DBBackupIdentifier = params.get("DBBackupIdentifier")
1526
+ if params.get("RestorableTime"):
1527
+ self.RestorableTime = params.get("RestorableTime")
1528
+ if params.get("SrcDatabases"):
1529
+ self.SrcDatabases = params.get("SrcDatabases")
1530
+ if params.get("DstDatabases"):
1531
+ self.DstDatabases = params.get("DstDatabases")
1532
+
1533
+
1534
+ class DescribeAuditHotCountRequest(AbstractModel):
1535
+ """DescribeAuditHotCount请求参数结构体
1536
+ """
1537
+
1538
+ def __init__(self):
1539
+ r"""某时段SQL执行次数TOP10查询
1540
+ :param DBInstanceIdentifier: 实例ID
1541
+ :type PathPrefix: String
1542
+ :param TimeRange: 查询间隔 最近1小时:LASTEST_ONE_HOUR<br>最近3小时:LASTEST_THREE_HOUR<br>最近1天:LASTEST_ONE_DAY<br>最近1周:LASTEST_ONE_WEEK<br>自定义查询时间:CUSTOM<br>注意:自定义查询时间的时候必须填写startTime和endTime<br>注意:最近1小时,最近3小时均以5分钟为时间间隔聚合;最近一天以30分钟聚合;最近一周以6小时聚合
1543
+ :type PathPrefix: String
1544
+ :param StartTime: 查询开始时间
1545
+ :type PathPrefix: String
1546
+ :param EndTime: 查询结束时间
1547
+ :type PathPrefix: String
1548
+ """
1549
+ self.DBInstanceIdentifier = None
1550
+ self.TimeRange = None
1551
+ self.StartTime = None
1552
+ self.EndTime = None
1553
+
1554
+ def _deserialize(self, params):
1555
+ if params.get("DBInstanceIdentifier"):
1556
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1557
+ if params.get("TimeRange"):
1558
+ self.TimeRange = params.get("TimeRange")
1559
+ if params.get("StartTime"):
1560
+ self.StartTime = params.get("StartTime")
1561
+ if params.get("EndTime"):
1562
+ self.EndTime = params.get("EndTime")
1563
+
1564
+
1565
+ class DescribeAuditHotDurationRequest(AbstractModel):
1566
+ """DescribeAuditHotDuration请求参数结构体
1567
+ """
1568
+
1569
+ def __init__(self):
1570
+ r"""某时段SQL执行耗时TOP10查询
1571
+ :param DBInstanceIdentifier: 实例ID
1572
+ :type PathPrefix: String
1573
+ :param TimeRange: 查询间隔 最近1小时:LASTEST_ONE_HOUR<br>最近3小时:LASTEST_THREE_HOUR<br>最近1天:LASTEST_ONE_DAY<br>最近1周:LASTEST_ONE_WEEK<br>自定义查询时间:CUSTOM<br>注意:自定义查询时间的时候必须填写startTime和endTime<br>注意:最近1小时,最近3小时均以5分钟为时间间隔聚合;最近一天以30分钟聚合;最近一周以6小时聚合
1574
+ :type PathPrefix: String
1575
+ :param StartTime: 查询开始时间
1576
+ :type PathPrefix: String
1577
+ :param EndTime: 查询结束时间
1578
+ :type PathPrefix: String
1579
+ """
1580
+ self.DBInstanceIdentifier = None
1581
+ self.TimeRange = None
1582
+ self.StartTime = None
1583
+ self.EndTime = None
1584
+
1585
+ def _deserialize(self, params):
1586
+ if params.get("DBInstanceIdentifier"):
1587
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1588
+ if params.get("TimeRange"):
1589
+ self.TimeRange = params.get("TimeRange")
1590
+ if params.get("StartTime"):
1591
+ self.StartTime = params.get("StartTime")
1592
+ if params.get("EndTime"):
1593
+ self.EndTime = params.get("EndTime")
1594
+
1595
+
1596
+ class SqlAuditReportRequest(AbstractModel):
1597
+ """SqlAuditReport请求参数结构体
1598
+ """
1599
+
1600
+ def __init__(self):
1601
+ r"""某时段全量SQL统计
1602
+ :param DBInstanceIdentifier: 实例ID
1603
+ :type PathPrefix: String
1604
+ :param TimeRange: 查询间隔 最近1小时:LASTEST_ONE_HOUR<br>最近3小时:LASTEST_THREE_HOUR<br>最近1天:LASTEST_ONE_DAY<br>最近1周:LASTEST_ONE_WEEK<br>自定义查询时间:CUSTOM<br>注意:自定义查询时间的时候必须填写startTime和endTime<br>注意:最近1小时,最近3小时均以5分钟为时间间隔聚合;最近一天以30分钟聚合;最近一周以6小时聚合
1605
+ :type PathPrefix: String
1606
+ :param StartTime: 查询开始时间 例如:2021-09-01 14:42:51
1607
+ :type PathPrefix: String
1608
+ :param EndTime: 查询结束时间 例如:2021-09-01 13:42:51
1609
+ :type PathPrefix: String
1610
+ :param DbName: 数据库名称
1611
+ :type PathPrefix: String
1612
+ :param SortBy: 排序字段 默认执行次数(count)倒序排序:<br>排序字段:<br>count:执行次数<br>countRatio:执行次数比例<br>durationAvg: 平均执行耗时<br>durationRatio: 执行耗时占比
1613
+ :type PathPrefix: String
1614
+ :param SortWay: 排序方式 默认:1 <br>可填1:倒序(降序)<br>可填0:正序(降序)
1615
+ :type PathPrefix: Int
1616
+ :param Page: 页码 默认:1
1617
+ :type PathPrefix: Int
1618
+ :param Size: 每页条数 默认:15,可填区间:[15,100]
1619
+ :type PathPrefix: Int
1620
+ """
1621
+ self.DBInstanceIdentifier = None
1622
+ self.TimeRange = None
1623
+ self.StartTime = None
1624
+ self.EndTime = None
1625
+ self.DbName = None
1626
+ self.SortBy = None
1627
+ self.SortWay = None
1628
+ self.Page = None
1629
+ self.Size = None
1630
+
1631
+ def _deserialize(self, params):
1632
+ if params.get("DBInstanceIdentifier"):
1633
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1634
+ if params.get("TimeRange"):
1635
+ self.TimeRange = params.get("TimeRange")
1636
+ if params.get("StartTime"):
1637
+ self.StartTime = params.get("StartTime")
1638
+ if params.get("EndTime"):
1639
+ self.EndTime = params.get("EndTime")
1640
+ if params.get("DbName"):
1641
+ self.DbName = params.get("DbName")
1642
+ if params.get("SortBy"):
1643
+ self.SortBy = params.get("SortBy")
1644
+ if params.get("SortWay"):
1645
+ self.SortWay = params.get("SortWay")
1646
+ if params.get("Page"):
1647
+ self.Page = params.get("Page")
1648
+ if params.get("Size"):
1649
+ self.Size = params.get("Size")
1650
+
1651
+
1652
+ class SqlAuditLineChartRequest(AbstractModel):
1653
+ """SqlAuditLineChart请求参数结构体
1654
+ """
1655
+
1656
+ def __init__(self):
1657
+ r"""某时段全量SQL折线图
1658
+ :param DBInstanceIdentifier: 实例ID
1659
+ :type PathPrefix: String
1660
+ :param TimeRange: 查询间隔 最近1小时:LASTEST_ONE_HOUR<br>最近3小时:LASTEST_THREE_HOUR<br>最近1天:LASTEST_ONE_DAY<br>最近1周:LASTEST_ONE_WEEK<br>自定义查询时间:CUSTOM<br>注意:自定义查询时间的时候必须填写startTime和endTime<br>注意:最近1小时,最近3小时均以5分钟为时间间隔聚合;最近一天以30分钟聚合;最近一周以6小时聚合
1661
+ :type PathPrefix: String
1662
+ :param StartTime: 查询开始时间 例如:2021-09-01 14:42:51
1663
+ :type PathPrefix: String
1664
+ :param EndTime: 查询结束时间 例如:2021-09-01 13:42:51
1665
+ :type PathPrefix: String
1666
+ """
1667
+ self.DBInstanceIdentifier = None
1668
+ self.TimeRange = None
1669
+ self.StartTime = None
1670
+ self.EndTime = None
1671
+
1672
+ def _deserialize(self, params):
1673
+ if params.get("DBInstanceIdentifier"):
1674
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1675
+ if params.get("TimeRange"):
1676
+ self.TimeRange = params.get("TimeRange")
1677
+ if params.get("StartTime"):
1678
+ self.StartTime = params.get("StartTime")
1679
+ if params.get("EndTime"):
1680
+ self.EndTime = params.get("EndTime")
1681
+
1682
+
1683
+ class SlowLogReportRequest(AbstractModel):
1684
+ """SlowLogReport请求参数结构体
1685
+ """
1686
+
1687
+ def __init__(self):
1688
+ r"""慢日志统计
1689
+ :param DBInstanceIdentifier: 实例ID
1690
+ :type PathPrefix: String
1691
+ :param StartTime: 时间区间开始 yyyy-MM-dd HH:mm:ss
1692
+ :type PathPrefix: String
1693
+ :param EndTime: 时间区间结束 yyyy-MM-dd HH:mm:ss
1694
+ :type PathPrefix: String
1695
+ :param SortBy: queryCount/ 查询条数
1696
+ queryTimeAvg/ 查询平均时间
1697
+ queryTimeMax/ 查询最大时间
1698
+ lockTimeAvg/ 平均等待时间
1699
+ lockTimeMax/ 最大等待时间
1700
+ rowsExaminedAvg/ 平均扫描行
1701
+ rowsExaminedMax/ 最大扫描行
1702
+ rowsSentAvg/ 平均返回行
1703
+ rowsSentMax 最大返回行
1704
+ processingTime 处理时间(不传排序字段和方式默认处理时间倒序)
1705
+ :type PathPrefix: String
1706
+ :param SortWay: 排序规则
1707
+ ASC 正序(升序)
1708
+ DESC 倒序(倒列)
1709
+ :type PathPrefix: String
1710
+ :param HeadKey: 以INSERT、UPDATE、DELETE、SELECT为首进行匹配
1711
+ :type PathPrefix: String
1712
+ :param Marker: 偏移量
1713
+ :type PathPrefix: Int
1714
+ :param MaxRecords: 每页结果中包含的最大条数
1715
+ 默认:0,区间 [10,10000]
1716
+ :type PathPrefix: Int
1717
+ """
1718
+ self.DBInstanceIdentifier = None
1719
+ self.StartTime = None
1720
+ self.EndTime = None
1721
+ self.SortBy = None
1722
+ self.SortWay = None
1723
+ self.HeadKey = None
1724
+ self.Marker = None
1725
+ self.MaxRecords = None
1726
+
1727
+ def _deserialize(self, params):
1728
+ if params.get("DBInstanceIdentifier"):
1729
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1730
+ if params.get("StartTime"):
1731
+ self.StartTime = params.get("StartTime")
1732
+ if params.get("EndTime"):
1733
+ self.EndTime = params.get("EndTime")
1734
+ if params.get("SortBy"):
1735
+ self.SortBy = params.get("SortBy")
1736
+ if params.get("SortWay"):
1737
+ self.SortWay = params.get("SortWay")
1738
+ if params.get("HeadKey"):
1739
+ self.HeadKey = params.get("HeadKey")
1740
+ if params.get("Marker"):
1741
+ self.Marker = params.get("Marker")
1742
+ if params.get("MaxRecords"):
1743
+ self.MaxRecords = params.get("MaxRecords")
1744
+
1745
+
1746
+ class SlowLogLineChartRequest(AbstractModel):
1747
+ """SlowLogLineChart请求参数结构体
1748
+ """
1749
+
1750
+ def __init__(self):
1751
+ r"""慢日志趋势图(折线图展示)
1752
+ :param DBInstanceIdentifier: 实例ID
1753
+ :type PathPrefix: String
1754
+ :param StartTime: 开始时间 yyyy-MM-dd HH:mm:ss
1755
+ :type PathPrefix: String
1756
+ :param EndTime: 结束时间 yyyy-MM-dd HH:mm:ss
1757
+ :type PathPrefix: String
1758
+ """
1759
+ self.DBInstanceIdentifier = None
1760
+ self.StartTime = None
1761
+ self.EndTime = None
1762
+
1763
+ def _deserialize(self, params):
1764
+ if params.get("DBInstanceIdentifier"):
1765
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1766
+ if params.get("StartTime"):
1767
+ self.StartTime = params.get("StartTime")
1768
+ if params.get("EndTime"):
1769
+ self.EndTime = params.get("EndTime")
1770
+
1771
+
1772
+ class SlowLogDetailRequest(AbstractModel):
1773
+ """SlowLogDetail请求参数结构体
1774
+ """
1775
+
1776
+ def __init__(self):
1777
+ r"""慢日志详情
1778
+ :param DBInstanceIdentifier: 实例ID
1779
+ :type PathPrefix: String
1780
+ :param StartTime: 时间区间开始
1781
+ yyyy-MM-dd HH:mm:ss
1782
+ :type PathPrefix: String
1783
+ :param EndTime: 时间区间结束
1784
+ yyyy-MM-dd HH:mm:ss
1785
+ :type PathPrefix: String
1786
+ :param SortBy: 排序字段
1787
+
1788
+ sqlExecTimeStamp:执行完成时间
1789
+ currentUser:用户
1790
+ hostname:客户端ip
1791
+ queryTime: 执行耗时
1792
+ lockTime:锁等待时间
1793
+ rowsExamined:扫描行
1794
+ rowsSent:返回行
1795
+ :type PathPrefix: String
1796
+ :param SortWay: 排序规则
1797
+ 1-正序 2-倒序
1798
+ :type PathPrefix: String
1799
+ :param HeadKey: 多选匹配
1800
+ 以INSERT、UPDATE、DELETE、SELECT为首进行匹配,支持多选以|隔开,例如:HeadKey: SELECT|IN
1801
+ :type PathPrefix: String
1802
+ :param FingerPrint: 具体模板
1803
+ :type PathPrefix: String
1804
+ :param checksum: 标识
1805
+ :type PathPrefix: String
1806
+ """
1807
+ self.DBInstanceIdentifier = None
1808
+ self.StartTime = None
1809
+ self.EndTime = None
1810
+ self.SortBy = None
1811
+ self.SortWay = None
1812
+ self.HeadKey = None
1813
+ self.FingerPrint = None
1814
+ self.checksum = None
1815
+
1816
+ def _deserialize(self, params):
1817
+ if params.get("DBInstanceIdentifier"):
1818
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1819
+ if params.get("StartTime"):
1820
+ self.StartTime = params.get("StartTime")
1821
+ if params.get("EndTime"):
1822
+ self.EndTime = params.get("EndTime")
1823
+ if params.get("SortBy"):
1824
+ self.SortBy = params.get("SortBy")
1825
+ if params.get("SortWay"):
1826
+ self.SortWay = params.get("SortWay")
1827
+ if params.get("HeadKey"):
1828
+ self.HeadKey = params.get("HeadKey")
1829
+ if params.get("FingerPrint"):
1830
+ self.FingerPrint = params.get("FingerPrint")
1831
+ if params.get("checksum"):
1832
+ self.checksum = params.get("checksum")
1833
+
1834
+
1835
+ class StartAuditDetailExportTaskRequest(AbstractModel):
1836
+ """StartAuditDetailExportTask请求参数结构体
1837
+ """
1838
+
1839
+ def __init__(self):
1840
+ r"""创建导出任务
1841
+ :param DBInstanceIdentifier: 实例ID
1842
+ :type PathPrefix: String
1843
+ :param ExportFileds: 导出字段选择
1844
+ 例如:ExecTime,Sql
1845
+ 可选择多个参数,以,进行隔开
1846
+ ExecTime:执行完成时间
1847
+ Sql:SQL
1848
+ DbName:数据库名称
1849
+ UserName:用户名称
1850
+ SourceIp:客户端IP
1851
+ RunResult:状态
1852
+ RowSent:更新行数
1853
+ Duration:执行耗时
1854
+ :type PathPrefix: String
1855
+ :param AuditBeginTime: 导出开始时间
1856
+ 例如:2021-08-31 14:14:55
1857
+ :type PathPrefix: String
1858
+ :param AuditEndTime: 导出结束时间
1859
+ 例如:2021-08-31 14:14:55
1860
+ :type PathPrefix: String
1861
+ """
1862
+ self.DBInstanceIdentifier = None
1863
+ self.ExportFileds = None
1864
+ self.AuditBeginTime = None
1865
+ self.AuditEndTime = None
1866
+
1867
+ def _deserialize(self, params):
1868
+ if params.get("DBInstanceIdentifier"):
1869
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1870
+ if params.get("ExportFileds"):
1871
+ self.ExportFileds = params.get("ExportFileds")
1872
+ if params.get("AuditBeginTime"):
1873
+ self.AuditBeginTime = params.get("AuditBeginTime")
1874
+ if params.get("AuditEndTime"):
1875
+ self.AuditEndTime = params.get("AuditEndTime")
1876
+
1877
+
1878
+ class ListAuditDetailExportTaskRequest(AbstractModel):
1879
+ """ListAuditDetailExportTask请求参数结构体
1880
+ """
1881
+
1882
+ def __init__(self):
1883
+ r"""导出任务列表(任务详情可下载)
1884
+ :param DBInstanceIdentifier: 实例ID
1885
+ :type PathPrefix: String
1886
+ :param Marker: 查询开始条数
1887
+ :type PathPrefix: String
1888
+ :param MaxRecords: 查询每页暂时条数
1889
+ :type PathPrefix: String
1890
+ """
1891
+ self.DBInstanceIdentifier = None
1892
+ self.Marker = None
1893
+ self.MaxRecords = None
1894
+
1895
+ def _deserialize(self, params):
1896
+ if params.get("DBInstanceIdentifier"):
1897
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1898
+ if params.get("Marker"):
1899
+ self.Marker = params.get("Marker")
1900
+ if params.get("MaxRecords"):
1901
+ self.MaxRecords = params.get("MaxRecords")
1902
+
1903
+
1904
+ class CreateInstanceAccountRequest(AbstractModel):
1905
+ """CreateInstanceAccount请求参数结构体
1906
+ """
1907
+
1908
+ def __init__(self):
1909
+ r"""创建数据库账户(GET)
1910
+ :param DBInstanceIdentifier: 实例ID
1911
+ :type PathPrefix: String
1912
+ :param InstanceAccountName: 账号名称 。root, rdsrepladmin, rdsadmin, dtsroot, sa不可用;由大小写字母、数字或下划线组成,以小写字母开头,以小写字母或数字结尾,长度为2~16个字符。
1913
+ :type PathPrefix: String
1914
+ :param InstanceAccountPassword: 账号密码 。8-30个字符,必须包含大小写字母和数字;支持的特殊字符:!@#$%^&*()_+=-
1915
+ :type PathPrefix: String
1916
+ :param InstanceAccountDescription: 数据库账号描述。
1917
+ :type PathPrefix: String
1918
+ """
1919
+ self.DBInstanceIdentifier = None
1920
+ self.InstanceAccountName = None
1921
+ self.InstanceAccountPassword = None
1922
+ self.InstanceAccountDescription = None
1923
+
1924
+ def _deserialize(self, params):
1925
+ if params.get("DBInstanceIdentifier"):
1926
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1927
+ if params.get("InstanceAccountName"):
1928
+ self.InstanceAccountName = params.get("InstanceAccountName")
1929
+ if params.get("InstanceAccountPassword"):
1930
+ self.InstanceAccountPassword = params.get("InstanceAccountPassword")
1931
+ if params.get("InstanceAccountDescription"):
1932
+ self.InstanceAccountDescription = params.get("InstanceAccountDescription")
1933
+
1934
+
1935
+ class DescribeInstanceAccountsRequest(AbstractModel):
1936
+ """DescribeInstanceAccounts请求参数结构体
1937
+ """
1938
+
1939
+ def __init__(self):
1940
+ r"""查询数据库账户列表
1941
+ :param DBInstanceIdentifier: 实例ID
1942
+ :type PathPrefix: String
1943
+ :param Keyword: 模糊查询。
1944
+ :type PathPrefix: String
1945
+ """
1946
+ self.DBInstanceIdentifier = None
1947
+ self.Keyword = None
1948
+
1949
+ def _deserialize(self, params):
1950
+ if params.get("DBInstanceIdentifier"):
1951
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1952
+ if params.get("Keyword"):
1953
+ self.Keyword = params.get("Keyword")
1954
+
1955
+
1956
+ class ModifyInstanceAccountInfoRequest(AbstractModel):
1957
+ """ModifyInstanceAccountInfo请求参数结构体
1958
+ """
1959
+
1960
+ def __init__(self):
1961
+ r"""修改数据库账户信息
1962
+ :param DBInstanceIdentifier: 实例ID
1963
+ :type PathPrefix: String
1964
+ :param InstanceAccountName: 数据库帐号名称
1965
+ :type PathPrefix: String
1966
+ :param InstanceAccountPassword: 数据库帐号新密码 必须包含大小写字母和数字,支持的特殊字符为!@#$%^&*()_+=-
1967
+ :type PathPrefix: String
1968
+ :param InstanceAccountDescription: 数据库帐号描述 帐号描述不填则不作修改
1969
+ :type PathPrefix: String
1970
+ """
1971
+ self.DBInstanceIdentifier = None
1972
+ self.InstanceAccountName = None
1973
+ self.InstanceAccountPassword = None
1974
+ self.InstanceAccountDescription = None
1975
+
1976
+ def _deserialize(self, params):
1977
+ if params.get("DBInstanceIdentifier"):
1978
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
1979
+ if params.get("InstanceAccountName"):
1980
+ self.InstanceAccountName = params.get("InstanceAccountName")
1981
+ if params.get("InstanceAccountPassword"):
1982
+ self.InstanceAccountPassword = params.get("InstanceAccountPassword")
1983
+ if params.get("InstanceAccountDescription"):
1984
+ self.InstanceAccountDescription = params.get("InstanceAccountDescription")
1985
+
1986
+
1987
+ class ModifyInstanceAccountPrivilegesRequest(AbstractModel):
1988
+ """ModifyInstanceAccountPrivileges请求参数结构体
1989
+ """
1990
+
1991
+ def __init__(self):
1992
+ r"""数据库账户赋权(GET)
1993
+ :param DBInstanceIdentifier: 实例id
1994
+ :type PathPrefix: String
1995
+ :param InstanceAccountName: 实例名称
1996
+ :type PathPrefix: String
1997
+ :param InstanceAccountPrivileges: 账户权限
1998
+ :type PathPrefix: Filter
1999
+ """
2000
+ self.DBInstanceIdentifier = None
2001
+ self.InstanceAccountName = None
2002
+ self.InstanceAccountPrivileges = None
2003
+
2004
+ def _deserialize(self, params):
2005
+ if params.get("DBInstanceIdentifier"):
2006
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2007
+ if params.get("InstanceAccountName"):
2008
+ self.InstanceAccountName = params.get("InstanceAccountName")
2009
+ if params.get("InstanceAccountPrivileges"):
2010
+ self.InstanceAccountPrivileges = params.get("InstanceAccountPrivileges")
2011
+
2012
+
2013
+ class DeleteInstanceAccountRequest(AbstractModel):
2014
+ """DeleteInstanceAccount请求参数结构体
2015
+ """
2016
+
2017
+ def __init__(self):
2018
+ r"""删除数据库账户(GET)
2019
+ :param DBInstanceIdentifier: 实例id。
2020
+ :type PathPrefix: String
2021
+ :param InstanceAccountName: 账户名称
2022
+ :type PathPrefix: String
2023
+ """
2024
+ self.DBInstanceIdentifier = None
2025
+ self.InstanceAccountName = None
2026
+
2027
+ def _deserialize(self, params):
2028
+ if params.get("DBInstanceIdentifier"):
2029
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2030
+ if params.get("InstanceAccountName"):
2031
+ self.InstanceAccountName = params.get("InstanceAccountName")
2032
+
2033
+
2034
+ class DescribeCollationsRequest(AbstractModel):
2035
+ """DescribeCollations请求参数结构体
2036
+ """
2037
+
2038
+ def __init__(self):
2039
+ r"""查询字符集列表(指定实例)
2040
+ :param DBInstanceIdentifier: 实例ID
2041
+ :type PathPrefix: String
2042
+ """
2043
+ self.DBInstanceIdentifier = None
2044
+
2045
+ def _deserialize(self, params):
2046
+ if params.get("DBInstanceIdentifier"):
2047
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2048
+
2049
+
2050
+ class CreateInstanceDatabaseRequest(AbstractModel):
2051
+ """CreateInstanceDatabase请求参数结构体
2052
+ """
2053
+
2054
+ def __init__(self):
2055
+ r"""创建实例数据库
2056
+ :param DBInstanceIdentifier: 实例ID
2057
+ :type PathPrefix: String
2058
+ :param InstanceDatabaseName: 数据库名称。 由小写字母、数字、下划线或中划线组成,以字母开头,以字母或数字结尾,长度为2~64个字符
2059
+ :type PathPrefix: String
2060
+ :param InstanceDatabaseCollation: 数据库字符集 非必填,默认为UTF-8:utf8_general_ci (DescribeCollations接口获取)
2061
+ :type PathPrefix: String
2062
+ :param InstanceDatabaseDescription: 数据库描述 必须中文、英文字母开头,可以包含数字、中文、英文、下划线(_)、短横线(-)
2063
+ :type PathPrefix: String
2064
+ """
2065
+ self.DBInstanceIdentifier = None
2066
+ self.InstanceDatabaseName = None
2067
+ self.InstanceDatabaseCollation = None
2068
+ self.InstanceDatabaseDescription = None
2069
+
2070
+ def _deserialize(self, params):
2071
+ if params.get("DBInstanceIdentifier"):
2072
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2073
+ if params.get("InstanceDatabaseName"):
2074
+ self.InstanceDatabaseName = params.get("InstanceDatabaseName")
2075
+ if params.get("InstanceDatabaseCollation"):
2076
+ self.InstanceDatabaseCollation = params.get("InstanceDatabaseCollation")
2077
+ if params.get("InstanceDatabaseDescription"):
2078
+ self.InstanceDatabaseDescription = params.get("InstanceDatabaseDescription")
2079
+
2080
+
2081
+ class ModifyInstanceDatabasePrivilegesRequest(AbstractModel):
2082
+ """ModifyInstanceDatabasePrivileges请求参数结构体
2083
+ """
2084
+
2085
+ def __init__(self):
2086
+ r"""数据库授权(GET)
2087
+ :param DBInstanceIdentifier: 实例ID
2088
+ :type PathPrefix: String
2089
+ :param InstanceDatabaseName: 数据库名称
2090
+ :type PathPrefix: String
2091
+ :param InstanceDatabasePrivileges:
2092
+ :type PathPrefix: Filter
2093
+ """
2094
+ self.DBInstanceIdentifier = None
2095
+ self.InstanceDatabaseName = None
2096
+ self.InstanceDatabasePrivileges = None
2097
+
2098
+ def _deserialize(self, params):
2099
+ if params.get("DBInstanceIdentifier"):
2100
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2101
+ if params.get("InstanceDatabaseName"):
2102
+ self.InstanceDatabaseName = params.get("InstanceDatabaseName")
2103
+ if params.get("InstanceDatabasePrivileges"):
2104
+ self.InstanceDatabasePrivileges = params.get("InstanceDatabasePrivileges")
2105
+
2106
+
2107
+ class DescribeInstanceDatabasesRequest(AbstractModel):
2108
+ """DescribeInstanceDatabases请求参数结构体
2109
+ """
2110
+
2111
+ def __init__(self):
2112
+ r"""查询实例库列表
2113
+ :param DBInstanceIdentifier: 实例ID
2114
+ :type PathPrefix: String
2115
+ :param InstanceDatabaseName: 数据库名称准确查询
2116
+ :type PathPrefix: String
2117
+ :param Keyword: 数据库名称模糊查询
2118
+ :type PathPrefix: String
2119
+ """
2120
+ self.DBInstanceIdentifier = None
2121
+ self.InstanceDatabaseName = None
2122
+ self.Keyword = None
2123
+
2124
+ def _deserialize(self, params):
2125
+ if params.get("DBInstanceIdentifier"):
2126
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2127
+ if params.get("InstanceDatabaseName"):
2128
+ self.InstanceDatabaseName = params.get("InstanceDatabaseName")
2129
+ if params.get("Keyword"):
2130
+ self.Keyword = params.get("Keyword")
2131
+
2132
+
2133
+ class ModifyInstanceDatabaseInfoRequest(AbstractModel):
2134
+ """ModifyInstanceDatabaseInfo请求参数结构体
2135
+ """
2136
+
2137
+ def __init__(self):
2138
+ r"""修改数据库信息
2139
+ :param DBInstanceIdentifier: 实例ID
2140
+ :type PathPrefix: String
2141
+ :param InstanceDatabaseName: 数据库名称
2142
+ :type PathPrefix: String
2143
+ :param InstanceDatabaseDescription: 数据库描述 不传为置空数据库描述
2144
+ :type PathPrefix: String
2145
+ """
2146
+ self.DBInstanceIdentifier = None
2147
+ self.InstanceDatabaseName = None
2148
+ self.InstanceDatabaseDescription = None
2149
+
2150
+ def _deserialize(self, params):
2151
+ if params.get("DBInstanceIdentifier"):
2152
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2153
+ if params.get("InstanceDatabaseName"):
2154
+ self.InstanceDatabaseName = params.get("InstanceDatabaseName")
2155
+ if params.get("InstanceDatabaseDescription"):
2156
+ self.InstanceDatabaseDescription = params.get("InstanceDatabaseDescription")
2157
+
2158
+
2159
+ class StartSlowLogDetailExportTaskRequest(AbstractModel):
2160
+ """StartSlowLogDetailExportTask请求参数结构体
2161
+ """
2162
+
2163
+ def __init__(self):
2164
+ r"""创建慢日志导出任务
2165
+ :param DBInstanceIdentifier: 实例ID
2166
+ :type PathPrefix: String
2167
+ :param AuditBeginTime: 开始时间 yyyy-MM-dd HH:mm:ss
2168
+ :type PathPrefix: String
2169
+ :param AuditEndTime: 结束时间 yyyy-MM-dd HH:mm:ss
2170
+ :type PathPrefix: String
2171
+ :param AccessSqlStatement: 查询类型 可多选,以\`,`分开; SELECT,INSERT,UPDATE,DELETE,OTHER
2172
+ :type PathPrefix: String
2173
+ """
2174
+ self.DBInstanceIdentifier = None
2175
+ self.AuditBeginTime = None
2176
+ self.AuditEndTime = None
2177
+ self.AccessSqlStatement = None
2178
+
2179
+ def _deserialize(self, params):
2180
+ if params.get("DBInstanceIdentifier"):
2181
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2182
+ if params.get("AuditBeginTime"):
2183
+ self.AuditBeginTime = params.get("AuditBeginTime")
2184
+ if params.get("AuditEndTime"):
2185
+ self.AuditEndTime = params.get("AuditEndTime")
2186
+ if params.get("AccessSqlStatement"):
2187
+ self.AccessSqlStatement = params.get("AccessSqlStatement")
2188
+
2189
+
2190
+ class ListSlowLogDetailExportTaskRequest(AbstractModel):
2191
+ """ListSlowLogDetailExportTask请求参数结构体
2192
+ """
2193
+
2194
+ def __init__(self):
2195
+ r"""查询导出任务列表
2196
+ :param DBInstanceIdentifier: 实例ID
2197
+ :type PathPrefix: String
2198
+ :param Marker: 当前条:默认0
2199
+ :type PathPrefix: String
2200
+ :param MaxRecords: 每页显示大小,默认10 区间 :[10,10000]
2201
+ :type PathPrefix: String
2202
+ """
2203
+ self.DBInstanceIdentifier = None
2204
+ self.Marker = None
2205
+ self.MaxRecords = None
2206
+
2207
+ def _deserialize(self, params):
2208
+ if params.get("DBInstanceIdentifier"):
2209
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2210
+ if params.get("Marker"):
2211
+ self.Marker = params.get("Marker")
2212
+ if params.get("MaxRecords"):
2213
+ self.MaxRecords = params.get("MaxRecords")
2214
+
2215
+
2216
+ class CreateInstanceAccountActionRequest(AbstractModel):
2217
+ """CreateInstanceAccountAction请求参数结构体
2218
+ """
2219
+
2220
+ def __init__(self):
2221
+ r"""创建数据库账户(POST)
2222
+ :param DBInstanceIdentifier: 实例ID
2223
+ :type PathPrefix: String
2224
+ :param InstanceAccountName: 账户名称:数字字母下滑线
2225
+ :type PathPrefix: String
2226
+ :param InstanceAccountPassword: 账户密码
2227
+ :type PathPrefix: String
2228
+ :param InstanceAccountDescription: 账户描述
2229
+ :type PathPrefix: String
2230
+ :param InstanceAccountPrivileges: 该账户对应的数据库权限
2231
+ :type PathPrefix: Array
2232
+ """
2233
+ self.DBInstanceIdentifier = None
2234
+ self.InstanceAccountName = None
2235
+ self.InstanceAccountPassword = None
2236
+ self.InstanceAccountDescription = None
2237
+ self.InstanceAccountPrivileges = None
2238
+
2239
+ def _deserialize(self, params):
2240
+ if params.get("DBInstanceIdentifier"):
2241
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2242
+ if params.get("InstanceAccountName"):
2243
+ self.InstanceAccountName = params.get("InstanceAccountName")
2244
+ if params.get("InstanceAccountPassword"):
2245
+ self.InstanceAccountPassword = params.get("InstanceAccountPassword")
2246
+ if params.get("InstanceAccountDescription"):
2247
+ self.InstanceAccountDescription = params.get("InstanceAccountDescription")
2248
+ if params.get("InstanceAccountPrivileges"):
2249
+ self.InstanceAccountPrivileges = params.get("InstanceAccountPrivileges")
2250
+
2251
+
2252
+ class ModifyInstanceAccountPrivilegesActionRequest(AbstractModel):
2253
+ """ModifyInstanceAccountPrivilegesAction请求参数结构体
2254
+ """
2255
+
2256
+ def __init__(self):
2257
+ r"""数据库账户赋权(POST)
2258
+ :param DBInstanceIdentifier: 实例ID
2259
+ :type PathPrefix: String
2260
+ :param InstanceAccountName: 数据库账户名称
2261
+ :type PathPrefix: String
2262
+ :param InstanceAccountPrivileges: 数据库权限:不传则置空改账户数据库权限
2263
+ :type PathPrefix: Array
2264
+ """
2265
+ self.DBInstanceIdentifier = None
2266
+ self.InstanceAccountName = None
2267
+ self.InstanceAccountPrivileges = None
2268
+
2269
+ def _deserialize(self, params):
2270
+ if params.get("DBInstanceIdentifier"):
2271
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2272
+ if params.get("InstanceAccountName"):
2273
+ self.InstanceAccountName = params.get("InstanceAccountName")
2274
+ if params.get("InstanceAccountPrivileges"):
2275
+ self.InstanceAccountPrivileges = params.get("InstanceAccountPrivileges")
2276
+
2277
+
2278
+ class DeleteInstanceAccountActionRequest(AbstractModel):
2279
+ """DeleteInstanceAccountAction请求参数结构体
2280
+ """
2281
+
2282
+ def __init__(self):
2283
+ r"""删除数据库账户(POST)
2284
+ :param DBInstanceIdentifier: 实例ID
2285
+ :type PathPrefix: String
2286
+ :param InstanceAccountName: 数据库账户名称,支持批量删除,使用“,”隔开
2287
+ :type PathPrefix: String
2288
+ """
2289
+ self.DBInstanceIdentifier = None
2290
+ self.InstanceAccountName = None
2291
+
2292
+ def _deserialize(self, params):
2293
+ if params.get("DBInstanceIdentifier"):
2294
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2295
+ if params.get("InstanceAccountName"):
2296
+ self.InstanceAccountName = params.get("InstanceAccountName")
2297
+
2298
+
2299
+ class DeleteInstanceDatabaseActionRequest(AbstractModel):
2300
+ """DeleteInstanceDatabaseAction请求参数结构体
2301
+ """
2302
+
2303
+ def __init__(self):
2304
+ r"""删除实例数据库(POST)
2305
+ :param DBInstanceIdentifier: 实例ID
2306
+ :type PathPrefix: String
2307
+ :param InstanceDatabaseName: 数据库名称 支持批量删除,以为 “ , ”分隔开
2308
+ :type PathPrefix: String
2309
+ """
2310
+ self.DBInstanceIdentifier = None
2311
+ self.InstanceDatabaseName = None
2312
+
2313
+ def _deserialize(self, params):
2314
+ if params.get("DBInstanceIdentifier"):
2315
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2316
+ if params.get("InstanceDatabaseName"):
2317
+ self.InstanceDatabaseName = params.get("InstanceDatabaseName")
2318
+
2319
+
2320
+ class ModifyDBNetworkRequest(AbstractModel):
2321
+ """ModifyDBNetwork请求参数结构体
2322
+ """
2323
+
2324
+ def __init__(self):
2325
+ r"""修改实例IP/VPC (POST)
2326
+ :param DBInstanceIdentifier: 实例ID
2327
+ :type PathPrefix: String
2328
+ :param VpcId: 虚拟网路ID,可调用接口[DescribeVpcs](https://docs.ksyun.com/documents/89)获取
2329
+ :type PathPrefix: String
2330
+ :param SubnetId: SubnetId 虚拟网络下的子网ID,可调用接口[DescribeSubnets](https://docs.ksyun.com/documents/93)获取。
2331
+ :type PathPrefix: String
2332
+ :param Vip: IP 虚拟网络子网下可用IP,可调用接口[DescribeSubnetAllocatedIpAddresses](https://docs.ksyun.com/documents/2607)获取。
2333
+ :type PathPrefix: String
2334
+ :param Port: 端口
2335
+ :type PathPrefix: String
2336
+ """
2337
+ self.DBInstanceIdentifier = None
2338
+ self.VpcId = None
2339
+ self.SubnetId = None
2340
+ self.Vip = None
2341
+ self.Port = None
2342
+
2343
+ def _deserialize(self, params):
2344
+ if params.get("DBInstanceIdentifier"):
2345
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2346
+ if params.get("VpcId"):
2347
+ self.VpcId = params.get("VpcId")
2348
+ if params.get("SubnetId"):
2349
+ self.SubnetId = params.get("SubnetId")
2350
+ if params.get("Vip"):
2351
+ self.Vip = params.get("Vip")
2352
+ if params.get("Port"):
2353
+ self.Port = params.get("Port")
2354
+
2355
+
2356
+ class DescribeDBInstanceMonitorPeriodRequest(AbstractModel):
2357
+ """DescribeDBInstanceMonitorPeriod请求参数结构体
2358
+ """
2359
+
2360
+ def __init__(self):
2361
+ r"""查询实例监控周期
2362
+ :param DBInstanceIdentifier: 实例ID
2363
+ :type PathPrefix: String
2364
+ """
2365
+ self.DBInstanceIdentifier = None
2366
+
2367
+ def _deserialize(self, params):
2368
+ if params.get("DBInstanceIdentifier"):
2369
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2370
+
2371
+
2372
+ class ModifyDBInstanceMonitorPeriodRequest(AbstractModel):
2373
+ """ModifyDBInstanceMonitorPeriod请求参数结构体
2374
+ """
2375
+
2376
+ def __init__(self):
2377
+ r"""修改实例监控周期
2378
+ :param DBInstanceIdentifier: 实例ID
2379
+ :type PathPrefix: String
2380
+ :param Period: 监控周期 。可选:5/15/30/60
2381
+ :type PathPrefix: String
2382
+ """
2383
+ self.DBInstanceIdentifier = None
2384
+ self.Period = None
2385
+
2386
+ def _deserialize(self, params):
2387
+ if params.get("DBInstanceIdentifier"):
2388
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2389
+ if params.get("Period"):
2390
+ self.Period = params.get("Period")
2391
+
2392
+
2393
+ class DescribeEngineParametersModifyHistoryRequest(AbstractModel):
2394
+ """DescribeEngineParametersModifyHistory请求参数结构体
2395
+ """
2396
+
2397
+ def __init__(self):
2398
+ r"""参数组历史修改信息查询
2399
+ :param DBParameterGroupId: 参数组ID 通过[参数组-列表(详情)接口](https://docs.ksyun.com/documents/344)获取
2400
+ :type PathPrefix: String
2401
+ :param Name: 修改参数名称。
2402
+ :type PathPrefix: String
2403
+ :param MaxRecords: 每页记录条数。(默认为10)
2404
+ :type PathPrefix: Int
2405
+ :param Marker: 第n页数。默认为0。
2406
+ :type PathPrefix: Int
2407
+ """
2408
+ self.DBParameterGroupId = None
2409
+ self.Name = None
2410
+ self.MaxRecords = None
2411
+ self.Marker = None
2412
+
2413
+ def _deserialize(self, params):
2414
+ if params.get("DBParameterGroupId"):
2415
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
2416
+ if params.get("Name"):
2417
+ self.Name = params.get("Name")
2418
+ if params.get("MaxRecords"):
2419
+ self.MaxRecords = params.get("MaxRecords")
2420
+ if params.get("Marker"):
2421
+ self.Marker = params.get("Marker")
2422
+
2423
+
2424
+ class BatchApplyDBParameterGroupRequest(AbstractModel):
2425
+ """BatchApplyDBParameterGroup请求参数结构体
2426
+ """
2427
+
2428
+ def __init__(self):
2429
+ r"""批量应用参数组
2430
+ :param DBInstanceIdentifier: 实例ID. 如果需要批量应用参数组,则实例id之间用逗号隔开,至多允许批量应用10个实例(2022.01.07)
2431
+ :type PathPrefix: String
2432
+ :param DBParameterGroupId: 参数组ID .通过参数组-列表(详情)接口获取
2433
+ :type PathPrefix: String
2434
+ """
2435
+ self.DBInstanceIdentifier = None
2436
+ self.DBParameterGroupId = None
2437
+
2438
+ def _deserialize(self, params):
2439
+ if params.get("DBInstanceIdentifier"):
2440
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2441
+ if params.get("DBParameterGroupId"):
2442
+ self.DBParameterGroupId = params.get("DBParameterGroupId")
2443
+
2444
+
2445
+ class UpgradeDBInstanceLatesVersionRequest(AbstractModel):
2446
+ """UpgradeDBInstanceLatesVersion请求参数结构体
2447
+ """
2448
+
2449
+ def __init__(self):
2450
+ r"""小版本升级(5.7.x)
2451
+ :param DBInstanceIdentifier: 实例ID
2452
+ :type PathPrefix: String
2453
+ """
2454
+ self.DBInstanceIdentifier = None
2455
+
2456
+ def _deserialize(self, params):
2457
+ if params.get("DBInstanceIdentifier"):
2458
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2459
+
2460
+
2461
+ class DescribeProxyInstanceRequest(AbstractModel):
2462
+ """DescribeProxyInstance请求参数结构体
2463
+ """
2464
+
2465
+ def __init__(self):
2466
+ r"""查询代理实例详情
2467
+ :param DBInstanceIdentifier: 代理实例ID
2468
+ :type PathPrefix: String
2469
+ """
2470
+ self.DBInstanceIdentifier = None
2471
+
2472
+ def _deserialize(self, params):
2473
+ if params.get("DBInstanceIdentifier"):
2474
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2475
+
2476
+
2477
+ class SetUpProxyInstanceRequest(AbstractModel):
2478
+ """SetUpProxyInstance请求参数结构体
2479
+ """
2480
+
2481
+ def __init__(self):
2482
+ r"""修改代理实例(只读权重/连接池设定)
2483
+ :param DBInstanceIdentifier: 代理实例ID
2484
+ :type PathPrefix: String
2485
+ :param ReadOnlyInstanceList: 只读实例列表
2486
+ :type PathPrefix: Filter
2487
+ """
2488
+ self.DBInstanceIdentifier = None
2489
+ self.ReadOnlyInstanceList = None
2490
+
2491
+ def _deserialize(self, params):
2492
+ if params.get("DBInstanceIdentifier"):
2493
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2494
+ if params.get("ReadOnlyInstanceList"):
2495
+ self.ReadOnlyInstanceList = params.get("ReadOnlyInstanceList")
2496
+
2497
+
2498
+ class TemporaryCloseSwitchoverRequest(AbstractModel):
2499
+ """TemporaryCloseSwitchover请求参数结构体
2500
+ """
2501
+
2502
+ def __init__(self):
2503
+ r"""关闭主备切换(临时)
2504
+ :param DBInstanceIdentifier: 实例ID
2505
+ :type PathPrefix: String
2506
+ :param AutoSwitch: 是否自动切换(输入的为期望状态);false时为关闭,必须传时间;
2507
+
2508
+
2509
+ :type PathPrefix: Boolean
2510
+ :param ExpireTime: 期望过期时间点
2511
+ :type PathPrefix: String
2512
+ """
2513
+ self.DBInstanceIdentifier = None
2514
+ self.AutoSwitch = None
2515
+ self.ExpireTime = None
2516
+
2517
+ def _deserialize(self, params):
2518
+ if params.get("DBInstanceIdentifier"):
2519
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2520
+ if params.get("AutoSwitch"):
2521
+ self.AutoSwitch = params.get("AutoSwitch")
2522
+ if params.get("ExpireTime"):
2523
+ self.ExpireTime = params.get("ExpireTime")
2524
+
2525
+
2526
+ class DescribeBackupOverviewRequest(AbstractModel):
2527
+ """DescribeBackupOverview请求参数结构体
2528
+ """
2529
+
2530
+ def __init__(self):
2531
+ r"""查询备份总概览(单地域)
2532
+ """
2533
+
2534
+ def _deserialize(self, params):
2535
+ return
2536
+
2537
+
2538
+ class DescribeStatisticBackupDetailsRequest(AbstractModel):
2539
+ """DescribeStatisticBackupDetails请求参数结构体
2540
+ """
2541
+
2542
+ def __init__(self):
2543
+ r"""查询备份总列表(单地域)
2544
+ :param DataType: 必传:数据类型,区分查询类型;
2545
+ backup:实例备份;
2546
+ binglog:实例binglog备份;
2547
+ delbackup:已删除实例备份;
2548
+ :type PathPrefix: String
2549
+ :param BackupType: 快照:snapshot
2550
+ 自动备份:autobackup
2551
+ :type PathPrefix: String
2552
+ :param Marker: 数据开始条数
2553
+ 默认:0 
2554
+ :type PathPrefix: Int
2555
+ :param MaxRecords: 数据每页展示条数;
2556
+ 默认:10
2557
+ :type PathPrefix: Int
2558
+ """
2559
+ self.DataType = None
2560
+ self.BackupType = None
2561
+ self.Marker = None
2562
+ self.MaxRecords = None
2563
+
2564
+ def _deserialize(self, params):
2565
+ if params.get("DataType"):
2566
+ self.DataType = params.get("DataType")
2567
+ if params.get("BackupType"):
2568
+ self.BackupType = params.get("BackupType")
2569
+ if params.get("Marker"):
2570
+ self.Marker = params.get("Marker")
2571
+ if params.get("MaxRecords"):
2572
+ self.MaxRecords = params.get("MaxRecords")
2573
+
2574
+
2575
+ class ModifyMaintenanceTimeRequest(AbstractModel):
2576
+ """ModifyMaintenanceTime请求参数结构体
2577
+ """
2578
+
2579
+ def __init__(self):
2580
+ r"""修改操作时间窗口
2581
+ :param DBInstanceIdentifier: 实例ID
2582
+ :type PathPrefix: String
2583
+ :param StartTime: 时间窗口开始时间
2584
+
2585
+ ```json
2586
+ 支持时间区间:[00-23]:[00-59]
2587
+ ```
2588
+ :type PathPrefix: String
2589
+ :param Duration: 时间间隔
2590
+
2591
+ ```json
2592
+ 注意:设计为在如上开始时间后多久的时间内可以操作,故此字段代表的为小时;
2593
+
2594
+ 支持间隔区间:[0.5-3.0]
2595
+
2596
+ 默认区间:0.5
2597
+ 间隔单位:小时
2598
+ ```
2599
+ :type PathPrefix: Double
2600
+ """
2601
+ self.DBInstanceIdentifier = None
2602
+ self.StartTime = None
2603
+ self.Duration = None
2604
+
2605
+ def _deserialize(self, params):
2606
+ if params.get("DBInstanceIdentifier"):
2607
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2608
+ if params.get("StartTime"):
2609
+ self.StartTime = params.get("StartTime")
2610
+ if params.get("Duration"):
2611
+ self.Duration = params.get("Duration")
2612
+
2613
+
2614
+ class ModifyInstanceDatabasePrivilegesActionRequest(AbstractModel):
2615
+ """ModifyInstanceDatabasePrivilegesAction请求参数结构体
2616
+ """
2617
+
2618
+ def __init__(self):
2619
+ r"""数据库授权(POST)
2620
+ :param DBInstanceIdentifier: 实例ID
2621
+ :type PathPrefix: String
2622
+ :param InstanceDatabaseName: 数据库名称(需要修改权限的数据库库名)
2623
+ :type PathPrefix: String
2624
+ :param InstanceDatabasePrivileges: 具体账户及其权限说明
2625
+ :type PathPrefix: Filter
2626
+ """
2627
+ self.DBInstanceIdentifier = None
2628
+ self.InstanceDatabaseName = None
2629
+ self.InstanceDatabasePrivileges = None
2630
+
2631
+ def _deserialize(self, params):
2632
+ if params.get("DBInstanceIdentifier"):
2633
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2634
+ if params.get("InstanceDatabaseName"):
2635
+ self.InstanceDatabaseName = params.get("InstanceDatabaseName")
2636
+ if params.get("InstanceDatabasePrivileges"):
2637
+ self.InstanceDatabasePrivileges = params.get("InstanceDatabasePrivileges")
2638
+
2639
+
2640
+ class UpdateDBInstanceOrderRequest(AbstractModel):
2641
+ """UpdateDBInstanceOrder请求参数结构体
2642
+ """
2643
+
2644
+ def __init__(self):
2645
+ r"""试用订单更新
2646
+ :param DBInstanceIdentifier: 实例Id
2647
+ :type PathPrefix: String
2648
+ :param UpdateUse: 操作类型
2649
+
2650
+ ```json
2651
+ 试用延期:Renew
2652
+ 试用转正:Buy
2653
+ ```
2654
+ :type PathPrefix: String
2655
+ :param Duration: 持续时间
2656
+
2657
+ ```json
2658
+ 注意:选定续费或者转正方式为包年包月是,需要指定持续时间;
2659
+ ```
2660
+ :type PathPrefix: Int
2661
+ :param BillType: 计费类型
2662
+
2663
+ ```json
2664
+ 包年包月:YEAR_MONTH
2665
+ 按日月结(按日配置付费月结):DAY
2666
+ 按小时实时结算:HourlyInstantSettlement
2667
+
2668
+ 注意:若不选定计费类型,则默认为HourlyInstantSettlement
2669
+ ```
2670
+
2671
+ :type PathPrefix: String
2672
+ """
2673
+ self.DBInstanceIdentifier = None
2674
+ self.UpdateUse = None
2675
+ self.Duration = None
2676
+ self.BillType = None
2677
+
2678
+ def _deserialize(self, params):
2679
+ if params.get("DBInstanceIdentifier"):
2680
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2681
+ if params.get("UpdateUse"):
2682
+ self.UpdateUse = params.get("UpdateUse")
2683
+ if params.get("Duration"):
2684
+ self.Duration = params.get("Duration")
2685
+ if params.get("BillType"):
2686
+ self.BillType = params.get("BillType")
2687
+
2688
+
2689
+ class UpdateResourceProtectionRequest(AbstractModel):
2690
+ """UpdateResourceProtection请求参数结构体
2691
+ """
2692
+
2693
+ def __init__(self):
2694
+ r"""删除保护设置
2695
+ :param DBInstanceIdentifier: 实例id
2696
+ :type PathPrefix: String
2697
+ :param ProtectionSwitch: 保护开关
2698
+
2699
+ ```json
2700
+ 开启:ON 关闭:OFF
2701
+ ```
2702
+ :type PathPrefix: String
2703
+ :param ProtectionReason: 操作理由
2704
+
2705
+ ```json
2706
+ 限定64字符
2707
+ ```
2708
+ :type PathPrefix: String
2709
+ """
2710
+ self.DBInstanceIdentifier = None
2711
+ self.ProtectionSwitch = None
2712
+ self.ProtectionReason = None
2713
+
2714
+ def _deserialize(self, params):
2715
+ if params.get("DBInstanceIdentifier"):
2716
+ self.DBInstanceIdentifier = params.get("DBInstanceIdentifier")
2717
+ if params.get("ProtectionSwitch"):
2718
+ self.ProtectionSwitch = params.get("ProtectionSwitch")
2719
+ if params.get("ProtectionReason"):
2720
+ self.ProtectionReason = params.get("ProtectionReason")
2721
+
2722
+