tccli 3.0.896.1__py2.py3-none-any.whl → 3.0.898.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdb/v20170320/CreateDatabase.md +22 -0
  3. tccli/examples/cdn/v20180606/ModifyDomainConfig.md +88 -0
  4. tccli/examples/ckafka/v20190819/CreatePostPaidInstance.md +154 -0
  5. tccli/examples/cynosdb/v20190107/DescribeProxySpecs.md +56 -0
  6. tccli/examples/cynosdb/v20190107/DescribeSupportProxyVersion.md +24 -0
  7. tccli/examples/ess/v20201111/CreateFlowApprovers.md +3 -1
  8. tccli/examples/ess/v20201111/DescribeThirdPartyAuthCode.md +1 -1
  9. tccli/examples/postgres/v20170312/CreateReadOnlyDBInstance.md +1 -1
  10. tccli/examples/postgres/v20170312/UpgradeDBInstanceKernelVersion.md +1 -1
  11. tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +6 -1
  12. tccli/examples/sqlserver/v20180328/DescribeDBs.md +1 -1
  13. tccli/examples/tdmq/v20200217/CreateCmqQueue.md +2 -2
  14. tccli/examples/tke/v20180525/CreateClusterEndpointVip.md +1 -1
  15. tccli/examples/trp/v20210515/CreateCodeBatch.md +11 -5
  16. tccli/examples/trp/v20210515/DescribeScanLogs.md +1 -1
  17. tccli/examples/trp/v20210515/DescribeTraceCodeById.md +16 -11
  18. tccli/examples/trp/v20210515/ModifyCodeBatch.md +3 -3
  19. tccli/examples/vod/v20180717/CreateQualityInspectTemplate.md +24 -0
  20. tccli/examples/vod/v20180717/DeleteQualityInspectTemplate.md +20 -0
  21. tccli/examples/vod/v20180717/DescribeQualityInspectTemplates.md +44 -0
  22. tccli/examples/vod/v20180717/DescribeTaskDetail.md +4 -0
  23. tccli/examples/vod/v20180717/InspectMediaQuality.md +22 -0
  24. tccli/examples/vod/v20180717/ModifyQualityInspectTemplate.md +21 -0
  25. tccli/examples/yinsuda/v20220527/DescribeKTVMusicAccompanySegmentUrl.md +70 -0
  26. tccli/services/cdb/cdb_client.py +57 -4
  27. tccli/services/cdb/v20170320/api.json +52 -0
  28. tccli/services/cdb/v20170320/examples.json +8 -0
  29. tccli/services/cdn/cdn_client.py +57 -4
  30. tccli/services/cdn/v20180606/api.json +52 -0
  31. tccli/services/cdn/v20180606/examples.json +26 -0
  32. tccli/services/ckafka/ckafka_client.py +61 -8
  33. tccli/services/ckafka/v20190819/api.json +303 -7
  34. tccli/services/ckafka/v20190819/examples.json +20 -0
  35. tccli/services/clb/v20180317/api.json +3 -1
  36. tccli/services/cynosdb/cynosdb_client.py +106 -0
  37. tccli/services/cynosdb/v20190107/api.json +134 -0
  38. tccli/services/cynosdb/v20190107/examples.json +22 -0
  39. tccli/services/emr/v20190103/api.json +6 -2
  40. tccli/services/ess/v20201111/api.json +42 -11
  41. tccli/services/ess/v20201111/examples.json +3 -3
  42. tccli/services/essbasic/v20210526/api.json +27 -1
  43. tccli/services/ocr/v20181119/api.json +4 -2
  44. tccli/services/postgres/v20170312/api.json +2 -31
  45. tccli/services/postgres/v20170312/examples.json +2 -2
  46. tccli/services/sqlserver/v20180328/api.json +72 -15
  47. tccli/services/sqlserver/v20180328/examples.json +3 -3
  48. tccli/services/tbaas/tbaas_client.py +4 -322
  49. tccli/services/tbaas/v20180416/api.json +108 -810
  50. tccli/services/tbaas/v20180416/examples.json +0 -48
  51. tccli/services/tbp/v20190311/api.json +10 -10
  52. tccli/services/tdid/tdid_client.py +67 -1551
  53. tccli/services/tdid/v20210519/api.json +331 -3504
  54. tccli/services/tdid/v20210519/examples.json +0 -224
  55. tccli/services/tdmq/v20200217/api.json +2 -19
  56. tccli/services/tdmq/v20200217/examples.json +2 -2
  57. tccli/services/tione/v20211111/api.json +24 -2
  58. tccli/services/tke/v20180525/api.json +4 -6
  59. tccli/services/tke/v20180525/examples.json +2 -2
  60. tccli/services/trp/v20210515/api.json +285 -113
  61. tccli/services/trp/v20210515/examples.json +6 -6
  62. tccli/services/vod/v20180717/api.json +1346 -2
  63. tccli/services/vod/v20180717/examples.json +44 -4
  64. tccli/services/vod/vod_client.py +287 -22
  65. tccli/services/yinsuda/v20220527/api.json +159 -0
  66. tccli/services/yinsuda/v20220527/examples.json +14 -0
  67. tccli/services/yinsuda/yinsuda_client.py +53 -0
  68. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/METADATA +2 -2
  69. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/RECORD +72 -61
  70. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/WHEEL +0 -0
  71. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/entry_points.txt +0 -0
  72. {tccli-3.0.896.1.dist-info → tccli-3.0.898.1.dist-info}/license_files/LICENSE +0 -0
