tccli 3.0.1031.1__py2.py3-none-any.whl → 3.0.1032.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 (49) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdwdoris/v20211228/CreateInstanceNew.md +36 -0
  3. tccli/examples/cdwdoris/v20211228/DescribeClusterConfigs.md +29 -0
  4. tccli/examples/cdwdoris/v20211228/DescribeDatabaseAuditDownload.md +33 -0
  5. tccli/examples/cdwdoris/v20211228/DescribeDatabaseAuditRecords.md +47 -0
  6. tccli/examples/cdwdoris/v20211228/DescribeInstanceNodesInfo.md +54 -0
  7. tccli/examples/cdwdoris/v20211228/DescribeInstanceState.md +26 -0
  8. tccli/examples/cdwdoris/v20211228/DescribeSlowQueryRecords.md +41 -0
  9. tccli/examples/cdwdoris/v20211228/DescribeSlowQueryRecordsDownload.md +25 -0
  10. tccli/examples/cdwdoris/v20211228/DestroyInstance.md +23 -0
  11. tccli/examples/cdwdoris/v20211228/ModifyInstance.md +21 -0
  12. tccli/examples/cdwdoris/v20211228/ResizeDisk.md +25 -0
  13. tccli/examples/cdwdoris/v20211228/RestartClusterForNode.md +23 -0
  14. tccli/examples/cdwdoris/v20211228/ScaleOutInstance.md +25 -0
  15. tccli/examples/cdwdoris/v20211228/ScaleUpInstance.md +25 -0
  16. tccli/examples/essbasic/v20210526/DescribeTemplates.md +32 -4
  17. tccli/examples/mongodb/v20190725/ModifyDBInstanceSpec.md +4 -4
  18. tccli/examples/tke/v20180525/CreateClusterNodePool.md +2 -0
  19. tccli/examples/vod/v20180717/DescribeProcedureTemplates.md +3 -18
  20. tccli/examples/vod/v20180717/DescribeVodDomains.md +1 -0
  21. tccli/examples/yinsuda/v20220527/DescribeKTVMusicAccompanySegmentUrlVip.md +28 -0
  22. tccli/examples/yinsuda/v20220527/DescribeVipUserInfo.md +26 -0
  23. tccli/examples/yinsuda/v20220527/RechargeVip.md +27 -0
  24. tccli/services/cat/v20180409/api.json +10 -1
  25. tccli/services/cdwdoris/cdwdoris_client.py +750 -8
  26. tccli/services/cdwdoris/v20211228/api.json +2462 -494
  27. tccli/services/cdwdoris/v20211228/examples.json +118 -0
  28. tccli/services/cls/v20201016/api.json +2 -2
  29. tccli/services/ess/v20201111/api.json +4 -4
  30. tccli/services/essbasic/v20210526/api.json +22 -22
  31. tccli/services/essbasic/v20210526/examples.json +2 -2
  32. tccli/services/lighthouse/v20200324/api.json +5 -5
  33. tccli/services/mongodb/v20190725/api.json +11 -11
  34. tccli/services/mongodb/v20190725/examples.json +2 -2
  35. tccli/services/monitor/v20180724/api.json +2 -0
  36. tccli/services/tke/v20180525/api.json +59 -3
  37. tccli/services/tke/v20180525/examples.json +1 -1
  38. tccli/services/vod/v20180717/api.json +49 -49
  39. tccli/services/vod/v20180717/examples.json +2 -2
  40. tccli/services/vpc/v20170312/api.json +10 -0
  41. tccli/services/waf/v20180125/api.json +11 -0
  42. tccli/services/yinsuda/v20220527/api.json +305 -0
  43. tccli/services/yinsuda/v20220527/examples.json +24 -0
  44. tccli/services/yinsuda/yinsuda_client.py +175 -16
  45. {tccli-3.0.1031.1.dist-info → tccli-3.0.1032.1.dist-info}/METADATA +2 -2
  46. {tccli-3.0.1031.1.dist-info → tccli-3.0.1032.1.dist-info}/RECORD +49 -32
  47. {tccli-3.0.1031.1.dist-info → tccli-3.0.1032.1.dist-info}/WHEEL +0 -0
  48. {tccli-3.0.1031.1.dist-info → tccli-3.0.1032.1.dist-info}/entry_points.txt +0 -0
  49. {tccli-3.0.1031.1.dist-info → tccli-3.0.1032.1.dist-info}/license_files/LICENSE +0 -0
