tccli 3.0.1189.1__py2.py3-none-any.whl → 3.0.1191.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 (66) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/command.py +7 -1
  3. tccli/configure.py +11 -3
  4. tccli/loaders.py +43 -8
  5. tccli/oauth.py +115 -0
  6. tccli/plugin.py +30 -0
  7. tccli/plugins/__init__.py +0 -0
  8. tccli/plugins/auth/__init__.py +59 -0
  9. tccli/plugins/auth/browser_flow.py +88 -0
  10. tccli/plugins/auth/login.py +130 -0
  11. tccli/plugins/auth/logout.py +21 -0
  12. tccli/plugins/auth/texts.py +30 -0
  13. tccli/plugins/test/__init__.py +87 -0
  14. tccli/plugins/test/add.py +31 -0
  15. tccli/services/__init__.py +2 -1
  16. tccli/services/apm/v20210622/api.json +19 -0
  17. tccli/services/cam/cam_client.py +138 -32
  18. tccli/services/cam/v20190116/api.json +203 -0
  19. tccli/services/cam/v20190116/examples.json +16 -0
  20. tccli/services/cdb/v20170320/api.json +4 -4
  21. tccli/services/cfg/v20210820/api.json +1 -1
  22. tccli/services/cfw/v20190904/api.json +82 -2
  23. tccli/services/dasb/dasb_client.py +53 -0
  24. tccli/services/dasb/v20191018/api.json +168 -0
  25. tccli/services/dasb/v20191018/examples.json +8 -0
  26. tccli/services/dlc/v20210125/api.json +287 -37
  27. tccli/services/dlc/v20210125/examples.json +18 -18
  28. tccli/services/dsgc/v20190723/api.json +13 -3
  29. tccli/services/emr/v20190103/api.json +1 -1
  30. tccli/services/ess/v20201111/api.json +56 -23
  31. tccli/services/ess/v20201111/examples.json +7 -1
  32. tccli/services/essbasic/v20210526/api.json +28 -1
  33. tccli/services/essbasic/v20210526/examples.json +6 -0
  34. tccli/services/iotexplorer/v20190423/api.json +2 -2
  35. tccli/services/iss/iss_client.py +118 -65
  36. tccli/services/iss/v20230517/api.json +78 -0
  37. tccli/services/iss/v20230517/examples.json +8 -0
  38. tccli/services/mps/v20190612/api.json +257 -8
  39. tccli/services/ocr/v20181119/api.json +10 -0
  40. tccli/services/region/v20220627/api.json +11 -11
  41. tccli/services/region/v20220627/examples.json +1 -1
  42. tccli/services/sms/v20210111/api.json +9 -9
  43. tccli/services/ssl/v20191205/api.json +3 -3
  44. tccli/services/ssl/v20191205/examples.json +2 -2
  45. tccli/services/tat/v20201028/api.json +10 -0
  46. tccli/services/tcb/v20180608/api.json +2 -2
  47. tccli/services/tdmq/v20200217/api.json +2 -2
  48. tccli/services/tdmq/v20200217/examples.json +2 -2
  49. tccli/services/tke/tke_client.py +364 -46
  50. tccli/services/tke/v20180525/api.json +9 -0
  51. tccli/services/tke/v20220501/api.json +525 -0
  52. tccli/services/tke/v20220501/examples.json +54 -0
  53. tccli/services/tmt/v20180321/api.json +2 -2
  54. tccli/services/vdb/v20230616/api.json +29 -1
  55. tccli/services/vod/v20180717/api.json +30 -9
  56. tccli/services/vod/v20180717/examples.json +1 -1
  57. tccli/services/vod/v20240718/api.json +121 -0
  58. tccli/services/vod/v20240718/examples.json +31 -0
  59. tccli/services/vod/vod_client.py +58 -0
  60. tccli/services/vpc/v20170312/api.json +9 -0
  61. tccli/services/wedata/v20210820/api.json +1 -1
  62. {tccli-3.0.1189.1.dist-info → tccli-3.0.1191.1.dist-info}/METADATA +2 -2
  63. {tccli-3.0.1189.1.dist-info → tccli-3.0.1191.1.dist-info}/RECORD +66 -54
  64. {tccli-3.0.1189.1.dist-info → tccli-3.0.1191.1.dist-info}/WHEEL +0 -0
  65. {tccli-3.0.1189.1.dist-info → tccli-3.0.1191.1.dist-info}/entry_points.txt +0 -0
  66. {tccli-3.0.1189.1.dist-info → tccli-3.0.1191.1.dist-info}/license_files/LICENSE +0 -0
