tccli 3.0.1352.1__py2.py3-none-any.whl → 3.0.1354.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 (53) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/aiart_client.py +70 -123
  3. tccli/services/aiart/v20221229/api.json +3 -101
  4. tccli/services/aiart/v20221229/examples.json +0 -8
  5. tccli/services/apm/v20210622/api.json +2 -2
  6. tccli/services/cbs/v20170312/examples.json +3 -3
  7. tccli/services/ccc/v20200210/api.json +10 -0
  8. tccli/services/cdb/v20170320/api.json +64 -16
  9. tccli/services/cdb/v20170320/examples.json +1 -1
  10. tccli/services/cdn/v20180606/api.json +0 -3
  11. tccli/services/cdn/v20180606/examples.json +2 -2
  12. tccli/services/cfg/v20210820/api.json +11 -0
  13. tccli/services/cfs/v20190719/api.json +46 -0
  14. tccli/services/csip/v20221121/api.json +21 -3
  15. tccli/services/csip/v20221121/examples.json +1 -1
  16. tccli/services/dbbrain/v20210527/api.json +40 -0
  17. tccli/services/dlc/dlc_client.py +53 -0
  18. tccli/services/dlc/v20210125/api.json +44 -0
  19. tccli/services/dlc/v20210125/examples.json +8 -0
  20. tccli/services/eb/v20210416/api.json +17 -8
  21. tccli/services/eb/v20210416/examples.json +1 -1
  22. tccli/services/ess/v20201111/api.json +1 -1
  23. tccli/services/gs/v20191118/api.json +32 -2
  24. tccli/services/iai/v20180301/api.json +143 -135
  25. tccli/services/iai/v20180301/examples.json +18 -12
  26. tccli/services/iai/v20200303/api.json +4 -4
  27. tccli/services/igtm/v20231024/api.json +239 -239
  28. tccli/services/igtm/v20231024/examples.json +6 -6
  29. tccli/services/iotvideo/v20191126/api.json +1 -1
  30. tccli/services/iotvideo/v20201215/api.json +1 -1
  31. tccli/services/iotvideo/v20211125/api.json +1 -1
  32. tccli/services/lighthouse/v20200324/api.json +10 -0
  33. tccli/services/lke/v20231130/api.json +2 -2
  34. tccli/services/lkeap/v20240522/api.json +3 -3
  35. tccli/services/monitor/v20180724/api.json +7 -7
  36. tccli/services/monitor/v20180724/examples.json +2 -2
  37. tccli/services/tcbr/v20220217/api.json +10 -0
  38. tccli/services/tke/v20180525/api.json +49 -1
  39. tccli/services/trro/v20220325/api.json +1 -1
  40. tccli/services/trtc/trtc_client.py +459 -35
  41. tccli/services/trtc/v20190722/api.json +1069 -82
  42. tccli/services/trtc/v20190722/examples.json +64 -0
  43. tccli/services/tts/v20190823/api.json +1 -1
  44. tccli/services/vod/v20180717/api.json +11 -2
  45. tccli/services/vod/v20180717/examples.json +17 -17
  46. tccli/services/wedata/v20210820/api.json +501 -3
  47. tccli/services/wedata/v20210820/examples.json +86 -0
  48. tccli/services/wedata/wedata_client.py +440 -69
  49. {tccli-3.0.1352.1.dist-info → tccli-3.0.1354.1.dist-info}/METADATA +3 -3
  50. {tccli-3.0.1352.1.dist-info → tccli-3.0.1354.1.dist-info}/RECORD +53 -53
  51. {tccli-3.0.1352.1.dist-info → tccli-3.0.1354.1.dist-info}/WHEEL +0 -0
  52. {tccli-3.0.1352.1.dist-info → tccli-3.0.1354.1.dist-info}/entry_points.txt +0 -0
  53. {tccli-3.0.1352.1.dist-info → tccli-3.0.1354.1.dist-info}/license_files/LICENSE +0 -0
@@ -901,6 +901,58 @@ def doDescribeDataEngines(args, parsed_globals):
901
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
902
 
903
903
 
