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,100 @@
1
+ """ Code is generated by ucloud-model, DO NOT EDIT IT. """
2
+
3
+ from ucloud.core.typesystem import schema, fields
4
+
5
+
6
+ class RecycleUDiskSetSchema(schema.ResponseSchema):
7
+ """RecycleUDiskSet - 回收站列表"""
8
+
9
+ fields = {
10
+ "CountdownTime": fields.Int(required=True, load_from="CountdownTime"),
11
+ "CreateTime": fields.Int(required=True, load_from="CreateTime"),
12
+ "ExpiredTime": fields.Int(required=True, load_from="ExpiredTime"),
13
+ "Name": fields.Str(required=True, load_from="Name"),
14
+ "Size": fields.Int(required=True, load_from="Size"),
15
+ "Tag": fields.Str(required=False, load_from="Tag"),
16
+ "UDiskId": fields.Str(required=True, load_from="UDiskId"),
17
+ "Zone": fields.Str(required=True, load_from="Zone"),
18
+ }
19
+
20
+
21
+ class UDiskDataSetSchema(schema.ResponseSchema):
22
+ """UDiskDataSet - DescribeUDisk"""
23
+
24
+ fields = {
25
+ "ArkSwitchEnable": fields.Int(
26
+ required=False, load_from="ArkSwitchEnable"
27
+ ),
28
+ "BackupMode": fields.Str(required=False, load_from="BackupMode"),
29
+ "ChargeType": fields.Str(required=False, load_from="ChargeType"),
30
+ "CloneEnable": fields.Int(required=False, load_from="CloneEnable"),
31
+ "CmkId": fields.Str(required=False, load_from="CmkId"),
32
+ "CmkIdAlias": fields.Str(required=False, load_from="CmkIdAlias"),
33
+ "CmkIdStatus": fields.Str(required=False, load_from="CmkIdStatus"),
34
+ "CreateTime": fields.Int(required=False, load_from="CreateTime"),
35
+ "DataKey": fields.Str(required=False, load_from="DataKey"),
36
+ "DeviceName": fields.Str(required=False, load_from="DeviceName"),
37
+ "DiskType": fields.Str(required=False, load_from="DiskType"),
38
+ "ExpiredTime": fields.Int(required=False, load_from="ExpiredTime"),
39
+ "HostIP": fields.Str(required=False, load_from="HostIP"),
40
+ "HostId": fields.Str(required=False, load_from="HostId"),
41
+ "HostName": fields.Str(required=False, load_from="HostName"),
42
+ "IsBoot": fields.Str(required=False, load_from="IsBoot"),
43
+ "IsExpire": fields.Str(required=False, load_from="IsExpire"),
44
+ "Name": fields.Str(required=False, load_from="Name"),
45
+ "RdmaClusterId": fields.Str(required=False, load_from="RdmaClusterId"),
46
+ "Size": fields.Int(required=False, load_from="Size"),
47
+ "SnapEnable": fields.Int(required=False, load_from="SnapEnable"),
48
+ "SnapshotCount": fields.Int(required=False, load_from="SnapshotCount"),
49
+ "SnapshotLimit": fields.Int(required=False, load_from="SnapshotLimit"),
50
+ "Status": fields.Str(required=False, load_from="Status"),
51
+ "Tag": fields.Str(required=False, load_from="Tag"),
52
+ "UDataArkMode": fields.Str(required=False, load_from="UDataArkMode"),
53
+ "UDiskId": fields.Str(required=False, load_from="UDiskId"),
54
+ "UHostIP": fields.Str(required=False, load_from="UHostIP"),
55
+ "UHostId": fields.Str(required=False, load_from="UHostId"),
56
+ "UHostName": fields.Str(required=False, load_from="UHostName"),
57
+ "UKmsMode": fields.Str(required=False, load_from="UKmsMode"),
58
+ "Version": fields.Str(required=False, load_from="Version"),
59
+ "Zone": fields.Str(required=False, load_from="Zone"),
60
+ }
61
+
62
+
63
+ class UDiskPriceDataSetSchema(schema.ResponseSchema):
64
+ """UDiskPriceDataSet - DescribeUDiskPrice"""
65
+
66
+ fields = {
67
+ "ChargeName": fields.Str(required=False, load_from="ChargeName"),
68
+ "ChargeType": fields.Str(required=False, load_from="ChargeType"),
69
+ "ListPrice": fields.Int(required=False, load_from="ListPrice"),
70
+ "OriginalPrice": fields.Int(required=False, load_from="OriginalPrice"),
71
+ "Price": fields.Int(required=False, load_from="Price"),
72
+ }
73
+
74
+
75
+ class UDiskSnapshotSetSchema(schema.ResponseSchema):
76
+ """UDiskSnapshotSet - DescribeUDiskSnapshot"""
77
+
78
+ fields = {
79
+ "CmkId": fields.Str(required=False, load_from="CmkId"),
80
+ "CmkIdAlias": fields.Str(required=False, load_from="CmkIdAlias"),
81
+ "CmkIdStatus": fields.Str(required=False, load_from="CmkIdStatus"),
82
+ "Comment": fields.Str(required=False, load_from="Comment"),
83
+ "CreateTime": fields.Int(required=True, load_from="CreateTime"),
84
+ "DataKey": fields.Str(required=False, load_from="DataKey"),
85
+ "DiskType": fields.Int(required=True, load_from="DiskType"),
86
+ "ExpiredTime": fields.Int(required=False, load_from="ExpiredTime"),
87
+ "IsUDiskAvailable": fields.Bool(
88
+ required=False, load_from="IsUDiskAvailable"
89
+ ),
90
+ "Name": fields.Str(required=True, load_from="Name"),
91
+ "Size": fields.Int(required=True, load_from="Size"),
92
+ "SnapshotId": fields.Str(required=True, load_from="SnapshotId"),
93
+ "Status": fields.Str(required=True, load_from="Status"),
94
+ "UDiskId": fields.Str(required=True, load_from="UDiskId"),
95
+ "UDiskName": fields.Str(required=True, load_from="UDiskName"),
96
+ "UHostId": fields.Str(required=False, load_from="UHostId"),
97
+ "UKmsMode": fields.Str(required=False, load_from="UKmsMode"),
98
+ "Version": fields.Str(required=False, load_from="Version"),
99
+ "Zone": fields.Str(required=True, load_from="Zone"),
100
+ }
File without changes
@@ -0,0 +1,380 @@
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.udns.schemas import apis
8
+
9
+
10
+ class UDNSClient(Client):
11
+ def __init__(
12
+ self, config: dict, transport=None, middleware=None, logger=None
13
+ ):
14
+ super(UDNSClient, self).__init__(config, transport, middleware, logger)
15
+
16
+ def associate_udns_zone_vpc(
17
+ self, req: typing.Optional[dict] = None, **kwargs
18
+ ) -> dict:
19
+ """AssociateUDNSZoneVPC - 绑定域名与VPC
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
+ - **DNSZoneId** (str) - (Required) 域名资源ID
26
+ - **VPCId** (str) - (Required) VPC资源ID
27
+ - **VPCProjectId** (str) - (Required) VPC所属项目ID
28
+
29
+ **Response**
30
+
31
+
32
+ """
33
+ # build request
34
+ d = {
35
+ "ProjectId": self.config.project_id,
36
+ "Region": self.config.region,
37
+ }
38
+ req and d.update(req)
39
+ d = apis.AssociateUDNSZoneVPCRequestSchema().dumps(d)
40
+
41
+ resp = self.invoke("AssociateUDNSZoneVPC", d, **kwargs)
42
+ return apis.AssociateUDNSZoneVPCResponseSchema().loads(resp)
43
+
44
+ def create_udns_record(
45
+ self, req: typing.Optional[dict] = None, **kwargs
46
+ ) -> dict:
47
+ """CreateUDNSRecord - 创建域名记录
48
+
49
+ **Request**
50
+
51
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
52
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
53
+ - **DNSZoneId** (str) - (Required) 域名资源ID
54
+ - **Name** (str) - (Required) 主机记录
55
+ - **Type** (str) - (Required) 记录类型。枚举值,“A”,"CNAME","MX","AAAA","SRV","PTR","TXT"。
56
+ - **Value** (str) - (Required) 数值组,支持逗号分割。格式为:Value|权重|IsEnabled,其中权重支持1-10,IsEnabled为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。
57
+ - **ValueType** (str) - (Required) 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。
58
+ - **Remark** (str) - 记录的备注信息
59
+ - **TTL** (int) - TTL值,范围为5-600,单位为秒。默认为5
60
+
61
+ **Response**
62
+
63
+ - **DNSRecordId** (str) - 域名记录的资源ID
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.CreateUDNSRecordRequestSchema().dumps(d)
73
+
74
+ # build options
75
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
76
+
77
+ resp = self.invoke("CreateUDNSRecord", d, **kwargs)
78
+ return apis.CreateUDNSRecordResponseSchema().loads(resp)
79
+
80
+ def create_udns_zone(
81
+ self, req: typing.Optional[dict] = None, **kwargs
82
+ ) -> dict:
83
+ """CreateUDNSZone - 创建域名
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
+ - **DNSZoneName** (str) - (Required) 域名字符串
90
+ - **Type** (str) - (Required) 域名类型。枚举值,“private”,内网DNS;“public”,公网DNS,暂只支持private。
91
+ - **ChargeType** (str) - 付费方式, 枚举值为: Year, 按年付费; Month, 按月付费; Dynamic, 按需付费,默认为按月付费
92
+ - **CouponId** (str) - 代金券ID,默认不使用
93
+ - **IsRecursionEnabled** (str) - 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
94
+ - **Quantity** (int) - 购买时长,默认为1
95
+ - **Remark** (str) - 备注
96
+ - **Tag** (str) - 所属业务组名称
97
+
98
+ **Response**
99
+
100
+ - **DNSZoneId** (str) - 域名资源ID
101
+
102
+ """
103
+ # build request
104
+ d = {
105
+ "ProjectId": self.config.project_id,
106
+ "Region": self.config.region,
107
+ }
108
+ req and d.update(req)
109
+ d = apis.CreateUDNSZoneRequestSchema().dumps(d)
110
+
111
+ # build options
112
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
113
+
114
+ resp = self.invoke("CreateUDNSZone", d, **kwargs)
115
+ return apis.CreateUDNSZoneResponseSchema().loads(resp)
116
+
117
+ def delete_udns_record(
118
+ self, req: typing.Optional[dict] = None, **kwargs
119
+ ) -> dict:
120
+ """DeleteUDNSRecord - 删除域名记录
121
+
122
+ **Request**
123
+
124
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
125
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
126
+ - **DNSZoneId** (str) - (Required) 域名资源ID
127
+ - **RecordIds** (list) - (Required) 域名记录资源ID
128
+
129
+ **Response**
130
+
131
+
132
+ """
133
+ # build request
134
+ d = {
135
+ "ProjectId": self.config.project_id,
136
+ "Region": self.config.region,
137
+ }
138
+ req and d.update(req)
139
+ d = apis.DeleteUDNSRecordRequestSchema().dumps(d)
140
+
141
+ resp = self.invoke("DeleteUDNSRecord", d, **kwargs)
142
+ return apis.DeleteUDNSRecordResponseSchema().loads(resp)
143
+
144
+ def describe_udns_domain(
145
+ self, req: typing.Optional[dict] = None, **kwargs
146
+ ) -> dict:
147
+ """DescribeUDNSDomain - zone下所有域名的rr记录
148
+
149
+ **Request**
150
+
151
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
152
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
153
+ - **DNSZoneName** (str) - (Required) zone名称
154
+ - **VPCId** (str) - (Required) VPI资源ID
155
+ - **Limit** (int) - 返回数量
156
+ - **Offset** (int) - 查询数量偏移
157
+
158
+ **Response**
159
+
160
+ - **RecordInfos** (list) - 见 **RecordInfo** 模型定义
161
+ - **TotalCount** (int) - 总条数
162
+
163
+ **Response Model**
164
+
165
+ **ValueSet**
166
+ - **Data** (str) - 主机记录
167
+ - **IsEnabled** (int) - 是否启用
168
+ - **Weight** (int) - 权重
169
+
170
+
171
+ **RecordInfo**
172
+ - **Name** (str) - 主机记录
173
+ - **RecordId** (str) - 域名记录资源ID
174
+ - **Remark** (str) - 记录备注信息
175
+ - **TTL** (int) - TTL值,单位为秒
176
+ - **Type** (str) - 记录类型
177
+ - **ValueSet** (list) - 见 **ValueSet** 模型定义
178
+ - **ValueType** (str) - 记录策略,标准或随机应答
179
+
180
+
181
+ """
182
+ # build request
183
+ d = {
184
+ "ProjectId": self.config.project_id,
185
+ "Region": self.config.region,
186
+ }
187
+ req and d.update(req)
188
+ d = apis.DescribeUDNSDomainRequestSchema().dumps(d)
189
+
190
+ resp = self.invoke("DescribeUDNSDomain", d, **kwargs)
191
+ return apis.DescribeUDNSDomainResponseSchema().loads(resp)
192
+
193
+ def describe_udns_record(
194
+ self, req: typing.Optional[dict] = None, **kwargs
195
+ ) -> dict:
196
+ """DescribeUDNSRecord - 获取域名记录
197
+
198
+ **Request**
199
+
200
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
201
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
202
+ - **DNSZoneId** (str) - (Required) 域名资源ID
203
+ - **Limit** (int) - 数据分页值, 默认为20
204
+ - **Offset** (int) - 数据偏移量, 默认为0
205
+ - **RecordIds** (list) - 域名记录资源ID
206
+
207
+ **Response**
208
+
209
+ - **RecordInfos** (list) - 见 **RecordInfo** 模型定义
210
+ - **TotalCount** (int) - 资源数量
211
+
212
+ **Response Model**
213
+
214
+ **ValueSet**
215
+ - **Data** (str) - 主机记录
216
+ - **IsEnabled** (int) - 是否启用
217
+ - **Weight** (int) - 权重
218
+
219
+
220
+ **RecordInfo**
221
+ - **Name** (str) - 主机记录
222
+ - **RecordId** (str) - 域名记录资源ID
223
+ - **Remark** (str) - 记录备注信息
224
+ - **TTL** (int) - TTL值,单位为秒
225
+ - **Type** (str) - 记录类型
226
+ - **ValueSet** (list) - 见 **ValueSet** 模型定义
227
+ - **ValueType** (str) - 记录策略,标准或随机应答
228
+
229
+
230
+ """
231
+ # build request
232
+ d = {
233
+ "ProjectId": self.config.project_id,
234
+ "Region": self.config.region,
235
+ }
236
+ req and d.update(req)
237
+ d = apis.DescribeUDNSRecordRequestSchema().dumps(d)
238
+
239
+ resp = self.invoke("DescribeUDNSRecord", d, **kwargs)
240
+ return apis.DescribeUDNSRecordResponseSchema().loads(resp)
241
+
242
+ def describe_udns_zone(
243
+ self, req: typing.Optional[dict] = None, **kwargs
244
+ ) -> dict:
245
+ """DescribeUDNSZone - 获取域名信息
246
+
247
+ **Request**
248
+
249
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
250
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
251
+ - **DNSZoneIds** (list) - 域名资源ID
252
+ - **Limit** (int) - 数据分页值, 默认为20
253
+ - **Offset** (int) - 数据偏移量, 默认为0
254
+
255
+ **Response**
256
+
257
+ - **DNSZoneInfos** (list) - 见 **ZoneInfo** 模型定义
258
+ - **TotalCount** (int) - 符合查询条件的域名数量
259
+
260
+ **Response Model**
261
+
262
+ **VPCInfo**
263
+ - **Name** (str) - VPC名称
264
+ - **Network** (list) - VPC地址空间
265
+ - **VPCId** (str) - VPC ID
266
+ - **VPCProjectId** (str) - VPC所属项目ID
267
+ - **VPCType** (str) - VPC类型:Normal 公有云 Hybrid 托管云
268
+
269
+
270
+ **ZoneInfo**
271
+ - **ChargeType** (str) - 计费类型(Dynamic、Month、Year)
272
+ - **CreateTime** (int) - 创建时间
273
+ - **DNSZoneName** (str) - 域名名称
274
+ - **ExpireTime** (int) - 过期时间
275
+ - **IsAutoRenew** (str) - 是否开启自动续费(Yes No)
276
+ - **IsRecursionEnabled** (str) - 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
277
+ - **RecordInfos** (list) - 记录相关ID
278
+ - **Remark** (str) - 备注
279
+ - **Tag** (str) - 业务组
280
+ - **VPCInfos** (list) - 见 **VPCInfo** 模型定义
281
+
282
+
283
+ """
284
+ # build request
285
+ d = {
286
+ "ProjectId": self.config.project_id,
287
+ "Region": self.config.region,
288
+ }
289
+ req and d.update(req)
290
+ d = apis.DescribeUDNSZoneRequestSchema().dumps(d)
291
+
292
+ resp = self.invoke("DescribeUDNSZone", d, **kwargs)
293
+ return apis.DescribeUDNSZoneResponseSchema().loads(resp)
294
+
295
+ def disassociate_udns_zone_vpc(
296
+ self, req: typing.Optional[dict] = None, **kwargs
297
+ ) -> dict:
298
+ """DisassociateUDNSZoneVPC - 解绑域名和VPC
299
+
300
+ **Request**
301
+
302
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
303
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
304
+ - **DNSZoneId** (str) - (Required) 域名资源ID
305
+ - **VPCId** (str) - (Required) VPC资源ID
306
+ - **VPCProjectId** (str) - (Required) VPC所属项目ID
307
+
308
+ **Response**
309
+
310
+
311
+ """
312
+ # build request
313
+ d = {
314
+ "ProjectId": self.config.project_id,
315
+ "Region": self.config.region,
316
+ }
317
+ req and d.update(req)
318
+ d = apis.DisassociateUDNSZoneVPCRequestSchema().dumps(d)
319
+
320
+ resp = self.invoke("DisassociateUDNSZoneVPC", d, **kwargs)
321
+ return apis.DisassociateUDNSZoneVPCResponseSchema().loads(resp)
322
+
323
+ def modify_udns_record(
324
+ self, req: typing.Optional[dict] = None, **kwargs
325
+ ) -> dict:
326
+ """ModifyUDNSRecord - 修改域名记录
327
+
328
+ **Request**
329
+
330
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
331
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
332
+ - **DNSZoneId** (str) - (Required) 域名资源ID
333
+ - **RecordId** (str) - (Required) 域名记录资源ID
334
+ - **Remark** (str) - 记录的备注信息
335
+ - **TTL** (int) - TTL值,单位为秒
336
+ - **Value** (str) - 数值组,支持逗号分割。格式为:Value|权重|Enable,其中权重支持1-10,Enable为枚举值(1为启用,0为禁用)。输入格式示例:192.168.1.1|1|1,192.168.1.2|10|0。
337
+ - **ValueType** (str) - 值类型。枚举值,“Normal”,标准;“Multivalue”,多值返回。仅在值为“Multivalue”时,Value的权重生效。
338
+
339
+ **Response**
340
+
341
+
342
+ """
343
+ # build request
344
+ d = {
345
+ "ProjectId": self.config.project_id,
346
+ "Region": self.config.region,
347
+ }
348
+ req and d.update(req)
349
+ d = apis.ModifyUDNSRecordRequestSchema().dumps(d)
350
+
351
+ resp = self.invoke("ModifyUDNSRecord", d, **kwargs)
352
+ return apis.ModifyUDNSRecordResponseSchema().loads(resp)
353
+
354
+ def modify_udns_zone(
355
+ self, req: typing.Optional[dict] = None, **kwargs
356
+ ) -> dict:
357
+ """ModifyUDNSZone - 修改域名备注/递归查询状态
358
+
359
+ **Request**
360
+
361
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
362
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
363
+ - **DNSZoneId** (str) - (Required) 域名资源ID
364
+ - **IsRecursionEnabled** (str) - 是否支持迭代。枚举值,"enable",支持迭代; "disable",不支持迭代
365
+ - **Remark** (str) - 备注
366
+
367
+ **Response**
368
+
369
+
370
+ """
371
+ # build request
372
+ d = {
373
+ "ProjectId": self.config.project_id,
374
+ "Region": self.config.region,
375
+ }
376
+ req and d.update(req)
377
+ d = apis.ModifyUDNSZoneRequestSchema().dumps(d)
378
+
379
+ resp = self.invoke("ModifyUDNSZone", d, **kwargs)
380
+ return apis.ModifyUDNSZoneResponseSchema().loads(resp)
File without changes