@@ -62,7 +62,7 @@
62
62
  "members": [
63
63
  {
64
64
  "disabled": false,
65
- "document": "源语言,支持\nzh:简体中文\nzh-HK:繁体中文\nzh-TW : 繁体中文\nzh-TR: 繁体中文\nen :英语\nar:阿拉伯语\nde:德语\nes:西班牙语\nfr:法语\nit:意大利语\nja:日语\npt:葡萄牙语\nru:俄语\nko:韩语\nkm:高棉语\nlo:老挝语",
65
+ "document": "源语言,支持\nzh:简体中文\nzh-HK:繁体中文\nzh-TW:繁体中文\nzh-TR:繁体中文\nen:英语\nar:阿拉伯语\nde:德语\nes:西班牙语\nfr:法语\nit:意大利语\nja:日语\npt:葡萄牙语\nru:俄语\nko:韩语\nth:泰语",
66
66
  "example": "zh",
67
67
  "member": "string",
68
68
  "name": "Source",
@@ -71,7 +71,7 @@
71
71
  },
72
72
  {
73
73
  "disabled": false,
74
- "document": "目标语言,各源语言的目标语言支持列表如下\nzh(简体中文): en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)\nzh-HK(繁体中文) :en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)\nzh-TW(繁体中文):en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)\nzh-TR 繁体中文 : en (英语)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)\nen (英语) :zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、 zh-TR(繁体中文)、 ar (阿拉伯语)、 de (德语)、 es(西班牙语) 、fr(法语)、 it(意大利语) 、 ja (日语)、 pt (葡萄牙语)、 ru(俄语)、 ko(韩语)、 km(高棉语)、 lo(老挝语)\nar(阿拉伯语) :zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nde(德语 ):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nes(西班牙语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nfr(法语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nit(意大利语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nja(日语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\npt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nru(俄语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nko(韩语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nkm(高棉语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)\nlo(老挝语):zh(简体中文)、zh-HK(繁体中文)、 zh-TW(繁体中文)、zh-TR(繁体中文)",
74
+ "document": "目标语言,各源语言的目标语言支持列表如下\nzh(简体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)\nzh-HK(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)\nzh-TW(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)\nzh-TR(繁体中文):en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)\nen(英语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、it(意大利语)、ja(日语)、pt(葡萄牙语)、ru(俄语)、ko(韩语)、tr(土耳其语)、vi(越南语)、th(泰语)\nar(阿拉伯语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\nde(德语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\nes(西班牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、fr(法语)\nfr(法语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)、es(西班牙语)\nit(意大利语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\nja(日语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\npt(葡萄牙语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\nru(俄语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\nko(韩语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\ntr(土耳其语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\nvi(越南语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)\nth(泰语):zh(简体中文)、zh-HK(繁体中文)、zh-TW(繁体中文)、zh-TR(繁体中文)、en(英语)",
75
75
  "example": "en",
76
76
  "member": "string",
77
77
  "name": "Target",
@@ -125,7 +125,35 @@
125
125
  },
126
126
  "DescribeInstanceNodesRequest": {
127
127
  "document": "DescribeInstanceNodes请求参数结构体",
128
- "members": [],
128
+ "members": [
129
+ {
130
+ "disabled": false,
131
+ "document": "limit",
132
+ "example": "无",
133
+ "member": "int64",
134
+ "name": "Limit",
135
+ "required": false,
136
+ "type": "int"
137
+ },
138
+ {
139
+ "disabled": false,
140
+ "document": "offset",
141
+ "example": "无",
142
+ "member": "int64",
143
+ "name": "Offset",
144
+ "required": false,
145
+ "type": "int"
146
+ },
147
+ {
148
+ "disabled": false,
149
+ "document": "component",
150
+ "example": "无",
151
+ "member": "string",
152
+ "name": "Component",
153
+ "required": false,
154
+ "type": "string"
155
+ }
156
+ ],
129
157
  "type": "object"
130
158
  },
131
159
  "DescribeInstanceNodesResponse": {
@@ -1598,7 +1598,6 @@
1598
1598
  "member": "int64",
1599
1599
  "name": "Definition",
1600
1600
  "output_required": true,
1601
- "required": true,
1602
1601
  "type": "int",
1603
1602
  "value_allowed_null": false
1604
1603
  },
@@ -1609,7 +1608,6 @@
1609
1608
  "member": "string",
1610
1609
  "name": "Package",
1611
1610
  "output_required": true,
1612
- "required": true,
1613
1611
  "type": "string",
1614
1612
  "value_allowed_null": false
1615
1613
  },
