tccli 3.0.1096.1__py2.py3-none-any.whl → 3.0.1097.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/aiart/v20221229/QueryDrawPortraitJob.md +30 -0
  3. tccli/examples/aiart/v20221229/QueryTrainPortraitModelJob.md +24 -0
  4. tccli/examples/aiart/v20221229/SubmitDrawPortraitJob.md +23 -0
  5. tccli/examples/aiart/v20221229/SubmitTrainPortraitModelJob.md +20 -0
  6. tccli/examples/aiart/v20221229/UploadTrainPortraitImages.md +25 -0
  7. tccli/examples/ccc/v20200210/ModifyStaffPassword.md +22 -0
  8. tccli/examples/csip/v20221121/DescribeAlertList.md +176 -0
  9. tccli/examples/cynosdb/v20190107/ModifyInstanceUpgradeLimitDays.md +22 -0
  10. tccli/examples/dcdb/v20180411/DescribeDCDBInstances.md +4 -3
  11. tccli/examples/dlc/v20210125/DescribeNotebookSessionStatementSqlResult.md +3 -1
  12. tccli/examples/lke/v20231130/GetEmbedding.md +4 -1
  13. tccli/examples/lke/v20231130/QueryParseDocResult.md +4 -1
  14. tccli/examples/lke/v20231130/QueryRewrite.md +6 -1
  15. tccli/examples/mariadb/v20170312/DescribeDBInstanceDetail.md +2 -1
  16. tccli/examples/mariadb/v20170312/DescribeDBInstances.md +4 -3
  17. tccli/examples/tdmq/v20200217/DescribeRabbitMQQueueDetail.md +25 -22
  18. tccli/examples/vpc/v20170312/DisableVpnGatewaySslClientCert.md +2 -2
  19. tccli/services/aiart/aiart_client.py +269 -4
  20. tccli/services/aiart/v20221229/api.json +404 -0
  21. tccli/services/aiart/v20221229/examples.json +40 -0
  22. tccli/services/billing/v20180709/api.json +30 -0
  23. tccli/services/bma/v20221115/api.json +4 -6
  24. tccli/services/ccc/ccc_client.py +53 -0
  25. tccli/services/ccc/v20200210/api.json +57 -5
  26. tccli/services/ccc/v20200210/examples.json +8 -0
  27. tccli/services/cdb/v20170320/api.json +9 -0
  28. tccli/services/cdn/v20180606/api.json +1 -1
  29. tccli/services/csip/csip_client.py +53 -0
  30. tccli/services/csip/v20221121/api.json +1468 -7
  31. tccli/services/csip/v20221121/examples.json +8 -0
  32. tccli/services/cynosdb/cynosdb_client.py +53 -0
  33. tccli/services/cynosdb/v20190107/api.json +52 -0
  34. tccli/services/cynosdb/v20190107/examples.json +8 -0
  35. tccli/services/dcdb/v20180411/api.json +45 -3
  36. tccli/services/dcdb/v20180411/examples.json +1 -1
  37. tccli/services/dlc/v20210125/api.json +30 -0
  38. tccli/services/dlc/v20210125/examples.json +1 -1
  39. tccli/services/hunyuan/v20230901/api.json +14 -14
  40. tccli/services/iotexplorer/v20190423/api.json +1 -1
  41. tccli/services/lighthouse/v20200324/api.json +2 -2
  42. tccli/services/live/v20180801/api.json +7 -7
  43. tccli/services/lke/v20231130/api.json +82 -6
  44. tccli/services/lke/v20231130/examples.json +3 -3
  45. tccli/services/mariadb/v20170312/api.json +45 -2
  46. tccli/services/mariadb/v20170312/examples.json +2 -2
  47. tccli/services/ocr/v20181119/api.json +1 -1
  48. tccli/services/ssl/v20191205/api.json +50 -9
  49. tccli/services/tdmq/v20200217/api.json +64 -25
  50. tccli/services/tdmq/v20200217/examples.json +2 -2
  51. tccli/services/trtc/v20190722/api.json +34 -15
  52. tccli/services/vpc/v20170312/api.json +20 -5
  53. tccli/services/vpc/v20170312/examples.json +2 -2
  54. tccli/services/weilingwith/v20230427/api.json +11 -11
  55. {tccli-3.0.1096.1.dist-info → tccli-3.0.1097.1.dist-info}/METADATA +2 -2
  56. {tccli-3.0.1096.1.dist-info → tccli-3.0.1097.1.dist-info}/RECORD +59 -51
  57. {tccli-3.0.1096.1.dist-info → tccli-3.0.1097.1.dist-info}/WHEEL +0 -0
  58. {tccli-3.0.1096.1.dist-info → tccli-3.0.1097.1.dist-info}/entry_points.txt +0 -0
  59. {tccli-3.0.1096.1.dist-info → tccli-3.0.1097.1.dist-info}/license_files/LICENSE +0 -0
@@ -40,6 +40,14 @@
40
40
  "title": "删除风险中心扫描任务"
41
41
  }
42
42
  ],
