tccli 3.0.1288.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 (81) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/plugins/sso/__init__.py +11 -1
  3. tccli/plugins/sso/login.py +3 -3
  4. tccli/services/asr/v20190614/api.json +6 -6
  5. tccli/services/asr/v20190614/examples.json +4 -4
  6. tccli/services/bi/v20220105/api.json +43 -0
  7. tccli/services/billing/v20180709/api.json +326 -266
  8. tccli/services/billing/v20180709/examples.json +1 -1
  9. tccli/services/cdb/cdb_client.py +53 -0
  10. tccli/services/cdb/v20170320/api.json +64 -0
  11. tccli/services/cdb/v20170320/examples.json +8 -0
  12. tccli/services/cdwpg/v20201230/api.json +5 -5
  13. tccli/services/cdwpg/v20201230/examples.json +6 -6
  14. tccli/services/cdz/v20221123/api.json +4 -4
  15. tccli/services/cfg/v20210820/api.json +197 -197
  16. tccli/services/cfg/v20210820/examples.json +1 -1
  17. tccli/services/clb/v20180317/api.json +21 -16
  18. tccli/services/cls/v20201016/api.json +230 -198
  19. tccli/services/cls/v20201016/examples.json +2 -2
  20. tccli/services/cwp/v20180228/api.json +39 -9
  21. tccli/services/cynosdb/v20190107/api.json +2 -2
  22. tccli/services/dbbrain/dbbrain_client.py +383 -12
  23. tccli/services/dbbrain/v20191016/api.json +24 -21
  24. tccli/services/dbbrain/v20210527/api.json +851 -68
  25. tccli/services/dbbrain/v20210527/examples.json +56 -0
  26. tccli/services/domain/v20180808/api.json +11 -11
  27. tccli/services/dts/v20180330/api.json +34 -34
  28. tccli/services/dts/v20180330/examples.json +1 -1
  29. tccli/services/dts/v20211206/api.json +225 -223
  30. tccli/services/dts/v20211206/examples.json +2 -2
  31. tccli/services/ess/v20201111/api.json +30 -3
  32. tccli/services/essbasic/v20210526/api.json +29 -2
  33. tccli/services/fmu/v20191213/api.json +2 -2
  34. tccli/services/goosefs/v20220519/api.json +2 -2
  35. tccli/services/gwlb/v20240906/api.json +1 -1
  36. tccli/services/iotcloud/v20210408/api.json +66 -66
  37. tccli/services/iotcloud/v20210408/examples.json +13 -13
  38. tccli/services/iotexplorer/iotexplorer_client.py +159 -0
  39. tccli/services/iotexplorer/v20190423/api.json +561 -0
  40. tccli/services/iotexplorer/v20190423/examples.json +24 -0
  41. tccli/services/iotvideo/iotvideo_client.py +106 -0
  42. tccli/services/iotvideo/v20211125/api.json +105 -0
  43. tccli/services/iotvideo/v20211125/examples.json +16 -0
  44. tccli/services/lighthouse/v20200324/api.json +53 -53
  45. tccli/services/lighthouse/v20200324/examples.json +2 -2
  46. tccli/services/lke/v20231130/api.json +12 -2
  47. tccli/services/lkeap/v20240522/api.json +2 -2
  48. tccli/services/lowcode/v20210108/api.json +2 -2
  49. tccli/services/monitor/monitor_client.py +53 -0
  50. tccli/services/monitor/v20180724/api.json +144 -0
  51. tccli/services/monitor/v20180724/examples.json +8 -0
  52. tccli/services/mps/mps_client.py +501 -24
  53. tccli/services/mps/v20190612/api.json +2118 -247
  54. tccli/services/mps/v20190612/examples.json +72 -0
  55. tccli/services/mqtt/v20240516/api.json +4 -4
  56. tccli/services/mqtt/v20240516/examples.json +5 -11
  57. tccli/services/organization/v20210331/api.json +113 -113
  58. tccli/services/redis/redis_client.py +53 -0
  59. tccli/services/redis/v20180412/api.json +34 -0
  60. tccli/services/redis/v20180412/examples.json +8 -0
  61. tccli/services/svp/v20240125/api.json +1 -1
  62. tccli/services/tcb/tcb_client.py +53 -0
  63. tccli/services/tcb/v20180608/api.json +224 -157
  64. tccli/services/tcb/v20180608/examples.json +8 -0
  65. tccli/services/tcbr/v20220217/examples.json +1 -1
  66. tccli/services/tdmq/v20200217/api.json +379 -285
  67. tccli/services/tdmq/v20200217/examples.json +1 -1
  68. tccli/services/teo/v20220901/api.json +541 -5
  69. tccli/services/teo/v20220901/examples.json +21 -3
  70. tccli/services/tione/v20211111/api.json +64 -6
  71. tccli/services/vdb/v20230616/api.json +31 -2
  72. tccli/services/vdb/v20230616/examples.json +8 -2
  73. tccli/services/vrs/v20200824/api.json +14 -2
  74. tccli/services/vrs/v20200824/examples.json +1 -1
  75. tccli/services/wedata/v20210820/api.json +102 -0
  76. tccli/services/weilingwith/v20230427/api.json +997 -997
  77. {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/METADATA +2 -2
  78. {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/RECORD +81 -81
  79. {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/WHEEL +0 -0
  80. {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/entry_points.txt +0 -0
  81. {tccli-3.0.1288.1.dist-info → tccli-3.0.1290.1.dist-info}/license_files/LICENSE +0 -0
@@ -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": "拉取聚合规则",