@@ -1620,7 +1618,6 @@
1620
1618
  "member": "string",
1621
1619
  "name": "DrmType",
1622
1620
  "output_required": true,
1623
- "required": true,
1624
1621
  "type": "string",
1625
1622
  "value_allowed_null": false
1626
1623
  },
@@ -1631,7 +1628,6 @@
1631
1628
  "member": "string",
1632
1629
  "name": "Url",
1633
1630
  "output_required": true,
1634
- "required": true,
1635
1631
  "type": "string",
1636
1632
  "value_allowed_null": false
1637
1633
  },
@@ -1642,7 +1638,6 @@
1642
1638
  "member": "int64",
1643
1639
  "name": "Size",
1644
1640
  "output_required": true,
1645
- "required": false,
1646
1641
  "type": "int",
1647
1642
  "value_allowed_null": false
1648
1643
  },
@@ -1653,7 +1648,6 @@
1653
1648
  "member": "string",
1654
1649
  "name": "DigitalWatermarkType",
1655
1650
  "output_required": true,
1656
- "required": false,
1657
1651
  "type": "string",
1658
1652
  "value_allowed_null": false
1659
1653
  },
@@ -1664,7 +1658,6 @@
1664
1658
  "member": "MediaSubStreamInfoItem",
1665
1659
  "name": "SubStreamSet",
1666
1660
  "output_required": true,
1667
- "required": false,
1668
1661
  "type": "list",
1669
1662
  "value_allowed_null": false
1670
1663
  },
@@ -1675,12 +1668,31 @@
1675
1668
  "member": "string",
1676
1669
  "name": "CopyRightWatermarkText",
1677
1670
  "output_required": true,
1678
- "required": false,
1671
+ "type": "string",
1672
+ "value_allowed_null": false
1673
+ },
1674
+ {
1675
+ "disabled": false,
1676
+ "document": "字幕信息列表。",
1677
+ "example": "无",
1678
+ "member": "MediaSubtitleItem",
1679
+ "name": "SubtitleSet",
1680
+ "output_required": false,
1681
+ "type": "list",
1682
+ "value_allowed_null": false
1683
+ },
1684
+ {
1685
+ "disabled": false,
1686
+ "document": "默认字幕的唯一标识。",
1687
+ "example": "subtitle1",
1688
+ "member": "string",
1689
+ "name": "DefaultSubtitleId",
1690
+ "output_required": false,
1679
1691
  "type": "string",
1680
1692
  "value_allowed_null": false
1681
1693
  }
