tccli 3.0.1289.1__py2.py3-none-any.whl → 3.0.1290.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 (47) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/billing/v20180709/api.json +16 -16
  3. tccli/services/billing/v20180709/examples.json +1 -1
  4. tccli/services/cdb/cdb_client.py +53 -0
  5. tccli/services/cdb/v20170320/api.json +64 -0
  6. tccli/services/cdb/v20170320/examples.json +8 -0
  7. tccli/services/clb/v20180317/api.json +19 -14
  8. tccli/services/cls/v20201016/api.json +230 -198
  9. tccli/services/cls/v20201016/examples.json +2 -2
  10. tccli/services/cynosdb/v20190107/api.json +2 -2
  11. tccli/services/dbbrain/v20191016/api.json +24 -21
  12. tccli/services/dbbrain/v20210527/api.json +22 -22
  13. tccli/services/domain/v20180808/api.json +8 -8
  14. tccli/services/ess/v20201111/api.json +1 -1
  15. tccli/services/essbasic/v20210526/api.json +1 -1
  16. tccli/services/fmu/v20191213/api.json +2 -2
  17. tccli/services/goosefs/v20220519/api.json +2 -2
  18. tccli/services/gwlb/v20240906/api.json +1 -1
  19. tccli/services/iotcloud/v20210408/api.json +66 -66
  20. tccli/services/iotcloud/v20210408/examples.json +13 -13
  21. tccli/services/lighthouse/v20200324/api.json +8 -8
  22. tccli/services/lke/v20231130/api.json +10 -0
  23. tccli/services/lowcode/v20210108/api.json +2 -2
  24. tccli/services/monitor/monitor_client.py +53 -0
  25. tccli/services/monitor/v20180724/api.json +144 -0
  26. tccli/services/monitor/v20180724/examples.json +8 -0
  27. tccli/services/mps/mps_client.py +501 -24
  28. tccli/services/mps/v20190612/api.json +2067 -278
  29. tccli/services/mps/v20190612/examples.json +72 -0
  30. tccli/services/mqtt/v20240516/api.json +1 -1
  31. tccli/services/mqtt/v20240516/examples.json +1 -1
  32. tccli/services/redis/redis_client.py +53 -0
  33. tccli/services/redis/v20180412/api.json +34 -0
  34. tccli/services/redis/v20180412/examples.json +8 -0
  35. tccli/services/tcb/tcb_client.py +53 -0
  36. tccli/services/tcb/v20180608/api.json +220 -153
  37. tccli/services/tcb/v20180608/examples.json +8 -0
  38. tccli/services/tcbr/v20220217/examples.json +1 -1
  39. tccli/services/tdmq/v20200217/api.json +379 -285
  40. tccli/services/tdmq/v20200217/examples.json +1 -1
  41. tccli/services/wedata/v20210820/api.json +54 -0
  42. tccli/services/weilingwith/v20230427/api.json +997 -997
  43. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/RECORD +47 -47
  45. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/license_files/LICENSE +0 -0
@@ -1492,7 +1492,7 @@
1492
1492
  },
1493
1493
  {
1494
1494
  "disabled": false,
1495
- "document": "套餐类型。\n取值范围:\n<li>STARTER_BUNDLE:入门型</li>\n<li>GENERAL_BUNDLE:通用型</li>\n<li>ENTERPRISE_BUNDLE:企业型</li>\n<li>STORAGE_BUNDLE:存储型</li>\n<li>EXCLUSIVE_BUNDLE:专属型</li>\n<li>HK_EXCLUSIVE_BUNDLE:香港专属型 </li>\n<li>CAREFREE_BUNDLE:无忧型</li>\n<li>BEFAST_BUNDLE:蜂驰型 </li>\n<li>EXCLUSIVE_BUNDLE_02:境外专属Ⅱ型</li>\n<li>NEWCOMER_BUNDLE:新客专享</li>\n<li>GAME_PORTAL_BUNDLE:游戏专区</li>\n<li>ECONOMY_BUNDLE:经济型</li>\n<li>RAZOR_SPEED_BUNDLE:锐驰型</li>",
1495
+ "document": "套餐类型。\n取值范围:\n<li>GENERAL_BUNDLE:通用型</li>\n<li>STORAGE_BUNDLE:存储型</li>\n<li>ENTERPRISE_BUNDLE:企业型</li>\n<li>EXCLUSIVE_BUNDLE:专属型</li>\n<li>BEFAST_BUNDLE:蜂驰型 </li>\n<li>STARTER_BUNDLE:入门型</li>\n<li>CAREFREE_BUNDLE:无忧型</li>\n<li>RAZOR_SPEED_BUNDLE:锐驰型</li>",
1496
1496
  "example": "GENERAL_BUNDLE",
1497
1497
  "member": "string",
1498
1498
  "name": "BundleType",
@@ -2879,7 +2879,7 @@
2879
2879
  },