@@ -35,6 +35,13 @@
35
35
  "output": "DescribeKTVMusicAccompanySegmentUrlResponse",
36
36
  "status": "online"
37
37
  },
38
+ "DescribeKTVMusicAccompanySegmentUrlVip": {
39
+ "document": "获取歌曲伴奏高潮的开始、结束时间,可用于抢唱",
40
+ "input": "DescribeKTVMusicAccompanySegmentUrlVipRequest",
41
+ "name": "获取歌曲伴奏片段链接(会员)",
42
+ "output": "DescribeKTVMusicAccompanySegmentUrlVipResponse",
43
+ "status": "online"
44
+ },
38
45
  "DescribeKTVMusicsByTag": {
39
46
  "document": "通过标签过滤歌曲列表。",
40
47
  "input": "DescribeKTVMusicsByTagRequest",
@@ -91,6 +98,13 @@
91
98
  "output": "DescribeUserInfoResponse",
92
99
  "status": "online"
93
100
  },
101
+ "DescribeVipUserInfo": {
102
+ "document": "获取会员信息:获取用户是否开通会员",
103
+ "input": "DescribeVipUserInfoRequest",
104
+ "name": "获取会员信息",
105
+ "output": "DescribeVipUserInfoResponse",
106
+ "status": "online"
107
+ },
94
108
  "DestroyKTVRobot": {
95
109
  "document": "销毁机器人,机器人退出 RTC 房间。",
96
110
  "input": "DestroyKTVRobotRequest",
@@ -105,6 +119,13 @@
105
119
  "output": "RechargeLiveVipResponse",
106
120
  "status": "online"
107
121
  },
122
+ "RechargeVip": {
123
+ "document": "充值会员",
124
+ "input": "RechargeVipRequest",
125
+ "name": "充值会员",
126
+ "output": "RechargeVipResponse",
127
+ "status": "online"
128
+ },
108
129
  "SearchKTVMusics": {
109
130
  "document": "根据关键词搜索歌曲,返回相关歌曲列表。",
110
131
  "input": "SearchKTVMusicsRequest",
@@ -625,6 +646,111 @@
625
646
  ],
626
647
  "type": "object"
627
648
  },
