tccli 3.0.1198.1__py2.py3-none-any.whl → 3.0.1199.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 (40) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ccc/ccc_client.py +57 -4
  3. tccli/services/ccc/v20200210/api.json +188 -0
  4. tccli/services/ccc/v20200210/examples.json +8 -0
  5. tccli/services/clb/v20180317/api.json +19 -1
  6. tccli/services/cme/v20191029/api.json +18 -8
  7. tccli/services/cynosdb/cynosdb_client.py +0 -53
  8. tccli/services/cynosdb/v20190107/api.json +0 -92
  9. tccli/services/cynosdb/v20190107/examples.json +0 -8
  10. tccli/services/emr/v20190103/api.json +4 -4
  11. tccli/services/faceid/v20180301/api.json +9 -0
  12. tccli/services/iecp/iecp_client.py +298 -1358
  13. tccli/services/iecp/v20210914/api.json +216 -2256
  14. tccli/services/iecp/v20210914/examples.json +0 -166
  15. tccli/services/ims/v20201229/api.json +9 -9
  16. tccli/services/ims/v20201229/examples.json +2 -2
  17. tccli/services/monitor/monitor_client.py +8 -114
  18. tccli/services/monitor/v20180724/api.json +0 -85
  19. tccli/services/monitor/v20180724/examples.json +0 -16
  20. tccli/services/ocr/v20181119/api.json +3 -3
  21. tccli/services/postgres/postgres_client.py +53 -0
  22. tccli/services/postgres/v20170312/api.json +191 -0
  23. tccli/services/postgres/v20170312/examples.json +16 -2
  24. tccli/services/rce/v20201103/api.json +17 -8
  25. tccli/services/tcss/v20201101/api.json +199 -3
  26. tccli/services/tcss/v20201101/examples.json +5 -5
  27. tccli/services/teo/v20220901/api.json +50 -0
  28. tccli/services/tke/v20180525/api.json +9 -9
  29. tccli/services/tke/v20220501/api.json +5 -5
  30. tccli/services/tse/v20201207/api.json +22 -0
  31. tccli/services/tsf/tsf_client.py +4 -57
  32. tccli/services/tsf/v20180326/api.json +0 -34
  33. tccli/services/tsf/v20180326/examples.json +0 -8
  34. tccli/services/vpc/v20170312/examples.json +6 -0
  35. tccli/services/wedata/v20210820/api.json +11 -0
  36. {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/METADATA +2 -2
  37. {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/RECORD +40 -40
  38. {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/WHEEL +0 -0
  39. {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/entry_points.txt +0 -0
  40. {tccli-3.0.1198.1.dist-info → tccli-3.0.1199.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1198.1'
1
+ __version__ = '3.0.1199.1'
@@ -225,7 +225,7 @@ def doDescribeAutoCalloutTasks(args, parsed_globals):
225
225
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
226
 
227
227
 
228
- def doDescribeStaffInfoList(args, parsed_globals):
228
+ def doCreateAICall(args, parsed_globals):
229
229
  g_param = parse_global_arg(parsed_globals)
230
230
 
231
231
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +254,11 @@ def doDescribeStaffInfoList(args, parsed_globals):
254
254
  client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
255
255
  client._sdkVersion += ("_CLI_" + __version__)
256
256
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.DescribeStaffInfoListRequest()
257
+ model = models.CreateAICallRequest()
258
258
  model.from_json_string(json.dumps(args))
259
259
  start_time = time.time()
260
260
  while True:
261
- rsp = client.DescribeStaffInfoList(model)
261
+ rsp = client.CreateAICall(model)
262
262
  result = rsp.to_json_string()
263
263
  try:
264
264
  json_obj = json.loads(result)
@@ -1941,6 +1941,58 @@ def doModifyStaffPassword(args, parsed_globals):
1941
1941
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
1942
 
1943
1943
 
1944
+ def doDescribeStaffInfoList(args, parsed_globals):
1945
+ g_param = parse_global_arg(parsed_globals)
1946
+
1947
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1948
+ cred = credential.CVMRoleCredential()
1949
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1950
+ cred = credential.STSAssumeRoleCredential(
1951
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1952
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1953
+ )
1954
+ 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):
1955
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1956
+ else:
1957
+ cred = credential.Credential(
1958
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1959
+ )
1960
+ http_profile = HttpProfile(
1961
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1962
+ reqMethod="POST",
1963
+ endpoint=g_param[OptionsDefine.Endpoint],
1964
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1965
+ )
1966
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1967
+ if g_param[OptionsDefine.Language]:
1968
+ profile.language = g_param[OptionsDefine.Language]
1969
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1970
+ client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
1971
+ client._sdkVersion += ("_CLI_" + __version__)
1972
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1973
+ model = models.DescribeStaffInfoListRequest()
1974
+ model.from_json_string(json.dumps(args))
1975
+ start_time = time.time()
1976
+ while True:
1977
+ rsp = client.DescribeStaffInfoList(model)
1978
+ result = rsp.to_json_string()
1979
+ try:
1980
+ json_obj = json.loads(result)
1981
+ except TypeError as e:
1982
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1983
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1984
+ break
1985
+ cur_time = time.time()
1986
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1987
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1988
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1989
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1990
+ else:
1991
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1992
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1993
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1994
+
1995
+
1944
1996
  def doDisableCCCPhoneNumber(args, parsed_globals):
1945
1997
  g_param = parse_global_arg(parsed_globals)
1946
1998
 
@@ -3048,7 +3100,7 @@ ACTION_MAP = {
3048
3100
  "UnbindNumberCallOutSkillGroup": doUnbindNumberCallOutSkillGroup,
3049
3101
  "DescribeExtensions": doDescribeExtensions,
3050
3102
  "DescribeAutoCalloutTasks": doDescribeAutoCalloutTasks,
3051
- "DescribeStaffInfoList": doDescribeStaffInfoList,
3103
+ "CreateAICall": doCreateAICall,
3052
3104
  "DescribePredictiveDialingCampaign": doDescribePredictiveDialingCampaign,
3053
3105
  "DescribePSTNActiveSessionList": doDescribePSTNActiveSessionList,
3054
3106
  "DeleteExtension": doDeleteExtension,
@@ -3081,6 +3133,7 @@ ACTION_MAP = {
3081
3133
  "CreateCCCSkillGroup": doCreateCCCSkillGroup,
3082
3134
  "UnbindStaffSkillGroupList": doUnbindStaffSkillGroupList,
3083
3135
  "ModifyStaffPassword": doModifyStaffPassword,
3136
+ "DescribeStaffInfoList": doDescribeStaffInfoList,
3084
3137
  "DisableCCCPhoneNumber": doDisableCCCPhoneNumber,
3085
3138
  "DescribeStaffStatusMetrics": doDescribeStaffStatusMetrics,
3086
3139
  "DescribeTelCallInfo": doDescribeTelCallInfo,
@@ -21,6 +21,13 @@
21
21
  "output": "BindStaffSkillGroupListResponse",
22
22
  "status": "online"
23
23
  },
24
+ "CreateAICall": {
25
+ "document": "创建ai外呼会话(仅支持高级版座席)",
26
+ "input": "CreateAICallRequest",
27
+ "name": "创建ai会话",
28
+ "output": "CreateAICallResponse",
29
+ "status": "online"
30
+ },
24
31
  "CreateAdminURL": {
25
32
  "document": "创建管理端访问链接",
26
33
  "input": "CreateAdminURLRequest",
@@ -1423,6 +1430,187 @@
1423
1430
  ],
1424
1431
  "usage": "both"
1425
1432
  },
1433
+ "CreateAICallRequest": {
1434
+ "document": "CreateAICall请求参数结构体",
1435
+ "members": [
1436
+ {
1437
+ "disabled": false,
1438
+ "document": "应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc",
1439
+ "example": "1400000000",
1440
+ "member": "int64",
1441
+ "name": "SdkAppId",
1442
+ "required": true,
1443
+ "type": "int"
1444
+ },
1445
+ {
1446
+ "disabled": false,
1447
+ "document": "被叫",
1448
+ "example": "+8613012345678",
1449
+ "member": "string",
1450
+ "name": "Callee",
1451
+ "required": true,
1452
+ "type": "string"
1453
+ },
1454
+ {
1455
+ "disabled": false,
1456
+ "document": "用于设定AI座席人设、说话规则、任务等的全局提示词。",
1457
+ "example": "你是一只ai问答机器人",
1458
+ "member": "string",
1459
+ "name": "SystemPrompt",
1460
+ "required": true,
1461
+ "type": "string"
1462
+ },
1463
+ {
1464
+ "disabled": false,
1465
+ "document": "LLM类型",
1466
+ "example": "openai",
1467
+ "member": "string",
1468
+ "name": "LLMType",
1469
+ "required": true,
1470
+ "type": "string"
1471
+ },
1472
+ {
1473
+ "disabled": false,
1474
+ "document": "模型(当前仅支持openai协议的模型)",
1475
+ "example": "gpt3",
1476
+ "member": "string",
1477
+ "name": "Model",
1478
+ "required": true,
1479
+ "type": "string"
1480
+ },
1481
+ {
1482
+ "disabled": false,
1483
+ "document": "API密钥",
1484
+ "example": "114514",
1485
+ "member": "string",
1486
+ "name": "APIKey",
1487
+ "required": true,
1488
+ "type": "string"
1489
+ },
1490
+ {
1491
+ "disabled": false,
1492
+ "document": "API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completions",
1493
+ "example": "http://xxx.com/openapi/v1",
1494
+ "member": "string",
1495
+ "name": "APIUrl",
1496
+ "required": true,
1497
+ "type": "string"
1498
+ },
1499
+ {
1500
+ "disabled": false,
1501
+ "document": "音色,目前仅支持以下音色:\n汉语:\nZhiMei:智美,客服女声\nZhiXi: 智希 通用女声\nZhiQi:智琪 客服女声\nZhiTian:智甜 女童声\nAiXiaoJing:爱小静 对话女声\n\n英语:\nWeRose:英文女声\nMonika:英文女声\n\n日语:\nNanami\n\n韩语:\nSunHi\n\n印度尼西亚语(印度尼西亚):\nGadis\n\n马来语(马来西亚):\nYasmin\n\n 泰米尔语(马来西亚):\nKani\n\n泰语(泰国):\nAchara\n\n越南语(越南):\nHoaiMy\n\n",
1502
+ "example": "ZhiMei",
1503
+ "member": "string",
1504
+ "name": "VoiceType",
1505
+ "required": true,
1506
+ "type": "string"
1507
+ },
1508
+ {
1509
+ "disabled": false,
1510
+ "document": "主叫号码列表",
1511
+ "example": "无",
1512
+ "member": "string",
1513
+ "name": "Callers",
1514
+ "required": false,
1515
+ "type": "list"
1516
+ },
1517
+ {
1518
+ "disabled": false,
1519
+ "document": "用于设定AI座席欢迎语。",
1520
+ "example": "你好",
1521
+ "member": "string",
1522
+ "name": "WelcomeMessage",
1523
+ "required": false,
1524
+ "type": "string"
1525
+ },
1526
+ {
1527
+ "disabled": false,
1528
+ "document": "0:使用welcomeMessage(为空时,被叫先说话;不为空时,机器人先说话)\n1: 使用ai根据prompt自动生成welcomeMessage并先说话",
1529
+ "example": "0,1",
1530
+ "member": "int64",
1531
+ "name": "WelcomeType",
1532
+ "required": false,
1533
+ "type": "int"
1534
+ },
1535
+ {
1536
+ "disabled": false,
1537
+ "document": "最大等待时长(毫秒),默认60秒,超过这个时间用户没说话,自动挂断",
1538
+ "example": "60000",
1539
+ "member": "int64",
1540
+ "name": "MaxDuration",
1541
+ "required": false,
1542
+ "type": "int"
1543
+ },
1544
+ {
1545
+ "disabled": false,
1546
+ "document": "语音识别支持的语言, 默认是\"zh\" 中文,\n填写数组,最长4个语言,第一个语言为主要识别语言,后面为可选语言,\n注意:主要语言为中国方言时,可选语言无效\n目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循ISO639:\n1. Chinese = \"zh\" # 中文\n2. Chinese_TW = \"zh-TW\" # 中国台湾\n3. Chinese_DIALECT = \"zh-dialect\" # 中国方言\n4. English = \"en\" # 英语\n5. Vietnamese = \"vi\" # 越南语\n6. Japanese = \"ja\" # 日语\n7. Korean = \"ko\" # 汉语\n8. Indonesia = \"id\" # 印度尼西亚语\n9. Thai = \"th\" # 泰语\n10. Portuguese = \"pt\" # 葡萄牙语\n11. Turkish = \"tr\" # 土耳其语\n12. Arabic = \"ar\" # 阿拉伯语\n13. Spanish = \"es\" # 西班牙语\n14. Hindi = \"hi\" # 印地语\n15. French = \"fr\" # 法语\n16. Malay = \"ms\" # 马来语\n17. Filipino = \"fil\" # 菲律宾语\n18. German = \"de\" # 德语\n19. Italian = \"it\" # 意大利语\n20. Russian = \"ru\" # 俄语",
1547
+ "example": "[\"zh\",\"en\"]",
1548
+ "member": "string",
1549
+ "name": "Languages",
1550
+ "required": false,
1551
+ "type": "list"
1552
+ },
1553
+ {
1554
+ "disabled": false,
1555
+ "document": "打断AI说话模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断",
1556
+ "example": "1",
1557
+ "member": "int64",
1558
+ "name": "InterruptMode",
1559
+ "required": false,
1560
+ "type": "int"
1561
+ },
1562
+ {
1563
+ "disabled": false,
1564
+ "document": "InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。",
1565
+ "example": "500",
1566
+ "member": "int64",
1567
+ "name": "InterruptSpeechDuration",
1568
+ "required": false,
1569
+ "type": "int"
1570
+ },
1571
+ {
1572
+ "disabled": false,
1573
+ "document": "模型是否支持(或者开启)call_end function calling",
1574
+ "example": "true",
1575
+ "member": "bool",
1576
+ "name": "EndFunctionEnable",
1577
+ "required": false,
1578
+ "type": "bool"
1579
+ },
1580
+ {
1581
+ "disabled": false,
1582
+ "document": "EndFunctionEnable为true时生效;call_end function calling的desc,默认为 \"End the call when user has to leave (like says bye) or you are instructed to do so.\"",
1583
+ "example": "无",
1584
+ "member": "string",
1585
+ "name": "EndFunctionDesc",
1586
+ "required": false,
1587
+ "type": "string"
1588
+ }
1589
+ ],
1590
+ "type": "object"
1591
+ },
1592
+ "CreateAICallResponse": {
1593
+ "document": "CreateAICall返回参数结构体",
1594
+ "members": [
1595
+ {
1596
+ "disabled": false,
1597
+ "document": "新创建的会话 ID",
1598
+ "example": "adcf61b8-dbb9-4c20-87bf-c0744c04bade",
1599
+ "member": "string",
1600
+ "name": "SessionId",
1601
+ "output_required": false,
1602
+ "type": "string",
1603
+ "value_allowed_null": false
1604
+ },
1605
+ {
1606
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1607
+ "member": "string",
1608
+ "name": "RequestId",
1609
+ "type": "string"
1610
+ }
1611
+ ],
1612
+ "type": "object"
1613
+ },
1426
1614
  "CreateAdminURLRequest": {
1427
1615
  "document": "CreateAdminURL请求参数结构体",
1428
1616
  "members": [
@@ -24,6 +24,14 @@
24
24
  "title": "绑定坐席所属技能组示例"
25
25
  }
26
26
  ],
27
+ "CreateAICall": [
28
+ {
29
+ "document": "",
30
+ "input": "POST / HTTP/1.1\nHost: ccc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAICall\n<公共请求参数>\n\n{\n \"Callee\": \"008612300000000\",\n \"SdkAppId\": 1400000000,\n \"SystemPrompt\": \"你是一只机器人\",\n \"LLMType\": \"openai\",\n \"Model\": \"gpt3\",\n \"APIKey\": \"114514\",\n \"APIUrl\": \"https://xxx/v1/chat/completions\",\n \"VoiceType\": \"ZhiMei\"\n}",
31
+ "output": "{\n \"Response\": {\n \"RequestId\": \"6bb56a09-2787-40bc-80c5-dc6dab783eff\",\n \"SessionId\": \"6bb56a09278740bc80c5dc6dab783eff\"\n }\n}",
32
+ "title": "创建ai 会话示例"
33
+ }
34
+ ],
27
35
  "CreateAdminURL": [
28
36
  {
29
37
  "document": "创建管理端登录链接示例",
@@ -2661,7 +2661,7 @@
2661
2661
  },
2662
2662
  {
2663
2663
  "disabled": false,
2664
- "document": "是否开启SNI特性,此参数仅适用于HTTPS监听器。0表示开启,1表示未开启。",
2664
+ "document": "是否开启SNI特性,此参数仅适用于HTTPS监听器。0表示未开启,1表示开启。",
2665
2665
  "example": "1",
2666
2666
  "member": "int64",
2667
2667
  "name": "SniSwitch",
@@ -2766,6 +2766,24 @@
2766
2766
  "name": "FullEndPorts",
2767
2767
  "required": false,
2768
2768
  "type": "list"
2769
+ },
2770
+ {
2771
+ "disabled": false,
2772
+ "document": "内网http监听器开启h2c开关",
2773
+ "example": "False",
2774
+ "member": "bool",
2775
+ "name": "H2cSwitch",
2776
+ "required": false,
2777
+ "type": "bool"
2778
+ },
2779
+ {
2780
+ "disabled": false,
2781
+ "document": "TCP_SSL监听器支持关闭SSL后仍然支持混绑,此参数为关闭开关",
2782
+ "example": "False",
2783
+ "member": "bool",
2784
+ "name": "SslCloseSwitch",
2785
+ "required": false,
2786
+ "type": "bool"
2769
2787
  }
2770
2788
  ],
2771
2789
  "type": "object"
@@ -7272,17 +7272,17 @@
7272
7272
  "example": "0",
7273
7273
  "member": "int64",
7274
7274
  "name": "Id",
7275
- "required": true,
7275
+ "output_required": true,
7276
7276
  "type": "int",
7277
7277
  "value_allowed_null": false
7278
7278
  },
7279
7279
  {
7280
7280
  "disabled": false,
7281
7281
  "document": "卡槽类型,可取值有:\n<li> AUDIO:音频卡槽,可替换素材类型为 AUDIO 的音频素材;</li>\n<li> VIDEO:视频卡槽,可替换素材类型为 VIDEO 的视频素材;</li>\n<li> IMAGE:图片卡槽,可替换素材类型为 IMAGE 的图片素材;</li>\n<li> TEXT:文本卡槽,可替换文本内容。</li>",
7282
- "example": "0",
7282
+ "example": "VIDEO",
7283
7283
  "member": "string",
7284
7284
  "name": "Type",
7285
- "required": true,
7285
+ "output_required": true,
7286
7286
  "type": "string",
7287
7287
  "value_allowed_null": false
7288
7288
  },
@@ -7292,7 +7292,7 @@
7292
7292
  "example": "60097a8a8ea83d00017b484b",
7293
7293
  "member": "string",
7294
7294
  "name": "DefaultMaterialId",
7295
- "required": true,
7295
+ "output_required": true,
7296
7296
  "type": "string",
7297
7297
  "value_allowed_null": false
7298
7298
  },
@@ -7302,7 +7302,7 @@
7302
7302
  "example": "无",
7303
7303
  "member": "TextSlotInfo",
7304
7304
  "name": "DefaultTextSlotInfo",
7305
- "required": true,
7305
+ "output_required": true,
7306
7306
  "type": "object",
7307
7307
  "value_allowed_null": true
7308
7308
  },
@@ -7312,7 +7312,17 @@
7312
7312
  "example": "100",
7313
7313
  "member": "float",
7314
7314
  "name": "Duration",
7315
- "required": true,
7315
+ "output_required": true,
7316
+ "type": "float",
7317
+ "value_allowed_null": false
7318
+ },
7319
+ {
7320
+ "disabled": false,
7321
+ "document": "卡槽起始时间,单位秒。",
7322
+ "example": "0",
7323
+ "member": "float",
7324
+ "name": "StartTime",
7325
+ "output_required": false,
7316
7326
  "type": "float",
7317
7327
  "value_allowed_null": false
7318
7328
  }