43
+ "DescribeAlertList": [
44
+ {
45
+ "document": "",
46
+ "input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAlertList\n<公共请求参数>\n\n{\n \"MemberId\": [\n \"abc\"\n ],\n \"OperatedMemberId\": [\n \"abc\"\n ],\n \"AssetType\": 0,\n \"Filter\": {\n \"Limit\": 0,\n \"Offset\": 0,\n \"Order\": \"abc\",\n \"By\": \"abc\",\n \"Filters\": [\n {\n \"Name\": \"abc\",\n \"Values\": [\n \"abc\"\n ],\n \"OperatorType\": 0\n }\n ],\n \"StartTime\": \"abc\",\n \"EndTime\": \"abc\"\n }\n}",
47
+ "output": "{\n \"Response\": {\n \"AlertList\": [\n {\n \"ID\": \"abc\",\n \"Name\": \"abc\",\n \"Source\": \"abc\",\n \"Level\": 1,\n \"Attacker\": {\n \"IP\": \"abc\",\n \"HostIP\": \"abc\",\n \"Port\": 1,\n \"InstanceID\": \"abc\",\n \"City\": \"abc\",\n \"Province\": \"abc\",\n \"Country\": \"abc\",\n \"Address\": \"abc\",\n \"Latitude\": \"abc\",\n \"Longitude\": \"abc\",\n \"Info\": \"abc\",\n \"Domain\": \"abc\",\n \"Name\": \"abc\",\n \"Account\": \"abc\",\n \"Family\": \"abc\",\n \"VirusName\": \"abc\",\n \"MD5\": \"abc\",\n \"FileName\": \"abc\"\n },\n \"Victim\": {\n \"IP\": \"abc\",\n \"HostIP\": \"abc\",\n \"Port\": 1,\n \"InstanceID\": \"abc\",\n \"City\": \"abc\",\n \"Province\": \"abc\",\n \"Country\": \"abc\",\n \"Address\": \"abc\",\n \"Latitude\": \"abc\",\n \"Longitude\": \"abc\",\n \"Info\": \"abc\",\n \"Domain\": \"abc\",\n \"Name\": \"abc\",\n \"Account\": \"abc\",\n \"Family\": \"abc\",\n \"VirusName\": \"abc\",\n \"MD5\": \"abc\",\n \"FileName\": \"abc\"\n },\n \"EvidenceData\": \"abc\",\n \"EvidenceLocation\": \"abc\",\n \"EvidencePath\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\",\n \"Count\": 1,\n \"UrgentSuggestion\": \"abc\",\n \"RemediationSuggestion\": \"abc\",\n \"RiskInvestigation\": \"abc\",\n \"RiskTreatment\": \"abc\",\n \"Status\": 1,\n \"ProcessType\": \"abc\",\n \"Type\": \"abc\",\n \"SubType\": \"abc\",\n \"ExtraInfo\": {\n \"RelateEvent\": {\n \"EventID\": \"abc\",\n \"Description\": \"abc\",\n \"RelatedCount\": 0\n },\n \"LeakContent\": \"abc\",\n \"LeakAPI\": \"abc\",\n \"SecretID\": \"abc\",\n \"Rule\": \"abc\",\n \"RuleDesc\": \"abc\",\n \"ProtocolPort\": \"abc\",\n \"AttackContent\": \"abc\",\n \"AttackIPProfile\": \"abc\",\n \"AttackIPTags\": \"abc\",\n \"RequestMethod\": \"abc\",\n \"HttpLog\": \"abc\",\n \"AttackDomain\": \"abc\",\n \"FilePath\": \"abc\",\n \"UserAgent\": \"abc\",\n \"RequestHeaders\": \"abc\",\n \"LoginUserName\": \"abc\",\n \"VulnerabilityName\": \"abc\",\n \"CVE\": \"abc\",\n \"ServiceProcess\": \"abc\",\n \"FileName\": \"abc\",\n \"FileSize\": \"abc\",\n \"FileMD5\": \"abc\",\n \"FileLastAccessTime\": \"abc\",\n \"FileModifyTime\": \"abc\",\n \"RecentAccessTime\": \"abc\",\n \"RecentModifyTime\": \"abc\",\n \"VirusName\": \"abc\",\n \"VirusFileTags\": \"abc\",\n \"BehavioralCharacteristics\": \"abc\",\n \"ProcessNamePID\": \"abc\",\n \"ProcessPath\": \"abc\",\n \"ProcessCommandLine\": \"abc\",\n \"ProcessPermissions\": \"abc\",\n \"ExecutedCommand\": \"abc\",\n \"AffectedFileName\": \"abc\",\n \"DecoyPath\": \"abc\",\n \"MaliciousProcessFileSize\": \"abc\",\n \"MaliciousProcessFileMD5\": \"abc\",\n \"MaliciousProcessNamePID\": \"abc\",\n \"MaliciousProcessPath\": \"abc\",\n \"MaliciousProcessStartTime\": \"abc\",\n \"CommandContent\": \"abc\",\n \"StartupUser\": \"abc\",\n \"UserGroup\": \"abc\",\n \"NewPermissions\": \"abc\",\n \"ParentProcess\": \"abc\",\n \"ClassName\": \"abc\",\n \"ClassLoader\": \"abc\",\n \"ClassFileSize\": \"abc\",\n \"ClassFileMD5\": \"abc\",\n \"ParentClassName\": \"abc\",\n \"InheritedInterface\": \"abc\",\n \"Comment\": \"abc\",\n \"PayloadContent\": \"abc\",\n \"CallbackAddressPortrait\": \"abc\",\n \"CallbackAddressTag\": \"abc\",\n \"ProcessMD5\": \"abc\",\n \"FilePermission\": \"abc\",\n \"HitProbe\": \"abc\",\n \"HitHoneyPot\": \"abc\",\n \"CommandList\": \"abc\",\n \"AttackEventDesc\": \"abc\",\n \"ProcessInfo\": \"abc\",\n \"UserNameAndPwd\": \"abc\"\n },\n \"Key\": \"abc\",\n \"Date\": \"abc\",\n \"AppID\": \"abc\",\n \"NickName\": \"abc\",\n \"Uin\": \"abc\"\n }\n ],\n \"AlertTypeCount\": [\n {\n \"Name\": \"abc\",\n \"Count\": 1\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"abc\"\n }\n}",
48
+ "title": "告警中心全量告警示例"
49
+ }
50
+ ],
43
51
  "DescribeAssetViewVulRiskList": [
44
52
  {
45
53
  "document": "success1",
@@ -3293,6 +3293,58 @@ def doAddInstances(args, parsed_globals):
3293
3293
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3294
3294
 
3295
3295
 
3296
+ def doModifyInstanceUpgradeLimitDays(args, parsed_globals):
3297
+ g_param = parse_global_arg(parsed_globals)
3298
+
3299
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3300
+ cred = credential.CVMRoleCredential()
3301
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3302
+ cred = credential.STSAssumeRoleCredential(
3303
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3304
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3305
+ )
3306
+ 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):
3307
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3308
+ else:
3309
+ cred = credential.Credential(
3310
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3311
+ )
3312
+ http_profile = HttpProfile(
3313
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3314
+ reqMethod="POST",
3315
+ endpoint=g_param[OptionsDefine.Endpoint],
3316
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3317
+ )
3318
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3319
+ if g_param[OptionsDefine.Language]:
3320
+ profile.language = g_param[OptionsDefine.Language]
3321
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3322
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
3323
+ client._sdkVersion += ("_CLI_" + __version__)
3324
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3325
+ model = models.ModifyInstanceUpgradeLimitDaysRequest()
3326
+ model.from_json_string(json.dumps(args))
3327
+ start_time = time.time()
3328
+ while True:
3329
+ rsp = client.ModifyInstanceUpgradeLimitDays(model)
3330
+ result = rsp.to_json_string()
3331
+ try:
3332
+ json_obj = json.loads(result)
3333
+ except TypeError as e:
3334
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3335
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3336
+ break
3337
+ cur_time = time.time()
3338
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3339
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3340
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3341
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3342
+ else:
3343
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3344
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3345
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
+
3347
+
3296
3348
  def doDeleteAccounts(args, parsed_globals):
3297
3349
  g_param = parse_global_arg(parsed_globals)
3298
3350
 
@@ -7059,6 +7111,7 @@ ACTION_MAP = {
7059
7111
  "DeleteClusterDatabase": doDeleteClusterDatabase,
7060
7112
  "SwitchClusterZone": doSwitchClusterZone,
7061
7113
  "AddInstances": doAddInstances,
7114
+ "ModifyInstanceUpgradeLimitDays": doModifyInstanceUpgradeLimitDays,
7062
7115
  "DeleteAccounts": doDeleteAccounts,
7063
7116
  "RevokeAccountPrivileges": doRevokeAccountPrivileges,
7064
7117
  "OpenClusterReadOnlyInstanceGroupAccess": doOpenClusterReadOnlyInstanceGroupAccess,
@@ -693,6 +693,13 @@
693
693
  "output": "ModifyInstanceParamResponse",
694
694
  "status": "online"
695
695
  },
696
+ "ModifyInstanceUpgradeLimitDays": {
697
+ "document": "修改实例小版本升级限制时间",
698
+ "input": "ModifyInstanceUpgradeLimitDaysRequest",
699
+ "name": "修改实例小版本升级限制时间",
700
+ "output": "ModifyInstanceUpgradeLimitDaysResponse",
701
+ "status": "online"
702
+ },
696
703
  "ModifyMaintainPeriodConfig": {
697
704
  "document": "修改维护时间配置",
698
705
  "input": "ModifyMaintainPeriodConfigRequest",
@@ -13720,6 +13727,51 @@
13720
13727
  ],
13721
13728
  "type": "object"
13722
13729
  },