649
+ "DescribeKTVMusicAccompanySegmentUrlVipRequest": {
650
+ "document": "DescribeKTVMusicAccompanySegmentUrlVip请求参数结构体",
651
+ "members": [
652
+ {
653
+ "disabled": false,
654
+ "document": "应用名称",
655
+ "example": "app-test",
656
+ "member": "string",
657
+ "name": "AppName",
658
+ "required": true,
659
+ "type": "string"
660
+ },
661
+ {
662
+ "disabled": false,
663
+ "document": "用户标识",
664
+ "example": "test",
665
+ "member": "string",
666
+ "name": "UserId",
667
+ "required": true,
668
+ "type": "string"
669
+ },
670
+ {
671
+ "disabled": false,
672
+ "document": "歌曲 Id ",
673
+ "example": "mid-test",
674
+ "member": "string",
675
+ "name": "MusicId",
676
+ "required": true,
677
+ "type": "string"
678
+ }
679
+ ],
680
+ "type": "object"
681
+ },
682
+ "DescribeKTVMusicAccompanySegmentUrlVipResponse": {
683
+ "document": "DescribeKTVMusicAccompanySegmentUrlVip返回参数结构体",
684
+ "members": [
685
+ {
686
+ "disabled": false,
687
+ "document": "0:成功获取 1:歌曲下架 2:无权限 3: 非包月会员 4:没有对应的链接",
688
+ "example": "1",
689
+ "member": "int64",
690
+ "name": "Status",
691
+ "output_required": false,
692
+ "type": "int",
693
+ "value_allowed_null": false
694
+ },
695
+ {
696
+ "disabled": false,
697
+ "document": "伴奏链接\n",
698
+ "example": "http://xxxx",
699
+ "member": "string",
700
+ "name": "Url",
701
+ "output_required": false,
702
+ "type": "string",
703
+ "value_allowed_null": false
704
+ },
705
+ {
706
+ "disabled": false,
707
+ "document": "伴奏类型,如mkv,mp3等\n",
708
+ "example": "mkv",
709
+ "member": "string",
710
+ "name": "ExtName",
711
+ "output_required": false,
712
+ "type": "string",
713
+ "value_allowed_null": false
714
+ },
715
+ {
716
+ "disabled": false,
717
+ "document": "高潮开始时间\n",
718
+ "example": "12452323",
719
+ "member": "int64",
720
+ "name": "SegmentBegin",
721
+ "output_required": false,
722
+ "type": "int",
723
+ "value_allowed_null": false
724
+ },
725
+ {
726
+ "disabled": false,
727
+ "document": "高潮结束时间\n",
728
+ "example": "1234566",
729
+ "member": "int64",
730
+ "name": "SegmentEnd",
731
+ "output_required": false,
732
+ "type": "int",
733
+ "value_allowed_null": false
734
+ },
735
+ {
736
+ "disabled": false,
737
+ "document": "链接文件大小 (单位:字节)\n",
738
+ "example": "无",
739
+ "member": "int64",
740
+ "name": "FileSize",
741
+ "output_required": false,
742
+ "type": "int",
743
+ "value_allowed_null": false
744
+ },
745
+ {
746
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
747
+ "member": "string",
748
+ "name": "RequestId",
749
+ "type": "string"
750
+ }
751
+ ],
752
+ "type": "object"
753
+ },
628
754
  "DescribeKTVMusicsByTagRequest": {
629
755
  "document": "DescribeKTVMusicsByTag请求参数结构体",
630
756
  "members": [
@@ -1261,6 +1387,92 @@
1261
1387
  ],
1262
1388
  "type": "object"
1263
1389
  },
1390
+ "DescribeVipUserInfoRequest": {
1391
+ "document": "DescribeVipUserInfo请求参数结构体",
1392
+ "members": [
1393
+ {
1394
+ "disabled": false,
1395
+ "document": "应用名称。",
1396
+ "example": "app-test",
1397
+ "member": "string",
1398
+ "name": "AppName",
1399
+ "required": true,
1400
+ "type": "string"
1401
+ },
1402
+ {
1403
+ "disabled": false,
1404
+ "document": "用户标识。",
1405
+ "example": "test",
1406
+ "member": "string",
1407
+ "name": "UserId",
1408
+ "required": true,
1409
+ "type": "string"
1410
+ }
1411
+ ],
1412
+ "type": "object"
1413
+ },
1414
+ "DescribeVipUserInfoResponse": {
1415
+ "document": "DescribeVipUserInfo返回参数结构体",
1416
+ "members": [
1417
+ {
1418
+ "disabled": false,
1419
+ "document": "是否是会员。(0:不是会员 1:是会员)",
1420
+ "example": "无",
1421
+ "member": "int64",
1422
+ "name": "IsVip",
1423
+ "output_required": false,
1424
+ "type": "int",
1425
+ "value_allowed_null": false
1426
+ },
1427
+ {
1428
+ "disabled": false,
1429
+ "document": "主播id",
1430
+ "example": "无",
1431
+ "member": "string",
1432
+ "name": "AnchorId",
1433
+ "output_required": false,
1434
+ "type": "string",
1435
+ "value_allowed_null": false
1436
+ },
1437
+ {
1438
+ "disabled": false,
1439
+ "document": "房间id",
1440
+ "example": "无",
1441
+ "member": "string",
1442
+ "name": "RoomId",
1443
+ "output_required": false,
1444
+ "type": "string",
1445
+ "value_allowed_null": false
1446
+ },
1447
+ {
1448
+ "disabled": false,
1449
+ "document": "会员过期时间",
1450
+ "example": "无",
1451
+ "member": "string",
1452
+ "name": "EndTime",
1453
+ "output_required": false,
1454
+ "type": "string",
1455
+ "value_allowed_null": false
1456
+ },
1457
+ {
1458
+ "disabled": false,
1459
+ "document": "会员状态。(-1:未开通过;1:已开通,未过期;2:已开通,已过期)",
1460
+ "example": "无",
1461
+ "member": "int64",
1462
+ "name": "Status",
1463
+ "output_required": false,
1464
+ "type": "int",
1465
+ "value_allowed_null": false
1466
+ },
1467
+ {
1468
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
1469
+ "member": "string",
1470
+ "name": "RequestId",
1471
+ "type": "string"
1472
+ }
1473
+ ],
1474
+ "type": "object"
1475
+ },
1264
1476
  "DestroyKTVRobotRequest": {
1265
1477
  "document": "DestroyKTVRobot请求参数结构体",
1266
1478
  "members": [
@@ -2114,6 +2326,99 @@
2114
2326
  ],
2115
2327
  "type": "object"
2116
2328
  },
