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,1372 @@
1
+ from ksyun.common.abstract_model import AbstractModel
2
+
3
+ class DescribeBackendServersRequest(AbstractModel):
4
+ """DescribeBackendServers请求参数结构体
5
+ """
6
+
7
+ def __init__(self):
8
+ r"""查询服务器信息
9
+ :param Filter: 筛选Filter
10
+ :type PathPrefix: Filter
11
+ :param BackendServerId: 多个服务器ServerId
12
+ :type PathPrefix: Filter
13
+ :param MaxResults: 单次调用可返回的最大条目数量
14
+ :type PathPrefix: Int
15
+ :param NextToken: 获取另一页返回结果的 token.
16
+ :type PathPrefix: String
17
+ """
18
+ self.Filter = None
19
+ self.BackendServerId = None
20
+ self.MaxResults = None
21
+ self.NextToken = None
22
+
23
+ def _deserialize(self, params):
24
+ if params.get("Filter"):
25
+ self.Filter = params.get("Filter")
26
+ if params.get("BackendServerId"):
27
+ self.BackendServerId = params.get("BackendServerId")
28
+ if params.get("MaxResults"):
29
+ self.MaxResults = params.get("MaxResults")
30
+ if params.get("NextToken"):
31
+ self.NextToken = params.get("NextToken")
32
+
33
+
34
+ class ModifyBackendServerRequest(AbstractModel):
35
+ """ModifyBackendServer请求参数结构体
36
+ """
37
+
38
+ def __init__(self):
39
+ r"""修改服务器信息
40
+ :param BackendServerId: 服务器id
41
+ :type PathPrefix: String
42
+ :param Weight: 服务器的权重
43
+ :type PathPrefix: Int
44
+ :param Port: 服务器端口
45
+ :type PathPrefix: Int
46
+ :param MasterSlaveType: 真实服务器的主备状态(Master | Slave)
47
+ :type PathPrefix: String
48
+ """
49
+ self.BackendServerId = None
50
+ self.Weight = None
51
+ self.Port = None
52
+ self.MasterSlaveType = None
53
+
54
+ def _deserialize(self, params):
55
+ if params.get("BackendServerId"):
56
+ self.BackendServerId = params.get("BackendServerId")
57
+ if params.get("Weight"):
58
+ self.Weight = params.get("Weight")
59
+ if params.get("Port"):
60
+ self.Port = params.get("Port")
61
+ if params.get("MasterSlaveType"):
62
+ self.MasterSlaveType = params.get("MasterSlaveType")
63
+
64
+
65
+ class DeregisterBackendServerRequest(AbstractModel):
66
+ """DeregisterBackendServer请求参数结构体
67
+ """
68
+
69
+ def __init__(self):
70
+ r"""从服务器组移除服务器
71
+ :param BackendServerId: 服务器id
72
+ :type PathPrefix: String
73
+ """
74
+ self.BackendServerId = None
75
+
76
+ def _deserialize(self, params):
77
+ if params.get("BackendServerId"):
78
+ self.BackendServerId = params.get("BackendServerId")
79
+
80
+
81
+ class RegisterBackendServerRequest(AbstractModel):
82
+ """RegisterBackendServer请求参数结构体
83
+ """
84
+
85
+ def __init__(self):
86
+ r"""注册服务器到服务组
87
+ :param BackendServerGroupId: 服务器组id
88
+ :type PathPrefix: String
89
+ :param BackendServerIp: 服务器ip
90
+ :type PathPrefix: String
91
+ :param Port: 服务器端口
92
+ :type PathPrefix: Int
93
+ :param Weight: 服务器权重
94
+ :type PathPrefix: Int
95
+ :param NetworkInterfaceId: 网卡id
96
+ :type PathPrefix: String
97
+ :param DirectConnectGatewayId: 边界网关id
98
+ :type PathPrefix: String
99
+ :param MasterSlaveType: 真实服务器的主备状态
100
+ :type PathPrefix: String
101
+ """
102
+ self.BackendServerGroupId = None
103
+ self.BackendServerIp = None
104
+ self.Port = None
105
+ self.Weight = None
106
+ self.NetworkInterfaceId = None
107
+ self.DirectConnectGatewayId = None
108
+ self.MasterSlaveType = None
109
+
110
+ def _deserialize(self, params):
111
+ if params.get("BackendServerGroupId"):
112
+ self.BackendServerGroupId = params.get("BackendServerGroupId")
113
+ if params.get("BackendServerIp"):
114
+ self.BackendServerIp = params.get("BackendServerIp")
115
+ if params.get("Port"):
116
+ self.Port = params.get("Port")
117
+ if params.get("Weight"):
118
+ self.Weight = params.get("Weight")
119
+ if params.get("NetworkInterfaceId"):
120
+ self.NetworkInterfaceId = params.get("NetworkInterfaceId")
121
+ if params.get("DirectConnectGatewayId"):
122
+ self.DirectConnectGatewayId = params.get("DirectConnectGatewayId")
123
+ if params.get("MasterSlaveType"):
124
+ self.MasterSlaveType = params.get("MasterSlaveType")
125
+
126
+
127
+ class DescribeBackendServerGroupsRequest(AbstractModel):
128
+ """DescribeBackendServerGroups请求参数结构体
129
+ """
130
+
131
+ def __init__(self):
132
+ r"""查询服务器组
133
+ :param Filter: 筛选Filter
134
+ :type PathPrefix: Filter
135
+ :param BackendServerGroupId: 多个服务器组id
136
+ :type PathPrefix: Filter
137
+ :param MaxResults: 单次调用可返回的最大条目数量
138
+ :type PathPrefix: Int
139
+ :param NextToken: 获取另一页返回结果的 token.
140
+ :type PathPrefix: String
141
+ """
142
+ self.Filter = None
143
+ self.BackendServerGroupId = None
144
+ self.MaxResults = None
145
+ self.NextToken = None
146
+
147
+ def _deserialize(self, params):
148
+ if params.get("Filter"):
149
+ self.Filter = params.get("Filter")
150
+ if params.get("BackendServerGroupId"):
151
+ self.BackendServerGroupId = params.get("BackendServerGroupId")
152
+ if params.get("MaxResults"):
153
+ self.MaxResults = params.get("MaxResults")
154
+ if params.get("NextToken"):
155
+ self.NextToken = params.get("NextToken")
156
+
157
+
158
+ class ModifyBackendServerGroupRequest(AbstractModel):
159
+ """ModifyBackendServerGroup请求参数结构体
160
+ """
161
+
162
+ def __init__(self):
163
+ r"""修改服务器组
164
+ :param BackendServerGroupId: 服务器组id
165
+ :type PathPrefix: String
166
+ :param Name: 负载均衡的名称
167
+ :type PathPrefix: String
168
+ :param UpstreamKeepalive: 后端长连接类型
169
+ :type PathPrefix: String
170
+ :param Method: 转发方式
171
+ :type PathPrefix: String
172
+ :param SessionState: 会话保持的状态(start|stop)
173
+ :type PathPrefix: String
174
+ :param SessionPersistencePeriod: 会话保持超时时间
175
+ :type PathPrefix: Int
176
+ :param CookieType: 会话类型
177
+ :type PathPrefix: String
178
+ :param CookieName: Cookie的名称
179
+ :type PathPrefix: String
180
+ :param HealthCheckState: 健康检查保持的状态(start|stop)
181
+ :type PathPrefix: String
182
+ :param Timeout: 健康检查超时时间
183
+ :type PathPrefix: Int
184
+ :param Interval: 健康检查时间间隔
185
+ :type PathPrefix: Int
186
+ :param HealthyThreshold: 健康阈值
187
+ :type PathPrefix: Int
188
+ :param UnhealthyThreshold: 不健康阈值
189
+ :type PathPrefix: Int
190
+ :param UrlPath: HTTP类型监听器健康检查的链接
191
+ :type PathPrefix: String
192
+ :param HostName: HTTP类型健康检查的域名
193
+ :type PathPrefix: String
194
+ :param HealthCheckConnectPort: 健康检查端口
195
+ :type PathPrefix: Int
196
+ :param HealthProtocol: 健康检查协议(TCP | ICMP| UDP | HTTP)
197
+ :type PathPrefix: String
198
+ :param SlowStartEnabled: 慢启动
199
+ :type PathPrefix: Boolean
200
+ :param SlowStartDuration: 慢启动时间
201
+ :type PathPrefix: Int
202
+ :param HttpMethod: HTTP请求方式 (GET|HEAD)
203
+ :type PathPrefix: String
204
+ :param HealthCode: 健康状态返回码
205
+ :type PathPrefix: String
206
+ :param HealthCheckReq: UDP监听器健康检查的请求串
207
+ :type PathPrefix: String
208
+ :param HealthCheckExp: UDP监听器健康检查的响应串
209
+ :type PathPrefix: String
210
+ """
211
+ self.BackendServerGroupId = None
212
+ self.Name = None
213
+ self.UpstreamKeepalive = None
214
+ self.Method = None
215
+ self.SessionState = None
216
+ self.SessionPersistencePeriod = None
217
+ self.CookieType = None
218
+ self.CookieName = None
219
+ self.HealthCheckState = None
220
+ self.Timeout = None
221
+ self.Interval = None
222
+ self.HealthyThreshold = None
223
+ self.UnhealthyThreshold = None
224
+ self.UrlPath = None
225
+ self.HostName = None
226
+ self.HealthCheckConnectPort = None
227
+ self.HealthProtocol = None
228
+ self.SlowStartEnabled = None
229
+ self.SlowStartDuration = None
230
+ self.HttpMethod = None
231
+ self.HealthCode = None
232
+ self.HealthCheckReq = None
233
+ self.HealthCheckExp = None
234
+
235
+ def _deserialize(self, params):
236
+ if params.get("BackendServerGroupId"):
237
+ self.BackendServerGroupId = params.get("BackendServerGroupId")
238
+ if params.get("Name"):
239
+ self.Name = params.get("Name")
240
+ if params.get("UpstreamKeepalive"):
241
+ self.UpstreamKeepalive = params.get("UpstreamKeepalive")
242
+ if params.get("Method"):
243
+ self.Method = params.get("Method")
244
+ if params.get("SessionState"):
245
+ self.SessionState = params.get("SessionState")
246
+ if params.get("SessionPersistencePeriod"):
247
+ self.SessionPersistencePeriod = params.get("SessionPersistencePeriod")
248
+ if params.get("CookieType"):
249
+ self.CookieType = params.get("CookieType")
250
+ if params.get("CookieName"):
251
+ self.CookieName = params.get("CookieName")
252
+ if params.get("HealthCheckState"):
253
+ self.HealthCheckState = params.get("HealthCheckState")
254
+ if params.get("Timeout"):
255
+ self.Timeout = params.get("Timeout")
256
+ if params.get("Interval"):
257
+ self.Interval = params.get("Interval")
258
+ if params.get("HealthyThreshold"):
259
+ self.HealthyThreshold = params.get("HealthyThreshold")
260
+ if params.get("UnhealthyThreshold"):
261
+ self.UnhealthyThreshold = params.get("UnhealthyThreshold")
262
+ if params.get("UrlPath"):
263
+ self.UrlPath = params.get("UrlPath")
264
+ if params.get("HostName"):
265
+ self.HostName = params.get("HostName")
266
+ if params.get("HealthCheckConnectPort"):
267
+ self.HealthCheckConnectPort = params.get("HealthCheckConnectPort")
268
+ if params.get("HealthProtocol"):
269
+ self.HealthProtocol = params.get("HealthProtocol")
270
+ if params.get("SlowStartEnabled"):
271
+ self.SlowStartEnabled = params.get("SlowStartEnabled")
272
+ if params.get("SlowStartDuration"):
273
+ self.SlowStartDuration = params.get("SlowStartDuration")
274
+ if params.get("HttpMethod"):
275
+ self.HttpMethod = params.get("HttpMethod")
276
+ if params.get("HealthCode"):
277
+ self.HealthCode = params.get("HealthCode")
278
+ if params.get("HealthCheckReq"):
279
+ self.HealthCheckReq = params.get("HealthCheckReq")
280
+ if params.get("HealthCheckExp"):
281
+ self.HealthCheckExp = params.get("HealthCheckExp")
282
+
283
+
284
+ class DeleteBackendServerGroupRequest(AbstractModel):
285
+ """DeleteBackendServerGroup请求参数结构体
286
+ """
287
+
288
+ def __init__(self):
289
+ r"""删除服务器组
290
+ :param BackendServerGroupId: 服务器组id
291
+ :type PathPrefix: String
292
+ """
293
+ self.BackendServerGroupId = None
294
+
295
+ def _deserialize(self, params):
296
+ if params.get("BackendServerGroupId"):
297
+ self.BackendServerGroupId = params.get("BackendServerGroupId")
298
+
299
+
300
+ class CreateBackendServerGroupRequest(AbstractModel):
301
+ """CreateBackendServerGroup请求参数结构体
302
+ """
303
+
304
+ def __init__(self):
305
+ r"""创建服务器组
306
+ :param VpcId: Vpc的ID
307
+ :type PathPrefix: String
308
+ :param Name: 负载均衡的名称
309
+ :type PathPrefix: String
310
+ :param BackendServerType: 服务器组的服务器类型
311
+ :type PathPrefix: String
312
+ :param Method: 调度算法(RoundRobin | LeastConnections | MasterSlave | QUIC_CID | IPHash)
313
+ :type PathPrefix: String
314
+ :param SessionState: 会话保持的状态(start|stop)
315
+ :type PathPrefix: String
316
+ :param SessionPersistencePeriod: 会话保持超时时间
317
+ :type PathPrefix: Int
318
+ :param CookieType: 会话类型
319
+ :type PathPrefix: String
320
+ :param CookieName: Cookie的名称
321
+ :type PathPrefix: String
322
+ :param UpstreamKeepalive: 后端长连接类型
323
+ :type PathPrefix: String
324
+ :param Protocol: 后端协议 (TCP | UDP |HTTP | gRPC | HTTPS)
325
+ :type PathPrefix: String
326
+ :param HealthCheckState: 健康检查保持的状态(start|stop)
327
+ :type PathPrefix: String
328
+ :param Timeout: 健康检查超时时间
329
+ :type PathPrefix: Int
330
+ :param Interval: 健康检查时间间隔
331
+ :type PathPrefix: Int
332
+ :param HealthyThreshold: 健康阈值
333
+ :type PathPrefix: Int
334
+ :param UnhealthyThreshold: 不健康阈值
335
+ :type PathPrefix: Int
336
+ :param UrlPath: HTTP类型监听器健康检查的链接
337
+ :type PathPrefix: String
338
+ :param HostName: HTTP类型健康检查的域名
339
+ :type PathPrefix: String
340
+ :param HealthCheckConnectPort: 健康检查端口
341
+ :type PathPrefix: Int
342
+ :param HealthProtocol: 健康检查协议(TCP | ICMP| UDP | HTTP)
343
+ :type PathPrefix: String
344
+ :param SlowStartEnabled: 慢启动
345
+ :type PathPrefix: Boolean
346
+ :param SlowStartDuration: 慢启动时间
347
+ :type PathPrefix: Int
348
+ :param HttpMethod: HTTP请求方式 (GET|HEAD)
349
+ :type PathPrefix: String
350
+ :param HealthCheckReq: UDP监听器健康检查的请求串
351
+ :type PathPrefix: String
352
+ :param HealthCheckExp: UDP监听器健康检查的响应串
353
+ :type PathPrefix: String
354
+ :param HealthCode: 健康状态返回码
355
+ :type PathPrefix: String
356
+ """
357
+ self.VpcId = None
358
+ self.Name = None
359
+ self.BackendServerType = None
360
+ self.Method = None
361
+ self.SessionState = None
362
+ self.SessionPersistencePeriod = None
363
+ self.CookieType = None
364
+ self.CookieName = None
365
+ self.UpstreamKeepalive = None
366
+ self.Protocol = None
367
+ self.HealthCheckState = None
368
+ self.Timeout = None
369
+ self.Interval = None
370
+ self.HealthyThreshold = None
371
+ self.UnhealthyThreshold = None
372
+ self.UrlPath = None
373
+ self.HostName = None
374
+ self.HealthCheckConnectPort = None
375
+ self.HealthProtocol = None
376
+ self.SlowStartEnabled = None
377
+ self.SlowStartDuration = None
378
+ self.HttpMethod = None
379
+ self.HealthCheckReq = None
380
+ self.HealthCheckExp = None
381
+ self.HealthCode = None
382
+
383
+ def _deserialize(self, params):
384
+ if params.get("VpcId"):
385
+ self.VpcId = params.get("VpcId")
386
+ if params.get("Name"):
387
+ self.Name = params.get("Name")
388
+ if params.get("BackendServerType"):
389
+ self.BackendServerType = params.get("BackendServerType")
390
+ if params.get("Method"):
391
+ self.Method = params.get("Method")
392
+ if params.get("SessionState"):
393
+ self.SessionState = params.get("SessionState")
394
+ if params.get("SessionPersistencePeriod"):
395
+ self.SessionPersistencePeriod = params.get("SessionPersistencePeriod")
396
+ if params.get("CookieType"):
397
+ self.CookieType = params.get("CookieType")
398
+ if params.get("CookieName"):
399
+ self.CookieName = params.get("CookieName")
400
+ if params.get("UpstreamKeepalive"):
401
+ self.UpstreamKeepalive = params.get("UpstreamKeepalive")
402
+ if params.get("Protocol"):
403
+ self.Protocol = params.get("Protocol")
404
+ if params.get("HealthCheckState"):
405
+ self.HealthCheckState = params.get("HealthCheckState")
406
+ if params.get("Timeout"):
407
+ self.Timeout = params.get("Timeout")
408
+ if params.get("Interval"):
409
+ self.Interval = params.get("Interval")
410
+ if params.get("HealthyThreshold"):
411
+ self.HealthyThreshold = params.get("HealthyThreshold")
412
+ if params.get("UnhealthyThreshold"):
413
+ self.UnhealthyThreshold = params.get("UnhealthyThreshold")
414
+ if params.get("UrlPath"):
415
+ self.UrlPath = params.get("UrlPath")
416
+ if params.get("HostName"):
417
+ self.HostName = params.get("HostName")
418
+ if params.get("HealthCheckConnectPort"):
419
+ self.HealthCheckConnectPort = params.get("HealthCheckConnectPort")
420
+ if params.get("HealthProtocol"):
421
+ self.HealthProtocol = params.get("HealthProtocol")
422
+ if params.get("SlowStartEnabled"):
423
+ self.SlowStartEnabled = params.get("SlowStartEnabled")
424
+ if params.get("SlowStartDuration"):
425
+ self.SlowStartDuration = params.get("SlowStartDuration")
426
+ if params.get("HttpMethod"):
427
+ self.HttpMethod = params.get("HttpMethod")
428
+ if params.get("HealthCheckReq"):
429
+ self.HealthCheckReq = params.get("HealthCheckReq")
430
+ if params.get("HealthCheckExp"):
431
+ self.HealthCheckExp = params.get("HealthCheckExp")
432
+ if params.get("HealthCode"):
433
+ self.HealthCode = params.get("HealthCode")
434
+
435
+
436
+ class DescribeListenersRequest(AbstractModel):
437
+ """DescribeListeners请求参数结构体
438
+ """
439
+
440
+ def __init__(self):
441
+ r"""查询监听器
442
+ :param ListenerId: 多个监听器的ID
443
+ :type PathPrefix: Filter
444
+ :param Filter: 筛选Filter
445
+ :type PathPrefix: Filter
446
+ :param MaxResults: 单次调用可返回的最大条目数量
447
+ :type PathPrefix: Int
448
+ :param NextToken: 获取另一页返回结果的 token.
449
+ :type PathPrefix: String
450
+ """
451
+ self.ListenerId = None
452
+ self.Filter = None
453
+ self.MaxResults = None
454
+ self.NextToken = None
455
+
456
+ def _deserialize(self, params):
457
+ if params.get("ListenerId"):
458
+ self.ListenerId = params.get("ListenerId")
459
+ if params.get("Filter"):
460
+ self.Filter = params.get("Filter")
461
+ if params.get("MaxResults"):
462
+ self.MaxResults = params.get("MaxResults")
463
+ if params.get("NextToken"):
464
+ self.NextToken = params.get("NextToken")
465
+
466
+
467
+ class ModifyListenerRequest(AbstractModel):
468
+ """ModifyListener请求参数结构体
469
+ """
470
+
471
+ def __init__(self):
472
+ r"""修改监听器
473
+ :param ListenerId: 监听器的ID
474
+ :type PathPrefix: String
475
+ :param ListenerName: 负载均衡监听器的名称
476
+ :type PathPrefix: String
477
+ :param ListenerState: 监听器的状态
478
+ :type PathPrefix: String
479
+ :param CertificateId: 证书的ID
480
+ :type PathPrefix: String
481
+ :param TlsCipherPolicy: TLS安全策略
482
+ :type PathPrefix: String
483
+ :param ListenerAclId: LoadBalancerAcl的ID
484
+ :type PathPrefix: String
485
+ :param HttpProtocol: 后端协议版本(HTTP1.0|HTTP1.1)
486
+ :type PathPrefix: String
487
+ :param EnableHttp2: 是否启用HTTP/2
488
+ :type PathPrefix: Boolean
489
+ :param CaEnabled: 是否开启双向认证
490
+ :type PathPrefix: Boolean
491
+ :param CaCertificateId: 客户端证书
492
+ :type PathPrefix: String
493
+ :param EnableQuicUpgrade: 是否开启QUIC
494
+ :type PathPrefix: Boolean
495
+ :param QuicListenerId: QUIC监听器id
496
+ :type PathPrefix: String
497
+ :param IdleTimeout: 空闲超时时间(s)
498
+ :type PathPrefix: Int
499
+ :param ServerGroupId: 服务器组 ID
500
+ :type PathPrefix: String
501
+ """
502
+ self.ListenerId = None
503
+ self.ListenerName = None
504
+ self.ListenerState = None
505
+ self.CertificateId = None
506
+ self.TlsCipherPolicy = None
507
+ self.ListenerAclId = None
508
+ self.HttpProtocol = None
509
+ self.EnableHttp2 = None
510
+ self.CaEnabled = None
511
+ self.CaCertificateId = None
512
+ self.EnableQuicUpgrade = None
513
+ self.QuicListenerId = None
514
+ self.IdleTimeout = None
515
+ self.ServerGroupId = None
516
+
517
+ def _deserialize(self, params):
518
+ if params.get("ListenerId"):
519
+ self.ListenerId = params.get("ListenerId")
520
+ if params.get("ListenerName"):
521
+ self.ListenerName = params.get("ListenerName")
522
+ if params.get("ListenerState"):
523
+ self.ListenerState = params.get("ListenerState")
524
+ if params.get("CertificateId"):
525
+ self.CertificateId = params.get("CertificateId")
526
+ if params.get("TlsCipherPolicy"):
527
+ self.TlsCipherPolicy = params.get("TlsCipherPolicy")
528
+ if params.get("ListenerAclId"):
529
+ self.ListenerAclId = params.get("ListenerAclId")
530
+ if params.get("HttpProtocol"):
531
+ self.HttpProtocol = params.get("HttpProtocol")
532
+ if params.get("EnableHttp2"):
533
+ self.EnableHttp2 = params.get("EnableHttp2")
534
+ if params.get("CaEnabled"):
535
+ self.CaEnabled = params.get("CaEnabled")
536
+ if params.get("CaCertificateId"):
537
+ self.CaCertificateId = params.get("CaCertificateId")
538
+ if params.get("EnableQuicUpgrade"):
539
+ self.EnableQuicUpgrade = params.get("EnableQuicUpgrade")
540
+ if params.get("QuicListenerId"):
541
+ self.QuicListenerId = params.get("QuicListenerId")
542
+ if params.get("IdleTimeout"):
543
+ self.IdleTimeout = params.get("IdleTimeout")
544
+ if params.get("ServerGroupId"):
545
+ self.ServerGroupId = params.get("ServerGroupId")
546
+
547
+
548
+ class DeleteListenerRequest(AbstractModel):
549
+ """DeleteListener请求参数结构体
550
+ """
551
+
552
+ def __init__(self):
553
+ r"""删除监听器
554
+ :param ListenerId: 监听器的ID
555
+ :type PathPrefix: String
556
+ """
557
+ self.ListenerId = None
558
+
559
+ def _deserialize(self, params):
560
+ if params.get("ListenerId"):
561
+ self.ListenerId = params.get("ListenerId")
562
+
563
+
564
+ class CreateListenerRequest(AbstractModel):
565
+ """CreateListener请求参数结构体
566
+ """
567
+
568
+ def __init__(self):
569
+ r"""创建监听器
570
+ :param LoadBalancerId: 负载均衡的ID
571
+ :type PathPrefix: String
572
+ :param ListenerName: 负载均衡监听器的名称
573
+ :type PathPrefix: String
574
+ :param Protocol: 监听器的协议(TCP|UDP|TCPSSL|HTTP|HTTPS|QUIC)
575
+ :type PathPrefix: String
576
+ :param Port: 监听器的协议端口
577
+ :type PathPrefix: Int
578
+ :param CertificateId: 证书的ID
579
+ :type PathPrefix: String
580
+ :param TlsCipherPolicy: TLS安全策略
581
+ :type PathPrefix: String
582
+ :param ListenerAclId: LoadBalancerAcl的ID
583
+ :type PathPrefix: String
584
+ :param ListenerState: 监听器的状态(start|stop)
585
+ :type PathPrefix: String
586
+ :param RedirectListenerId: 重定向监听器ID
587
+ :type PathPrefix: String
588
+ :param RedirectHttpCode: 重定向状态码
589
+ :type PathPrefix: String
590
+ :param EnableHttp2: 是否启用HTTP/2
591
+ :type PathPrefix: Boolean
592
+ :param BackendServerGroupId: 默认转发策略绑定的服务器组ID,目前仅支持创建转发类型的默认转发策略
593
+ :type PathPrefix: String
594
+ :param FixedResponseConfig: 返回固定响应信息
595
+ :type PathPrefix: Object
596
+ :param RewriteConfig: 返回固定响应信息
597
+ :type PathPrefix: Object
598
+ :param CaEnabled: 是否开启双向认证
599
+ :type PathPrefix: Boolean
600
+ :param CaCertificateId: 客户端证书
601
+ :type PathPrefix: String
602
+ :param EnableQuicUpgrade: 是否开启QUIC
603
+ :type PathPrefix: Boolean
604
+ :param QuicListenerId: QUIC监听器id
605
+ :type PathPrefix: String
606
+ :param IdleTimeout: 空闲超时时间(s)
607
+ :type PathPrefix: Int
608
+ :param ServerGroupId: 服务器组 ID
609
+ :type PathPrefix: String
610
+ """
611
+ self.LoadBalancerId = None
612
+ self.ListenerName = None
613
+ self.Protocol = None
614
+ self.Port = None
615
+ self.CertificateId = None
616
+ self.TlsCipherPolicy = None
617
+ self.ListenerAclId = None
618
+ self.ListenerState = None
619
+ self.RedirectListenerId = None
620
+ self.RedirectHttpCode = None
621
+ self.EnableHttp2 = None
622
+ self.BackendServerGroupId = None
623
+ self.FixedResponseConfig = None
624
+ self.RewriteConfig = None
625
+ self.CaEnabled = None
626
+ self.CaCertificateId = None
627
+ self.EnableQuicUpgrade = None
628
+ self.QuicListenerId = None
629
+ self.IdleTimeout = None
630
+ self.ServerGroupId = None
631
+
632
+ def _deserialize(self, params):
633
+ if params.get("LoadBalancerId"):
634
+ self.LoadBalancerId = params.get("LoadBalancerId")
635
+ if params.get("ListenerName"):
636
+ self.ListenerName = params.get("ListenerName")
637
+ if params.get("Protocol"):
638
+ self.Protocol = params.get("Protocol")
639
+ if params.get("Port"):
640
+ self.Port = params.get("Port")
641
+ if params.get("CertificateId"):
642
+ self.CertificateId = params.get("CertificateId")
643
+ if params.get("TlsCipherPolicy"):
644
+ self.TlsCipherPolicy = params.get("TlsCipherPolicy")
645
+ if params.get("ListenerAclId"):
646
+ self.ListenerAclId = params.get("ListenerAclId")
647
+ if params.get("ListenerState"):
648
+ self.ListenerState = params.get("ListenerState")
649
+ if params.get("RedirectListenerId"):
650
+ self.RedirectListenerId = params.get("RedirectListenerId")
651
+ if params.get("RedirectHttpCode"):
652
+ self.RedirectHttpCode = params.get("RedirectHttpCode")
653
+ if params.get("EnableHttp2"):
654
+ self.EnableHttp2 = params.get("EnableHttp2")
655
+ if params.get("BackendServerGroupId"):
656
+ self.BackendServerGroupId = params.get("BackendServerGroupId")
657
+ if params.get("FixedResponseConfig"):
658
+ self.FixedResponseConfig = params.get("FixedResponseConfig")
659
+ if params.get("RewriteConfig"):
660
+ self.RewriteConfig = params.get("RewriteConfig")
661
+ if params.get("CaEnabled"):
662
+ self.CaEnabled = params.get("CaEnabled")
663
+ if params.get("CaCertificateId"):
664
+ self.CaCertificateId = params.get("CaCertificateId")
665
+ if params.get("EnableQuicUpgrade"):
666
+ self.EnableQuicUpgrade = params.get("EnableQuicUpgrade")
667
+ if params.get("QuicListenerId"):
668
+ self.QuicListenerId = params.get("QuicListenerId")
669
+ if params.get("IdleTimeout"):
670
+ self.IdleTimeout = params.get("IdleTimeout")
671
+ if params.get("ServerGroupId"):
672
+ self.ServerGroupId = params.get("ServerGroupId")
673
+
674
+
675
+ class SetAccessLogRequest(AbstractModel):
676
+ """SetAccessLog请求参数结构体
677
+ """
678
+
679
+ def __init__(self):
680
+ r"""创建/修改访问日志对接klog
681
+ :param LoadBalancerId: 负载均衡的ID
682
+ :type PathPrefix: String
683
+ :param ProjectName: 访问日志投递的日志库
684
+ :type PathPrefix: String
685
+ :param LogpoolName: 访问日志投递的日志池
686
+ :type PathPrefix: String
687
+ """
688
+ self.LoadBalancerId = None
689
+ self.ProjectName = None
690
+ self.LogpoolName = None
691
+
692
+ def _deserialize(self, params):
693
+ if params.get("LoadBalancerId"):
694
+ self.LoadBalancerId = params.get("LoadBalancerId")
695
+ if params.get("ProjectName"):
696
+ self.ProjectName = params.get("ProjectName")
697
+ if params.get("LogpoolName"):
698
+ self.LogpoolName = params.get("LogpoolName")
699
+
700
+
701
+ class SetEnableAccessLogRequest(AbstractModel):
702
+ """SetEnableAccessLog请求参数结构体
703
+ """
704
+
705
+ def __init__(self):
706
+ r"""设置访问日志对接klog开关
707
+ :param LoadBalancerId: 负载均衡的ID
708
+ :type PathPrefix: String
709
+ :param EnabledLog: 是否开启日志服务
710
+ :type PathPrefix: Boolean
711
+ """
712
+ self.LoadBalancerId = None
713
+ self.EnabledLog = None
714
+
715
+ def _deserialize(self, params):
716
+ if params.get("LoadBalancerId"):
717
+ self.LoadBalancerId = params.get("LoadBalancerId")
718
+ if params.get("EnabledLog"):
719
+ self.EnabledLog = params.get("EnabledLog")
720
+
721
+
722
+ class SetLbProtocolLayersRequest(AbstractModel):
723
+ """SetLbProtocolLayers请求参数结构体
724
+ """
725
+
726
+ def __init__(self):
727
+ r"""设置LB的协议层数
728
+ :param LoadBalancerId: 负载均衡的ID
729
+ :type PathPrefix: String
730
+ :param ProtocolLayers: 实例规格,可选 L4 / L7 / L4-L7 ,分别代指4层、7层、4-7层网络协议负载均衡
731
+ :type PathPrefix: String
732
+ """
733
+ self.LoadBalancerId = None
734
+ self.ProtocolLayers = None
735
+
736
+ def _deserialize(self, params):
737
+ if params.get("LoadBalancerId"):
738
+ self.LoadBalancerId = params.get("LoadBalancerId")
739
+ if params.get("ProtocolLayers"):
740
+ self.ProtocolLayers = params.get("ProtocolLayers")
741
+
742
+
743
+ class SetLoadBalancerStatusRequest(AbstractModel):
744
+ """SetLoadBalancerStatus请求参数结构体
745
+ """
746
+
747
+ def __init__(self):
748
+ r"""设置负载均衡状态
749
+ :param LoadBalancerId: 负载均衡的ID
750
+ :type PathPrefix: String
751
+ :param State: 负载均衡的开启状态(start|stop)
752
+ :type PathPrefix: String
753
+ """
754
+ self.LoadBalancerId = None
755
+ self.State = None
756
+
757
+ def _deserialize(self, params):
758
+ if params.get("LoadBalancerId"):
759
+ self.LoadBalancerId = params.get("LoadBalancerId")
760
+ if params.get("State"):
761
+ self.State = params.get("State")
762
+
763
+
764
+ class SetLoadBalancerNameRequest(AbstractModel):
765
+ """SetLoadBalancerName请求参数结构体
766
+ """
767
+
768
+ def __init__(self):
769
+ r"""设置负载均衡名称
770
+ :param LoadBalancerId: 负载均衡的ID
771
+ :type PathPrefix: String
772
+ :param LoadBalancerName: 负载均衡的名称
773
+ :type PathPrefix: String
774
+ """
775
+ self.LoadBalancerId = None
776
+ self.LoadBalancerName = None
777
+
778
+ def _deserialize(self, params):
779
+ if params.get("LoadBalancerId"):
780
+ self.LoadBalancerId = params.get("LoadBalancerId")
781
+ if params.get("LoadBalancerName"):
782
+ self.LoadBalancerName = params.get("LoadBalancerName")
783
+
784
+
785
+ class DescribeLoadBalancersRequest(AbstractModel):
786
+ """DescribeLoadBalancers请求参数结构体
787
+ """
788
+
789
+ def __init__(self):
790
+ r"""查询负载均衡
791
+ :param LoadBalancerId: 多个负载均衡的ID
792
+ :type PathPrefix: Filter
793
+ :param Filter: 筛选Filter
794
+ :type PathPrefix: Filter
795
+ :param IsContainTag: 是否在返回值中包含资源标签信息
796
+ :type PathPrefix: Boolean
797
+ :param TagKey: 多个标签的键
798
+ :type PathPrefix: Filter
799
+ :param TagKV: 多个标签的键
800
+ :type PathPrefix: Filter
801
+ :param ProjectId: 项目的ID
802
+ :type PathPrefix: Filter
803
+ :param MaxResults: 单次调用可返回的最大条目数量
804
+ :type PathPrefix: Int
805
+ :param NextToken: 获取另一页返回结果的 token.
806
+ :type PathPrefix: String
807
+ """
808
+ self.LoadBalancerId = None
809
+ self.Filter = None
810
+ self.IsContainTag = None
811
+ self.TagKey = None
812
+ self.TagKV = None
813
+ self.ProjectId = None
814
+ self.MaxResults = None
815
+ self.NextToken = None
816
+
817
+ def _deserialize(self, params):
818
+ if params.get("LoadBalancerId"):
819
+ self.LoadBalancerId = params.get("LoadBalancerId")
820
+ if params.get("Filter"):
821
+ self.Filter = params.get("Filter")
822
+ if params.get("IsContainTag"):
823
+ self.IsContainTag = params.get("IsContainTag")
824
+ if params.get("TagKey"):
825
+ self.TagKey = params.get("TagKey")
826
+ if params.get("TagKV"):
827
+ self.TagKV = params.get("TagKV")
828
+ if params.get("ProjectId"):
829
+ self.ProjectId = params.get("ProjectId")
830
+ if params.get("MaxResults"):
831
+ self.MaxResults = params.get("MaxResults")
832
+ if params.get("NextToken"):
833
+ self.NextToken = params.get("NextToken")
834
+
835
+
836
+ class DeleteLoadBalancerRequest(AbstractModel):
837
+ """DeleteLoadBalancer请求参数结构体
838
+ """
839
+
840
+ def __init__(self):
841
+ r"""删除负载均衡
842
+ :param LoadBalancerId: 负载均衡的ID
843
+ :type PathPrefix: String
844
+ """
845
+ self.LoadBalancerId = None
846
+
847
+ def _deserialize(self, params):
848
+ if params.get("LoadBalancerId"):
849
+ self.LoadBalancerId = params.get("LoadBalancerId")
850
+
851
+
852
+ class CreateLoadBalancerRequest(AbstractModel):
853
+ """CreateLoadBalancer请求参数结构体
854
+ """
855
+
856
+ def __init__(self):
857
+ r"""创建负载均衡
858
+ :param LoadBalancerName: 负载均衡的名称
859
+ :type PathPrefix: String
860
+ :param LoadBalancerVersion: 负载均衡支持的版本
861
+ :type PathPrefix: String
862
+ :param LoadBalancerType: 负载均衡的类型,public 为公网负载均衡,internal 为内网负载均衡
863
+ :type PathPrefix: String
864
+ :param VpcId: Vpc的ID
865
+ :type PathPrefix: String
866
+ :param IpVersion: 负载均衡的IP版本
867
+ :type PathPrefix: String
868
+ :param ProjectId: 项目的ID
869
+ :type PathPrefix: String
870
+ :param AllocationId: 弹性IP的ID
871
+ :type PathPrefix: String
872
+ :param ChargeType: 计费类型(PrePaidByHourUsage,按小时用量实时付费(小时结))
873
+ :type PathPrefix: String
874
+ :param SubnetId: 子网id
875
+ :type PathPrefix: String
876
+ :param PrivateIpAddress: 私网ip
877
+ :type PathPrefix: String
878
+ :param EnabledQuic: 是否开启QUIC功能
879
+ :type PathPrefix: Boolean
880
+ :param EnableHpa: 是否开启弹性伸缩
881
+ :type PathPrefix: Boolean
882
+ :param ProtocolLayers: 实例规格,可选 L4 / L7 / L4-L7 ,分别代指4层、7层、4-7层网络协议负载均衡
883
+ :type PathPrefix: String
884
+ :param DeleteProtection: 是否开启删除保护on/off
885
+ :type PathPrefix: String
886
+ :param ModificationProtection: 是否开启修改保护on/off
887
+ :type PathPrefix: String
888
+ """
889
+ self.LoadBalancerName = None
890
+ self.LoadBalancerVersion = None
891
+ self.LoadBalancerType = None
892
+ self.VpcId = None
893
+ self.IpVersion = None
894
+ self.ProjectId = None
895
+ self.AllocationId = None
896
+ self.ChargeType = None
897
+ self.SubnetId = None
898
+ self.PrivateIpAddress = None
899
+ self.EnabledQuic = None
900
+ self.EnableHpa = None
901
+ self.ProtocolLayers = None
902
+ self.DeleteProtection = None
903
+ self.ModificationProtection = None
904
+
905
+ def _deserialize(self, params):
906
+ if params.get("LoadBalancerName"):
907
+ self.LoadBalancerName = params.get("LoadBalancerName")
908
+ if params.get("LoadBalancerVersion"):
909
+ self.LoadBalancerVersion = params.get("LoadBalancerVersion")
910
+ if params.get("LoadBalancerType"):
911
+ self.LoadBalancerType = params.get("LoadBalancerType")
912
+ if params.get("VpcId"):
913
+ self.VpcId = params.get("VpcId")
914
+ if params.get("IpVersion"):
915
+ self.IpVersion = params.get("IpVersion")
916
+ if params.get("ProjectId"):
917
+ self.ProjectId = params.get("ProjectId")
918
+ if params.get("AllocationId"):
919
+ self.AllocationId = params.get("AllocationId")
920
+ if params.get("ChargeType"):
921
+ self.ChargeType = params.get("ChargeType")
922
+ if params.get("SubnetId"):
923
+ self.SubnetId = params.get("SubnetId")
924
+ if params.get("PrivateIpAddress"):
925
+ self.PrivateIpAddress = params.get("PrivateIpAddress")
926
+ if params.get("EnabledQuic"):
927
+ self.EnabledQuic = params.get("EnabledQuic")
928
+ if params.get("EnableHpa"):
929
+ self.EnableHpa = params.get("EnableHpa")
930
+ if params.get("ProtocolLayers"):
931
+ self.ProtocolLayers = params.get("ProtocolLayers")
932
+ if params.get("DeleteProtection"):
933
+ self.DeleteProtection = params.get("DeleteProtection")
934
+ if params.get("ModificationProtection"):
935
+ self.ModificationProtection = params.get("ModificationProtection")
936
+
937
+
938
+ class ModifyCertificateWithGroupRequest(AbstractModel):
939
+ """ModifyCertificateWithGroup请求参数结构体
940
+ """
941
+
942
+ def __init__(self):
943
+ r"""监听器维度更换同域名的证书
944
+ :param ListenerCertGroupId: 证书组的ID
945
+ :type PathPrefix: String
946
+ :param OldCertificateId: 旧证书的ID
947
+ :type PathPrefix: String
948
+ :param CertificateId: 新证书的ID
949
+ :type PathPrefix: String
950
+ """
951
+ self.ListenerCertGroupId = None
952
+ self.OldCertificateId = None
953
+ self.CertificateId = None
954
+
955
+ def _deserialize(self, params):
956
+ if params.get("ListenerCertGroupId"):
957
+ self.ListenerCertGroupId = params.get("ListenerCertGroupId")
958
+ if params.get("OldCertificateId"):
959
+ self.OldCertificateId = params.get("OldCertificateId")
960
+ if params.get("CertificateId"):
961
+ self.CertificateId = params.get("CertificateId")
962
+
963
+
964
+ class DissociateCertificateWithGroupRequest(AbstractModel):
965
+ """DissociateCertificateWithGroup请求参数结构体
966
+ """
967
+
968
+ def __init__(self):
969
+ r"""移除证书出证书组
970
+ :param ListenerCertGroupId: 证书组的ID
971
+ :type PathPrefix: String
972
+ :param CertificateId: 证书的ID
973
+ :type PathPrefix: String
974
+ """
975
+ self.ListenerCertGroupId = None
976
+ self.CertificateId = None
977
+
978
+ def _deserialize(self, params):
979
+ if params.get("ListenerCertGroupId"):
980
+ self.ListenerCertGroupId = params.get("ListenerCertGroupId")
981
+ if params.get("CertificateId"):
982
+ self.CertificateId = params.get("CertificateId")
983
+
984
+
985
+ class AssociateCertificateWithGroupRequest(AbstractModel):
986
+ """AssociateCertificateWithGroup请求参数结构体
987
+ """
988
+
989
+ def __init__(self):
990
+ r"""添加证书进证书组
991
+ :param ListenerCertGroupId: 证书组的ID
992
+ :type PathPrefix: String
993
+ :param CertificateId: 证书的ID
994
+ :type PathPrefix: String
995
+ """
996
+ self.ListenerCertGroupId = None
997
+ self.CertificateId = None
998
+
999
+ def _deserialize(self, params):
1000
+ if params.get("ListenerCertGroupId"):
1001
+ self.ListenerCertGroupId = params.get("ListenerCertGroupId")
1002
+ if params.get("CertificateId"):
1003
+ self.CertificateId = params.get("CertificateId")
1004
+
1005
+
1006
+ class DescribeListenerCertGroupsRequest(AbstractModel):
1007
+ """DescribeListenerCertGroups请求参数结构体
1008
+ """
1009
+
1010
+ def __init__(self):
1011
+ r"""描述证书组
1012
+ :param ListenerCertGroupId: 多个证书组的ID
1013
+ :type PathPrefix: Filter
1014
+ :param Filter: 筛选Filter
1015
+ :type PathPrefix: Filter
1016
+ :param MaxResults: 单次调用可返回的最大条目数量
1017
+ :type PathPrefix: Int
1018
+ :param NextToken: 获取另一页返回结果的 token.
1019
+ :type PathPrefix: String
1020
+ """
1021
+ self.ListenerCertGroupId = None
1022
+ self.Filter = None
1023
+ self.MaxResults = None
1024
+ self.NextToken = None
1025
+
1026
+ def _deserialize(self, params):
1027
+ if params.get("ListenerCertGroupId"):
1028
+ self.ListenerCertGroupId = params.get("ListenerCertGroupId")
1029
+ if params.get("Filter"):
1030
+ self.Filter = params.get("Filter")
1031
+ if params.get("MaxResults"):
1032
+ self.MaxResults = params.get("MaxResults")
1033
+ if params.get("NextToken"):
1034
+ self.NextToken = params.get("NextToken")
1035
+
1036
+
1037
+ class DeleteListenerCertGroupRequest(AbstractModel):
1038
+ """DeleteListenerCertGroup请求参数结构体
1039
+ """
1040
+
1041
+ def __init__(self):
1042
+ r"""删除证书组
1043
+ :param ListenerCertGroupId: 证书组的ID
1044
+ :type PathPrefix: String
1045
+ """
1046
+ self.ListenerCertGroupId = None
1047
+
1048
+ def _deserialize(self, params):
1049
+ if params.get("ListenerCertGroupId"):
1050
+ self.ListenerCertGroupId = params.get("ListenerCertGroupId")
1051
+
1052
+
1053
+ class CreateListenerCertGroupRequest(AbstractModel):
1054
+ """CreateListenerCertGroup请求参数结构体
1055
+ """
1056
+
1057
+ def __init__(self):
1058
+ r"""创建证书组
1059
+ :param ListenerId: 应用型负载均衡监听器的ID
1060
+ :type PathPrefix: String
1061
+ """
1062
+ self.ListenerId = None
1063
+
1064
+ def _deserialize(self, params):
1065
+ if params.get("ListenerId"):
1066
+ self.ListenerId = params.get("ListenerId")
1067
+
1068
+
1069
+ class AddRulesRequest(AbstractModel):
1070
+ """AddRules请求参数结构体
1071
+ """
1072
+
1073
+ def __init__(self):
1074
+ r"""添加多个转发规则
1075
+ :param RuleGroupId: 转发策略的ID
1076
+ :type PathPrefix: String
1077
+ :param RuleType: 匹配规则类型(domain|url|method|sourceIp|header|query|cookie)
1078
+ :type PathPrefix: String
1079
+ :param RuleValue: 匹配规则的值
1080
+ :type PathPrefix: String
1081
+ :param MethodValue: HTTP请求方法
1082
+ :type PathPrefix: Array
1083
+ :param SourceIpValue: SourceIp
1084
+ :type PathPrefix: Array
1085
+ :param HeaderValue: HTTP标头
1086
+ :type PathPrefix: Array
1087
+ :param QueryValue: 查询字符串
1088
+ :type PathPrefix: Array
1089
+ :param CookieValue: Cookie转发条件
1090
+ :type PathPrefix: Array
1091
+ """
1092
+ self.RuleGroupId = None
1093
+ self.RuleType = None
1094
+ self.RuleValue = None
1095
+ self.MethodValue = None
1096
+ self.SourceIpValue = None
1097
+ self.HeaderValue = None
1098
+ self.QueryValue = None
1099
+ self.CookieValue = None
1100
+
1101
+ def _deserialize(self, params):
1102
+ if params.get("RuleGroupId"):
1103
+ self.RuleGroupId = params.get("RuleGroupId")
1104
+ if params.get("RuleType"):
1105
+ self.RuleType = params.get("RuleType")
1106
+ if params.get("RuleValue"):
1107
+ self.RuleValue = params.get("RuleValue")
1108
+ if params.get("MethodValue"):
1109
+ self.MethodValue = params.get("MethodValue")
1110
+ if params.get("SourceIpValue"):
1111
+ self.SourceIpValue = params.get("SourceIpValue")
1112
+ if params.get("HeaderValue"):
1113
+ self.HeaderValue = params.get("HeaderValue")
1114
+ if params.get("QueryValue"):
1115
+ self.QueryValue = params.get("QueryValue")
1116
+ if params.get("CookieValue"):
1117
+ self.CookieValue = params.get("CookieValue")
1118
+
1119
+
1120
+ class DeleteRuleRequest(AbstractModel):
1121
+ """DeleteRule请求参数结构体
1122
+ """
1123
+
1124
+ def __init__(self):
1125
+ r"""删除转发策略规则
1126
+ :param RuleGroupId: 转发策略的ID
1127
+ :type PathPrefix: String
1128
+ :param RuleType: 匹配规则类型(domain|url)
1129
+ :type PathPrefix: String
1130
+ :param RuleValue: 匹配规则的值
1131
+ :type PathPrefix: String
1132
+ """
1133
+ self.RuleGroupId = None
1134
+ self.RuleType = None
1135
+ self.RuleValue = None
1136
+
1137
+ def _deserialize(self, params):
1138
+ if params.get("RuleGroupId"):
1139
+ self.RuleGroupId = params.get("RuleGroupId")
1140
+ if params.get("RuleType"):
1141
+ self.RuleType = params.get("RuleType")
1142
+ if params.get("RuleValue"):
1143
+ self.RuleValue = params.get("RuleValue")
1144
+
1145
+
1146
+ class AddRuleRequest(AbstractModel):
1147
+ """AddRule请求参数结构体
1148
+ """
1149
+
1150
+ def __init__(self):
1151
+ r"""创建转发策略规则
1152
+ :param RuleGroupId: 转发策略的ID
1153
+ :type PathPrefix: String
1154
+ :param RuleType: 匹配规则类型(domain|url)
1155
+ :type PathPrefix: String
1156
+ :param RuleValue: 匹配规则的值
1157
+ :type PathPrefix: String
1158
+ """
1159
+ self.RuleGroupId = None
1160
+ self.RuleType = None
1161
+ self.RuleValue = None
1162
+
1163
+ def _deserialize(self, params):
1164
+ if params.get("RuleGroupId"):
1165
+ self.RuleGroupId = params.get("RuleGroupId")
1166
+ if params.get("RuleType"):
1167
+ self.RuleType = params.get("RuleType")
1168
+ if params.get("RuleValue"):
1169
+ self.RuleValue = params.get("RuleValue")
1170
+
1171
+
1172
+ class ModifyRuleGroupRequest(AbstractModel):
1173
+ """ModifyRuleGroup请求参数结构体
1174
+ """
1175
+
1176
+ def __init__(self):
1177
+ r"""修改转发策略
1178
+ :param RuleGroupId: 转发策略的ID
1179
+ :type PathPrefix: String
1180
+ :param RuleGroupName: 转发策略的名称
1181
+ :type PathPrefix: String
1182
+ :param BackendServerGroupId: 后端服务器组的ID
1183
+ :type PathPrefix: String
1184
+ :param Type: 转发动作类型
1185
+ :type PathPrefix: String
1186
+ :param RuleSet: 规则的信息
1187
+ :type PathPrefix: Array
1188
+ :param RedirectListenerId: 重定向监听器ID
1189
+ :type PathPrefix: String
1190
+ :param RedirectHttpCode: 重定向状态码,301|302|307
1191
+ :type PathPrefix: String
1192
+ :param FixedResponseConfig: 返回固定响应信息
1193
+ :type PathPrefix: Object
1194
+ :param RewriteConfig: 重写
1195
+ :type PathPrefix: Object
1196
+ """
1197
+ self.RuleGroupId = None
1198
+ self.RuleGroupName = None
1199
+ self.BackendServerGroupId = None
1200
+ self.Type = None
1201
+ self.RuleSet = None
1202
+ self.RedirectListenerId = None
1203
+ self.RedirectHttpCode = None
1204
+ self.FixedResponseConfig = None
1205
+ self.RewriteConfig = None
1206
+
1207
+ def _deserialize(self, params):
1208
+ if params.get("RuleGroupId"):
1209
+ self.RuleGroupId = params.get("RuleGroupId")
1210
+ if params.get("RuleGroupName"):
1211
+ self.RuleGroupName = params.get("RuleGroupName")
1212
+ if params.get("BackendServerGroupId"):
1213
+ self.BackendServerGroupId = params.get("BackendServerGroupId")
1214
+ if params.get("Type"):
1215
+ self.Type = params.get("Type")
1216
+ if params.get("RuleSet"):
1217
+ self.RuleSet = params.get("RuleSet")
1218
+ if params.get("RedirectListenerId"):
1219
+ self.RedirectListenerId = params.get("RedirectListenerId")
1220
+ if params.get("RedirectHttpCode"):
1221
+ self.RedirectHttpCode = params.get("RedirectHttpCode")
1222
+ if params.get("FixedResponseConfig"):
1223
+ self.FixedResponseConfig = params.get("FixedResponseConfig")
1224
+ if params.get("RewriteConfig"):
1225
+ self.RewriteConfig = params.get("RewriteConfig")
1226
+
1227
+
1228
+ class DescribeRuleGroupsRequest(AbstractModel):
1229
+ """DescribeRuleGroups请求参数结构体
1230
+ """
1231
+
1232
+ def __init__(self):
1233
+ r"""描述转发策略
1234
+ :param RuleGroupId: 多个转发策略的ID
1235
+ :type PathPrefix: Filter
1236
+ :param Filter: 筛选Filter
1237
+ :type PathPrefix: Filter
1238
+ :param MaxResults: 单次调用可返回的最大条目数量
1239
+ :type PathPrefix: Int
1240
+ :param NextToken: 获取另一页返回结果的 token.
1241
+ :type PathPrefix: String
1242
+ """
1243
+ self.RuleGroupId = None
1244
+ self.Filter = None
1245
+ self.MaxResults = None
1246
+ self.NextToken = None
1247
+
1248
+ def _deserialize(self, params):
1249
+ if params.get("RuleGroupId"):
1250
+ self.RuleGroupId = params.get("RuleGroupId")
1251
+ if params.get("Filter"):
1252
+ self.Filter = params.get("Filter")
1253
+ if params.get("MaxResults"):
1254
+ self.MaxResults = params.get("MaxResults")
1255
+ if params.get("NextToken"):
1256
+ self.NextToken = params.get("NextToken")
1257
+
1258
+
1259
+ class DeleteRuleGroupRequest(AbstractModel):
1260
+ """DeleteRuleGroup请求参数结构体
1261
+ """
1262
+
1263
+ def __init__(self):
1264
+ r"""删除转发策略
1265
+ :param RuleGroupId: 转发策略的ID
1266
+ :type PathPrefix: String
1267
+ """
1268
+ self.RuleGroupId = None
1269
+
1270
+ def _deserialize(self, params):
1271
+ if params.get("RuleGroupId"):
1272
+ self.RuleGroupId = params.get("RuleGroupId")
1273
+
1274
+
1275
+ class CreateRuleGroupRequest(AbstractModel):
1276
+ """CreateRuleGroup请求参数结构体
1277
+ """
1278
+
1279
+ def __init__(self):
1280
+ r"""创建转发策略
1281
+ :param RuleGroupName: 转发策略的名称
1282
+ :type PathPrefix: String
1283
+ :param ListenerId: 负载均衡监听器的ID
1284
+ :type PathPrefix: String
1285
+ :param BackendServerGroupId: 后端服务器组的ID
1286
+ :type PathPrefix: String
1287
+ :param Type: 转发动作类型
1288
+ :type PathPrefix: String
1289
+ :param RuleSet: 规则的信息
1290
+ :type PathPrefix: Array
1291
+ :param RedirectListenerId: 重定向监听器ID
1292
+ :type PathPrefix: String
1293
+ :param RedirectHttpCode: 重定向状态码,301|302|307
1294
+ :type PathPrefix: String
1295
+ :param FixedResponseConfig: 返回固定响应信息
1296
+ :type PathPrefix: Object
1297
+ :param RewriteConfig: 重写
1298
+ :type PathPrefix: Object
1299
+ """
1300
+ self.RuleGroupName = None
1301
+ self.ListenerId = None
1302
+ self.BackendServerGroupId = None
1303
+ self.Type = None
1304
+ self.RuleSet = None
1305
+ self.RedirectListenerId = None
1306
+ self.RedirectHttpCode = None
1307
+ self.FixedResponseConfig = None
1308
+ self.RewriteConfig = None
1309
+
1310
+ def _deserialize(self, params):
1311
+ if params.get("RuleGroupName"):
1312
+ self.RuleGroupName = params.get("RuleGroupName")
1313
+ if params.get("ListenerId"):
1314
+ self.ListenerId = params.get("ListenerId")
1315
+ if params.get("BackendServerGroupId"):
1316
+ self.BackendServerGroupId = params.get("BackendServerGroupId")
1317
+ if params.get("Type"):
1318
+ self.Type = params.get("Type")
1319
+ if params.get("RuleSet"):
1320
+ self.RuleSet = params.get("RuleSet")
1321
+ if params.get("RedirectListenerId"):
1322
+ self.RedirectListenerId = params.get("RedirectListenerId")
1323
+ if params.get("RedirectHttpCode"):
1324
+ self.RedirectHttpCode = params.get("RedirectHttpCode")
1325
+ if params.get("FixedResponseConfig"):
1326
+ self.FixedResponseConfig = params.get("FixedResponseConfig")
1327
+ if params.get("RewriteConfig"):
1328
+ self.RewriteConfig = params.get("RewriteConfig")
1329
+
1330
+
1331
+ class SetLBModificationProtectionRequest(AbstractModel):
1332
+ """SetLBModificationProtection请求参数结构体
1333
+ """
1334
+
1335
+ def __init__(self):
1336
+ r"""负载均衡修改保护
1337
+ :param LoadBalancerId: 负载均衡的ID
1338
+ :type PathPrefix: String
1339
+ :param ModificationProtection: 是否开启修改保护on/off
1340
+ :type PathPrefix: Boolean
1341
+ """
1342
+ self.LoadBalancerId = None
1343
+ self.ModificationProtection = None
1344
+
1345
+ def _deserialize(self, params):
1346
+ if params.get("LoadBalancerId"):
1347
+ self.LoadBalancerId = params.get("LoadBalancerId")
1348
+ if params.get("ModificationProtection"):
1349
+ self.ModificationProtection = params.get("ModificationProtection")
1350
+
1351
+
1352
+ class SetLBDeleteProtectionRequest(AbstractModel):
1353
+ """SetLBDeleteProtection请求参数结构体
1354
+ """
1355
+
1356
+ def __init__(self):
1357
+ r"""负载均衡删除保护
1358
+ :param LoadBalancerId: 负载均衡的ID
1359
+ :type PathPrefix: String
1360
+ :param DeleteProtection: 是否开启删除保护on/off
1361
+ :type PathPrefix: Boolean
1362
+ """
1363
+ self.LoadBalancerId = None
1364
+ self.DeleteProtection = None
1365
+
1366
+ def _deserialize(self, params):
1367
+ if params.get("LoadBalancerId"):
1368
+ self.LoadBalancerId = params.get("LoadBalancerId")
1369
+ if params.get("DeleteProtection"):
1370
+ self.DeleteProtection = params.get("DeleteProtection")
1371
+
1372
+