@@ -8040,10 +8050,10 @@
8040
8050
  {
8041
8051
  "disabled": false,
8042
8052
  "document": "文本内容。",
8043
- "example": "",
8053
+ "example": "智能创作",
8044
8054
  "member": "string",
8045
8055
  "name": "Text",
8046
- "required": true,
8056
+ "output_required": true,
8047
8057
  "type": "string",
8048
8058
  "value_allowed_null": false
8049
8059
  }
@@ -7401,58 +7401,6 @@ def doDescribeClusterInstanceGroups(args, parsed_globals):
7401
7401
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7402
7402
 
7403
7403
 
7404
- def doDescribeRollbackTimeValidity(args, parsed_globals):
7405
- g_param = parse_global_arg(parsed_globals)
7406
-
7407
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7408
- cred = credential.CVMRoleCredential()
7409
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7410
- cred = credential.STSAssumeRoleCredential(
7411
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7412
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7413
- )
7414
- 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):
7415
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7416
- else:
7417
- cred = credential.Credential(
7418
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7419
- )
7420
- http_profile = HttpProfile(
7421
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7422
- reqMethod="POST",
7423
- endpoint=g_param[OptionsDefine.Endpoint],
7424
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7425
- )
7426
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7427
- if g_param[OptionsDefine.Language]:
7428
- profile.language = g_param[OptionsDefine.Language]
7429
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7430
- client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
7431
- client._sdkVersion += ("_CLI_" + __version__)
7432
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
7433
- model = models.DescribeRollbackTimeValidityRequest()
7434
- model.from_json_string(json.dumps(args))
7435
- start_time = time.time()
7436
- while True:
7437
- rsp = client.DescribeRollbackTimeValidity(model)
7438
- result = rsp.to_json_string()
7439
- try:
7440
- json_obj = json.loads(result)
7441
- except TypeError as e:
7442
- json_obj = json.loads(result.decode('utf-8')) # python3.3
7443
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7444
- break
7445
- cur_time = time.time()
7446
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7447
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7448
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7449
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7450
- else:
7451
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7452
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7453
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7454
-
7455
-
7456
7404
  def doDescribeDBSecurityGroups(args, parsed_globals):