13730
+ "ModifyInstanceUpgradeLimitDaysRequest": {
13731
+ "document": "ModifyInstanceUpgradeLimitDays请求参数结构体",
13732
+ "members": [
13733
+ {
13734
+ "disabled": false,
13735
+ "document": "集群ID",
13736
+ "example": "无",
13737
+ "member": "string",
13738
+ "name": "ClusterId",
13739
+ "required": true,
13740
+ "type": "string"
13741
+ },
13742
+ {
13743
+ "disabled": false,
13744
+ "document": "实例ID",
13745
+ "example": "无",
13746
+ "member": "string",
13747
+ "name": "InstanceId",
13748
+ "required": true,
13749
+ "type": "string"
13750
+ },
13751
+ {
13752
+ "disabled": false,
13753
+ "document": "升级限制时间",
13754
+ "example": "无",
13755
+ "member": "int64",
13756
+ "name": "UpgradeLimitDays",
13757
+ "required": true,
13758
+ "type": "int"
13759
+ }
13760
+ ],
13761
+ "type": "object"
13762
+ },
13763
+ "ModifyInstanceUpgradeLimitDaysResponse": {
13764
+ "document": "ModifyInstanceUpgradeLimitDays返回参数结构体",
13765
+ "members": [
13766
+ {
13767
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13768
+ "member": "string",
13769
+ "name": "RequestId",
13770
+ "type": "string"
13771
+ }
13772
+ ],
13773
+ "type": "object"
13774
+ },
13723
13775
  "ModifyMaintainPeriodConfigRequest": {
13724
13776
  "document": "ModifyMaintainPeriodConfig请求参数结构体",
13725
13777
  "members": [
@@ -816,6 +816,14 @@
816
816
  "title": "修改实例参数"
817
817
  }
818
818
  ],