@@ -28,6 +28,13 @@
28
28
  "output": "DescribeKTVMatchMusicsResponse",
29
29
  "status": "online"
30
30
  },
31
+ "DescribeKTVMusicAccompanySegmentUrl": {
32
+ "document": "获取歌曲伴奏片段链接,可用于抢唱",
33
+ "input": "DescribeKTVMusicAccompanySegmentUrlRequest",
34
+ "name": "获取歌曲伴奏片段链接",
35
+ "output": "DescribeKTVMusicAccompanySegmentUrlResponse",
36
+ "status": "online"
37
+ },
31
38
  "DescribeKTVMusicsByTag": {
32
39
  "document": "通过标签过滤歌曲列表。",
33
40
  "input": "DescribeKTVMusicsByTagRequest",
@@ -511,6 +518,132 @@
511
518
  ],
512
519
  "type": "object"
513
520
  },
521
+ "DescribeKTVMusicAccompanySegmentUrlRequest": {
522
+ "document": "DescribeKTVMusicAccompanySegmentUrl请求参数结构体",
523
+ "members": [
524
+ {
525
+ "disabled": false,
526
+ "document": "应用名称。",
527
+ "example": "app-test",
528
+ "member": "string",
529
+ "name": "AppName",
530
+ "required": true,
531
+ "type": "string"
532
+ },
533
+ {
534
+ "disabled": false,
535
+ "document": "用户标识。",
536
+ "example": "test",
537
+ "member": "string",
538
+ "name": "UserId",
539
+ "required": true,
540
+ "type": "string"
541
+ },
542
+ {
543
+ "disabled": false,
544
+ "document": "歌曲 Id 。",
545
+ "example": "mid-test",
546
+ "member": "string",
547
+ "name": "MusicId",
548
+ "required": true,
549
+ "type": "string"
550
+ },
551
+ {
552
+ "disabled": false,
553
+ "document": "播放场景。默认为Chat\n<li>Live:直播</li><li>Chat:语聊</li>",
554
+ "example": "Chat",
555
+ "member": "string",
556
+ "name": "PlayScene",
557
+ "required": false,
558
+ "type": "string"
559
+ },
560
+ {
561
+ "disabled": false,
562
+ "document": "房间Id",
563
+ "example": "4324556",
564
+ "member": "string",
565
+ "name": "RoomId",
566
+ "required": false,
567
+ "type": "string"
568
+ }
569
+ ],
570
+ "type": "object"
571
+ },
572
+ "DescribeKTVMusicAccompanySegmentUrlResponse": {
573
+ "document": "DescribeKTVMusicAccompanySegmentUrl返回参数结构体",
574
+ "members": [
575
+ {
576
+ "disabled": false,
577
+ "document": "歌曲状态。\n0:可用\n1:下线\n2:没权限\n3:没伴奏\n当返回2时,其他参数有可能全部为空",
578
+ "example": "0",
579
+ "member": "int64",
580
+ "name": "Status",
581
+ "type": "int",
582
+ "value_allowed_null": false
583
+ },
584
+ {
585
+ "disabled": false,
586
+ "document": "伴奏链接",
587
+ "example": "http://xxxx",
588
+ "member": "string",
589
+ "name": "Url",
590
+ "type": "string",
591
+ "value_allowed_null": false
592
+ },
593
+ {
594
+ "disabled": false,
595
+ "document": "伴奏类型,如mkv,mp3等",
596
+ "example": "mkv",
597
+ "member": "string",
598
+ "name": "ExtName",
599
+ "type": "string",
600
+ "value_allowed_null": false
601
+ },
602
+ {
603
+ "disabled": false,
604
+ "document": "高潮开始时间",
605
+ "example": "12452323",
606
+ "member": "int64",
607
+ "name": "SegmentBegin",
608
+ "type": "int",
609
+ "value_allowed_null": false
610
+ },
611
+ {
612
+ "disabled": false,
613
+ "document": "高潮结束时间",
614
+ "example": "1234566",
615
+ "member": "int64",
616
+ "name": "SegmentEnd",
617
+ "type": "int",
618
+ "value_allowed_null": false
619
+ },
620
+ {
621
+ "disabled": false,
622
+ "document": "链接文件大小 单位 字节",
623
+ "example": "100",
624
+ "member": "int64",
625
+ "name": "FileSize",
626
+ "type": "int",
627
+ "value_allowed_null": false
628
+ },
629
+ {
630
+ "disabled": false,
631
+ "document": "其它片段时间(可用于抢唱)\n注意:此字段可能返回 null,表示取不到有效值。",
632
+ "example": "无",
633
+ "member": "KTVOtherSegments",
634
+ "name": "OtherSegments",
635
+ "type": "list",
636
+ "value_allowed_null": true
637
+ },
638
+ {
639
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
640
+ "member": "string",
641
+ "name": "RequestId",
642
+ "type": "string"
643
+ }
644
+ ],
645
+ "type": "object"
646
+ },
514
647
  "DescribeKTVMusicsByTagRequest": {
515
648
  "document": "DescribeKTVMusicsByTag请求参数结构体",
516
649
  "members": [
@@ -1551,6 +1684,32 @@
1551
1684
  ],
1552
1685
  "usage": "out"
1553
1686
  },