7457
7405
  g_param = parse_global_arg(parsed_globals)
7458
7406
 
@@ -7918,7 +7866,6 @@ ACTION_MAP = {
7918
7866
  "UpgradeInstance": doUpgradeInstance,
7919
7867
  "DescribeBinlogs": doDescribeBinlogs,
7920
7868
  "DescribeClusterInstanceGroups": doDescribeClusterInstanceGroups,
7921
- "DescribeRollbackTimeValidity": doDescribeRollbackTimeValidity,
7922
7869
  "DescribeDBSecurityGroups": doDescribeDBSecurityGroups,
7923
7870
  "OpenClusterPasswordComplexity": doOpenClusterPasswordComplexity,
7924
7871
  "OpenAuditService": doOpenAuditService,
@@ -525,13 +525,6 @@
525
525
  "output": "DescribeRollbackTimeRangeResponse",
526
526
  "status": "online"
527
527
  },
528
- "DescribeRollbackTimeValidity": {
529
- "document": "历史废弃接口,从云API下线\n\n指定时间和集群查询是否可回滚",
530
- "input": "DescribeRollbackTimeValidityRequest",
531
- "name": "查询指定时间是否可回滚",
532
- "output": "DescribeRollbackTimeValidityResponse",
533
- "status": "deprecated"
534
- },
535
528
  "DescribeServerlessStrategy": {
536
529
  "document": "查询serverless策略",
537
530
  "input": "DescribeServerlessStrategyRequest",
@@ -11515,91 +11508,6 @@
11515
11508
  ],
