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,1656 @@
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.pathx.schemas import apis
8
+
9
+
10
+ class PathXClient(Client):
11
+ def __init__(
12
+ self, config: dict, transport=None, middleware=None, logger=None
13
+ ):
14
+ super(PathXClient, self).__init__(config, transport, middleware, logger)
15
+
16
+ def bind_path_xssl(
17
+ self, req: typing.Optional[dict] = None, **kwargs
18
+ ) -> dict:
19
+ """BindPathXSSL - 绑定PathX SSL证书
20
+
21
+ **Request**
22
+
23
+ - **ProjectId** (str) - (Config) 项目ID。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
24
+ - **Port** (list) - (Required) 绑定SSL证书的HTTPS端口。Port.0 Port.1对应多个Port。如果Port不存在则不会绑定
25
+ - **SSLId** (str) - (Required) 证书ID,如果没有指定证书ID也没有申请免费证书,HTTPS接入无法正常工作
26
+ - **UGAId** (str) - (Required) UGA实例ID
27
+
28
+ **Response**
29
+
30
+
31
+ """
32
+ # build request
33
+ d = {
34
+ "ProjectId": self.config.project_id,
35
+ }
36
+ req and d.update(req)
37
+ d = apis.BindPathXSSLRequestSchema().dumps(d)
38
+
39
+ resp = self.invoke("BindPathXSSL", d, **kwargs)
40
+ return apis.BindPathXSSLResponseSchema().loads(resp)
41
+
42
+ def create_global_ssh_instance(
43
+ self, req: typing.Optional[dict] = None, **kwargs
44
+ ) -> dict:
45
+ """CreateGlobalSSHInstance - 创建GlobalSSH实例
46
+
47
+ **Request**
48
+
49
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
50
+ - **Area** (str) - (Required) 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”,“首尔”。Area和AreaCode两者必填一个
51
+ - **AreaCode** (str) - (Required) AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个
52
+ - **Port** (int) - (Required) 源站服务器监听的SSH端口,可取范围[1-65535],不能使用80,443, 65123端口。如果InstanceType=Free,取值范围缩小为[22,3389],linux系统选择22,windows系统自动选3389。
53
+ - **TargetIP** (str) - (Required) 被SSH访问的源站IP,仅支持IPv4地址。
54
+ - **BandwidthPackage** (int) - Ultimate版本带宽包大小,枚举值:[0,20,40]。单位MB
55
+ - **ChargeType** (str) - 支付方式,如按月:Month、 按年:Year、按时:Dynamic
56
+ - **CouponId** (str) - 使用代金券可冲抵部分费用
57
+ - **ForwardRegion** (str) - InstanceType等于Basic时可以在["cn-bj2","cn-sh2","cn-gd"]中选择1个作为转发机房,其他付费版默认配置三个转发机房
58
+ - **InstanceType** (str) - 枚举值:["Ultimate","Enterprise","Basic","Primary"], 分别代表旗舰版,企业版,基础版,入门版
59
+ - **Quantity** (int) - 购买数量按月购买至月底请传0
60
+ - **Remark** (str) - 备注信息
61
+
62
+ **Response**
63
+
64
+ - **AcceleratingDomain** (str) - 加速域名,访问该域名可就近接入
65
+ - **InstanceId** (str) - 实例ID,资源唯一标识
66
+
67
+ """
68
+ # build request
69
+ d = {
70
+ "ProjectId": self.config.project_id,
71
+ }
72
+ req and d.update(req)
73
+ d = apis.CreateGlobalSSHInstanceRequestSchema().dumps(d)
74
+
75
+ # build options
76
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
77
+
78
+ resp = self.invoke("CreateGlobalSSHInstance", d, **kwargs)
79
+ return apis.CreateGlobalSSHInstanceResponseSchema().loads(resp)
80
+
81
+ def create_path_xssl(
82
+ self, req: typing.Optional[dict] = None, **kwargs
83
+ ) -> dict:
84
+ """CreatePathXSSL - 创建SSL证书,可以把整个 Pem 证书内容传到SSLContent,或者把证书、私钥、CA证书分别传过来
85
+
86
+ **Request**
87
+
88
+ - **ProjectId** (str) - (Config) 项目ID org-xxx格式。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
89
+ - **SSLName** (str) - (Required) SSL证书的名字
90
+ - **CACert** (str) - CA颁发证书内容
91
+ - **PrivateKey** (str) - 加密证书的私钥,不可使用密码保护,开启密码保护后,重启服务需要输入密码
92
+ - **SSLContent** (str) - SSL证书的完整内容,私钥不可使用密码,包括加密证书的私钥、用户证书或CA证书等
93
+ - **SSLType** (str) - 所添加的SSL证书类型,目前只支持Pem格式
94
+ - **UserCert** (str) - 用户自签证书内容
95
+
96
+ **Response**
97
+
98
+ - **SSLId** (str) - SSL证书的Id
99
+
100
+ """
101
+ # build request
102
+ d = {
103
+ "ProjectId": self.config.project_id,
104
+ }
105
+ req and d.update(req)
106
+ d = apis.CreatePathXSSLRequestSchema().dumps(d)
107
+
108
+ # build options
109
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
110
+
111
+ resp = self.invoke("CreatePathXSSL", d, **kwargs)
112
+ return apis.CreatePathXSSLResponseSchema().loads(resp)
113
+
114
+ def create_uga_3instance(
115
+ self, req: typing.Optional[dict] = None, **kwargs
116
+ ) -> dict:
117
+ """CreateUGA3Instance -
118
+
119
+ **Request**
120
+
121
+ - **ProjectId** (str) - (Config)
122
+ - **Bandwidth** (int) - (Required)
123
+ - **AccelerationArea** (str) -
124
+ - **AreaCode** (str) -
125
+ - **ChargeType** (str) -
126
+ - **CouponId** (str) -
127
+ - **Name** (str) -
128
+ - **OriginDomain** (str) -
129
+ - **OriginIPList** (str) -
130
+ - **Quantity** (int) -
131
+ - **Remark** (str) -
132
+
133
+ **Response**
134
+
135
+ - **CName** (str) -
136
+ - **InstanceId** (str) -
137
+
138
+ """
139
+ # build request
140
+ d = {
141
+ "ProjectId": self.config.project_id,
142
+ }
143
+ req and d.update(req)
144
+ d = apis.CreateUGA3InstanceRequestSchema().dumps(d)
145
+
146
+ # build options
147
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
148
+
149
+ resp = self.invoke("CreateUGA3Instance", d, **kwargs)
150
+ return apis.CreateUGA3InstanceResponseSchema().loads(resp)
151
+
152
+ def create_uga_3port(
153
+ self, req: typing.Optional[dict] = None, **kwargs
154
+ ) -> dict:
155
+ """CreateUGA3Port -
156
+
157
+ **Request**
158
+
159
+ - **ProjectId** (str) - (Config)
160
+ - **InstanceId** (str) - (Required)
161
+ - **TCP** (list) -
162
+ - **TCPRS** (list) -
163
+
164
+ **Response**
165
+
166
+ - **Message** (str) -
167
+
168
+ """
169
+ # build request
170
+ d = {
171
+ "ProjectId": self.config.project_id,
172
+ }
173
+ req and d.update(req)
174
+ d = apis.CreateUGA3PortRequestSchema().dumps(d)
175
+
176
+ # build options
177
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
178
+
179
+ resp = self.invoke("CreateUGA3Port", d, **kwargs)
180
+ return apis.CreateUGA3PortResponseSchema().loads(resp)
181
+
182
+ def create_uga_forwarder(
183
+ self, req: typing.Optional[dict] = None, **kwargs
184
+ ) -> dict:
185
+ """CreateUGAForwarder - 创建加速实例转发器,支持HTTPS接入HTTPS回源、HTTPS接入HTTP回源、HTTP接入HTTP回源、TCP接入TCP回源、UDP接入UDP回源、 支持WSS接入WSS回源、WSS接入WS回源、WS接入WS回源
186
+
187
+ **Request**
188
+
189
+ - **ProjectId** (str) - (Config) 项目ID。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
190
+ - **UGAId** (str) - (Required) 加速配置实例ID
191
+ - **HTTPHTTP** (list) - HTTP接入HTTP回源转发,接入端口。禁用65123端口
192
+ - **HTTPHTTPRS** (list) - HTTP接入HTTP回源转发,源站监听端口
193
+ - **HTTPSHTTP** (list) - HTTPS接入HTTP回源转发,接入端口。禁用65123端口
194
+ - **HTTPSHTTPRS** (list) - HTTPS接入HTTP回源转发,回源端口
195
+ - **HTTPSHTTPS** (list) - HTTPS接入HTTPS回源转发,接入端口。禁用65123端口
196
+ - **HTTPSHTTPSRS** (list) - HTTPS接入HTTPS回源转发,源站监听端口
197
+ - **TCP** (list) - TCP接入端口,禁用65123端口
198
+ - **TCPRS** (list) - TCP回源端口
199
+ - **UDP** (list) - UDP接入端口,禁用65123端口
200
+ - **UDPRS** (list) - UDP回源端口
201
+ - **WSSWS** (list) - WebSocketS接入WebSocket回源转发,接入端口。禁用65123。
202
+ - **WSSWSRS** (list) - WebSocketS接入WebSocket回源转发,源站监听端口。
203
+ - **WSSWSS** (list) - WebSocketS接入WebSocketS回源转发,接入端口。禁用65123。
204
+ - **WSSWSSRS** (list) - WebSocketS接入WebSocketS回源转发,源站监听端口。
205
+ - **WSWS** (list) - WebSocket接入WebSocket回源转发,接入端口。禁用65123。
206
+ - **WSWSRS** (list) - WebSocket接入WebSocket回源转发,源站监听端口
207
+
208
+ **Response**
209
+
210
+
211
+ """
212
+ # build request
213
+ d = {
214
+ "ProjectId": self.config.project_id,
215
+ }
216
+ req and d.update(req)
217
+ d = apis.CreateUGAForwarderRequestSchema().dumps(d)
218
+
219
+ # build options
220
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
221
+
222
+ resp = self.invoke("CreateUGAForwarder", d, **kwargs)
223
+ return apis.CreateUGAForwarderResponseSchema().loads(resp)
224
+
225
+ def create_uga_instance(
226
+ self, req: typing.Optional[dict] = None, **kwargs
227
+ ) -> dict:
228
+ """CreateUGAInstance - 创建全球加速配置项
229
+
230
+ **Request**
231
+
232
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
233
+ - **Name** (str) - (Required) 加速配置实例名称
234
+ - **Domain** (str) - 加速源域名,IPList和Domain二选一必填
235
+ - **IPList** (str) - 加速源IP,多个IP用英文半角逗号(,)隔开;IPList和Domain二选一必填
236
+ - **TCP** (list) - TCP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口
237
+ - **UDP** (list) - UDP端口号,已废弃。请使用 CreateUGAForwarder API 创建端口
238
+
239
+ **Response**
240
+
241
+ - **CName** (str) - 加速域名 用户可把业务域名CName到此域名上。注意:未绑定线路情况时 加速域名解析不出IP。
242
+ - **Message** (str) - 返回信息
243
+ - **UGAId** (str) - 加速配置ID
244
+
245
+ """
246
+ # build request
247
+ d = {
248
+ "ProjectId": self.config.project_id,
249
+ }
250
+ req and d.update(req)
251
+ d = apis.CreateUGAInstanceRequestSchema().dumps(d)
252
+
253
+ # build options
254
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
255
+
256
+ resp = self.invoke("CreateUGAInstance", d, **kwargs)
257
+ return apis.CreateUGAInstanceResponseSchema().loads(resp)
258
+
259
+ def create_upath(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
260
+ """CreateUPath - 创建UPath
261
+
262
+ **Request**
263
+
264
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
265
+ - **Bandwidth** (int) - (Required) 当PostPaid为false时,该值为预付费固定带宽;当PostPaid为true时,该值为后付费保底带宽,保底带宽越大可用的上限带宽越大。最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。可联系产品团队咨询最大带宽。
266
+ - **LineId** (str) - (Required) 选择的线路,由DescribePathXLineConfig接口提供
267
+ - **Name** (str) - (Required) 名字,便于记忆区分
268
+ - **ChargeType** (str) - 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic']
269
+ - **CouponId** (str) - 代金券Id
270
+ - **PathType** (str) - private:专线线路;public:海外SD-WAN。默认为private。
271
+ - **PostPaid** (bool) - 是否开启后付费, 默认为false ,不开启后付费。当ChargeType为Dynamic时不能开启后付费。
272
+ - **Quantity** (int) - 购买周期,ChargeType为Month时,Quantity默认为0代表购买到月底,按时和按年付费该参数必须大于0
273
+
274
+ **Response**
275
+
276
+ - **PathId** (str) - 加速线路实例Id
277
+
278
+ """
279
+ # build request
280
+ d = {
281
+ "ProjectId": self.config.project_id,
282
+ }
283
+ req and d.update(req)
284
+ d = apis.CreateUPathRequestSchema().dumps(d)
285
+
286
+ # build options
287
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
288
+
289
+ resp = self.invoke("CreateUPath", d, **kwargs)
290
+ return apis.CreateUPathResponseSchema().loads(resp)
291
+
292
+ def delete_global_ssh_instance(
293
+ self, req: typing.Optional[dict] = None, **kwargs
294
+ ) -> dict:
295
+ """DeleteGlobalSSHInstance - 删除GlobalSSH实例
296
+
297
+ **Request**
298
+
299
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
300
+ - **InstanceId** (str) - (Required) 实例Id,资源的唯一标识
301
+
302
+ **Response**
303
+
304
+ - **Message** (str) - 提示信息
305
+
306
+ """
307
+ # build request
308
+ d = {
309
+ "ProjectId": self.config.project_id,
310
+ }
311
+ req and d.update(req)
312
+ d = apis.DeleteGlobalSSHInstanceRequestSchema().dumps(d)
313
+
314
+ resp = self.invoke("DeleteGlobalSSHInstance", d, **kwargs)
315
+ return apis.DeleteGlobalSSHInstanceResponseSchema().loads(resp)
316
+
317
+ def delete_path_xssl(
318
+ self, req: typing.Optional[dict] = None, **kwargs
319
+ ) -> dict:
320
+ """DeletePathXSSL - 删除PathX SSL证书
321
+
322
+ **Request**
323
+
324
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
325
+ - **SSLId** (str) - (Required) SSL证书的ID
326
+
327
+ **Response**
328
+
329
+
330
+ """
331
+ # build request
332
+ d = {
333
+ "ProjectId": self.config.project_id,
334
+ }
335
+ req and d.update(req)
336
+ d = apis.DeletePathXSSLRequestSchema().dumps(d)
337
+
338
+ resp = self.invoke("DeletePathXSSL", d, **kwargs)
339
+ return apis.DeletePathXSSLResponseSchema().loads(resp)
340
+
341
+ def delete_uga_3instance(
342
+ self, req: typing.Optional[dict] = None, **kwargs
343
+ ) -> dict:
344
+ """DeleteUGA3Instance -
345
+
346
+ **Request**
347
+
348
+ - **ProjectId** (str) - (Config)
349
+ - **InstanceId** (str) - (Required)
350
+
351
+ **Response**
352
+
353
+ - **Message** (str) -
354
+
355
+ """
356
+ # build request
357
+ d = {
358
+ "ProjectId": self.config.project_id,
359
+ }
360
+ req and d.update(req)
361
+ d = apis.DeleteUGA3InstanceRequestSchema().dumps(d)
362
+
363
+ # build options
364
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
365
+
366
+ resp = self.invoke("DeleteUGA3Instance", d, **kwargs)
367
+ return apis.DeleteUGA3InstanceResponseSchema().loads(resp)
368
+
369
+ def delete_uga_3port(
370
+ self, req: typing.Optional[dict] = None, **kwargs
371
+ ) -> dict:
372
+ """DeleteUGA3Port -
373
+
374
+ **Request**
375
+
376
+ - **ProjectId** (str) - (Config)
377
+ - **InstanceId** (str) - (Required)
378
+ - **TCP** (list) -
379
+
380
+ **Response**
381
+
382
+ - **Message** (str) -
383
+
384
+ """
385
+ # build request
386
+ d = {
387
+ "ProjectId": self.config.project_id,
388
+ }
389
+ req and d.update(req)
390
+ d = apis.DeleteUGA3PortRequestSchema().dumps(d)
391
+
392
+ # build options
393
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
394
+
395
+ resp = self.invoke("DeleteUGA3Port", d, **kwargs)
396
+ return apis.DeleteUGA3PortResponseSchema().loads(resp)
397
+
398
+ def delete_uga_forwarder(
399
+ self, req: typing.Optional[dict] = None, **kwargs
400
+ ) -> dict:
401
+ """DeleteUGAForwarder - 删除加速实例转发器 按接入端口删除
402
+
403
+ **Request**
404
+
405
+ - **ProjectId** (str) - (Config) 项目ID。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
406
+ - **UGAId** (str) - (Required) 加速配置实例ID
407
+ - **HTTPHTTP** (list) - HTTP接入HTTP回源,接入端口。禁用65123端口
408
+ - **HTTPSHTTP** (list) - HTTPS接入HTTP回源, 接入端口。禁用65123端口
409
+ - **HTTPSHTTPS** (list) - HTTPS接入HTTPS回源, 接入端口。禁用65123端口
410
+ - **TCP** (list) - TCP接入端口
411
+ - **UDP** (list) - UDP接入端口
412
+ - **WSSWS** (list) - WebSocketS接入WebSocket回源, 接入端口。禁用65123端口。
413
+ - **WSSWSS** (list) - WebSocketS接入WebSocketS回源, 接入端口。禁用65123端口
414
+ - **WSWS** (list) - WebSocket接入WebSocket回源, 接入端口。禁用65123端口
415
+
416
+ **Response**
417
+
418
+
419
+ """
420
+ # build request
421
+ d = {
422
+ "ProjectId": self.config.project_id,
423
+ }
424
+ req and d.update(req)
425
+ d = apis.DeleteUGAForwarderRequestSchema().dumps(d)
426
+
427
+ resp = self.invoke("DeleteUGAForwarder", d, **kwargs)
428
+ return apis.DeleteUGAForwarderResponseSchema().loads(resp)
429
+
430
+ def delete_uga_instance(
431
+ self, req: typing.Optional[dict] = None, **kwargs
432
+ ) -> dict:
433
+ """DeleteUGAInstance - 删除全球加速服务加速配置
434
+
435
+ **Request**
436
+
437
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
438
+ - **UGAId** (str) - (Required) 加速配置实例ID
439
+
440
+ **Response**
441
+
442
+ - **Message** (str) - 消息提示
443
+
444
+ """
445
+ # build request
446
+ d = {
447
+ "ProjectId": self.config.project_id,
448
+ }
449
+ req and d.update(req)
450
+ d = apis.DeleteUGAInstanceRequestSchema().dumps(d)
451
+
452
+ resp = self.invoke("DeleteUGAInstance", d, **kwargs)
453
+ return apis.DeleteUGAInstanceResponseSchema().loads(resp)
454
+
455
+ def delete_upath(self, req: typing.Optional[dict] = None, **kwargs) -> dict:
456
+ """DeleteUPath - 删除UPath
457
+
458
+ **Request**
459
+
460
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
461
+ - **UPathId** (str) - (Required) 加速线路实例ID
462
+
463
+ **Response**
464
+
465
+
466
+ """
467
+ # build request
468
+ d = {
469
+ "ProjectId": self.config.project_id,
470
+ }
471
+ req and d.update(req)
472
+ d = apis.DeleteUPathRequestSchema().dumps(d)
473
+
474
+ resp = self.invoke("DeleteUPath", d, **kwargs)
475
+ return apis.DeleteUPathResponseSchema().loads(resp)
476
+
477
+ def describe_global_ssh_area(
478
+ self, req: typing.Optional[dict] = None, **kwargs
479
+ ) -> dict:
480
+ """DescribeGlobalSSHArea -
481
+
482
+ **Request**
483
+
484
+ - **ProjectId** (str) - (Config)
485
+ - **Region** (str) - (Config)
486
+
487
+ **Response**
488
+
489
+ - **AreaSet** (list) - 见 **GlobalSSHArea** 模型定义
490
+ - **Message** (str) -
491
+
492
+ **Response Model**
493
+
494
+ **GlobalSSHArea**
495
+ - **Area** (str) -
496
+ - **AreaCode** (str) -
497
+ - **RegionSet** (list) -
498
+
499
+
500
+ """
501
+ # build request
502
+ d = {
503
+ "ProjectId": self.config.project_id,
504
+ "Region": self.config.region,
505
+ }
506
+ req and d.update(req)
507
+ d = apis.DescribeGlobalSSHAreaRequestSchema().dumps(d)
508
+
509
+ # build options
510
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
511
+
512
+ resp = self.invoke("DescribeGlobalSSHArea", d, **kwargs)
513
+ return apis.DescribeGlobalSSHAreaResponseSchema().loads(resp)
514
+
515
+ def describe_global_ssh_instance(
516
+ self, req: typing.Optional[dict] = None, **kwargs
517
+ ) -> dict:
518
+ """DescribeGlobalSSHInstance - 获取GlobalSSH实例列表(传实例ID获取单个实例信息,不传获取项目下全部实例)
519
+
520
+ **Request**
521
+
522
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
523
+ - **InstanceId** (str) - 实例ID,资源唯一标识
524
+
525
+ **Response**
526
+
527
+ - **InstanceSet** (list) - 见 **GlobalSSHInfo** 模型定义
528
+
529
+ **Response Model**
530
+
531
+ **GlobalSSHInfo**
532
+ - **AcceleratingDomain** (str) - GlobalSSH分配的加速域名。
533
+ - **Area** (str) - 被SSH访问的IP所在地区
534
+ - **BandwidthPackage** (int) - globalssh Ultimate带宽包大小
535
+ - **ChargeType** (str) - 支付周期,如Month,Year,Dynamic等
536
+ - **CreateTime** (int) - 资源创建时间戳
537
+ - **DomainStatus** (dict) - 加速域名当前可用性检测结果 HashMap 结构 0表示可用, 1 表示有污染
538
+ - **Expire** (bool) - 是否过期
539
+ - **ExpireTime** (int) - 资源过期时间戳
540
+ - **ExtraDomain** (list) - GlobalSSH分配的其他可用加速域名列表
541
+ - **ForwardRegion** (str) - InstanceType为Basic版本时,需要展示具体分配的转发机房
542
+ - **GlobalSSHPort** (int) - InstanceType等于Free时,由系统自动分配,不等于源站Port值。InstanceType不等于Free时,与源站Port值相同。
543
+ - **IPV6Access** (bool) - 是否开启EIP IPV6 接入,Flase:未开启
544
+ - **InstanceId** (str) - 实例ID,资源唯一标识
545
+ - **InstanceType** (str) - 枚举值:["Enterprise","Basic","Free","Welfare"], 分别代表企业版,基础版本,免费版本,较早的公测免费版
546
+ - **Port** (int) - 源站服务器监听的SSH端口,windows系统为RDP端口
547
+ - **Remark** (str) - 备注信息
548
+ - **TargetIP** (str) - 被SSH访问的源站 IPv4地址。
549
+
550
+
551
+ """
552
+ # build request
553
+ d = {
554
+ "ProjectId": self.config.project_id,
555
+ }
556
+ req and d.update(req)
557
+ d = apis.DescribeGlobalSSHInstanceRequestSchema().dumps(d)
558
+
559
+ resp = self.invoke("DescribeGlobalSSHInstance", d, **kwargs)
560
+ return apis.DescribeGlobalSSHInstanceResponseSchema().loads(resp)
561
+
562
+ def describe_path_x_line_config(
563
+ self, req: typing.Optional[dict] = None, **kwargs
564
+ ) -> dict:
565
+ """DescribePathXLineConfig - 获取全球加速线路信息
566
+
567
+ **Request**
568
+
569
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。不填为默认项目。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
570
+
571
+ **Response**
572
+
573
+ - **LineSet** (list) - 见 **UGAALine** 模型定义
574
+
575
+ **Response Model**
576
+
577
+ **UGAALine**
578
+ - **FlagUnicodeFrom** (str) - 加速国家区域国旗代码
579
+ - **FlagUnicodeTo** (str) - 源站所在国家区域国旗代码
580
+ - **GuaranteedBandwidthProportion** (int) - 后付费线路上限带宽与保底带宽的固定比例,正整数
581
+ - **LineDetail** (list) - 见 **LineDetail** 模型定义
582
+ - **LineFrom** (str) - 线路源
583
+ - **LineFromName** (str) - 线路源中文名称
584
+ - **LineId** (str) - 线路ID,可用于创建加速线路资源
585
+ - **LineTo** (str) - 线路目的
586
+ - **LineToName** (str) - 线路目的中文名称
587
+ - **MaxBandwidth** (int) - 预付费线路可售最大带宽
588
+ - **PostPaidMaxBandwidth** (int) - 后付费线路最大可售带宽
589
+ - **RegionCategoryFrom** (str) - 加速国家区域所属地区代码
590
+ - **RegionCategoryTo** (str) - 源站所在国家区域所属地区代码
591
+ - **SupportPublicNetwork** (bool) - true:支持SD-WAN线路;false:不支持SD-WAN线路
592
+
593
+
594
+ **LineDetail**
595
+ - **LineFrom** (str) - 线路源
596
+ - **LineFromName** (str) - 线路源中文名称
597
+ - **LineId** (str) - 线路计费Id
598
+ - **LineTo** (str) - 线路目的
599
+ - **LineToName** (str) - 线路目的中文名称
600
+
601
+
602
+ """
603
+ # build request
604
+ d = {
605
+ "ProjectId": self.config.project_id,
606
+ }
607
+ req and d.update(req)
608
+ d = apis.DescribePathXLineConfigRequestSchema().dumps(d)
609
+
610
+ resp = self.invoke("DescribePathXLineConfig", d, **kwargs)
611
+ return apis.DescribePathXLineConfigResponseSchema().loads(resp)
612
+
613
+ def describe_path_xssl(
614
+ self, req: typing.Optional[dict] = None, **kwargs
615
+ ) -> dict:
616
+ """DescribePathXSSL - 获取SSL证书信息,支持分页,支持按证书名称 证书域名模糊搜索
617
+
618
+ **Request**
619
+
620
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
621
+ - **Limit** (int) - 最大返回条数,默认100,最大400
622
+ - **Offset** (int) - 偏移值 默认为0
623
+ - **SSLId** (str) - SSL证书的Id,不传分页获取证书列表
624
+ - **SearchValue** (str) - 不为空则按证书名称、证书域名模糊搜索 分页返回结果
625
+
626
+ **Response**
627
+
628
+ - **DataSet** (list) - 见 **PathXSSLSet** 模型定义
629
+ - **TotalCount** (int) - 符合条件的证书总数
630
+
631
+ **Response Model**
632
+
633
+ **PathXSSLSet**
634
+ - **CreateTime** (int) - SSL证书的创建时间 时间戳
635
+ - **ExpireTime** (int) - 证书过期时间 时间戳
636
+ - **SSLBindedTargetSet** (list) - 见 **SSLBindedTargetSet** 模型定义
637
+ - **SSLContent** (str) - SSL证书内容
638
+ - **SSLId** (str) - SSL证书的Id
639
+ - **SSLMD5** (str) - SSL证书(用户证书、私钥、ca证书合并)内容md5值
640
+ - **SSLName** (str) - SSL证书的名字
641
+ - **SourceType** (int) - 证书来源,0:用户上传 1: 免费颁发
642
+ - **SubjectName** (str) - 证书域名
643
+
644
+
645
+ **SSLBindedTargetSet**
646
+ - **ResourceId** (str) - SSL证书绑定到的实例ID
647
+ - **ResourceName** (str) - SSL证书绑定到的实例名称
648
+
649
+
650
+ """
651
+ # build request
652
+ d = {
653
+ "ProjectId": self.config.project_id,
654
+ }
655
+ req and d.update(req)
656
+ d = apis.DescribePathXSSLRequestSchema().dumps(d)
657
+
658
+ resp = self.invoke("DescribePathXSSL", d, **kwargs)
659
+ return apis.DescribePathXSSLResponseSchema().loads(resp)
660
+
661
+ def describe_uga_3area(
662
+ self, req: typing.Optional[dict] = None, **kwargs
663
+ ) -> dict:
664
+ """DescribeUGA3Area -
665
+
666
+ **Request**
667
+
668
+ - **ProjectId** (str) - (Config)
669
+ - **Domain** (str) -
670
+ - **IPList** (str) -
671
+
672
+ **Response**
673
+
674
+ - **AreaSet** (list) - 见 **ForwardArea** 模型定义
675
+ - **Message** (str) -
676
+
677
+ **Response Model**
678
+
679
+ **ForwardArea**
680
+ - **Area** (str) -
681
+ - **AreaCode** (str) -
682
+ - **ContinentCode** (str) -
683
+ - **CountryCode** (str) -
684
+ - **FlagEmoji** (str) -
685
+ - **FlagUnicode** (str) -
686
+
687
+
688
+ """
689
+ # build request
690
+ d = {
691
+ "ProjectId": self.config.project_id,
692
+ }
693
+ req and d.update(req)
694
+ d = apis.DescribeUGA3AreaRequestSchema().dumps(d)
695
+
696
+ # build options
697
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
698
+
699
+ resp = self.invoke("DescribeUGA3Area", d, **kwargs)
700
+ return apis.DescribeUGA3AreaResponseSchema().loads(resp)
701
+
702
+ def describe_uga_3instance(
703
+ self, req: typing.Optional[dict] = None, **kwargs
704
+ ) -> dict:
705
+ """DescribeUGA3Instance -
706
+
707
+ **Request**
708
+
709
+ - **ProjectId** (str) - (Config)
710
+ - **InstanceId** (str) -
711
+ - **Limit** (int) -
712
+ - **Offset** (int) -
713
+
714
+ **Response**
715
+
716
+ - **ForwardInstanceInfos** (list) - 见 **ForwardInfo** 模型定义
717
+ - **TotalCount** (int) -
718
+
719
+ **Response Model**
720
+
721
+ **ForwardInfo**
722
+ - **AccelerationArea** (str) -
723
+ - **AccelerationAreaInfos** (list) - 见 **AccelerationAreaInfos** 模型定义
724
+ - **AccelerationAreaName** (str) -
725
+ - **Bandwidth** (int) -
726
+ - **CName** (str) -
727
+ - **ChargeType** (str) -
728
+ - **CreateTime** (int) -
729
+ - **Domain** (str) -
730
+ - **EgressIpList** (list) - 见 **OutPublicIpInfo** 模型定义
731
+ - **ExpireTime** (int) -
732
+ - **IPList** (list) -
733
+ - **InstanceId** (str) -
734
+ - **Name** (str) -
735
+ - **OriginArea** (str) -
736
+ - **OriginAreaCode** (str) -
737
+ - **PortSets** (list) - 见 **ForwardTask** 模型定义
738
+ - **Remark** (str) -
739
+
740
+
741
+ **AccelerationAreaInfos**
742
+ - **AccelerationArea** (str) -
743
+ - **AccelerationNodes** (list) - 见 **SrcAreaInfo** 模型定义
744
+
745
+
746
+ **SrcAreaInfo**
747
+ - **Area** (str) -
748
+ - **AreaCode** (str) -
749
+ - **FlagEmoji** (str) -
750
+ - **FlagUnicode** (str) -
751
+
752
+
753
+ **OutPublicIpInfo**
754
+ - **Area** (str) -
755
+ - **IP** (str) -
756
+
757
+
758
+ **ForwardTask**
759
+ - **Port** (int) -
760
+ - **Protocol** (str) -
761
+ - **RSPort** (int) -
762
+
763
+
764
+ """
765
+ # build request
766
+ d = {
767
+ "ProjectId": self.config.project_id,
768
+ }
769
+ req and d.update(req)
770
+ d = apis.DescribeUGA3InstanceRequestSchema().dumps(d)
771
+
772
+ # build options
773
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
774
+
775
+ resp = self.invoke("DescribeUGA3Instance", d, **kwargs)
776
+ return apis.DescribeUGA3InstanceResponseSchema().loads(resp)
777
+
778
+ def describe_uga_3optimization(
779
+ self, req: typing.Optional[dict] = None, **kwargs
780
+ ) -> dict:
781
+ """DescribeUGA3Optimization -
782
+
783
+ **Request**
784
+
785
+ - **ProjectId** (str) - (Config)
786
+ - **AreaCode** (str) - (Required)
787
+ - **AccelerationArea** (str) -
788
+ - **TimeRange** (str) -
789
+
790
+ **Response**
791
+
792
+ - **AccelerationInfos** (list) - 见 **AccelerationInfo** 模型定义
793
+
794
+ **Response Model**
795
+
796
+ **AccelerationInfo**
797
+ - **AccelerationArea** (str) -
798
+ - **AccelerationName** (str) -
799
+ - **NodeInfo** (list) - 见 **NodeDelays** 模型定义
800
+
801
+
802
+ **NodeDelays**
803
+ - **Area** (str) -
804
+ - **AreaCode** (str) -
805
+ - **CountryCode** (str) -
806
+ - **FlagEmoji** (str) -
807
+ - **FlagUnicode** (str) -
808
+ - **Latency** (float) -
809
+ - **LatencyInternet** (float) -
810
+ - **LatencyOptimization** (float) -
811
+ - **Loss** (float) -
812
+ - **LossInternet** (float) -
813
+ - **LossOptimization** (float) -
814
+
815
+
816
+ """
817
+ # build request
818
+ d = {
819
+ "ProjectId": self.config.project_id,
820
+ }
821
+ req and d.update(req)
822
+ d = apis.DescribeUGA3OptimizationRequestSchema().dumps(d)
823
+
824
+ # build options
825
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
826
+
827
+ resp = self.invoke("DescribeUGA3Optimization", d, **kwargs)
828
+ return apis.DescribeUGA3OptimizationResponseSchema().loads(resp)
829
+
830
+ def describe_uga_instance(
831
+ self, req: typing.Optional[dict] = None, **kwargs
832
+ ) -> dict:
833
+ """DescribeUGAInstance - 获取全球加速服务加速配置信息,指定实例ID返回单个实例。未指定实例ID时 指定分页参数 则按创建时间降序 返回记录
834
+
835
+ **Request**
836
+
837
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
838
+ - **Limit** (int) - 返回的最大条数,默认为100,最大值400
839
+ - **Offset** (int) - 偏移量,默认为0
840
+ - **UGAId** (str) - 加速配置实例ID,如果传了实例ID 则返回匹配实例ID的记录;如果没传则返回 ProjectId 下全部实例且符合分页要求
841
+
842
+ **Response**
843
+
844
+ - **TotalCount** (int) - 符合条件的总数
845
+ - **UGAList** (list) - 见 **UGAAInfo** 模型定义
846
+
847
+ **Response Model**
848
+
849
+ **UGAAInfo**
850
+ - **CName** (str) - 加速域名,请在加速区域配置您的业务域名的CName记录值为加速域名
851
+ - **Domain** (str) - 源站域名
852
+ - **IPList** (list) - 源站IP列表,多个值由半角英文逗号相隔
853
+ - **L4ForwarderSet** (list) - 见 **UGAL4Forwarder** 模型定义
854
+ - **L7ForwarderSet** (list) - 见 **UGAL7Forwarder** 模型定义
855
+ - **Location** (str) - 源站所在区域,加速实例在绑定线路后会自动设置该值。console页面上通过该值过滤加速实例可以绑定的upath实例。注意:缺少该值会导致在console上无法修改线路
856
+ - **OutPublicIpList** (list) - 见 **OutPublicIpInfo** 模型定义
857
+ - **TaskSet** (list) - 见 **UGAATask** 模型定义
858
+ - **UGAId** (str) - 加速配置实例ID
859
+ - **UGAName** (str) - 加速配置名称
860
+ - **UPathSet** (list) - 见 **UPathSet** 模型定义
861
+
862
+
863
+ **UGAL4Forwarder**
864
+ - **Port** (int) - 接入端口
865
+ - **Protocol** (str) - 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发
866
+ - **RSPort** (int) - RSPort,源站监听端口
867
+
868
+
869
+ **UGAL7Forwarder**
870
+ - **Port** (int) - 接入端口
871
+ - **Protocol** (str) - 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发
872
+ - **RSPort** (int) - RSPort,源站监听端口
873
+ - **SSLId** (str) - 证书ID
874
+ - **SSLName** (str) - 证书名称
875
+
876
+
877
+ **OutPublicIpInfo**
878
+ - **Area** (str) - 线路回源节点机房代号
879
+ - **IP** (str) - 线路回源节点EIP
880
+
881
+
882
+ **UGAATask**
883
+ - **Port** (int) - 接入端口
884
+ - **Protocol** (str) - 转发协议,枚举值["TCP","UDP","HTTPHTTP","HTTPSHTTP","HTTPSHTTPS"]。TCP和UDP代表四层转发,其余为七层转发
885
+
886
+
887
+ **UPathSet**
888
+ - **Bandwidth** (int) - 带宽 Mbps, 1~800Mbps
889
+ - **LineFrom** (str) - 线路起点英文代号,加速区域
890
+ - **LineFromName** (str) - 线路起点中文名字,加速区域
891
+ - **LineId** (str) - 线路ID
892
+ - **LineTo** (str) - 线路对端英文代号,源站区域
893
+ - **LineToName** (str) - 线路对端中文名字,源站区域
894
+ - **UPathId** (str) - UPath 实例ID
895
+ - **UPathName** (str) - UPath名字
896
+
897
+
898
+ """
899
+ # build request
900
+ d = {
901
+ "ProjectId": self.config.project_id,
902
+ }
903
+ req and d.update(req)
904
+ d = apis.DescribeUGAInstanceRequestSchema().dumps(d)
905
+
906
+ resp = self.invoke("DescribeUGAInstance", d, **kwargs)
907
+ return apis.DescribeUGAInstanceResponseSchema().loads(resp)
908
+
909
+ def describe_upath(
910
+ self, req: typing.Optional[dict] = None, **kwargs
911
+ ) -> dict:
912
+ """DescribeUPath - 获取加速线路信息
913
+
914
+ **Request**
915
+
916
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
917
+ - **UPathId** (str) - 如果不填参数 返回 ProjectId 下所有的线路资源,填此参数则返回upath实例ID匹配的线路
918
+
919
+ **Response**
920
+
921
+ - **UPathSet** (list) - 见 **UPathInfo** 模型定义
922
+
923
+ **Response Model**
924
+
925
+ **UPathInfo**
926
+ - **Bandwidth** (int) - 带宽,单位Mbps
927
+ - **ChargeType** (str) - 计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic']
928
+ - **CreateTime** (int) - UPath创建的时间,10位时间戳
929
+ - **ExpireTime** (int) - UPath的过期时间,10位时间戳
930
+ - **LineFromName** (str) - 线路入口名称
931
+ - **LineId** (str) - 选择的线路
932
+ - **LineToName** (str) - 线路出口名称
933
+ - **Name** (str) - UPath实例名字
934
+ - **OutPublicIpList** (list) - 见 **OutPublicIpInfo** 模型定义
935
+ - **PostPaid** (bool) - 是否为后付费实例
936
+ - **UGAList** (list) - 见 **PathXUGAInfo** 模型定义
937
+ - **UPathId** (str) - UPath加速线路实例ID
938
+
939
+
940
+ **OutPublicIpInfo**
941
+ - **Area** (str) - 线路回源节点机房代号
942
+ - **IP** (str) - 线路回源节点EIP
943
+
944
+
945
+ **PathXUGAInfo**
946
+ - **Domain** (str) - 源站域名
947
+ - **IPList** (list) - 源站IP列表,多个值由半角英文逗号相隔
948
+ - **UGAId** (str) - 加速配置ID
949
+
950
+
951
+ """
952
+ # build request
953
+ d = {
954
+ "ProjectId": self.config.project_id,
955
+ }
956
+ req and d.update(req)
957
+ d = apis.DescribeUPathRequestSchema().dumps(d)
958
+
959
+ resp = self.invoke("DescribeUPath", d, **kwargs)
960
+ return apis.DescribeUPathResponseSchema().loads(resp)
961
+
962
+ def describe_upath_template(
963
+ self, req: typing.Optional[dict] = None, **kwargs
964
+ ) -> dict:
965
+ """DescribeUPathTemplate - 查询UPath的监控模板
966
+
967
+ **Request**
968
+
969
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
970
+ - **UPathId** (str) - (Required) 加速线路实例ID,格式 upath-xxxx
971
+
972
+ **Response**
973
+
974
+ - **DataSet** (list) - 见 **AlarmRuler** 模型定义
975
+
976
+ **Response Model**
977
+
978
+ **AlarmRuler**
979
+ - **AlarmFrequency** (int) - 告警探测周期,单位秒
980
+ - **AlarmStrategy** (str) - 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警
981
+ - **AlarmTemplateRuleId** (int) - 告警模板策略ID
982
+ - **Compare** (str) - 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于
983
+ - **ContactGroupId** (int) - 联系组ID
984
+ - **MetricName** (str) - 告警指标名称, 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率
985
+ - **ResourceType** (str) - 资源类型
986
+ - **Threshold** (int) - 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000
987
+ - **TriggerCount** (int) - 告警触发周期(次数)
988
+
989
+
990
+ """
991
+ # build request
992
+ d = {
993
+ "ProjectId": self.config.project_id,
994
+ }
995
+ req and d.update(req)
996
+ d = apis.DescribeUPathTemplateRequestSchema().dumps(d)
997
+
998
+ resp = self.invoke("DescribeUPathTemplate", d, **kwargs)
999
+ return apis.DescribeUPathTemplateResponseSchema().loads(resp)
1000
+
1001
+ def get_global_ssh_price(
1002
+ self, req: typing.Optional[dict] = None, **kwargs
1003
+ ) -> dict:
1004
+ """GetGlobalSSHPrice - 获取GlobalSSH价格
1005
+
1006
+ **Request**
1007
+
1008
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1009
+ - **ChargeType** (str) - 计费类型:Dynamic,Month,Year
1010
+ - **InstanceType** (str) - 版本类型。枚举值,Enterprise:企业版;Basic:基础版。可不填,默认为Basic。
1011
+ - **Quantity** (int) - 购买周期,如果ChargeType为Month,Quantity默认为0;其他情况必须为大于0的整数
1012
+
1013
+ **Response**
1014
+
1015
+ - **Price** (float) - 价格,返回单位为元
1016
+
1017
+ """
1018
+ # build request
1019
+ d = {
1020
+ "ProjectId": self.config.project_id,
1021
+ }
1022
+ req and d.update(req)
1023
+ d = apis.GetGlobalSSHPriceRequestSchema().dumps(d)
1024
+
1025
+ resp = self.invoke("GetGlobalSSHPrice", d, **kwargs)
1026
+ return apis.GetGlobalSSHPriceResponseSchema().loads(resp)
1027
+
1028
+ def get_global_ssh_traffic(
1029
+ self, req: typing.Optional[dict] = None, **kwargs
1030
+ ) -> dict:
1031
+ """GetGlobalSSHTraffic - 获取GlobalSSH流量统计数据
1032
+
1033
+ **Request**
1034
+
1035
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1036
+ - **BeginTime** (int) - (Required) 查询起始时间,如1525017600
1037
+ - **EndTime** (int) - (Required) 查询结束时间,如1525103999
1038
+ - **UGAId** (str) - (Required) 资源ID,如uga-as5daw
1039
+
1040
+ **Response**
1041
+
1042
+ - **DataSet** (list) - 见 **TrafficDaily** 模型定义
1043
+ - **TrafficDailyRecently** (list) - 见 **TrafficDailyRecently** 模型定义
1044
+ - **UGAId** (str) - 资源ID
1045
+
1046
+ **Response Model**
1047
+
1048
+ **TrafficDaily**
1049
+ - **BillingState** (str) - Yes:已扣费, No:未扣费
1050
+ - **Date** (int) - 日期
1051
+ - **Traffic** (int) - 流量(单位GB)
1052
+
1053
+
1054
+ **TrafficDailyRecently**
1055
+ - **Day** (str) - 日期
1056
+ - **TrafficUnitGB** (str) - 日流量(单位GB)
1057
+ - **TrafficUnitMB** (str) - 日流量(单位MB)
1058
+
1059
+
1060
+ """
1061
+ # build request
1062
+ d = {
1063
+ "ProjectId": self.config.project_id,
1064
+ }
1065
+ req and d.update(req)
1066
+ d = apis.GetGlobalSSHTrafficRequestSchema().dumps(d)
1067
+
1068
+ resp = self.invoke("GetGlobalSSHTraffic", d, **kwargs)
1069
+ return apis.GetGlobalSSHTrafficResponseSchema().loads(resp)
1070
+
1071
+ def get_global_ssh_update_price(
1072
+ self, req: typing.Optional[dict] = None, **kwargs
1073
+ ) -> dict:
1074
+ """GetGlobalSSHUpdatePrice - 获取GlobalSSH升级价格
1075
+
1076
+ **Request**
1077
+
1078
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1079
+ - **InstanceType** (str) - (Required) 升级后的实例类型。枚举值,Enterprise:企业版;Basic:基础版。
1080
+ - **ChargeType** (str) - 计费类型:Dynamic,Month,Year。从免费版升级到付费版必须传,其他情况不需要传
1081
+ - **InstanceId** (str) - 实例ID,唯一资源标识。从免费版升级到付费版可不填,其他情况必填。
1082
+ - **Quantity** (int) - 购买周期,如果ChargeType为Month,Quantity可以不填默认为0;其他情况必须为正整数。
1083
+
1084
+ **Response**
1085
+
1086
+ - **Price** (float) - 价格,返回单位为元。正数表示付费升级,负数表示降级退费。
1087
+
1088
+ """
1089
+ # build request
1090
+ d = {
1091
+ "ProjectId": self.config.project_id,
1092
+ }
1093
+ req and d.update(req)
1094
+ d = apis.GetGlobalSSHUpdatePriceRequestSchema().dumps(d)
1095
+
1096
+ resp = self.invoke("GetGlobalSSHUpdatePrice", d, **kwargs)
1097
+ return apis.GetGlobalSSHUpdatePriceResponseSchema().loads(resp)
1098
+
1099
+ def get_path_x_metric(
1100
+ self, req: typing.Optional[dict] = None, **kwargs
1101
+ ) -> dict:
1102
+ """GetPathXMetric - 获取全球加速监控信息
1103
+
1104
+ **Request**
1105
+
1106
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1107
+ - **BeginTime** (int) - (Required) 查询起始时间,10位长度时间戳
1108
+ - **EndTime** (int) - (Required) 查询结束时间,10位长度时间戳
1109
+ - **LineId** (str) - (Required) 具体线路id,调用DescribePathXLineConfig接口获取线路列表
1110
+ - **MetricName** (list) - (Required) 查询监控的指标项。目前仅允许以下四项:NetworkOut:出向带宽,NetworkIn:入向带宽,NetworkOutUsage:出向带宽使用率,NetworkInUsage:入向带宽使用率
1111
+ - **ResourceId** (str) - (Required) ResourceId,如upath ID 和 uga ID
1112
+ - **ResourceType** (str) - (Required) upath:加速线路,uga:加速实例
1113
+
1114
+ **Response**
1115
+
1116
+ - **DataSet** (dict) - 见 **MetricPeriod** 模型定义
1117
+
1118
+ **Response Model**
1119
+
1120
+ **MetricPeriod**
1121
+ - **NetworkIn** (list) - 见 **MatricPoint** 模型定义
1122
+ - **NetworkInUsage** (list) - 见 **MatricPoint** 模型定义
1123
+ - **NetworkOut** (list) - 见 **MatricPoint** 模型定义
1124
+ - **NetworkOutUsage** (list) - 见 **MatricPoint** 模型定义
1125
+
1126
+
1127
+ **MatricPoint**
1128
+ - **Timestamp** (int) - 时间戳
1129
+ - **Value** (int) - 监控点数值
1130
+
1131
+
1132
+ """
1133
+ # build request
1134
+ d = {
1135
+ "ProjectId": self.config.project_id,
1136
+ }
1137
+ req and d.update(req)
1138
+ d = apis.GetPathXMetricRequestSchema().dumps(d)
1139
+
1140
+ resp = self.invoke("GetPathXMetric", d, **kwargs)
1141
+ return apis.GetPathXMetricResponseSchema().loads(resp)
1142
+
1143
+ def get_uga_3metric(
1144
+ self, req: typing.Optional[dict] = None, **kwargs
1145
+ ) -> dict:
1146
+ """GetUGA3Metric -
1147
+
1148
+ **Request**
1149
+
1150
+ - **ProjectId** (str) - (Config)
1151
+ - **BeginTime** (int) - (Required)
1152
+ - **EndTime** (int) - (Required)
1153
+ - **InstanceId** (str) - (Required)
1154
+ - **AreaCode** (str) -
1155
+ - **IsSubline** (bool) -
1156
+ - **MetricName** (list) -
1157
+
1158
+ **Response**
1159
+
1160
+ - **DataSet** (dict) - 见 **UGA3Metric** 模型定义
1161
+
1162
+ **Response Model**
1163
+
1164
+ **UGA3Metric**
1165
+ - **ConnectCount** (list) - 见 **MatricPoint** 模型定义
1166
+ - **ConnectCountSubline** (list) - 见 **MatricPoint** 模型定义
1167
+ - **Delay** (list) - 见 **MatricPoint** 模型定义
1168
+ - **DelayPromote** (list) - 见 **MatricPoint** 模型定义
1169
+ - **DelayPromoteSubline** (list) - 见 **MatricPoint** 模型定义
1170
+ - **DelaySubline** (list) - 见 **MatricPoint** 模型定义
1171
+ - **NetworkIn** (list) - 见 **MatricPoint** 模型定义
1172
+ - **NetworkInSubline** (list) - 见 **MatricPoint** 模型定义
1173
+ - **NetworkInUsage** (list) - 见 **MatricPoint** 模型定义
1174
+ - **NetworkOut** (list) - 见 **MatricPoint** 模型定义
1175
+ - **NetworkOutSubline** (list) - 见 **MatricPoint** 模型定义
1176
+ - **NetworkOutUsage** (list) - 见 **MatricPoint** 模型定义
1177
+
1178
+
1179
+ **MatricPoint**
1180
+ - **Timestamp** (int) -
1181
+ - **Value** (int) -
1182
+
1183
+
1184
+ """
1185
+ # build request
1186
+ d = {
1187
+ "ProjectId": self.config.project_id,
1188
+ }
1189
+ req and d.update(req)
1190
+ d = apis.GetUGA3MetricRequestSchema().dumps(d)
1191
+
1192
+ # build options
1193
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
1194
+
1195
+ resp = self.invoke("GetUGA3Metric", d, **kwargs)
1196
+ return apis.GetUGA3MetricResponseSchema().loads(resp)
1197
+
1198
+ def get_uga_3price(
1199
+ self, req: typing.Optional[dict] = None, **kwargs
1200
+ ) -> dict:
1201
+ """GetUGA3Price -
1202
+
1203
+ **Request**
1204
+
1205
+ - **ProjectId** (str) - (Config)
1206
+ - **AreaCode** (str) - (Required)
1207
+ - **Bandwidth** (int) - (Required)
1208
+ - **AccelerationArea** (str) -
1209
+ - **ChargeType** (str) -
1210
+ - **Quantity** (int) -
1211
+
1212
+ **Response**
1213
+
1214
+ - **UGA3Price** (list) - 见 **UGA3Price** 模型定义
1215
+
1216
+ **Response Model**
1217
+
1218
+ **UGA3Price**
1219
+ - **AccelerationArea** (str) -
1220
+ - **AccelerationAreaName** (str) -
1221
+ - **AccelerationBandwidthPrice** (float) -
1222
+ - **AccelerationForwarderPrice** (float) -
1223
+
1224
+
1225
+ """
1226
+ # build request
1227
+ d = {
1228
+ "ProjectId": self.config.project_id,
1229
+ }
1230
+ req and d.update(req)
1231
+ d = apis.GetUGA3PriceRequestSchema().dumps(d)
1232
+
1233
+ # build options
1234
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
1235
+
1236
+ resp = self.invoke("GetUGA3Price", d, **kwargs)
1237
+ return apis.GetUGA3PriceResponseSchema().loads(resp)
1238
+
1239
+ def get_uga_3update_price(
1240
+ self, req: typing.Optional[dict] = None, **kwargs
1241
+ ) -> dict:
1242
+ """GetUGA3UpdatePrice -
1243
+
1244
+ **Request**
1245
+
1246
+ - **ProjectId** (str) - (Config)
1247
+ - **InstanceId** (str) - (Required)
1248
+ - **AccelerationArea** (str) -
1249
+ - **AreaCode** (str) -
1250
+ - **Bandwidth** (int) -
1251
+
1252
+ **Response**
1253
+
1254
+ - **Price** (float) -
1255
+
1256
+ """
1257
+ # build request
1258
+ d = {
1259
+ "ProjectId": self.config.project_id,
1260
+ }
1261
+ req and d.update(req)
1262
+ d = apis.GetUGA3UpdatePriceRequestSchema().dumps(d)
1263
+
1264
+ # build options
1265
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
1266
+
1267
+ resp = self.invoke("GetUGA3UpdatePrice", d, **kwargs)
1268
+ return apis.GetUGA3UpdatePriceResponseSchema().loads(resp)
1269
+
1270
+ def modify_global_ssh_origin_info(
1271
+ self, req: typing.Optional[dict] = None, **kwargs
1272
+ ) -> dict:
1273
+ """ModifyGlobalSSHOriginInfo - 修改GlobalSSH 源站信息
1274
+
1275
+ **Request**
1276
+
1277
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1278
+ - **InstanceId** (str) - (Required) 资源ID:ugaa-xxxxxxx
1279
+ - **InstanceType** (str) - (Required) Free,Basic,Enterprise,Ultimate
1280
+ - **RsIP** (str) - (Required) 被SSH访问的源站IP
1281
+ - **Area** (str) - 填写支持SSH访问IP的地区名称,如“洛杉矶”,“新加坡”,“香港”,“东京”,“华盛顿”,“法兰克福”。Area和AreaCode两者必填一个
1282
+ - **AreaCode** (str) - AreaCode, 区域航空港国际通用代码。Area和AreaCode两者必填一个
1283
+
1284
+ **Response**
1285
+
1286
+ - **Message** (str) - 提示信息
1287
+
1288
+ """
1289
+ # build request
1290
+ d = {
1291
+ "ProjectId": self.config.project_id,
1292
+ }
1293
+ req and d.update(req)
1294
+ d = apis.ModifyGlobalSSHOriginInfoRequestSchema().dumps(d)
1295
+
1296
+ resp = self.invoke("ModifyGlobalSSHOriginInfo", d, **kwargs)
1297
+ return apis.ModifyGlobalSSHOriginInfoResponseSchema().loads(resp)
1298
+
1299
+ def modify_global_ssh_port(
1300
+ self, req: typing.Optional[dict] = None, **kwargs
1301
+ ) -> dict:
1302
+ """ModifyGlobalSSHPort - 修改GlobalSSH端口
1303
+
1304
+ **Request**
1305
+
1306
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1307
+ - **InstanceId** (str) - (Required) 实例ID,资源唯一标识。当前仅收费版GlobalSSH实例可以修改端口。
1308
+ - **Port** (int) - (Required) 源站服务器监听的SSH端口号。收费版本端口范围[1,65535]且不能为80,443,65123端口。免费版不支持修改端口。
1309
+
1310
+ **Response**
1311
+
1312
+ - **Message** (str) - 提示信息
1313
+
1314
+ """
1315
+ # build request
1316
+ d = {
1317
+ "ProjectId": self.config.project_id,
1318
+ }
1319
+ req and d.update(req)
1320
+ d = apis.ModifyGlobalSSHPortRequestSchema().dumps(d)
1321
+
1322
+ resp = self.invoke("ModifyGlobalSSHPort", d, **kwargs)
1323
+ return apis.ModifyGlobalSSHPortResponseSchema().loads(resp)
1324
+
1325
+ def modify_global_ssh_remark(
1326
+ self, req: typing.Optional[dict] = None, **kwargs
1327
+ ) -> dict:
1328
+ """ModifyGlobalSSHRemark - 修改GlobalSSH备注
1329
+
1330
+ **Request**
1331
+
1332
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1333
+ - **InstanceId** (str) - (Required) 实例ID,资源唯一标识
1334
+ - **Remark** (str) - 备注信息,不填默认为空字符串
1335
+
1336
+ **Response**
1337
+
1338
+ - **Message** (str) - 接口返回消息
1339
+
1340
+ """
1341
+ # build request
1342
+ d = {
1343
+ "ProjectId": self.config.project_id,
1344
+ }
1345
+ req and d.update(req)
1346
+ d = apis.ModifyGlobalSSHRemarkRequestSchema().dumps(d)
1347
+
1348
+ resp = self.invoke("ModifyGlobalSSHRemark", d, **kwargs)
1349
+ return apis.ModifyGlobalSSHRemarkResponseSchema().loads(resp)
1350
+
1351
+ def modify_global_ssh_type(
1352
+ self, req: typing.Optional[dict] = None, **kwargs
1353
+ ) -> dict:
1354
+ """ModifyGlobalSSHType - 修改GlobalSSH实例类型,仅支持低版本升级到高版本,不支持高版本降级到低版本
1355
+
1356
+ **Request**
1357
+
1358
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1359
+ - **InstanceId** (str) - (Required) 实例ID,资源唯一标识
1360
+ - **InstanceType** (str) - (Required) 取值范围["Enterprise","Basic"],分别对应企业版和基础版,表示升级后的实例类型。比如从Free版本升级为Basic版或Enterprise版,不可从收费版降级为免费版,或从企业版降级为基础版
1361
+ - **ChargeType** (str) - 支付方式,如按月、按年、按时
1362
+ - **CouponId** (str) - 可抵扣费用的券,通常不使用
1363
+ - **Quantity** (str) - 购买时间,当ChargeType为Month,Quantity为0代表购买到月底
1364
+
1365
+ **Response**
1366
+
1367
+ - **Message** (str) - 提示信息
1368
+
1369
+ """
1370
+ # build request
1371
+ d = {
1372
+ "ProjectId": self.config.project_id,
1373
+ }
1374
+ req and d.update(req)
1375
+ d = apis.ModifyGlobalSSHTypeRequestSchema().dumps(d)
1376
+
1377
+ resp = self.invoke("ModifyGlobalSSHType", d, **kwargs)
1378
+ return apis.ModifyGlobalSSHTypeResponseSchema().loads(resp)
1379
+
1380
+ def modify_uga_3bandwidth(
1381
+ self, req: typing.Optional[dict] = None, **kwargs
1382
+ ) -> dict:
1383
+ """ModifyUGA3Bandwidth -
1384
+
1385
+ **Request**
1386
+
1387
+ - **ProjectId** (str) - (Config)
1388
+ - **InstanceId** (str) - (Required)
1389
+ - **Bandwidth** (int) -
1390
+ - **CouponId** (str) -
1391
+
1392
+ **Response**
1393
+
1394
+ - **Message** (str) -
1395
+
1396
+ """
1397
+ # build request
1398
+ d = {
1399
+ "ProjectId": self.config.project_id,
1400
+ }
1401
+ req and d.update(req)
1402
+ d = apis.ModifyUGA3BandwidthRequestSchema().dumps(d)
1403
+
1404
+ # build options
1405
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
1406
+
1407
+ resp = self.invoke("ModifyUGA3Bandwidth", d, **kwargs)
1408
+ return apis.ModifyUGA3BandwidthResponseSchema().loads(resp)
1409
+
1410
+ def modify_uga_3instance(
1411
+ self, req: typing.Optional[dict] = None, **kwargs
1412
+ ) -> dict:
1413
+ """ModifyUGA3Instance -
1414
+
1415
+ **Request**
1416
+
1417
+ - **ProjectId** (str) - (Config)
1418
+ - **InstanceId** (str) - (Required)
1419
+ - **Name** (str) -
1420
+ - **Remark** (str) -
1421
+
1422
+ **Response**
1423
+
1424
+ - **Message** (str) -
1425
+
1426
+ """
1427
+ # build request
1428
+ d = {
1429
+ "ProjectId": self.config.project_id,
1430
+ }
1431
+ req and d.update(req)
1432
+ d = apis.ModifyUGA3InstanceRequestSchema().dumps(d)
1433
+
1434
+ # build options
1435
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
1436
+
1437
+ resp = self.invoke("ModifyUGA3Instance", d, **kwargs)
1438
+ return apis.ModifyUGA3InstanceResponseSchema().loads(resp)
1439
+
1440
+ def modify_uga_3origin_info(
1441
+ self, req: typing.Optional[dict] = None, **kwargs
1442
+ ) -> dict:
1443
+ """ModifyUGA3OriginInfo -
1444
+
1445
+ **Request**
1446
+
1447
+ - **ProjectId** (str) - (Config)
1448
+ - **InstanceId** (str) - (Required)
1449
+ - **OriginDomain** (str) - (Required)
1450
+ - **OriginIPList** (str) - (Required)
1451
+
1452
+ **Response**
1453
+
1454
+ - **Message** (str) -
1455
+
1456
+ """
1457
+ # build request
1458
+ d = {
1459
+ "ProjectId": self.config.project_id,
1460
+ }
1461
+ req and d.update(req)
1462
+ d = apis.ModifyUGA3OriginInfoRequestSchema().dumps(d)
1463
+
1464
+ # build options
1465
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
1466
+
1467
+ resp = self.invoke("ModifyUGA3OriginInfo", d, **kwargs)
1468
+ return apis.ModifyUGA3OriginInfoResponseSchema().loads(resp)
1469
+
1470
+ def modify_uga_3port(
1471
+ self, req: typing.Optional[dict] = None, **kwargs
1472
+ ) -> dict:
1473
+ """ModifyUGA3Port -
1474
+
1475
+ **Request**
1476
+
1477
+ - **ProjectId** (str) - (Config)
1478
+ - **InstanceId** (str) - (Required)
1479
+ - **TCP** (list) -
1480
+ - **TCPRS** (list) -
1481
+
1482
+ **Response**
1483
+
1484
+ - **Message** (str) -
1485
+
1486
+ """
1487
+ # build request
1488
+ d = {
1489
+ "ProjectId": self.config.project_id,
1490
+ }
1491
+ req and d.update(req)
1492
+ d = apis.ModifyUGA3PortRequestSchema().dumps(d)
1493
+
1494
+ # build options
1495
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
1496
+
1497
+ resp = self.invoke("ModifyUGA3Port", d, **kwargs)
1498
+ return apis.ModifyUGA3PortResponseSchema().loads(resp)
1499
+
1500
+ def modify_upath_bandwidth(
1501
+ self, req: typing.Optional[dict] = None, **kwargs
1502
+ ) -> dict:
1503
+ """ModifyUPathBandwidth - 修改加速线路带宽
1504
+
1505
+ **Request**
1506
+
1507
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1508
+ - **Bandwidth** (int) - (Required) 线路带宽,单位Mbps。最小1Mbps,最大带宽由 DescribePathXLineConfig 接口获得。如需更大带宽,请联系产品团队。
1509
+ - **UPathId** (str) - (Required) UPath 加速线路实例Id
1510
+
1511
+ **Response**
1512
+
1513
+
1514
+ """
1515
+ # build request
1516
+ d = {
1517
+ "ProjectId": self.config.project_id,
1518
+ }
1519
+ req and d.update(req)
1520
+ d = apis.ModifyUPathBandwidthRequestSchema().dumps(d)
1521
+
1522
+ resp = self.invoke("ModifyUPathBandwidth", d, **kwargs)
1523
+ return apis.ModifyUPathBandwidthResponseSchema().loads(resp)
1524
+
1525
+ def modify_upath_template(
1526
+ self, req: typing.Optional[dict] = None, **kwargs
1527
+ ) -> dict:
1528
+ """ModifyUPathTemplate - 修改UPath监控告警项
1529
+
1530
+ **Request**
1531
+
1532
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1533
+ - **UPathId** (str) - (Required) 加速线路实例ID
1534
+ - **AlarmFrequency** (list) - 告警探测周期,单位:秒
1535
+ - **AlarmStrategy** (list) - 收敛策略,可选范围 ['Exponential','Continuous','Once'],分别对应指数递增、连续告警、单次告警
1536
+ - **Compare** (list) - 比较策略,可选 ['GE','LE'] 分别代表不小于和不大于
1537
+ - **ContactGroupId** (list) - 告警组id
1538
+ - **MetricName** (list) - 告警指标名称, 所有n的个数必须一致。目前仅允许以下四项:UpathNetworkOut:出向带宽,UpathNetworkIn:入向带宽,UpathNetworkOutUsage:出向带宽使用率,UpathNetworkInUsage:入向带宽使用率
1539
+ - **Threshold** (list) - 告警阈值,带宽使用率的阈值范围是[50,100]的正整数,带宽告警阈值为1000000的倍数, 如大于2Mbps则告警 阈值应该传 2000000
1540
+ - **TriggerCount** (list) - 告警触发周期(次数)
1541
+
1542
+ **Response**
1543
+
1544
+
1545
+ """
1546
+ # build request
1547
+ d = {
1548
+ "ProjectId": self.config.project_id,
1549
+ }
1550
+ req and d.update(req)
1551
+ d = apis.ModifyUPathTemplateRequestSchema().dumps(d)
1552
+
1553
+ resp = self.invoke("ModifyUPathTemplate", d, **kwargs)
1554
+ return apis.ModifyUPathTemplateResponseSchema().loads(resp)
1555
+
1556
+ def uga_bind_upath(
1557
+ self, req: typing.Optional[dict] = None, **kwargs
1558
+ ) -> dict:
1559
+ """UGABindUPath - UGA绑定UPath
1560
+
1561
+ **Request**
1562
+
1563
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1564
+ - **UGAId** (str) - (Required) 加速配置实例ID,格式uga-xxxx
1565
+ - **UPathId** (str) - (Required) 加速线路实例ID,格式upath-xxx
1566
+ - **CouponId** (str) - 代金券
1567
+
1568
+ **Response**
1569
+
1570
+
1571
+ """
1572
+ # build request
1573
+ d = {
1574
+ "ProjectId": self.config.project_id,
1575
+ }
1576
+ req and d.update(req)
1577
+ d = apis.UGABindUPathRequestSchema().dumps(d)
1578
+
1579
+ resp = self.invoke("UGABindUPath", d, **kwargs)
1580
+ return apis.UGABindUPathResponseSchema().loads(resp)
1581
+
1582
+ def uga_un_bind_upath(
1583
+ self, req: typing.Optional[dict] = None, **kwargs
1584
+ ) -> dict:
1585
+ """UGAUnBindUPath - UGA与UPath解绑
1586
+
1587
+ **Request**
1588
+
1589
+ - **ProjectId** (str) - (Config) 项目ID。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1590
+ - **UGAId** (str) - (Required) 加速配置实例ID 格式uga-xxx
1591
+ - **UPathId** (str) - (Required) 加速线路实例ID 格式upath-xxx
1592
+
1593
+ **Response**
1594
+
1595
+
1596
+ """
1597
+ # build request
1598
+ d = {
1599
+ "ProjectId": self.config.project_id,
1600
+ }
1601
+ req and d.update(req)
1602
+ d = apis.UGAUnBindUPathRequestSchema().dumps(d)
1603
+
1604
+ resp = self.invoke("UGAUnBindUPath", d, **kwargs)
1605
+ return apis.UGAUnBindUPathResponseSchema().loads(resp)
1606
+
1607
+ def un_bind_path_xssl(
1608
+ self, req: typing.Optional[dict] = None, **kwargs
1609
+ ) -> dict:
1610
+ """UnBindPathXSSL - 解绑PathX SSL 证书
1611
+
1612
+ **Request**
1613
+
1614
+ - **ProjectId** (str) - (Config) 项目ID。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list.html>`_
1615
+ - **Port** (list) - (Required) 解绑SSL证书的HTTPS端口。Port.0 Port.1格式 端口错误则解绑失败。
1616
+ - **SSLId** (str) - (Required) SSL证书ID。
1617
+ - **UGAId** (str) - (Required) UGA实例ID。
1618
+
1619
+ **Response**
1620
+
1621
+
1622
+ """
1623
+ # build request
1624
+ d = {
1625
+ "ProjectId": self.config.project_id,
1626
+ }
1627
+ req and d.update(req)
1628
+ d = apis.UnBindPathXSSLRequestSchema().dumps(d)
1629
+
1630
+ resp = self.invoke("UnBindPathXSSL", d, **kwargs)
1631
+ return apis.UnBindPathXSSLResponseSchema().loads(resp)
1632
+
1633
+ def update_path_x_whitelist(
1634
+ self, req: typing.Optional[dict] = None, **kwargs
1635
+ ) -> dict:
1636
+ """UpdatePathXWhitelist - 更新入口白名单,仅限GlobalSSH 实例使用。其他uga-实例不生效
1637
+
1638
+ **Request**
1639
+
1640
+ - **ProjectId** (str) - (Config) 项目ID,如org-xxxx。请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
1641
+ - **InstanceId** (str) - (Required) GlobalSSH实例ID,资源唯一标识
1642
+ - **Whitelist** (list) - 白名单规则,例如 "Whitelist.0": "192.168.1.1/24|tcp|22","Whitelist.1": "192.168.1.2|tcp|8080:8090",第一个参数为ip或ip段,第二个参数代表协议(tcp/udp),第三个参数代表端口号或端口范围(使用 ':' 隔开);可以添加多条规则(递增Whitelist.n字段内的n值);此接口需要列出全部规则,例如不填则为清空白名单规则,如若需要增量添加,使用InsertPathXWhitelist接口,globalssh 没有端口范围:端口设置成加速端口,协议设置成tcp:ip|tcp|加速端口
1643
+
1644
+ **Response**
1645
+
1646
+
1647
+ """
1648
+ # build request
1649
+ d = {
1650
+ "ProjectId": self.config.project_id,
1651
+ }
1652
+ req and d.update(req)
1653
+ d = apis.UpdatePathXWhitelistRequestSchema().dumps(d)
1654
+
1655
+ resp = self.invoke("UpdatePathXWhitelist", d, **kwargs)
1656
+ return apis.UpdatePathXWhitelistResponseSchema().loads(resp)