819
+ "ModifyInstanceUpgradeLimitDays": [
820
+ {
821
+ "document": "",
822
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyInstanceUpgradeLimitDays\n<公共请求参数>\n\n{\n \"ClusterId\": \"abc\",\n \"InstanceId\": \"abc\",\n \"UpgradeLimitDays\": 30\n}",
823
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
824
+ "title": "修改实例小版本升级限制时间"
825
+ }
826
+ ],
819
827
  "ModifyMaintainPeriodConfig": [
820
828
  {
821
829
  "document": "",
@@ -5015,6 +5015,15 @@
5015
5015
  "required": false,
5016
5016
  "type": "list"
5017
5017
  },
5018
+ {
5019
+ "disabled": false,
5020
+ "document": "标签",
5021
+ "example": "无",
5022
+ "member": "Tag",
5023
+ "name": "Tags",
5024
+ "required": false,
5025
+ "type": "list"
5026
+ },
5018
5027
  {
5019
5028
  "disabled": false,
5020
5029
  "document": "实例类型过滤,1-独享实例,2-主实例,3-灾备实例,多个按逗号分隔",
@@ -5054,7 +5063,7 @@
5054
5063
  "example": "1",
5055
5064
  "member": "int64",
5056
5065
  "name": "TotalCount",
5057
- "required": true,
5066
+ "output_required": true,
5058
5067
  "type": "int",
5059
5068
  "value_allowed_null": false
5060
5069
  },
@@ -5064,7 +5073,7 @@
5064
5073
  "example": "无",
5065
5074
  "member": "DCDBInstanceInfo",
5066
5075
  "name": "Instances",
5067
- "required": true,
5076
+ "output_required": true,
5068
5077
  "type": "list",
5069
5078
  "value_allowed_null": false
5070
5079
  },
@@ -8916,6 +8925,15 @@
8916
8925
  "name": "Zone",
8917
8926
  "required": true,
8918
8927
  "type": "string"
8928
+ },
8929
+ {
8930
+ "disabled": false,
8931
+ "document": "指定分片实例id进行切换",
8932
+ "example": "[\"shard-aq0o9glh\"]",
8933
+ "member": "string",
8934
+ "name": "ShardInstanceIds",
8935
+ "required": false,
8936
+ "type": "list"
8919
8937
  }
8920
8938
  ],
8921
8939
  "type": "object"
@@ -8929,7 +8947,7 @@
8929
8947
  "example": "无",
8930
8948
  "member": "uint64",
8931
8949
  "name": "FlowId",
8932
- "required": true,
8950
+ "output_required": true,
8933
8951
  "type": "int",
8934
8952
  "value_allowed_null": false
8935
8953
  },
@@ -9004,6 +9022,30 @@
9004
9022
  ],
9005
9023
  "usage": "in"
9006
9024
  },