904
+ def doDescribeUserRegisterTime(args, parsed_globals):
905
+ g_param = parse_global_arg(parsed_globals)
906
+
907
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
908
+ cred = credential.CVMRoleCredential()
909
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
910
+ cred = credential.STSAssumeRoleCredential(
911
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
912
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
913
+ )
914
+ 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):
915
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
916
+ else:
917
+ cred = credential.Credential(
918
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
919
+ )
920
+ http_profile = HttpProfile(
921
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
922
+ reqMethod="POST",
923
+ endpoint=g_param[OptionsDefine.Endpoint],
924
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
925
+ )
926
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
927
+ if g_param[OptionsDefine.Language]:
928
+ profile.language = g_param[OptionsDefine.Language]
929
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
930
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
931
+ client._sdkVersion += ("_CLI_" + __version__)
932
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
+ model = models.DescribeUserRegisterTimeRequest()
934
+ model.from_json_string(json.dumps(args))
935
+ start_time = time.time()
936
+ while True:
937
+ rsp = client.DescribeUserRegisterTime(model)
938
+ result = rsp.to_json_string()
939
+ try:
940
+ json_obj = json.loads(result)
941
+ except TypeError as e:
942
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
943
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
944
+ break
945
+ cur_time = time.time()
946
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
947
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
948
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
949
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
950
+ else:
951
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
952
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
953
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
+
955
+
904
956
  def doDescribeDMSPartitions(args, parsed_globals):
905
957
  g_param = parse_global_arg(parsed_globals)
906
958
 
@@ -7793,6 +7845,7 @@ ACTION_MAP = {
7793
7845
  "CreateNotebookSessionStatementSupportBatchSQL": doCreateNotebookSessionStatementSupportBatchSQL,
7794
7846
  "SwitchDataEngine": doSwitchDataEngine,
7795
7847
  "DescribeDataEngines": doDescribeDataEngines,
7848
+ "DescribeUserRegisterTime": doDescribeUserRegisterTime,
7796
7849
  "DescribeDMSPartitions": doDescribeDMSPartitions,
7797
7850
  "CancelTask": doCancelTask,
7798
7851
  "DescribeDLCCatalogAccess": doDescribeDLCCatalogAccess,
@@ -735,6 +735,13 @@
735
735
  "output": "DescribeUserInfoResponse",
736
736
  "status": "online"
737
737
  },
738
+ "DescribeUserRegisterTime": {
739
+ "document": "该接口(DescribeUserRegisterTime)用于查询当前用户注册时间,并判断是否是老用户。",
740
+ "input": "DescribeUserRegisterTimeRequest",
741
+ "name": "查询用户注册时间及是否是老用户",
742
+ "output": "DescribeUserRegisterTimeResponse",
743
+ "status": "online"
744
+ },
738
745
  "DescribeUserRoles": {
739
746
  "document": "列举用户角色信息",
740
747
  "input": "DescribeUserRolesRequest",
@@ -12556,6 +12563,43 @@
12556
12563
  ],
12557
12564
  "type": "object"
12558
12565
  },
12566
+ "DescribeUserRegisterTimeRequest": {
12567
+ "document": "DescribeUserRegisterTime请求参数结构体",
12568
+ "members": [],
12569
+ "type": "object"
12570
+ },
12571
+ "DescribeUserRegisterTimeResponse": {
12572
+ "document": "DescribeUserRegisterTime返回参数结构体",
12573
+ "members": [
12574
+ {
12575
+ "disabled": false,
12576
+ "document": "用户注册时间",
12577
+ "example": "1736700000",
12578
+ "member": "int64",
12579
+ "name": "RegisterTime",
12580
+ "output_required": true,
12581
+ "type": "int",
12582
+ "value_allowed_null": false
12583
+ },
12584
+ {
12585
+ "disabled": false,
12586
+ "document": "是否时老用户",
12587
+ "example": "true",
12588
+ "member": "bool",
12589
+ "name": "IsOldUser",
12590
+ "output_required": true,
12591
+ "type": "bool",
12592
+ "value_allowed_null": false
12593
+ },
12594
+ {
12595
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12596
+ "member": "string",
12597
+ "name": "RequestId",
12598
+ "type": "string"
12599
+ }
12600
+ ],
12601
+ "type": "object"
12602
+ },
12559
12603
  "DescribeUserRolesRequest": {
12560
12604
  "document": "DescribeUserRoles请求参数结构体",
12561
12605
  "members": [
@@ -852,6 +852,14 @@
852
852
  "title": "test"
853
853
  }
854
854
  ],