2880
2880
  {
2881
2881
  "disabled": false,
2882
- "document": "过滤器列表。\n<li>bundle-id</li>按照【套餐 ID】进行过滤。\n类型:String\n必选:否\n<li>support-platform-type</li>按照【系统类型】进行过滤。\n取值: LINUX_UNIX(Linux/Unix系统) ;WINDOWS(Windows 系统)\n类型:String\n必选:否\n<li>bundle-type</li>按照 【套餐类型进行过滤】。\n取值:GENERAL_BUNDLE (通用型套餐); STORAGE_BUNDLE(存储型套餐);ENTERPRISE_BUNDLE( 企业型套餐);EXCLUSIVE_BUNDLE(专属型套餐);BEFAST_BUNDLE(蜂驰型套餐);STARTER_BUNDLE(入门型套餐);CAREFREE_BUNDLE(无忧型套餐);\n类型:String\n必选:否\n<li>bundle-state</li>按照【套餐状态】进行过滤。\n取值: ONLINE(在线); OFFLINE(下线);\n类型:String\n必选:否\n每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 BundleIds 和 Filters。",
2882
+ "document": "过滤器列表。\n<li>bundle-id</li>按照【套餐 ID】进行过滤。\n类型:String\n必选:否\n<li>support-platform-type</li>按照【系统类型】进行过滤。\n取值: LINUX_UNIX(Linux/Unix系统) ;WINDOWS(Windows 系统)\n类型:String\n必选:否\n<li>bundle-type</li>按照 【套餐类型进行过滤】。\n取值:GENERAL_BUNDLE (通用型套餐); STORAGE_BUNDLE(存储型套餐);ENTERPRISE_BUNDLE( 企业型套餐);EXCLUSIVE_BUNDLE(专属型套餐);BEFAST_BUNDLE(蜂驰型套餐);STARTER_BUNDLE(入门型套餐);CAREFREE_BUNDLE(无忧型套餐);RAZOR_SPEED_BUNDLE(锐驰型套餐)\n类型:String\n必选:否\n<li>bundle-state</li>按照【套餐状态】进行过滤。\n取值: ONLINE(在线); OFFLINE(下线);\n类型:String\n必选:否\n每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 BundleIds 和 Filters。",
2883
2883
  "example": "无",
2884
2884
  "member": "Filter",
2885
2885
  "name": "Filters",
@@ -2888,7 +2888,7 @@
2888
2888
  },
2889
2889
  {
2890
2890
  "disabled": false,
2891
- "document": "可用区列表。默认为全部可用区。",
2891
+ "document": "可用区列表。默认为全部可用区。\n<li>可用区可通过接口 [DescribeZones](https://cloud.tencent.com/document/product/1207/57513) 查询</li>",
2892
2892
  "example": "[\"ap-guangzhou-1\",\"ap-guangzhou-2\"]",
2893
2893
  "member": "string",
2894
2894
  "name": "Zones",
@@ -8424,7 +8424,7 @@
8424
8424
  "example": "ap-beijing",
8425
8425
  "member": "string",
8426
8426
  "name": "Region",
8427
- "required": true,
8427
+ "output_required": true,
8428
8428
  "type": "string",
8429
8429
  "value_allowed_null": false
8430
8430
  },
@@ -8434,17 +8434,17 @@
8434
8434
  "example": "北京",
8435
8435
  "member": "string",
8436
8436
  "name": "RegionName",
