tccli 3.0.1322.1__py2.py3-none-any.whl → 3.0.1324.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 (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/autoscaling/v20180419/api.json +1 -1
  3. tccli/services/batch/v20170312/api.json +18 -18
  4. tccli/services/bi/v20220105/api.json +69 -1
  5. tccli/services/cbs/v20170312/api.json +1 -1
  6. tccli/services/cdb/v20170320/api.json +20 -0
  7. tccli/services/cdn/v20180606/api.json +1 -1
  8. tccli/services/cfw/v20190904/api.json +6 -6
  9. tccli/services/cfw/v20190904/examples.json +1 -1
  10. tccli/services/cloudapp/v20220530/api.json +10 -0
  11. tccli/services/cloudaudit/v20190319/api.json +4 -4
  12. tccli/services/csip/v20221121/api.json +1 -1
  13. tccli/services/cvm/v20170312/api.json +37 -37
  14. tccli/services/cvm/v20170312/examples.json +6 -6
  15. tccli/services/cynosdb/cynosdb_client.py +334 -16
  16. tccli/services/cynosdb/v20190107/api.json +558 -0
  17. tccli/services/cynosdb/v20190107/examples.json +48 -0
  18. tccli/services/emr/emr_client.py +53 -0
  19. tccli/services/emr/v20190103/api.json +222 -4
  20. tccli/services/emr/v20190103/examples.json +8 -0
  21. tccli/services/gs/v20191118/api.json +10 -0
  22. tccli/services/gs/v20191118/examples.json +1 -1
  23. tccli/services/lighthouse/v20200324/api.json +1 -1
  24. tccli/services/live/v20180801/api.json +1 -1
  25. tccli/services/lke/v20231130/api.json +2 -2
  26. tccli/services/lke/v20231130/examples.json +1 -1
  27. tccli/services/lkeap/v20240522/api.json +1 -1
  28. tccli/services/monitor/v20180724/api.json +5 -2
  29. tccli/services/monitor/v20180724/examples.json +1 -1
  30. tccli/services/ocr/v20181119/api.json +201 -2
  31. tccli/services/ocr/v20181119/examples.json +1 -1
  32. tccli/services/ses/ses_client.py +170 -11
  33. tccli/services/ses/v20201002/api.json +138 -0
  34. tccli/services/ses/v20201002/examples.json +24 -0
  35. tccli/services/sms/v20210111/api.json +1 -1
  36. tccli/services/tcss/v20201101/api.json +3 -3
  37. tccli/services/tcss/v20201101/examples.json +1 -1
  38. tccli/services/tione/v20211111/api.json +1 -1
  39. tccli/services/trabbit/v20230418/api.json +20 -0
  40. tccli/services/trabbit/v20230418/examples.json +1 -1
  41. tccli/services/trtc/v20190722/api.json +2 -2
  42. tccli/services/trtc/v20190722/examples.json +6 -0
  43. tccli/services/tse/v20201207/api.json +2 -2
  44. tccli/services/tsf/v20180326/api.json +12 -1
  45. tccli/services/vpc/v20170312/api.json +58 -0
  46. tccli/services/vpc/v20170312/examples.json +28 -0
  47. tccli/services/vpc/vpc_client.py +122 -16
  48. {tccli-3.0.1322.1.dist-info → tccli-3.0.1324.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.1322.1.dist-info → tccli-3.0.1324.1.dist-info}/RECORD +52 -52
  50. {tccli-3.0.1322.1.dist-info → tccli-3.0.1324.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.1322.1.dist-info → tccli-3.0.1324.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.1322.1.dist-info → tccli-3.0.1324.1.dist-info}/license_files/LICENSE +0 -0
@@ -330,6 +330,14 @@
330
330
  "title": "查询备份配置信息"
331
331
  }
332
332
  ],
333
+ "DescribeBackupDownloadRestriction": [
334
+ {
335
+ "document": "查询备份下载限制",
336
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupDownloadRestriction\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-2p3wjmzt\"\n ]\n}",
337
+ "output": "{\n \"Response\": {\n \"BackupLimitClusterRestrictions\": [\n {\n \"BackupLimitRestriction\": {\n \"IpComparisonSymbol\": \"In\",\n \"LimitIps\": [],\n \"LimitType\": \"Customize\",\n \"LimitVpcs\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"VpcList\": []\n }\n ],\n \"VpcComparisonSymbol\": \"In\"\n },\n \"ClusterId\": \"cynosdbmysql-2p3wjmzt\"\n }\n ],\n \"RequestId\": \"36eca298-c9b7-4e13-8f33-3c07926ee0d8\"\n }\n}",
338
+ "title": "查询备份下载限制"
339
+ }
340
+ ],
333
341
  "DescribeBackupDownloadUrl": [
334
342
  {
335
343
  "document": "",
@@ -338,6 +346,14 @@
338
346
  "title": "查询集群备份文件下载地址"
339
347
  }
340
348
  ],