855
+ "DescribeUserRegisterTime": [
856
+ {
857
+ "document": "",
858
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeUserRegisterTime\n<公共请求参数>\n\n{}",
859
+ "output": "{\n \"Response\": {\n \"IsOldUser\": true,\n \"RegisterTime\": 1736600000,\n \"RequestId\": \"27ec9bda-4221-4ad0-8be5-28770caa7d1f\"\n }\n}",
860
+ "title": "DescribeUserRegisterTime接口示例"
861
+ }
862
+ ],
855
863
  "DescribeUserRoles": [
856
864
  {
857
865
  "document": "",
@@ -763,7 +763,7 @@
763
763
  {
764
764
  "disabled": false,
765
765
  "document": "参考:[事件模式](https://cloud.tencent.com/document/product/1359/56084)",
766
- "example": "{   \"detail\": {     \"source-ip\": [ { \"cidr\": \"10.0.0.0/24\" } ]  ",
766
+ "example": "\"{\\\"source\\\":[\\\"cvm.cloud.tencent\\\"]}\"",
767
767
  "member": "string",
768
768
  "name": "EventPattern",
769
769
  "required": true,
@@ -780,7 +780,7 @@
780
780
  },
781
781
  {
782
782
  "disabled": false,
783
- "document": "事件集名称,只能包含字母、中文、数字、下划线、连字符,以字母/中文开头,以数字、字母或中文结尾,2~60个字符",
783
+ "document": "事件规则名称,只能包含字母、中文、数字、下划线、连字符,以字母/中文开头,以数字、字母或中文结尾,2~60个字符",
784
784
  "example": "rule",
785
785
  "member": "string",
786
786
  "name": "RuleName",
@@ -798,7 +798,7 @@
798
798
  },
799
799
  {
800
800
  "disabled": false,
801
- "document": "事件集描述,只能包含数字、中英文及常用标点符号,不超过200个字符",
801
+ "document": "事件规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符",
802
802
  "example": "这是一个描述",
803
803
  "member": "string",
804
804
  "name": "Description",
@@ -1839,6 +1839,7 @@
1839
1839
  "example": "eb-xxxxxxxx",
1840
1840
  "member": "string",
1841
1841
  "name": "EventBusId",
1842
+ "output_required": true,
1842
1843
  "type": "string",
1843
1844
  "value_allowed_null": false
1844
1845
  },
@@ -1848,6 +1849,7 @@
1848
1849
  "example": "rule-xxxxxxxx",
1849
1850
  "member": "string",
1850
1851
  "name": "RuleId",
1852
+ "output_required": true,
1851
1853
  "type": "string",
1852
1854
  "value_allowed_null": false
1853
1855
  },
@@ -1857,6 +1859,7 @@
1857
1859
  "example": "rule",
1858
1860
  "member": "string",
1859
1861
  "name": "RuleName",
1862
+ "output_required": true,
1860
1863
  "type": "string",
1861
1864
  "value_allowed_null": false
1862
1865
  },
@@ -1866,6 +1869,7 @@
1866
1869
  "example": "Active",
1867
1870
  "member": "string",
1868
1871
  "name": "Status",
1872
+ "output_required": true,
1869
1873
  "type": "string",
1870
1874
  "value_allowed_null": false
1871
1875
  },
@@ -1875,6 +1879,7 @@
1875
1879
  "example": "true",
1876
1880
  "member": "bool",
1877
1881
  "name": "Enable",
1882
+ "output_required": true,
1878
1883
  "type": "bool",
1879
1884
  "value_allowed_null": false
1880
1885
  },
@@ -1884,15 +1889,17 @@
1884
1889
  "example": "这是一个描述",
1885
1890
  "member": "string",
1886
1891
  "name": "Description",
1892
+ "output_required": true,
1887
1893
  "type": "string",
1888
1894
  "value_allowed_null": false
1889
1895
  },