2329
+ "RechargeVipRequest": {
2330
+ "document": "RechargeVip请求参数结构体",
2331
+ "members": [
2332
+ {
2333
+ "disabled": false,
2334
+ "document": "应用名称。",
2335
+ "example": "app-test",
2336
+ "member": "string",
2337
+ "name": "AppName",
2338
+ "required": true,
2339
+ "type": "string"
2340
+ },
2341
+ {
2342
+ "disabled": false,
2343
+ "document": "用户标识。",
2344
+ "example": "test",
2345
+ "member": "string",
2346
+ "name": "UserId",
2347
+ "required": true,
2348
+ "type": "string"
2349
+ },
2350
+ {
2351
+ "disabled": false,
2352
+ "document": "房间Id。",
2353
+ "example": "23431",
2354
+ "member": "string",
2355
+ "name": "RoomId",
2356
+ "required": true,
2357
+ "type": "string"
2358
+ },
2359
+ {
2360
+ "disabled": false,
2361
+ "document": "充值会员天数。(取值有:31、93、186、372)",
2362
+ "example": "31",
2363
+ "member": "int64",
2364
+ "name": "VipDays",
2365
+ "required": true,
2366
+ "type": "int"
2367
+ },
2368
+ {
2369
+ "disabled": false,
2370
+ "document": "主播id。",
2371
+ "example": "78976",
2372
+ "member": "string",
2373
+ "name": "AnchorId",
2374
+ "required": true,
2375
+ "type": "string"
2376
+ }
2377
+ ],
2378
+ "type": "object"
2379
+ },
2380
+ "RechargeVipResponse": {
2381
+ "document": "RechargeVip返回参数结构体",
2382
+ "members": [
2383
+ {
2384
+ "disabled": false,
2385
+ "document": "厂商订单号。",
2386
+ "example": "无",
2387
+ "member": "string",
2388
+ "name": "PartnerNo",
2389
+ "output_required": false,
2390
+ "type": "string",
2391
+ "value_allowed_null": false
2392
+ },
2393
+ {
2394
+ "disabled": false,
2395
+ "document": "TME订单号。",
2396
+ "example": "无",
2397
+ "member": "string",
2398
+ "name": "OrderNo",
2399
+ "output_required": false,
2400
+ "type": "string",
2401
+ "value_allowed_null": false
2402
+ },
2403
+ {
2404
+ "disabled": false,
2405
+ "document": "订单创建时间。",
2406
+ "example": "无",
2407
+ "member": "string",
2408
+ "name": "CreateTime",
2409
+ "output_required": false,
2410
+ "type": "string",
2411
+ "value_allowed_null": false
2412
+ },
2413
+ {
2414
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
2415
+ "member": "string",
2416
+ "name": "RequestId",
2417
+ "type": "string"
2418
+ }
2419
+ ],
2420
+ "type": "object"
2421
+ },
2117
2422
  "SearchKTVMusicsRequest": {
2118
2423
  "document": "SearchKTVMusics请求参数结构体",
2119
2424
  "members": [
@@ -52,6 +52,14 @@
52
52
  "title": "获取歌曲伴奏链接(脱敏)"
53
53
  }
54
54
  ],
