tccli 3.0.1245.1__py2.py3-none-any.whl → 3.0.1246.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/__init__.py +3 -0
- tccli/services/cdb/cdb_client.py +53 -0
- tccli/services/cdb/v20170320/api.json +72 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/dbdc/v20201029/api.json +72 -72
- tccli/services/dcdb/v20180411/api.json +3 -3
- tccli/services/dcdb/v20180411/examples.json +1 -1
- tccli/services/iotexplorer/iotexplorer_client.py +216 -4
- tccli/services/iotexplorer/v20190423/api.json +146 -1
- tccli/services/iotexplorer/v20190423/examples.json +34 -2
- tccli/services/lkeap/__init__.py +4 -0
- tccli/services/lkeap/lkeap_client.py +1426 -0
- tccli/services/lkeap/v20240522/api.json +1882 -0
- tccli/services/lkeap/v20240522/examples.json +215 -0
- tccli/services/mna/v20210119/api.json +7 -7
- tccli/services/mna/v20210119/examples.json +9 -9
- tccli/services/monitor/v20180724/api.json +19 -0
- tccli/services/sqlserver/v20180328/api.json +43 -5
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/tcb/v20180608/api.json +45 -39
- tccli/services/tcb/v20180608/examples.json +9 -9
- tccli/services/tcr/v20190924/api.json +53 -53
- tccli/services/tcr/v20190924/examples.json +14 -14
- tccli/services/vpc/v20170312/examples.json +23 -1
- tccli/services/wedata/v20210820/api.json +34 -1
- {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/RECORD +31 -27
- {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1245.1.dist-info → tccli-3.0.1246.1.dist-info}/license_files/LICENSE +0 -0
@@ -2357,6 +2357,58 @@ def doInheritCloudStorageUser(args, parsed_globals):
|
|
2357
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2358
|
|
2359
2359
|
|
2360
|
+
def doTransferTWeCallDevice(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.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
2387
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2388
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2389
|
+
model = models.TransferTWeCallDeviceRequest()
|
2390
|
+
model.from_json_string(json.dumps(args))
|
2391
|
+
start_time = time.time()
|
2392
|
+
while True:
|
2393
|
+
rsp = client.TransferTWeCallDevice(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 doListFirmwares(args, parsed_globals):
|
2361
2413
|
g_param = parse_global_arg(parsed_globals)
|
2362
2414
|
|
@@ -4801,6 +4853,58 @@ def doAssignTWeCallLicense(args, parsed_globals):
|
|
4801
4853
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4802
4854
|
|
4803
4855
|
|
4856
|
+
def doResetTWeCallDevice(args, parsed_globals):
|
4857
|
+
g_param = parse_global_arg(parsed_globals)
|
4858
|
+
|
4859
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4860
|
+
cred = credential.CVMRoleCredential()
|
4861
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4862
|
+
cred = credential.STSAssumeRoleCredential(
|
4863
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4864
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4865
|
+
)
|
4866
|
+
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):
|
4867
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4868
|
+
else:
|
4869
|
+
cred = credential.Credential(
|
4870
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4871
|
+
)
|
4872
|
+
http_profile = HttpProfile(
|
4873
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4874
|
+
reqMethod="POST",
|
4875
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4876
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4877
|
+
)
|
4878
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4879
|
+
if g_param[OptionsDefine.Language]:
|
4880
|
+
profile.language = g_param[OptionsDefine.Language]
|
4881
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4882
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
4883
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4884
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4885
|
+
model = models.ResetTWeCallDeviceRequest()
|
4886
|
+
model.from_json_string(json.dumps(args))
|
4887
|
+
start_time = time.time()
|
4888
|
+
while True:
|
4889
|
+
rsp = client.ResetTWeCallDevice(model)
|
4890
|
+
result = rsp.to_json_string()
|
4891
|
+
try:
|
4892
|
+
json_obj = json.loads(result)
|
4893
|
+
except TypeError as e:
|
4894
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4895
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4896
|
+
break
|
4897
|
+
cur_time = time.time()
|
4898
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4899
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4900
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4901
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4902
|
+
else:
|
4903
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4904
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4905
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4906
|
+
|
4907
|
+
|
4804
4908
|
def doModifyTopicPolicy(args, parsed_globals):
|
4805
4909
|
g_param = parse_global_arg(parsed_globals)
|
4806
4910
|
|
@@ -5529,6 +5633,58 @@ def doModifyCloudStorageAIService(args, parsed_globals):
|
|
5529
5633
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5530
5634
|
|
5531
5635
|
|
5636
|
+
def doDescribeProject(args, parsed_globals):
|
5637
|
+
g_param = parse_global_arg(parsed_globals)
|
5638
|
+
|
5639
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5640
|
+
cred = credential.CVMRoleCredential()
|
5641
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5642
|
+
cred = credential.STSAssumeRoleCredential(
|
5643
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5644
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5645
|
+
)
|
5646
|
+
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):
|
5647
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5648
|
+
else:
|
5649
|
+
cred = credential.Credential(
|
5650
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5651
|
+
)
|
5652
|
+
http_profile = HttpProfile(
|
5653
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5654
|
+
reqMethod="POST",
|
5655
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5656
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5657
|
+
)
|
5658
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5659
|
+
if g_param[OptionsDefine.Language]:
|
5660
|
+
profile.language = g_param[OptionsDefine.Language]
|
5661
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5662
|
+
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
5663
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5664
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5665
|
+
model = models.DescribeProjectRequest()
|
5666
|
+
model.from_json_string(json.dumps(args))
|
5667
|
+
start_time = time.time()
|
5668
|
+
while True:
|
5669
|
+
rsp = client.DescribeProject(model)
|
5670
|
+
result = rsp.to_json_string()
|
5671
|
+
try:
|
5672
|
+
json_obj = json.loads(result)
|
5673
|
+
except TypeError as e:
|
5674
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5675
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5676
|
+
break
|
5677
|
+
cur_time = time.time()
|
5678
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5679
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5680
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5681
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5682
|
+
else:
|
5683
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5684
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5685
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5686
|
+
|
5687
|
+
|
5532
5688
|
def doGetStudioProductList(args, parsed_globals):
|
5533
5689
|
g_param = parse_global_arg(parsed_globals)
|
5534
5690
|
|
@@ -7037,6 +7193,58 @@ def doModifyLoRaFrequency(args, parsed_globals):
|
|
7037
7193
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7038
7194
|
|
7039
7195
|
|
7196
|
+
def doPauseTWeCallDevice(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.PauseTWeCallDeviceRequest()
|
7226
|
+
model.from_json_string(json.dumps(args))
|
7227
|
+
start_time = time.time()
|
7228
|
+
while True:
|
7229
|
+
rsp = client.PauseTWeCallDevice(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
|
+
|
7040
7248
|
def doGetAuthMiniProgramAppList(args, parsed_globals):
|
7041
7249
|
g_param = parse_global_arg(parsed_globals)
|
7042
7250
|
|
@@ -7453,7 +7661,7 @@ def doUnbindDevices(args, parsed_globals):
|
|
7453
7661
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7454
7662
|
|
7455
7663
|
|
7456
|
-
def
|
7664
|
+
def doResumeWeCallDevice(args, parsed_globals):
|
7457
7665
|
g_param = parse_global_arg(parsed_globals)
|
7458
7666
|
|
7459
7667
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7482,11 +7690,11 @@ def doDescribeProject(args, parsed_globals):
|
|
7482
7690
|
client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
|
7483
7691
|
client._sdkVersion += ("_CLI_" + __version__)
|
7484
7692
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7485
|
-
model = models.
|
7693
|
+
model = models.ResumeWeCallDeviceRequest()
|
7486
7694
|
model.from_json_string(json.dumps(args))
|
7487
7695
|
start_time = time.time()
|
7488
7696
|
while True:
|
7489
|
-
rsp = client.
|
7697
|
+
rsp = client.ResumeWeCallDevice(model)
|
7490
7698
|
result = rsp.to_json_string()
|
7491
7699
|
try:
|
7492
7700
|
json_obj = json.loads(result)
|
@@ -7821,6 +8029,7 @@ ACTION_MAP = {
|
|
7821
8029
|
"SearchStudioProduct": doSearchStudioProduct,
|
7822
8030
|
"ModifyTopicRule": doModifyTopicRule,
|
7823
8031
|
"InheritCloudStorageUser": doInheritCloudStorageUser,
|
8032
|
+
"TransferTWeCallDevice": doTransferTWeCallDevice,
|
7824
8033
|
"ListFirmwares": doListFirmwares,
|
7825
8034
|
"PublishFirmwareUpdateMessage": doPublishFirmwareUpdateMessage,
|
7826
8035
|
"CreateDevice": doCreateDevice,
|
@@ -7868,6 +8077,7 @@ ACTION_MAP = {
|
|
7868
8077
|
"RemoveUserByRoomIdFromTRTC": doRemoveUserByRoomIdFromTRTC,
|
7869
8078
|
"SearchPositionSpace": doSearchPositionSpace,
|
7870
8079
|
"AssignTWeCallLicense": doAssignTWeCallLicense,
|
8080
|
+
"ResetTWeCallDevice": doResetTWeCallDevice,
|
7871
8081
|
"ModifyTopicPolicy": doModifyTopicPolicy,
|
7872
8082
|
"DescribeSpaceFenceEventList": doDescribeSpaceFenceEventList,
|
7873
8083
|
"UpdateFirmware": doUpdateFirmware,
|
@@ -7882,6 +8092,7 @@ ACTION_MAP = {
|
|
7882
8092
|
"DisableTopicRule": doDisableTopicRule,
|
7883
8093
|
"GetFamilyDeviceUserList": doGetFamilyDeviceUserList,
|
7884
8094
|
"ModifyCloudStorageAIService": doModifyCloudStorageAIService,
|
8095
|
+
"DescribeProject": doDescribeProject,
|
7885
8096
|
"GetStudioProductList": doGetStudioProductList,
|
7886
8097
|
"DescribeModelDefinition": doDescribeModelDefinition,
|
7887
8098
|
"DescribeBatchProduction": doDescribeBatchProduction,
|
@@ -7911,6 +8122,7 @@ ACTION_MAP = {
|
|
7911
8122
|
"GenSingleDeviceSignatureOfPublic": doGenSingleDeviceSignatureOfPublic,
|
7912
8123
|
"DescribeInstance": doDescribeInstance,
|
7913
8124
|
"ModifyLoRaFrequency": doModifyLoRaFrequency,
|
8125
|
+
"PauseTWeCallDevice": doPauseTWeCallDevice,
|
7914
8126
|
"GetAuthMiniProgramAppList": doGetAuthMiniProgramAppList,
|
7915
8127
|
"DeletePositionFence": doDeletePositionFence,
|
7916
8128
|
"ModifyCloudStorageAIServiceCallback": doModifyCloudStorageAIServiceCallback,
|
@@ -7919,7 +8131,7 @@ ACTION_MAP = {
|
|
7919
8131
|
"DescribeCloudStorageEvents": doDescribeCloudStorageEvents,
|
7920
8132
|
"ModifyModelDefinition": doModifyModelDefinition,
|
7921
8133
|
"UnbindDevices": doUnbindDevices,
|
7922
|
-
"
|
8134
|
+
"ResumeWeCallDevice": doResumeWeCallDevice,
|
7923
8135
|
"BindCloudStorageUser": doBindCloudStorageUser,
|
7924
8136
|
"CreatePositionSpace": doCreatePositionSpace,
|
7925
8137
|
"DescribeDeviceFirmWare": doDescribeDeviceFirmWare,
|
@@ -910,6 +910,13 @@
|
|
910
910
|
"output": "ModifyTopicRuleResponse",
|
911
911
|
"status": "online"
|
912
912
|
},
|
913
|
+
"PauseTWeCallDevice": {
|
914
|
+
"document": "暂停设备",
|
915
|
+
"input": "PauseTWeCallDeviceRequest",
|
916
|
+
"name": "暂停TWeCall激活设备",
|
917
|
+
"output": "PauseTWeCallDeviceResponse",
|
918
|
+
"status": "online"
|
919
|
+
},
|
913
920
|
"PublishBroadcastMessage": {
|
914
921
|
"document": "发布广播消息、发布RRPC消息属于早期服务,目前已停止维护,需要从官网下线。\n\n发布广播消息",
|
915
922
|
"input": "PublishBroadcastMessageRequest",
|
@@ -973,6 +980,20 @@
|
|
973
980
|
"output": "ResetCloudStorageEventResponse",
|
974
981
|
"status": "online"
|
975
982
|
},
|
983
|
+
"ResetTWeCallDevice": {
|
984
|
+
"document": "重置设备",
|
985
|
+
"input": "ResetTWeCallDeviceRequest",
|
986
|
+
"name": "重置TWeCall激活设备",
|
987
|
+
"output": "ResetTWeCallDeviceResponse",
|
988
|
+
"status": "online"
|
989
|
+
},
|
990
|
+
"ResumeWeCallDevice": {
|
991
|
+
"document": "恢复设备",
|
992
|
+
"input": "ResumeWeCallDeviceRequest",
|
993
|
+
"name": "恢复TWeCall激活设备",
|
994
|
+
"output": "ResumeWeCallDeviceResponse",
|
995
|
+
"status": "online"
|
996
|
+
},
|
976
997
|
"SearchPositionSpace": {
|
977
998
|
"document": "搜索位置空间",
|
978
999
|
"input": "SearchPositionSpaceRequest",
|
@@ -1001,6 +1022,13 @@
|
|
1001
1022
|
"output": "TransferCloudStorageResponse",
|
1002
1023
|
"status": "online"
|
1003
1024
|
},
|
1025
|
+
"TransferTWeCallDevice": {
|
1026
|
+
"document": "转移设备",
|
1027
|
+
"input": "TransferTWeCallDeviceRequest",
|
1028
|
+
"name": "转移TWeCall激活",
|
1029
|
+
"output": "TransferTWeCallDeviceResponse",
|
1030
|
+
"status": "online"
|
1031
|
+
},
|
1004
1032
|
"UnbindDevices": {
|
1005
1033
|
"document": "批量解绑子设备",
|
1006
1034
|
"input": "UnbindDevicesRequest",
|
@@ -1056,7 +1084,7 @@
|
|
1056
1084
|
"members": [
|
1057
1085
|
{
|
1058
1086
|
"disabled": false,
|
1059
|
-
"document": "TWecall类型:1-家庭安防场景; 2-穿戴类场景; 3-生活娱乐场景; 4-对讲及其它场景",
|
1087
|
+
"document": "TWecall类型:0-体验套餐;1-家庭安防场景; 2-穿戴类场景; 3-生活娱乐场景; 4-对讲及其它场景",
|
1060
1088
|
"example": "1",
|
1061
1089
|
"member": "int64",
|
1062
1090
|
"name": "PkgType",
|
@@ -12186,6 +12214,33 @@
|
|
12186
12214
|
],
|
12187
12215
|
"usage": "out"
|
12188
12216
|
},
|
12217
|
+
"PauseTWeCallDeviceRequest": {
|
12218
|
+
"document": "PauseTWeCallDevice请求参数结构体",
|
12219
|
+
"members": [
|
12220
|
+
{
|
12221
|
+
"disabled": false,
|
12222
|
+
"document": "设备列表",
|
12223
|
+
"example": "无",
|
12224
|
+
"member": "TWeCallInfo",
|
12225
|
+
"name": "DeviceList",
|
12226
|
+
"required": false,
|
12227
|
+
"type": "list"
|
12228
|
+
}
|
12229
|
+
],
|
12230
|
+
"type": "object"
|
12231
|
+
},
|
12232
|
+
"PauseTWeCallDeviceResponse": {
|
12233
|
+
"document": "PauseTWeCallDevice返回参数结构体",
|
12234
|
+
"members": [
|
12235
|
+
{
|
12236
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
12237
|
+
"member": "string",
|
12238
|
+
"name": "RequestId",
|
12239
|
+
"type": "string"
|
12240
|
+
}
|
12241
|
+
],
|
12242
|
+
"type": "object"
|
12243
|
+
},
|
12189
12244
|
"PositionFenceInfo": {
|
12190
12245
|
"document": "围栏详细信息(包含创建时间及更新时间)",
|
12191
12246
|
"members": [
|
@@ -13430,6 +13485,60 @@
|
|
13430
13485
|
],
|
13431
13486
|
"type": "object"
|
13432
13487
|
},
|
13488
|
+
"ResetTWeCallDeviceRequest": {
|
13489
|
+
"document": "ResetTWeCallDevice请求参数结构体",
|
13490
|
+
"members": [
|
13491
|
+
{
|
13492
|
+
"disabled": false,
|
13493
|
+
"document": "设备列表",
|
13494
|
+
"example": "无",
|
13495
|
+
"member": "TWeCallInfo",
|
13496
|
+
"name": "DeviceList",
|
13497
|
+
"required": false,
|
13498
|
+
"type": "list"
|
13499
|
+
}
|
13500
|
+
],
|
13501
|
+
"type": "object"
|
13502
|
+
},
|
13503
|
+
"ResetTWeCallDeviceResponse": {
|
13504
|
+
"document": "ResetTWeCallDevice返回参数结构体",
|
13505
|
+
"members": [
|
13506
|
+
{
|
13507
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
13508
|
+
"member": "string",
|
13509
|
+
"name": "RequestId",
|
13510
|
+
"type": "string"
|
13511
|
+
}
|
13512
|
+
],
|
13513
|
+
"type": "object"
|
13514
|
+
},
|
13515
|
+
"ResumeWeCallDeviceRequest": {
|
13516
|
+
"document": "ResumeWeCallDevice请求参数结构体",
|
13517
|
+
"members": [
|
13518
|
+
{
|
13519
|
+
"disabled": false,
|
13520
|
+
"document": "设备列表",
|
13521
|
+
"example": "无",
|
13522
|
+
"member": "TWeCallInfo",
|
13523
|
+
"name": "DeviceList",
|
13524
|
+
"required": false,
|
13525
|
+
"type": "list"
|
13526
|
+
}
|
13527
|
+
],
|
13528
|
+
"type": "object"
|
13529
|
+
},
|
13530
|
+
"ResumeWeCallDeviceResponse": {
|
13531
|
+
"document": "ResumeWeCallDevice返回参数结构体",
|
13532
|
+
"members": [
|
13533
|
+
{
|
13534
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
13535
|
+
"member": "string",
|
13536
|
+
"name": "RequestId",
|
13537
|
+
"type": "string"
|
13538
|
+
}
|
13539
|
+
],
|
13540
|
+
"type": "object"
|
13541
|
+
},
|
13433
13542
|
"SearchKeyword": {
|
13434
13543
|
"document": "搜索关键词",
|
13435
13544
|
"members": [
|
@@ -14197,6 +14306,42 @@
|
|
14197
14306
|
],
|
14198
14307
|
"type": "object"
|
14199
14308
|
},
|
14309
|
+
"TransferTWeCallDeviceRequest": {
|
14310
|
+
"document": "TransferTWeCallDevice请求参数结构体",
|
14311
|
+
"members": [
|
14312
|
+
{
|
14313
|
+
"disabled": false,
|
14314
|
+
"document": "sn信息,product_deviceName",
|
14315
|
+
"example": "dev1",
|
14316
|
+
"member": "string",
|
14317
|
+
"name": "TransferInDevice",
|
14318
|
+
"required": false,
|
14319
|
+
"type": "string"
|
14320
|
+
},
|
14321
|
+
{
|
14322
|
+
"disabled": false,
|
14323
|
+
"document": "sn信息,product_deviceName",
|
14324
|
+
"example": "dev2",
|
14325
|
+
"member": "string",
|
14326
|
+
"name": "TransferOutDevice",
|
14327
|
+
"required": false,
|
14328
|
+
"type": "string"
|
14329
|
+
}
|
14330
|
+
],
|
14331
|
+
"type": "object"
|
14332
|
+
},
|
14333
|
+
"TransferTWeCallDeviceResponse": {
|
14334
|
+
"document": "TransferTWeCallDevice返回参数结构体",
|
14335
|
+
"members": [
|
14336
|
+
{
|
14337
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
14338
|
+
"member": "string",
|
14339
|
+
"name": "RequestId",
|
14340
|
+
"type": "string"
|
14341
|
+
}
|
14342
|
+
],
|
14343
|
+
"type": "object"
|
14344
|
+
},
|
14200
14345
|
"UnbindDevicesRequest": {
|
14201
14346
|
"document": "UnbindDevices请求参数结构体",
|
14202
14347
|
"members": [
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"ActivateTWeCallLicense": [
|
4
4
|
{
|
5
5
|
"document": "",
|
6
|
-
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActivateTWeCallLicense\n<公共请求参数>\n\n{\n \"PkgType\": 1,\n \"
|
7
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
6
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ActivateTWeCallLicense\n<公共请求参数>\n\n{\n \"PkgType\": 1,\n \"DeviceList\": [\n {\n \"Sn\": \"productId_deviceName\"\n }\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3edc-45tg\",\n \"FailureList\": [],\n \"SuccessList\": [\n {\n \"ModelId\": \"modelId\",\n \"Sn\": \"productId_deviceName\",\n \"ExpireTime\": 356123\n }\n ]\n }\n}",
|
8
8
|
"title": "成功激活示例"
|
9
9
|
}
|
10
10
|
],
|
@@ -1142,6 +1142,14 @@
|
|
1142
1142
|
"title": "修改规则"
|
1143
1143
|
}
|
1144
1144
|
],
|
1145
|
+
"PauseTWeCallDevice": [
|
1146
|
+
{
|
1147
|
+
"document": "",
|
1148
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PauseTWeCallDevice\n<公共请求参数>\n\n{\n \"DeviceList\": [\n {\n \"Sn\": \"productId_deviceName\"\n }\n ]\n}",
|
1149
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
1150
|
+
"title": "暂停设备"
|
1151
|
+
}
|
1152
|
+
],
|
1145
1153
|
"PublishBroadcastMessage": [
|
1146
1154
|
{
|
1147
1155
|
"document": "",
|
@@ -1232,6 +1240,22 @@
|
|
1232
1240
|
"title": "重置云存事件"
|
1233
1241
|
}
|
1234
1242
|
],
|
1243
|
+
"ResetTWeCallDevice": [
|
1244
|
+
{
|
1245
|
+
"document": "",
|
1246
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetTWeCallDevice\n<公共请求参数>\n\n{\n \"DeviceList\": [\n {\n \"Sn\": \"productId_deviceName\"\n }\n ]\n}",
|
1247
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
1248
|
+
"title": "重置TWeCall激活设备"
|
1249
|
+
}
|
1250
|
+
],
|
1251
|
+
"ResumeWeCallDevice": [
|
1252
|
+
{
|
1253
|
+
"document": "",
|
1254
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResumeWeCallDevice\n<公共请求参数>\n\n{\n \"DeviceList\": [\n {\n \"Sn\": \"productId_deviceName\"\n }\n ]\n}",
|
1255
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1234ewfag\"\n }\n}",
|
1256
|
+
"title": "恢复设备"
|
1257
|
+
}
|
1258
|
+
],
|
1235
1259
|
"SearchPositionSpace": [
|
1236
1260
|
{
|
1237
1261
|
"document": "",
|
@@ -1264,6 +1288,14 @@
|
|
1264
1288
|
"title": "转移云存服务"
|
1265
1289
|
}
|
1266
1290
|
],
|
1291
|
+
"TransferTWeCallDevice": [
|
1292
|
+
{
|
1293
|
+
"document": "",
|
1294
|
+
"input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TransferWeCallDevice\n<公共请求参数>\n\n{\n \"TransferInDevice\": \"productId_deviceName\",\n \"TransferOutDevice\": \"productId_deviceName1\"\n}",
|
1295
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"12ed-5tgb-9gdw8\"\n }\n}",
|
1296
|
+
"title": "转移设备"
|
1297
|
+
}
|
1298
|
+
],
|
1267
1299
|
"UnbindDevices": [
|
1268
1300
|
{
|
1269
1301
|
"document": "",
|