tccli 3.0.1039.1__py2.py3-none-any.whl → 3.0.1040.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 (37) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/billing/v20180709/DescribeDosageDetailList.md +63 -0
  3. tccli/examples/cfw/v20190904/DescribeIdsWhiteRule.md +10 -0
  4. tccli/examples/tdmq/v20200217/ModifyEnvironmentRole.md +4 -4
  5. tccli/examples/tione/v20211111/DescribeLatestTrainingMetrics.md +8 -2
  6. tccli/examples/tione/v20211111/DescribeNotebooks.md +15 -2
  7. tccli/examples/vod/v20180717/ComposeMedia.md +6 -6
  8. tccli/examples/vod/v20180717/CreateCLSLogset.md +21 -0
  9. tccli/examples/vod/v20180717/CreateCLSTopic.md +23 -0
  10. tccli/examples/vod/v20180717/DeleteCLSTopic.md +20 -0
  11. tccli/examples/vod/v20180717/DescribeCLSLogsets.md +26 -0
  12. tccli/examples/vod/v20180717/DescribeCLSPushTargets.md +38 -0
  13. tccli/examples/vod/v20180717/DescribeCLSTopics.md +31 -0
  14. tccli/examples/vod/v20180717/SetCLSPushTarget.md +25 -0
  15. tccli/services/billing/billing_client.py +61 -8
  16. tccli/services/billing/v20180709/api.json +323 -0
  17. tccli/services/billing/v20180709/examples.json +8 -0
  18. tccli/services/cfs/v20190719/api.json +9 -0
  19. tccli/services/cfw/v20190904/api.json +76 -0
  20. tccli/services/cfw/v20190904/examples.json +1 -1
  21. tccli/services/clb/v20180317/api.json +1 -1
  22. tccli/services/ess/v20201111/api.json +1 -1
  23. tccli/services/essbasic/v20210526/api.json +27 -27
  24. tccli/services/mps/v20190612/api.json +40 -2
  25. tccli/services/tdmq/v20200217/examples.json +2 -2
  26. tccli/services/teo/v20220901/api.json +1 -0
  27. tccli/services/tione/v20211111/api.json +205 -75
  28. tccli/services/tione/v20211111/examples.json +2 -2
  29. tccli/services/trtc/v20190722/api.json +12 -3
  30. tccli/services/vod/v20180717/api.json +555 -0
  31. tccli/services/vod/v20180717/examples.json +57 -1
  32. tccli/services/vod/vod_client.py +375 -4
  33. {tccli-3.0.1039.1.dist-info → tccli-3.0.1040.1.dist-info}/METADATA +2 -2
  34. {tccli-3.0.1039.1.dist-info → tccli-3.0.1040.1.dist-info}/RECORD +37 -29
  35. {tccli-3.0.1039.1.dist-info → tccli-3.0.1040.1.dist-info}/WHEEL +0 -0
  36. {tccli-3.0.1039.1.dist-info → tccli-3.0.1040.1.dist-info}/entry_points.txt +0 -0
  37. {tccli-3.0.1039.1.dist-info → tccli-3.0.1040.1.dist-info}/license_files/LICENSE +0 -0
@@ -39,7 +39,7 @@
39
39
  },