55
+ "DescribeKTVMusicAccompanySegmentUrlVip": [
56
+ {
57
+ "document": "获取歌曲伴奏片段链接(会员)",
58
+ "input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeKTVMusicAccompanySegmentUrlVip\n<公共请求参数>\n\n{\n \"AppName\": \"Mtest\",\n \"UserId\": \"James\",\n \"MusicId\": \"mid-GHJAIQP\"\n}",
59
+ "output": "{\n \"Response\": {\n \"Status\": 0,\n \"Url\": \"abc\",\n \"ExtName\": \"abc\",\n \"SegmentBegin\": 0,\n \"SegmentEnd\": 0,\n \"FileSize\": 0,\n \"RequestId\": \"abc\"\n }\n}",
60
+ "title": "获取歌曲伴奏片段链接(会员)"
61
+ }
62
+ ],
55
63
  "DescribeKTVMusicsByTag": [
56
64
  {
57
65
  "document": "获取标签歌曲信息",
@@ -116,6 +124,14 @@
116
124
  "title": "获取用户信息"
117
125
  }
118
126
  ],
127
+ "DescribeVipUserInfo": [
128
+ {
129
+ "document": "获取会员信息",
130
+ "input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVipUserInfo\n<公共请求参数>\n\n{\n \"AppName\": \"test\",\n \"UserId\": \"James\"\n}",
131
+ "output": "{\n \"Response\": {\n \"AnchorId\": \"James\",\n \"EndTime\": \"2023-12-28 11:53:47\",\n \"IsVip\": 1,\n \"RequestId\": \"75d1a921-a3c1-4cdf-9834-b9eef2130bc0\",\n \"RoomId\": \"123\",\n \"Status\": 1\n }\n}",
132
+ "title": "获取会员信息"
133
+ }
134
+ ],
119
135
  "DestroyKTVRobot": [
120
136
  {
121
137
  "document": "",
@@ -132,6 +148,14 @@
132
148
  "title": "充值直播会员"
133
149
  }
134
150
  ],