1682
1694
  ],
1683
- "usage": "both"
1695
+ "usage": "out"
1684
1696
  },
1685
1697
  "AdaptiveDynamicStreamingTaskInput": {
1686
1698
  "document": "对视频转自适应码流的输入参数类型",
@@ -7189,6 +7201,15 @@
7189
7201
  "required": true,
7190
7202
  "type": "list"
7191
7203
  },
7204
+ {
7205
+ "disabled": false,
7206
+ "document": "默认字幕的唯一标识。不填则不设置默认字幕。",
7207
+ "example": "123",
7208
+ "member": "string",
7209
+ "name": "DefaultSubtitleId",
7210
+ "required": false,
7211
+ "type": "string"
7212
+ },
7192
7213
  {
7193
7214
  "disabled": false,
7194
7215
  "document": "<b>点播[应用](/document/product/266/14574) ID。从2023年12月25日起开通点播的客户,如访问点播应用中的资源(无论是默认应用还是新创建的应用),必须将该字段填写为应用 ID。</b>",
@@ -11,7 +11,7 @@
11
11
  "AttachMediaSubtitles": [
12
12
  {
13
13
  "document": "",
14
- "input": "https://vod.tencentcloudapi.com/?Action=AttachMediaSubtitles\n&FileId=123\n&AdaptiveDynamicStreamingDefinition=10000\n&Operation=Attach\n&SubtitleIds.0=subtitle1\n&SubtitleIds.1=subtitle2\n&<公共请求参数>",
14
+ "input": "https://vod.tencentcloudapi.com/?Action=AttachMediaSubtitles\n&FileId=123\n&AdaptiveDynamicStreamingDefinition=10000\n&Operation=Attach\n&SubtitleIds.0=subtitle1\n&SubtitleIds.1=subtitle2\n&DefaultSubtitleId=subtitle2\n&<公共请求参数>",
15
15
  "output": "{\n \"Response\": {\n \"RequestId\": \"requestId\"\n }\n}",
16
16
  "title": "关联字幕"
17
17
  }
@@ -0,0 +1,121 @@
1
+ {
2
+ "actions": {
3
+ "CreateStorageCredentials": {
4
+ "document": "用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。",
5
+ "input": "CreateStorageCredentialsRequest",
6
+ "name": "创建应用存储临时访问凭证",
7
+ "output": "CreateStorageCredentialsResponse",
8
+ "status": "online"
9
+ }
10
+ },
11
+ "metadata": {
12
+ "apiVersion": "2024-07-18",
13
+ "api_brief": "介绍如何使用API对云点播进行操作,如事件通知、视频处理、媒资管理等。",
14
+ "serviceNameCN": "云点播",
15
+ "serviceShortName": "vod"
16
+ },
17
+ "objects": {
18
+ "CreateStorageCredentialsRequest": {
19
+ "document": "CreateStorageCredentials请求参数结构体",
20
+ "members": [
21
+ {
22
+ "disabled": false,
23
+ "document": "<b>点播[应用](/document/product/266/14574) ID。</b>",
24
+ "example": "123456789012",
25
+ "member": "uint64",
26
+ "name": "SubAppId",
27
+ "required": true,
28
+ "type": "int"
29
+ },
30
+ {
31
+ "disabled": false,
32
+ "document": "按照下方语法组装好策略后,先序列化为字符串,再做 urlencode,结果作为 Policy 字段入参。服务端会对该字段做 urldecode,并按解析后的策略授予临时访问凭证权限,请按规范传入参数。\n注意: \n1.策略语法参照[访问管理策略](/document/product/598/10603)。\n2.策略中不能包含 principal 元素。\n3.策略的 action 元素仅支持:<li>name/vod:PutObject;</li><li>name/vod:ListParts;</li><li>name/vod:PostObject;</li><li>name/vod:InitiateMultipartUpload;</li><li>name/vod:UploadPart;</li><li>name/vod:CompleteMultipartUpload;</li><li>name/vod:AbortMultipartUpload;</li><li>name/vod:ListMultipartUploads;</li>4.策略的 resource 元素填写格式为:qcs::vod::uid/[账号AppID]:prefix//[子应用ID]/[存储桶ID]/[存储路径],其中账号AppID、子应用ID、存储桶ID和存储路径要按需填写,其他内容不允许改动,例:qcs::vod::uid/1:prefix//1/1/path。\n",
33
+ "example": "%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3APutObject%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3APostObject%22%2C%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%2C%22name%2Fvod%3AAbortMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3A%3Auid%2F1%3Aprefix%2F%2F1%2F1%2Fpath%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D",
34
+ "member": "string",
35
+ "name": "Policy",
36
+ "required": true,
37
+ "type": "string"
38
+ },
39
+ {
40
+ "disabled": false,
41
+ "document": "指定临时证书的有效期,单位:秒。\n默认 1800 秒,最大 129600 秒。",
42
+ "example": "1800",
43
+ "member": "uint64",
44
+ "name": "DurationSeconds",
45
+ "required": false,
46
+ "type": "int"
47
+ }
48
+ ],
49
+ "type": "object"
50
+ },
51
+ "CreateStorageCredentialsResponse": {
52
+ "document": "CreateStorageCredentials返回参数结构体",
53
+ "members": [
54
+ {
55
+ "disabled": false,
56
+ "document": "临时访问凭证。",
57
+ "example": "无",
58
+ "member": "Credentials",
59
+ "name": "Credentials",
60
+ "output_required": false,
61
+ "type": "object",
62
+ "value_allowed_null": false
63
+ },
64
+ {
65
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
66
+ "member": "string",
67
+ "name": "RequestId",
68
+ "type": "string"
69
+ }
70
+ ],
71
+ "type": "object"
72
+ },
73
+ "Credentials": {
74
+ "document": "临时证书。",
75
+ "members": [
76
+ {
77
+ "disabled": false,
78
+ "document": "秘钥 ID。",
79
+ "example": "AKID8GFED7s****QrFXkmb",
80
+ "member": "string",
81
+ "name": "AccessKeyId",
82
+ "output_required": false,
83
+ "type": "string",
84
+ "value_allowed_null": false
85
+ },
86
+ {
87
+ "disabled": false,
88
+ "document": "秘钥 Key。",
89
+ "example": "iDVjy****tNzX",
90
+ "member": "string",
91
+ "name": "SecretAccessKey",
92
+ "output_required": false,
93
+ "type": "string",
94
+ "value_allowed_null": false
95
+ },
96
+ {
97
+ "disabled": false,
98
+ "document": "token。token长度和绑定的策略有关,最长不超过4096字节。",
99
+ "example": "DmDnufzndGdwbCgFOnOdknwD8_uqeFwN0LqvDpfgHA6kBp1uMsIVRAil87ENVCnKZwe5GXUlPr7KTgAzTFf_3duZMpscnGh6Iyg7cjo_Hr4tIcMiZaK6NI8DO_fX5gcLqsI8qKeTaw2cVekzXnynAW",
100
+ "member": "string",
101
+ "name": "SessionToken",
102
+ "output_required": false,
103
+ "type": "string",
104
+ "value_allowed_null": false
105
+ },
106
+ {
107
+ "disabled": false,
108
+ "document": "凭据的过期时间。",
109
+ "example": "1800",
110
+ "member": "datetime_iso",
111
+ "name": "Expiration",
112
+ "output_required": false,
113
+ "type": "string",
114
+ "value_allowed_null": false
115
+ }
116
+ ],
117
+ "usage": "out"
118
+ }
119
+ },
120
+ "version": "1.0"
121
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "actions": {
3
+ "CreateStorageCredentials": [
4
+ {
5
+ "document": "申请上传单个文件临时凭证",
6
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fa%2F001.png%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
7
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
8
+ "title": "申请上传单个文件临时凭证"
9
+ },
10
+ {
11
+ "document": "申请上传多个文件临时凭证",
12
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fa%2F1024x1024.png%22%2C%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fa%2Fb%2Fc%2F1042x1042.png%22%2C%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fpath%2F2060.gif_wh300.gif%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
13
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
14
+ "title": "申请上传多个文件临时凭证"
15
+ },
16
+ {
17
+ "document": "申请列出桶内指定对象键前缀所有对象的临时凭证",
18
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AGetBucket%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aap-beijing%3Auid%2F251197738%3Aprefix%2F%2F220209%2F98gw6e1b4hds0zh%2F%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
19
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
20
+ "title": "申请列出桶内指定对象键前缀所有对象的临时凭证"
21
+ },
22
+ {
23
+ "document": "申请自动就近上传文件的临时凭证",
24
+ "input": "POST / HTTP/1.1\nHost: vod.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateStorageCredentials\n<公共请求参数>\n\n{\n \"SubAppId\": 220209,\n \"DurationSeconds\": 7200,\n \"Policy\": \"%7B%22statement%22%3A%5B%7B%22action%22%3A%5B%22name%2Fvod%3AInitiateMultipartUpload%22%2C%22name%2Fvod%3AListMultipartUploads%22%2C%22name%2Fvod%3AListParts%22%2C%22name%2Fvod%3AUploadPart%22%2C%22name%2Fvod%3ACompleteMultipartUpload%22%5D%2C%22effect%22%3A%22allow%22%2C%22resource%22%3A%5B%22qcs%3A%3Avod%3Aauto%3Auid%2F251197738%3Aprefix%2F%2F220209%2Fauto%2F001.png%22%5D%7D%5D%2C%22version%22%3A%222.0%22%7D\"\n}",
25
+ "output": "{\n \"Response\": {\n \"Credentials\": {\n \"SessionToken\": \"kTRt***Jb7m\",\n \"AccessKeyId\": \"AKID****CjE6\",\n \"SecretAccessKey\": \"Eo28***7ps=\",\n \"Expiration\": \"2024-08-20T13:55:53Z\"\n },\n \"RequestId\": \"59a5e07e-4147-4d2e-a808-dca76ac5b3fd\"\n }\n}",
26
+ "title": "申请自动就近上传文件的临时凭证"
27
+ }
28
+ ]
29
+ },
30
+ "version": "1.0"
31
+ }
@@ -11,6 +11,8 @@ from tccli.exceptions import ConfigurationError, ClientError, ParamError
11
11
  from tencentcloud.common import credential
12
12
  from tencentcloud.common.profile.http_profile import HttpProfile
13
13
  from tencentcloud.common.profile.client_profile import ClientProfile
14
+ from tencentcloud.vod.v20240718 import vod_client as vod_client_v20240718
15
+ from tencentcloud.vod.v20240718 import models as models_v20240718
14
16
  from tencentcloud.vod.v20180717 import vod_client as vod_client_v20180717
15
17
  from tencentcloud.vod.v20180717 import models as models_v20180717
16
18
 
@@ -6257,6 +6259,58 @@ def doModifySnapshotByTimeOffsetTemplate(args, parsed_globals):
6257
6259
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6258
6260
 
6259
6261
 
6262
+ def doCreateStorageCredentials(args, parsed_globals):
6263
+ g_param = parse_global_arg(parsed_globals)
6264
+
6265
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6266
+ cred = credential.CVMRoleCredential()
6267
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6268
+ cred = credential.STSAssumeRoleCredential(
6269
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6270
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6271
+ )
6272
+ 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):
6273
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6274
+ else:
6275
+ cred = credential.Credential(
6276
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6277
+ )
6278
+ http_profile = HttpProfile(
6279
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6280
+ reqMethod="POST",
6281
+ endpoint=g_param[OptionsDefine.Endpoint],
6282
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6283
+ )
6284
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6285
+ if g_param[OptionsDefine.Language]:
6286
+ profile.language = g_param[OptionsDefine.Language]
6287
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6288
+ client = mod.VodClient(cred, g_param[OptionsDefine.Region], profile)
6289
+ client._sdkVersion += ("_CLI_" + __version__)
6290
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6291
+ model = models.CreateStorageCredentialsRequest()
6292
+ model.from_json_string(json.dumps(args))
6293
+ start_time = time.time()
6294
+ while True:
6295
+ rsp = client.CreateStorageCredentials(model)
6296
+ result = rsp.to_json_string()
6297
+ try:
6298
+ json_obj = json.loads(result)
6299
+ except TypeError as e:
6300
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6301
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6302
+ break
6303
+ cur_time = time.time()
6304
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6305
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6306
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6307
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6308
+ else:
6309
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6310
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6311
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6312
+
6313
+
6260
6314
  def doModifySuperPlayerConfig(args, parsed_globals):
6261
6315
  g_param = parse_global_arg(parsed_globals)
6262
6316
 
@@ -9378,11 +9432,13 @@ def doRestoreMedia(args, parsed_globals):
9378
9432
 
9379
9433
 
9380
9434
  CLIENT_MAP = {
9435
+ "v20240718": vod_client_v20240718,
9381
9436
  "v20180717": vod_client_v20180717,
9382
9437
 
9383
9438
  }
9384
9439
 
9385
9440
  MODELS_MAP = {
9441
+ "v20240718": models_v20240718,
9386
9442
  "v20180717": models_v20180717,
9387
9443
 
9388
9444
  }
@@ -9508,6 +9564,7 @@ ACTION_MAP = {
9508
9564
  "ManageTask": doManageTask,
9509
9565
  "ModifyAIAnalysisTemplate": doModifyAIAnalysisTemplate,
9510
9566
  "ModifySnapshotByTimeOffsetTemplate": doModifySnapshotByTimeOffsetTemplate,
9567
+ "CreateStorageCredentials": doCreateStorageCredentials,
9511
9568
  "ModifySuperPlayerConfig": doModifySuperPlayerConfig,
9512
9569
  "CreateClass": doCreateClass,
9513
9570
  "DescribeRoundPlays": doDescribeRoundPlays,
@@ -9572,6 +9629,7 @@ ACTION_MAP = {
9572
9629
  }
9573
9630
 
9574
9631
  AVAILABLE_VERSION_LIST = [
9632
+ "v20240718",
9575
9633
  "v20180717",
9576
9634
 
9577
9635
  ]
@@ -8741,6 +8741,15 @@
8741
8741
  "name": "SecurityGroupPolicySet",
8742
8742
  "required": false,
8743
8743
  "type": "object"
8744
+ },
8745
+ {
8746
+ "disabled": false,
8747
+ "document": "指定绑定的标签列表,例如:[{\"Key\": \"city\", \"Value\": \"shanghai\"}]。",
8748
+ "example": "无",
8749
+ "member": "Tag",
8750
+ "name": "Tags",
8751
+ "required": false,
8752
+ "type": "list"
8744
8753
  }
8745
8754
  ],
8746
8755
  "type": "object"
@@ -792,7 +792,7 @@
792
792
  "status": "online"
793
793
  },
794
794
  "DescribePendingSubmitTaskList": {
795
- "document": "获取待提交任务预提交校验信息",
795
+ "document": "获取待提交任务预提交校验信息(注意:工作流编号或者任务编号列表,必须填一项)",
796
796
  "input": "DescribePendingSubmitTaskListRequest",
797
797
  "name": "获取待提交任务预提交校验信息",
798
798
  "output": "DescribePendingSubmitTaskListResponse",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1189.1
3
+ Version: 3.0.1191.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.1189
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1191
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介