9025
+ "Tag": {
9026
+ "document": "标签",
9027
+ "members": [
9028
+ {
9029
+ "disabled": false,
9030
+ "document": "标签键",
9031
+ "example": "name",
9032
+ "member": "string",
9033
+ "name": "TagKey",
9034
+ "required": false,
9035
+ "type": "string"
9036
+ },
9037
+ {
9038
+ "disabled": false,
9039
+ "document": "标签值",
9040
+ "example": "liu",
9041
+ "member": "string",
9042
+ "name": "TagValue",
9043
+ "required": false,
9044
+ "type": "string"
9045
+ }
9046
+ ],
9047
+ "usage": "in"
9048
+ },
9007
9049
  "TerminateDedicatedDBInstanceRequest": {
9008
9050
  "document": "TerminateDedicatedDBInstance请求参数结构体",
9009
9051
  "members": [
@@ -196,7 +196,7 @@
196
196
  {
197
197
  "document": "",
198
198
  "input": "https://dcdb.tencentcloudapi.com/?Action=DescribeDCDBInstances\n&InstanceIds.0=tdsqlshard-hptutl5t\n&<公共请求参数>",
199
- "output": "{\n \"Response\": {\n \"Instances\": [\n {\n \"AppId\": 251000022,\n \"AutoRenewFlag\": 1,\n \"Cpu\": 2,\n \"CreateTime\": \"2021-03-26 16:14:31\",\n \"DbEngine\": \"MariaDB\",\n \"DbVersion\": \"10.1.9\",\n \"DcnDstNum\": 0,\n \"DcnFlag\": 0,\n \"DcnStatus\": 0,\n \"ExclusterId\": \"\",\n \"Id\": 2000091,\n \"InstanceId\": \"tdsqlshard-hptutl5t\",\n \"InstanceName\": \"tdsqlshard-hptutl5t\",\n \"InstanceType\": 2,\n \"Ipv6Flag\": 0,\n \"IsAuditSupported\": 1,\n \"IsTmp\": 0,\n \"IsolatedTimestamp\": \"0000-00-00 00:00:00\",\n \"Locker\": 0,\n \"Memory\": 4,\n \"NodeCount\": 2,\n \"Paymode\": \"prepaid\",\n \"PeriodEndTime\": \"2021-04-26 16:14:31\",\n \"Pid\": 1001670,\n \"ProjectId\": 0,\n \"Region\": \"ap-guangzhou\",\n \"ShardCount\": 2,\n \"ShardDetail\": [\n {\n \"Cpu\": 1,\n \"Createtime\": \"2021-03-26 16:14:31\",\n \"Memory\": 2,\n \"NodeCount\": 1,\n \"Pid\": 1001670,\n \"ShardId\": 12208,\n \"ShardInstanceId\": \"shard-qihco4rx\",\n \"ShardSerialId\": \"set_1616746585_1\",\n \"Status\": 2,\n \"Storage\": 10\n },\n {\n \"Cpu\": 1,\n \"Createtime\": \"2021-03-26 16:14:31\",\n \"Memory\": 2,\n \"NodeCount\": 1,\n \"Pid\": 1001670,\n \"ShardId\": 12209,\n \"ShardInstanceId\": \"shard-d3moxo2r\",\n \"ShardSerialId\": \"set_1616746676_3\",\n \"Status\": 2,\n \"Storage\": 10\n }\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 20,\n \"SubnetId\": 1479311,\n \"Uin\": \"918700682\",\n \"UniqueSubnetId\": \"subnet-au6ics6s\",\n \"UniqueVpcId\": \"vpc-737mtr2f\",\n \"UpdateTime\": \"2021-03-29 15:35:33\",\n \"Vip\": \"10.1.0.6\",\n \"Vipv6\": \"\",\n \"VpcId\": 74809,\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanPort\": 0,\n \"WanPortIpv6\": 0,\n \"WanStatus\": 0,\n \"WanStatusIpv6\": 0,\n \"WanVip\": \"\",\n \"WanVipv6\": \"\",\n \"Zone\": \"ap-guangzhou-1\",\n \"ResourceTags\": [\n {\n \"TagKey\": \"xx\",\n \"TagValue\": \"xx\"\n }\n ]\n }\n ],\n \"RequestId\": \"a44a3d24-1e71-4bbf-bc22-f6d583b084d8\",\n \"TotalCount\": 1\n }\n}",
199
+ "output": "{\n \"Response\": {\n \"Instances\": [\n {\n \"AppId\": 251000022,\n \"AutoRenewFlag\": 1,\n \"Cpu\": 2,\n \"CreateTime\": \"2021-03-26 16:14:31\",\n \"DbEngine\": \"MariaDB\",\n \"DbVersion\": \"10.1.9\",\n \"DcnDstNum\": 0,\n \"DcnFlag\": 0,\n \"DcnStatus\": 0,\n \"ExclusterId\": \"\",\n \"Id\": 2000091,\n \"InstanceId\": \"tdsqlshard-hptutl5t\",\n \"InstanceName\": \"tdsqlshard-hptutl5t\",\n \"InstanceType\": 2,\n \"Ipv6Flag\": 0,\n \"IsAuditSupported\": 1,\n \"IsTmp\": 0,\n \"IsolatedTimestamp\": \"0000-00-00 00:00:00\",\n \"Locker\": 0,\n \"Memory\": 4,\n \"NodeCount\": 2,\n \"Paymode\": \"prepaid\",\n \"PeriodEndTime\": \"2021-04-26 16:14:31\",\n \"Pid\": 1001670,\n \"ProjectId\": 0,\n \"Region\": \"ap-guangzhou\",\n \"ShardCount\": 2,\n \"ShardDetail\": [\n {\n \"Cpu\": 1,\n \"Createtime\": \"2021-03-26 16:14:31\",\n \"Memory\": 2,\n \"NodeCount\": 1,\n \"Pid\": 1001670,\n \"ShardId\": 12208,\n \"ShardInstanceId\": \"shard-qihco4rx\",\n \"ShardSerialId\": \"set_1616746585_1\",\n \"Status\": 2,\n \"Storage\": 10\n },\n {\n \"Cpu\": 1,\n \"Createtime\": \"2021-03-26 16:14:31\",\n \"Memory\": 2,\n \"NodeCount\": 1,\n \"Pid\": 1001670,\n \"ShardId\": 12209,\n \"ShardInstanceId\": \"shard-d3moxo2r\",\n \"ShardSerialId\": \"set_1616746676_3\",\n \"Status\": 2,\n \"Storage\": 10\n }\n ],\n \"Status\": 2,\n \"StatusDesc\": \"运行中\",\n \"Storage\": 20,\n \"SubnetId\": 1479311,\n \"Uin\": \"918700682\",\n \"UniqueSubnetId\": \"subnet-au6ics6s\",\n \"UniqueVpcId\": \"vpc-737mtr2f\",\n \"UpdateTime\": \"2021-03-29 15:35:33\",\n \"Vip\": \"10.1.0.6\",\n \"Vipv6\": \"\",\n \"VpcId\": 74809,\n \"Vport\": 3306,\n \"WanDomain\": \"\",\n \"WanPort\": 0,\n \"WanPortIpv6\": 0,\n \"WanStatus\": 0,\n \"WanStatusIpv6\": 0,\n \"WanVip\": \"\",\n \"WanVipv6\": \"\",\n \"Zone\": \"ap-guangzhou-1\",\n \"ResourceTags\": [\n {\n \"TagKey\": \"name\",\n \"TagValue\": \"liu\"\n }\n ],\n \"DbVersionId\": \"8.0\"\n }\n ],\n \"RequestId\": \"a44a3d24-1e71-4bbf-bc22-f6d583b084d8\",\n \"TotalCount\": 1\n }\n}",
200
200
  "title": "根据实例ID查询实例列表"
201
201
  }
202
202
  ],
@@ -8372,6 +8372,36 @@
8372
8372
  "type": "string",
8373
8373
  "value_allowed_null": true
8374
8374
  },