151
+ "RechargeVip": [
152
+ {
153
+ "document": "会员充值",
154
+ "input": "POST / HTTP/1.1\nHost: yinsuda.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RechargeVip\n<公共请求参数>\n\n{\n \"AppName\": \"mtest_James\",\n \"UserId\": \"123\",\n \"RoomId\": \"908\",\n \"VipDays\": 31,\n \"AnchorId\": \"123\"\n}",
155
+ "output": "{\n \"Response\": {\n \"CreateTime\": \"2023-11-27 20:21:33\",\n \"OrderNo\": \"11258768abf2dc9b05021467e\",\n \"PartnerNo\": \"fs\",\n \"RequestId\": \"f09060bf-d902-4bfc-a2e2-531c3214b371\"\n }\n}",
156
+ "title": "会员充值"
157
+ }
158
+ ],
135
159
  "SearchKTVMusics": [
136
160
  {
137
161
  "document": "搜索歌曲",
@@ -121,7 +121,7 @@ def doSyncKTVRobotCommand(args, parsed_globals):
121
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
122
 
123
123
 
124
- def doDescribeKTVTags(args, parsed_globals):
124
+ def doDescribeKTVMatchMusics(args, parsed_globals):
125
125
  g_param = parse_global_arg(parsed_globals)
126
126
 
127
127
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -150,11 +150,63 @@ def doDescribeKTVTags(args, parsed_globals):
150
150
  client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
151
151
  client._sdkVersion += ("_CLI_" + __version__)
152
152
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
- model = models.DescribeKTVTagsRequest()
153
+ model = models.DescribeKTVMatchMusicsRequest()
154
154
  model.from_json_string(json.dumps(args))
155
155
  start_time = time.time()
156
156
  while True:
157
- rsp = client.DescribeKTVTags(model)
157
+ rsp = client.DescribeKTVMatchMusics(model)
158
+ result = rsp.to_json_string()
159
+ try:
160
+ json_obj = json.loads(result)
161
+ except TypeError as e:
162
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
163
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
164
+ break
165
+ cur_time = time.time()
166
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
167
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
168
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
169
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
170
+ else:
171
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
172
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
173
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
+
175
+
176
+ def doDescribeKTVPlaylistDetail(args, parsed_globals):
177
+ g_param = parse_global_arg(parsed_globals)
178
+
179
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
180
+ cred = credential.CVMRoleCredential()
181
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
182
+ cred = credential.STSAssumeRoleCredential(
183
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
184
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
185
+ )
186
+ 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):
187
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
188
+ else:
189
+ cred = credential.Credential(
190
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
191
+ )
192
+ http_profile = HttpProfile(
193
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
194
+ reqMethod="POST",
195
+ endpoint=g_param[OptionsDefine.Endpoint],
196
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
197
+ )
198
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
199
+ if g_param[OptionsDefine.Language]:
200
+ profile.language = g_param[OptionsDefine.Language]
201
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
202
+ client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
203
+ client._sdkVersion += ("_CLI_" + __version__)
204
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
+ model = models.DescribeKTVPlaylistDetailRequest()
206
+ model.from_json_string(json.dumps(args))
207
+ start_time = time.time()
208
+ while True:
209
+ rsp = client.DescribeKTVPlaylistDetail(model)
158
210
  result = rsp.to_json_string()
159
211
  try:
160
212
  json_obj = json.loads(result)
@@ -225,7 +277,7 @@ def doApplyChorus(args, parsed_globals):
225
277
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
278
 
227
279
 
228
- def doDescribeKTVPlaylistDetail(args, parsed_globals):
280
+ def doRechargeVip(args, parsed_globals):
229
281
  g_param = parse_global_arg(parsed_globals)
230
282
 
231
283
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -254,11 +306,115 @@ def doDescribeKTVPlaylistDetail(args, parsed_globals):
254
306
  client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
255
307
  client._sdkVersion += ("_CLI_" + __version__)
256
308
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
257
- model = models.DescribeKTVPlaylistDetailRequest()
309
+ model = models.RechargeVipRequest()
258
310
  model.from_json_string(json.dumps(args))
259
311
  start_time = time.time()
260
312
  while True:
261
- rsp = client.DescribeKTVPlaylistDetail(model)
313
+ rsp = client.RechargeVip(model)
314
+ result = rsp.to_json_string()
315
+ try:
316
+ json_obj = json.loads(result)
317
+ except TypeError as e:
318
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
319
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
320
+ break
321
+ cur_time = time.time()
322
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
323
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
324
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
325
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
326
+ else:
327
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
328
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
329
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
+
331
+
332
+ def doDescribeKTVTags(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
341
+ )
342
+ 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):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.DescribeKTVTagsRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.DescribeKTVTags(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
384
+ def doDescribeUserInfo(args, parsed_globals):
385
+ g_param = parse_global_arg(parsed_globals)
386
+
387
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
388
+ cred = credential.CVMRoleCredential()
389
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
390
+ cred = credential.STSAssumeRoleCredential(
391
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
392
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
393
+ )
394
+ 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):
395
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
396
+ else:
397
+ cred = credential.Credential(
398
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
399
+ )
400
+ http_profile = HttpProfile(
401
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
402
+ reqMethod="POST",
403
+ endpoint=g_param[OptionsDefine.Endpoint],
404
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
405
+ )
406
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
407
+ if g_param[OptionsDefine.Language]:
408
+ profile.language = g_param[OptionsDefine.Language]
409
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
410
+ client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
411
+ client._sdkVersion += ("_CLI_" + __version__)
412
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
413
+ model = models.DescribeUserInfoRequest()
414
+ model.from_json_string(json.dumps(args))
415
+ start_time = time.time()
416
+ while True:
417
+ rsp = client.DescribeUserInfo(model)
262
418
  result = rsp.to_json_string()
