ucloud-sdk-python3 0.11.81__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 (280) hide show
  1. ucloud/__init__.py +0 -0
  2. ucloud/client.py +469 -0
  3. ucloud/core/__init__.py +0 -0
  4. ucloud/core/auth/__init__.py +3 -0
  5. ucloud/core/auth/_cfg.py +72 -0
  6. ucloud/core/client/__init__.py +8 -0
  7. ucloud/core/client/_cfg.py +96 -0
  8. ucloud/core/client/_client.py +176 -0
  9. ucloud/core/exc/__init__.py +9 -0
  10. ucloud/core/exc/_exc.py +94 -0
  11. ucloud/core/transport/__init__.py +4 -0
  12. ucloud/core/transport/_requests.py +135 -0
  13. ucloud/core/transport/http.py +120 -0
  14. ucloud/core/transport/utils.py +40 -0
  15. ucloud/core/typesystem/__init__.py +0 -0
  16. ucloud/core/typesystem/abstract.py +60 -0
  17. ucloud/core/typesystem/encoder.py +33 -0
  18. ucloud/core/typesystem/fields.py +149 -0
  19. ucloud/core/typesystem/schema.py +97 -0
  20. ucloud/core/utils/__init__.py +0 -0
  21. ucloud/core/utils/compat.py +15 -0
  22. ucloud/core/utils/deco.py +31 -0
  23. ucloud/core/utils/log.py +29 -0
  24. ucloud/core/utils/middleware.py +63 -0
  25. ucloud/helpers/__init__.py +0 -0
  26. ucloud/helpers/utils.py +90 -0
  27. ucloud/helpers/wait.py +108 -0
  28. ucloud/services/__init__.py +0 -0
  29. ucloud/services/cube/__init__.py +0 -0
  30. ucloud/services/cube/client.py +618 -0
  31. ucloud/services/cube/schemas/__init__.py +0 -0
  32. ucloud/services/cube/schemas/apis.py +548 -0
  33. ucloud/services/cube/schemas/models.py +58 -0
  34. ucloud/services/iam/__init__.py +0 -0
  35. ucloud/services/iam/client.py +1078 -0
  36. ucloud/services/iam/schemas/__init__.py +0 -0
  37. ucloud/services/iam/schemas/apis.py +973 -0
  38. ucloud/services/iam/schemas/models.py +127 -0
  39. ucloud/services/ipsecvpn/__init__.py +0 -0
  40. ucloud/services/ipsecvpn/client.py +522 -0
  41. ucloud/services/ipsecvpn/schemas/__init__.py +0 -0
  42. ucloud/services/ipsecvpn/schemas/apis.py +455 -0
  43. ucloud/services/ipsecvpn/schemas/models.py +134 -0
  44. ucloud/services/ipv6gw/__init__.py +0 -0
  45. ucloud/services/ipv6gw/client.py +44 -0
  46. ucloud/services/ipv6gw/schemas/__init__.py +0 -0
  47. ucloud/services/ipv6gw/schemas/apis.py +34 -0
  48. ucloud/services/ipv6gw/schemas/models.py +3 -0
  49. ucloud/services/isms/__init__.py +0 -0
  50. ucloud/services/isms/client.py +330 -0
  51. ucloud/services/isms/schemas/__init__.py +0 -0
  52. ucloud/services/isms/schemas/apis.py +272 -0
  53. ucloud/services/isms/schemas/models.py +50 -0
  54. ucloud/services/pathx/__init__.py +0 -0
  55. ucloud/services/pathx/client.py +1656 -0
  56. ucloud/services/pathx/schemas/__init__.py +0 -0
  57. ucloud/services/pathx/schemas/apis.py +1289 -0
  58. ucloud/services/pathx/schemas/models.py +420 -0
  59. ucloud/services/stepflow/__init__.py +0 -0
  60. ucloud/services/stepflow/client.py +98 -0
  61. ucloud/services/stepflow/schemas/__init__.py +0 -0
  62. ucloud/services/stepflow/schemas/apis.py +67 -0
  63. ucloud/services/stepflow/schemas/models.py +37 -0
  64. ucloud/services/sts/__init__.py +0 -0
  65. ucloud/services/sts/client.py +46 -0
  66. ucloud/services/sts/schemas/__init__.py +0 -0
  67. ucloud/services/sts/schemas/apis.py +35 -0
  68. ucloud/services/sts/schemas/models.py +16 -0
  69. ucloud/services/tidb/__init__.py +0 -0
  70. ucloud/services/tidb/client.py +120 -0
  71. ucloud/services/tidb/schemas/__init__.py +0 -0
  72. ucloud/services/tidb/schemas/apis.py +103 -0
  73. ucloud/services/tidb/schemas/models.py +11 -0
  74. ucloud/services/uaaa/__init__.py +0 -0
  75. ucloud/services/uaaa/client.py +311 -0
  76. ucloud/services/uaaa/schemas/__init__.py +0 -0
  77. ucloud/services/uaaa/schemas/apis.py +252 -0
  78. ucloud/services/uaaa/schemas/models.py +47 -0
  79. ucloud/services/uaccount/__init__.py +0 -0
  80. ucloud/services/uaccount/client.py +547 -0
  81. ucloud/services/uaccount/schemas/__init__.py +0 -0
  82. ucloud/services/uaccount/schemas/apis.py +442 -0
  83. ucloud/services/uaccount/schemas/models.py +128 -0
  84. ucloud/services/uads/__init__.py +0 -0
  85. ucloud/services/uads/client.py +1148 -0
  86. ucloud/services/uads/schemas/__init__.py +0 -0
  87. ucloud/services/uads/schemas/apis.py +983 -0
  88. ucloud/services/uads/schemas/models.py +199 -0
  89. ucloud/services/ubill/__init__.py +0 -0
  90. ucloud/services/ubill/client.py +248 -0
  91. ucloud/services/ubill/schemas/__init__.py +0 -0
  92. ucloud/services/ubill/schemas/apis.py +183 -0
  93. ucloud/services/ubill/schemas/models.py +107 -0
  94. ucloud/services/ucdn/__init__.py +0 -0
  95. ucloud/services/ucdn/client.py +1964 -0
  96. ucloud/services/ucdn/schemas/__init__.py +0 -0
  97. ucloud/services/ucdn/schemas/apis.py +1395 -0
  98. ucloud/services/ucdn/schemas/models.py +576 -0
  99. ucloud/services/ucloudstack/__init__.py +0 -0
  100. ucloud/services/ucloudstack/client.py +3352 -0
  101. ucloud/services/ucloudstack/schemas/__init__.py +0 -0
  102. ucloud/services/ucloudstack/schemas/apis.py +2887 -0
  103. ucloud/services/ucloudstack/schemas/models.py +560 -0
  104. ucloud/services/ucompshare/__init__.py +0 -0
  105. ucloud/services/ucompshare/client.py +820 -0
  106. ucloud/services/ucompshare/schemas/__init__.py +0 -0
  107. ucloud/services/ucompshare/schemas/apis.py +623 -0
  108. ucloud/services/ucompshare/schemas/models.py +241 -0
  109. ucloud/services/udb/__init__.py +0 -0
  110. ucloud/services/udb/client.py +2463 -0
  111. ucloud/services/udb/schemas/__init__.py +0 -0
  112. ucloud/services/udb/schemas/apis.py +2053 -0
  113. ucloud/services/udb/schemas/models.py +319 -0
  114. ucloud/services/udbproxy/__init__.py +0 -0
  115. ucloud/services/udbproxy/client.py +67 -0
  116. ucloud/services/udbproxy/schemas/__init__.py +0 -0
  117. ucloud/services/udbproxy/schemas/apis.py +38 -0
  118. ucloud/services/udbproxy/schemas/models.py +31 -0
  119. ucloud/services/uddb/__init__.py +0 -0
  120. ucloud/services/uddb/client.py +456 -0
  121. ucloud/services/uddb/schemas/__init__.py +0 -0
  122. ucloud/services/uddb/schemas/apis.py +520 -0
  123. ucloud/services/uddb/schemas/models.py +96 -0
  124. ucloud/services/udi/__init__.py +0 -0
  125. ucloud/services/udi/client.py +250 -0
  126. ucloud/services/udi/schemas/__init__.py +0 -0
  127. ucloud/services/udi/schemas/apis.py +205 -0
  128. ucloud/services/udi/schemas/models.py +58 -0
  129. ucloud/services/udisk/__init__.py +0 -0
  130. ucloud/services/udisk/client.py +832 -0
  131. ucloud/services/udisk/schemas/__init__.py +0 -0
  132. ucloud/services/udisk/schemas/apis.py +741 -0
  133. ucloud/services/udisk/schemas/models.py +100 -0
  134. ucloud/services/udns/__init__.py +0 -0
  135. ucloud/services/udns/client.py +380 -0
  136. ucloud/services/udns/schemas/__init__.py +0 -0
  137. ucloud/services/udns/schemas/apis.py +293 -0
  138. ucloud/services/udns/schemas/models.py +58 -0
  139. ucloud/services/udpn/__init__.py +0 -0
  140. ucloud/services/udpn/client.py +240 -0
  141. ucloud/services/udpn/schemas/__init__.py +0 -0
  142. ucloud/services/udpn/schemas/apis.py +203 -0
  143. ucloud/services/udpn/schemas/models.py +29 -0
  144. ucloud/services/udts/__init__.py +0 -0
  145. ucloud/services/udts/client.py +410 -0
  146. ucloud/services/udts/schemas/__init__.py +0 -0
  147. ucloud/services/udts/schemas/apis.py +403 -0
  148. ucloud/services/udts/schemas/models.py +93 -0
  149. ucloud/services/uec/__init__.py +0 -0
  150. ucloud/services/uec/client.py +1510 -0
  151. ucloud/services/uec/schemas/__init__.py +0 -0
  152. ucloud/services/uec/schemas/apis.py +1195 -0
  153. ucloud/services/uec/schemas/models.py +316 -0
  154. ucloud/services/ufile/__init__.py +0 -0
  155. ucloud/services/ufile/client.py +698 -0
  156. ucloud/services/ufile/schemas/__init__.py +0 -0
  157. ucloud/services/ufile/schemas/apis.py +542 -0
  158. ucloud/services/ufile/schemas/models.py +139 -0
  159. ucloud/services/ufs/__init__.py +0 -0
  160. ucloud/services/ufs/client.py +328 -0
  161. ucloud/services/ufs/schemas/__init__.py +0 -0
  162. ucloud/services/ufs/schemas/apis.py +265 -0
  163. ucloud/services/ufs/schemas/models.py +52 -0
  164. ucloud/services/ugn/__init__.py +0 -0
  165. ucloud/services/ugn/client.py +857 -0
  166. ucloud/services/ugn/schemas/__init__.py +0 -0
  167. ucloud/services/ugn/schemas/apis.py +678 -0
  168. ucloud/services/ugn/schemas/models.py +191 -0
  169. ucloud/services/uhost/__init__.py +0 -0
  170. ucloud/services/uhost/client.py +1647 -0
  171. ucloud/services/uhost/schemas/__init__.py +0 -0
  172. ucloud/services/uhost/schemas/apis.py +1483 -0
  173. ucloud/services/uhost/schemas/models.py +427 -0
  174. ucloud/services/uhub/__init__.py +0 -0
  175. ucloud/services/uhub/client.py +229 -0
  176. ucloud/services/uhub/schemas/__init__.py +0 -0
  177. ucloud/services/uhub/schemas/apis.py +194 -0
  178. ucloud/services/uhub/schemas/models.py +39 -0
  179. ucloud/services/uk8s/__init__.py +0 -0
  180. ucloud/services/uk8s/client.py +729 -0
  181. ucloud/services/uk8s/schemas/__init__.py +0 -0
  182. ucloud/services/uk8s/schemas/apis.py +639 -0
  183. ucloud/services/uk8s/schemas/models.py +179 -0
  184. ucloud/services/ulb/__init__.py +0 -0
  185. ucloud/services/ulb/client.py +2285 -0
  186. ucloud/services/ulb/schemas/__init__.py +0 -0
  187. ucloud/services/ulb/schemas/apis.py +1678 -0
  188. ucloud/services/ulb/schemas/models.py +591 -0
  189. ucloud/services/ulighthost/__init__.py +0 -0
  190. ucloud/services/ulighthost/client.py +576 -0
  191. ucloud/services/ulighthost/schemas/__init__.py +0 -0
  192. ucloud/services/ulighthost/schemas/apis.py +445 -0
  193. ucloud/services/ulighthost/schemas/models.py +133 -0
  194. ucloud/services/umem/__init__.py +0 -0
  195. ucloud/services/umem/client.py +1829 -0
  196. ucloud/services/umem/schemas/__init__.py +0 -0
  197. ucloud/services/umem/schemas/apis.py +1477 -0
  198. ucloud/services/umem/schemas/models.py +327 -0
  199. ucloud/services/umongodb/__init__.py +0 -0
  200. ucloud/services/umongodb/client.py +752 -0
  201. ucloud/services/umongodb/schemas/__init__.py +0 -0
  202. ucloud/services/umongodb/schemas/apis.py +567 -0
  203. ucloud/services/umongodb/schemas/models.py +220 -0
  204. ucloud/services/unet/__init__.py +0 -0
  205. ucloud/services/unet/client.py +1278 -0
  206. ucloud/services/unet/schemas/__init__.py +0 -0
  207. ucloud/services/unet/schemas/apis.py +1006 -0
  208. ucloud/services/unet/schemas/models.py +275 -0
  209. ucloud/services/unvs/__init__.py +0 -0
  210. ucloud/services/unvs/client.py +87 -0
  211. ucloud/services/unvs/schemas/__init__.py +0 -0
  212. ucloud/services/unvs/schemas/apis.py +66 -0
  213. ucloud/services/unvs/schemas/models.py +19 -0
  214. ucloud/services/upfs/__init__.py +0 -0
  215. ucloud/services/upfs/client.py +252 -0
  216. ucloud/services/upfs/schemas/__init__.py +0 -0
  217. ucloud/services/upfs/schemas/apis.py +204 -0
  218. ucloud/services/upfs/schemas/models.py +36 -0
  219. ucloud/services/upgsql/__init__.py +0 -0
  220. ucloud/services/upgsql/client.py +1007 -0
  221. ucloud/services/upgsql/schemas/__init__.py +0 -0
  222. ucloud/services/upgsql/schemas/apis.py +827 -0
  223. ucloud/services/upgsql/schemas/models.py +158 -0
  224. ucloud/services/uphone/__init__.py +0 -0
  225. ucloud/services/uphone/client.py +2122 -0
  226. ucloud/services/uphone/schemas/__init__.py +0 -0
  227. ucloud/services/uphone/schemas/apis.py +1799 -0
  228. ucloud/services/uphone/schemas/models.py +357 -0
  229. ucloud/services/uphost/__init__.py +0 -0
  230. ucloud/services/uphost/client.py +847 -0
  231. ucloud/services/uphost/schemas/__init__.py +0 -0
  232. ucloud/services/uphost/schemas/apis.py +689 -0
  233. ucloud/services/uphost/schemas/models.py +175 -0
  234. ucloud/services/urocketmq/__init__.py +0 -0
  235. ucloud/services/urocketmq/client.py +117 -0
  236. ucloud/services/urocketmq/schemas/__init__.py +0 -0
  237. ucloud/services/urocketmq/schemas/apis.py +92 -0
  238. ucloud/services/urocketmq/schemas/models.py +14 -0
  239. ucloud/services/uslk/__init__.py +0 -0
  240. ucloud/services/uslk/client.py +249 -0
  241. ucloud/services/uslk/schemas/__init__.py +0 -0
  242. ucloud/services/uslk/schemas/apis.py +191 -0
  243. ucloud/services/uslk/schemas/models.py +74 -0
  244. ucloud/services/usms/__init__.py +0 -0
  245. ucloud/services/usms/client.py +759 -0
  246. ucloud/services/usms/schemas/__init__.py +0 -0
  247. ucloud/services/usms/schemas/apis.py +653 -0
  248. ucloud/services/usms/schemas/models.py +215 -0
  249. ucloud/services/utsdb/__init__.py +0 -0
  250. ucloud/services/utsdb/client.py +604 -0
  251. ucloud/services/utsdb/schemas/__init__.py +0 -0
  252. ucloud/services/utsdb/schemas/apis.py +515 -0
  253. ucloud/services/utsdb/schemas/models.py +61 -0
  254. ucloud/services/uvms/__init__.py +0 -0
  255. ucloud/services/uvms/client.py +119 -0
  256. ucloud/services/uvms/schemas/__init__.py +0 -0
  257. ucloud/services/uvms/schemas/apis.py +88 -0
  258. ucloud/services/uvms/schemas/models.py +40 -0
  259. ucloud/services/vpc/__init__.py +0 -0
  260. ucloud/services/vpc/client.py +3233 -0
  261. ucloud/services/vpc/schemas/__init__.py +0 -0
  262. ucloud/services/vpc/schemas/apis.py +2529 -0
  263. ucloud/services/vpc/schemas/models.py +651 -0
  264. ucloud/testing/__init__.py +0 -0
  265. ucloud/testing/driver/__init__.py +5 -0
  266. ucloud/testing/driver/_scenario.py +93 -0
  267. ucloud/testing/driver/_specification.py +57 -0
  268. ucloud/testing/driver/_step.py +166 -0
  269. ucloud/testing/env.py +28 -0
  270. ucloud/testing/exc.py +18 -0
  271. ucloud/testing/funcs.py +68 -0
  272. ucloud/testing/mock.py +28 -0
  273. ucloud/testing/op.py +177 -0
  274. ucloud/testing/utest.py +195 -0
  275. ucloud/version.py +1 -0
  276. ucloud_sdk_python3-0.11.81.dist-info/LICENSE +202 -0
  277. ucloud_sdk_python3-0.11.81.dist-info/METADATA +71 -0
  278. ucloud_sdk_python3-0.11.81.dist-info/RECORD +280 -0
  279. ucloud_sdk_python3-0.11.81.dist-info/WHEEL +5 -0
  280. ucloud_sdk_python3-0.11.81.dist-info/top_level.txt +1 -0