40
40
  {
41
41
  "document": "将5285485487985271487的视频作为画中画的主画面;将5285485487985271488的视频作为画中画的子画面;子画面的中心偏移主画面25%(即在主画面右下角),宽度占画面的30%。",
42
- "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ComposeMedia\n<公共请求参数>\n\n{\n \"Output\": {\n \"Container\": \"mp4\",\n \"FileName\": \"test\"\n },\n \"Tracks\": [\n {\n \"TrackItems\": [\n {\n \"Type\": \"Video\",\n \"VideoItem\": {\n \"CoordinateOrigin\": \"Center\",\n \"Width\": \"30%\",\n \"SourceMedia\": \"5285485487985271488\",\n \"XPos\": \"25%\",\n \"YPos\": \"25%\"\n }\n }\n ],\n \"Type\": \"Video\"\n },\n {\n \"TrackItems\": [\n {\n \"Type\": \"Video\",\n \"VideoItem\": {\n \"SourceMedia\": \"5285485487985271487\"\n }\n }\n ],\n \"Type\": \"Video\"\n }\n ]\n}",
42
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ComposeMedia\n<公共请求参数>\n\n{\n \"Output\": {\n \"Container\": \"mp4\",\n \"FileName\": \"test\"\n },\n \"Tracks\": [\n {\n \"TrackItems\": [\n {\n \"Type\": \"Video\",\n \"VideoItem\": {\n \"SourceMedia\": \"5285485487985271487\"\n }\n }\n ],\n \"Type\": \"Video\"\n },\n {\n \"TrackItems\": [\n {\n \"Type\": \"Video\",\n \"VideoItem\": {\n \"CoordinateOrigin\": \"Center\",\n \"Width\": \"30%\",\n \"SourceMedia\": \"5285485487985271488\",\n \"XPos\": \"25%\",\n \"YPos\": \"25%\"\n }\n }\n ],\n \"Type\": \"Video\"\n }\n ]\n}",
43
43
  "output": "{\n \"Response\": {\n \"RequestId\": \"6ca31e3a-6b8e-4b4e-9256-fdc700064ef3\",\n \"TaskId\": \"125xxx65-ComposeMedia-bffb15f07530b57bc1aabb01fac74bca\"\n }\n}",
44
44
  "title": "将一个视频作为另一个视频的画中画"
45
45
  }
@@ -108,6 +108,22 @@
108
108
  "title": "创建转动图模板"
109
109
  }
110
110
  ],