8437
- "required": true,
8437
+ "output_required": true,
8438
8438
  "type": "string",
8439
8439
  "value_allowed_null": false
8440
8440
  },
8441
8441
  {
8442
8442
  "disabled": false,
8443
- "document": "地域是否可用状态,取值仅为AVAILABLE",
8443
+ "document": "地域是否可用状态,取值仅为AVAILABLE(表示可用状态)。",
8444
8444
  "example": "AVAILABLE",
8445
8445
  "member": "string",
8446
8446
  "name": "RegionState",
8447
- "required": true,
8447
+ "output_required": true,
8448
8448
  "type": "string",
8449
8449
  "value_allowed_null": false
8450
8450
  },
@@ -8454,7 +8454,7 @@
8454
8454
  "example": "true",
8455
8455
  "member": "bool",
8456
8456
  "name": "IsChinaMainland",
8457
- "required": true,
8457
+ "output_required": true,
8458
8458
  "type": "bool",
8459
8459
  "value_allowed_null": false
8460
8460
  }
@@ -5612,6 +5612,16 @@
5612
5612
  "type": "float",
5613
5613
  "value_allowed_null": false
5614
5614
  },
5615
+ {
5616
+ "disabled": false,
5617
+ "document": "联网搜索次数",
5618
+ "example": "无",
5619
+ "member": "float",
5620
+ "name": "InternetSearchUsage",
5621
+ "output_required": false,
5622
+ "type": "float",
5623
+ "value_allowed_null": false
5624
+ },
5615
5625
  {
5616
5626
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5617
5627
  "member": "string",
@@ -1176,13 +1176,13 @@
1176
1176
  "members": [
1177
1177
  {
1178
1178
  "disabled": false,
1179
- "document": "知识库列表\n注意:此字段可能返回 null,表示取不到有效值。",
1179
+ "document": "知识库列表",
1180
1180
  "example": "无",
1181
1181
  "member": "KnowledgeSetRsp",
1182
1182
  "name": "Data",
1183
1183
  "output_required": false,
1184
1184
  "type": "object",
1185
- "value_allowed_null": true
1185
+ "value_allowed_null": false
1186
1186
  },
1187
1187
  {
1188
1188
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -7351,6 +7351,58 @@ def doUpdateExporterIntegration(args, parsed_globals):
7351
7351
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7352
7352
 
7353
7353
 
7354
+ def doDescribePrometheusIntegrationMetrics(args, parsed_globals):
7355
+ g_param = parse_global_arg(parsed_globals)
7356
+
7357
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7358
+ cred = credential.CVMRoleCredential()
7359
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7360
+ cred = credential.STSAssumeRoleCredential(
7361
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7362
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7363
+ )
7364
+ 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):
7365
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7366
+ else:
7367
+ cred = credential.Credential(
7368
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7369
+ )
7370
+ http_profile = HttpProfile(
7371
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7372
+ reqMethod="POST",
7373
+ endpoint=g_param[OptionsDefine.Endpoint],
7374
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7375
+ )
7376
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7377
+ if g_param[OptionsDefine.Language]:
7378
+ profile.language = g_param[OptionsDefine.Language]
7379
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7380
+ client = mod.MonitorClient(cred, g_param[OptionsDefine.Region], profile)
7381
+ client._sdkVersion += ("_CLI_" + __version__)
7382
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7383
+ model = models.DescribePrometheusIntegrationMetricsRequest()
7384
+ model.from_json_string(json.dumps(args))
7385
+ start_time = time.time()
7386
+ while True:
7387
+ rsp = client.DescribePrometheusIntegrationMetrics(model)
7388
+ result = rsp.to_json_string()
7389
+ try:
7390
+ json_obj = json.loads(result)
7391
+ except TypeError as e:
7392
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7393
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7394
+ break
7395
+ cur_time = time.time()
7396
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7397
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7398
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7399
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7400
+ else:
7401
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7402
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7403
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7404
+
7405
+
7354
7406
  def doDescribeAllNamespaces(args, parsed_globals):
7355
7407
  g_param = parse_global_arg(parsed_globals)
7356
7408
 
@@ -8441,6 +8493,7 @@ ACTION_MAP = {
8441
8493
  "DescribePrometheusConfig": doDescribePrometheusConfig,
8442
8494
  "ModifyPrometheusGlobalNotification": doModifyPrometheusGlobalNotification,
8443
8495
  "UpdateExporterIntegration": doUpdateExporterIntegration,
8496
+ "DescribePrometheusIntegrationMetrics": doDescribePrometheusIntegrationMetrics,
8444
8497
  "DescribeAllNamespaces": doDescribeAllNamespaces,
8445
8498
  "CreateServiceDiscovery": doCreateServiceDiscovery,
8446
8499
  "DescribeStatisticData": doDescribeStatisticData,
@@ -658,6 +658,13 @@
658
658
  "output": "DescribePrometheusInstancesOverviewResponse",
659
659
  "status": "online"
660
660
  },
661
+ "DescribePrometheusIntegrationMetrics": {
662
+ "document": "获取prometheus集成指标",
663
+ "input": "DescribePrometheusIntegrationMetricsRequest",
664
+ "name": "获取prometheus集成指标",
665
+ "output": "DescribePrometheusIntegrationMetricsResponse",
666
+ "status": "online"
667
+ },
661
668
  "DescribePrometheusRecordRules": {
662
669
  "document": "获取聚合规则列表,包含关联集群内crd资源创建的record rule",
663
670
  "input": "DescribePrometheusRecordRulesRequest",
@@ -12527,6 +12534,43 @@
12527
12534
  ],
12528
12535
  "type": "object"
12529
12536
  },
12537
+ "DescribePrometheusIntegrationMetricsRequest": {
12538
+ "document": "DescribePrometheusIntegrationMetrics请求参数结构体",
12539
+ "members": [
12540
+ {
12541
+ "disabled": false,
12542
+ "document": "集成类型标识。取值参考DescribePrometheusIntegrations接口返回中IntegrationSet[i].Code参数",
12543
+ "example": "qcloud",
12544
+ "member": "string",
12545
+ "name": "IntegrationCode",
12546
+ "required": true,
12547
+ "type": "string"
12548
+ }
12549
+ ],
12550
+ "type": "object"
12551
+ },
12552
+ "DescribePrometheusIntegrationMetricsResponse": {
12553
+ "document": "DescribePrometheusIntegrationMetrics返回参数结构体",
12554
+ "members": [
12555
+ {
12556
+ "disabled": false,
12557
+ "document": "集成指标详情分组",
12558
+ "example": "[{\"Group\":\"cdb\",\"Metrics\":[{\"MetricName\":\"qce_cdb_abortedclients_sum\",\"Name\":\"异常关闭的客户端连接数\",\"MetricType\":\"\",\"Unit\":\"Count\",\"Description\":\"由于客户端在没有正确关闭连接的情况下死亡而中止的连接数\"}]}]",
12559
+ "member": "IntegrationMetricGroup",
12560
+ "name": "IntegrationMetricSet",
12561
+ "output_required": false,
12562
+ "type": "list",
12563
+ "value_allowed_null": false
12564
+ },
12565
+ {
12566
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12567
+ "member": "string",
12568
+ "name": "RequestId",
12569
+ "type": "string"
12570
+ }
12571
+ ],
12572
+ "type": "object"
12573
+ },
12530
12574
  "DescribePrometheusRecordRulesRequest": {
12531
12575
  "document": "DescribePrometheusRecordRules请求参数结构体",
12532
12576
  "members": [
@@ -14793,6 +14837,106 @@
14793
14837
  ],
14794
14838
  "usage": "out"
14795
14839
  },
14840
+ "IntegrationMetric": {
14841
+ "document": "prometheus集成指标详情",
14842
+ "members": [
14843
+ {
14844
+ "disabled": false,
14845
+ "document": "指标名",
14846
+ "example": "qce_cvm_tcpcurrestab_max",
14847
+ "member": "string",
14848
+ "name": "MetricName",
14849
+ "output_required": false,
14850
+ "required": false,
14851
+ "type": "string",
14852
+ "value_allowed_null": false
14853
+ },
14854
+ {
14855
+ "disabled": false,
14856
+ "document": "指标名称",
14857
+ "example": "TCP 连接数",
14858
+ "member": "string",
14859
+ "name": "Name",
14860
+ "output_required": false,
14861
+ "required": false,
14862
+ "type": "string",
14863
+ "value_allowed_null": false
14864
+ },
14865
+ {
14866
+ "disabled": false,
14867
+ "document": "统计类型",
14868
+ "example": "GAUGE",
14869
+ "member": "string",
14870
+ "name": "MetricType",
14871
+ "output_required": false,
14872
+ "required": false,
14873
+ "type": "string",
14874
+ "value_allowed_null": false
14875
+ },
14876
+ {
14877
+ "disabled": false,
14878
+ "document": "单位",
14879
+ "example": "%",
14880
+ "member": "string",
14881
+ "name": "Unit",
14882
+ "output_required": false,
14883
+ "required": false,
14884
+ "type": "string",
14885
+ "value_allowed_null": false
14886
+ },
14887
+ {
14888
+ "disabled": false,
14889
+ "document": "指标详细描述",
14890
+ "example": " TCP 连接数量",
14891
+ "member": "string",
14892
+ "name": "Description",
14893
+ "output_required": false,
14894
+ "required": false,
14895
+ "type": "string",
14896
+ "value_allowed_null": false
14897
+ }
14898
+ ],
14899
+ "usage": "both"
14900
+ },
14901
+ "IntegrationMetricGroup": {
14902
+ "document": "prometheus集成分组指标",
14903
+ "members": [
14904
+ {
14905
+ "disabled": false,
14906
+ "document": "分组标识",
14907
+ "example": "qcloud",
14908
+ "member": "string",
14909
+ "name": "Group",
14910
+ "output_required": false,
14911
+ "required": false,
14912
+ "type": "string",
14913
+ "value_allowed_null": false
14914
+ },
14915
+ {
14916
+ "disabled": false,
14917
+ "document": "指标详情",
14918
+ "example": "[{\"Group\":\"cdb\",\"MetricName\":\"qce_cdb_abortedclients_sum\",\"Name\":\"异常关闭的客户端连接数\",\"MetricType\":\"\",\"Unit\":\"Count\",\"Description\":\"由于客户端在没有正确关闭连接的情况下死亡而中止的连接数\"}]",
14919
+ "member": "IntegrationMetric",
14920
+ "name": "Metrics",
14921
+ "output_required": false,
14922
+ "required": false,
14923
+ "type": "list",
14924
+ "value_allowed_null": false
14925
+ },
14926
+ {
14927
+ "disabled": false,
14928
+ "document": "分组名称",
14929
+ "example": "云服务器",
14930
+ "member": "string",
14931
+ "name": "GroupName",
14932
+ "output_required": false,
14933
+ "required": false,
14934
+ "type": "string",
14935
+ "value_allowed_null": false
14936
+ }
14937
+ ],
14938
+ "usage": "both"
14939
+ },
14796
14940
  "Label": {
14797
14941
  "document": "k8s中标签,一般以数组的方式存在",
14798
14942
  "members": [
@@ -920,6 +920,14 @@
920
920
  "title": "获取实例列表"
921
921
  }
922
922
  ],
923
+ "DescribePrometheusIntegrationMetrics": [
924
+ {
925
+ "document": "",
926
+ "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePrometheusIntegrationMetrics\n<公共请求参数>\n\n{\n \"IntegrationCode\": \"qcloud\"\n}",
927
+ "output": "{\n \"Response\": {\n \"IntegrationMetricSet\": [\n {\n \"Group\": \"cdb\",\n \"Metrics\": [\n {\n \"MetricName\": \"qce_cdb_abortedclients_sum\",\n \"Name\": \"异常关闭的客户端连接数\",\n \"MetricType\": \"\",\n \"Unit\": \"Count\",\n \"Description\": \"由于客户端在没有正确关闭连接的情况下死亡而中止的连接数\"\n }\n ]\n }\n ],\n \"RequestId\": \"sjwbr-sjhrbgfrb\"\n }\n}",
928
+ "title": "获取prometheus集成指标"
929
+ }
930
+ ],
923
931
  "DescribePrometheusRecordRules": [
924
932
  {
925
933
  "document": "拉取聚合规则",