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,655 @@
1
+ from ksyun.common.abstract_model import AbstractModel
2
+
3
+ class CreatePrometheusInstanceRequest(AbstractModel):
4
+ """CreatePrometheusInstance请求参数结构体
5
+ """
6
+
7
+ def __init__(self):
8
+ r"""创建Prometheus实例
9
+ :param InstanceName: 实例名称,有效值:2-64个字符,支持中文,英文,数字,以及特殊.!$^*()%#&+/:;<=>[]_`{}~
10
+ :type PathPrefix: String
11
+ :param ChargeType: 实例计费方式,目前只支持按量付费有效值:DailyVolume
12
+ :type PathPrefix: String
13
+ :param DataRetentionTime: 数据存储时长,有效值:15、30、45、90、180、365
14
+ :type PathPrefix: Int
15
+ """
16
+ self.InstanceName = None
17
+ self.ChargeType = None
18
+ self.DataRetentionTime = None
19
+
20
+ def _deserialize(self, params):
21
+ if params.get("InstanceName"):
22
+ self.InstanceName = params.get("InstanceName")
23
+ if params.get("ChargeType"):
24
+ self.ChargeType = params.get("ChargeType")
25
+ if params.get("DataRetentionTime"):
26
+ self.DataRetentionTime = params.get("DataRetentionTime")
27
+
28
+
29
+ class DescribePrometheusInstanceRequest(AbstractModel):
30
+ """DescribePrometheusInstance请求参数结构体
31
+ """
32
+
33
+ def __init__(self):
34
+ r"""查询Prometheus实例
35
+ :param InstanceId: 实例id,若不填,则默认查询该地域下的所有实例
36
+ :type PathPrefix: Filter
37
+ :param Marker: 分页标识,单次调用未返回全部实例时,标记下次调用的返回值的起点,默认值是0
38
+ :type PathPrefix: Int
39
+ :param MaxResults: 单次调用所返回的最大实例数目,默认20,最大100
40
+ :type PathPrefix: Int
41
+ :param Search: 模糊匹配,可匹配字段:InstanceName(实例名称)
42
+ :type PathPrefix: String
43
+ """
44
+ self.InstanceId = None
45
+ self.Marker = None
46
+ self.MaxResults = None
47
+ self.Search = None
48
+
49
+ def _deserialize(self, params):
50
+ if params.get("InstanceId"):
51
+ self.InstanceId = params.get("InstanceId")
52
+ if params.get("Marker"):
53
+ self.Marker = params.get("Marker")
54
+ if params.get("MaxResults"):
55
+ self.MaxResults = params.get("MaxResults")
56
+ if params.get("Search"):
57
+ self.Search = params.get("Search")
58
+
59
+
60
+ class UpdatePrometheusInstanceRequest(AbstractModel):
61
+ """UpdatePrometheusInstance请求参数结构体
62
+ """
63
+
64
+ def __init__(self):
65
+ r"""更新Prometheus实例
66
+ :param InstanceId: 实例id
67
+ :type PathPrefix: String
68
+ :param InstanceName: 修改实例名称
69
+ :type PathPrefix: String
70
+ :param DataRetentionTime: 修改数据存储时长 有效值:15、30、45、90、180、365
71
+ :type PathPrefix: Int
72
+ """
73
+ self.InstanceId = None
74
+ self.InstanceName = None
75
+ self.DataRetentionTime = None
76
+
77
+ def _deserialize(self, params):
78
+ if params.get("InstanceId"):
79
+ self.InstanceId = params.get("InstanceId")
80
+ if params.get("InstanceName"):
81
+ self.InstanceName = params.get("InstanceName")
82
+ if params.get("DataRetentionTime"):
83
+ self.DataRetentionTime = params.get("DataRetentionTime")
84
+
85
+
86
+ class DeletePrometheusInstanceRequest(AbstractModel):
87
+ """DeletePrometheusInstance请求参数结构体
88
+ """
89
+
90
+ def __init__(self):
91
+ r"""删除Prometheus实例
92
+ :param InstanceId: 实例id
93
+ :type PathPrefix: String
94
+ """
95
+ self.InstanceId = None
96
+
97
+ def _deserialize(self, params):
98
+ if params.get("InstanceId"):
99
+ self.InstanceId = params.get("InstanceId")
100
+
101
+
102
+ class EnableGrafanaRequest(AbstractModel):
103
+ """EnableGrafana请求参数结构体
104
+ """
105
+
106
+ def __init__(self):
107
+ r"""开通/关闭Grafana
108
+ :param InstanceId: Grafana所关联的Prometheus的实例id
109
+ :type PathPrefix: String
110
+ :param EnableGrafana: 开通或关闭Grafana,true为开启,false 为不开启
111
+ :type PathPrefix: Boolean
112
+ :param Password: 开通Grafana时需设置Grafana密码有效值:6-24个字符,必须以数字或字母开头,且至少包含一个特殊字符,支持英文特殊字符@$!%*#?&
113
+ :type PathPrefix: String
114
+ """
115
+ self.InstanceId = None
116
+ self.EnableGrafana = None
117
+ self.Password = None
118
+
119
+ def _deserialize(self, params):
120
+ if params.get("InstanceId"):
121
+ self.InstanceId = params.get("InstanceId")
122
+ if params.get("EnableGrafana"):
123
+ self.EnableGrafana = params.get("EnableGrafana")
124
+ if params.get("Password"):
125
+ self.Password = params.get("Password")
126
+
127
+
128
+ class UpdateGrafanaPasswordRequest(AbstractModel):
129
+ """UpdateGrafanaPassword请求参数结构体
130
+ """
131
+
132
+ def __init__(self):
133
+ r"""更新Grafana密码
134
+ :param InstanceId: Grafana所关联的Prometheus的实例id
135
+ :type PathPrefix: String
136
+ :param Password: 新的Grafana密码有效值:6-24个字符,必须以数字或字母开头,且至少包含一个特殊字符,支持英文特殊字符@$!%*#?&
137
+ :type PathPrefix: String
138
+ """
139
+ self.InstanceId = None
140
+ self.Password = None
141
+
142
+ def _deserialize(self, params):
143
+ if params.get("InstanceId"):
144
+ self.InstanceId = params.get("InstanceId")
145
+ if params.get("Password"):
146
+ self.Password = params.get("Password")
147
+
148
+
149
+ class EnableGrafanaInternetRequest(AbstractModel):
150
+ """EnableGrafanaInternet请求参数结构体
151
+ """
152
+
153
+ def __init__(self):
154
+ r"""开启/关闭Grafana公网访问
155
+ :param InstanceId: Grafana所关联的Prometheus的实例id
156
+ :type PathPrefix: String
157
+ :param EnableInternet: 开启或关闭公网访问,true为开启,false 为不开启
158
+ :type PathPrefix: Boolean
159
+ """
160
+ self.InstanceId = None
161
+ self.EnableInternet = None
162
+
163
+ def _deserialize(self, params):
164
+ if params.get("InstanceId"):
165
+ self.InstanceId = params.get("InstanceId")
166
+ if params.get("EnableInternet"):
167
+ self.EnableInternet = params.get("EnableInternet")
168
+
169
+
170
+ class DescribeGrafanaWhiteListRequest(AbstractModel):
171
+ """DescribeGrafanaWhiteList请求参数结构体
172
+ """
173
+
174
+ def __init__(self):
175
+ r"""查询可访问Grafana公网的IP白名单
176
+ :param InstanceId: Grafana所关联的Prometheus的实例id
177
+ :type PathPrefix: String
178
+ """
179
+ self.InstanceId = None
180
+
181
+ def _deserialize(self, params):
182
+ if params.get("InstanceId"):
183
+ self.InstanceId = params.get("InstanceId")
184
+
185
+
186
+ class UpdateGrafanaWhiteListRequest(AbstractModel):
187
+ """UpdateGrafanaWhiteList请求参数结构体
188
+ """
189
+
190
+ def __init__(self):
191
+ r"""更新可访问Grafana公网的IP白名单
192
+ :param InstanceId: Grafana所关联的Prometheus的实例id
193
+ :type PathPrefix: String
194
+ :param WhiteList: 白名单数组,输入公网域名IP或网段,例如:127.0.0.1或127.0.0.1/24
195
+ :type PathPrefix: Filter
196
+ """
197
+ self.InstanceId = None
198
+ self.WhiteList = None
199
+
200
+ def _deserialize(self, params):
201
+ if params.get("InstanceId"):
202
+ self.InstanceId = params.get("InstanceId")
203
+ if params.get("WhiteList"):
204
+ self.WhiteList = params.get("WhiteList")
205
+
206
+
207
+ class AssociateClusterRequest(AbstractModel):
208
+ """AssociateCluster请求参数结构体
209
+ """
210
+
211
+ def __init__(self):
212
+ r"""用于关联集群
213
+ :param InstanceId: 实例id
214
+ :type PathPrefix: String
215
+ :param ClusterId: 集群id
216
+ :type PathPrefix: String
217
+ """
218
+ self.InstanceId = None
219
+ self.ClusterId = None
220
+
221
+ def _deserialize(self, params):
222
+ if params.get("InstanceId"):
223
+ self.InstanceId = params.get("InstanceId")
224
+ if params.get("ClusterId"):
225
+ self.ClusterId = params.get("ClusterId")
226
+
227
+
228
+ class DisassociateClusterRequest(AbstractModel):
229
+ """DisassociateCluster请求参数结构体
230
+ """
231
+
232
+ def __init__(self):
233
+ r"""解除关联集群
234
+ :param InstanceId: 实例id
235
+ :type PathPrefix: String
236
+ :param ClusterId: 集群id
237
+ :type PathPrefix: String
238
+ """
239
+ self.InstanceId = None
240
+ self.ClusterId = None
241
+
242
+ def _deserialize(self, params):
243
+ if params.get("InstanceId"):
244
+ self.InstanceId = params.get("InstanceId")
245
+ if params.get("ClusterId"):
246
+ self.ClusterId = params.get("ClusterId")
247
+
248
+
249
+ class DescribeAssociateClusterListRequest(AbstractModel):
250
+ """DescribeAssociateClusterList请求参数结构体
251
+ """
252
+
253
+ def __init__(self):
254
+ r"""查询关联集群列表
255
+ :param InstanceId: 实例id
256
+ :type PathPrefix: String
257
+ :param Marker: 分页标识,单次调用未返回全部关联集群时,标记下次调用的返回值的起点,默认值是0
258
+ :type PathPrefix: Int
259
+ :param MaxResults: 单次调用所返回的最大关联集群数目,默认20,最大100
260
+ :type PathPrefix: Int
261
+ :param ClusterId: 集群id,支持输入多个集群id进行查询,若不填默认查询所有的关联集群
262
+ :type PathPrefix: Filter
263
+ """
264
+ self.InstanceId = None
265
+ self.Marker = None
266
+ self.MaxResults = None
267
+ self.ClusterId = None
268
+
269
+ def _deserialize(self, params):
270
+ if params.get("InstanceId"):
271
+ self.InstanceId = params.get("InstanceId")
272
+ if params.get("Marker"):
273
+ self.Marker = params.get("Marker")
274
+ if params.get("MaxResults"):
275
+ self.MaxResults = params.get("MaxResults")
276
+ if params.get("ClusterId"):
277
+ self.ClusterId = params.get("ClusterId")
278
+
279
+
280
+ class DescribeMonitorListRequest(AbstractModel):
281
+ """DescribeMonitorList请求参数结构体
282
+ """
283
+
284
+ def __init__(self):
285
+ r"""查询监控列表
286
+ :param InstanceId: 实例id
287
+ :type PathPrefix: String
288
+ :param ClusterId: 集群id
289
+ :type PathPrefix: String
290
+ :param MonitorSource: 监控采集配置来源,有效值:
291
+ Basic
292
+ Custom
293
+ :type PathPrefix: String
294
+ :param Marker: 分页标识,单次调用未返回监控项时,标记下次调用的返回值的起点,默认值是0
295
+ :type PathPrefix: Int
296
+ :param MaxResults: 单次调用所返回的最大监控数目,默认20,最大100
297
+ :type PathPrefix: Int
298
+ """
299
+ self.InstanceId = None
300
+ self.ClusterId = None
301
+ self.MonitorSource = None
302
+ self.Marker = None
303
+ self.MaxResults = None
304
+
305
+ def _deserialize(self, params):
306
+ if params.get("InstanceId"):
307
+ self.InstanceId = params.get("InstanceId")
308
+ if params.get("ClusterId"):
309
+ self.ClusterId = params.get("ClusterId")
310
+ if params.get("MonitorSource"):
311
+ self.MonitorSource = params.get("MonitorSource")
312
+ if params.get("Marker"):
313
+ self.Marker = params.get("Marker")
314
+ if params.get("MaxResults"):
315
+ self.MaxResults = params.get("MaxResults")
316
+
317
+
318
+ class DescribeMonitorCollectionConfigRequest(AbstractModel):
319
+ """DescribeMonitorCollectionConfig请求参数结构体
320
+ """
321
+
322
+ def __init__(self):
323
+ r"""查询监控采集配置
324
+ :param InstanceId: 实例id
325
+ :type PathPrefix: String
326
+ :param ClusterId: 集群id
327
+ :type PathPrefix: String
328
+ :param MonitorName: 监控采集配置名称
329
+ :type PathPrefix: String
330
+ :param Type: 监控采集配置类型,有效值:
331
+ RawJob
332
+ PodMonitor
333
+ ServiceMonitor
334
+ :type PathPrefix: String
335
+ """
336
+ self.InstanceId = None
337
+ self.ClusterId = None
338
+ self.MonitorName = None
339
+ self.Type = None
340
+
341
+ def _deserialize(self, params):
342
+ if params.get("InstanceId"):
343
+ self.InstanceId = params.get("InstanceId")
344
+ if params.get("ClusterId"):
345
+ self.ClusterId = params.get("ClusterId")
346
+ if params.get("MonitorName"):
347
+ self.MonitorName = params.get("MonitorName")
348
+ if params.get("Type"):
349
+ self.Type = params.get("Type")
350
+
351
+
352
+ class UpdateMonitorCollectionConfigRequest(AbstractModel):
353
+ """UpdateMonitorCollectionConfig请求参数结构体
354
+ """
355
+
356
+ def __init__(self):
357
+ r"""更新监控采集配置
358
+ :param InstanceId: 实例id
359
+ :type PathPrefix: String
360
+ :param ClusterId: 集群id
361
+ :type PathPrefix: String
362
+ :param MonitorName: 监控采集配置名称
363
+ :type PathPrefix: String
364
+ :param Type: 监控采集配置类型,有效值:
365
+ RawJob
366
+ PodMonitor
367
+ ServiceMonitor
368
+ :type PathPrefix: String
369
+ :param ConfigYaml: 监控采集配置yaml
370
+ :type PathPrefix: String
371
+ """
372
+ self.InstanceId = None
373
+ self.ClusterId = None
374
+ self.MonitorName = None
375
+ self.Type = None
376
+ self.ConfigYaml = None
377
+
378
+ def _deserialize(self, params):
379
+ if params.get("InstanceId"):
380
+ self.InstanceId = params.get("InstanceId")
381
+ if params.get("ClusterId"):
382
+ self.ClusterId = params.get("ClusterId")
383
+ if params.get("MonitorName"):
384
+ self.MonitorName = params.get("MonitorName")
385
+ if params.get("Type"):
386
+ self.Type = params.get("Type")
387
+ if params.get("ConfigYaml"):
388
+ self.ConfigYaml = params.get("ConfigYaml")
389
+
390
+
391
+ class DescribeMonitorMetricsListRequest(AbstractModel):
392
+ """DescribeMonitorMetricsList请求参数结构体
393
+ """
394
+
395
+ def __init__(self):
396
+ r"""查询监控指标
397
+ :param InstanceId: 实例id
398
+ :type PathPrefix: String
399
+ :param ClusterId: 集群id
400
+ :type PathPrefix: String
401
+ :param MonitorName: 监控采集配置名称
402
+ :type PathPrefix: String
403
+ :param Type: 监控采集配置类型,有效值:
404
+ RawJob
405
+ PodMonitor
406
+ ServiceMonitor
407
+ :type PathPrefix: String
408
+ :param IsCollect: 监控指标是否开启采集,有效值:
409
+ true:已开启指标
410
+ false:废弃指标
411
+ :type PathPrefix: Boolean
412
+ :param Marker: 分页标识
413
+ :type PathPrefix: Int
414
+ :param MaxResults: 单次调用所返回的最大指标数目,默认20,最大100
415
+ :type PathPrefix: Int
416
+ """
417
+ self.InstanceId = None
418
+ self.ClusterId = None
419
+ self.MonitorName = None
420
+ self.Type = None
421
+ self.IsCollect = None
422
+ self.Marker = None
423
+ self.MaxResults = None
424
+
425
+ def _deserialize(self, params):
426
+ if params.get("InstanceId"):
427
+ self.InstanceId = params.get("InstanceId")
428
+ if params.get("ClusterId"):
429
+ self.ClusterId = params.get("ClusterId")
430
+ if params.get("MonitorName"):
431
+ self.MonitorName = params.get("MonitorName")
432
+ if params.get("Type"):
433
+ self.Type = params.get("Type")
434
+ if params.get("IsCollect"):
435
+ self.IsCollect = params.get("IsCollect")
436
+ if params.get("Marker"):
437
+ self.Marker = params.get("Marker")
438
+ if params.get("MaxResults"):
439
+ self.MaxResults = params.get("MaxResults")
440
+
441
+
442
+ class DescribeTargetsListRequest(AbstractModel):
443
+ """DescribeTargetsList请求参数结构体
444
+ """
445
+
446
+ def __init__(self):
447
+ r"""查询采集目标列表
448
+ :param InstanceId: 实例id
449
+ :type PathPrefix: String
450
+ :param ClusterId: 集群id
451
+ :type PathPrefix: String
452
+ :param MonitorName: 监控采集配置名称
453
+ :type PathPrefix: String
454
+ :param Type: 监控采集配置类型,有效值:
455
+ RawJob
456
+ PodMonitor
457
+ ServiceMonitor
458
+ :type PathPrefix: String
459
+ :param Marker: 分页标识
460
+ :type PathPrefix: Int
461
+ :param MaxResults: 单次调用所返回的最大targets数目,默认20,最大100
462
+ :type PathPrefix: Int
463
+ """
464
+ self.InstanceId = None
465
+ self.ClusterId = None
466
+ self.MonitorName = None
467
+ self.Type = None
468
+ self.Marker = None
469
+ self.MaxResults = None
470
+
471
+ def _deserialize(self, params):
472
+ if params.get("InstanceId"):
473
+ self.InstanceId = params.get("InstanceId")
474
+ if params.get("ClusterId"):
475
+ self.ClusterId = params.get("ClusterId")
476
+ if params.get("MonitorName"):
477
+ self.MonitorName = params.get("MonitorName")
478
+ if params.get("Type"):
479
+ self.Type = params.get("Type")
480
+ if params.get("Marker"):
481
+ self.Marker = params.get("Marker")
482
+ if params.get("MaxResults"):
483
+ self.MaxResults = params.get("MaxResults")
484
+
485
+
486
+ class DescribeAgentStatusRequest(AbstractModel):
487
+ """DescribeAgentStatus请求参数结构体
488
+ """
489
+
490
+ def __init__(self):
491
+ r"""查询agent状态
492
+ :param InstanceId: 实例id
493
+ :type PathPrefix: String
494
+ :param ClusterId: 集群id
495
+ :type PathPrefix: String
496
+ """
497
+ self.InstanceId = None
498
+ self.ClusterId = None
499
+
500
+ def _deserialize(self, params):
501
+ if params.get("InstanceId"):
502
+ self.InstanceId = params.get("InstanceId")
503
+ if params.get("ClusterId"):
504
+ self.ClusterId = params.get("ClusterId")
505
+
506
+
507
+ class CreateMonitorCollectionConfigRequest(AbstractModel):
508
+ """CreateMonitorCollectionConfig请求参数结构体
509
+ """
510
+
511
+ def __init__(self):
512
+ r"""创建监控采集配置
513
+ :param InstanceId: 实例id
514
+ :type PathPrefix: String
515
+ :param ClusterId: 集群id
516
+ :type PathPrefix: String
517
+ :param Type: 监控采集配置类型,有效值:
518
+ RawJob
519
+ PodMonitor
520
+ ServiceMonitor
521
+ :type PathPrefix: String
522
+ :param ConfigYaml: 监控采集配置yaml
523
+ :type PathPrefix: String
524
+ """
525
+ self.InstanceId = None
526
+ self.ClusterId = None
527
+ self.Type = None
528
+ self.ConfigYaml = None
529
+
530
+ def _deserialize(self, params):
531
+ if params.get("InstanceId"):
532
+ self.InstanceId = params.get("InstanceId")
533
+ if params.get("ClusterId"):
534
+ self.ClusterId = params.get("ClusterId")
535
+ if params.get("Type"):
536
+ self.Type = params.get("Type")
537
+ if params.get("ConfigYaml"):
538
+ self.ConfigYaml = params.get("ConfigYaml")
539
+
540
+
541
+ class DeleteMonitorCollectionConfigRequest(AbstractModel):
542
+ """DeleteMonitorCollectionConfig请求参数结构体
543
+ """
544
+
545
+ def __init__(self):
546
+ r"""删除监控采集配置
547
+ :param InstanceId: 实例id
548
+ :type PathPrefix: String
549
+ :param ClusterId: 集群id
550
+ :type PathPrefix: String
551
+ :param MonitorName: 监控采集配置名称
552
+ :type PathPrefix: String
553
+ :param Type:
554
+ 监控采集配置类型,有效值:
555
+ RawJob
556
+ PodMonitor
557
+ ServiceMonitor
558
+ :type PathPrefix: String
559
+ """
560
+ self.InstanceId = None
561
+ self.ClusterId = None
562
+ self.MonitorName = None
563
+ self.Type = None
564
+
565
+ def _deserialize(self, params):
566
+ if params.get("InstanceId"):
567
+ self.InstanceId = params.get("InstanceId")
568
+ if params.get("ClusterId"):
569
+ self.ClusterId = params.get("ClusterId")
570
+ if params.get("MonitorName"):
571
+ self.MonitorName = params.get("MonitorName")
572
+ if params.get("Type"):
573
+ self.Type = params.get("Type")
574
+
575
+
576
+ class EnableMetricsRequest(AbstractModel):
577
+ """EnableMetrics请求参数结构体
578
+ """
579
+
580
+ def __init__(self):
581
+ r"""用于开启指标
582
+ :param InstanceId: 实例id
583
+ :type PathPrefix: String
584
+ :param ClusterId: 集群id
585
+ :type PathPrefix: String
586
+ :param MonitorName: 监控采集配置名称
587
+ :type PathPrefix: String
588
+ :param Type:
589
+ 监控采集配置类型,有效值:
590
+ RawJob
591
+ PodMonitor
592
+ ServiceMonitor
593
+ :type PathPrefix: String
594
+ :param MetricsName: 指标名称
595
+ :type PathPrefix: Filter
596
+ """
597
+ self.InstanceId = None
598
+ self.ClusterId = None
599
+ self.MonitorName = None
600
+ self.Type = None
601
+ self.MetricsName = None
602
+
603
+ def _deserialize(self, params):
604
+ if params.get("InstanceId"):
605
+ self.InstanceId = params.get("InstanceId")
606
+ if params.get("ClusterId"):
607
+ self.ClusterId = params.get("ClusterId")
608
+ if params.get("MonitorName"):
609
+ self.MonitorName = params.get("MonitorName")
610
+ if params.get("Type"):
611
+ self.Type = params.get("Type")
612
+ if params.get("MetricsName"):
613
+ self.MetricsName = params.get("MetricsName")
614
+
615
+
616
+ class DropMetricsRequest(AbstractModel):
617
+ """DropMetrics请求参数结构体
618
+ """
619
+
620
+ def __init__(self):
621
+ r"""用于废弃指标
622
+ :param InstanceId: 实例id
623
+ :type PathPrefix: String
624
+ :param ClusterId: 集群id
625
+ :type PathPrefix: String
626
+ :param MonitorName: 监控采集配置名称
627
+ :type PathPrefix: String
628
+ :param Type:
629
+ 监控采集配置类型,有效值:
630
+ RawJob
631
+ PodMonitor
632
+ ServiceMonitor
633
+ :type PathPrefix: String
634
+ :param MetricsName: 指标名称
635
+ :type PathPrefix: Filter
636
+ """
637
+ self.InstanceId = None
638
+ self.ClusterId = None
639
+ self.MonitorName = None
640
+ self.Type = None
641
+ self.MetricsName = None
642
+
643
+ def _deserialize(self, params):
644
+ if params.get("InstanceId"):
645
+ self.InstanceId = params.get("InstanceId")
646
+ if params.get("ClusterId"):
647
+ self.ClusterId = params.get("ClusterId")
648
+ if params.get("MonitorName"):
649
+ self.MonitorName = params.get("MonitorName")
650
+ if params.get("Type"):
651
+ self.Type = params.get("Type")
652
+ if params.get("MetricsName"):
653
+ self.MetricsName = params.get("MetricsName")
654
+
655
+
File without changes