111
+ "CreateCLSLogset": [
112
+ {
113
+ "document": "",
114
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCLSLogset\n<公共请求参数>\n\n{\n \"CLSRegion\": \"ap-guangzhou\"\n}",
115
+ "output": "{\n \"Response\": {\n \"LogsetId\": \"54079098-61ea-48f9-8270-3b041a5d0150\",\n \"RequestId\": \"xxx\"\n }\n}",
116
+ "title": "创建一个新的日志集"
117
+ }
118
+ ],
119
+ "CreateCLSTopic": [
120
+ {
121
+ "document": "",
122
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCLSTopic\n<公共请求参数>\n\n{\n \"CLSRegion\": \"ap-guangzhou\",\n \"TopicName\": \"mytopic\",\n \"LogsetId\": \"54079098-61ea-48f9-8270-3b041a5d0150\"\n}",
123
+ "output": "{\n \"Response\": {\n \"TopicId\": \"780ba384-5bc1-4cb1-a0e9-0cf8fafd3ee0\",\n \"RequestId\": \"xxx\"\n }\n}",
124
+ "title": "创建一个新的日志主题"
125
+ }
126
+ ],
111
127
  "CreateClass": [
112
128
  {
113
129
  "document": "",
@@ -384,6 +400,14 @@
384
400
  "title": "删除转动图模板"
385
401
  }
386
402
  ],
403
+ "DeleteCLSTopic": [
404
+ {
405
+ "document": "",
406
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteCLSTopic\n<公共请求参数>\n\n{\n \"TopicId\": \"780ba384-5bc1-4cb1-a0e9-0cf8fafd3ee0\"\n}",
407
+ "output": "{\n \"Response\": {\n \"RequestId\": \"xxx\"\n }\n}",
408
+ "title": "删除CLS日志主题"
409
+ }
410
+ ],
387
411
  "DeleteClass": [
388
412
  {
389
413
  "document": "",
@@ -644,6 +668,30 @@
644
668
  "title": "管理员查询所有域名从2018-12-01到2018-12-07的带宽数据"
645
669
  }
646
670
  ],
671
+ "DescribeCLSLogsets": [
672
+ {
673
+ "document": "",
674
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCLSLogsets\n<公共请求参数>\n\n{\n \"CLSRegion\": \"ap-guangzhou\"\n}",
675
+ "output": "{\n \"Response\": {\n \"Logsets\": [\n {\n \"LogsetId\": \"54079098-61ea-48f9-8270-3b041a5d0150\",\n \"LogsetName\": \"vod_cdn_logset_cn\"\n }\n ],\n \"RequestId\": \"xxx\"\n }\n}",
676
+ "title": "查询点播创建的广州地区日志集"
677
+ }
678
+ ],
679
+ "DescribeCLSPushTargets": [
680
+ {
681
+ "document": "",
682
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCLSPushTargets\n<公共请求参数>\n\n{\n \"Domains\": [\n \"xxx.vod-qcloud.com\"\n ]\n}",
683
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"DomainCLSTargets\": [\n {\n \"Domain\": \"xxx.vod-qcloud.com\",\n \"ChineseMainlandCLSTargetInfo\": {\n \"Switch\": \"OFF\",\n \"CLSRegion\": \"ap-guangzhou\",\n \"TopicId\": \"\",\n \"LogsetId\": \"\"\n },\n \"OutsideChineseMainlandCLSTargetInfo\": {\n \"Switch\": \"OFF\",\n \"CLSRegion\": \"ap-singapore\",\n \"TopicId\": \"\",\n \"LogsetId\": \"\"\n }\n }\n ],\n \"RequestId\": \"xxx\"\n }\n}",
684
+ "title": "查询日志投递目标"
685
+ }
686
+ ],
687
+ "DescribeCLSTopics": [
688
+ {
689
+ "document": "",
690
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCLSTopics\n<公共请求参数>\n\n{\n \"CLSRegion\": \"ap-guangzhou\",\n \"LogsetId\": \"54079098-61ea-48f9-8270-3b041a5d0150\",\n \"Offset\": 0,\n \"Limit\": 0\n}",
691
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Topics\": [\n {\n \"TopicId\": \"780ba384-5bc1-4cb1-a0e9-0cf8fafd3ee0\",\n \"TopicName\": \"mytopic\",\n \"LogsetId\": \"54079098-61ea-48f9-8270-3b041a5d0150\"\n }\n ],\n \"RequestId\": \"xxx\"\n }\n}",
692
+ "title": "查询指定日志主题"
693
+ }
694
+ ],
647
695
  "DescribeCdnLogs": [
648
696
  {
649
697
  "document": "",
@@ -1698,6 +1746,14 @@
1698
1746
  "title": "根据分类搜索一定时间范围内的图片文件,并只返回文件基础信息,并且按创建时间降序排序"
1699
1747
  }
1700
1748
  ],
1749
+ "SetCLSPushTarget": [
1750
+ {
1751
+ "document": "",
1752
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetCLSPushTarget\n<公共请求参数>\n\n{\n \"SubAppId\": 0,\n \"Domain\": \"abc.com\",\n \"ChineseMainlandCLSTargetInfo\": {\n \"Switch\": \"ON\",\n \"CLSRegion\": \"ap-guangzhou\",\n \"TopicId\": \"abc\",\n \"LogsetId\": \"abc\"\n }\n}",
1753
+ "output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
1754
+ "title": "设置中国大陆地区的日志投递目标"
1755
+ }
1756
+ ],
1701
1757
  "SetDrmKeyProviderInfo": [
1702
1758
  {
1703
1759
  "document": "",
@@ -69,6 +69,58 @@ def doCreateImageProcessingTemplate(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
+ def doDescribeCLSLogsets(args, parsed_globals):
73
+ g_param = parse_global_arg(parsed_globals)
74
+
75
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
+ cred = credential.CVMRoleCredential()
77
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
+ cred = credential.STSAssumeRoleCredential(
79
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
+ )
82
+ 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):
83
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
+ else:
85
+ cred = credential.Credential(
86
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
+ )
88
+ http_profile = HttpProfile(
89
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
+ reqMethod="POST",
91
+ endpoint=g_param[OptionsDefine.Endpoint],
92
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
+ )
94
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
+ if g_param[OptionsDefine.Language]:
96
+ profile.language = g_param[OptionsDefine.Language]
97
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
99
+ client._sdkVersion += ("_CLI_" + __version__)
100
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
+ model = models.DescribeCLSLogsetsRequest()
102
+ model.from_json_string(json.dumps(args))
103
+ start_time = time.time()
104
+ while True:
105
+ rsp = client.DescribeCLSLogsets(model)
106
+ result = rsp.to_json_string()
107
+ try:
108
+ json_obj = json.loads(result)
109
+ except TypeError as e:
110
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
111
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
+ break
113
+ cur_time = time.time()
114
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
+ else:
119
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
+
123
+
72
124
  def doCreateRoundPlay(args, parsed_globals):
73
125
  g_param = parse_global_arg(parsed_globals)
74
126
 
@@ -1525,7 +1577,7 @@ def doDescribeCdnLogs(args, parsed_globals):
1525
1577
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
1578
 
1527
1579
 
1528
- def doModifyClass(args, parsed_globals):
1580
+ def doCreateCLSLogset(args, parsed_globals):
1529
1581
  g_param = parse_global_arg(parsed_globals)
1530
1582
 
1531
1583
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1554,11 +1606,63 @@ def doModifyClass(args, parsed_globals):
1554
1606
  client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
1555
1607
  client._sdkVersion += ("_CLI_" + __version__)
1556
1608
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1557
- model = models.ModifyClassRequest()
1609
+ model = models.CreateCLSLogsetRequest()
1558
1610
  model.from_json_string(json.dumps(args))
1559
1611
  start_time = time.time()
1560
1612
  while True:
1561
- rsp = client.ModifyClass(model)
1613
+ rsp = client.CreateCLSLogset(model)
1614
+ result = rsp.to_json_string()
1615
+ try:
1616
+ json_obj = json.loads(result)
1617
+ except TypeError as e:
1618
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1619
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1620
+ break
1621
+ cur_time = time.time()
1622
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1623
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1624
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1625
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1626
+ else:
1627
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1628
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1629
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
+
1631
+
1632
+ def doSetCLSPushTarget(args, parsed_globals):
1633
+ g_param = parse_global_arg(parsed_globals)
1634
+
1635
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1636
+ cred = credential.CVMRoleCredential()
1637
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1638
+ cred = credential.STSAssumeRoleCredential(
1639
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1640
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1641
+ )
1642
+ 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):
1643
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1644
+ else:
1645
+ cred = credential.Credential(
1646
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1647
+ )
1648
+ http_profile = HttpProfile(
1649
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1650
+ reqMethod="POST",
1651
+ endpoint=g_param[OptionsDefine.Endpoint],
1652
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1653
+ )
1654
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1655
+ if g_param[OptionsDefine.Language]:
1656
+ profile.language = g_param[OptionsDefine.Language]
1657
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1658
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
1659
+ client._sdkVersion += ("_CLI_" + __version__)
1660
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
+ model = models.SetCLSPushTargetRequest()
1662
+ model.from_json_string(json.dumps(args))
1663
+ start_time = time.time()
1664
+ while True:
1665
+ rsp = client.SetCLSPushTarget(model)
1562
1666
  result = rsp.to_json_string()
1563
1667
  try:
1564
1668
  json_obj = json.loads(result)
@@ -1681,6 +1785,58 @@ def doCreateStorageRegion(args, parsed_globals):
1681
1785
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1786
 
1683
1787
 
1788
+ def doDeleteCLSTopic(args, parsed_globals):
1789
+ g_param = parse_global_arg(parsed_globals)
1790
+
1791
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1792
+ cred = credential.CVMRoleCredential()
1793
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1794
+ cred = credential.STSAssumeRoleCredential(
1795
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1796
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1797
+ )
1798
+ 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):
1799
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1800
+ else:
1801
+ cred = credential.Credential(
1802
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1803
+ )
1804
+ http_profile = HttpProfile(
1805
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1806
+ reqMethod="POST",
1807
+ endpoint=g_param[OptionsDefine.Endpoint],
1808
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1809
+ )
1810
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1811
+ if g_param[OptionsDefine.Language]:
1812
+ profile.language = g_param[OptionsDefine.Language]
1813
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1814
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
1815
+ client._sdkVersion += ("_CLI_" + __version__)
1816
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1817
+ model = models.DeleteCLSTopicRequest()
1818
+ model.from_json_string(json.dumps(args))
1819
+ start_time = time.time()
1820
+ while True:
1821
+ rsp = client.DeleteCLSTopic(model)
1822
+ result = rsp.to_json_string()
1823
+ try:
1824
+ json_obj = json.loads(result)
1825
+ except TypeError as e:
1826
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1827
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1828
+ break
1829
+ cur_time = time.time()
1830
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1831
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1832
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1833
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1834
+ else:
1835
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1836
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1837
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1838
+
1839
+
1684
1840
  def doResetProcedureTemplate(args, parsed_globals):
1685
1841
  g_param = parse_global_arg(parsed_globals)
1686
1842
 
@@ -3813,6 +3969,58 @@ def doDescribeImageReviewUsageData(args, parsed_globals):
3813
3969
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
3970
 
3815
3971
 
3972
+ def doDescribeCLSPushTargets(args, parsed_globals):
3973
+ g_param = parse_global_arg(parsed_globals)
3974
+
3975
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3976
+ cred = credential.CVMRoleCredential()
3977
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3978
+ cred = credential.STSAssumeRoleCredential(
3979
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3980
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3981
+ )
3982
+ 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):
3983
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3984
+ else:
3985
+ cred = credential.Credential(
3986
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3987
+ )
3988
+ http_profile = HttpProfile(
3989
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3990
+ reqMethod="POST",
3991
+ endpoint=g_param[OptionsDefine.Endpoint],
3992
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3993
+ )
3994
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3995
+ if g_param[OptionsDefine.Language]:
3996
+ profile.language = g_param[OptionsDefine.Language]
3997
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3998
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
3999
+ client._sdkVersion += ("_CLI_" + __version__)
4000
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4001
+ model = models.DescribeCLSPushTargetsRequest()
4002
+ model.from_json_string(json.dumps(args))
4003
+ start_time = time.time()
4004
+ while True:
4005
+ rsp = client.DescribeCLSPushTargets(model)
4006
+ result = rsp.to_json_string()
4007
+ try:
4008
+ json_obj = json.loads(result)
4009
+ except TypeError as e:
4010
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4011
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4012
+ break
4013
+ cur_time = time.time()
4014
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4015
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4016
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4017
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4018
+ else:
4019
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4020
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4021
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
+
4023
+
3816
4024
  def doEnhanceMediaByTemplate(args, parsed_globals):
3817
4025
  g_param = parse_global_arg(parsed_globals)
3818
4026
 
@@ -4177,6 +4385,110 @@ def doDeleteAnimatedGraphicsTemplate(args, parsed_globals):
4177
4385
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4178
4386
 
4179
4387
 
4388
+ def doDescribeCLSTopics(args, parsed_globals):
4389
+ g_param = parse_global_arg(parsed_globals)
4390
+
4391
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4392
+ cred = credential.CVMRoleCredential()
4393
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4394
+ cred = credential.STSAssumeRoleCredential(
4395
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4396
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4397
+ )
4398
+ 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):
4399
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4400
+ else:
4401
+ cred = credential.Credential(
4402
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4403
+ )
4404
+ http_profile = HttpProfile(
4405
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4406
+ reqMethod="POST",
4407
+ endpoint=g_param[OptionsDefine.Endpoint],
4408
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4409
+ )
4410
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4411
+ if g_param[OptionsDefine.Language]:
4412
+ profile.language = g_param[OptionsDefine.Language]
4413
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4414
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4415
+ client._sdkVersion += ("_CLI_" + __version__)
4416
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4417
+ model = models.DescribeCLSTopicsRequest()
4418
+ model.from_json_string(json.dumps(args))
4419
+ start_time = time.time()
4420
+ while True:
4421
+ rsp = client.DescribeCLSTopics(model)
4422
+ result = rsp.to_json_string()
4423
+ try:
4424
+ json_obj = json.loads(result)
4425
+ except TypeError as e:
4426
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4427
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4428
+ break
4429
+ cur_time = time.time()
4430
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4431
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4432
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4433
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4434
+ else:
4435
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4436
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4437
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4438
+
4439
+
4440
+ def doCreateCLSTopic(args, parsed_globals):
4441
+ g_param = parse_global_arg(parsed_globals)
4442
+
4443
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4444
+ cred = credential.CVMRoleCredential()
4445
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4446
+ cred = credential.STSAssumeRoleCredential(
4447
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4448
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4449
+ )
4450
+ 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):
4451
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4452
+ else:
4453
+ cred = credential.Credential(
4454
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4455
+ )
4456
+ http_profile = HttpProfile(
4457
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4458
+ reqMethod="POST",
4459
+ endpoint=g_param[OptionsDefine.Endpoint],
4460
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4461
+ )
4462
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4463
+ if g_param[OptionsDefine.Language]:
4464
+ profile.language = g_param[OptionsDefine.Language]
4465
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4466
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
4467
+ client._sdkVersion += ("_CLI_" + __version__)
4468
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4469
+ model = models.CreateCLSTopicRequest()
4470
+ model.from_json_string(json.dumps(args))
4471
+ start_time = time.time()
4472
+ while True:
4473
+ rsp = client.CreateCLSTopic(model)
4474
+ result = rsp.to_json_string()
4475
+ try:
4476
+ json_obj = json.loads(result)
4477
+ except TypeError as e:
4478
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4479
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4480
+ break
4481
+ cur_time = time.time()
4482
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4483
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4484
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4485
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4486
+ else:
4487
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4488
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4489
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
+
4491
+
4180
4492
  def doDeleteContentReviewTemplate(args, parsed_globals):
4181
4493
  g_param = parse_global_arg(parsed_globals)
4182
4494
 
@@ -8285,6 +8597,58 @@ def doDeleteRoundPlay(args, parsed_globals):
8285
8597
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8286
8598
 
8287
8599
 
8600
+ def doModifyClass(args, parsed_globals):
8601
+ g_param = parse_global_arg(parsed_globals)
8602
+
8603
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
8604
+ cred = credential.CVMRoleCredential()
8605
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
8606
+ cred = credential.STSAssumeRoleCredential(
8607
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8608
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8609
+ )
8610
+ 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):
8611
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8612
+ else:
8613
+ cred = credential.Credential(
8614
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
8615
+ )
8616
+ http_profile = HttpProfile(
8617
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
8618
+ reqMethod="POST",
8619
+ endpoint=g_param[OptionsDefine.Endpoint],
8620
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8621
+ )
8622
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8623
+ if g_param[OptionsDefine.Language]:
8624
+ profile.language = g_param[OptionsDefine.Language]
8625
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
8626
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
8627
+ client._sdkVersion += ("_CLI_" + __version__)
8628
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
8629
+ model = models.ModifyClassRequest()
8630
+ model.from_json_string(json.dumps(args))
8631
+ start_time = time.time()
8632
+ while True:
8633
+ rsp = client.ModifyClass(model)
8634
+ result = rsp.to_json_string()
8635
+ try:
8636
+ json_obj = json.loads(result)
8637
+ except TypeError as e:
8638
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
8639
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
8640
+ break
8641
+ cur_time = time.time()
8642
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
8643
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
8644
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
8645
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
8646
+ else:
8647
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
8648
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
8649
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8650
+
8651
+
8288
8652
  def doModifyContentReviewTemplate(args, parsed_globals):
8289
8653
  g_param = parse_global_arg(parsed_globals)
8290
8654
 
@@ -8765,6 +9129,7 @@ MODELS_MAP = {
8765
9129
 
8766
9130
  ACTION_MAP = {
8767
9131
  "CreateImageProcessingTemplate": doCreateImageProcessingTemplate,
9132
+ "DescribeCLSLogsets": doDescribeCLSLogsets,
8768
9133
  "CreateRoundPlay": doCreateRoundPlay,
8769
9134
  "ModifyDefaultStorageRegion": doModifyDefaultStorageRegion,
8770
9135
  "ExtractTraceWatermark": doExtractTraceWatermark,
@@ -8793,9 +9158,11 @@ ACTION_MAP = {
8793
9158
  "DeleteSnapshotByTimeOffsetTemplate": doDeleteSnapshotByTimeOffsetTemplate,
8794
9159
  "RemoveWatermark": doRemoveWatermark,
8795
9160
  "DescribeCdnLogs": doDescribeCdnLogs,
8796
- "ModifyClass": doModifyClass,
9161
+ "CreateCLSLogset": doCreateCLSLogset,
9162
+ "SetCLSPushTarget": doSetCLSPushTarget,
8797
9163
  "DescribeTasks": doDescribeTasks,
8798
9164
  "CreateStorageRegion": doCreateStorageRegion,
9165
+ "DeleteCLSTopic": doDeleteCLSTopic,
8799
9166
  "ResetProcedureTemplate": doResetProcedureTemplate,
8800
9167
  "DescribeCDNUsageData": doDescribeCDNUsageData,
8801
9168
  "CreateTranscodeTemplate": doCreateTranscodeTemplate,
@@ -8837,6 +9204,7 @@ ACTION_MAP = {
8837
9204
  "PushUrlCache": doPushUrlCache,
8838
9205
  "DeleteMedia": doDeleteMedia,
8839
9206
  "DescribeImageReviewUsageData": doDescribeImageReviewUsageData,
9207
+ "DescribeCLSPushTargets": doDescribeCLSPushTargets,
8840
9208
  "EnhanceMediaByTemplate": doEnhanceMediaByTemplate,
8841
9209
  "ModifyPersonSample": doModifyPersonSample,
8842
9210
  "CreateEnhanceMediaTemplate": doCreateEnhanceMediaTemplate,
@@ -8844,6 +9212,8 @@ ACTION_MAP = {
8844
9212
  "ModifyRoundPlay": doModifyRoundPlay,
8845
9213
  "DescribeDailyMediaPlayStat": doDescribeDailyMediaPlayStat,
8846
9214
  "DeleteAnimatedGraphicsTemplate": doDeleteAnimatedGraphicsTemplate,
9215
+ "DescribeCLSTopics": doDescribeCLSTopics,
9216
+ "CreateCLSTopic": doCreateCLSTopic,
8847
9217
  "DeleteContentReviewTemplate": doDeleteContentReviewTemplate,
8848
9218
  "CreateAIAnalysisTemplate": doCreateAIAnalysisTemplate,
8849
9219
  "DescribeDailyMostPlayedStat": doDescribeDailyMostPlayedStat,
@@ -8923,6 +9293,7 @@ ACTION_MAP = {
8923
9293
  "CreatePersonSample": doCreatePersonSample,
8924
9294
  "ModifySubAppIdStatus": doModifySubAppIdStatus,
8925
9295
  "DeleteRoundPlay": doDeleteRoundPlay,
9296
+ "ModifyClass": doModifyClass,
8926
9297
  "ModifyContentReviewTemplate": doModifyContentReviewTemplate,
8927
9298
  "DeleteVodDomain": doDeleteVodDomain,
8928
9299
  "DescribeSuperPlayerConfigs": doDescribeSuperPlayerConfigs,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1039.1
3
+ Version: 3.0.1040.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.1039
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1040
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介