11516
11509
  "type": "object"
11517
11510
  },
11518
- "DescribeRollbackTimeValidityRequest": {
11519
- "document": "DescribeRollbackTimeValidity请求参数结构体",
11520
- "members": [
11521
- {
11522
- "disabled": false,
11523
- "document": "集群ID",
11524
- "example": "cynosdbmysql-gn65y9nk",
11525
- "member": "string",
11526
- "name": "ClusterId",
11527
- "required": true,
11528
- "type": "string"
11529
- },
11530
- {
11531
- "disabled": false,
11532
- "document": "期望回滚的时间点",
11533
- "example": "2019-01-13 02:12:05",
11534
- "member": "string",
11535
- "name": "ExpectTime",
11536
- "required": true,
11537
- "type": "string"
11538
- },
11539
- {
11540
- "disabled": false,
11541
- "document": "回滚时间点的允许误差范围",
11542
- "example": "0",
11543
- "member": "uint64",
11544
- "name": "ExpectTimeThresh",
11545
- "required": true,
11546
- "type": "int"
11547
- }
11548
- ],
11549
- "type": "object"
11550
- },
11551
- "DescribeRollbackTimeValidityResponse": {
11552
- "document": "DescribeRollbackTimeValidity返回参数结构体",
11553
- "members": [
11554
- {
11555
- "disabled": false,
11556
- "document": "存储poolID",
11557
- "example": "\t1050",
11558
- "member": "uint64",
11559
- "name": "PoolId",
11560
- "output_required": true,
11561
- "type": "int",
11562
- "value_allowed_null": false
11563
- },
11564
- {
11565
- "disabled": false,
11566
- "document": "回滚任务ID,后续按该时间点回滚时,需要传入",
11567
- "example": "\t2008",
11568
- "member": "uint64",
11569
- "name": "QueryId",
11570
- "output_required": true,
11571
- "type": "int",
11572
- "value_allowed_null": false
11573
- },
11574
- {
11575
- "disabled": false,
11576
- "document": "时间点是否有效:pass,检测通过;fail,检测失败",
11577
- "example": "pass",
11578
- "member": "string",
11579
- "name": "Status",
11580
- "output_required": true,
11581
- "type": "string",
11582
- "value_allowed_null": false
11583
- },
11584
- {
11585
- "disabled": false,
11586
- "document": "建议时间点,在Status为fail时,该值才有效",
11587
- "example": "\"\"",
11588
- "member": "string",
11589
- "name": "SuggestTime",
11590
- "output_required": true,
11591
- "type": "string",
11592
- "value_allowed_null": false
11593
- },
11594
- {
11595
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11596
- "member": "string",
11597
- "name": "RequestId",
11598
- "type": "string"
11599
- }
11600
- ],
11601
- "type": "object"
11602
- },
11603
11511
  "DescribeServerlessStrategyRequest": {
11604
11512
  "document": "DescribeServerlessStrategy请求参数结构体",
11605
11513
  "members": [
@@ -624,14 +624,6 @@
624
624
  "title": "查询回档时间范围"
625
625
  }
626
626
  ],