263
419
  try:
264
420
  json_obj = json.loads(result)
@@ -329,7 +485,7 @@ def doDestroyKTVRobot(args, parsed_globals):
329
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
486
 
331
487
 
332
- def doDescribeKTVMatchMusics(args, parsed_globals):
488
+ def doDescribeKTVMusicAccompanySegmentUrlVip(args, parsed_globals):
333
489
  g_param = parse_global_arg(parsed_globals)
334
490
 
335
491
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -358,11 +514,11 @@ def doDescribeKTVMatchMusics(args, parsed_globals):
358
514
  client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
359
515
  client._sdkVersion += ("_CLI_" + __version__)
360
516
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
- model = models.DescribeKTVMatchMusicsRequest()
517
+ model = models.DescribeKTVMusicAccompanySegmentUrlVipRequest()
362
518
  model.from_json_string(json.dumps(args))
363
519
  start_time = time.time()
364
520
  while True:
365
- rsp = client.DescribeKTVMatchMusics(model)
521
+ rsp = client.DescribeKTVMusicAccompanySegmentUrlVip(model)
366
522
  result = rsp.to_json_string()
367
523
  try:
368
524
  json_obj = json.loads(result)
@@ -433,7 +589,7 @@ def doDescribeKTVSuggestions(args, parsed_globals):
433
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
590
 
435
591
 
436
- def doDescribeUserInfo(args, parsed_globals):
592
+ def doDescribeVipUserInfo(args, parsed_globals):
437
593
  g_param = parse_global_arg(parsed_globals)
438
594
 
439
595
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -462,11 +618,11 @@ def doDescribeUserInfo(args, parsed_globals):
462
618
  client = mod.YinsudaClient(cred, g_param[OptionsDefine.Region], profile)
463
619
  client._sdkVersion += ("_CLI_" + __version__)
464
620
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
- model = models.DescribeUserInfoRequest()
621
+ model = models.DescribeVipUserInfoRequest()
466
622
  model.from_json_string(json.dumps(args))
467
623
  start_time = time.time()
468
624
  while True:
469
- rsp = client.DescribeUserInfo(model)
625
+ rsp = client.DescribeVipUserInfo(model)
470
626
  result = rsp.to_json_string()
471
627
  try:
472
628
  json_obj = json.loads(result)
@@ -914,13 +1070,16 @@ MODELS_MAP = {
914
1070
  ACTION_MAP = {
915
1071
  "CreateKTVRobot": doCreateKTVRobot,
916
1072
  "SyncKTVRobotCommand": doSyncKTVRobotCommand,
917
- "DescribeKTVTags": doDescribeKTVTags,
918
- "ApplyChorus": doApplyChorus,
1073
+ "DescribeKTVMatchMusics": doDescribeKTVMatchMusics,
919
1074
  "DescribeKTVPlaylistDetail": doDescribeKTVPlaylistDetail,
1075
+ "ApplyChorus": doApplyChorus,
1076
+ "RechargeVip": doRechargeVip,
1077
+ "DescribeKTVTags": doDescribeKTVTags,
1078
+ "DescribeUserInfo": doDescribeUserInfo,
920
1079
  "DestroyKTVRobot": doDestroyKTVRobot,
921
- "DescribeKTVMatchMusics": doDescribeKTVMatchMusics,
1080
+ "DescribeKTVMusicAccompanySegmentUrlVip": doDescribeKTVMusicAccompanySegmentUrlVip,
922
1081
  "DescribeKTVSuggestions": doDescribeKTVSuggestions,
923
- "DescribeUserInfo": doDescribeUserInfo,
1082
+ "DescribeVipUserInfo": doDescribeVipUserInfo,
924
1083
  "BatchDescribeKTVMusicDetails": doBatchDescribeKTVMusicDetails,
925
1084
  "DescribeKTVPlaylists": doDescribeKTVPlaylists,
926
1085
  "RechargeLiveVip": doRechargeLiveVip,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1031.1
3
+ Version: 3.0.1032.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.1031
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1032
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介