@@ -0,0 +1,604 @@
1
+ """ Code is generated by ucloud-model, DO NOT EDIT IT. """
2
+
3
+ import typing
4
+
5
+
6
+ from ucloud.core.client import Client
7
+ from ucloud.services.utsdb.schemas import apis
8
+
9
+
10
+ class UTSDBClient(Client):
11
+ def __init__(
12
+ self, config: dict, transport=None, middleware=None, logger=None
13
+ ):
14
+ super(UTSDBClient, self).__init__(config, transport, middleware, logger)
15
+
16
+ def check_uinfluxdb_allowance(
17
+ self, req: typing.Optional[dict] = None, **kwargs
18
+ ) -> dict:
19
+ """CheckUInfluxdbAllowance - 检查UInfluxdb剩余资源
20
+
21
+ **Request**
22
+
23
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
24
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
25
+ - **Count** (int) - (Required) 创建实例的数量,[1-10]
26
+ - **CpuLimit** (int) - (Required) 核数 单位:个,范围[2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
27
+ - **MemoryLimit** (int) - (Required) 内存限制 单位:G 范围 [2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
28
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
29
+
30
+ **Response**
31
+
32
+ - **Count** (int) - 可创建的数量
33
+
34
+ """
35
+ # build request
36
+ d = {
37
+ "ProjectId": self.config.project_id,
38
+ "Region": self.config.region,
39
+ }
40
+ req and d.update(req)
41
+ d = apis.CheckUInfluxdbAllowanceRequestSchema().dumps(d)
42
+
43
+ resp = self.invoke("CheckUInfluxdbAllowance", d, **kwargs)
44
+ return apis.CheckUInfluxdbAllowanceResponseSchema().loads(resp)
45
+
46
+ def create_uinfluxdb_database(
47
+ self, req: typing.Optional[dict] = None, **kwargs
48
+ ) -> dict:
49
+ """CreateUInfluxdbDatabase - 创建Influxdb数据库
50
+
51
+ **Request**
52
+
53
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
54
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
55
+ - **DatabaseName** (str) - (Required) Influxdb创建的数据库的名称
56
+ - **UInfluxdbId** (str) - (Required) 实例ID
57
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
58
+ - **AccoutName** (str) - Influxdb数据库账号
59
+ - **Description** (str) - Influxdb数据库的描述
60
+ - **RetentionPolicy** (str) - 数据保留策略,以天为单位,比如(1d,2d,3d等,inf为永久保留策略,默认为inf)
61
+
62
+ **Response**
63
+
64
+
65
+ """
66
+ # build request
67
+ d = {
68
+ "ProjectId": self.config.project_id,
69
+ "Region": self.config.region,
70
+ }
71
+ req and d.update(req)
72
+ d = apis.CreateUInfluxdbDatabaseRequestSchema().dumps(d)
73
+
74
+ # build options
75
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
76
+
77
+ resp = self.invoke("CreateUInfluxdbDatabase", d, **kwargs)
78
+ return apis.CreateUInfluxdbDatabaseResponseSchema().loads(resp)
79
+
80
+ def create_uinfluxdb_database_rp(
81
+ self, req: typing.Optional[dict] = None, **kwargs
82
+ ) -> dict:
83
+ """CreateUInfluxdbDatabaseRP - 给指定的database创建一个保留策略,最多可以创建10个RP
84
+
85
+ **Request**
86
+
87
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
88
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
89
+ - **DatabaseName** (str) - (Required) 要创建RP的数据库
90
+ - **RetentionPolicy** (str) - (Required) 数据保留策略,以天为单位,比如(1d,2d,3d等,inf为永久保留策略,默认为inf)
91
+ - **RetentionPolicyName** (str) - (Required) 保留策略名
92
+ - **UInfluxdbId** (str) - (Required) 实例ID
93
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
94
+
95
+ **Response**
96
+
97
+ - **Message** (str) - 如果执行失败, 失败的错误消息
98
+
99
+ """
100
+ # build request
101
+ d = {
102
+ "ProjectId": self.config.project_id,
103
+ "Region": self.config.region,
104
+ }
105
+ req and d.update(req)
106
+ d = apis.CreateUInfluxdbDatabaseRPRequestSchema().dumps(d)
107
+
108
+ # build options
109
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
110
+
111
+ resp = self.invoke("CreateUInfluxdbDatabaseRP", d, **kwargs)
112
+ return apis.CreateUInfluxdbDatabaseRPResponseSchema().loads(resp)
113
+
114
+ def create_uinfluxdb_instance(
115
+ self, req: typing.Optional[dict] = None, **kwargs
116
+ ) -> dict:
117
+ """CreateUInfluxdbInstance - 创建UInfluxdb实例
118
+
119
+ **Request**
120
+
121
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
122
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
123
+ - **AccountName** (str) - (Required) 默认账户
124
+ - **ChargeType** (str) - (Required) 付费类型,后付费阶段固定为:后付费(PostPaid)
125
+ - **CpuLimit** (int) - (Required) 核数 单位:个,范围[2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
126
+ - **DatabaseName** (str) - (Required) 数据库名称
127
+ - **MemoryLimit** (int) - (Required) 内存限制 单位:G 范围 [2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
128
+ - **Name** (str) - (Required) 实例名称,长度(6<=size<=63)
129
+ - **Password** (str) - (Required) 默认账户的密码,需要 base64 编码
130
+ - **Quantity** (int) - (Required) 购买时长,默认值1
131
+ - **SubnetId** (str) - (Required) 子网 id
132
+ - **VPCId** (str) - (Required) VPC id
133
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
134
+ - **CouponId** (str) - 使用的代金券id
135
+ - **Tag** (str) - 业务组名称
136
+
137
+ **Response**
138
+
139
+ - **UInfluxdbId** (str) - 返回的实例id
140
+
141
+ """
142
+ # build request
143
+ d = {
144
+ "ProjectId": self.config.project_id,
145
+ "Region": self.config.region,
146
+ }
147
+ req and d.update(req)
148
+ d = apis.CreateUInfluxdbInstanceRequestSchema().dumps(d)
149
+
150
+ # build options
151
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
152
+
153
+ resp = self.invoke("CreateUInfluxdbInstance", d, **kwargs)
154
+ return apis.CreateUInfluxdbInstanceResponseSchema().loads(resp)
155
+
156
+ def delete_uinfluxdb_database(
157
+ self, req: typing.Optional[dict] = None, **kwargs
158
+ ) -> dict:
159
+ """DeleteUInfluxdbDatabase - 删除Influxdb实例的数据库
160
+
161
+ **Request**
162
+
163
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
164
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
165
+ - **DatabaseName** (str) - (Required) 数据库名称
166
+ - **UInfluxdbId** (str) - (Required) 实例id
167
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
168
+
169
+ **Response**
170
+
171
+
172
+ """
173
+ # build request
174
+ d = {
175
+ "ProjectId": self.config.project_id,
176
+ "Region": self.config.region,
177
+ }
178
+ req and d.update(req)
179
+ d = apis.DeleteUInfluxdbDatabaseRequestSchema().dumps(d)
180
+
181
+ resp = self.invoke("DeleteUInfluxdbDatabase", d, **kwargs)
182
+ return apis.DeleteUInfluxdbDatabaseResponseSchema().loads(resp)
183
+
184
+ def delete_uinfluxdb_database_rp(
185
+ self, req: typing.Optional[dict] = None, **kwargs
186
+ ) -> dict:
187
+ """DeleteUInfluxdbDatabaseRP - 删除指定数据库下面的一个数据保留策略
188
+
189
+ **Request**
190
+
191
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
192
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
193
+ - **DatabaseName** (str) - (Required) 要删除的RP所在数据库
194
+ - **RetentionPolicyName** (str) - (Required) 要删除的保留策略
195
+ - **UInfluxdbId** (str) - (Required) 实例ID
196
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
197
+
198
+ **Response**
199
+
200
+ - **Message** (str) - 如果执行失败, 失败的错误消息
201
+
202
+ """
203
+ # build request
204
+ d = {
205
+ "ProjectId": self.config.project_id,
206
+ "Region": self.config.region,
207
+ }
208
+ req and d.update(req)
209
+ d = apis.DeleteUInfluxdbDatabaseRPRequestSchema().dumps(d)
210
+
211
+ resp = self.invoke("DeleteUInfluxdbDatabaseRP", d, **kwargs)
212
+ return apis.DeleteUInfluxdbDatabaseRPResponseSchema().loads(resp)
213
+
214
+ def delete_uinfluxdb_instance(
215
+ self, req: typing.Optional[dict] = None, **kwargs
216
+ ) -> dict:
217
+ """DeleteUInfluxdbInstance - 删除UInfluxdb实例
218
+
219
+ **Request**
220
+
221
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
222
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
223
+ - **UInfluxdbId** (str) - (Required) UInfluxdb 实例id
224
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
225
+
226
+ **Response**
227
+
228
+
229
+ """
230
+ # build request
231
+ d = {
232
+ "ProjectId": self.config.project_id,
233
+ "Region": self.config.region,
234
+ }
235
+ req and d.update(req)
236
+ d = apis.DeleteUInfluxdbInstanceRequestSchema().dumps(d)
237
+
238
+ resp = self.invoke("DeleteUInfluxdbInstance", d, **kwargs)
239
+ return apis.DeleteUInfluxdbInstanceResponseSchema().loads(resp)
240
+
241
+ def describe_uinfluxdb_database(
242
+ self, req: typing.Optional[dict] = None, **kwargs
243
+ ) -> dict:
244
+ """DescribeUInfluxdbDatabase - 描述UInfluxdb数据库
245
+
246
+ **Request**
247
+
248
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
249
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
250
+ - **UInfluxdbId** (str) - (Required)
251
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
252
+ - **DatabaseName** (str) -
253
+ - **Limit** (int) -
254
+ - **Offset** (int) -
255
+
256
+ **Response**
257
+
258
+ - **DatabaseInfo** (list) - 见 **DatabaseInfo** 模型定义
259
+
260
+ **Response Model**
261
+
262
+ **AccountInfo**
263
+ - **Account** (str) - 账户名
264
+ - **Password** (str) - 密码
265
+ - **Privilege** (str) - 权限
266
+
267
+
268
+ **DatabaseInfo**
269
+ - **AccountInfo** (list) - 见 **AccountInfo** 模型定义
270
+ - **DatabaseName** (str) - 数据库名
271
+ - **Description** (str) - 数据库描述
272
+ - **RetentionPolicy** (str) - 保留策略
273
+ - **State** (str) - 数据库状态
274
+
275
+
276
+ """
277
+ # build request
278
+ d = {
279
+ "ProjectId": self.config.project_id,
280
+ "Region": self.config.region,
281
+ }
282
+ req and d.update(req)
283
+ d = apis.DescribeUInfluxdbDatabaseRequestSchema().dumps(d)
284
+
285
+ resp = self.invoke("DescribeUInfluxdbDatabase", d, **kwargs)
286
+ return apis.DescribeUInfluxdbDatabaseResponseSchema().loads(resp)
287
+
288
+ def describe_uinfluxdb_database_rp(
289
+ self, req: typing.Optional[dict] = None, **kwargs
290
+ ) -> dict:
291
+ """DescribeUInfluxdbDatabaseRP - 获取指定数据库下面的所有保留策略
292
+
293
+ **Request**
294
+
295
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
296
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
297
+ - **DatabaseName** (str) - (Required) 数据库名称
298
+ - **UInfluxdbId** (str) - (Required) 实例ID
299
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
300
+
301
+ **Response**
302
+
303
+ - **DataSet** (list) - 见 **RpData** 模型定义
304
+ - **Message** (str) - 如果执行失败, 失败的错误消息
305
+
306
+ **Response Model**
307
+
308
+ **RpData**
309
+ - **Policy** (str) - 保留策略
310
+ - **RetentionPolicyName** (str) - 保留策略名
311
+
312
+
313
+ """
314
+ # build request
315
+ d = {
316
+ "ProjectId": self.config.project_id,
317
+ "Region": self.config.region,
318
+ }
319
+ req and d.update(req)
320
+ d = apis.DescribeUInfluxdbDatabaseRPRequestSchema().dumps(d)
321
+
322
+ resp = self.invoke("DescribeUInfluxdbDatabaseRP", d, **kwargs)
323
+ return apis.DescribeUInfluxdbDatabaseRPResponseSchema().loads(resp)
324
+
325
+ def describe_uinfluxdb_instance(
326
+ self, req: typing.Optional[dict] = None, **kwargs
327
+ ) -> dict:
328
+ """DescribeUInfluxdbInstance - 拉取UInfluxdb实例列表
329
+
330
+ **Request**
331
+
332
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
333
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
334
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
335
+ - **Limit** (int) - 分页显示数量,列表操作则指定
336
+ - **Offset** (int) - 分页显示起始偏移位置,列表操作则指定
337
+ - **UInfluxdbId** (str) - 指定id的话,会拉取该实例信息,否则拉取该帐号所有信息
338
+
339
+ **Response**
340
+
341
+ - **DataSet** (list) - 见 **UInfluxdbDataSet** 模型定义
342
+
343
+ **Response Model**
344
+
345
+ **UInfluxdbDataSet**
346
+ - **AccountName** (str) - 账户名
347
+ - **CPULimit** (int) - 实例核数
348
+ - **ChargeType** (str) - 付费类型,可选值如下: Year: 按年付费 Month: 按月付费 Dynamic: 按需付费(单位: 小时) Trial: 免费试用
349
+ - **CreateTime** (int) - 创建时间
350
+ - **ExpiredTime** (int) - 修改时间
351
+ - **MemoryLimit** (int) - 实例内存
352
+ - **Name** (str) - 实例名称
353
+ - **Port** (int) - 实例端口
354
+ - **State** (str) - 实例状态
355
+ - **SubnetId** (str) - 子网ID
356
+ - **Tag** (str) - 业务组信息
357
+ - **UInfluxdbId** (str) - 实例id
358
+ - **UsedSize** (int) - 硬盘使用量
359
+ - **VPCId** (str) - VPC的ID
360
+ - **VirtualIP** (str) - 实例ip
361
+ - **Zone** (str) - UInfluxdb实例所在可用区
362
+
363
+
364
+ """
365
+ # build request
366
+ d = {
367
+ "ProjectId": self.config.project_id,
368
+ "Region": self.config.region,
369
+ }
370
+ req and d.update(req)
371
+ d = apis.DescribeUInfluxdbInstanceRequestSchema().dumps(d)
372
+
373
+ resp = self.invoke("DescribeUInfluxdbInstance", d, **kwargs)
374
+ return apis.DescribeUInfluxdbInstanceResponseSchema().loads(resp)
375
+
376
+ def describe_uinfluxdb_price(
377
+ self, req: typing.Optional[dict] = None, **kwargs
378
+ ) -> dict:
379
+ """DescribeUInfluxdbPrice - 获取UInfluxdb价格
380
+
381
+ **Request**
382
+
383
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
384
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
385
+ - **CpuLimit** (int) - (Required) 核数 单位:个,规格[2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
386
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
387
+ - **ChargeType** (str) - 付费类型,后付费。填:PostPaid (后付费)
388
+ - **MemoryLimit** (int) - 内存限制 单位:G 规格 [2C8G, 4C16G, 8C32G, 16C64G, 32C128G]
389
+ - **Quantity** (int) - 付费周期数量
390
+
391
+ **Response**
392
+
393
+ - **OriginalPrice** (float) - 原价
394
+ - **Price** (float) - 价格
395
+
396
+ """
397
+ # build request
398
+ d = {
399
+ "ProjectId": self.config.project_id,
400
+ "Region": self.config.region,
401
+ }
402
+ req and d.update(req)
403
+ d = apis.DescribeUInfluxdbPriceRequestSchema().dumps(d)
404
+
405
+ resp = self.invoke("DescribeUInfluxdbPrice", d, **kwargs)
406
+ return apis.DescribeUInfluxdbPriceResponseSchema().loads(resp)
407
+
408
+ def describe_uinfluxdb_upgrade_price(
409
+ self, req: typing.Optional[dict] = None, **kwargs
410
+ ) -> dict:
411
+ """DescribeUInfluxdbUpgradePrice - 获取UIfluxdb升降级价格
412
+
413
+ **Request**
414
+
415
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
416
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
417
+ - **CpuLimit** (int) - (Required) 核数
418
+ - **MemoryLimit** (int) - (Required) 容量,单位GB
419
+ - **UInfluxdbId** (str) - (Required) UInfluxdb 实例id
420
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
421
+
422
+ **Response**
423
+
424
+ - **OriginalPrice** (float) - 原价
425
+ - **TotalPrice** (float) - 升降级价格
426
+
427
+ """
428
+ # build request
429
+ d = {
430
+ "ProjectId": self.config.project_id,
431
+ "Region": self.config.region,
432
+ }
433
+ req and d.update(req)
434
+ d = apis.DescribeUInfluxdbUpgradePriceRequestSchema().dumps(d)
435
+
436
+ resp = self.invoke("DescribeUInfluxdbUpgradePrice", d, **kwargs)
437
+ return apis.DescribeUInfluxdbUpgradePriceResponseSchema().loads(resp)
438
+
439
+ def modify_uinfluxdb_database_policy(
440
+ self, req: typing.Optional[dict] = None, **kwargs
441
+ ) -> dict:
442
+ """ModifyUInfluxdbDatabasePolicy - 更改UInfluxdb实例数据库数据保留策略
443
+
444
+ **Request**
445
+
446
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
447
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
448
+ - **DatabaseName** (str) - (Required) 数据库名
449
+ - **RetentionPolicy** (str) - (Required) 数据库数据保留策略。自定义格式如:10d(即10天),2w(即两周),
450
+ - **UInfluxdbId** (str) - (Required) Influxdb实例id
451
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
452
+
453
+ **Response**
454
+
455
+
456
+ """
457
+ # build request
458
+ d = {
459
+ "ProjectId": self.config.project_id,
460
+ "Region": self.config.region,
461
+ }
462
+ req and d.update(req)
463
+ d = apis.ModifyUInfluxdbDatabasePolicyRequestSchema().dumps(d)
464
+
465
+ resp = self.invoke("ModifyUInfluxdbDatabasePolicy", d, **kwargs)
466
+ return apis.ModifyUInfluxdbDatabasePolicyResponseSchema().loads(resp)
467
+
468
+ def reboot_uinfluxdb_instance(
469
+ self, req: typing.Optional[dict] = None, **kwargs
470
+ ) -> dict:
471
+ """RebootUInfluxdbInstance - 重启UInfluxdb实例
472
+
473
+ **Request**
474
+
475
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
476
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
477
+ - **UInfluxdbId** (str) - (Required) UInfluxdb实例id
478
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
479
+
480
+ **Response**
481
+
482
+
483
+ """
484
+ # build request
485
+ d = {
486
+ "ProjectId": self.config.project_id,
487
+ "Region": self.config.region,
488
+ }
489
+ req and d.update(req)
490
+ d = apis.RebootUInfluxdbInstanceRequestSchema().dumps(d)
491
+
492
+ resp = self.invoke("RebootUInfluxdbInstance", d, **kwargs)
493
+ return apis.RebootUInfluxdbInstanceResponseSchema().loads(resp)
494
+
495
+ def reset_uinfluxdb_instance_name(
496
+ self, req: typing.Optional[dict] = None, **kwargs
497
+ ) -> dict:
498
+ """ResetUInfluxdbInstanceName - 更改UIfluxdb实例名称
499
+
500
+ **Request**
501
+
502
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
503
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
504
+ - **NewName** (str) - (Required) 实例的新名字, 长度要求为6~63位
505
+ - **UInfluxdbId** (str) - (Required) UInfluxdb实例id
506
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
507
+
508
+ **Response**
509
+
510
+
511
+ """
512
+ # build request
513
+ d = {
514
+ "ProjectId": self.config.project_id,
515
+ "Region": self.config.region,
516
+ }
517
+ req and d.update(req)
518
+ d = apis.ResetUInfluxdbInstanceNameRequestSchema().dumps(d)
519
+
520
+ resp = self.invoke("ResetUInfluxdbInstanceName", d, **kwargs)
521
+ return apis.ResetUInfluxdbInstanceNameResponseSchema().loads(resp)
522
+
523
+ def start_uinfluxdb_instance(
524
+ self, req: typing.Optional[dict] = None, **kwargs
525
+ ) -> dict:
526
+ """StartUInfluxdbInstance - 启动UInfluxdb实例
527
+
528
+ **Request**
529
+
530
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
531
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
532
+ - **UInfluxdbId** (str) - (Required) UInfluxdb实例id
533
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
534
+
535
+ **Response**
536
+
537
+
538
+ """
539
+ # build request
540
+ d = {
541
+ "ProjectId": self.config.project_id,
542
+ "Region": self.config.region,
543
+ }
544
+ req and d.update(req)
545
+ d = apis.StartUInfluxdbInstanceRequestSchema().dumps(d)
546
+
547
+ resp = self.invoke("StartUInfluxdbInstance", d, **kwargs)
548
+ return apis.StartUInfluxdbInstanceResponseSchema().loads(resp)
549
+
550
+ def stop_uinfluxdb_instance(
551
+ self, req: typing.Optional[dict] = None, **kwargs
552
+ ) -> dict:
553
+ """StopUInfluxdbInstance - 关闭UInfluxdb实例
554
+
555
+ **Request**
556
+
557
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
558
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
559
+ - **UInfluxdbId** (str) - (Required) UInfluxdb实例id
560
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
561
+
562
+ **Response**
563
+
564
+
565
+ """
566
+ # build request
567
+ d = {
568
+ "ProjectId": self.config.project_id,
569
+ "Region": self.config.region,
570
+ }
571
+ req and d.update(req)
572
+ d = apis.StopUInfluxdbInstanceRequestSchema().dumps(d)
573
+
574
+ resp = self.invoke("StopUInfluxdbInstance", d, **kwargs)
575
+ return apis.StopUInfluxdbInstanceResponseSchema().loads(resp)
576
+
577
+ def upgrade_uinfluxdb_instance(
578
+ self, req: typing.Optional[dict] = None, **kwargs
579
+ ) -> dict:
580
+ """UpgradeUInfluxdbInstance - UInfluxdb实例配置升降级
581
+
582
+ **Request**
583
+
584
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
585
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
586
+ - **CpuLimit** (int) - (Required) UInfluxdb 实例 新的核数,单位个
587
+ - **MemoryLimit** (int) - (Required) UInfluxdb 实例 新的内存
588
+ - **UInfluxdbId** (str) - (Required) 实例ID
589
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
590
+
591
+ **Response**
592
+
593
+
594
+ """
595
+ # build request
596
+ d = {
597
+ "ProjectId": self.config.project_id,
598
+ "Region": self.config.region,
599
+ }
600
+ req and d.update(req)
601
+ d = apis.UpgradeUInfluxdbInstanceRequestSchema().dumps(d)
602
+
603
+ resp = self.invoke("UpgradeUInfluxdbInstance", d, **kwargs)
604
+ return apis.UpgradeUInfluxdbInstanceResponseSchema().loads(resp)
File without changes