627
- "DescribeRollbackTimeValidity": [
628
- {
629
- "document": "",
630
- "input": "https://cynosdb.tencentcloudapi.com/?Action=DescribeRollbackTimeValidity\n&ClusterId=cynosdbpg-gn65y9nk\n&ExpectTime=2019-01-1302:12:05\n&ExpectTimeThresh=0\n&<公共请求参数>",
631
- "output": "{\n \"Response\": {\n \"PoolId\": 1,\n \"QueryId\": 1,\n \"Status\": \"abc\",\n \"SuggestTime\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
632
- "title": "查询指定时间点是否看回档"
633
- }
634
- ],
635
627
  "DescribeServerlessStrategy": [
636
628
  {
637
629
  "document": "",
@@ -4551,7 +4551,7 @@
4551
4551
  },
4552
4552
  {
4553
4553
  "disabled": false,
4554
- "document": "自定义查询",
4554
+ "document": "自定义查询过滤器。示例:<li>根据ClusterId过滤实例:[{\"Name\":\"ClusterId\",\"Values\":[\"emr-xxxxxxxx\"]}]</li><li>根据clusterName过滤实例:[{\"Name\": \"ClusterName\",\"Values\": [\"cluster_name\"]}]</li><li>根据ClusterStatus过滤实例:[{\"Name\": \"ClusterStatus\",\"Values\": [\"2\"]}]</li>",
4555
4555
  "example": "无",
4556
4556
  "member": "Filters",
4557
4557
  "name": "Filters",
@@ -4905,8 +4905,8 @@
4905
4905
  },
4906
4906
  {
4907
4907
  "disabled": false,
4908
- "document": "按照OrderField升序或者降序进行排序。取值范围:<li>0:表示降序。</li><li>1:表示升序。</li>默认值为0。",
4909
- "example": "1",
4908
+ "document": "按照OrderField升序或者降序进行排序。取值范围:<li>0:表示升序。</li><li>1:表示降序。</li>默认值为0。",
4909
+ "example": "0",
4910
4910
  "member": "int64",
4911
4911
  "name": "Asc",
4912
4912
  "required": false,
@@ -4914,7 +4914,7 @@
4914
4914
  },
4915
4915
  {
4916
4916
  "disabled": false,
4917
- "document": "自定义查询过滤器。",
4917
+ "document": "自定义查询过滤器。示例:<li>根据ClusterId过滤实例:[{\"Name\":\"ClusterId\",\"Values\":[\"emr-xxxxxxxx\"]}]</li><li>根据clusterName过滤实例:[{\"Name\": \"ClusterName\",\"Values\": [\"cluster_name\"]}]</li><li>根据ClusterStatus过滤实例:[{\"Name\": \"ClusterStatus\",\"Values\": [\"2\"]}]</li>",
4918
4918
  "example": "无",
4919
4919
  "member": "Filters",
4920
4920
  "name": "Filters",
@@ -2591,6 +2591,15 @@
2591
2591
  "name": "MouthOpenRecognition",
2592
2592
  "required": false,
2593
2593
  "type": "bool"
2594
+ },
2595
+ {
2596
+ "disabled": false,
2597
+ "document": "意愿核身语音播报速度,配置后问答模式和点头模式的语音播报环节都会生效,默认值为0: 0:智能语速(根据播报文案的长度自动调整语音播报速度) 1:固定1倍速 2:固定1.2倍速 3:固定1.5倍速",
2598
+ "example": "0",
2599
+ "member": "uint64",
2600
+ "name": "Speed",
2601
+ "required": false,
2602
+ "type": "int"
2594
2603
  }
2595
2604
  ],
2596
2605
  "usage": "in"