tccli 3.0.1335.1__py2.py3-none-any.whl → 3.0.1337.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/antiddos/v20200309/api.json +2 -2
- tccli/services/bi/v20220105/api.json +93 -0
- tccli/services/captcha/v20190722/api.json +10 -0
- tccli/services/cdb/v20170320/api.json +4 -4
- tccli/services/cdwdoris/v20211228/api.json +2 -2
- tccli/services/cfs/v20190719/api.json +7 -7
- tccli/services/cfw/v20190904/api.json +9 -0
- tccli/services/cls/v20201016/api.json +10 -0
- tccli/services/cme/v20191029/api.json +1 -1
- tccli/services/csip/v20221121/api.json +10 -0
- tccli/services/es/v20250101/api.json +50 -0
- tccli/services/ess/v20201111/api.json +10 -1
- tccli/services/essbasic/v20210526/api.json +11 -2
- tccli/services/gs/v20191118/api.json +11 -1
- tccli/services/gs/v20191118/examples.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +114 -8
- tccli/services/iotexplorer/v20190423/api.json +170 -0
- tccli/services/iotexplorer/v20190423/examples.json +16 -0
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +43 -0
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/lke/lke_client.py +110 -4
- tccli/services/lke/v20231130/api.json +163 -2
- tccli/services/lke/v20231130/examples.json +16 -0
- tccli/services/lkeap/v20240522/api.json +3 -3
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +43 -0
- tccli/services/monitor/v20180724/examples.json +8 -0
- tccli/services/mps/v20190612/api.json +117 -1
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/tcbr/v20220217/api.json +22 -0
- tccli/services/tdmq/v20200217/api.json +165 -25
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +1 -1
- tccli/services/tiia/tiia_client.py +73 -126
- tccli/services/tiia/v20190529/api.json +0 -112
- tccli/services/tiia/v20190529/examples.json +0 -14
- tccli/services/tione/tione_client.py +216 -4
- tccli/services/tione/v20211111/api.json +190 -0
- tccli/services/tione/v20211111/examples.json +32 -0
- tccli/services/trocket/trocket_client.py +57 -4
- tccli/services/trocket/v20230308/api.json +149 -1
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/tsf/v20180326/api.json +4 -3
- tccli/services/tsf/v20180326/examples.json +2 -2
- {tccli-3.0.1335.1.dist-info → tccli-3.0.1337.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1335.1.dist-info → tccli-3.0.1337.1.dist-info}/RECORD +53 -53
- {tccli-3.0.1335.1.dist-info → tccli-3.0.1337.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1335.1.dist-info → tccli-3.0.1337.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1335.1.dist-info → tccli-3.0.1337.1.dist-info}/license_files/LICENSE +0 -0
@@ -277,7 +277,7 @@ def doDescribeFirmwareUpdateStatus(args, parsed_globals):
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
278
|
|
279
279
|
|
280
|
-
def
|
280
|
+
def doDescribeAISearchTaskAsync(args, parsed_globals):
|
281
281
|
g_param = parse_global_arg(parsed_globals)
|
282
282
|
|
283
283
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -306,11 +306,11 @@ def doDescribeDevice(args, parsed_globals):
|
|
306
306
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
307
307
|
client._sdkVersion += ("_CLI_" + __version__)
|
308
308
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
-
model = models.
|
309
|
+
model = models.DescribeAISearchTaskAsyncRequest()
|
310
310
|
model.from_json_string(json.dumps(args))
|
311
311
|
start_time = time.time()
|
312
312
|
while True:
|
313
|
-
rsp = client.
|
313
|
+
rsp = client.DescribeAISearchTaskAsync(model)
|
314
314
|
result = rsp.to_json_string()
|
315
315
|
try:
|
316
316
|
json_obj = json.loads(result)
|
@@ -1785,6 +1785,58 @@ def doModifyLoRaGateway(args, parsed_globals):
|
|
1785
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1786
1786
|
|
1787
1787
|
|
1788
|
+
def doDescribeDevice(args, parsed_globals):
|
1789
|
+
g_param = parse_global_arg(parsed_globals)
|
1790
|
+
|
1791
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1792
|
+
cred = credential.CVMRoleCredential()
|
1793
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1794
|
+
cred = credential.STSAssumeRoleCredential(
|
1795
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1796
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1797
|
+
)
|
1798
|
+
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):
|
1799
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1800
|
+
else:
|
1801
|
+
cred = credential.Credential(
|
1802
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1803
|
+
)
|
1804
|
+
http_profile = HttpProfile(
|
1805
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1806
|
+
reqMethod="POST",
|
1807
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1808
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1809
|
+
)
|
1810
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1811
|
+
if g_param[OptionsDefine.Language]:
|
1812
|
+
profile.language = g_param[OptionsDefine.Language]
|
1813
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1814
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
1815
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1816
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1817
|
+
model = models.DescribeDeviceRequest()
|
1818
|
+
model.from_json_string(json.dumps(args))
|
1819
|
+
start_time = time.time()
|
1820
|
+
while True:
|
1821
|
+
rsp = client.DescribeDevice(model)
|
1822
|
+
result = rsp.to_json_string()
|
1823
|
+
try:
|
1824
|
+
json_obj = json.loads(result)
|
1825
|
+
except TypeError as e:
|
1826
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1827
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1828
|
+
break
|
1829
|
+
cur_time = time.time()
|
1830
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1831
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1832
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1833
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1834
|
+
else:
|
1835
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1836
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1837
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
|
+
|
1839
|
+
|
1788
1840
|
def doControlDeviceData(args, parsed_globals):
|
1789
1841
|
g_param = parse_global_arg(parsed_globals)
|
1790
1842
|
|
@@ -3917,7 +3969,7 @@ def doDescribeCloudStorageStreamData(args, parsed_globals):
|
|
3917
3969
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3970
|
|
3919
3971
|
|
3920
|
-
def
|
3972
|
+
def doCreateAISearchTaskAsync(args, parsed_globals):
|
3921
3973
|
g_param = parse_global_arg(parsed_globals)
|
3922
3974
|
|
3923
3975
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3946,11 +3998,11 @@ def doGetDeviceSumStatistics(args, parsed_globals):
|
|
3946
3998
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
3999
|
client._sdkVersion += ("_CLI_" + __version__)
|
3948
4000
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
-
model = models.
|
4001
|
+
model = models.CreateAISearchTaskAsyncRequest()
|
3950
4002
|
model.from_json_string(json.dumps(args))
|
3951
4003
|
start_time = time.time()
|
3952
4004
|
while True:
|
3953
|
-
rsp = client.
|
4005
|
+
rsp = client.CreateAISearchTaskAsync(model)
|
3954
4006
|
result = rsp.to_json_string()
|
3955
4007
|
try:
|
3956
4008
|
json_obj = json.loads(result)
|
@@ -7141,6 +7193,58 @@ def doDescribeStudioProduct(args, parsed_globals):
|
|
7141
7193
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7142
7194
|
|
7143
7195
|
|
7196
|
+
def doGetDeviceSumStatistics(args, parsed_globals):
|
7197
|
+
g_param = parse_global_arg(parsed_globals)
|
7198
|
+
|
7199
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7200
|
+
cred = credential.CVMRoleCredential()
|
7201
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7202
|
+
cred = credential.STSAssumeRoleCredential(
|
7203
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7204
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7205
|
+
)
|
7206
|
+
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):
|
7207
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7208
|
+
else:
|
7209
|
+
cred = credential.Credential(
|
7210
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7211
|
+
)
|
7212
|
+
http_profile = HttpProfile(
|
7213
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7214
|
+
reqMethod="POST",
|
7215
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7216
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7217
|
+
)
|
7218
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7219
|
+
if g_param[OptionsDefine.Language]:
|
7220
|
+
profile.language = g_param[OptionsDefine.Language]
|
7221
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7222
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
7223
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7224
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7225
|
+
model = models.GetDeviceSumStatisticsRequest()
|
7226
|
+
model.from_json_string(json.dumps(args))
|
7227
|
+
start_time = time.time()
|
7228
|
+
while True:
|
7229
|
+
rsp = client.GetDeviceSumStatistics(model)
|
7230
|
+
result = rsp.to_json_string()
|
7231
|
+
try:
|
7232
|
+
json_obj = json.loads(result)
|
7233
|
+
except TypeError as e:
|
7234
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7235
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7236
|
+
break
|
7237
|
+
cur_time = time.time()
|
7238
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7239
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7240
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7241
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7242
|
+
else:
|
7243
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7244
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7245
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7246
|
+
|
7247
|
+
|
7144
7248
|
def doDescribePositionFenceList(args, parsed_globals):
|
7145
7249
|
g_param = parse_global_arg(parsed_globals)
|
7146
7250
|
|
@@ -8665,7 +8769,7 @@ ACTION_MAP = {
|
|
8665
8769
|
"ModifyStudioProduct": doModifyStudioProduct,
|
8666
8770
|
"DescribeDevicePackages": doDescribeDevicePackages,
|
8667
8771
|
"DescribeFirmwareUpdateStatus": doDescribeFirmwareUpdateStatus,
|
8668
|
-
"
|
8772
|
+
"DescribeAISearchTaskAsync": doDescribeAISearchTaskAsync,
|
8669
8773
|
"DescribeP2PRoute": doDescribeP2PRoute,
|
8670
8774
|
"DescribeCloudStorageEventsWithAITasks": doDescribeCloudStorageEventsWithAITasks,
|
8671
8775
|
"DescribeTopicPolicy": doDescribeTopicPolicy,
|
@@ -8694,6 +8798,7 @@ ACTION_MAP = {
|
|
8694
8798
|
"DescribeActivateDevice": doDescribeActivateDevice,
|
8695
8799
|
"DescribeBindedProducts": doDescribeBindedProducts,
|
8696
8800
|
"ModifyLoRaGateway": doModifyLoRaGateway,
|
8801
|
+
"DescribeDevice": doDescribeDevice,
|
8697
8802
|
"ControlDeviceData": doControlDeviceData,
|
8698
8803
|
"DescribeUnbindedDevices": doDescribeUnbindedDevices,
|
8699
8804
|
"CreateIotVideoCloudStorage": doCreateIotVideoCloudStorage,
|
@@ -8735,7 +8840,7 @@ ACTION_MAP = {
|
|
8735
8840
|
"DescribeCloudStorageMultiThumbnail": doDescribeCloudStorageMultiThumbnail,
|
8736
8841
|
"CallDeviceActionAsync": doCallDeviceActionAsync,
|
8737
8842
|
"DescribeCloudStorageStreamData": doDescribeCloudStorageStreamData,
|
8738
|
-
"
|
8843
|
+
"CreateAISearchTaskAsync": doCreateAISearchTaskAsync,
|
8739
8844
|
"DeleteProject": doDeleteProject,
|
8740
8845
|
"DescribeCloudStorageAIServiceTask": doDescribeCloudStorageAIServiceTask,
|
8741
8846
|
"DescribeTopicRule": doDescribeTopicRule,
|
@@ -8797,6 +8902,7 @@ ACTION_MAP = {
|
|
8797
8902
|
"ModifyPositionFence": doModifyPositionFence,
|
8798
8903
|
"InvokeTWeSeeRecognitionTask": doInvokeTWeSeeRecognitionTask,
|
8799
8904
|
"DescribeStudioProduct": doDescribeStudioProduct,
|
8905
|
+
"GetDeviceSumStatistics": doGetDeviceSumStatistics,
|
8800
8906
|
"DescribePositionFenceList": doDescribePositionFenceList,
|
8801
8907
|
"DeleteLoRaFrequency": doDeleteLoRaFrequency,
|
8802
8908
|
"DescribePackageConsumeTask": doDescribePackageConsumeTask,
|
@@ -70,6 +70,13 @@
|
|
70
70
|
"output": "ControlDeviceDataResponse",
|
71
71
|
"status": "online"
|
72
72
|
},
|
73
|
+
"CreateAISearchTaskAsync": {
|
74
|
+
"document": "创建视频语义异步搜索任务",
|
75
|
+
"input": "CreateAISearchTaskAsyncRequest",
|
76
|
+
"name": "创建异步视频语义搜索任务",
|
77
|
+
"output": "CreateAISearchTaskAsyncResponse",
|
78
|
+
"status": "online"
|
79
|
+
},
|
73
80
|
"CreateBatchProduction": {
|
74
81
|
"document": "用于新建批量生产设备",
|
75
82
|
"input": "CreateBatchProductionRequest",
|
@@ -287,6 +294,13 @@
|
|
287
294
|
"output": "DeleteTopicRuleResponse",
|
288
295
|
"status": "online"
|
289
296
|
},
|
297
|
+
"DescribeAISearchTaskAsync": {
|
298
|
+
"document": "获取视频语义异步搜索任务详情",
|
299
|
+
"input": "DescribeAISearchTaskAsyncRequest",
|
300
|
+
"name": "获取异步视频语义搜索任务详情",
|
301
|
+
"output": "DescribeAISearchTaskAsyncResponse",
|
302
|
+
"status": "online"
|
303
|
+
},
|
290
304
|
"DescribeActivateDevice": {
|
291
305
|
"document": "获取设备激活详情",
|
292
306
|
"input": "DescribeActivateDeviceRequest",
|
@@ -1170,6 +1184,42 @@
|
|
1170
1184
|
"serviceShortName": "iotexplorer"
|
1171
1185
|
},
|
1172
1186
|
"objects": {
|
1187
|
+
"AISearchInfo": {
|
1188
|
+
"document": "AI视频搜索结果结构体。",
|
1189
|
+
"members": [
|
1190
|
+
{
|
1191
|
+
"disabled": false,
|
1192
|
+
"document": "基于搜索结果的总结",
|
1193
|
+
"example": "What happened on April 1st",
|
1194
|
+
"member": "string",
|
1195
|
+
"name": "Summary",
|
1196
|
+
"output_required": false,
|
1197
|
+
"type": "string",
|
1198
|
+
"value_allowed_null": false
|
1199
|
+
},
|
1200
|
+
{
|
1201
|
+
"disabled": false,
|
1202
|
+
"document": "视频结果集",
|
1203
|
+
"example": "无",
|
1204
|
+
"member": "TargetInfo",
|
1205
|
+
"name": "Targets",
|
1206
|
+
"output_required": false,
|
1207
|
+
"type": "list",
|
1208
|
+
"value_allowed_null": false
|
1209
|
+
},
|
1210
|
+
{
|
1211
|
+
"disabled": false,
|
1212
|
+
"document": "视频回放URL",
|
1213
|
+
"example": "https://domain.com/video.m3u8",
|
1214
|
+
"member": "string",
|
1215
|
+
"name": "VideoURL",
|
1216
|
+
"output_required": false,
|
1217
|
+
"type": "string",
|
1218
|
+
"value_allowed_null": false
|
1219
|
+
}
|
1220
|
+
],
|
1221
|
+
"usage": "out"
|
1222
|
+
},
|
1173
1223
|
"ActivateDeviceInfo": {
|
1174
1224
|
"document": "设备激活详情信息",
|
1175
1225
|
"members": [
|
@@ -2814,6 +2864,79 @@
|
|
2814
2864
|
],
|
2815
2865
|
"usage": "out"
|
2816
2866
|
},
|
2867
|
+
"CreateAISearchTaskAsyncRequest": {
|
2868
|
+
"document": "CreateAISearchTaskAsync请求参数结构体",
|
2869
|
+
"members": [
|
2870
|
+
{
|
2871
|
+
"disabled": false,
|
2872
|
+
"document": "产品ID",
|
2873
|
+
"example": "MVTYMD8YCD",
|
2874
|
+
"member": "string",
|
2875
|
+
"name": "ProductId",
|
2876
|
+
"required": true,
|
2877
|
+
"type": "string"
|
2878
|
+
},
|
2879
|
+
{
|
2880
|
+
"disabled": false,
|
2881
|
+
"document": "设备名称",
|
2882
|
+
"example": "dev001",
|
2883
|
+
"member": "string",
|
2884
|
+
"name": "DeviceName",
|
2885
|
+
"required": true,
|
2886
|
+
"type": "string"
|
2887
|
+
},
|
2888
|
+
{
|
2889
|
+
"disabled": false,
|
2890
|
+
"document": "自然语言查询",
|
2891
|
+
"example": "今天发生了什么?",
|
2892
|
+
"member": "string",
|
2893
|
+
"name": "Query",
|
2894
|
+
"required": true,
|
2895
|
+
"type": "string"
|
2896
|
+
},
|
2897
|
+
{
|
2898
|
+
"disabled": false,
|
2899
|
+
"document": "搜索结果总结的语言类型,支持的类型有:en-US、zh-CN、id-ID、th-TH",
|
2900
|
+
"example": "zh-CN",
|
2901
|
+
"member": "string",
|
2902
|
+
"name": "SummaryLang",
|
2903
|
+
"required": false,
|
2904
|
+
"type": "string"
|
2905
|
+
},
|
2906
|
+
{
|
2907
|
+
"disabled": false,
|
2908
|
+
"document": "通道ID",
|
2909
|
+
"example": "0",
|
2910
|
+
"member": "uint64",
|
2911
|
+
"name": "ChannelId",
|
2912
|
+
"required": false,
|
2913
|
+
"type": "int"
|
2914
|
+
}
|
2915
|
+
],
|
2916
|
+
"type": "object"
|
2917
|
+
},
|
2918
|
+
"CreateAISearchTaskAsyncResponse": {
|
2919
|
+
"document": "CreateAISearchTaskAsync返回参数结构体",
|
2920
|
+
"members": [
|
2921
|
+
{
|
2922
|
+
"disabled": false,
|
2923
|
+
"document": "任务ID",
|
2924
|
+
"example": "task_0001",
|
2925
|
+
"member": "string",
|
2926
|
+
"name": "TaskId",
|
2927
|
+
"output_required": false,
|
2928
|
+
"type": "string",
|
2929
|
+
"value_allowed_null": false
|
2930
|
+
},
|
2931
|
+
{
|
2932
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2933
|
+
"member": "string",
|
2934
|
+
"name": "RequestId",
|
2935
|
+
"type": "string"
|
2936
|
+
}
|
2937
|
+
],
|
2938
|
+
"type": "object"
|
2939
|
+
},
|
2817
2940
|
"CreateBatchProductionRequest": {
|
2818
2941
|
"document": "CreateBatchProduction请求参数结构体",
|
2819
2942
|
"members": [
|
@@ -4825,6 +4948,53 @@
|
|
4825
4948
|
],
|
4826
4949
|
"type": "object"
|
4827
4950
|
},
|
4951
|
+
"DescribeAISearchTaskAsyncRequest": {
|
4952
|
+
"document": "DescribeAISearchTaskAsync请求参数结构体",
|
4953
|
+
"members": [
|
4954
|
+
{
|
4955
|
+
"disabled": false,
|
4956
|
+
"document": "任务ID",
|
4957
|
+
"example": "task_0001",
|
4958
|
+
"member": "string",
|
4959
|
+
"name": "TaskId",
|
4960
|
+
"required": true,
|
4961
|
+
"type": "string"
|
4962
|
+
}
|
4963
|
+
],
|
4964
|
+
"type": "object"
|
4965
|
+
},
|
4966
|
+
"DescribeAISearchTaskAsyncResponse": {
|
4967
|
+
"document": "DescribeAISearchTaskAsync返回参数结构体",
|
4968
|
+
"members": [
|
4969
|
+
{
|
4970
|
+
"disabled": false,
|
4971
|
+
"document": "状态。0-初始状态;1-正在处理;2-处理失败;3-成功",
|
4972
|
+
"example": "OK",
|
4973
|
+
"member": "int64",
|
4974
|
+
"name": "Status",
|
4975
|
+
"output_required": false,
|
4976
|
+
"type": "int",
|
4977
|
+
"value_allowed_null": false
|
4978
|
+
},
|
4979
|
+
{
|
4980
|
+
"disabled": false,
|
4981
|
+
"document": "任务处理结果数据",
|
4982
|
+
"example": "无",
|
4983
|
+
"member": "AISearchInfo",
|
4984
|
+
"name": "Data",
|
4985
|
+
"output_required": false,
|
4986
|
+
"type": "object",
|
4987
|
+
"value_allowed_null": false
|
4988
|
+
},
|
4989
|
+
{
|
4990
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4991
|
+
"member": "string",
|
4992
|
+
"name": "RequestId",
|
4993
|
+
"type": "string"
|
4994
|
+
}
|
4995
|
+
],
|
4996
|
+
"type": "object"
|
4997
|
+
},
|
4828
4998
|
"DescribeActivateDeviceRequest": {
|
4829
4999
|
"document": "DescribeActivateDevice请求参数结构体",
|
4830
5000
|
"members": [
|
@@ -104,6 +104,14 @@
|
|
104
104
|
"title": "设备不在线时或未订阅相关 Topic 时,设置设备数据"
|
105
105
|
}
|
106
106
|
],
|
107
|
+
"CreateAISearchTaskAsync": [
|
108
|
+
{
|
109
|
+
"document": "",
|
110
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAISearchTaskAsync\n\n{\n \"ProductId\": \"MVTYMD8YCD\",\n \"DeviceName\": \"dev001\",\n \"Query\": \"What happened on April 1st\"\n}",
|
111
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a9a9d232-01c0-494a-baa3-57c384463c3f\",\n \"TaskId\": \"task_0001\"\n }\n}",
|
112
|
+
"title": "创建视频语义异步搜索任务"
|
113
|
+
}
|
114
|
+
],
|
107
115
|
"CreateBatchProduction": [
|
108
116
|
{
|
109
117
|
"document": "使用上传文件 url 的方式进行量产",
|
@@ -406,6 +414,14 @@
|
|
406
414
|
"title": "删除规则"
|
407
415
|
}
|
408
416
|
],
|
417
|
+
"DescribeAISearchTaskAsync": [
|
418
|
+
{
|
419
|
+
"document": "",
|
420
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAISearchTaskAsync\n\n{\n \"TaskId\": \"task_0001\"\n}",
|
421
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a9a9d232-01c0-494a-baa3-57c384463c3f\",\n \"Status\": 3,\n \"Data\": {\n \"Summary\": \"Nine videos captured various scenes on April 1st, showcasing pets eating and playing, a peaceful baby interaction, a resting child, and diligent workers like cleaners and delivery men, all without any safety concerns.\",\n \"Targets\": [\n {\n \"ProductId\": \"MVTYMD8YCD\",\n \"DeviceName\": \"dev001\",\n \"StartTimeMs\": 1743456533000,\n \"EndTimeMs\": 1743456543000,\n \"EventId\": \"alarm\",\n \"Summary\": \"Two cats and a dog eating\"\n }\n ]\n }\n }\n}",
|
422
|
+
"title": "获取视频语义异步搜索任务详情"
|
423
|
+
}
|
424
|
+
],
|
409
425
|
"DescribeActivateDevice": [
|
410
426
|
{
|
411
427
|
"document": "",
|
@@ -2357,6 +2357,58 @@ def doDescribeDockerContainers(args, parsed_globals):
|
|
2357
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2358
|
|
2359
2359
|
|
2360
|
+
def doSyncBlueprint(args, parsed_globals):
|
2361
|
+
g_param = parse_global_arg(parsed_globals)
|
2362
|
+
|
2363
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2364
|
+
cred = credential.CVMRoleCredential()
|
2365
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2366
|
+
cred = credential.STSAssumeRoleCredential(
|
2367
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2368
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2369
|
+
)
|
2370
|
+
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):
|
2371
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2372
|
+
else:
|
2373
|
+
cred = credential.Credential(
|
2374
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2375
|
+
)
|
2376
|
+
http_profile = HttpProfile(
|
2377
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2378
|
+
reqMethod="POST",
|
2379
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2380
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2381
|
+
)
|
2382
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2383
|
+
if g_param[OptionsDefine.Language]:
|
2384
|
+
profile.language = g_param[OptionsDefine.Language]
|
2385
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2386
|
+
client = mod.LighthouseClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2388
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
+
model = models.SyncBlueprintRequest()
|
2390
|
+
model.from_json_string(json.dumps(args))
|
2391
|
+
start_time = time.time()
|
2392
|
+
while True:
|
2393
|
+
rsp = client.SyncBlueprint(model)
|
2394
|
+
result = rsp.to_json_string()
|
2395
|
+
try:
|
2396
|
+
json_obj = json.loads(result)
|
2397
|
+
except TypeError as e:
|
2398
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2399
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2400
|
+
break
|
2401
|
+
cur_time = time.time()
|
2402
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2403
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2404
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2405
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2406
|
+
else:
|
2407
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2408
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2409
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2410
|
+
|
2411
|
+
|
2360
2412
|
def doTerminateDisks(args, parsed_globals):
|
2361
2413
|
g_param = parse_global_arg(parsed_globals)
|
2362
2414
|
|
@@ -5637,6 +5689,7 @@ ACTION_MAP = {
|
|
5637
5689
|
"DescribeDockerContainerDetail": doDescribeDockerContainerDetail,
|
5638
5690
|
"DescribeBlueprintInstances": doDescribeBlueprintInstances,
|
5639
5691
|
"DescribeDockerContainers": doDescribeDockerContainers,
|
5692
|
+
"SyncBlueprint": doSyncBlueprint,
|
5640
5693
|
"TerminateDisks": doTerminateDisks,
|
5641
5694
|
"CreateFirewallTemplateRules": doCreateFirewallTemplateRules,
|
5642
5695
|
"DescribeSnapshotsDeniedActions": doDescribeSnapshotsDeniedActions,
|
@@ -735,6 +735,13 @@
|
|
735
735
|
"output": "StopInstancesResponse",
|
736
736
|
"status": "online"
|
737
737
|
},
|
738
|
+
"SyncBlueprint": {
|
739
|
+
"document": "本接口 (SyncBlueprint) 用于将自定义镜像同步到其它地域。\n\n* 支持向多个地域同步。最多10个地域。\n* 不支持向源地域同步。\n* 只支持NORMAL状态的镜像进行同步。\n* 不支持中国大陆地域和非中国大陆地域之间同步。\n* 可以通过[DescribeBlueprints](https://cloud.tencent.com/document/api/1207/47689)查询镜像状态,当镜像状态为NORMAL时表示源地域同步结束。",
|
740
|
+
"input": "SyncBlueprintRequest",
|
741
|
+
"name": "同步镜像",
|
742
|
+
"output": "SyncBlueprintResponse",
|
743
|
+
"status": "online"
|
744
|
+
},
|
738
745
|
"TerminateDisks": {
|
739
746
|
"document": "本接口(TerminateDisks)用于销毁一个或多个云硬盘。\n云硬盘状态必须处于SHUTDOWN(已隔离)状态。",
|
740
747
|
"input": "TerminateDisksRequest",
|
@@ -9576,6 +9583,42 @@
|
|
9576
9583
|
],
|
9577
9584
|
"usage": "out"
|
9578
9585
|
},
|
9586
|
+
"SyncBlueprintRequest": {
|
9587
|
+
"document": "SyncBlueprint请求参数结构体",
|
9588
|
+
"members": [
|
9589
|
+
{
|
9590
|
+
"disabled": false,
|
9591
|
+
"document": "镜像ID。",
|
9592
|
+
"example": "lhbp-sdeji832",
|
9593
|
+
"member": "string",
|
9594
|
+
"name": "BlueprintId",
|
9595
|
+
"required": true,
|
9596
|
+
"type": "string"
|
9597
|
+
},
|
9598
|
+
{
|
9599
|
+
"disabled": false,
|
9600
|
+
"document": "同步镜像的目的地域列表。",
|
9601
|
+
"example": "无",
|
9602
|
+
"member": "string",
|
9603
|
+
"name": "DestinationRegions",
|
9604
|
+
"required": true,
|
9605
|
+
"type": "list"
|
9606
|
+
}
|
9607
|
+
],
|
9608
|
+
"type": "object"
|
9609
|
+
},
|
9610
|
+
"SyncBlueprintResponse": {
|
9611
|
+
"document": "SyncBlueprint返回参数结构体",
|
9612
|
+
"members": [
|
9613
|
+
{
|
9614
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
9615
|
+
"member": "string",
|
9616
|
+
"name": "RequestId",
|
9617
|
+
"type": "string"
|
9618
|
+
}
|
9619
|
+
],
|
9620
|
+
"type": "object"
|
9621
|
+
},
|
9579
9622
|
"SystemDisk": {
|
9580
9623
|
"document": "描述了操作系统所在块设备即系统盘的信息。",
|
9581
9624
|
"members": [
|
@@ -846,6 +846,14 @@
|
|
846
846
|
"title": "关闭实例"
|
847
847
|
}
|
848
848
|
],
|
849
|
+
"SyncBlueprint": [
|
850
|
+
{
|
851
|
+
"document": "向两个地域同步自定义镜像。",
|
852
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SyncBlueprint\n<公共请求参数>\n\n{\n \"BlueprintId\": \"lhbp-ls883feh\",\n \"DestinationRegions\": [\n \"ap-singapore\",\n \"ap-hongkong\"\n ]\n}",
|
853
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"647f2a53-c672-45fa-980b-385423898a69\"\n }\n}",
|
854
|
+
"title": "跨地域同步自定义镜像"
|
855
|
+
}
|
856
|
+
],
|
849
857
|
"TerminateDisks": [
|
850
858
|
{
|
851
859
|
"document": "销毁云硬盘",
|