tccli 3.0.1199.1__py2.py3-none-any.whl → 3.0.1201.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/aiart/v20221229/api.json +7 -7
  4. tccli/services/autoscaling/v20180419/api.json +33 -5
  5. tccli/services/autoscaling/v20180419/examples.json +3 -3
  6. tccli/services/batch/v20170312/api.json +2 -2
  7. tccli/services/billing/v20180709/examples.json +2 -2
  8. tccli/services/ca/__init__.py +4 -0
  9. tccli/services/ca/ca_client.py +301 -0
  10. tccli/services/ca/v20230228/api.json +264 -0
  11. tccli/services/ca/v20230228/examples.json +41 -0
  12. tccli/services/ccc/ccc_client.py +153 -47
  13. tccli/services/ccc/v20200210/api.json +185 -1
  14. tccli/services/ccc/v20200210/examples.json +17 -1
  15. tccli/services/cdn/v20180606/api.json +30 -1
  16. tccli/services/cdwdoris/v20211228/api.json +5 -1
  17. tccli/services/cvm/cvm_client.py +53 -0
  18. tccli/services/cvm/v20170312/api.json +173 -25
  19. tccli/services/cvm/v20170312/examples.json +9 -1
  20. tccli/services/cwp/v20180228/api.json +2 -2
  21. tccli/services/cynosdb/v20190107/api.json +56 -56
  22. tccli/services/dasb/v20191018/api.json +32 -3
  23. tccli/services/dts/v20211206/api.json +19 -19
  24. tccli/services/emr/v20190103/api.json +9 -0
  25. tccli/services/ess/v20201111/api.json +18 -18
  26. tccli/services/ess/v20201111/examples.json +0 -6
  27. tccli/services/essbasic/v20210526/api.json +16 -7
  28. tccli/services/essbasic/v20210526/examples.json +0 -6
  29. tccli/services/lcic/v20220817/api.json +1 -1
  30. tccli/services/lighthouse/v20200324/api.json +2 -2
  31. tccli/services/mqtt/v20240516/api.json +1 -1
  32. tccli/services/mrs/v20200910/api.json +71 -1
  33. tccli/services/ocr/v20181119/api.json +10 -0
  34. tccli/services/omics/v20221128/api.json +181 -34
  35. tccli/services/ses/v20201002/api.json +50 -0
  36. tccli/services/ses/v20201002/examples.json +6 -0
  37. tccli/services/ssl/v20191205/api.json +48 -0
  38. tccli/services/tcb/v20180608/api.json +21 -1
  39. tccli/services/teo/teo_client.py +724 -141
  40. tccli/services/teo/v20220901/api.json +993 -106
  41. tccli/services/teo/v20220901/examples.json +112 -0
  42. tccli/services/tke/v20180525/api.json +7 -4
  43. tccli/services/tts/v20190823/api.json +1 -1
  44. tccli/services/vpc/v20170312/api.json +1278 -3
  45. tccli/services/vpc/v20170312/examples.json +176 -0
  46. tccli/services/vpc/vpc_client.py +1315 -149
  47. {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/METADATA +2 -2
  48. {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/RECORD +51 -47
  49. {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/WHEEL +0 -0
  50. {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/entry_points.txt +0 -0
  51. {tccli-3.0.1199.1.dist-info → tccli-3.0.1201.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,301 @@
1
+ # -*- coding: utf-8 -*-
2
+ import os
3
+ import sys
4
+ import six
5
+ import json
6
+ import tccli.options_define as OptionsDefine
7
+ import tccli.format_output as FormatOutput
8
+ from tccli import __version__
9
+ from tccli.utils import Utils
10
+ from tccli.exceptions import ConfigurationError, ClientError, ParamError
11
+ from tencentcloud.common import credential
12
+ from tencentcloud.common.profile.http_profile import HttpProfile
13
+ from tencentcloud.common.profile.client_profile import ClientProfile
14
+ from tencentcloud.ca.v20230228 import ca_client as ca_client_v20230228
15
+ from tencentcloud.ca.v20230228 import models as models_v20230228
16
+
17
+ from jmespath import search
18
+ import time
19
+
20
+ def doDescribeVerifyReport(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.CaClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.DescribeVerifyReportRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.DescribeVerifyReport(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
72
+ def doCreateVerifyReport(args, parsed_globals):
73
+ g_param = parse_global_arg(parsed_globals)
74
+
75
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
+ cred = credential.CVMRoleCredential()
77
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
+ cred = credential.STSAssumeRoleCredential(
79
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
+ )
82
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
83
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
+ else:
85
+ cred = credential.Credential(
86
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
+ )
88
+ http_profile = HttpProfile(
89
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
+ reqMethod="POST",
91
+ endpoint=g_param[OptionsDefine.Endpoint],
92
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
+ )
94
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
+ if g_param[OptionsDefine.Language]:
96
+ profile.language = g_param[OptionsDefine.Language]
97
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
+ client = mod.CaClient(cred, g_param[OptionsDefine.Region], profile)
99
+ client._sdkVersion += ("_CLI_" + __version__)
100
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
+ model = models.CreateVerifyReportRequest()
102
+ model.from_json_string(json.dumps(args))
103
+ start_time = time.time()
104
+ while True:
105
+ rsp = client.CreateVerifyReport(model)
106
+ result = rsp.to_json_string()
107
+ try:
108
+ json_obj = json.loads(result)
109
+ except TypeError as e:
110
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
111
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
+ break
113
+ cur_time = time.time()
114
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
+ else:
119
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
+
123
+
124
+ def doUploadFile(args, parsed_globals):
125
+ g_param = parse_global_arg(parsed_globals)
126
+
127
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
128
+ cred = credential.CVMRoleCredential()
129
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
130
+ cred = credential.STSAssumeRoleCredential(
131
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
132
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
133
+ )
134
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
135
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
136
+ else:
137
+ cred = credential.Credential(
138
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
139
+ )
140
+ http_profile = HttpProfile(
141
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
142
+ reqMethod="POST",
143
+ endpoint=g_param[OptionsDefine.Endpoint],
144
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
145
+ )
146
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
147
+ if g_param[OptionsDefine.Language]:
148
+ profile.language = g_param[OptionsDefine.Language]
149
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
150
+ client = mod.CaClient(cred, g_param[OptionsDefine.Region], profile)
151
+ client._sdkVersion += ("_CLI_" + __version__)
152
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
+ model = models.UploadFileRequest()
154
+ model.from_json_string(json.dumps(args))
155
+ start_time = time.time()
156
+ while True:
157
+ rsp = client.UploadFile(model)
158
+ result = rsp.to_json_string()
159
+ try:
160
+ json_obj = json.loads(result)
161
+ except TypeError as e:
162
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
163
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
164
+ break
165
+ cur_time = time.time()
166
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
167
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
168
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
169
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
170
+ else:
171
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
172
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
173
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
+
175
+
176
+ CLIENT_MAP = {
177
+ "v20230228": ca_client_v20230228,
178
+
179
+ }
180
+
181
+ MODELS_MAP = {
182
+ "v20230228": models_v20230228,
183
+
184
+ }
185
+
186
+ ACTION_MAP = {
187
+ "DescribeVerifyReport": doDescribeVerifyReport,
188
+ "CreateVerifyReport": doCreateVerifyReport,
189
+ "UploadFile": doUploadFile,
190
+
191
+ }
192
+
193
+ AVAILABLE_VERSION_LIST = [
194
+ "v20230228",
195
+
196
+ ]
197
+
198
+
199
+ def action_caller():
200
+ return ACTION_MAP
201
+
202
+
203
+ def parse_global_arg(parsed_globals):
204
+ g_param = parsed_globals
205
+
206
+ is_exist_profile = True
207
+ if not parsed_globals["profile"]:
208
+ is_exist_profile = False
209
+ g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
210
+
211
+ configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
212
+ is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
213
+ is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
214
+
215
+ conf = {}
216
+ cred = {}
217
+
218
+ if is_conf_exist:
219
+ conf = Utils.load_json_msg(conf_path)
220
+ if is_cred_exist:
221
+ cred = Utils.load_json_msg(cred_path)
222
+
223
+ if not (isinstance(conf, dict) and isinstance(cred, dict)):
224
+ raise ConfigurationError(
225
+ "file: %s or %s is not json format"
226
+ % (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
227
+
228
+ if OptionsDefine.Token not in cred:
229
+ cred[OptionsDefine.Token] = None
230
+
231
+ if not is_exist_profile:
232
+ if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
233
+ cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
234
+ cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
235
+ cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
236
+
237
+ if os.environ.get(OptionsDefine.ENV_REGION):
238
+ conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
239
+
240
+ if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
241
+ cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
242
+ cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
243
+
244
+ for param in g_param.keys():
245
+ if g_param[param] is None:
246
+ if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
247
+ if param in cred:
248
+ g_param[param] = cred[param]
249
+ elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
250
+ or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
251
+ raise ConfigurationError("%s is invalid" % param)
252
+ elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
253
+ if param in conf[OptionsDefine.SysParam]:
254
+ g_param[param] = conf[OptionsDefine.SysParam][param]
255
+ elif param != OptionsDefine.Language:
256
+ raise ConfigurationError("%s is invalid" % param)
257
+ elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
258
+ if param.replace('_', '-') in cred:
259
+ g_param[param] = cred[param.replace('_', '-')]
260
+
261
+ try:
262
+ if g_param[OptionsDefine.ServiceVersion]:
263
+ g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
264
+ else:
265
+ version = conf["ca"][OptionsDefine.Version]
266
+ g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
267
+
268
+ if g_param[OptionsDefine.Endpoint] is None:
269
+ g_param[OptionsDefine.Endpoint] = conf["ca"][OptionsDefine.Endpoint]
270
+ g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
271
+ except Exception as err:
272
+ raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
273
+
274
+ if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
275
+ raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
276
+
277
+ if g_param[OptionsDefine.Waiter]:
278
+ param = eval(g_param[OptionsDefine.Waiter])
279
+ if 'expr' not in param:
280
+ raise Exception('`expr` in `--waiter` must be defined')
281
+ if 'to' not in param:
282
+ raise Exception('`to` in `--waiter` must be defined')
283
+ if 'timeout' not in param:
284
+ if 'waiter' in conf and 'timeout' in conf['waiter']:
285
+ param['timeout'] = conf['waiter']['timeout']
286
+ else:
287
+ param['timeout'] = 180
288
+ if 'interval' not in param:
289
+ if 'waiter' in conf and 'interval' in conf['waiter']:
290
+ param['interval'] = conf['waiter']['interval']
291
+ else:
292
+ param['interval'] = 5
293
+ param['interval'] = min(param['interval'], param['timeout'])
294
+ g_param['OptionsDefine.WaiterInfo'] = param
295
+
296
+ if six.PY2:
297
+ for key, value in g_param.items():
298
+ if isinstance(value, six.text_type):
299
+ g_param[key] = value.encode('utf-8')
300
+ return g_param
301
+
@@ -0,0 +1,264 @@
1
+ {
2
+ "actions": {
3
+ "CreateVerifyReport": {
4
+ "document": "创建签名验证报告任务,此接口为异步盖章接口,盖章时效24小时。",
5
+ "input": "CreateVerifyReportRequest",
6
+ "name": "创建验证报告",
7
+ "output": "CreateVerifyReportResponse",
8
+ "status": "online"
9
+ },
10
+ "DescribeVerifyReport": {
11
+ "document": "下载验签报告url,url有效期默认12小时",
12
+ "input": "DescribeVerifyReportRequest",
13
+ "name": "查询验签报告",
14
+ "output": "DescribeVerifyReportResponse",
15
+ "status": "online"
16
+ },
17
+ "UploadFile": {
18
+ "document": "文件上传接口",
19
+ "input": "UploadFileRequest",
20
+ "name": "文件上传",
21
+ "output": "UploadFileResponse",
22
+ "status": "online"
23
+ }
24
+ },
25
+ "metadata": {
26
+ "apiVersion": "2023-02-28",
27
+ "api_brief": "用户申请/管理证书的接口,包括申请、查询、更新、吊销等。",
28
+ "serviceNameCN": "腾讯云CA",
29
+ "serviceShortName": "ca"
30
+ },
31
+ "objects": {
32
+ "CreateVerifyReportRequest": {
33
+ "document": "CreateVerifyReport请求参数结构体",
34
+ "members": [
35
+ {
36
+ "disabled": false,
37
+ "document": "申请者类型 1:个人,2:企业",
38
+ "example": "1",
39
+ "member": "string",
40
+ "name": "ApplyCustomerType",
41
+ "required": true,
42
+ "type": "string"
43
+ },
44
+ {
45
+ "disabled": false,
46
+ "document": "申请企业 or 自然人名称",
47
+ "example": "李四",
48
+ "member": "string",
49
+ "name": "ApplyCustomerName",
50
+ "required": true,
51
+ "type": "string"
52
+ },
53
+ {
54
+ "disabled": false,
55
+ "document": "验签申请经办人姓名",
56
+ "example": "张三",
57
+ "member": "string",
58
+ "name": "ApplyName",
59
+ "required": true,
60
+ "type": "string"
61
+ },
62
+ {
63
+ "disabled": false,
64
+ "document": "验签申请经办人电话",
65
+ "example": "无",
66
+ "member": "string",
67
+ "name": "ApplyMobile",
68
+ "required": true,
69
+ "type": "string"
70
+ },
71
+ {
72
+ "disabled": false,
73
+ "document": "验签文件id",
74
+ "example": "无",
75
+ "member": "string",
76
+ "name": "FileId",
77
+ "required": true,
78
+ "type": "string"
79
+ },
80
+ {
81
+ "disabled": false,
82
+ "document": "验签申请经办人邮箱",
83
+ "example": "无",
84
+ "member": "string",
85
+ "name": "ApplyEmail",
86
+ "required": false,
87
+ "type": "string"
88
+ }
89
+ ],
90
+ "type": "object"
91
+ },
92
+ "CreateVerifyReportResponse": {
93
+ "document": "CreateVerifyReport返回参数结构体",
94
+ "members": [
95
+ {
96
+ "disabled": false,
97
+ "document": "签名id",
98
+ "example": "无",
99
+ "member": "string",
100
+ "name": "SignatureId",
101
+ "output_required": false,
102
+ "type": "string",
103
+ "value_allowed_null": false
104
+ },
105
+ {
106
+ "disabled": false,
107
+ "document": "code",
108
+ "example": "无",
109
+ "member": "string",
110
+ "name": "Code",
111
+ "output_required": false,
112
+ "type": "string",
113
+ "value_allowed_null": false
114
+ },
115
+ {
116
+ "disabled": false,
117
+ "document": "message",
118
+ "example": "无",
119
+ "member": "string",
120
+ "name": "Message",
121
+ "output_required": false,
122
+ "type": "string",
123
+ "value_allowed_null": false
124
+ },
125
+ {
126
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
127
+ "member": "string",
128
+ "name": "RequestId",
129
+ "type": "string"
130
+ }
131
+ ],
132
+ "type": "object"
133
+ },
134
+ "DescribeVerifyReportRequest": {
135
+ "document": "DescribeVerifyReport请求参数结构体",
136
+ "members": [
137
+ {
138
+ "disabled": false,
139
+ "document": "签名id",
140
+ "example": "无",
141
+ "member": "string",
142
+ "name": "SignatureId",
143
+ "required": true,
144
+ "type": "string"
145
+ }
146
+ ],
147
+ "type": "object"
148
+ },
149
+ "DescribeVerifyReportResponse": {
150
+ "document": "DescribeVerifyReport返回参数结构体",
151
+ "members": [
152
+ {
153
+ "disabled": false,
154
+ "document": "下载url",
155
+ "example": "无",
156
+ "member": "string",
157
+ "name": "ReportUrl",
158
+ "output_required": false,
159
+ "type": "string",
160
+ "value_allowed_null": false
161
+ },
162
+ {
163
+ "disabled": false,
164
+ "document": "code",
165
+ "example": "无",
166
+ "member": "string",
167
+ "name": "Code",
168
+ "output_required": false,
169
+ "type": "string",
170
+ "value_allowed_null": false
171
+ },
172
+ {
173
+ "disabled": false,
174
+ "document": "message",
175
+ "example": "无",
176
+ "member": "string",
177
+ "name": "Message",
178
+ "output_required": false,
179
+ "type": "string",
180
+ "value_allowed_null": false
181
+ },
182
+ {
183
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
184
+ "member": "string",
185
+ "name": "RequestId",
186
+ "type": "string"
187
+ }
188
+ ],
189
+ "type": "object"
190
+ },
191
+ "FileInfo": {
192
+ "document": "文件列表信息",
193
+ "members": [
194
+ {
195
+ "disabled": false,
196
+ "document": "BASE64编码后的文件内容",
197
+ "example": "无",
198
+ "member": "string",
199
+ "name": "FileBody",
200
+ "required": false,
201
+ "type": "string"
202
+ },
203
+ {
204
+ "disabled": false,
205
+ "document": "文件名及类型,最大长度不超过200字符",
206
+ "example": "test.pdf",
207
+ "member": "string",
208
+ "name": "FileName",
209
+ "required": false,
210
+ "type": "string"
211
+ }
212
+ ],
213
+ "usage": "in"
214
+ },
215
+ "UploadFileRequest": {
216
+ "document": "UploadFile请求参数结构体",
217
+ "members": [
218
+ {
219
+ "disabled": false,
220
+ "document": "验签源文件信息列表",
221
+ "example": "无",
222
+ "member": "FileInfo",
223
+ "name": "FileInfos",
224
+ "required": true,
225
+ "type": "list"
226
+ }
227
+ ],
228
+ "type": "object"
229
+ },
230
+ "UploadFileResponse": {
231
+ "document": "UploadFile返回参数结构体",
232
+ "members": [
233
+ {
234
+ "disabled": false,
235
+ "document": "文件id列表",
236
+ "example": "无",
237
+ "member": "string",
238
+ "name": "FileIds",
239
+ "output_required": true,
240
+ "type": "list",
241
+ "value_allowed_null": false
242
+ },
243
+ {
244
+ "disabled": false,
245
+ "document": "文件id总数",
246
+ "example": "无",
247
+ "member": "int64",
248
+ "name": "TotalCount",
249
+ "output_required": true,
250
+ "type": "int",
251
+ "value_allowed_null": false
252
+ },
253
+ {
254
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
255
+ "member": "string",
256
+ "name": "RequestId",
257
+ "type": "string"
258
+ }
259
+ ],
260
+ "type": "object"
261
+ }
262
+ },
263
+ "version": "1.0"
264
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "actions": {
3
+ "CreateVerifyReport": [
4
+ {
5
+ "document": "验证报告盖章成功",
6
+ "input": "POST / HTTP/1.1\nHost: ca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateVerifyReport\n<公共请求参数>\n\n{\n \"ApplyCustomerType\": \"1\",\n \"ApplyCustomerName\": \"王五\",\n \"ApplyName\": \"经办人姓名\",\n \"ApplyMobile\": \"187****6446\",\n \"FileId\": \"70c2a5eaf142****aa12e81e7b03b637\",\n \"ApplyEmail\": \"969737738@qq.com\"\n}",
7
+ "output": "{\n \"Response\": {\n \"Code\": \"0\",\n \"Message\": \"2024-09-20 20:49:14 签章请求接收成功。\",\n \"RequestId\": \"67af6833-fbb6-462f-a64f-90757d68669f\",\n \"SignatureId\": \"695128****98250752\"\n }\n}",
8
+ "title": "验证报告盖章成功"
9
+ },
10
+ {
11
+ "document": "创建验签报告",
12
+ "input": "POST / HTTP/1.1\nHost: ca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateVerifyReport\n<公共请求参数>\n\n{\n \"ApplyCustomerType\": \"1\",\n \"ApplyCustomerName\": \"李四\",\n \"ApplyName\": \"王五\",\n \"ApplyMobile\": \"187****6446\",\n \"FileId\": \"27a130c8336b****865a0d251ef129b4\"\n}",
13
+ "output": "{\n \"Response\": {\n \"Code\": \"0\",\n \"Message\": \"签章请求接收成功\",\n \"RequestId\": \"b5d694f0-8a91-4bdc-a40d-2767b4ce8471\",\n \"SignatureId\": \"692175****51854336\"\n }\n}",
14
+ "title": "CreateVerifyReport"
15
+ }
16
+ ],
17
+ "DescribeVerifyReport": [
18
+ {
19
+ "document": "验签报告查询",
20
+ "input": "POST / HTTP/1.1\nHost: ca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVerifyReport\n<公共请求参数>\n\n{\n \"SignatureId\": \"6921757****1854336\"\n}",
21
+ "output": "{\n \"Response\": {\n \"ReportUrl\": \"https://file.nmgsca.com/verified/*********\",\n \"RequestId\": \"292ea5cb-4e80-417c-92fd-02d869545682\"\n }\n}",
22
+ "title": "DescribeVerifyReport"
23
+ }
24
+ ],
25
+ "UploadFile": [
26
+ {
27
+ "document": "上传验签源文件响应",
28
+ "input": "POST / HTTP/1.1\nHost: ca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadFile\n<公共请求参数>\n\n{\n \"FileInfos\": [\n {\n \"FileName\": \"rsa2.pdf\",\n \"FileBody\": \"data:application/pdf;base64,JVBERi0xLjcKJcKzx9gNCjEgMCBvYmoNPDwvTmFtZXMgPDwvRGVzd**********\"\n }\n ]\n}",
29
+ "output": "{\n \"Response\": {\n \"FileIds\": [\n \"5419c4b9f60*****a4f77bb517b092f5\"\n ],\n \"RequestId\": \"805c9ab7-9372-4bea-b355-e89548552398\",\n \"TotalCount\": 1\n }\n}",
30
+ "title": "uploadFileResponse"
31
+ },
32
+ {
33
+ "document": "资源文件上传",
34
+ "input": "POST / HTTP/1.1\nHost: ca.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadFile\n<公共请求参数>\n\n{\n \"FileInfos\": [\n {\n \"FileName\": \"1.pdf\",\n \"FileBody\": \"data:application/pdf;base64,JVBERi0xLjcKJcKzx9gNCjEgMCBvYmoNPDwvTmFtZXMgPDwvRGVzd***************\"\n }\n ]\n}",
35
+ "output": "{\n \"Response\": {\n \"FileIds\": [\n \"b9e785d8d13349****9e460b04600e16\"\n ],\n \"RequestId\": \"25b59067-3b6b-4c5f-885d-9c12f4084f27\",\n \"TotalCount\": 1\n }\n}",
36
+ "title": "uploadFile"
37
+ }
38
+ ]
39
+ },
40
+ "version": "1.0"
41
+ }