tccli 3.0.1389.1__py2.py3-none-any.whl → 3.0.1391.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 (68) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/ai3d/ai3d_client.py +216 -4
  4. tccli/services/ai3d/v20250513/api.json +326 -0
  5. tccli/services/ai3d/v20250513/examples.json +32 -0
  6. tccli/services/asr/v20190614/api.json +1 -1
  7. tccli/services/batch/v20170312/api.json +3 -3
  8. tccli/services/batch/v20170312/examples.json +3 -3
  9. tccli/services/cam/v20190116/api.json +11 -1
  10. tccli/services/ccc/v20200210/api.json +10 -10
  11. tccli/services/cdb/v20170320/api.json +40 -2
  12. tccli/services/cdz/v20221123/api.json +1 -1
  13. tccli/services/ckafka/v20190819/api.json +31 -23
  14. tccli/services/ckafka/v20190819/examples.json +1 -1
  15. tccli/services/clb/v20180317/api.json +20 -1
  16. tccli/services/cloudapp/cloudapp_client.py +53 -0
  17. tccli/services/cloudapp/v20220530/api.json +68 -0
  18. tccli/services/cloudapp/v20220530/examples.json +14 -0
  19. tccli/services/cls/cls_client.py +167 -8
  20. tccli/services/cls/v20201016/api.json +292 -2
  21. tccli/services/cls/v20201016/examples.json +24 -0
  22. tccli/services/dts/v20211206/api.json +15 -15
  23. tccli/services/dts/v20211206/examples.json +1 -1
  24. tccli/services/es/v20250101/api.json +99 -5
  25. tccli/services/ess/v20201111/api.json +145 -4
  26. tccli/services/ess/v20201111/examples.json +1 -1
  27. tccli/services/gme/v20180711/api.json +7 -7
  28. tccli/services/gs/gs_client.py +57 -4
  29. tccli/services/gs/v20191118/api.json +79 -0
  30. tccli/services/gs/v20191118/examples.json +8 -0
  31. tccli/services/gwlb/v20240906/api.json +117 -0
  32. tccli/services/igtm/v20231024/api.json +3 -3
  33. tccli/services/iotexplorer/v20190423/api.json +19 -1
  34. tccli/services/iotexplorer/v20190423/examples.json +1 -1
  35. tccli/services/lighthouse/lighthouse_client.py +53 -0
  36. tccli/services/lighthouse/v20200324/api.json +228 -35
  37. tccli/services/lighthouse/v20200324/examples.json +8 -0
  38. tccli/services/live/v20180801/api.json +2 -2
  39. tccli/services/lkeap/v20240522/api.json +25 -1
  40. tccli/services/lowcode/lowcode_client.py +163 -4
  41. tccli/services/lowcode/v20210108/api.json +1373 -96
  42. tccli/services/lowcode/v20210108/examples.json +24 -0
  43. tccli/services/mps/v20190612/api.json +804 -47
  44. tccli/services/ocr/v20181119/api.json +4 -4
  45. tccli/services/sqlserver/v20180328/api.json +4 -4
  46. tccli/services/tcbr/v20220217/api.json +51 -0
  47. tccli/services/tdai/__init__.py +4 -0
  48. tccli/services/tdai/tdai_client.py +1108 -0
  49. tccli/services/tdai/v20250717/api.json +1930 -0
  50. tccli/services/tdai/v20250717/examples.json +149 -0
  51. tccli/services/teo/teo_client.py +53 -0
  52. tccli/services/teo/v20220901/api.json +111 -3
  53. tccli/services/teo/v20220901/examples.json +8 -0
  54. tccli/services/tmt/v20180321/api.json +3 -3
  55. tccli/services/trtc/v20190722/api.json +1 -1
  56. tccli/services/tts/v20190823/api.json +11 -11
  57. tccli/services/vpc/v20170312/api.json +37 -7
  58. tccli/services/vpc/v20170312/examples.json +7 -7
  59. tccli/services/vtc/v20240223/api.json +10 -8
  60. tccli/services/vtc/v20240223/examples.json +1 -1
  61. tccli/services/waf/v20180125/api.json +283 -6
  62. tccli/services/waf/v20180125/examples.json +24 -0
  63. tccli/services/waf/waf_client.py +159 -0
  64. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/METADATA +2 -2
  65. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/RECORD +68 -64
  66. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/WHEEL +0 -0
  67. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/entry_points.txt +0 -0
  68. {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,12 @@
1
1
  {
2
2
  "actions": {
3
+ "DescribeLicense": {
4
+ "document": "# DescribeLicense\n\n客户根据请求的参数获取当前名下的许可证信息\n\n```json\n{\n \"Filters\": [\n {\n \"Name\": \"QueryType\",\n \"Values\": [\"IncludeAddition\"]\n }\n ]\n}\n```\n\n返回的内容结构如下:\n\n- Response.RequestId 为当前请求的唯一 id\n- Response.Token 为 license 信息 jwt 加密后的 token 串\n\n```json\n{\n \"Response\": {\n \"RequestId\": \"cd15813b-adff-460e-b9fc-64579e96412d\",\n \"Token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjkzMjQ4MTc5ODAsImlhdCI6MTc1NjE3Nzk4MCwiaXNzIjoibGljZW5zZS1zZXJ2aWNlIiwicGF5bG9hZCI6eyJNYWluTGljZW5zZSI6eyJMaWNlbnNlTW9kZSI6IlN1YnNjcmlwdGlvbiIsIkJpbGxpbmdNb2RlIjoxLCJDcmVhdGVTb3VyY2UiOiJTTjE3MTk0MDc1NDc0SEJETSIsIkF1dGhvcml6ZWRDbG91ZGFwcFJvbGVJZCI6IjcwMDAwMTgzMzgwNiIsIkF1dGhvcml6ZWRDbG91ZGFwcElkIjoiY2xvdWRhcHAtc2V3ZWM2cHMiLCJBdXRob3JpemVkVXNlclVpbiI6IjcwMDAwMDkxODE1NiIsIkxpZmVTcGFuVW5pdCI6IlkiLCJMaWZlU3BhbiI6MzY1LCJTb2Z0d2FyZVBhY2thZ2VJZCI6InBrZy0xZ2xlaG9tNyIsIlNvZnR3YXJlUGFja2FnZVZlcnNpb24iOiIwLjAuMSIsIkF1dGhvcml6ZWRTcGVjaWZpY2F0aW9uIjpbeyJQYXJhbUtleSI6InZlcnNpb24iLCJQYXJhbUtleU5hbWUiOiLniYjmnKwiLCJQYXJhbVZhbHVlIjoiYmFzaWMiLCJQYXJhbVZhbHVlTmFtZSI6IuWfuuehgOeJiCJ9LHsiUGFyYW1LZXkiOiJzaXplIiwiUGFyYW1LZXlOYW1lIjoi6KeE5qC8IiwiUGFyYW1WYWx1ZSI6IjEwMCIsIlBhcmFtVmFsdWVOYW1lIjoiMTAw5Lq66KeE5qihIn1dLCJQcm92aWRlcklkIjoxMDAwMDAwNzEsIlByb3ZpZGVyVWluIjoiNzAwMDAwOTE4MTU2IiwiSXNzdWVEYXRlIjoiMjAyNC0wNi0yNlQyMToxMjozMiswODowMCIsIkFjdGl2YXRpb25EYXRlIjoiMjAyNC0wNi0yNlQyMToxMjozNSswODowMCIsIkV4cGlyYXRpb25EYXRlIjoiMjM4OS0wNi0yNlQyMToxMjozNSswODowMCIsIkxpY2Vuc2VTdGF0dXMiOiJBY3RpdmUiLCJMaWNlbnNlSWQiOiI3MDAwMDA5MTgxNTY6cGtnLTFnbGVob203OmNsb3VkYXBwLXNld2VjNnBzOjgwMDciLCJMaWNlbnNlVHlwZSI6IlN0YW5kYXJkIiwiTGljZW5zZUxldmVsIjoiTWFzdGVyIn0sIkFkZGl0aW9uTGljZW5zZXMiOltdLCJUaW1lc3RhbXAiOiIyMDI1LTA4LTI2VDExOjEzOjAwKzA4OjAwIn19.G8Lx49xZBW0Rh3lRA15XzZ-PzLJj0bAxwnklx0pTjrHWxqxQdETAdGfU_QaGI_WZfYh2IVbFcwHnRLiRj6pQb4guCMpCbcsgL28BRS4g1wnaFhjcyEQLLtpDdz4_lPnOR2VHHvnfwhLZtccAgsRpeedPMBK1hwO9D3WKisQg2LcIr0V-QB8gmgIqqyqrLW6z37QpjgB4ZyJ5bIC1J-0-VmghskA04xnQRPdGJtlyBhjzVjeDxBq5JOqm3Am0Nqu1jyTd3MuYgSRwJqkDyjVBOGFGGy6mZCIYnxU_ET6-0ZEendqYwXDkpYG4rZZv5YmRCXiSESYz0zx4czwmFWkw-TjRSvUQBxBfsoDcAgyzpY7zBOTnbrr7DyoMvVnnHo7vb0if8_vkub6o0MuRnvdDYxNJtnTtlIScCadWAIvWUQ1DlUw2kzS-h9Ju2h7JhKw9cUeutu0X_6V4arZu9JlgWT9Ns7BtS9Y5JxgQOd36Aan39Rwohy_BrVwjOkbvDuTFLc_yNUlNdq5T2GNbDjABCmi73CGhCuWyPgtRs4ftpPugDRrTe4E95F224jdhf7I0He-nY4i1MoVjz8Zzm4v0vH67cMfcu0XVhs7ywvmu5tBSwm0uuhAXFFIbSrgEzuadxNhSi6qVCFNLnjiPYplK1M9mxG8Hc-fU-0A0TPepx8Q\"\n }\n}\n```\n\n验签过程:\n对 Response.Token 内容使用公钥进行解码转换得到许可结构体信息,返回的内容结构如下,其中 paylod 中的信息为许可证信息结构:\n\n```json\n{\n \"exp\": 9324758169,\n \"iat\": 1756118169,\n \"iss\": \"license-service\",\n \"payload\": {\n \"MainLicense\": {\n \"LicenseMode\": \"Subscription\",\n \"BillingMode\": 1,\n \"CreateSource\": \"SN1719406931EJJ1E\",\n \"AuthorizedCloudappRoleId\": \"700001833621\",\n \"AuthorizedCloudappId\": \"cloudapp-992nqg9u\",\n \"AuthorizedUserUin\": \"700001833621\",\n \"LifeSpanUnit\": \"Y\",\n \"LifeSpan\": 365,\n \"SoftwarePackageId\": \"pkg-1glehom7\",\n \"SoftwarePackageVersion\": \"0.0.1\",\n \"AuthorizedSpecification\": [\n {\n \"ParamKey\": \"version\",\n \"ParamKeyName\": \"版本\",\n \"ParamValue\": \"basic\",\n \"ParamValueName\": \"基础版\"\n },\n {\n \"ParamKey\": \"size\",\n \"ParamKeyName\": \"规格\",\n \"ParamValue\": \"100\",\n \"ParamValueName\": \"100 人规模\"\n }\n ],\n \"ProviderId\": 100000071,\n \"ProviderUin\": \"700000918156\",\n \"IssueDate\": \"2024-06-26T21:02:16+08:00\",\n \"ActivationDate\": \"2024-06-26T21:02:19+08:00\",\n \"ExpirationDate\": \"2389-06-26T21:02:19+08:00\",\n \"LicenseStatus\": \"Active\",\n \"LicenseId\": \"700000918156:pkg-1glehom7:cloudapp-992nqg9u:3988\",\n \"LicenseType\": \"Standard\",\n \"LicenseLevel\": \"Master\"\n },\n \"AdditionLicenses\": [\n {\n \"LicenseMode\": \"Subscription\",\n \"BillingMode\": 1,\n \"CreateSource\": \"SN1719406931EJJ1E\",\n \"AuthorizedCloudappRoleId\": \"700001833621\",\n \"AuthorizedCloudappId\": \"cloudapp-992nqg9u\",\n \"AuthorizedUserUin\": \"700001833621\",\n \"LifeSpanUnit\": \"Y\",\n \"LifeSpan\": 365,\n \"SoftwarePackageId\": \"pkg-1glehom7\",\n \"SoftwarePackageVersion\": \"0.0.1\",\n \"AuthorizedSpecification\": [\n {\n \"ParamKey\": \"version\",\n \"ParamKeyName\": \"版本\",\n \"ParamValue\": \"basic\",\n \"ParamValueName\": \"基础版\"\n },\n {\n \"ParamKey\": \"size\",\n \"ParamKeyName\": \"规格\",\n \"ParamValue\": \"100\",\n \"ParamValueName\": \"100 人规模\"\n }\n ],\n \"ProviderId\": 100000071,\n \"ProviderUin\": \"700000918156\",\n \"IssueDate\": \"2024-06-26T21:02:16+08:00\",\n \"ActivationDate\": \"2024-06-26T21:02:19+08:00\",\n \"ExpirationDate\": \"2389-06-26T21:02:19+08:00\",\n \"LicenseStatus\": \"Active\",\n \"LicenseId\": \"700000918156:pkg-1glehom7:cloudapp-992nqg9u:3988\",\n \"LicenseType\": \"Standard\",\n \"LicenseLevel\": \"Master\"\n }\n ],\n \"Timestamp\": \"2025-08-25T18:36:09+08:00\"\n }\n}\n```",
5
+ "input": "DescribeLicenseRequest",
6
+ "name": "获取license信息",
7
+ "output": "DescribeLicenseResponse",
8
+ "status": "online"
9
+ },
3
10
  "VerifyLicense": {
4
11
  "document": "从软件进程读取 LICENSE。",
5
12
  "input": "VerifyLicenseRequest",
@@ -15,6 +22,67 @@
15
22
  "serviceShortName": "cloudapp"
16
23
  },
17
24
  "objects": {
25
+ "DescribeLicenseRequest": {
26
+ "document": "DescribeLicense请求参数结构体",
27
+ "members": [
28
+ {
29
+ "disabled": false,
30
+ "document": "可选过滤器",
31
+ "example": "无",
32
+ "member": "Filter",
33
+ "name": "Filters",
34
+ "required": false,
35
+ "type": "list"
36
+ }
37
+ ],
38
+ "type": "object"
39
+ },
40
+ "DescribeLicenseResponse": {
41
+ "document": "DescribeLicense返回参数结构体",
42
+ "members": [
43
+ {
44
+ "disabled": false,
45
+ "document": "针对上面raw的签名",
46
+ "example": "eyJhbGciOi",
47
+ "member": "string",
48
+ "name": "Token",
49
+ "output_required": true,
50
+ "type": "string",
51
+ "value_allowed_null": false
52
+ },
53
+ {
54
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
55
+ "member": "string",
56
+ "name": "RequestId",
57
+ "type": "string"
58
+ }
59
+ ],
60
+ "type": "object"
61
+ },
62
+ "Filter": {
63
+ "document": "描述键值对过滤器,用于条件过滤查询。例如过滤 ID、名称、状态等\n\n- 若存在多个 Filter 时,Filter间的关系为逻辑与(AND)关系。\n- 若同一个 Filter 存在多个 Values,同一 Filter 下 Values 间的关系为逻辑或(OR)关系。",
64
+ "members": [
65
+ {
66
+ "disabled": false,
67
+ "document": "需要过滤的字段",
68
+ "example": "无",
69
+ "member": "string",
70
+ "name": "Name",
71
+ "required": true,
72
+ "type": "string"
73
+ },
74
+ {
75
+ "disabled": false,
76
+ "document": "字段的过滤值",
77
+ "example": "无",
78
+ "member": "string",
79
+ "name": "Values",
80
+ "required": true,
81
+ "type": "list"
82
+ }
83
+ ],
84
+ "usage": "in"
85
+ },
18
86
  "License": {
19
87
  "document": "表示应用实例的软件授权,包含颁发信息、激活信息等内容。",
20
88
  "members": [
@@ -1,5 +1,19 @@
1
1
  {
2
2
  "actions": {
3
+ "DescribeLicense": [
4
+ {
5
+ "document": "云应用准备更新 LICENCE 校验的接口",
6
+ "input": "POST / HTTP/1.1\nHost: cloudapp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLicense\n<公共请求参数>\n\n{}",
7
+ "output": "{\n \"Response\": {\n \"Token\": \"eyJhbGciOi\",\n \"RequestId\": \"2aab88d8-b5bd-42ea-92ee-f8df1228e278\"\n }\n}",
8
+ "title": "云应用许可校验接口"
9
+ },
10
+ {
11
+ "document": "云应用准备更新 LICENCE 校验的接口带增购信息",
12
+ "input": "POST / HTTP/1.1\nHost: cloudapp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLicense\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Name\": \"QueryType\",\n \"Values\": [\n \"IncludeAddition\"\n ]\n }\n ]\n}",
13
+ "output": "{\n \"Response\": {\n \"Token\": \"eyJhbGciOi\",\n \"RequestId\": \"f3891f61-7c21-4223-9b5b-33a3e7ca3095\"\n }\n}",
14
+ "title": "云应用许可校验接口 带增购信息"
15
+ }
16
+ ],
3
17
  "VerifyLicense": [
4
18
  {
5
19
  "document": "软件进程对接 LICENSE 后,通过运行时角色申请临时密钥来调用,获取对应的 LICENSE 信息。\n\n获取到 LICENSE 后,请注意校验 LicenseStatus 是否有效,无效时软件可根据策略拒绝服务或者提供降级服务。同时,LICENSE 包含用户购买的规格信息,软件可根据规格来做运行的约束。\n\n对接 LICENSE 的详细方案,请参考文档:\n* [对接 LICENSE](https://cloud.tencent.com/document/product/1689/109428)\n* [通过运行时角色调用云 API](https://cloud.tencent.com/document/product/1689/109427)",
@@ -745,7 +745,7 @@ def doDeleteDataTransform(args, parsed_globals):
745
745
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
746
 
747
747
 
748
- def doCreateLogset(args, parsed_globals):
748
+ def doDeleteConfigExtra(args, parsed_globals):
749
749
  g_param = parse_global_arg(parsed_globals)
750
750
 
751
751
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -774,11 +774,11 @@ def doCreateLogset(args, parsed_globals):
774
774
  client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
775
775
  client._sdkVersion += ("_CLI_" + __version__)
776
776
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
- model = models.CreateLogsetRequest()
777
+ model = models.DeleteConfigExtraRequest()
778
778
  model.from_json_string(json.dumps(args))
779
779
  start_time = time.time()
780
780
  while True:
781
- rsp = client.CreateLogset(model)
781
+ rsp = client.DeleteConfigExtra(model)
782
782
  result = rsp.to_json_string()
783
783
  try:
784
784
  json_obj = json.loads(result)
@@ -2045,6 +2045,58 @@ def doDeleteCosRecharge(args, parsed_globals):
2045
2045
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2046
 
2047
2047
 
2048
+ def doDescribeKafkaConsumerGroupList(args, parsed_globals):
2049
+ g_param = parse_global_arg(parsed_globals)
2050
+
2051
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2052
+ cred = credential.CVMRoleCredential()
2053
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2054
+ cred = credential.STSAssumeRoleCredential(
2055
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2056
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2057
+ )
2058
+ 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):
2059
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2060
+ else:
2061
+ cred = credential.Credential(
2062
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2063
+ )
2064
+ http_profile = HttpProfile(
2065
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2066
+ reqMethod="POST",
2067
+ endpoint=g_param[OptionsDefine.Endpoint],
2068
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2069
+ )
2070
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2071
+ if g_param[OptionsDefine.Language]:
2072
+ profile.language = g_param[OptionsDefine.Language]
2073
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2074
+ client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
2075
+ client._sdkVersion += ("_CLI_" + __version__)
2076
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2077
+ model = models.DescribeKafkaConsumerGroupListRequest()
2078
+ model.from_json_string(json.dumps(args))
2079
+ start_time = time.time()
2080
+ while True:
2081
+ rsp = client.DescribeKafkaConsumerGroupList(model)
2082
+ result = rsp.to_json_string()
2083
+ try:
2084
+ json_obj = json.loads(result)
2085
+ except TypeError as e:
2086
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2087
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2088
+ break
2089
+ cur_time = time.time()
2090
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2091
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2092
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2093
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2094
+ else:
2095
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2096
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2097
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
+
2099
+
2048
2100
  def doDescribeKafkaRecharges(args, parsed_globals):
2049
2101
  g_param = parse_global_arg(parsed_globals)
2050
2102
 
@@ -3969,7 +4021,7 @@ def doDescribePartitions(args, parsed_globals):
3969
4021
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
4022
 
3971
4023
 
3972
- def doDeleteConfigExtra(args, parsed_globals):
4024
+ def doCreateLogset(args, parsed_globals):
3973
4025
  g_param = parse_global_arg(parsed_globals)
3974
4026
 
3975
4027
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3998,11 +4050,11 @@ def doDeleteConfigExtra(args, parsed_globals):
3998
4050
  client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
3999
4051
  client._sdkVersion += ("_CLI_" + __version__)
4000
4052
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4001
- model = models.DeleteConfigExtraRequest()
4053
+ model = models.CreateLogsetRequest()
4002
4054
  model.from_json_string(json.dumps(args))
4003
4055
  start_time = time.time()
4004
4056
  while True:
4005
- rsp = client.DeleteConfigExtra(model)
4057
+ rsp = client.CreateLogset(model)
4006
4058
  result = rsp.to_json_string()
4007
4059
  try:
4008
4060
  json_obj = json.loads(result)
@@ -5061,6 +5113,58 @@ def doDescribeShippers(args, parsed_globals):
5061
5113
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5062
5114
 
5063
5115
 
5116
+ def doModifyKafkaConsumerGroupOffset(args, parsed_globals):
5117
+ g_param = parse_global_arg(parsed_globals)
5118
+
5119
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5120
+ cred = credential.CVMRoleCredential()
5121
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5122
+ cred = credential.STSAssumeRoleCredential(
5123
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5124
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5125
+ )
5126
+ 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):
5127
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5128
+ else:
5129
+ cred = credential.Credential(
5130
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5131
+ )
5132
+ http_profile = HttpProfile(
5133
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5134
+ reqMethod="POST",
5135
+ endpoint=g_param[OptionsDefine.Endpoint],
5136
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5137
+ )
5138
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5139
+ if g_param[OptionsDefine.Language]:
5140
+ profile.language = g_param[OptionsDefine.Language]
5141
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5142
+ client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
5143
+ client._sdkVersion += ("_CLI_" + __version__)
5144
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5145
+ model = models.ModifyKafkaConsumerGroupOffsetRequest()
5146
+ model.from_json_string(json.dumps(args))
5147
+ start_time = time.time()
5148
+ while True:
5149
+ rsp = client.ModifyKafkaConsumerGroupOffset(model)
5150
+ result = rsp.to_json_string()
5151
+ try:
5152
+ json_obj = json.loads(result)
5153
+ except TypeError as e:
5154
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5155
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5156
+ break
5157
+ cur_time = time.time()
5158
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5159
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5160
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5161
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5162
+ else:
5163
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5164
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5165
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5166
+
5167
+
5064
5168
  def doModifyConsoleSharing(args, parsed_globals):
5065
5169
  g_param = parse_global_arg(parsed_globals)
5066
5170
 
@@ -5113,6 +5217,58 @@ def doModifyConsoleSharing(args, parsed_globals):
5113
5217
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5114
5218
 
5115
5219
 
5220
+ def doDescribeKafkaConsumerGroupDetail(args, parsed_globals):
5221
+ g_param = parse_global_arg(parsed_globals)
5222
+
5223
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5224
+ cred = credential.CVMRoleCredential()
5225
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5226
+ cred = credential.STSAssumeRoleCredential(
5227
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5228
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5229
+ )
5230
+ 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):
5231
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5232
+ else:
5233
+ cred = credential.Credential(
5234
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5235
+ )
5236
+ http_profile = HttpProfile(
5237
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5238
+ reqMethod="POST",
5239
+ endpoint=g_param[OptionsDefine.Endpoint],
5240
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5241
+ )
5242
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5243
+ if g_param[OptionsDefine.Language]:
5244
+ profile.language = g_param[OptionsDefine.Language]
5245
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5246
+ client = mod.ClsClient(cred, g_param[OptionsDefine.Region], profile)
5247
+ client._sdkVersion += ("_CLI_" + __version__)
5248
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5249
+ model = models.DescribeKafkaConsumerGroupDetailRequest()
5250
+ model.from_json_string(json.dumps(args))
5251
+ start_time = time.time()
5252
+ while True:
5253
+ rsp = client.DescribeKafkaConsumerGroupDetail(model)
5254
+ result = rsp.to_json_string()
5255
+ try:
5256
+ json_obj = json.loads(result)
5257
+ except TypeError as e:
5258
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5259
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5260
+ break
5261
+ cur_time = time.time()
5262
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5263
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5264
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5265
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5266
+ else:
5267
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5268
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5269
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5270
+
5271
+
5116
5272
  def doDescribeDashboards(args, parsed_globals):
5117
5273
  g_param = parse_global_arg(parsed_globals)
5118
5274
 
@@ -5977,7 +6133,7 @@ ACTION_MAP = {
5977
6133
  "DeleteLogset": doDeleteLogset,
5978
6134
  "DeleteConfigFromMachineGroup": doDeleteConfigFromMachineGroup,
5979
6135
  "DeleteDataTransform": doDeleteDataTransform,
5980
- "CreateLogset": doCreateLogset,
6136
+ "DeleteConfigExtra": doDeleteConfigExtra,
5981
6137
  "CreateTopic": doCreateTopic,
5982
6138
  "DescribeCloudProductLogTasks": doDescribeCloudProductLogTasks,
5983
6139
  "DeleteAlarmNotice": doDeleteAlarmNotice,
@@ -6002,6 +6158,7 @@ ACTION_MAP = {
6002
6158
  "DeleteConsumer": doDeleteConsumer,
6003
6159
  "DeleteMachineGroup": doDeleteMachineGroup,
6004
6160
  "DeleteCosRecharge": doDeleteCosRecharge,
6161
+ "DescribeKafkaConsumerGroupList": doDescribeKafkaConsumerGroupList,
6005
6162
  "DescribeKafkaRecharges": doDescribeKafkaRecharges,
6006
6163
  "DescribeAlarms": doDescribeAlarms,
6007
6164
  "DescribeCosRecharges": doDescribeCosRecharges,
@@ -6039,7 +6196,7 @@ ACTION_MAP = {
6039
6196
  "DeleteConsoleSharing": doDeleteConsoleSharing,
6040
6197
  "DescribeAlarmNotices": doDescribeAlarmNotices,
6041
6198
  "DescribePartitions": doDescribePartitions,
6042
- "DeleteConfigExtra": doDeleteConfigExtra,
6199
+ "CreateLogset": doCreateLogset,
6043
6200
  "CheckFunction": doCheckFunction,
6044
6201
  "DeleteAlarm": doDeleteAlarm,
6045
6202
  "DeleteShipper": doDeleteShipper,
@@ -6060,7 +6217,9 @@ ACTION_MAP = {
6060
6217
  "CheckRechargeKafkaServer": doCheckRechargeKafkaServer,
6061
6218
  "ModifyAlarm": doModifyAlarm,
6062
6219
  "DescribeShippers": doDescribeShippers,
6220
+ "ModifyKafkaConsumerGroupOffset": doModifyKafkaConsumerGroupOffset,
6063
6221
  "ModifyConsoleSharing": doModifyConsoleSharing,
6222
+ "DescribeKafkaConsumerGroupDetail": doDescribeKafkaConsumerGroupDetail,
6064
6223
  "DescribeDashboards": doDescribeDashboards,
6065
6224
  "PreviewKafkaRecharge": doPreviewKafkaRecharge,
6066
6225
  "ModifyConfig": doModifyConfig,