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,330 @@
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.isms.schemas import apis
8
+
9
+
10
+ class ISMSClient(Client):
11
+ def __init__(
12
+ self, config: dict, transport=None, middleware=None, logger=None
13
+ ):
14
+ super(ISMSClient, self).__init__(config, transport, middleware, logger)
15
+
16
+ def create_isms_signature(
17
+ self, req: typing.Optional[dict] = None, **kwargs
18
+ ) -> dict:
19
+ """CreateISMSSignature - 调用接口CreateISMSSignature申请视频短信签名
20
+
21
+ **Request**
22
+
23
+ - **ProjectId** (str) - (Config) 项目ID,不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
24
+ - **CertificateType** (int) - (Required) 签名的资质证明文件类型,需与签名类型保持一致,说明如下:0-三证合一/企业营业执照/组织机构代码证书/社会信用代码证书;1-应用商店后台开发者管理截图;2-备案服务商的备案成功截图(含域名,网站名称,备案号);3-公众号或小程序的管理界面截图;4-商标注册证书;5-组织机构代码证书、社会信用代码证书;
25
+ - **Description** (str) - (Required) 短信签名申请原因
26
+ - **File** (str) - (Required) 短信签名的资质证明文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB
27
+ - **SigContent** (str) - (Required) 短信签名内容;长度为2-12个字符, 可包含中文、数字和符号;无需填写【】或[],系统会自动添加
28
+ - **SigPurpose** (int) - (Required) 签名用途,0-自用,1-他用;
29
+ - **SigType** (int) - (Required) 签名类型,说明如下:0-公司或企业的全称或简称;1-App应用的全称或简称;2-工信部备案网站的全称或简称;3-公众号或小程序的全称或简称;4-商标名的全称或简称;5-政府/机关事业单位/其他单位的全称或简称;
30
+ - **ProxyFile** (str) - 短信签名授权委托文件,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB;当您是代理并使用第三方的签名时(也即SigPurpose为1-他用),该项为必填项;
31
+
32
+ **Response**
33
+
34
+ - **Message** (str) - 返回状态码描述,如果操作成功,默认返回为空
35
+ - **SigId** (str) - 短信签名ID
36
+
37
+ """
38
+ # build request
39
+ d = {
40
+ "ProjectId": self.config.project_id,
41
+ }
42
+ req and d.update(req)
43
+ d = apis.CreateISMSSignatureRequestSchema().dumps(d)
44
+
45
+ # build options
46
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
47
+
48
+ resp = self.invoke("CreateISMSSignature", d, **kwargs)
49
+ return apis.CreateISMSSignatureResponseSchema().loads(resp)
50
+
51
+ def create_isms_template(
52
+ self, req: typing.Optional[dict] = None, **kwargs
53
+ ) -> dict:
54
+ """CreateISMSTemplate - 申请视频短信模板
55
+
56
+ **Request**
57
+
58
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
59
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
60
+ - **Content** (str) - (Required) 视频短信模板内容。json数组的字符串格式。如:[{name:"0.txt",type:"txt",content:"北京是一座美丽的城市,我爱北京!",index:0},{name:"1.jpg",type:"jpg",content:"jpg文件字节的base64编码字符串",index:1},{name:”2.mp4”,type:"mp4",content:"mp4文件字节的base64编码字符串",index:2}]。name: 文件名,name中不能出现中文,必须要带上和type相同的后缀;type:文件类型,不能为空,文本为txt,图片为jpg、gif或png,音频为mp3,视频为mp4;content:文件内容,由文本、图片、音频、视频组成,文本使用txt文件,图片使用 jpg、gif、png 格式,音频使用 mp3 格式,视频使用mp4(视频只允许一个),文本、图片、音频、视频文件合计大小不可超过2M;index: 在视频短信中的位置。从0开始。
61
+ - **MsgSignature** (str) - (Required) 视频短信签名
62
+ - **MsgTitle** (str) - (Required) 视频短信标题
63
+ - **Remark** (str) - (Required) 备注
64
+ - **TemplateName** (str) - (Required) 视频短信模板名称
65
+ - **UnsubscribeInfo** (str) - (Required) 退订信息,如:“回T退订”
66
+ - **Zone** (str) - 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
67
+
68
+ **Response**
69
+
70
+ - **Message** (str) - API接口调用出错时表示错误信息
71
+ - **ReqUuid** (str) - 本次接口调用请求Id,用于问题排查。
72
+ - **TemplateId** (str) - 申请的模板Id。
73
+
74
+ """
75
+ # build request
76
+ d = {
77
+ "ProjectId": self.config.project_id,
78
+ "Region": self.config.region,
79
+ }
80
+ req and d.update(req)
81
+ d = apis.CreateISMSTemplateRequestSchema().dumps(d)
82
+
83
+ # build options
84
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
85
+
86
+ resp = self.invoke("CreateISMSTemplate", d, **kwargs)
87
+ return apis.CreateISMSTemplateResponseSchema().loads(resp)
88
+
89
+ def delete_isms_signature(
90
+ self, req: typing.Optional[dict] = None, **kwargs
91
+ ) -> dict:
92
+ """DeleteISMSSignature - 调用接口DeleteISMSSignature删除视频短信签名
93
+
94
+ **Request**
95
+
96
+ - **ProjectId** (str) - (Config) 项目ID,不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
97
+ - **SigIds** (list) - (Required) 签名ID,支持以数组的方式,举例,以SigIds.0、SigIds.1...SigIds.N方式传入
98
+
99
+ **Response**
100
+
101
+ - **Message** (str) - 返回状态码描述,如果操作成功,默认返回为空
102
+
103
+ """
104
+ # build request
105
+ d = {
106
+ "ProjectId": self.config.project_id,
107
+ }
108
+ req and d.update(req)
109
+ d = apis.DeleteISMSSignatureRequestSchema().dumps(d)
110
+
111
+ resp = self.invoke("DeleteISMSSignature", d, **kwargs)
112
+ return apis.DeleteISMSSignatureResponseSchema().loads(resp)
113
+
114
+ def delete_isms_template(
115
+ self, req: typing.Optional[dict] = None, **kwargs
116
+ ) -> dict:
117
+ """DeleteISMSTemplate - 调用接口DeleteISMSTemplate删除视频短信模板
118
+
119
+ **Request**
120
+
121
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
122
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
123
+ - **TemplateIds** (list) - (Required) 模板ID,支持以数组的方式,举例,以TemplateIds.0、TemplateIds.1...TemplateIds.N方式传入
124
+
125
+ **Response**
126
+
127
+ - **Message** (str) - 返回状态码描述,如果操作成功,默认返回为空
128
+
129
+ """
130
+ # build request
131
+ d = {
132
+ "ProjectId": self.config.project_id,
133
+ "Region": self.config.region,
134
+ }
135
+ req and d.update(req)
136
+ d = apis.DeleteISMSTemplateRequestSchema().dumps(d)
137
+
138
+ resp = self.invoke("DeleteISMSTemplate", d, **kwargs)
139
+ return apis.DeleteISMSTemplateResponseSchema().loads(resp)
140
+
141
+ def get_isms_send_receipt(
142
+ self, req: typing.Optional[dict] = None, **kwargs
143
+ ) -> dict:
144
+ """GetISMSSendReceipt - 获取视频短信发送记录的状态回执
145
+
146
+ **Request**
147
+
148
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
149
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
150
+ - **TaskIdSet** (list) - (Required) 发送记录TaskId集合。调用SendUSMSVideoMessage时返回的TaskId的集合。以TaskIdSet.0、TaskIdSet.1...TaskIdSet.N的形式传入。每次请求最多支持100个
151
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
152
+
153
+ **Response**
154
+
155
+ - **Data** (list) - 见 **ReceiptPerTask** 模型定义
156
+ - **Message** (str) - 错误信息
157
+ - **ReqUuid** (str) - 本次请求uuid
158
+
159
+ **Response Model**
160
+
161
+ **ReceiptPerTask**
162
+ - **ReceiptSet** (list) - 见 **ReceiptPerPhone** 模型定义
163
+ - **TaskId** (str) - 发送短信时返回的TaskId
164
+
165
+
166
+ **ReceiptPerPhone**
167
+ - **Phone** (str) - 手机号码
168
+ - **ReceiptCode** (str) - 回执码
169
+ - **ReceiptDesc** (str) - 回执结果描述
170
+ - **ReceiptResult** (str) - 回执结果(发送成功、发送失败、状态未知)
171
+ - **ReceiptTime** (int) - 回执返回时间
172
+ - **SessionId** (str) - SessionId
173
+
174
+
175
+ """
176
+ # build request
177
+ d = {
178
+ "ProjectId": self.config.project_id,
179
+ "Region": self.config.region,
180
+ }
181
+ req and d.update(req)
182
+ d = apis.GetISMSSendReceiptRequestSchema().dumps(d)
183
+
184
+ resp = self.invoke("GetISMSSendReceipt", d, **kwargs)
185
+ return apis.GetISMSSendReceiptResponseSchema().loads(resp)
186
+
187
+ def query_isms_signature(
188
+ self, req: typing.Optional[dict] = None, **kwargs
189
+ ) -> dict:
190
+ """QueryISMSSignature - 调用接口QueryISMSSignature查询视频短信签名申请状态
191
+
192
+ **Request**
193
+
194
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
195
+ - **SigId** (str) - (Required) 已申请的短信签名ID(短信签名申请时的工单ID);签名ID和签名至少需填写1项;
196
+ - **SigContent** (str) - 签名内容;签名ID和签名至少需填写1项;
197
+
198
+ **Response**
199
+
200
+ - **Data** (dict) - 见 **OutSignature** 模型定义
201
+ - **Message** (str) - 发生错误时,表示具体错误描述
202
+
203
+ **Response Model**
204
+
205
+ **OutSignature**
206
+ - **ErrDesc** (str) - 短信签名未通过审核原因
207
+ - **SigContent** (str) - 短信签名内容
208
+ - **SigId** (str) - 短信签名ID
209
+ - **Status** (int) - 签名状态,0-待审核 1-审核中 2-审核通过 3-审核未通过 4-被禁用
210
+
211
+
212
+ """
213
+ # build request
214
+ d = {
215
+ "ProjectId": self.config.project_id,
216
+ }
217
+ req and d.update(req)
218
+ d = apis.QueryISMSSignatureRequestSchema().dumps(d)
219
+
220
+ resp = self.invoke("QueryISMSSignature", d, **kwargs)
221
+ return apis.QueryISMSSignatureResponseSchema().loads(resp)
222
+
223
+ def query_isms_template(
224
+ self, req: typing.Optional[dict] = None, **kwargs
225
+ ) -> dict:
226
+ """QueryISMSTemplate - 查询模板状态信息
227
+
228
+ **Request**
229
+
230
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
231
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
232
+ - **TemplateId** (str) - (Required) 模板Id
233
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
234
+
235
+ **Response**
236
+
237
+ - **Data** (dict) - 见 **OutTemplate** 模型定义
238
+ - **Message** (str) - 错误信息
239
+ - **ReqUuid** (str) - 本次请求uuid
240
+
241
+ **Response Model**
242
+
243
+ **OutTemplate**
244
+ - **CreateTime** (int) - 创建时间,时间戳格式1629357838
245
+ - **ExpireTime** (int) - 截止有效时间,时间戳格式1629357838
246
+ - **Purpose** (int) - 视频短信类型(3-会员营销)
247
+ - **Remark** (str) - 备注信息
248
+ - **StatusDesc** (str) - 状态描述。json格式,给出运营商维度的审核状态信息,示例:{"telecom_status":2,"telecom_desc":"审核通过","unicom_status":2,"unicom_desc":"审核通过","mobile_status":2,"mobile_desc":"审核通过"}。状态枚举值:0-创建模板时未向该运营商报备 1->审核中 2->审核通过 3->审核未通过 4->禁用 7->过期 11->待审核
249
+ - **TemplateId** (str) - 模板ID
250
+ - **TemplateName** (str) - 模板名称
251
+
252
+
253
+ """
254
+ # build request
255
+ d = {
256
+ "ProjectId": self.config.project_id,
257
+ "Region": self.config.region,
258
+ }
259
+ req and d.update(req)
260
+ d = apis.QueryISMSTemplateRequestSchema().dumps(d)
261
+
262
+ resp = self.invoke("QueryISMSTemplate", d, **kwargs)
263
+ return apis.QueryISMSTemplateResponseSchema().loads(resp)
264
+
265
+ def send_isms_message(
266
+ self, req: typing.Optional[dict] = None, **kwargs
267
+ ) -> dict:
268
+ """SendISMSMessage - 发送视频短信
269
+
270
+ **Request**
271
+
272
+ - **ProjectId** (str) - (Config) 项目ID。不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
273
+ - **Region** (str) - (Config) 地域。 参见 `地域和可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
274
+ - **PhoneSet** (list) - (Required) 手机号码列表。暂时只支持中国大陆号码。若号码中带区号,需要将区号使用小括号包含,放在号码前面。如: (86)1851623xxxx
275
+ - **TemplateId** (str) - (Required) 视频短信模板Id
276
+ - **Zone** (str) - (Required) 可用区。参见 `可用区列表 <https://docs.ucloud.cn/api/summary/regionlist>`_
277
+
278
+ **Response**
279
+
280
+ - **Message** (str) - 错误信息
281
+ - **ReqUuid** (str) - 本次请求uuid
282
+ - **TaskId** (str) - 本次调用TaskId,使用该字段查询回执信息
283
+
284
+ """
285
+ # build request
286
+ d = {
287
+ "ProjectId": self.config.project_id,
288
+ "Region": self.config.region,
289
+ }
290
+ req and d.update(req)
291
+ d = apis.SendISMSMessageRequestSchema().dumps(d)
292
+
293
+ # build options
294
+ kwargs["max_retries"] = 0 # ignore retry when api is not idempotent
295
+
296
+ resp = self.invoke("SendISMSMessage", d, **kwargs)
297
+ return apis.SendISMSMessageResponseSchema().loads(resp)
298
+
299
+ def update_isms_signature(
300
+ self, req: typing.Optional[dict] = None, **kwargs
301
+ ) -> dict:
302
+ """UpdateISMSSignature - 调用接口UpdateISMSSignature修改未通过审核的视频短信签名,并重新提交审核
303
+
304
+ **Request**
305
+
306
+ - **ProjectId** (str) - (Config) 项目ID,不填写为默认项目,子帐号必须填写。 请参考 `GetProjectList接口 <https://docs.ucloud.cn/api/summary/get_project_list>`_
307
+ - **SigContent** (str) - (Required) 新的短信签名内容;长度为2-12个字符, 可包含中文、数字和符号;无需填写【】或[],系统会自动添加
308
+ - **SigId** (str) - (Required) 签名ID,支持以数组的方式,举例,以SigIds.0、SigIds.1...SigIds.N方式传入
309
+ - **SigPurpose** (int) - (Required) 签名用途,0-自用,1-他用;
310
+ - **SigType** (int) - (Required) 签名类型,说明如下:0-公司或企业的全称或简称;1-App应用的全称或简称;2-工信部备案网站的全称或简称;3-公众号或小程序的全称或简称;4-商标名的全称或简称;5-政府/机关事业单位/其他单位的全称或简称;
311
+ - **CertificateType** (int) - 签名的资质证明文件类型,需与签名类型保持一致,说明如下:0-三证合一/企业营业执照/组织机构代码证书/社会信用代码证书;1-应用商店后台开发者管理截图;2-备案服务商的备案成功截图(含域名,网站名称,备案号);3-公众号或小程序的管理界面截图;4-商标注册证书;5-组织机构代码证书、社会信用代码证书;
312
+ - **Document** (str) - 短信签名的资质证明文件URL,若未更改审核材料,则该处使用已上传审核材料的URL链接,否则使用File参数
313
+ - **File** (str) - 短信签名的资质证明文件内容,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB。内容格式如下: [file type];[code type],[base64] 如:image/jpeg;base64,5YaF5a65
314
+ - **ProxyDoc** (str) - 短信签名授权委托文件URL,若未更改授权委托文件,则该处填写已上传的授权委托文件的URL链接,否则使用ProxyFile参数
315
+ - **ProxyFile** (str) - 短信签名授权委托文件内容,需先进行base64编码格式转换,此处填写转换后的字符串。文件大小不超过4 MB;当您是代理并使用第三方的签名时(也即SigPurpose为1-他用),该项为必填项;格式和File类似。
316
+
317
+ **Response**
318
+
319
+ - **Message** (str) - 返回状态码描述,如果操作成功,默认返回为空
320
+
321
+ """
322
+ # build request
323
+ d = {
324
+ "ProjectId": self.config.project_id,
325
+ }
326
+ req and d.update(req)
327
+ d = apis.UpdateISMSSignatureRequestSchema().dumps(d)
328
+
329
+ resp = self.invoke("UpdateISMSSignature", d, **kwargs)
330
+ return apis.UpdateISMSSignatureResponseSchema().loads(resp)
File without changes
@@ -0,0 +1,272 @@
1
+ """ Code is generated by ucloud-model, DO NOT EDIT IT. """
2
+
3
+ from ucloud.core.typesystem import schema, fields
4
+ from ucloud.services.isms.schemas import models
5
+
6
+ """ ISMS API Schema
7
+ """
8
+
9
+
10
+ """
11
+ API: CreateISMSSignature
12
+
13
+ 调用接口CreateISMSSignature申请视频短信签名
14
+ """
15
+
16
+
17
+ class CreateISMSSignatureRequestSchema(schema.RequestSchema):
18
+ """CreateISMSSignature - 调用接口CreateISMSSignature申请视频短信签名"""
19
+
20
+ fields = {
21
+ "CertificateType": fields.Int(required=True, dump_to="CertificateType"),
22
+ "Description": fields.Str(required=True, dump_to="Description"),
23
+ "File": fields.Str(required=True, dump_to="File"),
24
+ "ProjectId": fields.Str(required=True, dump_to="ProjectId"),
25
+ "ProxyFile": fields.Str(required=False, dump_to="ProxyFile"),
26
+ "SigContent": fields.Str(required=True, dump_to="SigContent"),
27
+ "SigPurpose": fields.Int(required=True, dump_to="SigPurpose"),
28
+ "SigType": fields.Int(required=True, dump_to="SigType"),
29
+ }
30
+
31
+
32
+ class CreateISMSSignatureResponseSchema(schema.ResponseSchema):
33
+ """CreateISMSSignature - 调用接口CreateISMSSignature申请视频短信签名"""
34
+
35
+ fields = {
36
+ "Message": fields.Str(required=True, load_from="Message"),
37
+ "SigId": fields.Str(required=False, load_from="SigId"),
38
+ }
39
+
40
+
41
+ """
42
+ API: CreateISMSTemplate
43
+
44
+ 申请视频短信模板
45
+ """
46
+
47
+
48
+ class CreateISMSTemplateRequestSchema(schema.RequestSchema):
49
+ """CreateISMSTemplate - 申请视频短信模板"""
50
+
51
+ fields = {
52
+ "Content": fields.Str(required=True, dump_to="Content"),
53
+ "MsgSignature": fields.Str(required=True, dump_to="MsgSignature"),
54
+ "MsgTitle": fields.Str(required=True, dump_to="MsgTitle"),
55
+ "NetworkOperator": fields.Str(
56
+ required=False, dump_to="NetworkOperator"
57
+ ), # Deprecated, will be removed at 1.0
58
+ "ProjectId": fields.Str(required=True, dump_to="ProjectId"),
59
+ "Purpose": fields.Int(
60
+ required=False, dump_to="Purpose"
61
+ ), # Deprecated, will be removed at 1.0
62
+ "Region": fields.Str(required=False, dump_to="Region"),
63
+ "Remark": fields.Str(required=True, dump_to="Remark"),
64
+ "TemplateName": fields.Str(required=True, dump_to="TemplateName"),
65
+ "UnsubscribeInfo": fields.Str(required=True, dump_to="UnsubscribeInfo"),
66
+ "Zone": fields.Str(required=False, dump_to="Zone"),
67
+ }
68
+
69
+
70
+ class CreateISMSTemplateResponseSchema(schema.ResponseSchema):
71
+ """CreateISMSTemplate - 申请视频短信模板"""
72
+
73
+ fields = {
74
+ "Message": fields.Str(required=True, load_from="Message"),
75
+ "ReqUuid": fields.Str(required=True, load_from="ReqUuid"),
76
+ "TemplateId": fields.Str(required=True, load_from="TemplateId"),
77
+ }
78
+
79
+
80
+ """
81
+ API: DeleteISMSSignature
82
+
83
+ 调用接口DeleteISMSSignature删除视频短信签名
84
+ """
85
+
86
+
87
+ class DeleteISMSSignatureRequestSchema(schema.RequestSchema):
88
+ """DeleteISMSSignature - 调用接口DeleteISMSSignature删除视频短信签名"""
89
+
90
+ fields = {
91
+ "ProjectId": fields.Str(required=True, dump_to="ProjectId"),
92
+ "SigIds": fields.List(fields.Str()),
93
+ }
94
+
95
+
96
+ class DeleteISMSSignatureResponseSchema(schema.ResponseSchema):
97
+ """DeleteISMSSignature - 调用接口DeleteISMSSignature删除视频短信签名"""
98
+
99
+ fields = {
100
+ "Message": fields.Str(required=True, load_from="Message"),
101
+ }
102
+
103
+
104
+ """
105
+ API: DeleteISMSTemplate
106
+
107
+ 调用接口DeleteISMSTemplate删除视频短信模板
108
+ """
109
+
110
+
111
+ class DeleteISMSTemplateRequestSchema(schema.RequestSchema):
112
+ """DeleteISMSTemplate - 调用接口DeleteISMSTemplate删除视频短信模板"""
113
+
114
+ fields = {
115
+ "ProjectId": fields.Str(required=True, dump_to="ProjectId"),
116
+ "TemplateIds": fields.List(fields.Str()),
117
+ }
118
+
119
+
120
+ class DeleteISMSTemplateResponseSchema(schema.ResponseSchema):
121
+ """DeleteISMSTemplate - 调用接口DeleteISMSTemplate删除视频短信模板"""
122
+
123
+ fields = {
124
+ "Message": fields.Str(required=True, load_from="Message"),
125
+ }
126
+
127
+
128
+ """
129
+ API: GetISMSSendReceipt
130
+
131
+ 获取视频短信发送记录的状态回执
132
+ """
133
+
134
+
135
+ class GetISMSSendReceiptRequestSchema(schema.RequestSchema):
136
+ """GetISMSSendReceipt - 获取视频短信发送记录的状态回执"""
137
+
138
+ fields = {
139
+ "ProjectId": fields.Str(required=False, dump_to="ProjectId"),
140
+ "Region": fields.Str(required=True, dump_to="Region"),
141
+ "TaskIdSet": fields.List(fields.Str()),
142
+ "Zone": fields.Str(required=True, dump_to="Zone"),
143
+ }
144
+
145
+
146
+ class GetISMSSendReceiptResponseSchema(schema.ResponseSchema):
147
+ """GetISMSSendReceipt - 获取视频短信发送记录的状态回执"""
148
+
149
+ fields = {
150
+ "Data": fields.List(
151
+ models.ReceiptPerTaskSchema(), required=False, load_from="Data"
152
+ ),
153
+ "Message": fields.Str(required=True, load_from="Message"),
154
+ "ReqUuid": fields.Str(required=True, load_from="ReqUuid"),
155
+ }
156
+
157
+
158
+ """
159
+ API: QueryISMSSignature
160
+
161
+ 调用接口QueryISMSSignature查询视频短信签名申请状态
162
+ """
163
+
164
+
165
+ class QueryISMSSignatureRequestSchema(schema.RequestSchema):
166
+ """QueryISMSSignature - 调用接口QueryISMSSignature查询视频短信签名申请状态"""
167
+
168
+ fields = {
169
+ "ProjectId": fields.Str(required=False, dump_to="ProjectId"),
170
+ "SigContent": fields.Str(required=False, dump_to="SigContent"),
171
+ "SigId": fields.Str(required=True, dump_to="SigId"),
172
+ }
173
+
174
+
175
+ class QueryISMSSignatureResponseSchema(schema.ResponseSchema):
176
+ """QueryISMSSignature - 调用接口QueryISMSSignature查询视频短信签名申请状态"""
177
+
178
+ fields = {
179
+ "Data": models.OutSignatureSchema(),
180
+ "Message": fields.Str(required=True, load_from="Message"),
181
+ }
182
+
183
+
184
+ """
185
+ API: QueryISMSTemplate
186
+
187
+ 查询模板状态信息
188
+ """
189
+
190
+
191
+ class QueryISMSTemplateRequestSchema(schema.RequestSchema):
192
+ """QueryISMSTemplate - 查询模板状态信息"""
193
+
194
+ fields = {
195
+ "ProjectId": fields.Str(required=False, dump_to="ProjectId"),
196
+ "Region": fields.Str(required=True, dump_to="Region"),
197
+ "TemplateId": fields.Str(required=True, dump_to="TemplateId"),
198
+ "Zone": fields.Str(required=True, dump_to="Zone"),
199
+ }
200
+
201
+
202
+ class QueryISMSTemplateResponseSchema(schema.ResponseSchema):
203
+ """QueryISMSTemplate - 查询模板状态信息"""
204
+
205
+ fields = {
206
+ "Data": models.OutTemplateSchema(),
207
+ "Message": fields.Str(required=True, load_from="Message"),
208
+ "ReqUuid": fields.Str(required=False, load_from="ReqUuid"),
209
+ }
210
+
211
+
212
+ """
213
+ API: SendISMSMessage
214
+
215
+ 发送视频短信
216
+ """
217
+
218
+
219
+ class SendISMSMessageRequestSchema(schema.RequestSchema):
220
+ """SendISMSMessage - 发送视频短信"""
221
+
222
+ fields = {
223
+ "PhoneSet": fields.List(fields.Str()),
224
+ "ProjectId": fields.Str(required=False, dump_to="ProjectId"),
225
+ "Region": fields.Str(required=True, dump_to="Region"),
226
+ "TemplateId": fields.Str(required=True, dump_to="TemplateId"),
227
+ "Zone": fields.Str(required=True, dump_to="Zone"),
228
+ }
229
+
230
+
231
+ class SendISMSMessageResponseSchema(schema.ResponseSchema):
232
+ """SendISMSMessage - 发送视频短信"""
233
+
234
+ fields = {
235
+ "Message": fields.Str(required=True, load_from="Message"),
236
+ "ReqUuid": fields.Str(required=True, load_from="ReqUuid"),
237
+ "TaskId": fields.Str(required=True, load_from="TaskId"),
238
+ }
239
+
240
+
241
+ """
242
+ API: UpdateISMSSignature
243
+
244
+ 调用接口UpdateISMSSignature修改未通过审核的视频短信签名,并重新提交审核
245
+ """
246
+
247
+
248
+ class UpdateISMSSignatureRequestSchema(schema.RequestSchema):
249
+ """UpdateISMSSignature - 调用接口UpdateISMSSignature修改未通过审核的视频短信签名,并重新提交审核"""
250
+
251
+ fields = {
252
+ "CertificateType": fields.Int(
253
+ required=False, dump_to="CertificateType"
254
+ ),
255
+ "Document": fields.Str(required=False, dump_to="Document"),
256
+ "File": fields.Str(required=False, dump_to="File"),
257
+ "ProjectId": fields.Str(required=True, dump_to="ProjectId"),
258
+ "ProxyDoc": fields.Str(required=False, dump_to="ProxyDoc"),
259
+ "ProxyFile": fields.Str(required=False, dump_to="ProxyFile"),
260
+ "SigContent": fields.Str(required=True, dump_to="SigContent"),
261
+ "SigId": fields.Str(required=True, dump_to="SigId"),
262
+ "SigPurpose": fields.Int(required=True, dump_to="SigPurpose"),
263
+ "SigType": fields.Int(required=True, dump_to="SigType"),
264
+ }
265
+
266
+
267
+ class UpdateISMSSignatureResponseSchema(schema.ResponseSchema):
268
+ """UpdateISMSSignature - 调用接口UpdateISMSSignature修改未通过审核的视频短信签名,并重新提交审核"""
269
+
270
+ fields = {
271
+ "Message": fields.Str(required=True, load_from="Message"),
272
+ }
@@ -0,0 +1,50 @@
1
+ """ Code is generated by ucloud-model, DO NOT EDIT IT. """
2
+
3
+ from ucloud.core.typesystem import schema, fields
4
+
5
+
6
+ class ReceiptPerPhoneSchema(schema.ResponseSchema):
7
+ """ReceiptPerPhone - 每个目的手机号的发送回执信息"""
8
+
9
+ fields = {
10
+ "Phone": fields.Str(required=True, load_from="Phone"),
11
+ "ReceiptCode": fields.Str(required=True, load_from="ReceiptCode"),
12
+ "ReceiptDesc": fields.Str(required=True, load_from="ReceiptDesc"),
13
+ "ReceiptResult": fields.Str(required=True, load_from="ReceiptResult"),
14
+ "ReceiptTime": fields.Int(required=True, load_from="ReceiptTime"),
15
+ "SessionId": fields.Str(required=True, load_from="SessionId"),
16
+ }
17
+
18
+
19
+ class ReceiptPerTaskSchema(schema.ResponseSchema):
20
+ """ReceiptPerTask - 每个提交任务的视频短信的回执结果集合"""
21
+
22
+ fields = {
23
+ "ReceiptSet": fields.List(ReceiptPerPhoneSchema()),
24
+ "TaskId": fields.Str(required=True, load_from="TaskId"),
25
+ }
26
+
27
+
28
+ class OutSignatureSchema(schema.ResponseSchema):
29
+ """OutSignature - 短信签名"""
30
+
31
+ fields = {
32
+ "ErrDesc": fields.Str(required=True, load_from="ErrDesc"),
33
+ "SigContent": fields.Str(required=True, load_from="SigContent"),
34
+ "SigId": fields.Str(required=True, load_from="SigId"),
35
+ "Status": fields.Int(required=True, load_from="Status"),
36
+ }
37
+
38
+
39
+ class OutTemplateSchema(schema.ResponseSchema):
40
+ """OutTemplate - 模板状态"""
41
+
42
+ fields = {
43
+ "CreateTime": fields.Int(required=False, load_from="CreateTime"),
44
+ "ExpireTime": fields.Int(required=False, load_from="ExpireTime"),
45
+ "Purpose": fields.Int(required=False, load_from="Purpose"),
46
+ "Remark": fields.Str(required=False, load_from="Remark"),
47
+ "StatusDesc": fields.Str(required=False, load_from="StatusDesc"),
48
+ "TemplateId": fields.Str(required=False, load_from="TemplateId"),
49
+ "TemplateName": fields.Str(required=False, load_from="TemplateName"),
50
+ }
File without changes