tccli 3.0.1288.1__py2.py3-none-any.whl → 3.0.1289.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.
- tccli/__init__.py +1 -1
- tccli/plugins/sso/__init__.py +11 -1
- tccli/plugins/sso/login.py +3 -3
- tccli/services/asr/v20190614/api.json +6 -6
- tccli/services/asr/v20190614/examples.json +4 -4
- tccli/services/bi/v20220105/api.json +43 -0
- tccli/services/billing/v20180709/api.json +310 -250
- tccli/services/cdwpg/v20201230/api.json +5 -5
- tccli/services/cdwpg/v20201230/examples.json +6 -6
- tccli/services/cdz/v20221123/api.json +4 -4
- tccli/services/cfg/v20210820/api.json +197 -197
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cwp/v20180228/api.json +39 -9
- tccli/services/dbbrain/dbbrain_client.py +383 -12
- tccli/services/dbbrain/v20210527/api.json +884 -101
- tccli/services/dbbrain/v20210527/examples.json +56 -0
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/dts/v20180330/api.json +34 -34
- tccli/services/dts/v20180330/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +225 -223
- tccli/services/dts/v20211206/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +30 -3
- tccli/services/essbasic/v20210526/api.json +29 -2
- tccli/services/iotexplorer/iotexplorer_client.py +159 -0
- tccli/services/iotexplorer/v20190423/api.json +561 -0
- tccli/services/iotexplorer/v20190423/examples.json +24 -0
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20211125/api.json +105 -0
- tccli/services/iotvideo/v20211125/examples.json +16 -0
- tccli/services/lighthouse/v20200324/api.json +46 -46
- tccli/services/lighthouse/v20200324/examples.json +2 -2
- tccli/services/lke/v20231130/api.json +2 -2
- tccli/services/lkeap/v20240522/api.json +2 -2
- tccli/services/mps/v20190612/api.json +88 -6
- tccli/services/mqtt/v20240516/api.json +3 -3
- tccli/services/mqtt/v20240516/examples.json +5 -11
- tccli/services/organization/v20210331/api.json +113 -113
- tccli/services/svp/v20240125/api.json +1 -1
- tccli/services/tcb/v20180608/api.json +4 -4
- tccli/services/teo/v20220901/api.json +541 -5
- tccli/services/teo/v20220901/examples.json +21 -3
- tccli/services/tione/v20211111/api.json +64 -6
- tccli/services/vdb/v20230616/api.json +31 -2
- tccli/services/vdb/v20230616/examples.json +8 -2
- tccli/services/vrs/v20200824/api.json +14 -2
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +48 -0
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1289.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1289.1.dist-info}/RECORD +53 -53
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1289.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1289.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1288.1.dist-info → tccli-3.0.1289.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1289.1'
|
tccli/plugins/sso/__init__.py
CHANGED
@@ -36,7 +36,17 @@ _spec = {
|
|
36
36
|
},
|
37
37
|
},
|
38
38
|
"objects": {
|
39
|
-
"loginRequest": {
|
39
|
+
"loginRequest": {
|
40
|
+
"members": [
|
41
|
+
{
|
42
|
+
"name": "duration",
|
43
|
+
"member": "int64",
|
44
|
+
"type": "int64",
|
45
|
+
"required": False,
|
46
|
+
"document": "duration for credential",
|
47
|
+
},
|
48
|
+
],
|
49
|
+
},
|
40
50
|
"loginResponse": {"members": []},
|
41
51
|
"logoutRequest": {"members": []},
|
42
52
|
"logoutResponse": {"members": []},
|
tccli/plugins/sso/login.py
CHANGED
@@ -30,10 +30,10 @@ def login_command_entrypoint(args, parsed_globals):
|
|
30
30
|
if not profile:
|
31
31
|
profile = "default"
|
32
32
|
|
33
|
-
login(profile, language)
|
33
|
+
login(args, profile, language)
|
34
34
|
|
35
35
|
|
36
|
-
def login(profile, language):
|
36
|
+
def login(args, profile, language):
|
37
37
|
cred_path = sso.cred_path_of_profile(profile)
|
38
38
|
auth_url = ""
|
39
39
|
if os.path.exists(cred_path):
|
@@ -89,7 +89,7 @@ def login(profile, language):
|
|
89
89
|
role_arn = "qcs::cam::uin/%s:roleName/TencentCloudSSO-%s" % (account["Uin"], role["RoleConfigurationName"])
|
90
90
|
principal_arn = "qcs::cam::uin/%s:saml-provider/TencentReservedSSO-%s" % (account["Uin"], token_info["ZoneId"])
|
91
91
|
cred = sso.assume_role_with_saml(
|
92
|
-
saml_resp["SAMLResponse"], principal_arn, role_arn, "ses-%s" % uuid.uuid4(), 7200, site)
|
92
|
+
saml_resp["SAMLResponse"], principal_arn, role_arn, "ses-%s" % uuid.uuid4(), args.get("duration", 7200), site)
|
93
93
|
|
94
94
|
sso_info = {
|
95
95
|
"token": login_token,
|
@@ -316,10 +316,10 @@
|
|
316
316
|
{
|
317
317
|
"disabled": false,
|
318
318
|
"document": "词文件(纯文本文件)的二进制base64编码,以行分隔\n格式要求:TXT\n每行只有一个词,不满足格式则报错无法上传\n每个词限制**5个汉字,15个字符**,单个词库最多不超过100个词\n注意不要有空行,尤其是最后一行",
|
319
|
-
"example": "避风港(进行
|
319
|
+
"example": "避风港(进行base64编码)",
|
320
320
|
"member": "string",
|
321
321
|
"name": "KeyWordFile",
|
322
|
-
"required":
|
322
|
+
"required": true,
|
323
323
|
"type": "string"
|
324
324
|
}
|
325
325
|
],
|
@@ -2384,7 +2384,7 @@
|
|
2384
2384
|
{
|
2385
2385
|
"disabled": false,
|
2386
2386
|
"document": "关键词表ID",
|
2387
|
-
"example": "
|
2387
|
+
"example": "aa6f402******2ea856fc81fbecfd0sd",
|
2388
2388
|
"member": "string",
|
2389
2389
|
"name": "KeyWordLibId",
|
2390
2390
|
"required": true,
|
@@ -2396,16 +2396,16 @@
|
|
2396
2396
|
"example": "新的词表名称",
|
2397
2397
|
"member": "string",
|
2398
2398
|
"name": "Name",
|
2399
|
-
"required":
|
2399
|
+
"required": true,
|
2400
2400
|
"type": "string"
|
2401
2401
|
},
|
2402
2402
|
{
|
2403
2403
|
"disabled": false,
|
2404
2404
|
"document": "- 词文件(纯文本文件)以行分隔 ,进行二进制base64编码\n- 格式要求:TXT 每行只有一个词,不满足格式则报错无法上传 \n- 每个词最多5个汉字或15个字符,单个词库最多不超过100个词\n- 此参数为空则只更新词表名称",
|
2405
|
-
"example": "
|
2405
|
+
"example": "<文件base64>",
|
2406
2406
|
"member": "string",
|
2407
2407
|
"name": "KeyWordFile",
|
2408
|
-
"required":
|
2408
|
+
"required": true,
|
2409
2409
|
"type": "string"
|
2410
2410
|
}
|
2411
2411
|
],
|
@@ -11,8 +11,8 @@
|
|
11
11
|
"CreateAsrKeyWordLib": [
|
12
12
|
{
|
13
13
|
"document": "用户通过上传文件方式创建关键词表",
|
14
|
-
"input": "
|
15
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"KeyWordLibId\": \"
|
14
|
+
"input": "POST / HTTP/1.1\nHost: xxx.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateAsrKeyWordLib\n<公共请求参数>\n\n{\n \"Name\": \"词表名\",\n \"KeyWordFile\": \"<文件base64>\"\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"KeyWordLibId\": \"aa6f402f263f1******fc81fbecfd0sd\"\n },\n \"RequestId\": \"b3808ad3-d8dd-4b65-96c9-7d6f1f81b6b6\"\n }\n}",
|
16
16
|
"title": "创建关键词表"
|
17
17
|
}
|
18
18
|
],
|
@@ -217,8 +217,8 @@
|
|
217
217
|
"UpdateAsrKeyWordLib": [
|
218
218
|
{
|
219
219
|
"document": "用户通过该API传入已经创建的关键词表ID,可以更新其相应的内容",
|
220
|
-
"input": "
|
221
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"KeyWordLibId\": \"
|
220
|
+
"input": "POST / HTTP/1.1\nHost: xxx.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAsrKeyWordLib\n<公共请求参数>\n\n{\n \"KeyWordLibId\": \"aa6f402******2ea856fc81fbecfd0sd\",\n \"Name\": \"词表名\",\n \"KeyWordFile\": \"<文件base64>\"\n}",
|
221
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"KeyWordLibId\": \"aa6f402f******ea856fc81fbecfd0sd\"\n },\n \"RequestId\": \"3290cfb2-91a7-4989-91de-d1d624a77c12\"\n }\n}",
|
222
222
|
"title": "更新关键词表"
|
223
223
|
}
|
224
224
|
],
|
@@ -4868,6 +4868,17 @@
|
|
4868
4868
|
"type": "string",
|
4869
4869
|
"value_allowed_null": true
|
4870
4870
|
},
|
4871
|
+
{
|
4872
|
+
"disabled": false,
|
4873
|
+
"document": "全局角色编码\n注意:此字段可能返回 null,表示取不到有效值。",
|
4874
|
+
"example": "sys_common_user",
|
4875
|
+
"member": "string",
|
4876
|
+
"name": "GlobalUserCode",
|
4877
|
+
"output_required": false,
|
4878
|
+
"required": false,
|
4879
|
+
"type": "string",
|
4880
|
+
"value_allowed_null": true
|
4881
|
+
},
|
4871
4882
|
{
|
4872
4883
|
"disabled": false,
|
4873
4884
|
"document": "手机号\n注意:此字段可能返回 null,表示取不到有效值。",
|
@@ -4933,6 +4944,28 @@
|
|
4933
4944
|
"required": false,
|
4934
4945
|
"type": "bool",
|
4935
4946
|
"value_allowed_null": true
|
4947
|
+
},
|
4948
|
+
{
|
4949
|
+
"disabled": false,
|
4950
|
+
"document": "-1 免激活 0 未激活 1 已激活 空代表待绑定\n注意:此字段可能返回 null,表示取不到有效值。",
|
4951
|
+
"example": "邮箱激活状态",
|
4952
|
+
"member": "int64",
|
4953
|
+
"name": "EmailActivationStatus",
|
4954
|
+
"output_required": false,
|
4955
|
+
"required": false,
|
4956
|
+
"type": "int",
|
4957
|
+
"value_allowed_null": true
|
4958
|
+
},
|
4959
|
+
{
|
4960
|
+
"disabled": false,
|
4961
|
+
"document": "1\n注意:此字段可能返回 null,表示取不到有效值。",
|
4962
|
+
"example": "主键id",
|
4963
|
+
"member": "uint64",
|
4964
|
+
"name": "Id",
|
4965
|
+
"output_required": false,
|
4966
|
+
"required": false,
|
4967
|
+
"type": "int",
|
4968
|
+
"value_allowed_null": true
|
4936
4969
|
}
|
4937
4970
|
],
|
4938
4971
|
"usage": "both"
|
@@ -5344,6 +5377,16 @@
|
|
5344
5377
|
"output_required": false,
|
5345
5378
|
"type": "string",
|
5346
5379
|
"value_allowed_null": true
|
5380
|
+
},
|
5381
|
+
{
|
5382
|
+
"disabled": false,
|
5383
|
+
"document": "邮箱激活状态\n注意:此字段可能返回 null,表示取不到有效值。",
|
5384
|
+
"example": "0",
|
5385
|
+
"member": "int64",
|
5386
|
+
"name": "EmailActivationStatus",
|
5387
|
+
"output_required": false,
|
5388
|
+
"type": "int",
|
5389
|
+
"value_allowed_null": true
|
5347
5390
|
}
|
5348
5391
|
],
|
5349
5392
|
"usage": "out"
|