tccli 3.0.1291.1__py2.py3-none-any.whl → 3.0.1292.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 (47) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/antiddos/antiddos_client.py +7 -113
  3. tccli/services/antiddos/v20200309/api.json +41 -401
  4. tccli/services/antiddos/v20200309/examples.json +1 -17
  5. tccli/services/apm/v20210622/api.json +44 -44
  6. tccli/services/apm/v20210622/examples.json +5 -5
  7. tccli/services/batch/v20170312/api.json +161 -161
  8. tccli/services/batch/v20170312/examples.json +1 -1
  9. tccli/services/cdwch/v20200915/api.json +303 -219
  10. tccli/services/cdwch/v20200915/examples.json +18 -18
  11. tccli/services/cdwpg/v20201230/api.json +21 -21
  12. tccli/services/cdwpg/v20201230/examples.json +2 -2
  13. tccli/services/ckafka/v20190819/api.json +1015 -1005
  14. tccli/services/cls/v20201016/api.json +112 -112
  15. tccli/services/dbbrain/v20191016/api.json +2 -2
  16. tccli/services/dbbrain/v20210527/api.json +14 -5
  17. tccli/services/emr/v20190103/api.json +249 -13
  18. tccli/services/emr/v20190103/examples.json +2 -2
  19. tccli/services/hunyuan/v20230901/api.json +13 -2
  20. tccli/services/iotexplorer/iotexplorer_client.py +53 -0
  21. tccli/services/iotexplorer/v20190423/api.json +72 -0
  22. tccli/services/iotexplorer/v20190423/examples.json +8 -0
  23. tccli/services/iotvideoindustry/v20201201/api.json +75 -75
  24. tccli/services/iotvideoindustry/v20201201/examples.json +1 -1
  25. tccli/services/lke/lke_client.py +0 -53
  26. tccli/services/lke/v20231130/api.json +0 -43
  27. tccli/services/lke/v20231130/examples.json +0 -8
  28. tccli/services/lkeap/v20240522/api.json +1 -1
  29. tccli/services/memcached/v20190318/api.json +1 -1
  30. tccli/services/monitor/monitor_client.py +57 -4
  31. tccli/services/monitor/v20180724/api.json +249 -0
  32. tccli/services/monitor/v20180724/examples.json +8 -0
  33. tccli/services/redis/v20180412/api.json +2 -2
  34. tccli/services/svp/v20240125/api.json +3 -3
  35. tccli/services/svp/v20240125/examples.json +1 -1
  36. tccli/services/tdmq/v20200217/api.json +266 -266
  37. tccli/services/teo/teo_client.py +53 -0
  38. tccli/services/teo/v20220901/api.json +50 -7
  39. tccli/services/teo/v20220901/examples.json +8 -0
  40. tccli/services/thpc/v20220401/api.json +6 -6
  41. tccli/services/thpc/v20230321/api.json +14 -14
  42. tccli/services/wedata/v20210820/api.json +166 -12
  43. {tccli-3.0.1291.1.dist-info → tccli-3.0.1292.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1291.1.dist-info → tccli-3.0.1292.1.dist-info}/RECORD +47 -47
  45. {tccli-3.0.1291.1.dist-info → tccli-3.0.1292.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1291.1.dist-info → tccli-3.0.1292.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1291.1.dist-info → tccli-3.0.1292.1.dist-info}/license_files/LICENSE +0 -0