349
+ "DescribeBackupDownloadUserRestriction": [
350
+ {
351
+ "document": "当前地域用户级别设置的默认备份下载来源限制",
352
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupDownloadUserRestriction\n<公共请求参数>\n\n{\n \"Limit\": 1,\n \"Offset\": 0,\n \"OnlyUserRestriction\": false\n}",
353
+ "output": "{\n \"Response\": {\n \"BackupLimitClusterRestrictions\": [\n {\n \"BackupLimitRestriction\": {\n \"IpComparisonSymbol\": \"In\",\n \"LimitIps\": [],\n \"LimitType\": \"Customize\",\n \"LimitVpcs\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"VpcList\": []\n }\n ],\n \"VpcComparisonSymbol\": \"In\"\n },\n \"ClusterId\": \"cynosdbmysql-2p3wjmzt\"\n }\n ],\n \"RequestId\": \"36eca298-c9b7-4e13-8f33-3c07926ee0d8\"\n }\n}",
354
+ "title": "当前地域用户级别设置的默认备份下载来源限制"
355
+ }
356
+ ],
341
357
  "DescribeBackupList": [
342
358
  {
343
359
  "document": "查询备份文件列表",
@@ -458,6 +474,14 @@
458
474
  "title": "查看集群密码复杂度详情"
459
475
  }
460
476
  ],
477
+ "DescribeClusterReadOnly": [
478
+ {
479
+ "document": "",
480
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterReadOnly\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-jl17y89v\",\n \"cynosdbmysql-2d9pq38h\"\n ]\n}",
481
+ "output": "{\n \"Response\": {\n \"ClusterReadOnlyValues\": [\n {\n \"ClusterId\": \"cynosdbmysql-jl17y89v\",\n \"ReadOnlyValue\": \"ON\"\n },\n {\n \"ClusterId\": \"cynosdbmysql-2d9pq38h\",\n \"ReadOnlyValue\": \"ON\"\n }\n ],\n \"RequestId\": \"48b7cd8a-f6dd-4e47-a78a-ssfff\"\n }\n}",
482
+ "title": "查询集群只读开关"
483
+ }
484
+ ],
461
485
  "DescribeClusterTransparentEncryptInfo": [
462
486
  {
463
487
  "document": "",
@@ -856,6 +880,22 @@
856
880
  "title": "修改集群备份配置"
857
881
  }
858
882
  ],
883
+ "ModifyBackupDownloadRestriction": [
884
+ {
885
+ "document": "",
886
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupDownloadRestriction\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-2p3wjmzt\"\n ],\n \"LimitType\": \"NoLimit\",\n \"VpcComparisonSymbol\": \"\",\n \"IpComparisonSymbol\": \"\",\n \"LimitVpcs\": [],\n \"LimitIps\": []\n}",
887
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1530aee8-5130-45ce-9f4e-dfb50a55e4d4\"\n }\n}",
888
+ "title": "修改集群下载限制"
889
+ }
890
+ ],
891
+ "ModifyBackupDownloadUserRestriction": [
892
+ {
893
+ "document": "",
894
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyBackupDownloadUserRestriction\n<公共请求参数>\n\n{\n \"LimitType\": \"NoLimit\",\n \"VpcComparisonSymbol\": \"\",\n \"IpComparisonSymbol\": \"\",\n \"LimitVpcs\": [],\n \"LimitIps\": []\n}",
895
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1530aee8-5130-45ce-9f4e-dfb50a55e4d4\"\n }\n}",
896
+ "title": "修改用户当前地域的备份文件限制"
897
+ }
898
+ ],
859
899
  "ModifyBackupName": [
860
900
  {
861
901
  "document": "",
@@ -912,6 +952,14 @@
912
952
  "title": "用于修改/开启集群密码复杂度"
913
953
  }
914
954
  ],
955
+ "ModifyClusterReadOnly": [
956
+ {
957
+ "document": "",
958
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterReadOnly\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cynosdbmysql-jl17y89v\",\n \"cynosdbmysql-2d9pq38h\"\n ],\n \"ReadOnlyOperation\": \"ON\",\n \"IsInMaintainPeriod\": \"no\"\n}",
959
+ "output": "{\n \"Response\": {\n \"ClusterTaskIds\": [\n {\n \"ClusterId\": \"cynosdbmysql-jl17y89v\",\n \"TaskId\": \"176551\"\n },\n {\n \"ClusterId\": \"cynosdbmysql-2d9pq38h\",\n \"TaskId\": \"176552\"\n }\n ],\n \"RequestId\": \"48b7cd8a-f6dd-4e47-a78a-ssfff\"\n }\n}",
960
+ "title": "修改集群只读开关"
961
+ }
962
+ ],
915
963
  "ModifyClusterSlaveZone": [
916
964
  {
917
965
  "document": "",
@@ -3813,6 +3813,58 @@ def doDescribeInstancesList(args, parsed_globals):
3813
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
3814
 
3815
3815
 
3816
+ def doDescribeGroupsSTD(args, parsed_globals):
3817
+ g_param = parse_global_arg(parsed_globals)
3818
+
3819
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3820
+ cred = credential.CVMRoleCredential()
3821
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3822
+ cred = credential.STSAssumeRoleCredential(
3823
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3824
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3825
+ )
3826
+ 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):
3827
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3828
+ else:
3829
+ cred = credential.Credential(
3830
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3831
+ )
3832
+ http_profile = HttpProfile(
3833
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3834
+ reqMethod="POST",
3835
+ endpoint=g_param[OptionsDefine.Endpoint],
3836
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3837
+ )
3838
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3839
+ if g_param[OptionsDefine.Language]:
3840
+ profile.language = g_param[OptionsDefine.Language]
3841
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3842
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
3843
+ client._sdkVersion += ("_CLI_" + __version__)
3844
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3845
+ model = models.DescribeGroupsSTDRequest()
3846
+ model.from_json_string(json.dumps(args))
3847
+ start_time = time.time()
3848
+ while True:
3849
+ rsp = client.DescribeGroupsSTD(model)
3850
+ result = rsp.to_json_string()
3851
+ try:
3852
+ json_obj = json.loads(result)
3853
+ except TypeError as e:
3854
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3855
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3856
+ break
3857
+ cur_time = time.time()
3858
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3859
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3860
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3861
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3862
+ else:
3863
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3864
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3865
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
+
3867
+
3816
3868
  def doDeleteGroupsSTD(args, parsed_globals):
3817
3869
  g_param = parse_global_arg(parsed_globals)
3818
3870
 
@@ -4469,6 +4521,7 @@ ACTION_MAP = {
4469
4521
  "DescribeClusterNodes": doDescribeClusterNodes,
4470
4522
  "DescribeYarnScheduleHistory": doDescribeYarnScheduleHistory,
4471
4523
  "DescribeInstancesList": doDescribeInstancesList,
4524
+ "DescribeGroupsSTD": doDescribeGroupsSTD,
4472
4525
  "DeleteGroupsSTD": doDeleteGroupsSTD,
4473
4526
  "ModifyResourcePools": doModifyResourcePools,
4474
4527
  "DescribeInsightList": doDescribeInsightList,
@@ -168,6 +168,13 @@
168
168
  "output": "DescribeGlobalConfigResponse",
169
169
  "status": "online"
170
170
  },
171
+ "DescribeGroupsSTD": {
172
+ "document": "查询用户组",
173
+ "input": "DescribeGroupsSTDRequest",
174
+ "name": "用户管理-查询用户组",
175
+ "output": "DescribeGroupsSTDResponse",
176
+ "status": "online"
177
+ },
171
178
  "DescribeHBaseTableOverview": {
172
179
  "document": "获取Hbase表级监控数据概览接口",
173
180
  "input": "DescribeHBaseTableOverviewRequest",
@@ -435,11 +442,11 @@
435
442
  "status": "online"
436
443
  },
437
444
  "ModifyResourceScheduleConfig": {
438
- "document": "修改YARN资源调度的资源配置。已废弃,请使用`ModifyYarnQueueV2`来修改队列配置",
445
+ "document": "已废弃,请使用ModifyYarnQueueV2来修改队列配置,近一年无相关日志\n\n修改YARN资源调度的资源配置。已废弃,请使用`ModifyYarnQueueV2`来修改队列配置",
439
446
  "input": "ModifyResourceScheduleConfigRequest",
440
447
  "name": "修改YARN资源调度的资源配置(旧)",
441
448
  "output": "ModifyResourceScheduleConfigResponse",
442
- "status": "online"
449
+ "status": "deprecated"
443
450
  },
444
451
  "ModifyResourceScheduler": {
445
452
  "document": "修改了yarn的资源调度器,点击部署生效。",
@@ -491,11 +498,11 @@
491
498
  "status": "online"
492
499
  },
493
500
  "ModifyYarnDeploy": {
494
- "document": "部署生效。已废弃,请使用`DeployYarnConf`接口进行部署生效",
501
+ "document": "该接口已废弃,请使用DeployYarnConf完成部署生效\n\n部署生效。已废弃,请使用`DeployYarnConf`接口进行部署生效",
495
502
  "input": "ModifyYarnDeployRequest",
496
503
  "name": "部署生效(旧)",
497
504
  "output": "ModifyYarnDeployResponse",
498
- "status": "online"
505
+ "status": "deprecated"
499
506
  },
500
507
  "ModifyYarnQueueV2": {
501
508
  "document": "修改资源调度中队列信息",
@@ -5261,6 +5268,89 @@
5261
5268
  ],
5262
5269
  "type": "object"
5263
5270
  },
5271
+ "DescribeGroupsSTDRequest": {
5272
+ "document": "DescribeGroupsSTD请求参数结构体",
5273
+ "members": [
5274
+ {
5275
+ "disabled": false,
5276
+ "document": "集群名称",
5277
+ "example": "emr-mzkssfla",
5278
+ "member": "string",
5279
+ "name": "InstanceId",
5280
+ "required": true,
5281
+ "type": "string"
5282
+ },
5283
+ {
5284
+ "disabled": false,
5285
+ "document": "描述键值对过滤器,用于条件过滤查询",
5286
+ "example": "无",
5287
+ "member": "Filter",
5288
+ "name": "Filters",
5289
+ "required": false,
5290
+ "type": "list"
5291
+ },
5292
+ {
5293
+ "disabled": false,
5294
+ "document": "描述排序,用于排序",
5295
+ "example": "无",
5296
+ "member": "Order",
5297
+ "name": "OrderFields",
5298
+ "required": false,
5299
+ "type": "object"
5300
+ },
5301
+ {
5302
+ "disabled": false,
5303
+ "document": "返回数量",
5304
+ "example": "10",
5305
+ "member": "int64",
5306
+ "name": "Limit",
5307
+ "required": false,
5308
+ "type": "int"
5309
+ },
5310
+ {
5311
+ "disabled": false,
5312
+ "document": "分页参数",
5313
+ "example": "100",
5314
+ "member": "int64",
5315
+ "name": "Offset",
5316
+ "required": false,
5317
+ "type": "int"
5318
+ }
5319
+ ],
5320
+ "type": "object"
5321
+ },
5322
+ "DescribeGroupsSTDResponse": {
5323
+ "document": "DescribeGroupsSTD返回参数结构体",
5324
+ "members": [
5325
+ {
5326
+ "disabled": false,
5327
+ "document": "用户组信息",
5328
+ "example": "无",
5329
+ "member": "GroupInfos",
5330
+ "name": "Data",
5331
+ "output_required": false,
5332
+ "type": "list",
5333
+ "value_allowed_null": false
5334
+ },
5335
+ {
5336
+ "disabled": false,
5337
+ "document": "符合条件的用户组数量",
5338
+ "example": "11",
5339
+ "member": "int64",
5340
+ "name": "TotalCount",
5341
+ "output_required": false,
5342
+ "type": "int",
5343
+ "value_allowed_null": false
5344
+ },
5345
+ {
5346
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5347
+ "member": "string",
5348
+ "name": "RequestId",
5349
+ "type": "string"
5350
+ }
5351
+ ],
5352
+ "type": "object"
5353
+ },
5264
5354
  "DescribeHBaseTableOverviewRequest": {
5265
5355
  "document": "DescribeHBaseTableOverview请求参数结构体",
5266
5356
  "members": [
@@ -8935,6 +9025,34 @@
8935
9025
  ],
8936
9026
  "usage": "out"
8937
9027
  },
9028
+ "Filter": {
9029
+ "document": "键值对过滤器,用于条件过滤查询.",
9030
+ "members": [
9031
+ {
9032
+ "disabled": false,
9033
+ "document": "需要过滤的字段。",
9034
+ "example": "groupName",
9035
+ "member": "string",
9036
+ "name": "Name",
9037
+ "output_required": false,
9038
+ "required": false,
9039
+ "type": "string",
9040
+ "value_allowed_null": false
9041
+ },
9042
+ {
9043
+ "disabled": false,
9044
+ "document": "字段的过滤值。",
9045
+ "example": "nametest",
9046
+ "member": "string",
9047
+ "name": "Values",
9048
+ "output_required": false,
9049
+ "required": false,
9050
+ "type": "list",
9051
+ "value_allowed_null": false
9052
+ }
9053
+ ],
9054
+ "usage": "both"
9055
+ },
8938
9056
  "Filters": {
8939
9057
  "document": "Emr集群列表实例自定义查询过滤",
8940
9058
  "members": [
@@ -9124,6 +9242,78 @@
9124
9242
  ],
9125
9243
  "usage": "both"
9126
9244
  },
9245
+ "GroupInfos": {
9246
+ "document": "用户组信息",
9247
+ "members": [
9248
+ {
9249
+ "disabled": false,
9250
+ "document": "用户组名称",
9251
+ "example": "nameTest",
9252
+ "member": "string",
9253
+ "name": "GroupName",
9254
+ "output_required": false,
9255
+ "required": false,
9256
+ "type": "string",
9257
+ "value_allowed_null": false
9258
+ },
9259
+ {
9260
+ "disabled": false,
9261
+ "document": "用户名称列表",
9262
+ "example": "无",
9263
+ "member": "string",
9264
+ "name": "Users",
9265
+ "output_required": false,
9266
+ "required": false,
9267
+ "type": "list",
9268
+ "value_allowed_null": false
9269
+ },
9270
+ {
9271
+ "disabled": false,
9272
+ "document": "备注",
9273
+ "example": "系统组",
9274
+ "member": "string",
9275
+ "name": "Description",
9276
+ "output_required": false,
9277
+ "required": false,
9278
+ "type": "string",
9279
+ "value_allowed_null": false
9280
+ },
9281
+ {
9282
+ "disabled": false,
9283
+ "document": "创建时间",
9284
+ "example": "2024-7-13",
9285
+ "member": "string",
9286
+ "name": "CreateTime",
9287
+ "output_required": false,
9288
+ "required": false,
9289
+ "type": "string",
9290
+ "value_allowed_null": false
9291
+ },
9292
+ {
9293
+ "disabled": false,
9294
+ "document": "用户组类型",
9295
+ "example": "1",
9296
+ "member": "int64",
9297
+ "name": "GroupType",
9298
+ "output_required": false,
9299
+ "required": false,
9300
+ "type": "int",
9301
+ "value_allowed_null": false
9302
+ },
9303
+ {
9304
+ "disabled": false,
9305
+ "document": "用户组类型描述",
9306
+ "example": "系统用户组",
9307
+ "member": "string",
9308
+ "name": "GroupTypeDesc",
9309
+ "output_required": false,
9310
+ "required": false,
9311
+ "type": "string",
9312
+ "value_allowed_null": false
9313
+ }
9314
+ ],
9315
+ "usage": "both"
9316
+ },
9127
9317
  "HealthStatus": {
9128
9318
  "document": "进程健康状态",
9129
9319
  "members": [
@@ -13918,6 +14108,34 @@
13918
14108
  ],
13919
14109
  "usage": "both"
13920
14110
  },
14111
+ "Order": {
14112
+ "document": "描述排序,用于排序.",
14113
+ "members": [
14114
+ {
14115
+ "disabled": false,
14116
+ "document": "排序字段。",
14117
+ "example": "create_time",
14118
+ "member": "string",
14119
+ "name": "Name",
14120
+ "output_required": false,
14121
+ "required": false,
14122
+ "type": "string",
14123
+ "value_allowed_null": false
14124
+ },
14125
+ {
14126
+ "disabled": false,
14127
+ "document": "Desc or Asc。",
14128
+ "example": "asc",
14129
+ "member": "string",
14130
+ "name": "Direction",
14131
+ "output_required": false,
14132
+ "required": false,
14133
+ "type": "string",
14134
+ "value_allowed_null": false
14135
+ }
14136
+ ],
14137
+ "usage": "both"
14138
+ },
13921
14139
  "OutterResource": {
13922
14140
  "document": "资源详情",
13923
14141
  "members": [
@@ -192,6 +192,14 @@
192
192
  "title": "查询YARN资源调度的全局配置"
193
193
  }
194
194
  ],
195
+ "DescribeGroupsSTD": [
196
+ {
197
+ "document": "",
198
+ "input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGroupsSTD\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-mzkssfla\"\n}",
199
+ "output": "{\n \"Response\": {\n \"Data\": [\n {\n \"CreateTime\": \"2025-05-14 21:46:04\",\n \"GroupName\": \"test2\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": []\n },\n {\n \"CreateTime\": \"2025-05-14 21:46:04\",\n \"GroupName\": \"group2\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": []\n },\n {\n \"CreateTime\": \"2025-05-14 15:39:50\",\n \"GroupName\": \"jianpan-1\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": [\n \"a3\"\n ]\n },\n {\n \"CreateTime\": \"2025-05-14 15:39:50\",\n \"GroupName\": \"jianpan-test\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": [\n \"a4\",\n \"a1\"\n ]\n },\n {\n \"CreateTime\": \"2025-05-14 13:59:11\",\n \"GroupName\": \"user4\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": [\n \"a3\",\n \"a4\"\n ]\n },\n {\n \"CreateTime\": \"2025-05-14 13:59:11\",\n \"GroupName\": \"user3\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": [\n \"a3\"\n ]\n },\n {\n \"CreateTime\": \"2025-05-14 13:59:11\",\n \"GroupName\": \"user2\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": [\n \"a3\"\n ]\n },\n {\n \"CreateTime\": \"2025-05-14 13:58:47\",\n \"GroupName\": \"odinlli1\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": [\n \"a1\"\n ]\n },\n {\n \"CreateTime\": \"2025-05-14 13:58:47\",\n \"GroupName\": \"odinlli4\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": []\n },\n {\n \"CreateTime\": \"2025-05-14 13:58:47\",\n \"GroupName\": \"odinlli3\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": []\n },\n {\n \"CreateTime\": \"2025-05-14 13:58:47\",\n \"GroupName\": \"odinlli2\",\n \"GroupType\": 2,\n \"GroupTypeDesc\": \"NormalUserGroup\",\n \"Users\": []\n }\n ],\n \"RequestId\": \"a7d952a8-7fe6-461c-b59c-9ae3d7d427d0\",\n \"TotalCount\": 11\n }\n}",
200
+ "title": "查询用户组信息"
201
+ }
202
+ ],
195
203
  "DescribeHBaseTableOverview": [
196
204
  {
197
205
  "document": "",
@@ -1586,6 +1586,16 @@
1586
1586
  "type": "string",
1587
1587
  "value_allowed_null": false
1588
1588
  },
1589
+ {
1590
+ "disabled": false,
1591
+ "document": "访问链接,可以直接使用此链接访问 WebShell",
1592
+ "example": "https://ex-cloud-gaming.crtrcloud.com/cloud_gaming_web/webterm/index.html?container=xxx&shell-key=xxxx&shell-addr=ap-shenzhen-1.webssh.crtrcloud.com",
1593
+ "member": "string",
1594
+ "name": "ConnectUrl",
1595
+ "output_required": false,
1596
+ "type": "string",
1597
+ "value_allowed_null": false
1598
+ },
1589
1599
  {
1590
1600
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1591
1601
  "member": "string",
@@ -74,7 +74,7 @@
74
74
  {
75
75
  "document": "",
76
76
  "input": "POST / HTTP/1.1\nHost: gs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAndroidInstanceWebShell\n<公共请求参数>\n\n{\n \"AndroidInstanceId\": \"cai-123456-abc\"\n}",
77
- "output": "{\n \"Response\": {\n \"Key\": \"key-01\",\n \"Address\": \"ap-shenzhen-1.webssh.crtrcloud.com\",\n \"Zone\": \"ap-shenzhen-1\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
77
+ "output": "{\n \"Response\": {\n \"Key\": \"key-01\",\n \"Address\": \"ap-shenzhen-1.webssh.crtrcloud.com\",\n \"Zone\": \"ap-shenzhen-1\",\n \"ConnectUrl\": \"https://ex-cloud-gaming.crtrcloud.com/cloud_gaming_web/webterm/index.html?container=xxx&shell-key=xxxx&shell-addr=ap-shenzhen-1.webssh.crtrcloud.com\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
78
78
  "title": "创建安卓实例 WebShell 连接"
79
79
  }
80
80
  ],
@@ -6261,7 +6261,7 @@
6261
6261
  },
6262
6262
  {
6263
6263
  "disabled": false,
6264
- "document": "应用模板的执行状态。\n\n- SUCCESS:成功\n- FAILED:失败",
6264
+ "document": "应用模板的执行状态。\n\n- SUCCESS:成功\n- RUNNING:运行中\n- FAILED:失败",
6265
6265
  "example": "SUCCESS",
6266
6266
  "member": "string",
6267
6267
  "name": "ApplyState",
@@ -18726,7 +18726,7 @@
18726
18726
  },
18727
18727
  {
18728
18728
  "disabled": false,
18729
- "document": "存储至 cos 的 bucket 桶名称。\n注意:此字段可能返回 null,表示取不到有效值。",
18729
+ "document": "存储至 cos 的 bucket 桶名称。\n注:CosBucketName参数值不能包含-[appid] 部分。\n注意:此字段可能返回 null,表示取不到有效值。",
18730
18730
  "example": "bucket",
18731
18731
  "member": "string",
18732
18732
  "name": "CosBucketName",
@@ -14224,7 +14224,7 @@
14224
14224
  },
14225
14225
  {
14226
14226
  "disabled": false,
14227
- "document": "来源(0 源文件导入 1 网页导入)",
14227
+ "document": "来源(0 从本地文档导入),默认值为0",
14228
14228
  "example": "无",
14229
14229
  "member": "int64",
14230
14230
  "name": "Source",
@@ -14233,7 +14233,7 @@
14233
14233
  },
14234
14234
  {
14235
14235
  "disabled": false,
14236
- "document": "网页(或自定义链接)地址",
14236
+ "document": "自定义链接地址, IsRefer为true的时候,该值才有意义",
14237
14237
  "example": "无",
14238
14238
  "member": "string",
14239
14239
  "name": "WebUrl",
@@ -767,7 +767,7 @@
767
767
  "SaveDoc": [
768
768
  {
769
769
  "document": "",
770
- "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SaveDoc\n<公共请求参数>\n\n{\n \"BotBizId\": \"1727231073371148288\",\n \"FileName\": \"测试.docx\",\n \"FileType\": \"docx\",\n \"CosUrl\": \"/corp/23432432/233432/doc/zeSOHIBjwcWoEmlMMXOp-1796022574489010176.docx\",\n \"ETag\": \"\\\"58e88ad7665f11c4f66eba0eada383a5\\\"\",\n \"CosHash\": \"xxxxxxxxx\",\n \"Size\": \"643000\",\n \"Source\": 1,\n \"WebUrl\": \"\",\n \"AttrRange\": 1,\n \"AttrLabels\": [],\n \"ReferUrlType\": 0\n}",
770
+ "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SaveDoc\n<公共请求参数>\n\n{\n \"BotBizId\": \"1727231073371148288\",\n \"FileName\": \"测试.docx\",\n \"FileType\": \"docx\",\n \"CosUrl\": \"/corp/23432432/233432/doc/zeSOHIBjwcWoEmlMMXOp-1796022574489010176.docx\",\n \"ETag\": \"\\\"58e88ad7665f11c4f66eba0eada383a5\\\"\",\n \"CosHash\": \"xxxxxxxxx\",\n \"Size\": \"643000\",\n \"Source\": 0,\n \"WebUrl\": \"\",\n \"AttrRange\": 1,\n \"AttrLabels\": [],\n \"ReferUrlType\": 0\n}",
771
771
  "output": "{\n \"Response\": {\n \"DocBizId\": \"1694921462777761792\",\n \"ErrorMsg\": \"\",\n \"ErrorLink\": \"\",\n \"ErrorLinkText\": \"\",\n \"RequestId\": \"e3338103-3165-49c0-b218-245be865cca5\"\n }\n}",
772
772
  "title": "知识库文档录入"
773
773
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "actions": {
3
3
  "ChatCompletions": {
4
- "document": "### 接口功能\n\n调用接口,发起一次对话请求。默认该接口下的单账号QPM上限为15000 ,TPM上限为1200000\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云智能体开发平台](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持128K上下文长度,最大输出16k(不含思维链)。\n - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输出16k。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-Prover-V2(model 参数值为**deepseek-prover-v2**)\n - DeepSeek-Prover-V2 为671B 参数 MoE 模型,在数学定理证明和复杂计算任务中表现出色。\n - 支持64K上下文长度,最大输出16k。\n\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。\n\n - DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-V3 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-V3-0324 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-Prover-V2 模型 | 暂不计费\n\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。",
4
+ "document": "### 接口功能\n\n调用接口,发起一次对话请求。默认该接口下的单账号QPM上限为15000 ,TPM上限为1200000\n如需使用OpenAI兼容接口, 请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)\n\n#### 在线体验\n如您希望在网页内直接体验 DeepSeek 模型对话,推荐您前往[腾讯云智能体开发平台](https://cloud.tencent.com/product/lke),使用[ DeepSeek 联网助手](https://lke.cloud.tencent.com/webim_exp/#/chat/wQrAwR)。\n\n#### 已支持的模型\n- DeepSeek-V3-0324(model 参数值为**deepseek-v3-0324**)\n - DeepSeek-V3-0324为671B参数MoE模型,在编程与技术能力、上下文理解与长文本处理等方面优势突出。\n - 支持128K上下文长度,最大输出16k(不含思维链)。\n - 注意:相比于DeepSeek-V3,DeepSeek-V3-0324仅更新了模型权重,未增加参数量。总模型大小为685B,其中包括671B的主模型权重和 14B 的多令牌预测(MTP)模块权重,后续均描述主模型参数量。\n- DeepSeek-V3(model 参数值为**deepseek-v3**)\n - DeepSeek-V3为671B参数MoE模型,在百科知识、数学推理等多项任务上优势突出,评测成绩在主流榜单中位列开源模型榜首。\n - 支持64K上下文长度,最大输出16k。\n- DeepSeek-R1(model 参数值为**deepseek-r1**)\n - DeepSeek-R1为671B模型,使用强化学习训练,推理过程包含大量反思和验证,思维链长度可达数万字。 该系列模型在数学、代码以及各种复杂逻辑推理任务上推理效果优异,并为用户展现了完整的思考过程。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-R1-0528(model 参数值为**deepseek-r1-0528**)\n - DeepSeek-R1-0528为671B 模型,架构优化与训练策略升级后,相比上一版本在代码生成、长文本处理和复杂推理领域提升明显。\n - 支持96K上下文长度,最大输入长度64k,最大输出16k(默认4k),最大思维链输出长度32k。\n- DeepSeek-Prover-V2(model 参数值为**deepseek-prover-v2**)\n - DeepSeek-Prover-V2 为671B 参数 MoE 模型,在数学定理证明和复杂计算任务中表现出色。\n - 支持64K上下文长度,最大输出16k。\n\n\n### 计费说明\n\n- 标准计费(2025年2月26日起生效),计费模式为后付费小时结,为保证您账户资源的正常使用,请提前[开通后付费](https://lke.cloud.tencent.com/lke#/app/system/charge/postpaid)并及时[充值](https://console.cloud.tencent.com/expense/recharge)。\n\n - DeepSeek-R1 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-R1-0528 模型 | 输入:0.004元/千token | 输出(含思维链):0.016元/千token\n\n - DeepSeek-V3 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-V3-0324 模型 | 输入:0.002元/千token | 输出:0.008元/千token\n\n - DeepSeek-Prover-V2 模型 | 暂不计费\n\n\n### Openai兼容协议接口\n知识引擎原子能力大模型对话 API 兼容了 OpenAI 的接口规范,这意味着您可以直接使用 OpenAI 官方提供的 SDK 来调用大模型对话接口。您仅需要将 base_url 和 [api_key](https://cloud.tencent.com/document/product/1772/115970) 替换成相关配置,不需要对应用做额外修改,即可无缝将您的应用切换到相应的大模型。请参考文档:[Deepseek OpenAI对话接口](https://cloud.tencent.com/document/product/1772/115969)。\n> base_url: https://api.lkeap.cloud.tencent.com/v1\n\n> api_key的获取请参考[API KEY管理](https://cloud.tencent.com/document/product/1772/115970)\n\n\n### 快速接入\n1. 完成[实名认证](https://console.cloud.tencent.com/developer/auth)。\n2. 主账户前往[控制台](https://console.cloud.tencent.com/lkeap)开通服务。若为子账户,需由主账号在[权限管理](https://console.cloud.tencent.com/cam)中为子账号授权,关联预设策略,策略名称:QcloudLKEAPFullAccess。\n3. 通过API Explorer[在线调试](https://console.cloud.tencent.com/api/explorer?Product=lkeap&Version=2024-05-22&Action=ChatCompletions)。\n4. 使用[官方 SDK ](https://cloud.tencent.com/document/product/1772/115963#SDK)调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言)。\n\n-----------\n\n### SDK调用示例\n通过本地代码调用本接口(支持Python/Java/PHP/Go/Node.js/.NET等语言):下面的代码以 Python 语言为例,展示如何访问腾讯云上的DeepSeek模型API的样例。\n(1)安装环境\n```\npython3 -m pip install --upgrade tencentcloud-sdk-python-common\npython3 -m pip install --upgrade tencentcloud-sdk-python-lkeap\n```\n\n(2)示例代码\n\n- 其中SecretKey和SecretID需要从腾讯云控制台获取\n\n- 参数params中模型Model字段可以选择“deepseek-r1“和“deepseek-v3”\n\n```\n# -*- coding: utf-8 -*-\nimport json\n\nfrom tencentcloud.common.common_client import CommonClient\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.common.profile.client_profile import ClientProfile\nfrom tencentcloud.common.profile.http_profile import HttpProfile\n\nclass NonStreamResponse(object):\n def __init__(self):\n self.response = \"\"\n\n def _deserialize(self, obj):\n self.response = json.dumps(obj)\n\ntry:\n # 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密\n # 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305\n # 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取\n cred = credential.Credential(\"\", \"\")\n\n httpProfile = HttpProfile()\n httpProfile.endpoint = \"lkeap.tencentcloudapi.com\"\n httpProfile.reqTimeout = 40000 # 流式接口可能耗时较长\n clientProfile = ClientProfile()\n clientProfile.httpProfile = httpProfile\n\n params = \"{\\\"Model\\\":\\\"deepseek-r1\\\",\\\"Messages\\\":[{\\\"Role\\\":\\\"user\\\",\\\"Content\\\":\\\"你好\\\"}],\\\"Stream\\\":true}\";\n common_client = CommonClient(\"lkeap\", \"2024-05-22\", cred, \"ap-guangzhou\", profile=clientProfile)\n resp = common_client._call_and_deserialize(\"ChatCompletions\", json.loads(params), NonStreamResponse)\n if isinstance(resp, NonStreamResponse): # 非流式响应\n print(resp.response)\n else: # 流式响应\n for event in resp:\n print(event)\nexcept TencentCloudSDKException as err:\n print(err)\n\n```\n\n**DeepSeek-R1使用建议**\n\n1. 将温度设置在 0.5-0.7 范围内(建议为0.6),以防止无休止的重复或不连贯的输出。\n2. 避免添加system prompt,所有说明都应包含在user prompt中。",
5
5
  "input": "ChatCompletionsRequest",
6
6
  "name": "DeepSeek API 接口",
7
7
  "output": "ChatCompletionsResponse",
@@ -2315,9 +2315,10 @@
2315
2315
  {
2316
2316
  "disabled": false,
2317
2317
  "document": "告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.\n注意:此字段可能返回 null,表示取不到有效值。",
2318
- "example": "",
2318
+ "example": "0",
2319
2319
  "member": "int64",
2320
2320
  "name": "IsUnionRule",
2321
+ "output_required": true,
2321
2322
  "required": true,
2322
2323
  "type": "int",
2323
2324
  "value_allowed_null": true
@@ -2325,9 +2326,10 @@
2325
2326
  {
2326
2327
  "disabled": false,
2327
2328
  "document": "告警触发条件列表\n注意:此字段可能返回 null,表示取不到有效值。",
2328
- "example": "",
2329
+ "example": "[{\"MetricName\": \"CpuUsage\", \"Period\": 60, \"Operator\": \"gt\", \"Value\": 60}]",
2329
2330
  "member": "AlarmPolicyRule",
2330
2331
  "name": "Rules",
2332
+ "output_required": true,
2331
2333
  "required": true,
2332
2334
  "type": "list",
2333
2335
  "value_allowed_null": true
@@ -2338,6 +2340,7 @@
2338
2340
  "example": "(1 OR 2) AND (3 OR 4)",
2339
2341
  "member": "string",
2340
2342
  "name": "ComplexExpression",
2343
+ "output_required": true,
2341
2344
  "required": false,
2342
2345
  "type": "string",
2343
2346
  "value_allowed_null": true