tccli 3.0.859.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/cdn/v20180606/api.json +1 -1
- tccli/services/cfs/cfs_client.py +273 -8
- tccli/services/cfs/v20190719/api.json +647 -0
- tccli/services/cfs/v20190719/examples.json +40 -0
- tccli/services/cwp/v20180228/api.json +2 -2
- tccli/services/ess/ess_client.py +106 -0
- tccli/services/ess/v20201111/api.json +124 -2
- tccli/services/ess/v20201111/examples.json +28 -0
- tccli/services/faceid/v20180301/api.json +22 -10
- tccli/services/ims/v20200713/examples.json +1 -1
- tccli/services/ims/v20201229/examples.json +1 -1
- tccli/services/ms/v20180408/api.json +2 -2
- 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 +229 -17
- tccli/services/trp/v20210515/api.json +259 -0
- tccli/services/trp/v20210515/examples.json +32 -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.859.1.dist-info → tccli-3.0.861.1.dist-info}/METADATA +2 -2
- {tccli-3.0.859.1.dist-info → tccli-3.0.861.1.dist-info}/RECORD +28 -28
- {tccli-3.0.859.1.dist-info → tccli-3.0.861.1.dist-info}/LICENSE +0 -0
- {tccli-3.0.859.1.dist-info → tccli-3.0.861.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.859.1.dist-info → tccli-3.0.861.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.859.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
|
|
@@ -1161,6 +1265,58 @@ def doCreateCustomPack(args, parsed_globals):
|
|
1161
1265
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1162
1266
|
|
1163
1267
|
|
1268
|
+
def doDescribeTraceDataById(args, parsed_globals):
|
1269
|
+
g_param = parse_global_arg(parsed_globals)
|
1270
|
+
|
1271
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1272
|
+
cred = credential.CVMRoleCredential()
|
1273
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1274
|
+
cred = credential.STSAssumeRoleCredential(
|
1275
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1276
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
|
1277
|
+
)
|
1278
|
+
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):
|
1279
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1280
|
+
else:
|
1281
|
+
cred = credential.Credential(
|
1282
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1283
|
+
)
|
1284
|
+
http_profile = HttpProfile(
|
1285
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1286
|
+
reqMethod="POST",
|
1287
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1288
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1289
|
+
)
|
1290
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1291
|
+
if g_param[OptionsDefine.Language]:
|
1292
|
+
profile.language = g_param[OptionsDefine.Language]
|
1293
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1294
|
+
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1296
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
+
model = models.DescribeTraceDataByIdRequest()
|
1298
|
+
model.from_json_string(json.dumps(args))
|
1299
|
+
start_time = time.time()
|
1300
|
+
while True:
|
1301
|
+
rsp = client.DescribeTraceDataById(model)
|
1302
|
+
result = rsp.to_json_string()
|
1303
|
+
try:
|
1304
|
+
json_obj = json.loads(result)
|
1305
|
+
except TypeError as e:
|
1306
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1307
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1308
|
+
break
|
1309
|
+
cur_time = time.time()
|
1310
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1311
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1312
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1313
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1314
|
+
else:
|
1315
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1316
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1317
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
|
+
|
1319
|
+
|
1164
1320
|
def doCreateCorporationOrder(args, parsed_globals):
|
1165
1321
|
g_param = parse_global_arg(parsed_globals)
|
1166
1322
|
|
@@ -1473,6 +1629,58 @@ def doCreateCustomRule(args, parsed_globals):
|
|
1473
1629
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1630
|
|
1475
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
|
+
|
1476
1684
|
def doDeleteCodeBatch(args, parsed_globals):
|
1477
1685
|
g_param = parse_global_arg(parsed_globals)
|
1478
1686
|
|
@@ -1629,7 +1837,7 @@ def doCreateTraceChain(args, parsed_globals):
|
|
1629
1837
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
1838
|
|
1631
1839
|
|
1632
|
-
def
|
1840
|
+
def doEffectFeedback(args, parsed_globals):
|
1633
1841
|
g_param = parse_global_arg(parsed_globals)
|
1634
1842
|
|
1635
1843
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1658,11 +1866,11 @@ def doDescribeCodePackUrl(args, parsed_globals):
|
|
1658
1866
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1659
1867
|
client._sdkVersion += ("_CLI_" + __version__)
|
1660
1868
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1661
|
-
model = models.
|
1869
|
+
model = models.EffectFeedbackRequest()
|
1662
1870
|
model.from_json_string(json.dumps(args))
|
1663
1871
|
start_time = time.time()
|
1664
1872
|
while True:
|
1665
|
-
rsp = client.
|
1873
|
+
rsp = client.EffectFeedback(model)
|
1666
1874
|
result = rsp.to_json_string()
|
1667
1875
|
try:
|
1668
1876
|
json_obj = json.loads(result)
|
@@ -1681,7 +1889,7 @@ def doDescribeCodePackUrl(args, parsed_globals):
|
|
1681
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1682
1890
|
|
1683
1891
|
|
1684
|
-
def
|
1892
|
+
def doDescribeCodePackUrl(args, parsed_globals):
|
1685
1893
|
g_param = parse_global_arg(parsed_globals)
|
1686
1894
|
|
1687
1895
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1710,11 +1918,11 @@ def doDeleteTraceData(args, parsed_globals):
|
|
1710
1918
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1711
1919
|
client._sdkVersion += ("_CLI_" + __version__)
|
1712
1920
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1713
|
-
model = models.
|
1921
|
+
model = models.DescribeCodePackUrlRequest()
|
1714
1922
|
model.from_json_string(json.dumps(args))
|
1715
1923
|
start_time = time.time()
|
1716
1924
|
while True:
|
1717
|
-
rsp = client.
|
1925
|
+
rsp = client.DescribeCodePackUrl(model)
|
1718
1926
|
result = rsp.to_json_string()
|
1719
1927
|
try:
|
1720
1928
|
json_obj = json.loads(result)
|
@@ -1733,7 +1941,7 @@ def doDeleteTraceData(args, parsed_globals):
|
|
1733
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1734
1942
|
|
1735
1943
|
|
1736
|
-
def
|
1944
|
+
def doDeleteTraceData(args, parsed_globals):
|
1737
1945
|
g_param = parse_global_arg(parsed_globals)
|
1738
1946
|
|
1739
1947
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1762,11 +1970,11 @@ def doCreateTraceData(args, parsed_globals):
|
|
1762
1970
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1763
1971
|
client._sdkVersion += ("_CLI_" + __version__)
|
1764
1972
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1765
|
-
model = models.
|
1973
|
+
model = models.DeleteTraceDataRequest()
|
1766
1974
|
model.from_json_string(json.dumps(args))
|
1767
1975
|
start_time = time.time()
|
1768
1976
|
while True:
|
1769
|
-
rsp = client.
|
1977
|
+
rsp = client.DeleteTraceData(model)
|
1770
1978
|
result = rsp.to_json_string()
|
1771
1979
|
try:
|
1772
1980
|
json_obj = json.loads(result)
|
@@ -1785,7 +1993,7 @@ def doCreateTraceData(args, parsed_globals):
|
|
1785
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1994
|
|
1787
1995
|
|
1788
|
-
def
|
1996
|
+
def doCreateTraceData(args, parsed_globals):
|
1789
1997
|
g_param = parse_global_arg(parsed_globals)
|
1790
1998
|
|
1791
1999
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1814,11 +2022,11 @@ def doCreateCodePack(args, parsed_globals):
|
|
1814
2022
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
2023
|
client._sdkVersion += ("_CLI_" + __version__)
|
1816
2024
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
-
model = models.
|
2025
|
+
model = models.CreateTraceDataRequest()
|
1818
2026
|
model.from_json_string(json.dumps(args))
|
1819
2027
|
start_time = time.time()
|
1820
2028
|
while True:
|
1821
|
-
rsp = client.
|
2029
|
+
rsp = client.CreateTraceData(model)
|
1822
2030
|
result = rsp.to_json_string()
|
1823
2031
|
try:
|
1824
2032
|
json_obj = json.loads(result)
|
@@ -2201,7 +2409,7 @@ def doDescribeMerchants(args, parsed_globals):
|
|
2201
2409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2410
|
|
2203
2411
|
|
2204
|
-
def
|
2412
|
+
def doCreateCodePack(args, parsed_globals):
|
2205
2413
|
g_param = parse_global_arg(parsed_globals)
|
2206
2414
|
|
2207
2415
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2230,11 +2438,11 @@ def doCreateMerchant(args, parsed_globals):
|
|
2230
2438
|
client = mod.TrpClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
2439
|
client._sdkVersion += ("_CLI_" + __version__)
|
2232
2440
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
-
model = models.
|
2441
|
+
model = models.CreateCodePackRequest()
|
2234
2442
|
model.from_json_string(json.dumps(args))
|
2235
2443
|
start_time = time.time()
|
2236
2444
|
while True:
|
2237
|
-
rsp = client.
|
2445
|
+
rsp = client.CreateCodePack(model)
|
2238
2446
|
result = rsp.to_json_string()
|
2239
2447
|
try:
|
2240
2448
|
json_obj = json.loads(result)
|
@@ -2319,6 +2527,7 @@ ACTION_MAP = {
|
|
2319
2527
|
"DescribeTraceCodeById": doDescribeTraceCodeById,
|
2320
2528
|
"DescribeCustomRules": doDescribeCustomRules,
|
2321
2529
|
"DescribeTraceCodes": doDescribeTraceCodes,
|
2530
|
+
"AuthorizedTransfer": doAuthorizedTransfer,
|
2322
2531
|
"ModifyProduct": doModifyProduct,
|
2323
2532
|
"CreateTraceCodesAsync": doCreateTraceCodesAsync,
|
2324
2533
|
"DescribeCodeBatchById": doDescribeCodeBatchById,
|
@@ -2328,6 +2537,7 @@ ACTION_MAP = {
|
|
2328
2537
|
"CreateProduct": doCreateProduct,
|
2329
2538
|
"DescribeProducts": doDescribeProducts,
|
2330
2539
|
"DescribeCorpQuotas": doDescribeCorpQuotas,
|
2540
|
+
"ReportBatchCallbackStatus": doReportBatchCallbackStatus,
|
2331
2541
|
"ModifyCustomRule": doModifyCustomRule,
|
2332
2542
|
"ModifyTraceData": doModifyTraceData,
|
2333
2543
|
"DescribeCustomRuleById": doDescribeCustomRuleById,
|
@@ -2338,19 +2548,21 @@ ACTION_MAP = {
|
|
2338
2548
|
"DeleteProduct": doDeleteProduct,
|
2339
2549
|
"CreateCodeBatch": doCreateCodeBatch,
|
2340
2550
|
"CreateCustomPack": doCreateCustomPack,
|
2551
|
+
"DescribeTraceDataById": doDescribeTraceDataById,
|
2341
2552
|
"CreateCorporationOrder": doCreateCorporationOrder,
|
2342
2553
|
"DeleteMerchant": doDeleteMerchant,
|
2343
2554
|
"DescribeScanStats": doDescribeScanStats,
|
2344
2555
|
"DescribeCodePackStatus": doDescribeCodePackStatus,
|
2345
2556
|
"DescribeCodeBatchs": doDescribeCodeBatchs,
|
2346
2557
|
"CreateCustomRule": doCreateCustomRule,
|
2558
|
+
"CreateMerchant": doCreateMerchant,
|
2347
2559
|
"DeleteCodeBatch": doDeleteCodeBatch,
|
2348
2560
|
"ModifyMerchant": doModifyMerchant,
|
2349
2561
|
"CreateTraceChain": doCreateTraceChain,
|
2562
|
+
"EffectFeedback": doEffectFeedback,
|
2350
2563
|
"DescribeCodePackUrl": doDescribeCodePackUrl,
|
2351
2564
|
"DeleteTraceData": doDeleteTraceData,
|
2352
2565
|
"CreateTraceData": doCreateTraceData,
|
2353
|
-
"CreateCodePack": doCreateCodePack,
|
2354
2566
|
"ModifyTraceCodeUnlink": doModifyTraceCodeUnlink,
|
2355
2567
|
"DescribeTraceDataList": doDescribeTraceDataList,
|
2356
2568
|
"ModifyTraceCode": doModifyTraceCode,
|
@@ -2358,7 +2570,7 @@ ACTION_MAP = {
|
|
2358
2570
|
"DescribeScanLogs": doDescribeScanLogs,
|
2359
2571
|
"ModifyCodeBatch": doModifyCodeBatch,
|
2360
2572
|
"DescribeMerchants": doDescribeMerchants,
|
2361
|
-
"
|
2573
|
+
"CreateCodePack": doCreateCodePack,
|
2362
2574
|
"DescribeJobFileUrl": doDescribeJobFileUrl,
|
2363
2575
|
|
2364
2576
|
}
|