8375
+ {
8376
+ "disabled": false,
8377
+ "document": "引擎计算耗时\n注意:此字段可能返回 null,表示取不到有效值。",
8378
+ "example": "10",
8379
+ "member": "int64",
8380
+ "name": "UseTime",
8381
+ "output_required": false,
8382
+ "type": "int",
8383
+ "value_allowed_null": true
8384
+ },
8385
+ {
8386
+ "disabled": false,
8387
+ "document": "结果条数\n注意:此字段可能返回 null,表示取不到有效值。",
8388
+ "example": "100",
8389
+ "member": "int64",
8390
+ "name": "AffectRows",
8391
+ "output_required": false,
8392
+ "type": "int",
8393
+ "value_allowed_null": true
8394
+ },
8395
+ {
8396
+ "disabled": false,
8397
+ "document": "数据扫描量\n注意:此字段可能返回 null,表示取不到有效值。",
8398
+ "example": "10",
8399
+ "member": "int64",
8400
+ "name": "DataAmount",
8401
+ "output_required": false,
8402
+ "type": "int",
8403
+ "value_allowed_null": true
8404
+ },
8375
8405
  {
8376
8406
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
8377
8407
  "member": "string",
@@ -532,7 +532,7 @@
532
532
  {
533
533
  "document": "本接口用于获取statement运行结果。",
534
534
  "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNotebookSessionStatementSqlResult\n<公共请求参数>\n\n{\n \"TaskId\": \"20210521195919442157\",\n \"MaxResults\": 100,\n \"NextToken\": \"objectListMarker={marker}&lastReadFile={filename}&lastReadOffset\"\n}",
535
- "output": "{\n \"Response\": {\n \"TaskId\": \"abc\",\n \"ResultSet\": \"abc\",\n \"ResultSchema\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Precision\": 0,\n \"Scale\": 0,\n \"Nullable\": \"abc\",\n \"Position\": 0,\n \"CreateTime\": \"abc\",\n \"ModifiedTime\": \"abc\",\n \"IsPartition\": true\n }\n ],\n \"NextToken\": \"abc\",\n \"OutputPath\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
535
+ "output": "{\n \"Response\": {\n \"TaskId\": \"abc\",\n \"ResultSet\": \"abc\",\n \"ResultSchema\": [\n {\n \"Name\": \"abc\",\n \"Type\": \"abc\",\n \"Comment\": \"abc\",\n \"Precision\": 0,\n \"Scale\": 0,\n \"Nullable\": \"abc\",\n \"Position\": 0,\n \"CreateTime\": \"abc\",\n \"ModifiedTime\": \"abc\",\n \"IsPartition\": true\n }\n ],\n \"NextToken\": \"abc\",\n \"OutputPath\": \"abc\",\n \"RequestId\": \"abc\",\n \"UseTime\": 10,\n \"AffectRows\": 10\n }\n}",
536
536
  "title": "获取statement运行结果"
537
537
  }
538
538
  ],
