tccli 3.0.860.1__py2.py3-none-any.whl → 3.0.861.1__py2.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.
- tccli/__init__.py +1 -1
- tccli/services/cwp/v20180228/api.json +2 -2
- tccli/services/ess/ess_client.py +106 -0
- tccli/services/ess/v20201111/api.json +122 -0
- tccli/services/ess/v20201111/examples.json +28 -0
- tccli/services/ims/v20200713/examples.json +1 -1
- tccli/services/ims/v20201229/examples.json +1 -1
- tccli/services/rum/rum_client.py +261 -49
- tccli/services/rum/v20210622/api.json +478 -0
- tccli/services/rum/v20210622/examples.json +32 -0
- tccli/services/trp/trp_client.py +176 -17
- tccli/services/trp/v20210515/api.json +207 -0
- tccli/services/trp/v20210515/examples.json +24 -0
- tccli/services/waf/v20180125/api.json +288 -0
- tccli/services/waf/v20180125/examples.json +16 -0
- tccli/services/waf/waf_client.py +114 -8
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/METADATA +2 -2
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/RECORD +22 -22
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.860.1.dist-info → tccli-3.0.861.1.dist-info}/top_level.txt +0 -0
tccli/services/trp/trp_client.py
CHANGED
@@ -173,6 +173,58 @@ def doDescribeTraceCodes(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
+
def doAuthorizedTransfer(args, parsed_globals):
|
177
|
+
g_param = parse_global_arg(parsed_globals)
|
178
|
+
|
179
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
+
cred = credential.CVMRoleCredential()
|
181
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
+
cred = credential.STSAssumeRoleCredential(
|
183
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
185
|
+
)
|
186
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
187
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
+
else:
|
189
|
+
cred = credential.Credential(
|
190
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
+
)
|
192
|
+
http_profile = HttpProfile(
|
193
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
+
reqMethod="POST",
|
195
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
+
)
|
198
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
+
if g_param[OptionsDefine.Language]:
|
200
|
+
profile.language = g_param[OptionsDefine.Language]
|
201
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
+
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
+
model = models.AuthorizedTransferRequest()
|
206
|
+
model.from_json_string(json.dumps(args))
|
207
|
+
start_time = time.time()
|
208
|
+
while True:
|
209
|
+
rsp = client.AuthorizedTransfer(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
176
228
|
def doModifyProduct(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
@@ -641,6 +693,58 @@ def doDescribeCorpQuotas(args, parsed_globals):
|
|
641
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
694
|
|
643
695
|
|
696
|
+
def doReportBatchCallbackStatus(args, parsed_globals):
|
697
|
+
g_param = parse_global_arg(parsed_globals)
|
698
|
+
|
699
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
700
|
+
cred = credential.CVMRoleCredential()
|
701
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
|
+
cred = credential.STSAssumeRoleCredential(
|
703
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
705
|
+
)
|
706
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
707
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
708
|
+
else:
|
709
|
+
cred = credential.Credential(
|
710
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
711
|
+
)
|
712
|
+
http_profile = HttpProfile(
|
713
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
714
|
+
reqMethod="POST",
|
715
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
716
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
717
|
+
)
|
718
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
719
|
+
if g_param[OptionsDefine.Language]:
|
720
|
+
profile.language = g_param[OptionsDefine.Language]
|
721
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
722
|
+
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
723
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
724
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
+
model = models.ReportBatchCallbackStatusRequest()
|
726
|
+
model.from_json_string(json.dumps(args))
|
727
|
+
start_time = time.time()
|
728
|
+
while True:
|
729
|
+
rsp = client.ReportBatchCallbackStatus(model)
|
730
|
+
result = rsp.to_json_string()
|
731
|
+
try:
|
732
|
+
json_obj = json.loads(result)
|
733
|
+
except TypeError as e:
|
734
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
735
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
736
|
+
break
|
737
|
+
cur_time = time.time()
|
738
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
739
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
740
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
741
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
742
|
+
else:
|
743
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
744
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
745
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
|
+
|
747
|
+
|
644
748
|
def doModifyCustomRule(args, parsed_globals):
|
645
749
|
g_param = parse_global_arg(parsed_globals)
|
646
750
|
|
@@ -1525,6 +1629,58 @@ def doCreateCustomRule(args, parsed_globals):
|
|
1525
1629
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
1630
|
|
1527
1631
|
|
1632
|
+
def doCreateMerchant(args, parsed_globals):
|
1633
|
+
g_param = parse_global_arg(parsed_globals)
|
1634
|
+
|
1635
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1636
|
+
cred = credential.CVMRoleCredential()
|
1637
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1638
|
+
cred = credential.STSAssumeRoleCredential(
|
1639
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1640
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
1641
|
+
)
|
1642
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1643
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1644
|
+
else:
|
1645
|
+
cred = credential.Credential(
|
1646
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1647
|
+
)
|
1648
|
+
http_profile = HttpProfile(
|
1649
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1650
|
+
reqMethod="POST",
|
1651
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1652
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1653
|
+
)
|
1654
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1655
|
+
if g_param[OptionsDefine.Language]:
|
1656
|
+
profile.language = g_param[OptionsDefine.Language]
|
1657
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1658
|
+
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1660
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
+
model = models.CreateMerchantRequest()
|
1662
|
+
model.from_json_string(json.dumps(args))
|
1663
|
+
start_time = time.time()
|
1664
|
+
while True:
|
1665
|
+
rsp = client.CreateMerchant(model)
|
1666
|
+
result = rsp.to_json_string()
|
1667
|
+
try:
|
1668
|
+
json_obj = json.loads(result)
|
1669
|
+
except TypeError as e:
|
1670
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1671
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1672
|
+
break
|
1673
|
+
cur_time = time.time()
|
1674
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1675
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1676
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1677
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1678
|
+
else:
|
1679
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1680
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1681
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
|
+
|
1683
|
+
|
1528
1684
|
def doDeleteCodeBatch(args, parsed_globals):
|
1529
1685
|
g_param = parse_global_arg(parsed_globals)
|
1530
1686
|
|
@@ -1681,7 +1837,7 @@ def doCreateTraceChain(args, parsed_globals):
|
|
1681
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1838
|
|
1683
1839
|
|
1684
|
-
def
|
1840
|
+
def doEffectFeedback(args, parsed_globals):
|
1685
1841
|
g_param = parse_global_arg(parsed_globals)
|
1686
1842
|
|
1687
1843
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1710,11 +1866,11 @@ def doDescribeCodePackUrl(args, parsed_globals):
|
|
1710
1866
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
1867
|
client._sdkVersion += ("_CLI_" + __version__)
|
1712
1868
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
-
model = models.
|
1869
|
+
model = models.EffectFeedbackRequest()
|
1714
1870
|
model.from_json_string(json.dumps(args))
|
1715
1871
|
start_time = time.time()
|
1716
1872
|
while True:
|
1717
|
-
rsp = client.
|
1873
|
+
rsp = client.EffectFeedback(model)
|
1718
1874
|
result = rsp.to_json_string()
|
1719
1875
|
try:
|
1720
1876
|
json_obj = json.loads(result)
|
@@ -1733,7 +1889,7 @@ def doDescribeCodePackUrl(args, parsed_globals):
|
|
1733
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1890
|
|
1735
1891
|
|
1736
|
-
def
|
1892
|
+
def doDescribeCodePackUrl(args, parsed_globals):
|
1737
1893
|
g_param = parse_global_arg(parsed_globals)
|
1738
1894
|
|
1739
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1762,11 +1918,11 @@ def doDeleteTraceData(args, parsed_globals):
|
|
1762
1918
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1764
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.
|
1921
|
+
model = models.DescribeCodePackUrlRequest()
|
1766
1922
|
model.from_json_string(json.dumps(args))
|
1767
1923
|
start_time = time.time()
|
1768
1924
|
while True:
|
1769
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribeCodePackUrl(model)
|
1770
1926
|
result = rsp.to_json_string()
|
1771
1927
|
try:
|
1772
1928
|
json_obj = json.loads(result)
|
@@ -1785,7 +1941,7 @@ def doDeleteTraceData(args, parsed_globals):
|
|
1785
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1942
|
|
1787
1943
|
|
1788
|
-
def
|
1944
|
+
def doDeleteTraceData(args, parsed_globals):
|
1789
1945
|
g_param = parse_global_arg(parsed_globals)
|
1790
1946
|
|
1791
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +1970,11 @@ def doCreateTraceData(args, parsed_globals):
|
|
1814
1970
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
1973
|
+
model = models.DeleteTraceDataRequest()
|
1818
1974
|
model.from_json_string(json.dumps(args))
|
1819
1975
|
start_time = time.time()
|
1820
1976
|
while True:
|
1821
|
-
rsp = client.
|
1977
|
+
rsp = client.DeleteTraceData(model)
|
1822
1978
|
result = rsp.to_json_string()
|
1823
1979
|
try:
|
1824
1980
|
json_obj = json.loads(result)
|
@@ -1837,7 +1993,7 @@ def doCreateTraceData(args, parsed_globals):
|
|
1837
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1994
|
|
1839
1995
|
|
1840
|
-
def
|
1996
|
+
def doCreateTraceData(args, parsed_globals):
|
1841
1997
|
g_param = parse_global_arg(parsed_globals)
|
1842
1998
|
|
1843
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1866,11 +2022,11 @@ def doCreateCodePack(args, parsed_globals):
|
|
1866
2022
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1867
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
1868
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1869
|
-
model = models.
|
2025
|
+
model = models.CreateTraceDataRequest()
|
1870
2026
|
model.from_json_string(json.dumps(args))
|
1871
2027
|
start_time = time.time()
|
1872
2028
|
while True:
|
1873
|
-
rsp = client.
|
2029
|
+
rsp = client.CreateTraceData(model)
|
1874
2030
|
result = rsp.to_json_string()
|
1875
2031
|
try:
|
1876
2032
|
json_obj = json.loads(result)
|
@@ -2253,7 +2409,7 @@ def doDescribeMerchants(args, parsed_globals):
|
|
2253
2409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2410
|
|
2255
2411
|
|
2256
|
-
def
|
2412
|
+
def doCreateCodePack(args, parsed_globals):
|
2257
2413
|
g_param = parse_global_arg(parsed_globals)
|
2258
2414
|
|
2259
2415
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2282,11 +2438,11 @@ def doCreateMerchant(args, parsed_globals):
|
|
2282
2438
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
2439
|
client._sdkVersion += ("_CLI_" + __version__)
|
2284
2440
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
-
model = models.
|
2441
|
+
model = models.CreateCodePackRequest()
|
2286
2442
|
model.from_json_string(json.dumps(args))
|
2287
2443
|
start_time = time.time()
|
2288
2444
|
while True:
|
2289
|
-
rsp = client.
|
2445
|
+
rsp = client.CreateCodePack(model)
|
2290
2446
|
result = rsp.to_json_string()
|
2291
2447
|
try:
|
2292
2448
|
json_obj = json.loads(result)
|
@@ -2371,6 +2527,7 @@ ACTION_MAP = {
|
|
2371
2527
|
"DescribeTraceCodeById": doDescribeTraceCodeById,
|
2372
2528
|
"DescribeCustomRules": doDescribeCustomRules,
|
2373
2529
|
"DescribeTraceCodes": doDescribeTraceCodes,
|
2530
|
+
"AuthorizedTransfer": doAuthorizedTransfer,
|
2374
2531
|
"ModifyProduct": doModifyProduct,
|
2375
2532
|
"CreateTraceCodesAsync": doCreateTraceCodesAsync,
|
2376
2533
|
"DescribeCodeBatchById": doDescribeCodeBatchById,
|
@@ -2380,6 +2537,7 @@ ACTION_MAP = {
|
|
2380
2537
|
"CreateProduct": doCreateProduct,
|
2381
2538
|
"DescribeProducts": doDescribeProducts,
|
2382
2539
|
"DescribeCorpQuotas": doDescribeCorpQuotas,
|
2540
|
+
"ReportBatchCallbackStatus": doReportBatchCallbackStatus,
|
2383
2541
|
"ModifyCustomRule": doModifyCustomRule,
|
2384
2542
|
"ModifyTraceData": doModifyTraceData,
|
2385
2543
|
"DescribeCustomRuleById": doDescribeCustomRuleById,
|
@@ -2397,13 +2555,14 @@ ACTION_MAP = {
|
|
2397
2555
|
"DescribeCodePackStatus": doDescribeCodePackStatus,
|
2398
2556
|
"DescribeCodeBatchs": doDescribeCodeBatchs,
|
2399
2557
|
"CreateCustomRule": doCreateCustomRule,
|
2558
|
+
"CreateMerchant": doCreateMerchant,
|
2400
2559
|
"DeleteCodeBatch": doDeleteCodeBatch,
|
2401
2560
|
"ModifyMerchant": doModifyMerchant,
|
2402
2561
|
"CreateTraceChain": doCreateTraceChain,
|
2562
|
+
"EffectFeedback": doEffectFeedback,
|
2403
2563
|
"DescribeCodePackUrl": doDescribeCodePackUrl,
|
2404
2564
|
"DeleteTraceData": doDeleteTraceData,
|
2405
2565
|
"CreateTraceData": doCreateTraceData,
|
2406
|
-
"CreateCodePack": doCreateCodePack,
|
2407
2566
|
"ModifyTraceCodeUnlink": doModifyTraceCodeUnlink,
|
2408
2567
|
"DescribeTraceDataList": doDescribeTraceDataList,
|
2409
2568
|
"ModifyTraceCode": doModifyTraceCode,
|
@@ -2411,7 +2570,7 @@ ACTION_MAP = {
|
|
2411
2570
|
"DescribeScanLogs": doDescribeScanLogs,
|
2412
2571
|
"ModifyCodeBatch": doModifyCodeBatch,
|
2413
2572
|
"DescribeMerchants": doDescribeMerchants,
|
2414
|
-
"
|
2573
|
+
"CreateCodePack": doCreateCodePack,
|
2415
2574
|
"DescribeJobFileUrl": doDescribeJobFileUrl,
|
2416
2575
|
|
2417
2576
|
}
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"AuthorizedTransfer": {
|
4
|
+
"document": "接收客户侧的用户已授权的号码。",
|
5
|
+
"input": "AuthorizedTransferRequest",
|
6
|
+
"name": "授权数据上报接口",
|
7
|
+
"output": "AuthorizedTransferResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"CreateCodeBatch": {
|
4
11
|
"document": "新增批次",
|
5
12
|
"input": "CreateCodeBatchRequest",
|
@@ -252,6 +259,13 @@
|
|
252
259
|
"output": "DescribeTraceDataListResponse",
|
253
260
|
"status": "online"
|
254
261
|
},
|
262
|
+
"EffectFeedback": {
|
263
|
+
"document": "接收客户反馈的各环节数据",
|
264
|
+
"input": "EffectFeedbackRequest",
|
265
|
+
"name": "效果数据反馈",
|
266
|
+
"output": "EffectFeedbackResponse",
|
267
|
+
"status": "online"
|
268
|
+
},
|
255
269
|
"ModifyCodeBatch": {
|
256
270
|
"document": "修改批次",
|
257
271
|
"input": "ModifyCodeBatchRequest",
|
@@ -314,6 +328,13 @@
|
|
314
328
|
"name": "修改溯源信息的排序",
|
315
329
|
"output": "ModifyTraceDataRanksResponse",
|
316
330
|
"status": "online"
|
331
|
+
},
|
332
|
+
"ReportBatchCallbackStatus": {
|
333
|
+
"document": "接收离线筛选包回执,用于效果统计和分析。",
|
334
|
+
"input": "ReportBatchCallbackStatusRequest",
|
335
|
+
"name": "离线筛选包数据推送",
|
336
|
+
"output": "ReportBatchCallbackStatusResponse",
|
337
|
+
"status": "online"
|
317
338
|
}
|
318
339
|
},
|
319
340
|
"metadata": {
|
@@ -323,6 +344,40 @@
|
|
323
344
|
"serviceShortName": "trp"
|
324
345
|
},
|
325
346
|
"objects": {
|
347
|
+
"AuthorizedTransferRequest": {
|
348
|
+
"document": "AuthorizedTransfer请求参数结构体",
|
349
|
+
"members": [
|
350
|
+
{
|
351
|
+
"document": "业务加密入参。",
|
352
|
+
"example": "无",
|
353
|
+
"member": "InputEncryptData",
|
354
|
+
"name": "BusinessSecurityData",
|
355
|
+
"required": true,
|
356
|
+
"type": "object"
|
357
|
+
}
|
358
|
+
],
|
359
|
+
"type": "object"
|
360
|
+
},
|
361
|
+
"AuthorizedTransferResponse": {
|
362
|
+
"document": "AuthorizedTransfer返回参数结构体",
|
363
|
+
"members": [
|
364
|
+
{
|
365
|
+
"document": "业务出参。",
|
366
|
+
"example": "无",
|
367
|
+
"member": "OutputAuthorizedTransfer",
|
368
|
+
"name": "Data",
|
369
|
+
"type": "object",
|
370
|
+
"value_allowed_null": false
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
374
|
+
"member": "string",
|
375
|
+
"name": "RequestId",
|
376
|
+
"type": "string"
|
377
|
+
}
|
378
|
+
],
|
379
|
+
"type": "object"
|
380
|
+
},
|
326
381
|
"ChainData": {
|
327
382
|
"document": "上链数据",
|
328
383
|
"members": [
|
@@ -3421,11 +3476,96 @@
|
|
3421
3476
|
],
|
3422
3477
|
"type": "object"
|
3423
3478
|
},
|
3479
|
+
"EffectFeedbackRequest": {
|
3480
|
+
"document": "EffectFeedback请求参数结构体",
|
3481
|
+
"members": [
|
3482
|
+
{
|
3483
|
+
"document": "业务加密入参。",
|
3484
|
+
"example": "无",
|
3485
|
+
"member": "InputEncryptData",
|
3486
|
+
"name": "BusinessSecurityData",
|
3487
|
+
"required": true,
|
3488
|
+
"type": "object"
|
3489
|
+
}
|
3490
|
+
],
|
3491
|
+
"type": "object"
|
3492
|
+
},
|
3493
|
+
"EffectFeedbackResponse": {
|
3494
|
+
"document": "EffectFeedback返回参数结构体",
|
3495
|
+
"members": [
|
3496
|
+
{
|
3497
|
+
"document": "业务出参。",
|
3498
|
+
"example": "无",
|
3499
|
+
"member": "OutputAuthorizedTransfer",
|
3500
|
+
"name": "Data",
|
3501
|
+
"type": "object",
|
3502
|
+
"value_allowed_null": false
|
3503
|
+
},
|
3504
|
+
{
|
3505
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
3506
|
+
"member": "string",
|
3507
|
+
"name": "RequestId",
|
3508
|
+
"type": "string"
|
3509
|
+
}
|
3510
|
+
],
|
3511
|
+
"type": "object"
|
3512
|
+
},
|
3424
3513
|
"Ext": {
|
3425
3514
|
"document": "预留字段",
|
3426
3515
|
"members": [],
|
3427
3516
|
"usage": "out"
|
3428
3517
|
},
|
3518
|
+
"InputEncryptData": {
|
3519
|
+
"document": "业务加密入参",
|
3520
|
+
"members": [
|
3521
|
+
{
|
3522
|
+
"ValueAllowedNull": true,
|
3523
|
+
"document": "加密方式,0:AES加密;\n",
|
3524
|
+
"example": "1",
|
3525
|
+
"member": "int64",
|
3526
|
+
"name": "EncryptMethod",
|
3527
|
+
"required": true,
|
3528
|
+
"type": "int"
|
3529
|
+
},
|
3530
|
+
{
|
3531
|
+
"ValueAllowedNull": true,
|
3532
|
+
"document": "加密算法中的块处理模式,1:CBC模式; 目前只支持CBC模式",
|
3533
|
+
"example": "1",
|
3534
|
+
"member": "int64",
|
3535
|
+
"name": "EncryptMode",
|
3536
|
+
"required": true,
|
3537
|
+
"type": "int"
|
3538
|
+
},
|
3539
|
+
{
|
3540
|
+
"ValueAllowedNull": true,
|
3541
|
+
"document": "填充模式,0:ZeroPadding;1:PKCS5Padding;2:\nPKCS7Padding。",
|
3542
|
+
"example": "1",
|
3543
|
+
"member": "int64",
|
3544
|
+
"name": "PaddingType",
|
3545
|
+
"required": true,
|
3546
|
+
"type": "int"
|
3547
|
+
},
|
3548
|
+
{
|
3549
|
+
"ValueAllowedNull": true,
|
3550
|
+
"document": "加密数据,将AuthorizedData结构体数组(数组最大长度不超过20)序列化成JSON字符串,对得到的字符串加密并填充到该字段。",
|
3551
|
+
"example": "abc",
|
3552
|
+
"member": "string",
|
3553
|
+
"name": "EncryptData",
|
3554
|
+
"required": true,
|
3555
|
+
"type": "string"
|
3556
|
+
},
|
3557
|
+
{
|
3558
|
+
"ValueAllowedNull": true,
|
3559
|
+
"document": "用户是否授权,本接口取值:1,已授权。\n",
|
3560
|
+
"example": "1",
|
3561
|
+
"member": "int64",
|
3562
|
+
"name": "IsAuthorized",
|
3563
|
+
"required": false,
|
3564
|
+
"type": "int"
|
3565
|
+
}
|
3566
|
+
],
|
3567
|
+
"usage": "in"
|
3568
|
+
},
|
3429
3569
|
"Job": {
|
3430
3570
|
"document": "通用调度任务",
|
3431
3571
|
"members": [
|
@@ -4295,6 +4435,39 @@
|
|
4295
4435
|
],
|
4296
4436
|
"type": "object"
|
4297
4437
|
},
|
4438
|
+
"OutputAuthorizedTransfer": {
|
4439
|
+
"document": "业务出参",
|
4440
|
+
"members": [
|
4441
|
+
{
|
4442
|
+
"document": "推送状态,0表示成功。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4443
|
+
"example": "0",
|
4444
|
+
"member": "int64",
|
4445
|
+
"name": "Code",
|
4446
|
+
"required": false,
|
4447
|
+
"type": "int",
|
4448
|
+
"value_allowed_null": true
|
4449
|
+
},
|
4450
|
+
{
|
4451
|
+
"document": "错误码。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4452
|
+
"example": "abc",
|
4453
|
+
"member": "string",
|
4454
|
+
"name": "Message",
|
4455
|
+
"required": false,
|
4456
|
+
"type": "string",
|
4457
|
+
"value_allowed_null": true
|
4458
|
+
},
|
4459
|
+
{
|
4460
|
+
"document": "错误信息描述。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4461
|
+
"example": "abc",
|
4462
|
+
"member": "string",
|
4463
|
+
"name": "Value",
|
4464
|
+
"required": false,
|
4465
|
+
"type": "string",
|
4466
|
+
"value_allowed_null": true
|
4467
|
+
}
|
4468
|
+
],
|
4469
|
+
"usage": "out"
|
4470
|
+
},
|
4298
4471
|
"PackSpec": {
|
4299
4472
|
"document": "层级码配置",
|
4300
4473
|
"members": [
|
@@ -4666,6 +4839,40 @@
|
|
4666
4839
|
],
|
4667
4840
|
"usage": "both"
|
4668
4841
|
},
|
4842
|
+
"ReportBatchCallbackStatusRequest": {
|
4843
|
+
"document": "ReportBatchCallbackStatus请求参数结构体",
|
4844
|
+
"members": [
|
4845
|
+
{
|
4846
|
+
"document": "业务加密入参。",
|
4847
|
+
"example": "无",
|
4848
|
+
"member": "InputEncryptData",
|
4849
|
+
"name": "BusinessSecurityData",
|
4850
|
+
"required": true,
|
4851
|
+
"type": "object"
|
4852
|
+
}
|
4853
|
+
],
|
4854
|
+
"type": "object"
|
4855
|
+
},
|
4856
|
+
"ReportBatchCallbackStatusResponse": {
|
4857
|
+
"document": "ReportBatchCallbackStatus返回参数结构体",
|
4858
|
+
"members": [
|
4859
|
+
{
|
4860
|
+
"document": "业务出参。",
|
4861
|
+
"example": "无",
|
4862
|
+
"member": "OutputAuthorizedTransfer",
|
4863
|
+
"name": "Data",
|
4864
|
+
"type": "object",
|
4865
|
+
"value_allowed_null": false
|
4866
|
+
},
|
4867
|
+
{
|
4868
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
4869
|
+
"member": "string",
|
4870
|
+
"name": "RequestId",
|
4871
|
+
"type": "string"
|
4872
|
+
}
|
4873
|
+
],
|
4874
|
+
"type": "object"
|
4875
|
+
},
|
4669
4876
|
"ScanLog": {
|
4670
4877
|
"document": "扫码明细",
|
4671
4878
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"AuthorizedTransfer": [
|
4
|
+
{
|
5
|
+
"document": "接收客户侧的用户已授权的号码",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: smop.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AuthorizedTransfer\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"IsAuthorized\": 0,\n \"EncryptMethod\": 0,\n \"EncryptMode\": 0,\n \"PaddingType\": 0,\n \"EncryptData\": \"abc\"\n }\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"abc\",\n \"Value\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
8
|
+
"title": "接收客户侧的用户已授权的号码"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"CreateCodeBatch": [
|
4
12
|
{
|
5
13
|
"document": "新增批次",
|
@@ -288,6 +296,14 @@
|
|
288
296
|
"title": "查询溯源信息"
|
289
297
|
}
|
290
298
|
],
|
299
|
+
"EffectFeedback": [
|
300
|
+
{
|
301
|
+
"document": "接收客户反馈的各环节数据\n\n",
|
302
|
+
"input": "POST / HTTP/1.1\nHost: trp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EffectFeedback\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"IsAuthorized\": 0,\n \"EncryptMethod\": 0,\n \"EncryptMode\": 0,\n \"PaddingType\": 0,\n \"EncryptData\": \"abc\"\n }\n}",
|
303
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"abc\",\n \"Value\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
304
|
+
"title": "效果数据反馈"
|
305
|
+
}
|
306
|
+
],
|
291
307
|
"ModifyCodeBatch": [
|
292
308
|
{
|
293
309
|
"document": "激活批次",
|
@@ -359,6 +375,14 @@
|
|
359
375
|
"output": "{\n \"Response\": {\n \"BatchId\": \"xx\",\n \"RequestId\": \"xx\"\n }\n}",
|
360
376
|
"title": "修改溯源信息的排序"
|
361
377
|
}
|
378
|
+
],
|
379
|
+
"ReportBatchCallbackStatus": [
|
380
|
+
{
|
381
|
+
"document": "接收离线筛选包回执,用于效果统计和分析。",
|
382
|
+
"input": "POST / HTTP/1.1\nHost: trp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReportBatchCallbackStatus\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"IsAuthorized\": 0,\n \"EncryptMethod\": 0,\n \"EncryptMode\": 0,\n \"PaddingType\": 0,\n \"EncryptData\": \"abc\"\n }\n}",
|
383
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"abc\",\n \"Value\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
384
|
+
"title": "离线筛选包数据推送"
|
385
|
+
}
|
362
386
|
]
|
363
387
|
},
|
364
388
|
"version": "1.0"
|