1687
+ "KTVOtherSegments": {
1688
+ "document": "其它片段时间(可用于抢唱)",
1689
+ "members": [
1690
+ {
1691
+ "disabled": false,
1692
+ "document": "片段开始时间\n注意:此字段可能返回 null,表示取不到有效值。",
1693
+ "example": "0",
1694
+ "member": "int64",
1695
+ "name": "SegmentBegin",
1696
+ "required": false,
1697
+ "type": "int",
1698
+ "value_allowed_null": true
1699
+ },
1700
+ {
1701
+ "disabled": false,
1702
+ "document": "片段结束时间\n注意:此字段可能返回 null,表示取不到有效值。",
1703
+ "example": "1",
1704
+ "member": "int64",
1705
+ "name": "SegmentEnd",
1706
+ "required": false,
1707
+ "type": "int",
1708
+ "value_allowed_null": true
1709
+ }
1710
+ ],
1711
+ "usage": "out"
1712
+ },
1554
1713
  "KTVPlaylistBaseInfo": {
1555
1714
  "document": "歌单基础信息。",
1556
1715
  "members": [
@@ -38,6 +38,20 @@
38
38
  "title": "匹配 AME 歌曲"
39
39
  }
40
40
  ],
41
+ "DescribeKTVMusicAccompanySegmentUrl": [
42
+ {
43
+ "document": "获取歌曲伴奏链接",
44
+ "input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKTVMusicAccompanySegmentUrl\n<公共请求参数>\n\n{\n \"AppName\": \"abc\",\n \"UserId\": \"abc\",\n \"MusicId\": \"abc\",\n \"PlayScene\": \"abc\",\n \"RoomId\": \"abc\"\n}",
45
+ "output": "{\n \"Response\": {\n \"Status\": 0,\n \"Url\": \"abc\",\n \"ExtName\": \"abc\",\n \"SegmentBegin\": 0,\n \"SegmentEnd\": 0,\n \"FileSize\": 0,\n \"OtherSegments\": [\n {\n \"SegmentBegin\": 0,\n \"SegmentEnd\": 0\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
46
+ "title": "获取歌曲伴奏链接"
47
+ },
48
+ {
49
+ "document": "脱敏的实际请求",
50
+ "input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKTVMusicAccompanySegmentUrl\n<公共请求参数>\n\n{\n \"AppName\": \"monk_dev\",\n \"UserId\": \"monk\",\n \"MusicId\": \"mid-9Eyb67xe\"\n}",
51
+ "output": "{\n \"Response\": {\n \"ExtName\": \"mkv\",\n \"FileSize\": 1087189,\n \"OtherSegments\": [\n {\n \"SegmentBegin\": 91798,\n \"SegmentEnd\": 120177\n }\n ],\n \"RequestId\": \"865e06ab-1aae-42e1-ae29-3137f143fb01\",\n \"SegmentBegin\": 91798,\n \"SegmentEnd\": 120177,\n \"Status\": 0,\n \"Url\": \"http://****/202306151716/****/0db8f1208ee298295cc6c81bac448751\"\n }\n}",
52
+ "title": "获取歌曲伴奏链接(脱敏)"
53
+ }
54
+ ],
41
55
  "DescribeKTVMusicsByTag": [
42
56
  {
43
57
  "document": "获取标签歌曲信息",
@@ -693,6 +693,58 @@ def doDescribeLiveVipTradeInfos(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
+ def doDescribeKTVMusicAccompanySegmentUrl(args, parsed_globals):
697
+ g_param = parse_global_arg(parsed_globals)
698
+
699
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
700
+ cred = credential.CVMRoleCredential()
701
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
+ cred = credential.STSAssumeRoleCredential(
703
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
705
+ )
706
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
707
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
708
+ else:
709
+ cred = credential.Credential(
710
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
711
+ )
712
+ http_profile = HttpProfile(
713
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
714
+ reqMethod="POST",
715
+ endpoint=g_param[OptionsDefine.Endpoint],
716
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
717
+ )
718
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
719
+ if g_param[OptionsDefine.Language]:
720
+ profile.language = g_param[OptionsDefine.Language]
721
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
722
+ client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
723
+ client._sdkVersion += ("_CLI_" + __version__)
724
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
+ model = models.DescribeKTVMusicAccompanySegmentUrlRequest()
726
+ model.from_json_string(json.dumps(args))
727
+ start_time = time.time()
728
+ while True:
729
+ rsp = client.DescribeKTVMusicAccompanySegmentUrl(model)
730
+ result = rsp.to_json_string()
731
+ try:
732
+ json_obj = json.loads(result)
733
+ except TypeError as e:
734
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
735
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
736
+ break
737
+ cur_time = time.time()
738
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
739
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
740
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
741
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
742
+ else:
743
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
744
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
745
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
+
747
+
696
748
  def doDescribeKTVRobots(args, parsed_globals):
697
749
  g_param = parse_global_arg(parsed_globals)
698
750
 
@@ -873,6 +925,7 @@ ACTION_MAP = {
873
925
  "DescribeKTVPlaylists": doDescribeKTVPlaylists,
874
926
  "RechargeLiveVip": doRechargeLiveVip,
875
927
  "DescribeLiveVipTradeInfos": doDescribeLiveVipTradeInfos,
928
+ "DescribeKTVMusicAccompanySegmentUrl": doDescribeKTVMusicAccompanySegmentUrl,
876
929
  "DescribeKTVRobots": doDescribeKTVRobots,
877
930
  "SearchKTVMusics": doSearchKTVMusics,
878
931
  "DescribeKTVMusicsByTag": doDescribeKTVMusicsByTag,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.896.1
3
+ Version: 3.0.898.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.896
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.898
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介