1890
1896
  {
1891
1897
  "disabled": false,
1892
1898
  "document": "事件模式",
1893
- "example": "{   \"detail\": {     \"source-ip\": [ { \"cidr\": \"10.0.0.0/24\" } ]  ",
1899
+ "example": "\"{\\\"source\\\":[\\\"cvm.cloud.tencent\\\"]}\"",
1894
1900
  "member": "string",
1895
1901
  "name": "EventPattern",
1902
+ "output_required": true,
1896
1903
  "type": "string",
1897
1904
  "value_allowed_null": false
1898
1905
  },
@@ -1902,6 +1909,7 @@
1902
1909
  "example": "2021-04-27T14:34:19+08:00",
1903
1910
  "member": "datetime_iso",
1904
1911
  "name": "AddTime",
1912
+ "output_required": true,
1905
1913
  "type": "string",
1906
1914
  "value_allowed_null": false
1907
1915
  },
@@ -1911,6 +1919,7 @@
1911
1919
  "example": "2021-04-27T14:34:19+08:00",
1912
1920
  "member": "datetime_iso",
1913
1921
  "name": "ModTime",
1922
+ "output_required": true,
1914
1923
  "type": "string",
1915
1924
  "value_allowed_null": false
1916
1925
  },
@@ -2066,8 +2075,8 @@
2066
2075
  "members": [
2067
2076
  {
2068
2077
  "disabled": false,
2069
- "document": "根据哪个字段进行返回结果排序,支持以下字段:AddTime(创建时间), ModTime(修改时间)",
2070
- "example": "ModTime",
2078
+ "document": "根据哪个字段进行返回结果排序,支持以下字段:created_at(创建时间), updated_at(修改时间)",
2079
+ "example": "created_at",
2071
2080
  "member": "string",
2072
2081
  "name": "OrderBy",
2073
2082
  "required": false,
@@ -3548,7 +3557,7 @@
3548
3557
  },
3549
3558
  {
3550
3559
  "disabled": false,
3551
- "document": "规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符",
3560
+ "document": "事件规则描述,只能包含数字、中英文及常用标点符号,不超过200个字符",
3552
3561
  "example": "这是一个描述",
3553
3562
  "member": "string",
3554
3563
  "name": "Description",
@@ -3558,7 +3567,7 @@
3558
3567
  {
3559
3568
  "disabled": false,
3560
3569
  "document": "参考:[事件模式](https://cloud.tencent.com/document/product/1359/56084)",
3561
- "example": "{   \"detail\": {     \"source-ip\": [ { \"cidr\": \"10.0.0.0/24\" } ]  ",
3570
+ "example": "\"{\\\"source\\\":[\\\"cvm.cloud.tencent\\\"]}\"",
3562
3571
  "member": "string",
3563
3572
  "name": "EventPattern",
3564
3573
  "required": false,
@@ -154,7 +154,7 @@
154
154
  {
155
155
  "document": "获取事件集列表",
156
156
  "input": "POST / HTTP/1.1\nHost: eb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListEventBuses\n<公共请求参数>\n\n{}",
157
- "output": "{\n \"Response\": {\n \"EventBuses\": [\n {\n \"ModTime\": \"2020-09-22T00:00:00+00:00\",\n \"Description\": \"abc\",\n \"AddTime\": \"2020-09-22T00:00:00+00:00\",\n \"EventBusName\": \"abc\",\n \"EventBusId\": \"abc\",\n \"Type\": \"abc\",\n \"PayMode\": \"abc\",\n \"ConnectionBriefs\": [\n {\n \"Type\": \"abc\",\n \"Status\": \"abc\"\n }\n ],\n \"TargetBriefs\": [\n {\n \"TargetId\": \"abc\",\n \"Type\": \"abc\"\n }\n ]\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"abc\"\n }\n}",
157
+ "output": "{\n \"Response\": {\n \"EventBuses\": [\n {\n \"ModTime\": \"2020-09-22T00:00:00+00:00\",\n \"Description\": \"desc\",\n \"AddTime\": \"2020-09-22T00:00:00+00:00\",\n \"EventBusName\": \"eb\",\n \"EventBusId\": \"eb-id\",\n \"Type\": \"type\",\n \"PayMode\": \"pay\",\n \"ConnectionBriefs\": [\n {\n \"Type\": \"type\",\n \"Status\": \"status\"\n }\n ],\n \"TargetBriefs\": [\n {\n \"TargetId\": \"target\",\n \"Type\": \"type\"\n }\n ]\n }\n ],\n \"TotalCount\": 0,\n \"RequestId\": \"reqid-xxx\"\n }\n}",
158
158
  "title": "获取事件集列表"
159
159
  }
160
160
  ],
@@ -10184,7 +10184,7 @@
10184
10184
  },
10185
10185
  {
10186
10186
  "disabled": false,
10187
- "document": "批量创建合同智能提取任务接口返回的合同智能提取任务ID",
10187
+ "document": "合同智能提取任务ID,该参数通过调用接口[批量创建合同智能提取任务接口](https://qian.tencent.com/developers/companyApis/%E5%90%88%E5%90%8C%E6%99%BA%E8%83%BD%E7%9B%B8%E5%85%B3%E6%8E%A5%E5%8F%A3/CreateBatchInformationExtractionTask)获取。",
10188
10188
  "example": "yDRS4UUgygqdcj56UuO4zjExBQcOiB68",
10189
10189
  "member": "string",
10190
10190
  "name": "TaskId",
@@ -608,7 +608,7 @@
608
608
  },
609
609
  {
610
610
  "disabled": false,
611
- "document": "应用更新状态,取值:UPLOADING 上传中、CREATING 创建中、CREATE_FAIL 创建失败、CREATE_SUCCESS 创建成功、NORMAL 默认状态",
611
+ "document": "应用更新状态,取值:UPLOADING 上传中、CREATING 创建中、CREATE_FAIL 创建失败、CREATE_SUCCESS 创建成功、PACKAGE_NAME_MISMATCH 包名不匹配、VERSION_ALREADY_EXISTS 版本已存在、APP_PARSE_FAIL app 解析失败、APP_EXISTS_SECURITY_RISK app 存在安全风险、NORMAL 默认状态",
612
612
  "example": "CREATE_SUCCESS",
613
613
  "member": "string",
614
614
  "name": "UpdateState",
@@ -668,7 +668,7 @@
668
668
  },
669
669
  {
670
670
  "disabled": false,
671
- "document": "安卓应用版本创建状态(NORMAL:无、UPLOADING:上传中、\nCREATING创建中、\nCREATE_FAIL:创建失败、CREATE_SUCCESS:创建成功)",
671
+ "document": "安卓应用版本创建状态,取值:NORMAL:无(默认)、UPLOADING:上传中、CREATING创建中、CREATE_FAIL:创建失败、PACKAGE_NAME_MISMATCH:包名不匹配、VERSION_ALREADY_EXISTS:版本已存在、APP_PARSE_FAIL: app 解析失败、APP_EXISTS_SECURITY_RISK:app 存在安全风险、CREATE_SUCCESS:创建成功",
672
672
  "example": "\"NORMAL|UPLOADING|CREATING|CREATE_FAIL|CREATE_SUCCESS\"",
673
673
  "member": "string",
674
674
  "name": "State",
@@ -745,6 +745,36 @@
745
745
  "output_required": true,
746
746
  "type": "string",
747
747
  "value_allowed_null": false
748
+ },
749
+ {
750
+ "disabled": false,
751
+ "document": "应用包 MD5",
752
+ "example": "无",
753
+ "member": "string",
754
+ "name": "MD5",
755
+ "output_required": true,
756
+ "type": "string",
757
+ "value_allowed_null": false
758
+ },
759
+ {
760
+ "disabled": false,
761
+ "document": "应用包文件大小(字节)",
762
+ "example": "102400",
763
+ "member": "int64",
764
+ "name": "FileSize",
765
+ "output_required": true,
766
+ "type": "int",
767
+ "value_allowed_null": false
768
+ },
769
+ {
770
+ "disabled": false,
771
+ "document": "安卓应用包名",
772
+ "example": "app_pakcage_name",
773
+ "member": "string",
774
+ "name": "PackageName",
775
+ "output_required": true,
776
+ "type": "string",
777
+ "value_allowed_null": false
748
778
  }
749
779
  ],
750
780
  "usage": "out"