@@ -3326,23 +3326,23 @@
3326
3326
  "members": [
3327
3327
  {
3328
3328
  "disabled": false,
3329
- "document": "设备总数\n注意:此字段可能返回 null,表示取不到有效值。",
3329
+ "document": "设备总数",
3330
3330
  "example": "1",
3331
3331
  "member": "int64",
3332
3332
  "name": "TotalCount",
3333
3333
  "output_required": true,
3334
3334
  "type": "int",
3335
- "value_allowed_null": true
3335
+ "value_allowed_null": false
3336
3336
  },
3337
3337
  {
3338
3338
  "disabled": false,
3339
- "document": "设备详细信息列表\n注意:此字段可能返回 null,表示取不到有效值。",
3339
+ "document": "设备详细信息列表",
3340
3340
  "example": "无",
3341
3341
  "member": "AllDeviceInfo",
3342
3342
  "name": "Devices",
3343
3343
  "output_required": true,
3344
3344
  "type": "list",
3345
- "value_allowed_null": true
3345
+ "value_allowed_null": false
3346
3346
  },
3347
3347
  {
3348
3348
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -3925,23 +3925,23 @@
3925
3925
  "members": [
3926
3926
  {
3927
3927
  "disabled": false,
3928
- "document": "频道总数\n注意:此字段可能返回 null,表示取不到有效值。",
3928
+ "document": "频道总数",
3929
3929
  "example": "20",
3930
3930
  "member": "int64",
3931
3931
  "name": "Total",
3932
3932
  "output_required": true,
3933
3933
  "type": "int",
3934
- "value_allowed_null": true
3934
+ "value_allowed_null": false
3935
3935
  },
3936
3936
  {
3937
3937
  "disabled": false,
3938
- "document": "频道信息数组\n注意:此字段可能返回 null,表示取不到有效值。",
3938
+ "document": "频道信息数组",
3939
3939
  "example": "无",
3940
3940
  "member": "LiveChannelInfo",
3941
3941
  "name": "LiveChannels",
3942
3942
  "output_required": true,
3943
3943
  "type": "list",
3944
- "value_allowed_null": true
3944
+ "value_allowed_null": false
3945
3945
  },
3946
3946
  {
3947
3947
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -4531,23 +4531,23 @@
4531
4531
  "members": [
4532
4532
  {
4533
4533
  "disabled": false,
4534
- "document": "配置总数\n注意:此字段可能返回 null,表示取不到有效值。",
4534
+ "document": "配置总数",
4535
4535
  "example": "100",
4536
4536
  "member": "int64",
4537
4537
  "name": "Total",
4538
- "required": true,
4538
+ "output_required": true,
4539
4539
  "type": "int",
4540
- "value_allowed_null": true
4540
+ "value_allowed_null": false
4541
4541
  },
4542
4542
  {
4543
4543
  "disabled": false,
4544
- "document": "配置列表\n注意:此字段可能返回 null,表示取不到有效值。",
4545
- "example": "[]",
4544
+ "document": "配置列表",
4545
+ "example": "[a,b]",
4546
4546
  "member": "MessageForward",
4547
4547
  "name": "List",
4548
- "required": true,
4548
+ "output_required": true,
4549
4549
  "type": "list",
4550
- "value_allowed_null": true
4550
+ "value_allowed_null": false
4551
4551
  },
4552
4552
  {
4553
4553
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -6040,23 +6040,23 @@
6040
6040
  "members": [
6041
6041
  {
6042
6042
  "disabled": false,
6043
- "document": "统计值\n注意:此字段可能返回 null,表示取不到有效值。",
6043
+ "document": "统计值",
6044
6044
  "example": "2",
6045
6045
  "member": "float",
6046
6046
  "name": "Value",
6047
- "required": true,
6047
+ "output_required": true,
6048
6048
  "type": "float",
6049
- "value_allowed_null": true
6049
+ "value_allowed_null": false
6050
6050
  },
6051
6051
  {
6052
6052
  "disabled": false,
6053
- "document": "统计时间\n注意:此字段可能返回 null,表示取不到有效值。",
6053
+ "document": "统计时间",
6054
6054
  "example": "1624204800",
6055
6055
  "member": "int64",
6056
6056
  "name": "Time",
6057
- "required": true,
6057
+ "output_required": true,
6058
6058
  "type": "int",
6059
- "value_allowed_null": true
6059
+ "value_allowed_null": false
6060
6060
  }
6061
6061
  ],
6062
6062
  "usage": "out"
@@ -6913,73 +6913,73 @@
6913
6913
  "members": [
6914
6914
  {
6915
6915
  "disabled": false,
6916
- "document": "频道ID\n注意:此字段可能返回 null,表示取不到有效值。",
6916
+ "document": "频道ID",
6917
6917
  "example": "cea6f74f29164253b43411fd888f4dc3",
6918
6918
  "member": "string",
6919
6919
  "name": "LiveChannelId",
6920
- "required": true,
6920
+ "output_required": true,
6921
6921
  "type": "string",
6922
- "value_allowed_null": true
6922
+ "value_allowed_null": false
6923
6923
  },
6924
6924
  {
6925
6925
  "disabled": false,
6926
- "document": "频道名称\n注意:此字段可能返回 null,表示取不到有效值。",
6926
+ "document": "频道名称",
6927
6927
  "example": "001",
6928
6928
  "member": "string",
6929
6929
  "name": "LiveChannelName",
6930
- "required": true,
6930
+ "output_required": true,
6931
6931
  "type": "string",
6932
- "value_allowed_null": true
6932
+ "value_allowed_null": false
6933
6933
  },
6934
6934
  {
6935
6935
  "disabled": false,
6936
- "document": "频道类型\n注意:此字段可能返回 null,表示取不到有效值。",
6936
+ "document": "频道类型",
6937
6937
  "example": "1",
6938
6938
  "member": "int64",
6939
6939
  "name": "LiveChannelType",
6940
- "required": true,
6940
+ "output_required": true,
6941
6941
  "type": "int",
6942
- "value_allowed_null": true
6942
+ "value_allowed_null": false
6943
6943
  },
6944
6944
  {
6945
6945
  "disabled": false,
6946
- "document": "通道直播状态:1: 未推流,2: 推流中\n注意:此字段可能返回 null,表示取不到有效值。",
6946
+ "document": "通道直播状态:1: 未推流,2: 推流中",
6947
6947
  "example": "1",
6948
6948
  "member": "int64",
6949
6949
  "name": "LiveStatus",
6950
- "required": true,
6950
+ "output_required": true,
6951
6951
  "type": "int",
6952
- "value_allowed_null": true
6952
+ "value_allowed_null": false
6953
6953
  },
6954
6954
  {
6955
6955
  "disabled": false,
6956
- "document": "推流地址\n注意:此字段可能返回 null,表示取不到有效值。",
6956
+ "document": "推流地址",
6957
6957
  "example": "rtmp://:0/liveFixed/cea6f74f29164253b43411fd888f4dc3",
6958
6958
  "member": "string",
6959
6959
  "name": "PushStreamAddress",
6960
- "required": true,
6960
+ "output_required": true,
6961
6961
  "type": "string",
6962
- "value_allowed_null": true
6962
+ "value_allowed_null": false
6963
6963
  },
6964
6964
  {
6965
6965
  "disabled": false,
6966
- "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
6966
+ "document": "创建时间",
6967
6967
  "example": "2021-11-08 19:26:16",
6968
6968
  "member": "string",
6969
6969
  "name": "CreateTime",
6970
- "required": true,
6970
+ "output_required": true,
6971
6971
  "type": "string",
6972
- "value_allowed_null": true
6972
+ "value_allowed_null": false
6973
6973
  },
6974
6974
  {
6975
6975
  "disabled": false,
6976
- "document": "修改时间\n注意:此字段可能返回 null,表示取不到有效值。",
6976
+ "document": "修改时间",
6977
6977
  "example": "2021-11-08 19:26:16",
6978
6978
  "member": "string",
6979
6979
  "name": "UpdateTime",
6980
- "required": true,
6980
+ "output_required": true,
6981
6981
  "type": "string",
6982
- "value_allowed_null": true
6982
+ "value_allowed_null": false
6983
6983
  }
6984
6984
  ],
6985
6985
  "usage": "out"
@@ -7137,113 +7137,113 @@
7137
7137
  "members": [
7138
7138
  {
7139
7139
  "disabled": false,
7140
- "document": "配置ID\n注意:此字段可能返回 null,表示取不到有效值。",
7140
+ "document": "配置ID",
7141
7141
  "example": "124354",
7142
7142
  "member": "int64",
7143
7143
  "name": "IntId",
7144
- "required": true,
7144
+ "output_required": true,
7145
7145
  "type": "int",
7146
- "value_allowed_null": true
7146
+ "value_allowed_null": false
7147
7147
  },
7148
7148
  {
7149
7149
  "disabled": false,
7150
- "document": "用户Uin\n注意:此字段可能返回 null,表示取不到有效值。",
7150
+ "document": "用户Uin",
7151
7151
  "example": "1624204800",
7152
7152
  "member": "string",
7153
7153
  "name": "Uin",
7154
- "required": true,
7154
+ "output_required": true,
7155
7155
  "type": "string",
7156
- "value_allowed_null": true
7156
+ "value_allowed_null": false
7157
7157
  },
7158
7158
  {
7159
7159
  "disabled": false,
7160
- "document": "json数组, 转发类型 1: 告警 2:GPS\n注意:此字段可能返回 null,表示取不到有效值。",
7160
+ "document": "json数组, 转发类型 1: 告警 2:GPS",
7161
7161
  "example": "[1,2]",
7162
7162
  "member": "string",
7163
7163
  "name": "MessageType",
7164
- "required": true,
7164
+ "output_required": true,
7165
7165
  "type": "string",
7166
- "value_allowed_null": true
7166
+ "value_allowed_null": false
7167
7167
  },
7168
7168
  {
7169
7169
  "disabled": false,
7170
- "document": "区域ID\n注意:此字段可能返回 null,表示取不到有效值。",
7170
+ "document": "区域ID",
7171
7171
  "example": "gz",
7172
7172
  "member": "string",
7173
7173
  "name": "RegionId",
7174
- "required": true,
7174
+ "output_required": true,
7175
7175
  "type": "string",
7176
- "value_allowed_null": true
7176
+ "value_allowed_null": false
7177
7177
  },
7178
7178
  {
7179
7179
  "disabled": false,
7180
- "document": "区域名称\n注意:此字段可能返回 null,表示取不到有效值。",
7180
+ "document": "区域名称",
7181
7181
  "example": "广州",
7182
7182
  "member": "string",
7183
7183
  "name": "RegionName",
7184
- "required": true,
7184
+ "output_required": true,
7185
7185
  "type": "string",
7186
- "value_allowed_null": true
7186
+ "value_allowed_null": false
7187
7187
  },
7188
7188
  {
7189
7189
  "disabled": false,
7190
- "document": "实例ID\n注意:此字段可能返回 null,表示取不到有效值。",
7190
+ "document": "实例ID",
7191
7191
  "example": "kafka_instance",
7192
7192
  "member": "string",
7193
7193
  "name": "Instance",
7194
- "required": true,
7194
+ "output_required": true,
7195
7195
  "type": "string",
7196
- "value_allowed_null": true
7196
+ "value_allowed_null": false
7197
7197
  },
7198
7198
  {
7199
7199
  "disabled": false,
7200
- "document": "实例名称\n注意:此字段可能返回 null,表示取不到有效值。",
7200
+ "document": "实例名称",
7201
7201
  "example": "实例名称",
7202
7202
  "member": "string",
7203
7203
  "name": "InstanceName",
7204
- "required": true,
7204
+ "output_required": true,
7205
7205
  "type": "string",
7206
- "value_allowed_null": true
7206
+ "value_allowed_null": false
7207
7207
  },
7208
7208
  {
7209
7209
  "disabled": false,
7210
- "document": "kafka topic id\n注意:此字段可能返回 null,表示取不到有效值。",
7210
+ "document": "kafka topic id",
7211
7211
  "example": "topic1",
7212
7212
  "member": "string",
7213
7213
  "name": "TopicId",
7214
- "required": true,
7214
+ "output_required": true,
7215
7215
  "type": "string",
7216
- "value_allowed_null": true
7216
+ "value_allowed_null": false
7217
7217
  },
7218
7218
  {
7219
7219
  "disabled": false,
7220
- "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
7220
+ "document": "创建时间",
7221
7221
  "example": "2021-09-30T17:26:47+08:00",
7222
7222
  "member": "string",
7223
7223
  "name": "CreateTime",
7224
- "required": true,
7224
+ "output_required": true,
7225
7225
  "type": "string",
7226
- "value_allowed_null": true
7226
+ "value_allowed_null": false
7227
7227
  },
7228
7228
  {
7229
7229
  "disabled": false,
7230
- "document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。",
7230
+ "document": "更新时间",
7231
7231
  "example": "2021-09-30T17:26:47+08:00",
7232
7232
  "member": "string",
7233
7233
  "name": "UpdateTime",
7234
- "required": true,
7234
+ "output_required": true,
7235
7235
  "type": "string",
7236
- "value_allowed_null": true
7236
+ "value_allowed_null": false
7237
7237
  },
7238
7238
  {
7239
7239
  "disabled": false,
7240
- "document": "topic 名称\n注意:此字段可能返回 null,表示取不到有效值。",
7240
+ "document": "topic 名称",
7241
7241
  "example": "topic-kafka",
7242
7242
  "member": "string",
7243
7243
  "name": "TopicName",
7244
- "required": true,
7244
+ "output_required": true,
7245
7245
  "type": "string",
7246
- "value_allowed_null": true
7246
+ "value_allowed_null": false
7247
7247
  }
7248
7248
  ],
7249
7249
  "usage": "out"
@@ -474,7 +474,7 @@
474
474
  {
475
475
  "document": "",
476
476
  "input": "POST / HTTP/1.1\nHost: iotvideoindustry.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMessageForwards\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10\n}",
477
- "output": "{\n \"Response\": {\n \"List\": [\n {\n \"IntId\": 1,\n \"Uin\": \"admin\",\n \"MessageType\": \"[1]\",\n \"RegionName\": \"广州\",\n \"Instance\": \"ckafka\",\n \"InstanceName\": \"卡夫卡\",\n \"TopicId\": \"topic\",\n \"TopicName\": \"topicname\",\n \"CreateTime\": \"2021-09-30T17:26:47+08:00\",\n \"UpdateTime\": \"2021-09-30T17:26:47+08:00\"\n }\n ],\n \"RequestId\": \"1d7a62c9-db36-4a5f-9209-2e420883e28f\",\n \"Total\": 1\n }\n}",
477
+ "output": "{\n \"Response\": {\n \"List\": [\n {\n \"IntId\": 1,\n \"Uin\": \"admin\",\n \"MessageType\": \"[1]\",\n \"RegionId\": \"gz\",\n \"RegionName\": \"广州\",\n \"Instance\": \"ckafka\",\n \"InstanceName\": \"卡夫卡\",\n \"TopicId\": \"topic\",\n \"TopicName\": \"topicname\",\n \"CreateTime\": \"2021-09-30T17:26:47+08:00\",\n \"UpdateTime\": \"2021-09-30T17:26:47+08:00\"\n }\n ],\n \"RequestId\": \"1d7a62c9-db36-4a5f-9209-2e420883e28f\",\n \"Total\": 1\n }\n}",
478
478
  "title": "查看消息转发配置列表"
479
479
  }
480
480
  ],
@@ -5009,58 +5009,6 @@ def doReconstructDocument(args, parsed_globals):
5009
5009
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5010
5010
 
5011
5011
 
5012
- def doResetSession(args, parsed_globals):
5013
- g_param = parse_global_arg(parsed_globals)
5014
-
5015
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5016
- cred = credential.CVMRoleCredential()
5017
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5018
- cred = credential.STSAssumeRoleCredential(
5019
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5020
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5021
- )
5022
- 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):
5023
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5024
- else:
5025
- cred = credential.Credential(
5026
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5027
- )
5028
- http_profile = HttpProfile(
5029
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5030
- reqMethod="POST",
5031
- endpoint=g_param[OptionsDefine.Endpoint],
5032
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5033
- )
5034
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5035
- if g_param[OptionsDefine.Language]:
5036
- profile.language = g_param[OptionsDefine.Language]
5037
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5038
- client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
5039
- client._sdkVersion += ("_CLI_" + __version__)
5040
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
5041
- model = models.ResetSessionRequest()
5042
- model.from_json_string(json.dumps(args))
5043
- start_time = time.time()
5044
- while True:
5045
- rsp = client.ResetSession(model)
5046
- result = rsp.to_json_string()
5047
- try:
5048
- json_obj = json.loads(result)
5049
- except TypeError as e:
5050
- json_obj = json.loads(result.decode('utf-8')) # python3.3
5051
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5052
- break
5053
- cur_time = time.time()
5054
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5055
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5056
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5057
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5058
- else:
5059
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5060
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5061
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5062
-
5063
-
5064
5012
  def doListAppKnowledgeDetail(args, parsed_globals):
5065
5013
  g_param = parse_global_arg(parsed_globals)
5066
5014
 
@@ -5272,7 +5220,6 @@ ACTION_MAP = {
5272
5220
  "DescribeSegments": doDescribeSegments,
5273
5221
  "GetTaskStatus": doGetTaskStatus,
5274
5222
  "ReconstructDocument": doReconstructDocument,
5275
- "ResetSession": doResetSession,
5276
5223
  "ListAppKnowledgeDetail": doListAppKnowledgeDetail,
5277
5224
  "StopDocParse": doStopDocParse,
5278
5225
 
@@ -630,13 +630,6 @@
630
630
  "output": "RenameDocResponse",
631
631
  "status": "online"
632
632
  },
633
- "ResetSession": {
634
- "document": "重置会话",
635
- "input": "ResetSessionRequest",
636
- "name": "重置会话",
637
- "output": "ResetSessionResponse",
638
- "status": "online"
639
- },
640
633
  "RetryDocAudit": {
641
634
  "document": "文档解析重试",
642
635
  "input": "RetryDocAuditRequest",
@@ -13318,42 +13311,6 @@
13318
13311
  ],
13319
13312
  "type": "object"
13320
13313
  },
13321
- "ResetSessionRequest": {
13322
- "document": "ResetSession请求参数结构体",
13323
- "members": [
13324
- {
13325
- "disabled": false,
13326
- "document": "会话ID",
13327
- "example": "无",
13328
- "member": "string",
13329
- "name": "SessionId",
13330
- "required": true,
13331
- "type": "string"
13332
- },
13333
- {
13334
- "disabled": false,
13335
- "document": "是否仅清空会话关联",
13336
- "example": "无",
13337
- "member": "bool",
13338
- "name": "IsOnlyEmptyTheDialog",
13339
- "required": false,
13340
- "type": "bool"
13341
- }
13342
- ],
13343
- "type": "object"
13344
- },
13345
- "ResetSessionResponse": {
13346
- "document": "ResetSession返回参数结构体",
13347
- "members": [
13348
- {
13349
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
13350
- "member": "string",
13351
- "name": "RequestId",
13352
- "type": "string"
13353
- }
13354
- ],
13355
- "type": "object"
13356
- },
13357
13314
  "RetryDocAuditRequest": {
13358
13315
  "document": "RetryDocAudit请求参数结构体",
13359
13316
  "members": [
@@ -732,14 +732,6 @@
732
732
  "title": "重命名文档-提交成功"
733
733
  }
734
734
  ],
735
- "ResetSession": [
736
- {
737
- "document": "",
738
- "input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResetSession\n<公共请求参数>\n\n{\n \"SessionId\": \"your session id\"\n}",
739
- "output": "{\n \"Response\": {\n \"RequestId\": \"76ad8e10-2e25-4702-8b15-1dbbe4ee2c3b\"\n }\n}",
740
- "title": "重置会话"
741
- }
742
- ],
743
735
  "RetryDocAudit": [
744
736
  {
745
737
  "document": "文档审核重试",
@@ -15,7 +15,7 @@
15
15
  "status": "online"
16
16
  },
17
17
  "CreateKnowledgeBase": {
18
- "document": "用于在系统中创建一个新的知识库。知识库是一个用于存储和管理知识条目的集合,可以包括文档、问答对、属性标签等。创建知识库后,可以向其中添加各种知识条目,以便在后续的知识检索中使用。 使用场景:当需要在系统中建立一个新的知识库以存储和管理特定领域或项目的知识条目时使用。例如,一个用户可能需要创建一个知识库,以存储用户指南、常见问题解答和技术文档。",
18
+ "document": "用于在系统中创建一个新的知识库。知识库是一个用于存储和管理知识条目的集合,可以包括文档、问答对、属性标签等。创建知识库后,可以向其中添加各种知识条目,以便在后续的知识检索中使用。 使用场景:当需要在系统中建立一个新的知识库以存储和管理特定领域或项目的知识条目时使用。例如,一个用户可能需要创建一个知识库,以存储用户指南、常见问题解答和技术文档。体验用户最多可创建3个知识库,付费用户最多可创建100个知识库。",
19
19
  "input": "CreateKnowledgeBaseRequest",
20
20
  "name": "创建知识库",
21
21
  "output": "CreateKnowledgeBaseResponse",
@@ -245,7 +245,7 @@
245
245
  },
246
246
  {
247
247
  "disabled": false,
248
- "document": "地域id 1--广州 4--上海 5-- 香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 21--印度 22--美东(弗吉尼亚)23--泰国 25--日本",
248
+ "document": "地域id1--广州 4--上海 5-- 香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 22--美东(弗吉尼亚)23--泰国 25--日本",
249
249
  "example": "1",
250
250
  "member": "int64",
251
251
  "name": "RegionId",
@@ -2515,7 +2515,7 @@ def doDescribePolicyConditionList(args, parsed_globals):
2515
2515
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2516
2516
 
2517
2517
 
2518
- def doModifyAlarmPolicyCondition(args, parsed_globals):
2518
+ def doCreateConditionsTemplate(args, parsed_globals):
2519
2519
  g_param = parse_global_arg(parsed_globals)
2520
2520
 
2521
2521
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2544,11 +2544,11 @@ def doModifyAlarmPolicyCondition(args, parsed_globals):
2544
2544
  client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
2545
2545
  client._sdkVersion += ("_CLI_" + __version__)
2546
2546
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2547
- model = models.ModifyAlarmPolicyConditionRequest()
2547
+ model = models.CreateConditionsTemplateRequest()
2548
2548
  model.from_json_string(json.dumps(args))
2549
2549
  start_time = time.time()
2550
2550
  while True:
2551
- rsp = client.ModifyAlarmPolicyCondition(model)
2551
+ rsp = client.CreateConditionsTemplate(model)
2552
2552
  result = rsp.to_json_string()
2553
2553
  try:
2554
2554
  json_obj = json.loads(result)
@@ -7559,6 +7559,58 @@ def doDescribeStatisticData(args, parsed_globals):
7559
7559
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7560
7560
 
7561
7561
 
7562
+ def doModifyAlarmPolicyCondition(args, parsed_globals):
7563
+ g_param = parse_global_arg(parsed_globals)
7564
+
7565
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7566
+ cred = credential.CVMRoleCredential()
7567
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7568
+ cred = credential.STSAssumeRoleCredential(
7569
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7570
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7571
+ )
7572
+ 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):
7573
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7574
+ else:
7575
+ cred = credential.Credential(
7576
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7577
+ )
7578
+ http_profile = HttpProfile(
7579
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7580
+ reqMethod="POST",
7581
+ endpoint=g_param[OptionsDefine.Endpoint],
7582
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7583
+ )
7584
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7585
+ if g_param[OptionsDefine.Language]:
7586
+ profile.language = g_param[OptionsDefine.Language]
7587
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7588
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
7589
+ client._sdkVersion += ("_CLI_" + __version__)
7590
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7591
+ model = models.ModifyAlarmPolicyConditionRequest()
7592
+ model.from_json_string(json.dumps(args))
7593
+ start_time = time.time()
7594
+ while True:
7595
+ rsp = client.ModifyAlarmPolicyCondition(model)
7596
+ result = rsp.to_json_string()
7597
+ try:
7598
+ json_obj = json.loads(result)
7599
+ except TypeError as e:
7600
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7601
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7602
+ break
7603
+ cur_time = time.time()
7604
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7605
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7606
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7607
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7608
+ else:
7609
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7610
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7611
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7612
+
7613
+
7562
7614
  def doBindingPolicyTag(args, parsed_globals):
7563
7615
  g_param = parse_global_arg(parsed_globals)
7564
7616
 
@@ -8400,7 +8452,7 @@ ACTION_MAP = {
8400
8452
  "CreatePrometheusMultiTenantInstancePostPayMode": doCreatePrometheusMultiTenantInstancePostPayMode,
8401
8453
  "UpdateGrafanaEnvironments": doUpdateGrafanaEnvironments,
8402
8454
  "DescribePolicyConditionList": doDescribePolicyConditionList,
8403
- "ModifyAlarmPolicyCondition": doModifyAlarmPolicyCondition,
8455
+ "CreateConditionsTemplate": doCreateConditionsTemplate,
8404
8456
  "GetPrometheusAgentManagementCommand": doGetPrometheusAgentManagementCommand,
8405
8457
  "DescribePrometheusAgents": doDescribePrometheusAgents,
8406
8458
  "UpdatePrometheusScrapeJob": doUpdatePrometheusScrapeJob,
@@ -8497,6 +8549,7 @@ ACTION_MAP = {
8497
8549
  "DescribeAllNamespaces": doDescribeAllNamespaces,
8498
8550
  "CreateServiceDiscovery": doCreateServiceDiscovery,
8499
8551
  "DescribeStatisticData": doDescribeStatisticData,
8552
+ "ModifyAlarmPolicyCondition": doModifyAlarmPolicyCondition,
8500
8553
  "BindingPolicyTag": doBindingPolicyTag,
8501
8554
  "DescribeAlarmNoticeCallbacks": doDescribeAlarmNoticeCallbacks,
8502
8555
  "DestroyPrometheusInstance": doDestroyPrometheusInstance,