tccli 3.0.1226.1__py2.py3-none-any.whl → 3.0.1228.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.
Files changed (56) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/cam/v20190116/api.json +19 -13
  4. tccli/services/cdb/v20170320/api.json +159 -1
  5. tccli/services/cdb/v20170320/examples.json +2 -2
  6. tccli/services/cfs/v20190719/api.json +19 -0
  7. tccli/services/ckafka/v20190819/api.json +968 -763
  8. tccli/services/ckafka/v20190819/examples.json +112 -118
  9. tccli/services/cloudapp/v20220530/api.json +2 -2
  10. tccli/services/cloudapp/v20220530/examples.json +1 -1
  11. tccli/services/cynosdb/cynosdb_client.py +110 -4
  12. tccli/services/cynosdb/v20190107/api.json +125 -0
  13. tccli/services/cynosdb/v20190107/examples.json +16 -0
  14. tccli/services/emr/v20190103/api.json +28 -22
  15. tccli/services/ess/v20201111/api.json +18 -0
  16. tccli/services/essbasic/v20210526/api.json +10 -1
  17. tccli/services/faceid/v20180301/api.json +1 -1
  18. tccli/services/iotexplorer/iotexplorer_client.py +57 -4
  19. tccli/services/iotexplorer/v20190423/api.json +145 -0
  20. tccli/services/iotexplorer/v20190423/examples.json +14 -0
  21. tccli/services/ivld/v20210903/api.json +245 -192
  22. tccli/services/ivld/v20210903/examples.json +10 -10
  23. tccli/services/lcic/v20220817/api.json +1 -1
  24. tccli/services/lke/lke_client.py +394 -23
  25. tccli/services/lke/v20231130/api.json +756 -23
  26. tccli/services/lke/v20231130/examples.json +62 -0
  27. tccli/services/mps/v20190612/api.json +13 -13
  28. tccli/services/organization/v20181225/api.json +75 -51
  29. tccli/services/organization/v20181225/examples.json +20 -20
  30. tccli/services/organization/v20210331/api.json +74 -61
  31. tccli/services/organization/v20210331/examples.json +14 -14
  32. tccli/services/privatedns/v20201028/api.json +41 -13
  33. tccli/services/rce/v20201103/api.json +1 -1
  34. tccli/services/redis/v20180412/api.json +1 -1
  35. tccli/services/teo/v20220901/api.json +3 -3
  36. tccli/services/tke/v20220501/api.json +109 -0
  37. tccli/services/tmt/v20180321/api.json +2 -2
  38. tccli/services/tmt/v20180321/examples.json +2 -2
  39. tccli/services/trocket/v20230308/api.json +79 -79
  40. tccli/services/trocket/v20230308/examples.json +8 -8
  41. tccli/services/trtc/v20190722/api.json +84 -0
  42. tccli/services/vcube/__init__.py +4 -0
  43. tccli/services/vcube/v20220410/api.json +4168 -0
  44. tccli/services/vcube/v20220410/examples.json +277 -0
  45. tccli/services/vcube/vcube_client.py +1956 -0
  46. tccli/services/vdb/v20230616/api.json +9 -0
  47. tccli/services/vod/v20180717/api.json +40 -3
  48. tccli/services/vod/v20180717/examples.json +13 -1
  49. tccli/services/vpc/v20170312/api.json +163 -11
  50. tccli/services/vpc/v20170312/examples.json +10 -2
  51. tccli/services/vpc/vpc_client.py +53 -0
  52. {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/METADATA +2 -2
  53. {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/RECORD +56 -52
  54. {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/WHEEL +0 -0
  55. {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/entry_points.txt +0 -0
  56. {tccli-3.0.1226.1.dist-info → tccli-3.0.1228.1.dist-info}/license_files/LICENSE +0 -0
@@ -433,7 +433,7 @@ def doCreateCloudStorageAIService(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
- def doGetProjectList(args, parsed_globals):
436
+ def doInvokeCloudStorageAIServiceTask(args, parsed_globals):
437
437
  g_param = parse_global_arg(parsed_globals)
438
438
 
439
439
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -462,11 +462,11 @@ def doGetProjectList(args, parsed_globals):
462
462
  client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
463
463
  client._sdkVersion += ("_CLI_" + __version__)
464
464
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
- model = models.GetProjectListRequest()
465
+ model = models.InvokeCloudStorageAIServiceTaskRequest()
466
466
  model.from_json_string(json.dumps(args))
467
467
  start_time = time.time()
468
468
  while True:
469
- rsp = client.GetProjectList(model)
469
+ rsp = client.InvokeCloudStorageAIServiceTask(model)
470
470
  result = rsp.to_json_string()
471
471
  try:
472
472
  json_obj = json.loads(result)
@@ -4333,6 +4333,58 @@ def doUploadFirmware(args, parsed_globals):
4333
4333
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4334
4334
 
4335
4335
 
4336
+ def doGetProjectList(args, parsed_globals):
4337
+ g_param = parse_global_arg(parsed_globals)
4338
+
4339
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4340
+ cred = credential.CVMRoleCredential()
4341
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4342
+ cred = credential.STSAssumeRoleCredential(
4343
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4344
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4345
+ )
4346
+ 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):
4347
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4348
+ else:
4349
+ cred = credential.Credential(
4350
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4351
+ )
4352
+ http_profile = HttpProfile(
4353
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4354
+ reqMethod="POST",
4355
+ endpoint=g_param[OptionsDefine.Endpoint],
4356
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4357
+ )
4358
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4359
+ if g_param[OptionsDefine.Language]:
4360
+ profile.language = g_param[OptionsDefine.Language]
4361
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4362
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
4363
+ client._sdkVersion += ("_CLI_" + __version__)
4364
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4365
+ model = models.GetProjectListRequest()
4366
+ model.from_json_string(json.dumps(args))
4367
+ start_time = time.time()
4368
+ while True:
4369
+ rsp = client.GetProjectList(model)
4370
+ result = rsp.to_json_string()
4371
+ try:
4372
+ json_obj = json.loads(result)
4373
+ except TypeError as e:
4374
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4375
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4376
+ break
4377
+ cur_time = time.time()
4378
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4379
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4380
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4381
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4382
+ else:
4383
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4384
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4385
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4386
+
4387
+
4336
4388
  def doGetTWeCallPkgList(args, parsed_globals):
4337
4389
  g_param = parse_global_arg(parsed_globals)
4338
4390
 
@@ -7576,7 +7628,7 @@ ACTION_MAP = {
7576
7628
  "DescribeDevice": doDescribeDevice,
7577
7629
  "DescribeTopicPolicy": doDescribeTopicPolicy,
7578
7630
  "CreateCloudStorageAIService": doCreateCloudStorageAIService,
7579
- "GetProjectList": doGetProjectList,
7631
+ "InvokeCloudStorageAIServiceTask": doInvokeCloudStorageAIServiceTask,
7580
7632
  "CallDeviceActionSync": doCallDeviceActionSync,
7581
7633
  "DescribeGatewayBindDevices": doDescribeGatewayBindDevices,
7582
7634
  "DeleteStudioProduct": doDeleteStudioProduct,
@@ -7651,6 +7703,7 @@ ACTION_MAP = {
7651
7703
  "PublishRRPCMessage": doPublishRRPCMessage,
7652
7704
  "DescribeCloudStorage": doDescribeCloudStorage,
7653
7705
  "UploadFirmware": doUploadFirmware,
7706
+ "GetProjectList": doGetProjectList,
7654
7707
  "GetTWeCallPkgList": doGetTWeCallPkgList,
7655
7708
  "UpdateDevicesEnableState": doUpdateDevicesEnableState,
7656
7709
  "ModifyProject": doModifyProject,
@@ -756,6 +756,13 @@
756
756
  "output": "InheritCloudStorageUserResponse",
757
757
  "status": "online"
758
758
  },
759
+ "InvokeCloudStorageAIServiceTask": {
760
+ "document": "同步执行设备云存 AI 分析任务",
761
+ "input": "InvokeCloudStorageAIServiceTaskRequest",
762
+ "name": "同步执行设备云存AI分析任务",
763
+ "output": "InvokeCloudStorageAIServiceTaskResponse",
764
+ "status": "online"
765
+ },
759
766
  "InvokeExternalSourceAIServiceTask": {
760
767
  "document": "创建外部视频 AI 分析任务",
761
768
  "input": "InvokeExternalSourceAIServiceTaskRequest",
@@ -10128,6 +10135,144 @@
10128
10135
  ],
10129
10136
  "usage": "out"
10130
10137
  },
10138
+ "InvokeCloudStorageAIServiceTaskRequest": {
10139
+ "document": "InvokeCloudStorageAIServiceTask请求参数结构体",
10140
+ "members": [
10141
+ {
10142
+ "disabled": false,
10143
+ "document": "产品 ID",
10144
+ "example": "TQBDY6RPI9",
10145
+ "member": "string",
10146
+ "name": "ProductId",
10147
+ "required": true,
10148
+ "type": "string"
10149
+ },
10150
+ {
10151
+ "disabled": false,
10152
+ "document": "设备名称",
10153
+ "example": "cs_112114601_2",
10154
+ "member": "string",
10155
+ "name": "DeviceName",
10156
+ "required": true,
10157
+ "type": "string"
10158
+ },
10159
+ {
10160
+ "disabled": false,
10161
+ "document": "云存 AI 服务类型。可选值:\n- `RealtimeObjectDetect`:目标检测\n- `Highlight`:视频浓缩\n- `VideoToText`:视频语义理解",
10162
+ "example": "Highlight",
10163
+ "member": "string",
10164
+ "name": "ServiceType",
10165
+ "required": true,
10166
+ "type": "string"
10167
+ },
10168
+ {
10169
+ "disabled": false,
10170
+ "document": "待分析云存的起始时间",
10171
+ "example": "1704038400",
10172
+ "member": "uint64",
10173
+ "name": "StartTime",
10174
+ "required": true,
10175
+ "type": "int"
10176
+ },
10177
+ {
10178
+ "disabled": false,
10179
+ "document": "待分析云存的结束时间",
10180
+ "example": "1704124800",
10181
+ "member": "uint64",
10182
+ "name": "EndTime",
10183
+ "required": true,
10184
+ "type": "int"
10185
+ },
10186
+ {
10187
+ "disabled": false,
10188
+ "document": "通道 ID",
10189
+ "example": "1",
10190
+ "member": "uint64",
10191
+ "name": "ChannelId",
10192
+ "required": false,
10193
+ "type": "int"
10194
+ },
10195
+ {
10196
+ "disabled": false,
10197
+ "document": "视频分析配置参数",
10198
+ "example": "{\"param1\":\"value1\"}",
10199
+ "member": "string",
10200
+ "name": "Config",
10201
+ "required": false,
10202
+ "type": "string"
10203
+ },
10204
+ {
10205
+ "disabled": false,
10206
+ "document": "视频分析识别区域",
10207
+ "example": "{}",
10208
+ "member": "string",
10209
+ "name": "ROI",
10210
+ "required": false,
10211
+ "type": "string"
10212
+ },
10213
+ {
10214
+ "disabled": false,
10215
+ "document": "分析外部传入的视频 URL 列表,支持 HLS 点播(m3u8)及常见视频格式(mp4 等)",
10216
+ "example": "[\"https://example.com/timeshift.m3u8\"]",
10217
+ "member": "string",
10218
+ "name": "VideoURLs",
10219
+ "required": false,
10220
+ "type": "list"
10221
+ },
10222
+ {
10223
+ "disabled": false,
10224
+ "document": "自定义任务 ID",
10225
+ "example": "event-123",
10226
+ "member": "string",
10227
+ "name": "CustomId",
10228
+ "required": false,
10229
+ "type": "string"
10230
+ }
10231
+ ],
10232
+ "type": "object"
10233
+ },
10234
+ "InvokeCloudStorageAIServiceTaskResponse": {
10235
+ "document": "InvokeCloudStorageAIServiceTask返回参数结构体",
10236
+ "members": [
10237
+ {
10238
+ "disabled": false,
10239
+ "document": "任务是否执行完成",
10240
+ "example": "true",
10241
+ "member": "bool",
10242
+ "name": "Completed",
10243
+ "output_required": true,
10244
+ "type": "bool",
10245
+ "value_allowed_null": false
10246
+ },
10247
+ {
10248
+ "disabled": false,
10249
+ "document": "任务 ID",
10250
+ "example": "fb066d7a-baac-4706-acda-058f56f82759",
10251
+ "member": "string",
10252
+ "name": "TaskId",
10253
+ "output_required": true,
10254
+ "type": "string",
10255
+ "value_allowed_null": false
10256
+ },
10257
+ {
10258
+ "disabled": false,
10259
+ "document": "任务信息",
10260
+ "example": "无",
10261
+ "member": "CloudStorageAIServiceTask",
10262
+ "name": "TaskInfo",
10263
+ "output_required": true,
10264
+ "type": "object",
10265
+ "value_allowed_null": false
10266
+ },
10267
+ {
10268
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
10269
+ "member": "string",
10270
+ "name": "RequestId",
10271
+ "type": "string"
10272
+ }
10273
+ ],
10274
+ "type": "object"
10275
+ },
10131
10276
  "InvokeExternalSourceAIServiceTaskRequest": {
10132
10277
  "document": "InvokeExternalSourceAIServiceTask请求参数结构体",
10133
10278
  "members": [
@@ -942,6 +942,20 @@
942
942
  "title": "继承云存用户"
943
943
  }
944
944
  ],
945
+ "InvokeCloudStorageAIServiceTask": [
946
+ {
947
+ "document": "",
948
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InvokeCloudStorageAIServiceTask\n<公共请求参数>\n\n{\n \"ProductId\": \"TSLFHRWDSD\",\n \"DeviceName\": \"dev002\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"EndTime\": 1732780835,\n \"VideoURLs\": [\n \"https://example.com/video.mp4\"\n ]\n}",
949
+ "output": "{\n \"Response\": {\n \"Completed\": true,\n \"RequestId\": \"5acdfd09-5634-4ae3-8ebd-1d4c33bb7dd7\",\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"TaskInfo\": {\n \"ChannelId\": 0,\n \"CreateTime\": 1732781464,\n \"DeviceName\": \"dev002\",\n \"EndTime\": 1732780835,\n \"Files\": [],\n \"ProductId\": \"TSLFHRWDSD\",\n \"Result\": \"{\\\"DetectedClassifications\\\": [\\\"person\\\"], \\\"Summary\\\": \\\"白衣人走在湿漉漉的路面上\\\"}\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"Status\": 3,\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"UpdateTime\": 1732781466\n }\n }\n}",
950
+ "title": "创建设备云存 AI 分析任务(执行成功)"
951
+ },
952
+ {
953
+ "document": "",
954
+ "input": "POST / HTTP/1.1\nHost: iotexplorer.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InvokeCloudStorageAIServiceTask\n<公共请求参数>\n\n{\n \"ProductId\": \"TSLFHRWDSD\",\n \"DeviceName\": \"dev002\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"EndTime\": 1732780835,\n \"VideoURLs\": [\n \"https://example.com/video.mp4\"\n ]\n}",
955
+ "output": "{\n \"Response\": {\n \"Completed\": false,\n \"RequestId\": \"5acdfd09-5634-4ae3-8ebd-1d4c33bb7dd7\",\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"TaskInfo\": {\n \"ChannelId\": 0,\n \"CreateTime\": 1732781464,\n \"DeviceName\": \"dev002\",\n \"EndTime\": 1732780835,\n \"Files\": [],\n \"ProductId\": \"TSLFHRWDSD\",\n \"Result\": \"\",\n \"ServiceType\": \"VideoToText\",\n \"StartTime\": 1732780832,\n \"Status\": 4,\n \"TaskId\": \"019371d2-da8b-7171-a6de-fc077173b205\",\n \"UpdateTime\": 1732781464\n }\n }\n}",
956
+ "title": "创建设备云存 AI 分析任务(超时未完成,转异步)"
957
+ }
958
+ ],
945
959
  "InvokeExternalSourceAIServiceTask": [
946
960
  {
947
961
  "document": "",