diff --git a/CHANGELOG.md b/CHANGELOG.md index bd45f46817..2d559b5b2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,40 @@ +# Release 3.0.1165.1 + +## 文件存储(cfs) 版本:2019-07-19 + +### 第 30 次发布 + +发布时间:2024-08-05 01:14:34 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [UserQuota](https://cloud.tencent.com/document/api/582/38175#UserQuota) + + * 新增成员:DirectoryPath, Status + + + + +## 云数据库 SQL Server(sqlserver) 版本:2018-03-28 + +### 第 63 次发布 + +发布时间:2024-08-05 02:02:14 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [CutXEvents](https://cloud.tencent.com/document/api/238/109684) + + + # Release 3.0.1164.1 ## 云数据库 MySQL(cdb) 版本:2017-03-20 diff --git a/SERVICE_CHANGELOG.md b/SERVICE_CHANGELOG.md index 0720645c35..2e3a53a53f 100644 --- a/SERVICE_CHANGELOG.md +++ b/SERVICE_CHANGELOG.md @@ -1,122 +1,10 @@ # 本版本更新包含以下内容: -## 云数据库 MySQL(cdb) 版本:2017-03-20 - -### 第 163 次发布 - -发布时间:2024-08-02 01:11:12 - -本次发布包含了以下内容: - -改善已有的文档。 - -修改接口: - -* [CreateDBInstance](https://cloud.tencent.com/document/api/236/15871) - - * 新增入参:DataProtectVolume, DiskType - -* [CreateDBInstanceHour](https://cloud.tencent.com/document/api/236/15865) - - * 新增入参:DataProtectVolume, DiskType - - - - ## 文件存储(cfs) 版本:2019-07-19 -### 第 29 次发布 - -发布时间:2024-08-02 01:14:53 - -本次发布包含了以下内容: - -改善已有的文档。 - -修改接口: - -* [DeleteUserQuota](https://cloud.tencent.com/document/api/582/82655) - - * 新增入参:DirectoryPath - - * **修改入参**:UserId - -* [SetUserQuota](https://cloud.tencent.com/document/api/582/82653) - - * 新增入参:DirectoryPath - - * **修改入参**:UserId - - - - -## 云安全一体化平台(csip) 版本:2022-11-21 - -### 第 43 次发布 - -发布时间:2024-08-02 01:20:09 - -本次发布包含了以下内容: - -改善已有的文档。 - -修改接口: - -* [DescribeAlertList](https://cloud.tencent.com/document/api/664/105563) - - * 新增出参:ReturnCode, ReturnMsg - - - - -## 腾讯混元大模型(hunyuan) 版本:2023-09-01 - -### 第 15 次发布 - -发布时间:2024-08-02 01:40:08 - -本次发布包含了以下内容: - -改善已有的文档。 - -修改接口: - -* [ChatCompletions](https://cloud.tencent.com/document/api/1729/105701) - - * 新增入参:Citation - - - - -## 物联网开发平台(iotexplorer) 版本:2019-04-23 - -### 第 75 次发布 - -发布时间:2024-08-02 01:42:30 - -本次发布包含了以下内容: - -改善已有的文档。 - -新增接口: - -* [CreateCloudStorageAIService](https://cloud.tencent.com/document/api/1081/109627) -* [ResetCloudStorageAIService](https://cloud.tencent.com/document/api/1081/109626) - -修改接口: - -* [DescribeCloudStorageAIService](https://cloud.tencent.com/document/api/1081/105303) - - * 新增出参:Type, Status, ExpireTime, UserId - - - - -## 媒体处理(mps) 版本:2019-06-12 - -### 第 91 次发布 +### 第 30 次发布 -发布时间:2024-08-02 01:54:19 +发布时间:2024-08-05 01:14:34 本次发布包含了以下内容: @@ -124,22 +12,18 @@ 修改数据结构: -* [TranslateConfigureInfo](https://cloud.tencent.com/document/api/862/37615#TranslateConfigureInfo) - - * 新增成员:SubtitleFormat +* [UserQuota](https://cloud.tencent.com/document/api/582/38175#UserQuota) -* [TranslateConfigureInfoForUpdate](https://cloud.tencent.com/document/api/862/37615#TranslateConfigureInfoForUpdate) + * 新增成员:DirectoryPath, Status - * 新增成员:SubtitleFormat +## 云数据库 SQL Server(sqlserver) 版本:2018-03-28 -## 云数据库Redis(redis) 版本:2018-04-12 - -### 第 80 次发布 +### 第 63 次发布 -发布时间:2024-08-02 02:00:28 +发布时间:2024-08-05 02:02:14 本次发布包含了以下内容: @@ -147,58 +31,7 @@ 新增接口: -* [DescribeRedisClusterOverview](https://cloud.tencent.com/document/api/239/109629) -* [DescribeRedisClusters](https://cloud.tencent.com/document/api/239/109628) - -新增数据结构: - -* [CDCResource](https://cloud.tencent.com/document/api/239/20022#CDCResource) -* [ResourceBundle](https://cloud.tencent.com/document/api/239/20022#ResourceBundle) - -修改数据结构: - -* [InstanceSet](https://cloud.tencent.com/document/api/239/20022#InstanceSet) - - * 新增成员:RedisClusterId, DedicatedClusterId, ProductVersion - - - - -## 实时音视频(trtc) 版本:2019-07-22 - -### 第 84 次发布 - -发布时间:2024-08-02 02:18:56 - -本次发布包含了以下内容: - -改善已有的文档。 - -修改数据结构: - -* [McuUserInfoParams](https://cloud.tencent.com/document/api/647/44055#McuUserInfoParams) - - * 新增成员:SoundLevel - - - - -## 微服务引擎(tse) 版本:2020-12-07 - -### 第 74 次发布 - -发布时间:2024-08-02 02:19:29 - -本次发布包含了以下内容: - -改善已有的文档。 - -修改数据结构: - -* [KongActiveHealthCheck](https://cloud.tencent.com/document/api/1364/54942#KongActiveHealthCheck) - - * 新增成员:Timeout - +* [CutXEvents](https://cloud.tencent.com/document/api/238/109684) @@ -24501,6 +24334,21 @@ ## 文件存储(cfs) 版本:2019-07-19 +### 第 30 次发布 + +发布时间:2024-08-05 01:14:34 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [UserQuota](https://cloud.tencent.com/document/api/582/38175#UserQuota) + + * 新增成员:DirectoryPath, Status + + ### 第 29 次发布 发布时间:2024-08-02 01:14:53 @@ -79183,8 +79031,8 @@ 新增接口: -* [[CreateCloudStorageAIService](https://cloud.tencent.com/document/api/1081/109627)](https://cloud.tencent.com/document/api/#/#) -* [[ResetCloudStorageAIService](https://cloud.tencent.com/document/api/1081/109626)](https://cloud.tencent.com/document/api/#/#) +* [CreateCloudStorageAIService](https://cloud.tencent.com/document/api/1081/109627) +* [ResetCloudStorageAIService](https://cloud.tencent.com/document/api/1081/109626) 修改接口: @@ -107797,13 +107645,13 @@ 新增接口: -* [[DescribeRedisClusterOverview](https://cloud.tencent.com/document/api/239/109629)](https://cloud.tencent.com/document/api/#/#) -* [[DescribeRedisClusters](https://cloud.tencent.com/document/api/239/109628)](https://cloud.tencent.com/document/api/#/#) +* [DescribeRedisClusterOverview](https://cloud.tencent.com/document/api/239/109629) +* [DescribeRedisClusters](https://cloud.tencent.com/document/api/239/109628) 新增数据结构: -* [[CDCResource](https://cloud.tencent.com/document/api/239/20022#CDCResource)](https://cloud.tencent.com/document/api/239/20022#[CDCResource](https://cloud.tencent.com/document/api/239/20022#CDCResource)) -* [[ResourceBundle](https://cloud.tencent.com/document/api/239/20022#ResourceBundle)](https://cloud.tencent.com/document/api/239/20022#[ResourceBundle](https://cloud.tencent.com/document/api/239/20022#ResourceBundle)) +* [CDCResource](https://cloud.tencent.com/document/api/239/20022#CDCResource) +* [ResourceBundle](https://cloud.tencent.com/document/api/239/20022#ResourceBundle) 修改数据结构: @@ -112589,6 +112437,18 @@ ## 云数据库 SQL Server(sqlserver) 版本:2018-03-28 +### 第 63 次发布 + +发布时间:2024-08-05 02:02:14 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[CutXEvents](https://cloud.tencent.com/document/api/238/109684)](https://cloud.tencent.com/document/api/#/#) + ### 第 62 次发布 发布时间:2024-06-06 02:22:45 diff --git a/products.md b/products.md index 910368c931..163afbbd3e 100644 --- a/products.md +++ b/products.md @@ -49,7 +49,7 @@ | cdwpg | [云数据仓库 PostgreSQL](https://cloud.tencent.com/document/product/878) | 2024-03-28 01:10:53 | | cdz | [专属可用区](https://cloud.tencent.com/document/product/1629) | 2024-07-15 09:37:14 | | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2024-07-26 14:53:06 | -| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2024-08-02 01:14:53 | +| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2024-08-05 01:14:34 | | cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2024-07-30 01:19:22 | | chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2024-03-20 01:10:55 | | ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2024-06-17 01:21:02 | @@ -74,7 +74,7 @@ | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2024-07-22 01:24:41 | | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-07-30 01:25:44 | | cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 | -| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-08-01 01:30:11 | +| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-08-05 01:24:50 | | dasb | [运维安全中心(堡垒机)](https://cloud.tencent.com/document/product/1025) | 2024-07-16 01:13:41 | | dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 | | dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-05-18 01:20:11 | @@ -148,7 +148,7 @@ | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2024-07-02 01:19:41 | | mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-07-22 01:55:24 | | mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-07-25 01:56:02 | -| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-08-02 01:52:55 | +| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-08-05 01:52:14 | | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-08-02 01:54:19 | | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-06-14 02:16:42 | | ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2024-06-05 02:02:03 | @@ -179,7 +179,7 @@ | sms | [短信](https://cloud.tencent.com/document/product/382) | 2024-06-20 02:08:58 | | soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2024-04-11 01:20:45 | | solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 | -| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2024-08-02 02:03:09 | +| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2024-08-05 02:02:14 | | ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2023-11-15 02:18:28 | | ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2024-07-05 01:16:31 | | sslpod | [证书监控 SSLPod](https://cloud.tencent.com/document/product/1084) | 2024-03-20 01:24:03 | @@ -194,7 +194,7 @@ | tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2024-05-14 02:28:40 | | tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 | | tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2024-03-20 01:24:24 | -| tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2024-07-30 02:09:55 | +| tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2024-08-05 02:05:20 | | tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2024-06-04 02:12:41 | | tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2024-06-18 02:13:09 | | tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-07-21 06:17:29 | @@ -227,7 +227,7 @@ | trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-07-05 01:19:38 | | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-06-06 02:42:14 | | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-07-31 02:17:29 | -| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-08-02 02:18:56 | +| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-08-05 02:17:49 | | tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-08-02 02:19:29 | | tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-07-30 11:37:37 | | tsi | [腾讯同传系统](https://cloud.tencent.com/document/product/1399) | 2024-08-02 02:22:13 | diff --git a/pyproject.toml b/pyproject.toml index ae82bf1aff..fd8625fd9b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ exclude = ["tccli/examples"] [project] name = "tccli" -version = "3.0.1164.1" +version = "3.0.1165.1" authors = [ { name="tencentcloudapi", email="tencentcloudapi@tencent.com" }, ] @@ -24,7 +24,7 @@ classifiers = [ dependencies = [ "jmespath==0.10.0", "six==1.16.0", - "tencentcloud-sdk-python>=3.0.1164", + "tencentcloud-sdk-python>=3.0.1165", ] [project.urls] diff --git a/tccli/__init__.py b/tccli/__init__.py index 753242ceb2..45445e69e0 100644 --- a/tccli/__init__.py +++ b/tccli/__init__.py @@ -1 +1 @@ -__version__ = '3.0.1164.1' +__version__ = '3.0.1165.1' diff --git a/tccli/examples/monitor/v20180724/DescribeBasicAlarmList.md b/tccli/examples/monitor/v20180724/DescribeBasicAlarmList.md index 45241d0d1d..b96b330109 100644 --- a/tccli/examples/monitor/v20180724/DescribeBasicAlarmList.md +++ b/tccli/examples/monitor/v20180724/DescribeBasicAlarmList.md @@ -24,74 +24,40 @@ Output: "Response": { "Alarms": [ { - "AlarmStatus": "OK", - "AlarmType": "内存使用量", - "Content": "内存使用量 > 66666 MB", - "Dimensions": "{\"unInstanceId\":\"ins-19a06nn8\"}", - "Duration": 600, - "FirstOccurTime": "2019-11-16T15:50:00+08:00", - "GroupId": 1278966, - "GroupName": "dddd", - "Id": 30057956, - "InstanceGroup": [ - { - "InstanceGroupId": 562, - "InstanceGroupName": "barad_nws_cvm" - } - ], - "LastOccurTime": "2019-11-16T16:00:00+08:00", - "MetricId": 24, - "MetricName": "mem_used", + "Id": 1, + "ProjectId": 0, + "ProjectName": "abc", + "Status": 0, + "AlarmStatus": "abc", + "GroupId": 0, + "GroupName": "abc", + "FirstOccurTime": "abc", + "Duration": 0, + "LastOccurTime": "abc", + "Content": "abc", + "ObjName": "abc", + "ObjId": "abc", + "ViewName": "abc", + "Vpc": "abc", + "MetricId": 0, + "MetricName": "abc", + "AlarmType": 0, + "Region": "abc", + "Dimensions": "abc", "NotifyWay": [ - "EMAIL", - "SMS" + "abc" ], - "ObjId": "a961c198-e0e2-4989-a3b6-7b155b35ff6f", - "ObjName": "10.0.0.14(251008737 vm1)", - "ProjectId": 0, - "ProjectName": "默认项目", - "Region": "gz", - "Status": 1, - "ViewName": "cvm_device", - "Vpc": "1" - }, - { - "AlarmStatus": "OK", - "AlarmType": "内存使用量", - "Content": "内存使用量 >= 200000 MB", - "Dimensions": "{\"unInstanceId\":\"ins-19a06nn8\"}", - "Duration": 180, - "FirstOccurTime": "2019-11-16T15:45:00+08:00", - "GroupId": 1279043, - "GroupName": "-", - "Id": 30057955, "InstanceGroup": [ { - "InstanceGroupId": 562, - "InstanceGroupName": "barad_nws_cvm" + "InstanceGroupId": 0, + "InstanceGroupName": "abc" } - ], - "LastOccurTime": "2019-11-16T15:48:00+08:00", - "MetricId": 24, - "MetricName": "mem_used", - "NotifyWay": [ - "EMAIL", - "SMS", - "WECHAT" - ], - "ObjId": "a961c198-e0e2-4989-a3b6-7b155b35ff6f", - "ObjName": "10.0.0.14(251008737 vm1)", - "ProjectId": 0, - "ProjectName": "默认项目", - "Region": "gz", - "Status": 1, - "ViewName": "cvm_device", - "Vpc": "1" + ] } ], - "RequestId": "6b64cc24-0c60-483f-bdc3-2e55edbbc68c", - "Total": 2, - "Warning": "This method is deprecated! Use `DescribeAlarmHistories` instead!" + "Total": 0, + "Warning": "abc", + "RequestId": "abc" } } ``` diff --git a/tccli/examples/monitor/v20180724/DescribePolicyGroupList.md b/tccli/examples/monitor/v20180724/DescribePolicyGroupList.md index 7cbed9e542..222b7fe926 100644 --- a/tccli/examples/monitor/v20180724/DescribePolicyGroupList.md +++ b/tccli/examples/monitor/v20180724/DescribePolicyGroupList.md @@ -17,108 +17,99 @@ Output: "Response": { "GroupList": [ { + "GroupId": 0, + "GroupName": "abc", + "IsOpen": true, + "ViewName": "abc", + "LastEditUin": "abc", + "UpdateTime": 0, + "InsertTime": 0, + "UseSum": 0, + "NoShieldedSum": 0, + "IsDefault": 0, "CanSetDefault": true, + "ParentGroupId": 0, + "Remark": "abc", + "ProjectId": 0, "Conditions": [ { - "AlarmNotifyPeriod": 86400, + "MetricShowName": "abc", + "Period": 0, + "MetricId": 0, + "RuleId": 0, + "Unit": "abc", "AlarmNotifyType": 0, - "CalcType": 1, - "CalcValue": "0", - "ContinueTime": 60, - "MetricId": 33, - "MetricShowName": "CPU利用率", - "Period": 60, - "RuleId": 1111111, - "Unit": "%" + "AlarmNotifyPeriod": 0, + "CalcType": 0, + "CalcValue": "abc", + "ContinueTime": 0, + "MetricName": "abc" } ], - "ConditionsTemp": null, "EventConditions": [ { + "EventId": 0, + "RuleId": 0, + "EventShowName": "abc", "AlarmNotifyPeriod": 0, - "AlarmNotifyType": 0, - "EventId": 42, - "EventShowName": "ping不可达", - "RuleId": 1111112 + "AlarmNotifyType": 0 } ], - "GroupId": 1111111, - "GroupName": "复制-test", - "InsertTime": 1531122504, - "InstanceGroup": null, - "IsDefault": 0, - "IsOpen": true, - "LastEditUin": "1500000000", - "NoShieldedSum": 0, - "ParentGroupId": 0, - "ProjectId": 0, "ReceiverInfos": [ { - "EndTime": 86400, - "NeedSendNotice": 1, + "ReceiverGroupList": [ + 0 + ], + "ReceiverUserList": [ + 0 + ], + "StartTime": 0, + "EndTime": 0, + "ReceiverType": "abc", "NotifyWay": [ - "EMAIL", - "SMS" + "abc" ], - "PersonInterval": 60, - "ReceiverGroupList": [ - 1111 + "UidList": [ + 0 + ], + "RoundNumber": 0, + "RoundInterval": 0, + "PersonInterval": 0, + "NeedSendNotice": 0, + "SendFor": [ + "abc" ], - "ReceiverType": "group", - "ReceiverUserList": [], "RecoverNotify": [ - "SMS" + "abc" ], - "RoundInterval": 60, - "RoundNumber": 2, - "SendFor": [], - "StartTime": 0, - "UidList": null + "ReceiveLanguage": "abc" } ], - "Remark": "", - "UpdateTime": 1577689096, - "UseSum": 0, - "ViewName": "cvm_device" - }, - { - "CanSetDefault": false, - "Conditions": [ - { - "AlarmNotifyPeriod": 0, - "AlarmNotifyType": 0, - "CalcType": 1, - "CalcValue": "0.85", - "ContinueTime": 300, - "MetricId": 1220, - "MetricShowName": "磁盘使用百分比", - "Period": 60, - "RuleId": 1111113, - "Unit": "" - } - ], - "ConditionsTemp": null, - "EventConditions": null, - "GroupId": 1111112, - "GroupName": "默认", - "InsertTime": 1565792922, - "InstanceGroup": null, - "IsDefault": 1, - "IsOpen": true, - "LastEditUin": "1500000687", - "NoShieldedSum": 1, - "ParentGroupId": 0, - "ProjectId": 0, - "ReceiverInfos": null, - "Remark": "", - "UpdateTime": 1565792922, - "UseSum": 1, - "ViewName": "CKAFKA_INSTANCE" + "ConditionsTemp": { + "GroupId": 0, + "GroupName": "abc", + "ViewName": "abc", + "Remark": "abc", + "LastEditUin": "abc", + "UpdateTime": 0, + "InsertTime": 0, + "IsUnionRule": 0 + }, + "InstanceGroup": { + "InstanceGroupId": 0, + "ViewName": "abc", + "LastEditUin": "abc", + "GroupName": "abc", + "InstanceSum": 0, + "UpdateTime": 0, + "InsertTime": 0 + }, + "IsUnionRule": 0 } ], - "RequestId": "5fdf1257-6024-4b59-b924-2b995080f0bd", - "Total": 142, - "Warning": "This method is deprecated! Use `DescribeAlarmPolicies` instead!" + "Total": 0, + "Warning": "abc", + "RequestId": "abc" } } ``` diff --git a/tccli/examples/sqlserver/v20180328/CutXEvents.md b/tccli/examples/sqlserver/v20180328/CutXEvents.md new file mode 100644 index 0000000000..3f53347c19 --- /dev/null +++ b/tccli/examples/sqlserver/v20180328/CutXEvents.md @@ -0,0 +1,20 @@ +**Example 1: 手动生成阻塞日志** + + + +Input: + +``` +tccli sqlserver CutXEvents --cli-unfold-argument \ + --InstanceId abc +``` + +Output: +``` +{ + "Response": { + "RequestId": "abc" + } +} +``` + diff --git a/tccli/services/cfs/v20190719/api.json b/tccli/services/cfs/v20190719/api.json index cf1fbdd583..d898763944 100644 --- a/tccli/services/cfs/v20190719/api.json +++ b/tccli/services/cfs/v20190719/api.json @@ -4738,10 +4738,11 @@ "members": [ { "disabled": false, - "document": "指定配额类型,包括Uid、Gid", + "document": "指定配额类型,包括Uid、Gid、Dir", "example": "Uid", "member": "string", "name": "UserType", + "output_required": true, "required": true, "type": "string", "value_allowed_null": false @@ -4752,6 +4753,7 @@ "example": "1000", "member": "string", "name": "UserId", + "output_required": true, "required": true, "type": "string", "value_allowed_null": false @@ -4762,6 +4764,7 @@ "example": "10", "member": "uint64", "name": "CapacityHardLimit", + "output_required": true, "required": true, "type": "int", "value_allowed_null": false @@ -4772,6 +4775,7 @@ "example": "10000", "member": "uint64", "name": "FileHardLimit", + "output_required": true, "required": true, "type": "int", "value_allowed_null": false @@ -4782,6 +4786,7 @@ "example": "cfs-1245", "member": "string", "name": "FileSystemId", + "output_required": true, "required": true, "type": "string", "value_allowed_null": false @@ -4792,6 +4797,7 @@ "example": "9", "member": "uint64", "name": "CapacityUsed", + "output_required": true, "required": false, "type": "int", "value_allowed_null": true @@ -4802,9 +4808,32 @@ "example": "9999", "member": "uint64", "name": "FileUsed", + "output_required": true, "required": false, "type": "int", "value_allowed_null": true + }, + { + "disabled": false, + "document": "目录配额的目录绝对路径\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "/cfs/xx", + "member": "string", + "name": "DirectoryPath", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "配置规则状态,inavailable---配置中,available --已生效,deleting--删除中,deleted 已删除,failed--配置失败\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "available", + "member": "string", + "name": "Status", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": true } ], "usage": "both" diff --git a/tccli/services/monitor/v20180724/api.json b/tccli/services/monitor/v20180724/api.json index 5bcf539e15..6e2d130ee1 100644 --- a/tccli/services/monitor/v20180724/api.json +++ b/tccli/services/monitor/v20180724/api.json @@ -3310,7 +3310,7 @@ }, { "disabled": false, - "document": "策略名称,不超过20字符", + "document": "策略名称,不超过60字符", "example": "云服务器告警策略", "member": "string", "name": "PolicyName", @@ -6151,7 +6151,7 @@ }, { "disabled": false, - "document": "根据监控类型过滤,不选默认查所有类型。\"MT_QCE\"=云产品监控,支持的枚举值有:\"MT_QCE\"=云产品监控;\"MT_TAW\"=应用性能监控;\"MT_RUM\"=前端性能监控;\"MT_PROBE\"=云拨测", + "document": "根据监控类型过滤,不选默认查所有类型。\"MT_QCE\"=云产品监控,支持的枚举值有:\"MT_QCE\"=云产品监控;\"MT_TAW\"=应用性能监控;\"MT_RUM\"=前端性能监控;\"MT_PROBE\"=云拨测,\"MT_TRTC\"=实时音视频,\n\"MT_RUMAPP\"=终端性能监控", "example": "MT_QCE", "member": "string", "name": "MonitorTypes", @@ -7629,7 +7629,7 @@ "example": "无", "member": "DescribeBasicAlarmListAlarms", "name": "Alarms", - "required": true, + "output_required": true, "type": "list", "value_allowed_null": true }, @@ -7639,7 +7639,7 @@ "example": "2", "member": "int64", "name": "Total", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": true }, @@ -7649,7 +7649,7 @@ "example": "This method is deprecated! Use `DescribeAlarmHistories` instead!", "member": "string", "name": "Warning", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": true }, @@ -10519,7 +10519,7 @@ "example": "无", "member": "DescribePolicyGroupListGroup", "name": "GroupList", - "required": true, + "output_required": true, "type": "list", "value_allowed_null": true }, @@ -10529,7 +10529,7 @@ "example": "142", "member": "int64", "name": "Total", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, @@ -10539,7 +10539,7 @@ "example": "This method is deprecated! Use `DescribeAlarmPolicies` instead!", "member": "string", "name": "Warning", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": true }, diff --git a/tccli/services/monitor/v20180724/examples.json b/tccli/services/monitor/v20180724/examples.json index 9dfa2d85d2..0038220a33 100644 --- a/tccli/services/monitor/v20180724/examples.json +++ b/tccli/services/monitor/v20180724/examples.json @@ -617,8 +617,8 @@ "DescribeBasicAlarmList": [ { "document": "", - "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBasicAlarmList\n<公共请求参数>\n\n{\n \"AlarmStatus\": [\n \"1\"\n ],\n \"MetricNames\": [\n \"mem_used\"\n ],\n \"Module\": \"monitor\",\n \"ViewNames\": [\n \"cvm_device\"\n ],\n \"Limit\": \"20\",\n \"StartTime\": \"1573660800\",\n \"Offset\": \"0\",\n \"ProjectIds\": [\n \"0\"\n ],\n \"EndTime\": \"1573919999\",\n \"OccurTimeOrder\": \"DESC\"\n}", - "output": "{\n \"Response\": {\n \"Alarms\": [\n {\n \"AlarmStatus\": \"OK\",\n \"AlarmType\": \"内存使用量\",\n \"Content\": \"内存使用量 > 66666 MB\",\n \"Dimensions\": \"{\\\"unInstanceId\\\":\\\"ins-19a06nn8\\\"}\",\n \"Duration\": 600,\n \"FirstOccurTime\": \"2019-11-16T15:50:00+08:00\",\n \"GroupId\": 1278966,\n \"GroupName\": \"dddd\",\n \"Id\": 30057956,\n \"InstanceGroup\": [\n {\n \"InstanceGroupId\": 562,\n \"InstanceGroupName\": \"barad_nws_cvm\"\n }\n ],\n \"LastOccurTime\": \"2019-11-16T16:00:00+08:00\",\n \"MetricId\": 24,\n \"MetricName\": \"mem_used\",\n \"NotifyWay\": [\n \"EMAIL\",\n \"SMS\"\n ],\n \"ObjId\": \"a961c198-e0e2-4989-a3b6-7b155b35ff6f\",\n \"ObjName\": \"10.0.0.14(251008737 vm1)\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"Region\": \"gz\",\n \"Status\": 1,\n \"ViewName\": \"cvm_device\",\n \"Vpc\": \"1\"\n },\n {\n \"AlarmStatus\": \"OK\",\n \"AlarmType\": \"内存使用量\",\n \"Content\": \"内存使用量 >= 200000 MB\",\n \"Dimensions\": \"{\\\"unInstanceId\\\":\\\"ins-19a06nn8\\\"}\",\n \"Duration\": 180,\n \"FirstOccurTime\": \"2019-11-16T15:45:00+08:00\",\n \"GroupId\": 1279043,\n \"GroupName\": \"-\",\n \"Id\": 30057955,\n \"InstanceGroup\": [\n {\n \"InstanceGroupId\": 562,\n \"InstanceGroupName\": \"barad_nws_cvm\"\n }\n ],\n \"LastOccurTime\": \"2019-11-16T15:48:00+08:00\",\n \"MetricId\": 24,\n \"MetricName\": \"mem_used\",\n \"NotifyWay\": [\n \"EMAIL\",\n \"SMS\",\n \"WECHAT\"\n ],\n \"ObjId\": \"a961c198-e0e2-4989-a3b6-7b155b35ff6f\",\n \"ObjName\": \"10.0.0.14(251008737 vm1)\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"Region\": \"gz\",\n \"Status\": 1,\n \"ViewName\": \"cvm_device\",\n \"Vpc\": \"1\"\n }\n ],\n \"RequestId\": \"6b64cc24-0c60-483f-bdc3-2e55edbbc68c\",\n \"Total\": 2,\n \"Warning\": \"This method is deprecated! Use `DescribeAlarmHistories` instead!\"\n }\n}", + "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBasicAlarmList\n<公共请求参数>\n\n{\n \"AlarmStatus\": [\n \"1\"\n ],\n \"MetricNames\": [\n \"mem_used\"\n ],\n \"Module\": \"monitor\",\n \"ViewNames\": [\n \"cvm_device\"\n ],\n \"Limit\": 20,\n \"StartTime\": 1573660800,\n \"Offset\": 0,\n \"ProjectIds\": [\n \"0\"\n ],\n \"EndTime\": 1573919999,\n \"OccurTimeOrder\": \"DESC\"\n}", + "output": "{\n \"Response\": {\n \"Alarms\": [\n {\n \"Id\": 1,\n \"ProjectId\": 0,\n \"ProjectName\": \"abc\",\n \"Status\": 0,\n \"AlarmStatus\": \"abc\",\n \"GroupId\": 0,\n \"GroupName\": \"abc\",\n \"FirstOccurTime\": \"abc\",\n \"Duration\": 0,\n \"LastOccurTime\": \"abc\",\n \"Content\": \"abc\",\n \"ObjName\": \"abc\",\n \"ObjId\": \"abc\",\n \"ViewName\": \"abc\",\n \"Vpc\": \"abc\",\n \"MetricId\": 0,\n \"MetricName\": \"abc\",\n \"AlarmType\": 0,\n \"Region\": \"abc\",\n \"Dimensions\": \"abc\",\n \"NotifyWay\": [\n \"abc\"\n ],\n \"InstanceGroup\": [\n {\n \"InstanceGroupId\": 0,\n \"InstanceGroupName\": \"abc\"\n }\n ]\n }\n ],\n \"Total\": 0,\n \"Warning\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", "title": "获取基础告警列表" } ], @@ -783,8 +783,8 @@ "DescribePolicyGroupList": [ { "document": "", - "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePolicyGroupList\n<公共请求参数>\n\n{\n \"Limit\": \"2\",\n \"Module\": \"monitor\",\n \"Offset\": \"0\"\n}", - "output": "{\n \"Response\": {\n \"GroupList\": [\n {\n \"CanSetDefault\": true,\n \"Conditions\": [\n {\n \"AlarmNotifyPeriod\": 86400,\n \"AlarmNotifyType\": 0,\n \"CalcType\": 1,\n \"CalcValue\": \"0\",\n \"ContinueTime\": 60,\n \"MetricId\": 33,\n \"MetricShowName\": \"CPU利用率\",\n \"Period\": 60,\n \"RuleId\": 1111111,\n \"Unit\": \"%\"\n }\n ],\n \"ConditionsTemp\": null,\n \"EventConditions\": [\n {\n \"AlarmNotifyPeriod\": 0,\n \"AlarmNotifyType\": 0,\n \"EventId\": 42,\n \"EventShowName\": \"ping不可达\",\n \"RuleId\": 1111112\n }\n ],\n \"GroupId\": 1111111,\n \"GroupName\": \"复制-test\",\n \"InsertTime\": 1531122504,\n \"InstanceGroup\": null,\n \"IsDefault\": 0,\n \"IsOpen\": true,\n \"LastEditUin\": \"1500000000\",\n \"NoShieldedSum\": 0,\n \"ParentGroupId\": 0,\n \"ProjectId\": 0,\n \"ReceiverInfos\": [\n {\n \"EndTime\": 86400,\n \"NeedSendNotice\": 1,\n \"NotifyWay\": [\n \"EMAIL\",\n \"SMS\"\n ],\n \"PersonInterval\": 60,\n \"ReceiverGroupList\": [\n 1111\n ],\n \"ReceiverType\": \"group\",\n \"ReceiverUserList\": [],\n \"RecoverNotify\": [\n \"SMS\"\n ],\n \"RoundInterval\": 60,\n \"RoundNumber\": 2,\n \"SendFor\": [],\n \"StartTime\": 0,\n \"UidList\": null\n }\n ],\n \"Remark\": \"\",\n \"UpdateTime\": 1577689096,\n \"UseSum\": 0,\n \"ViewName\": \"cvm_device\"\n },\n {\n \"CanSetDefault\": false,\n \"Conditions\": [\n {\n \"AlarmNotifyPeriod\": 0,\n \"AlarmNotifyType\": 0,\n \"CalcType\": 1,\n \"CalcValue\": \"0.85\",\n \"ContinueTime\": 300,\n \"MetricId\": 1220,\n \"MetricShowName\": \"磁盘使用百分比\",\n \"Period\": 60,\n \"RuleId\": 1111113,\n \"Unit\": \"\"\n }\n ],\n \"ConditionsTemp\": null,\n \"EventConditions\": null,\n \"GroupId\": 1111112,\n \"GroupName\": \"默认\",\n \"InsertTime\": 1565792922,\n \"InstanceGroup\": null,\n \"IsDefault\": 1,\n \"IsOpen\": true,\n \"LastEditUin\": \"1500000687\",\n \"NoShieldedSum\": 1,\n \"ParentGroupId\": 0,\n \"ProjectId\": 0,\n \"ReceiverInfos\": null,\n \"Remark\": \"\",\n \"UpdateTime\": 1565792922,\n \"UseSum\": 1,\n \"ViewName\": \"CKAFKA_INSTANCE\"\n }\n ],\n \"RequestId\": \"5fdf1257-6024-4b59-b924-2b995080f0bd\",\n \"Total\": 142,\n \"Warning\": \"This method is deprecated! Use `DescribeAlarmPolicies` instead!\"\n }\n}", + "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePolicyGroupList\n<公共请求参数>\n\n{\n \"Limit\": 2,\n \"Module\": \"monitor\",\n \"Offset\": 0\n}", + "output": "{\n \"Response\": {\n \"GroupList\": [\n {\n \"GroupId\": 0,\n \"GroupName\": \"abc\",\n \"IsOpen\": true,\n \"ViewName\": \"abc\",\n \"LastEditUin\": \"abc\",\n \"UpdateTime\": 0,\n \"InsertTime\": 0,\n \"UseSum\": 0,\n \"NoShieldedSum\": 0,\n \"IsDefault\": 0,\n \"CanSetDefault\": true,\n \"ParentGroupId\": 0,\n \"Remark\": \"abc\",\n \"ProjectId\": 0,\n \"Conditions\": [\n {\n \"MetricShowName\": \"abc\",\n \"Period\": 0,\n \"MetricId\": 0,\n \"RuleId\": 0,\n \"Unit\": \"abc\",\n \"AlarmNotifyType\": 0,\n \"AlarmNotifyPeriod\": 0,\n \"CalcType\": 0,\n \"CalcValue\": \"abc\",\n \"ContinueTime\": 0,\n \"MetricName\": \"abc\"\n }\n ],\n \"EventConditions\": [\n {\n \"EventId\": 0,\n \"RuleId\": 0,\n \"EventShowName\": \"abc\",\n \"AlarmNotifyPeriod\": 0,\n \"AlarmNotifyType\": 0\n }\n ],\n \"ReceiverInfos\": [\n {\n \"ReceiverGroupList\": [\n 0\n ],\n \"ReceiverUserList\": [\n 0\n ],\n \"StartTime\": 0,\n \"EndTime\": 0,\n \"ReceiverType\": \"abc\",\n \"NotifyWay\": [\n \"abc\"\n ],\n \"UidList\": [\n 0\n ],\n \"RoundNumber\": 0,\n \"RoundInterval\": 0,\n \"PersonInterval\": 0,\n \"NeedSendNotice\": 0,\n \"SendFor\": [\n \"abc\"\n ],\n \"RecoverNotify\": [\n \"abc\"\n ],\n \"ReceiveLanguage\": \"abc\"\n }\n ],\n \"ConditionsTemp\": {\n \"GroupId\": 0,\n \"GroupName\": \"abc\",\n \"ViewName\": \"abc\",\n \"Remark\": \"abc\",\n \"LastEditUin\": \"abc\",\n \"UpdateTime\": 0,\n \"InsertTime\": 0,\n \"IsUnionRule\": 0\n },\n \"InstanceGroup\": {\n \"InstanceGroupId\": 0,\n \"ViewName\": \"abc\",\n \"LastEditUin\": \"abc\",\n \"GroupName\": \"abc\",\n \"InstanceSum\": 0,\n \"UpdateTime\": 0,\n \"InsertTime\": 0\n },\n \"IsUnionRule\": 0\n }\n ],\n \"Total\": 0,\n \"Warning\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}", "title": "获取头两个基础策略告警组列表" } ], @@ -1255,7 +1255,7 @@ "UnBindingAllPolicyObject": [ { "document": "", - "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnBindingAllPolicyObject\n<公共请求参数>\n\n{\n \"GroupId\": \"11111\",\n \"Module\": \"monitor\"\n}", + "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnBindingAllPolicyObject\n<公共请求参数>\n\n{\n \"GroupId\": 11111,\n \"Module\": \"monitor\"\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"0dbb66c2-b4d6-4c2c-90a9-617d80347ab5\"\n }\n}", "title": "删除全部的关联对象" } @@ -1263,7 +1263,7 @@ "UnBindingPolicyObject": [ { "document": "", - "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnBindingPolicyObject\n<公共请求参数>\n\n{\n \"UniqueId\": [\n \"3dd5113208fd467b2e5d0c1111111111\"\n ],\n \"GroupId\": \"11111\",\n \"Module\": \"monitor\"\n}", + "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnBindingPolicyObject\n<公共请求参数>\n\n{\n \"UniqueId\": [\n \"3dd5113208fd467b2e5d0c1111111111\"\n ],\n \"GroupId\": 11111,\n \"Module\": \"monitor\"\n}", "output": "{\n \"Response\": {\n \"RequestId\": \"0dbb66c2-1111-1111-1111-11111111111\"\n }\n}", "title": "删除策略的关联对象" } diff --git a/tccli/services/sqlserver/sqlserver_client.py b/tccli/services/sqlserver/sqlserver_client.py index 9d49f07222..cd9d9a1334 100644 --- a/tccli/services/sqlserver/sqlserver_client.py +++ b/tccli/services/sqlserver/sqlserver_client.py @@ -1369,6 +1369,58 @@ def doDescribeDatabases(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) +def doCutXEvents(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + 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): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CutXEventsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CutXEvents(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + def doDescribeReadOnlyGroupList(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -7646,6 +7698,7 @@ def doCreatePublishSubscribe(args, parsed_globals): "DescribeRegularBackupPlan": doDescribeRegularBackupPlan, "DescribePublishSubscribe": doDescribePublishSubscribe, "DescribeDatabases": doDescribeDatabases, + "CutXEvents": doCutXEvents, "DescribeReadOnlyGroupList": doDescribeReadOnlyGroupList, "CreateBusinessDBInstances": doCreateBusinessDBInstances, "DescribeBackupCommand": doDescribeBackupCommand, diff --git a/tccli/services/sqlserver/v20180328/api.json b/tccli/services/sqlserver/v20180328/api.json index 92913649b5..4d39a1483f 100644 --- a/tccli/services/sqlserver/v20180328/api.json +++ b/tccli/services/sqlserver/v20180328/api.json @@ -140,6 +140,13 @@ "output": "CreateReadOnlyDBInstancesResponse", "status": "online" }, + "CutXEvents": { + "document": "本接口(CutXEvents)用于手动切割阻塞日志和死锁日志。", + "input": "CutXEventsRequest", + "name": "手动切割阻塞日志和死锁日志", + "output": "CutXEventsResponse", + "status": "online" + }, "DeleteAccount": { "document": "本接口(DeleteAccount)用于删除实例账号。", "input": "DeleteAccountRequest", @@ -4186,6 +4193,33 @@ ], "usage": "out" }, + "CutXEventsRequest": { + "document": "CutXEvents请求参数结构体", + "members": [ + { + "disabled": false, + "document": "实例ID", + "example": "mssql-8ua7ah", + "member": "string", + "name": "InstanceId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "CutXEventsResponse": { + "document": "CutXEvents返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "DBCreateInfo": { "document": "数据库创建信息", "members": [ diff --git a/tccli/services/sqlserver/v20180328/examples.json b/tccli/services/sqlserver/v20180328/examples.json index f764ba6d6d..b784c0cea3 100644 --- a/tccli/services/sqlserver/v20180328/examples.json +++ b/tccli/services/sqlserver/v20180328/examples.json @@ -160,6 +160,14 @@ "title": "创建只读实例" } ], + "CutXEvents": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: sqlserver.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CutXEvents\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}", + "title": "手动生成阻塞日志" + } + ], "DeleteAccount": [ { "document": "", diff --git a/tccli/services/trtc/v20190722/api.json b/tccli/services/trtc/v20190722/api.json index 9b2a7c1ab8..59d467986d 100644 --- a/tccli/services/trtc/v20190722/api.json +++ b/tccli/services/trtc/v20190722/api.json @@ -5662,8 +5662,8 @@ }, { "disabled": false, - "document": "LLM配置。需符合openai规范,为JSON字符串,示例如下:\n
{\n", - "example": "无", + "document": "LLM配置。需符合openai规范,为JSON字符串,示例如下:\n
\"LLMType\": “大模型类型\", // String 必填,目前固定为\"openai\"
\"Model\": \"您的模型名称\", // String 必填,指定使用的模型
\"APIKey\": \"您的OpenAI API密钥\", // String 必填,相当于环境变量中的OPENAI_API_KEY
\"APIBaseUrl\": \"https://api.openai.com\", // String 必填,OpenAI API的基础URL
\"Streaming\": true // Boolean 非必填,指定是否使用流式传输
}
{\n", + "example": "{\\\"LLMType\\\": \\\"openai\\\", \\\"Model\\\": \\\"gpt-xxx\", \\\"APIKey\\\": \\\"xxxxxxxx\\\", \\\"APIUrl\\\": \\\"https://api.xxx.com/v1\\\", \\\"Streaming\\\": true}", "member": "string", "name": "LLMConfig", "required": false, @@ -5671,8 +5671,8 @@ }, { "disabled": false, - "document": "TTS配置。目前支持腾讯云TTS, 为JSON字符串,示例如下:\n
\"LLMType\": “大模型类型\", // String 必填,如:\"openai\"
\"Model\": \"您的模型名称\", // String 必填,指定使用的模型
\"APIKey\": \"您的LLM API密钥\", // String 必填
\"APIUrl\": \"https://api.xxx.com/chat/completions\", // String 必填,LLM API访问的URL
\"Streaming\": true // Boolean 非必填,指定是否使用流式传输
}
{", - "example": "无", + "document": "TTS配置,为JSON字符串,腾讯云TTS示例如下:\n
\"AppId\": \"您的应用ID\", // String 必填
\"TTSType\": \"TTS类型\", // String TTS类型, 固定为\"tencent\"
\"SercetId\": \"您的密钥ID\", // String 必填
\"SercetKey\": \"您的密钥Key\", // String 必填
\"VoiceType\": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。
\"Speed\": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换
\"Volume\": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。
\"PrimaryLanguage\": \"zh-CN\" // String 非必填,主要语言
}
{", + "example": "{\\\"TTSType\\\": \\\"tencent\\\", \\\"AppId\\\": 136666666, \\\"SecretId\\\": \\\"AKIxxxx\\\", \\\"SecretKey\\\": \\\"Hlxxxxx\\\", \\\"VoiceType\\\": 1008, \\\"Speed\\\": 1}", "member": "string", "name": "TTSConfig", "required": false,
\"AppId\": 您的应用ID, // Integer 必填
\"TTSType\": \"TTS类型\", // String TTS类型, 固定为\"tencent\"
\"SecretId\": \"您的密钥ID\", // String 必填
\"SecretKey\": \"您的密钥Key\", // String 必填
\"VoiceType\": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。
\"Speed\": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换
\"Volume\": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。
\"PrimaryLanguage\": \"zh-CN\" // String 非必填,主要语言
}