@@ -324,7 +324,7 @@
324
324
  {
325
325
  "disabled": false,
326
326
  "document": "角色名称。",
327
- "example": "",
327
+ "example": "assistant",
328
328
  "member": "string",
329
329
  "name": "Role",
330
330
  "output_required": false,
@@ -334,7 +334,7 @@
334
334
  {
335
335
  "disabled": false,
336
336
  "document": "内容详情。",
337
- "example": "",
337
+ "example": "你好!请问有什么我可以帮助你的吗?",
338
338
  "member": "string",
339
339
  "name": "Content",
340
340
  "output_required": false,
@@ -381,12 +381,12 @@
381
381
  "usage": "out"
382
382
  },
383
383
  "EmbeddingUsage": {
384
- "document": "token 使用计数。",
384
+ "document": "Token 使用计数。",
385
385
  "members": [
386
386
  {
387
387
  "disabled": false,
388
- "document": "输入Token数。",
389
- "example": "",
388
+ "document": "输入 Token 数。",
389
+ "example": "8",
390
390
  "member": "int64",
391
391
  "name": "PromptTokens",
392
392
  "output_required": false,
@@ -395,8 +395,8 @@
395
395
  },
396
396
  {
397
397
  "disabled": false,
398
- "document": "总Token数。",
399
- "example": "",
398
+ "document": "总 Token 数。",
399
+ "example": "8",
400
400
  "member": "int64",
401
401
  "name": "TotalTokens",
402
402
  "output_required": false,
@@ -565,12 +565,12 @@
565
565
  "usage": "both"
566
566
  },
567
567
  "Usage": {
568
- "document": "token 数量",
568
+ "document": "Token 数量",
569
569
  "members": [
570
570
  {
571
571
  "disabled": false,
572
- "document": "输入 token 数量。",
573
- "example": "",
572
+ "document": "输入 Token 数量。",
573
+ "example": "8",
574
574
  "member": "int64",
575
575
  "name": "PromptTokens",
576
576
  "output_required": false,
@@ -579,8 +579,8 @@
579
579
  },
580
580
  {
581
581
  "disabled": false,
582
- "document": "输出 token 数量。",
583
- "example": "",
582
+ "document": "输出 Token 数量。",
583
+ "example": "20",
584
584
  "member": "int64",
585
585
  "name": "CompletionTokens",
586
586
  "output_required": false,
@@ -589,8 +589,8 @@
589
589
  },
590
590
  {
591
591
  "disabled": false,
592
- "document": "总 token 数量。",
593
- "example": "",
592
+ "document": "总 Token 数量。",
593
+ "example": "28",
594
594
  "member": "int64",
595
595
  "name": "TotalTokens",
596
596
  "output_required": false,
@@ -3526,7 +3526,7 @@
3526
3526
  {
3527
3527
  "disabled": false,
3528
3528
  "document": "任务数量",
3529
- "example": "",
3529
+ "example": "1",
3530
3530
  "member": "uint64",
3531
3531
  "name": "Total",
3532
3532
  "output_required": true,
@@ -561,7 +561,7 @@
561
561
  "status": "online"
562
562
  },
563
563
  "ModifyFirewallRuleDescription": {
564
- "document": "本接口(ModifyFirewallRuleDescription)用于修改单条防火墙规则描述。\n\n* FirewallVersion 用于指定要操作的防火墙的版本。传入 FirewallVersion 版本号若不等于当前防火墙的最新版本,将返回失败;若不传 FirewallVersion 则直接修改防火墙规则备注。\n\n在 FirewallRule 参数中:\n* Protocol 字段支持输入 TCP,UDP,ICMP,ALL。\n* Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。\n* CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。\n* Action 字段只允许输入 ACCEPT 或 DROP。\n* FirewallRuleDescription 字段长度不得超过 64。",
564
+ "document": "本接口(ModifyFirewallRuleDescription)用于修改单条防火墙规则描述。\n\n* FirewallVersion 用于指定要操作的防火墙的版本。传入 FirewallVersion 版本号若不等于当前防火墙的最新版本,将返回失败;若不传 FirewallVersion 则直接修改防火墙规则备注。\n\n用FirewallRule参数来指定要修改的防火墙规则,使用其中的Protocol, Port, CidrBlock,Action字段来匹配要修改的防火墙规则。\n\n在 FirewallRule 参数中:\n* Protocol 字段支持输入 TCP,UDP,ICMP,ALL。\n* Port 字段允许输入 ALL,或者一个单独的端口号,或者用逗号分隔的离散端口号,或者用减号分隔的两个端口号代表的端口范围。当 Port 为范围时,减号分隔的第一个端口号小于第二个端口号。当 Protocol 字段不是 TCP 或 UDP 时,Port 字段只能为空或 ALL。Port 字段长度不得超过 64。\n* CidrBlock 字段允许输入符合 cidr 格式标准的任意字符串。租户之间网络隔离规则优先于防火墙中的内网规则。\n* Action 字段只允许输入 ACCEPT 或 DROP。\n* FirewallRuleDescription 字段长度不得超过 64。",
565
565
  "input": "ModifyFirewallRuleDescriptionRequest",
566
566
  "name": "修改防火墙规则描述",
567
567
  "output": "ModifyFirewallRuleDescriptionResponse",
@@ -6072,7 +6072,7 @@
6072
6072
  {
6073
6073
  "disabled": false,
6074
6074
  "document": "防火墙规则描述。",
6075
- "example": "''",
6075
+ "example": "firewallrule description",
6076
6076
  "member": "string",
6077
6077
  "name": "FirewallRuleDescription",
6078
6078
  "output_required": true,
@@ -162,7 +162,7 @@
162
162
  "status": "online"
163
163
  },
164
164
  "CreateRecordTask": {
165
- "document": "创建一个在指定时间启动、结束的录制任务,并使用指定录制模板ID对应的配置进行录制。\n- 使用前提\n1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。\n2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考 [对应文档](https://cloud.tencent.com/document/product/266/2837)。\n- 注意事项\n1. 断流会结束当前录制并生成录制文件。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常录制,与是否多次推、断流无关。\n2. 使用上避免创建时间段相互重叠的录制任务。若同一条流当前存在多个时段重叠的任务,为避免重复录制系统将启动最多3个录制任务。\n3. 创建的录制任务记录在平台侧只保留3个月。\n4. 当前录制任务管理API([CreateRecordTask](https://cloud.tencent.com/document/product/267/45983)/[StopRecordTask](https://cloud.tencent.com/document/product/267/45981)/[DeleteRecordTask](https://cloud.tencent.com/document/product/267/45982))与旧API(CreateLiveRecord/StopLiveRecord/DeleteLiveRecord)不兼容,两套接口不能混用。\n5. 避免 创建录制任务 与 推流 操作同时进行,可能导致因录制任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。",
165
+ "document": "创建一个在指定时间启动、结束的录制任务,并使用指定录制模板ID对应的配置进行录制。\n- 使用前提\n1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。\n2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考[对应文档](https://cloud.tencent.com/document/product/266/2837)。\n- 注意事项\n1. 断流会结束当前录制并生成录制文件。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常录制,与是否多次推、断流无关。\n2. 使用上避免创建时间段相互重叠的录制任务。若同一条流当前存在多个时段重叠的任务,为避免重复录制系统将启动最多3个录制任务。\n3. 创建的录制任务记录在平台侧只保留3个月。\n4. 当前录制任务管理API([CreateRecordTask](https://cloud.tencent.com/document/product/267/45983)/[StopRecordTask](https://cloud.tencent.com/document/product/267/45981)/[DeleteRecordTask](https://cloud.tencent.com/document/product/267/45982))与旧API(CreateLiveRecord/StopLiveRecord/DeleteLiveRecord)不兼容,两套接口不能混用。\n5. 避免 创建录制任务 与 推流 操作同时进行,可能导致因录制任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。",
166
166
  "input": "CreateRecordTaskRequest",
167
167
  "name": "创建录制任务(新)",
168
168
  "output": "CreateRecordTaskResponse",
@@ -4316,7 +4316,7 @@
4316
4316
  },
4317
4317
  {
4318
4318
  "disabled": false,
4319
- "document": "录制任务结束时间,Unix时间戳。设置时间必须大于StartTime及当前时间,且EndTime - StartTime不能超过24小时。",
4319
+ "document": "录制任务结束时间,Unix时间戳。设置时间必须大于StartTime及当前时间,且小于当前时间+7天。",
4320
4320
  "example": "1589904000",
4321
4321
  "member": "uint64",
4322
4322
  "name": "EndTime",
@@ -4325,7 +4325,7 @@
4325
4325
  },
4326
4326
  {
4327
4327
  "disabled": false,
4328
- "document": "录制任务开始时间,Unix时间戳。如果不填表示立即启动录制。StartTime不能超过当前时间+6天。",
4328
+ "document": "录制任务开始时间,Unix时间戳。如果不填表示立即启动录制。EndTime - StartTime不能超过24小时。",
4329
4329
  "example": "1589889600",
4330
4330
  "member": "uint64",
4331
4331
  "name": "StartTime",
@@ -4371,7 +4371,7 @@
4371
4371
  "example": "UpTbk5RSVhRQFkAAfHwQCCjcRD0lRFcZ0xTSlNTQltlRVRLU1JAWW9EUb",
4372
4372
  "member": "string",
4373
4373
  "name": "TaskId",
4374
- "required": true,
4374
+ "output_required": true,
4375
4375
  "type": "string",
4376
4376
  "value_allowed_null": false
4377
4377
  },
@@ -4416,7 +4416,7 @@
4416
4416
  },
4417
4417
  {
4418
4418
  "disabled": false,
4419
- "document": "截图任务结束时间,Unix时间戳。设置时间必须大于StartTime及当前时间,且EndTime - StartTime不能超过24小时。",
4419
+ "document": "截图任务结束时间,Unix时间戳。设置时间必须大于StartTime及当前时间,且小于当前时间+7天。",
4420
4420
  "example": "1589904000",
4421
4421
  "member": "uint64",
4422
4422
  "name": "EndTime",
@@ -4434,7 +4434,7 @@
4434
4434
  },
4435
4435
  {
4436
4436
  "disabled": false,
4437
- "document": "截图任务开始时间,Unix时间戳。如果不填表示立即启动截图。StartTime不能超过当前时间+6天。",
4437
+ "document": "截图任务开始时间,Unix时间戳。如果不填表示立即启动截图。EndTime - StartTime不能超过24小时。",
4438
4438
  "example": "1589889600",
4439
4439
  "member": "uint64",
4440
4440
  "name": "StartTime",
@@ -4471,7 +4471,7 @@
4471
4471
  "example": "UpTbk5RSVhRQFkAAfHwQCCjcRD0lRFcZ0xTSlNTQltlRVRLU1JAWW9EUb",
4472
4472
  "member": "string",
4473
4473
  "name": "TaskId",
4474
- "required": true,
4474
+ "output_required": true,
4475
4475
  "type": "string",
4476
4476
  "value_allowed_null": false
4477
4477
  },